1 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2 Mickaël Guêné <mickael.guene@st.com>
5 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
7 (arm_trampoline_init): Likewise.
8 (arm_trampoline_adjust_address): Likewise.
9 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
11 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12 Mickaël Guêné <mickael.guene@st.com>
14 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
15 (legitimize_pic_address): Enforce binding rules on function
16 pointers in FDPIC mode.
17 (arm_assemble_integer): Likewise.
19 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
20 Mickaël Guêné <mickael.guene@st.com>
22 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
23 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
26 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
27 Mickaël Guêné <mickael.guene@st.com>
29 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
32 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
33 Mickaël Guêné <mickael.guene@st.com>
35 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
37 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
39 * config/arm/arm.c (arm_option_override): Define pic register to
41 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
42 have no decl or go through PLT.
43 (calculate_pic_address_constant): New function.
44 (legitimize_pic_address): Call calculate_pic_address_constant.
45 (arm_load_pic_register): Handle TARGET_FDPIC.
46 (arm_is_segment_info_known): New function.
47 (arm_pic_static_addr): Add support for FDPIC.
48 (arm_load_function_descriptor): New function.
49 (arm_emit_call_insn): Add support for FDPIC.
50 (arm_assemble_integer): Add support for FDPIC.
51 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
52 Define. (FDPIC_REGNUM): New define.
53 * config/arm/arm.md (call): Add support for FDPIC.
54 (call_value): Likewise.
55 (restore_pic_register_after_call): New pattern.
56 (untyped_call): Disable if FDPIC.
57 (untyped_return): Likewise.
58 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
60 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
61 Mickaël Guêné <mickael.guene@st.com>
63 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
64 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
65 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
66 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
67 (CC1_SPEC): Use FDPIC_CC1_SPEC.
68 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
69 * config/arm/uclinuxfdpiceabi.h: New file.
71 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
73 * config.gcc: Handle *-*-uclinuxfdpiceabi.
75 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
76 Mickaël Guêné <mickael.guene@st.com>
78 * config/arm/arm.opt: Add -mfdpic option.
79 * doc/invoke.texi: Add documentation for -mfdpic.
81 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
83 * expmed.c (extract_bit_field): Update function comment
85 * expr.c (expand_expr_real): Update function comment
87 (expand_misaligned_mem_ref): New helper function.
88 (expand_expr_real_2): Use expand_misaligned_mem_ref.
89 Remove duplicate assignment to "base" at case MEM_REF.
90 Remove a shadowed variable "unsignedp" at case VCE.
92 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
94 * regset.h (regs_invalidated_by_call_regset): Delete.
95 (fixed_reg_set_regset): Likewise.
96 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
97 (fixed_reg_set_regset, persistent_obstack): Likewise.
98 (init_reg_sets_1, globalize_reg): Update accordingly.
99 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
101 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
102 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
103 instead of regs_invalidated_by_call_regset.
104 (df_lr_confluence_n, df_md_confluence_n): Likewise.
105 * df-scan.c (df_scan_start_dump): Likewise.
106 * dse.c (copy_fixed_regs): Likewise.
107 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
109 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
111 * array-traits.h: New file.
112 * coretypes.h (array_traits, bitmap_view): New types.
113 * bitmap.h: Include "array-traits.h"
114 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
115 (base_bitmap_view, bitmap_view): New classes.
116 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
117 * hard-reg-set.h: Include array-traits.h.
118 (array_traits<HARD_REG_SET>): New struct.
119 * regset.h (IOR_REG_SET_HRS): New macro.
120 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
121 rather than iterating over each hard register.
122 * sched-deps.c (sched_analyze_insn): Likewise.
123 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
125 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
127 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
128 instead of a HARD_REG_SET *.
129 * ira-build.c (ior_hard_reg_conflicts): Likewise.
130 (ira_build): Update call accordingly.
131 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
133 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
135 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
136 (HARD_REG_SET::operator!=): Likewise.
137 (hard_reg_set_equal_p): Delete.
138 * cfgcleanup.c (old_insns_match_p): Use == instead of
139 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
140 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
141 (add_allocno_hard_regs_to_forest): Likewise.
142 (setup_allocno_available_regs_num): Likewise.
143 * ira.c (setup_pressure_classes): Likewise.
144 (setup_allocno_and_important_classes): Likewise.
145 (setup_reg_class_relations): Likewise.
146 * lra-lives.c (process_bb_lives): Likewise.
147 * reg-stack.c (change_stack, convert_regs_1): Likewise.
149 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
151 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
152 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
153 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
154 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
156 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
157 * ira.c (setup_reg_renumber): Likewise.
158 * lra-assigns.c (find_hard_regno_for_1): Likewise.
159 * regrename.c (regrename_find_superclass): Likewise.
160 * reload1.c (find_reg): Likewise.
162 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
164 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
165 * caller-save.c (setup_save_areas): Use "&~" instead of
166 AND_COMPL_HARD_REG_SET.
167 (save_call_clobbered_regs): Likewise.
168 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
170 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
171 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
172 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
173 * config/mips/mips.c (mips_class_max_nregs): Likewise.
174 (mips_conditional_register_usage): Likewise.
175 * config/sh/sh.c (output_stack_adjust): Likewise.
176 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
177 (setup_profitable_hard_regs): Likewise.
178 (get_conflict_and_start_profitable_regs): Likewise.
179 * ira-conflicts.c (print_allocno_conflicts): Likewise.
180 (ira_build_conflicts): Likewise.
181 * ira-costs.c (restrict_cost_classes): Likewise.
182 (setup_regno_cost_classes_by_aclass): Likewise.
183 * ira-lives.c (process_bb_node_lives): Likewise.
184 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
185 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
186 (setup_allocno_and_important_classes, setup_class_translate_array)
187 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
189 * lra-assigns.c (find_hard_regno_for_1): Likewise.
190 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
191 (process_alt_operands, inherit_in_ebb): Likewise.
192 * lra-eliminations.c (update_reg_eliminate): Likewise.
193 * lra-lives.c (process_bb_lives): Likewise.
194 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
195 * resource.c (find_dead_or_set_registers): Likewise.
196 (mark_target_live_regs): Likewise.
197 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
198 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
199 (implicit_clobber_conflict_p): Likewise.
200 * shrink-wrap.c (requires_stack_frame_p): Likewise.
201 (try_shrink_wrapping): Likewise.
203 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
205 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
206 (HARD_REG_SET::operator|=): Likewise.
207 (IOR_HARD_REG_SET): Delete.
208 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
210 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
211 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
212 * final.c (collect_fn_hard_reg_usage): Likewise.
213 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
214 * ira-build.c (merge_hard_reg_conflicts): Likewise.
215 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
216 (propagate_some_info_from_allocno): Likewise.
217 (copy_info_to_removed_store_destinations): Likewise.
218 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
219 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
220 (fast_allocation): Likewise.
221 * ira-conflicts.c (ira_build_conflicts): Likewise.
222 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
223 (process_bb_node_lives): Likewise.
224 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
225 * lra-assigns.c (find_hard_regno_for_1): Likewise.
226 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
227 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
228 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
229 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
230 (process_bb_lives): Likewise.
231 * lra-spills.c (assign_spill_hard_regs): Likewise.
232 * postreload.c (reload_combine): Likewise.
233 * reginfo.c (init_reg_sets_1): Likewise.
234 * regrename.c (merge_overlapping_regs, find_rename_reg)
235 (merge_chains): Likewise.
236 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
237 (find_reload_regs, finish_spills, choose_reload_regs_init)
238 (emit_reload_insns): Likewise.
239 * reorg.c (redundant_insn): Likewise.
240 * resource.c (find_dead_or_set_registers, mark_set_resources)
241 (mark_target_live_regs): Likewise.
242 * rtlanal.c (find_all_hard_reg_sets): Likewise.
243 * sched-deps.c (sched_analyze_insn): Likewise.
244 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
245 (find_best_reg_for_expr): Likewise.
246 * shrink-wrap.c (try_shrink_wrapping): Likewise.
248 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
250 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
251 (HARD_REG_SET::operator&): Likewise.
252 (AND_HARD_REG_SET): Delete.
253 * caller-save.c (setup_save_areas): Use "&" instead of
255 (save_call_clobbered_regs): Likewise.
256 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
257 * config/m32c/m32c.c (reduce_class): Likewise.
258 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
259 * final.c (get_call_reg_set_usage): Likewise.
260 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
261 (setup_left_conflict_sizes_p): Likewise.
262 * ira-conflicts.c (print_allocno_conflicts): Likewise.
263 (ira_build_conflicts): Likewise.
264 * ira-costs.c (restrict_cost_classes): Likewise.
265 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
266 (setup_reg_class_relations): Likewise.
267 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
268 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
269 * resource.c (find_dead_or_set_registers): Likewise.
270 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
272 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
274 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
275 (COMPL_HARD_REG_SET): Delete.
276 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
277 of COMPL_HARD_REG_SET.
278 (try_rename_operands): Likewise.
279 * config/sh/sh.c (push_regs): Likewise.
280 * lra-assigns.c (find_hard_regno_for_1): Likewise.
281 * lra-constraints.c (contains_reg_p): Likewise.
282 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
284 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
286 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
287 * caller-save.c (save_call_clobbered_regs): Use assignment instead
288 of COPY_HARD_REG_SET.
289 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
290 (epiphany_conditional_register_usage): Likewise.
291 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
292 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
293 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
294 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
295 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
296 * config/mips/mips.c (mips_class_max_nregs): Likewise.
297 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
298 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
299 * config/sh/sh.c (output_stack_adjust): Likewise.
300 * final.c (collect_fn_hard_reg_usage): Likewise.
301 (get_call_reg_set_usage): Likewise.
302 * ira-build.c (ira_create_object, remove_low_level_allocnos)
303 (ira_flattening): Likewise.
304 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
305 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
306 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
307 (ira_reassign_pseudos): Likewise.
308 * ira-conflicts.c (print_allocno_conflicts): Likewise.
309 (ira_build_conflicts): Likewise.
310 * ira-costs.c (restrict_cost_classes): Likewise.
311 (setup_regno_cost_classes_by_aclass): Likewise.
312 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
313 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
314 (setup_stack_reg_pressure_class, setup_pressure_classes)
315 (setup_allocno_and_important_classes, setup_class_translate_array)
316 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
317 (ira_setup_eliminable_regset): Likewise.
318 * lra-assigns.c (find_hard_regno_for_1): Likewise.
319 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
320 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
321 (process_alt_operands, inherit_in_ebb): Likewise.
322 * lra-lives.c (process_bb_lives): Likewise.
323 * lra-spills.c (assign_spill_hard_regs): Likewise.
324 * lra.c (lra): Likewise.
325 * mode-switching.c (new_seginfo): Likewise.
326 * postreload.c (reload_combine): Likewise.
327 * reg-stack.c (straighten_stack): Likewise.
328 * reginfo.c (save_register_info, restore_register_info): Likewise.
329 (init_reg_sets_1, record_subregs_of_mode): Likewise
330 * regrename.c (create_new_chain, rename_chains): Likewise.
331 * reload1.c (order_regs_for_reload, find_reg): Likewise.
332 (find_reload_regs): Likewise.
333 * resource.c (find_dead_or_set_registers): Likewise.
334 (mark_target_live_regs): Likewise.
335 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
337 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
339 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
340 (note_pattern_stores): Declare.
341 (note_stores): Take an rtx_insn *.
342 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
343 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
344 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
345 (note_stores): Take an rtx_insn * as argument and process
346 CALL_INSN_FUNCTION_USAGE. Rename old function to...
347 (note_pattern_stores): ...this.
348 (find_first_parameter_load): Pass the insn rather than
349 its pattern to note_stores.
350 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
351 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
352 (insert_one_insn): Likewise.
353 * combine.c (combine_instructions): Likewise.
354 (likely_spilled_retval_p): Likewise.
355 (try_combine): Use note_pattern_stores instead of note_stores.
356 (record_dead_and_set_regs): Pass the insn rather than its pattern
358 (reg_dead_at_p): Likewise.
359 * config/bfin/bfin.c (workaround_speculation): Likewise.
360 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
362 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
363 instead of note_stores.
364 (frv_optimize_membar_local): Pass the insn rather than its pattern
366 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
367 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
368 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
369 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
370 (mips_reorg_process_insns): Likewise.
371 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
372 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
374 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
375 its pattern to note_stores.
376 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
378 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
379 the insn to note_stores.
380 (prescan_insns_for_dce): Update call accordingly.
381 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
383 * df-problems.c (can_move_insns_across): Likewise.
384 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
385 * function.c (assign_parm_setup_reg): Likewise.
386 * gcse-common.c (record_last_mem_set_info_common): Likewise.
387 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
388 (single_set_gcse): Likewise.
389 * ira.c (validate_equiv_mem): Likewise.
390 (update_equiv_regs): Use note_pattern_stores rather than note_stores
392 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
393 pattern to note_stores.
394 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
395 * loop-iv.c (simplify_using_initial_values): Likewise.
396 * mode-switching.c (optimize_mode_switching): Likewise.
397 * optabs.c (emit_libcall_block_1): Likewise.
398 (expand_atomic_compare_and_swap): Likewise.
399 * postreload-gcse.c (load_killed_in_block_p): Likewise.
400 (record_opr_changes): Likewise. Remove explicit handling of
401 CALL_INSN_FUNCTION_USAGE.
402 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
403 * regcprop.c (kill_clobbered_values): Likewise.
404 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
406 * regrename.c (build_def_use): Likewise.
407 * reload1.c (reload): Use note_pattern_stores instead of note_stores
408 for mark_not_eliminable.
409 (reload_as_needed): Pass the insn rather than its pattern
411 (emit_output_reload_insns): Likewise.
412 * resource.c (mark_target_live_regs): Likewise.
413 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
414 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
415 instead of note_stores.
416 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
417 its pattern to note_stores.
418 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
419 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
421 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
423 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
424 than a #define. Use a structure rather than an array as the
425 fallback definition. Remove special cases for low array sizes.
426 (const_hard_reg_set): New typedef.
427 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
428 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
429 (hard_reg_set_empty_p): Likewise.
430 (SET_HARD_REG_BIT): Use a function rather than a macro to
431 handle the case in which HARD_REG_SET is a structure.
432 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
433 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
434 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
435 (IOR_COMPL_HARD_REG_SET): Likewise.
436 (hard_reg_set_iterator::pset): Constify the pointer target.
437 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
438 of a "const HARD_REG_SET". Update the handling of non-integer
440 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
441 * reload.h: Likewise.
442 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
443 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
444 of a "const HARD_REG_SET".
445 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
446 (range_in_hard_reg_set_p): Likewise.
447 * ira-costs.c (restrict_cost_classes): Likewise.
448 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
449 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
450 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
451 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
452 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
453 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
454 take an unsigned int and open-code the HARD_REG_SET operations.
456 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
458 * Makefile.in (OBJS): Remove bt-load.o.
459 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
460 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
461 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
462 document that the option no longer does anything.
463 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
464 * target.def (branch_target_register_class): Delete.
465 (branch_target_register_callee_saved): Likewise.
466 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
467 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
468 * doc/tm.texi: Regenerate.
469 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
470 (make_pass_branch_target_load_optimize2): Likewise.
471 * passes.def (pass_branch_target_load_optimize1): Likewise.
472 (pass_branch_target_load_optimize2): Likewise.
473 * targhooks.h (default_branch_target_register_class): Likewise.
474 * targhooks.c (default_branch_target_register_class): Likewise.
475 * opt-suggestions.c (test_completion_valid_options): Remove
476 -fbtr-bb-exclusive from the list of test options.
479 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
481 * match.pd: Add flag_unsafe_math_optimizations check
482 before deciding on the widest type in a binary math operation.
484 2019-09-09 Martin Liska <mliska@suse.cz>
486 * config/i386/i386.opt: Update comment of removed
487 options that are preserved only for backward
490 2019-09-09 Jakub Jelinek <jakub@redhat.com>
493 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
497 * config/i386/avxintrin.h (__v32qs): New typedef.
498 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
501 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
503 * doc/invoke.texi (Option Summary): Cover eBPF.
504 (eBPF Options): New section.
505 * doc/extend.texi (BPF Built-in Functions): Likewise.
506 (BPF Kernel Helpers): Likewise.
508 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
510 * config.gcc: Support for bpf-*-* targets.
511 * common/config/bpf/bpf-common.c: New file.
512 * config/bpf/t-bpf: Likewise.
513 * config/bpf/predicates.md: Likewise.
514 * config/bpf/constraints.md: Likewise.
515 * config/bpf/bpf.opt: Likewise.
516 * config/bpf/bpf.md: Likewise.
517 * config/bpf/bpf.h: Likewise.
518 * config/bpf/bpf.c: Likewise.
519 * config/bpf/bpf-protos.h: Likewise.
520 * config/bpf/bpf-opts.h: Likewise.
521 * config/bpf/bpf-helpers.h: Likewise.
522 * config/bpf/bpf-helpers.def: Likewise.
524 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
526 * doc/sourcebuild.texi (Effective-Target Keywords): Document
529 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
531 * opt-functions.awk (integer_range_info): Make sure values are in
532 numeric context before operating with them.
534 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
536 * genemit.c (gen_split): Print the filename and line number where the
537 splitter (or peephole2) was defined, to the dump file.
539 2019-09-07 Jakub Jelinek <jakub@redhat.com>
541 PR tree-optimization/91665
542 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
543 incompatible with the type of PHI result.
545 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
548 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
549 gen_unaligned_storedi for 4-byte aligned addresses.
551 2019-09-06 Jim Wilson <jimw@sifive.com>
553 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
556 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
558 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
560 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
562 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
563 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
565 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
568 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
569 cost of SSE->integer and integer->SSE moves from 2 to 6.
572 2019-09-06 Jakub Jelinek <jakub@redhat.com>
574 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
575 before testing TYPE_TRANSPARENT_AGGR.
576 * calls.c (initialize_argument_information, load_register_parameters):
579 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
581 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
585 2019-09-06 Martin Liska <mliska@suse.cz>
587 * doc/match-and-simplify.texi: Separate tuples with ;.
589 2019-09-06 Martin Liska <mliska@suse.cz>
592 * Makefile.in: Remove tlink.o.
593 * collect2.c (do_link): New function isolated
596 * collect2.h (do_tlink): Remove declaration of do_tlink.
597 * doc/extend.texi: Remove documentation of -frepo.
598 * doc/invoke.texi: Likewise.
599 * doc/sourcebuild.texi: Remove cleanup-repo-files.
602 2019-09-05 Jakub Jelinek <jakub@redhat.com>
603 Jim Wilson <jimw@sifive.com>
606 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
607 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
608 paradoxical_subreg_p (operands[0]).
609 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
610 use as intermediate value.
612 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
614 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
615 (sync_compare_and_swap<mode>_insn): Likewise.
617 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
620 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
621 without movmisalign optab.
623 2019-09-05 Jakub Jelinek <jakub@redhat.com>
628 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
629 types, use type of their first field instead of type of
632 2019-09-05 Richard Biener <rguenther@suse.de>
634 PR rtl-optimization/91656
635 * postreload-gcse.c (record_last_mem_set_info): Revert addition
638 2019-09-05 Richard Biener <rguenther@suse.de>
641 * tree-inline.c (declare_return_variable): Mark the return
642 slot as addressable after building an address of it.
644 2019-09-05 Arnaud Charlet <charlet@adacore.com>
646 * doc/install.texi: Update and clarify requirements to build GNAT.
648 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
651 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
652 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
653 call to be in memory.
654 (pass_expand::execute): Call discover_nonconstant_array_refs before
655 setting currently_expanding_to_rtl.
657 2019-09-04 Caroline Tice <cmtice@google.com>
659 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
662 2019-09-04 Marek Polacek <polacek@redhat.com>
664 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
666 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
669 * config/i386/i386.c (inline_secondary_memory_needed): Return true
670 for QI and HImode moves between SSE and general registers.
672 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
675 * doc/invoke.texi: Document -Wenum-conversion.
677 2019-09-04 Richard Biener <rguenther@suse.de>
679 PR rtl-optimization/36262
680 * postreload-gcse.c: Include intl.h and gcse.h.
681 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
682 to avoid linear list walk.
683 (record_last_mem_set_info): Gate off if not computing transparentness.
684 (get_bb_avail_insn): If transparentness isn't computed give up
686 (gcse_after_reload_main): Skip compute_transp and extended PRE
687 if gcse_or_cprop_is_too_expensive says so.
689 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
691 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
693 (msp430_select_section): Handle decls with the "noinit" attribute with
694 default_elf_select_section.
695 Handle SECCAT_RODATA_MERGE_* section types with
696 default_elf_select_section.
697 Add comments about handling of unsupported section types.
698 (msp430_section_type_flags): Remove handling of the noinit section.
700 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
702 * config/msp430/msp430.c (msp430_attr): Remove warnings about
703 conflicting msp430-specific attributes.
704 (msp430_section_attr): Likewise.
705 Add warnings about conflicts with generic "noinit" and "section"
707 Fix grammar in -mlarge error message.
708 (msp430_data_attr): Rename to msp430_persist_attr.
709 Add warnings about conflicts with generic "noinit" and "section"
711 Add warning for when variable is not initialized.
712 Chain conditionals which prevent the attribute being added.
713 (ATTR_EXCL): New helper.
714 (attr_reent_exclusions): New exclusion table.
715 (attr_naked_exclusions): Likewise.
716 (attr_crit_exclusions): Likewise.
717 (attr_lower_exclusions): Likewise.
718 (attr_upper_exclusions): Likewise.
719 (attr_either_exclusions): Likewise.
720 (attr_persist_exclusions): Likewise.
721 (msp430_attribute_table): Update with exclusion rules.
722 (msp430_output_aligned_decl_common): Don't output common symbol if decl
725 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
727 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
728 (msp430_handle_generic_attribute): New function.
729 * doc/tm.texi: Regenerate.
730 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
731 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
732 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
733 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
735 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
737 PR tree-optimization/91504
738 * match.pd: Add ((~a & b) ^a) --> (a | b).
740 2019-09-03 Jakub Jelinek <jakub@redhat.com>
743 * config/i386/i386-expand.c (split_double_mode): If there is more than
744 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
745 already split matching MEM operand instead of calling adjust_address
748 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
750 * config.gcc: Obsolete spu target. Remove references to spu.
751 * configure.ac: Remove references to spu.
752 * configure: Regenerate.
753 * config/spu/: Remove directory.
754 * common/config/spu/: Remove directory.
756 * doc/extend.texi: Remove references to spu.
757 * doc/invoke.texi: Likewise.
758 * doc/md.texi: Likewise.
759 * doc/sourcebuild.texi: Likewise.
761 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
766 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
767 and SSA_NAME referring to CONSTANT_P correctly.
769 2019-09-03 Richard Biener <rguenther@suse.de>
771 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
772 (vn_nary_op_insert): Likewise.
773 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
774 (vn_nary_op_lookup): Likewise.
775 (vn_nary_op_insert): Likewise.
777 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
779 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
780 (*op0, 1) instead of XEXP (*op1, 0).
782 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
784 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
785 (aarch64_fjcvtzs): New define_insn.
786 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
787 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
789 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
790 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
791 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
792 __ARM_FEATURE_JCVT where appropriate.
793 * config/aarch64/arm_acle.h (__jcvt): Define.
795 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
797 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
798 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
799 (aarch64_<frintnzs_op><mode>): New define_insn.
800 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
801 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
802 __ARM_FEATURE_FRINT when appropriate.
803 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
804 frint32x, frint64z, frint64x.
805 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
806 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
807 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
808 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
809 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
810 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
811 * config/aarch64/iterators.md (VSFDF): Define.
812 (FRINTNZX): Likewise.
813 (frintnzs_op): Likewise.
815 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
817 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
818 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
820 * config/aarch64/aarch64-tune.md: Regenerated.
821 * doc/invoke.texi: Document the new processors.
823 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
825 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
829 (sve2-sm4): Likewise.
832 (svebitperm): Likewise.
834 2019-09-03 Jakub Jelinek <jakub@redhat.com>
835 Richard Biener <rguenther@suse.de>
837 PR tree-optimization/91597
838 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
839 BIT_AND_EXPR optimization for pointers, even if both operand
840 ranges don't include NULL, the result can be NULL.
842 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
845 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
846 (non_mem_decl_p): ...this.
847 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
848 (expand_assignment): Call mem_ref_referes_to_non_mem_p
849 unconditionally as before.
851 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
854 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
855 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
856 * tree.def (LTGT_EXPR): Likewise.
857 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
859 2019-09-02 Jakub Jelinek <jakub@redhat.com>
862 * fold-const.c (range_check_type): For enumeral and boolean
863 type, pass 1 to type_for_size langhook instead of
864 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
865 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
866 (build_range_check): Don't call unsigned_type_for for pointer types.
867 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
868 range_check_type result.
870 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
872 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
873 (replace_ref): Do not replace a chain of only two candidates which are
874 valid memory references.
876 2019-09-02 Martin Liska <mliska@suse.cz>
878 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
879 Bail out when we'll end up with the same number of clusters as
881 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
882 (jump_table_cluster::can_be_handled): Remove the guard
883 as it's already handled in ::is_enabled. Allocate output
884 after early bail out.
886 2019-09-02 Martin Liska <mliska@suse.cz>
888 PR gcov-profile/91601
889 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
890 (path_contains_zero_or_negative_cycle_arc): ... this and handle
892 (circuit): Handle also negative edges as they can happen
895 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
898 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
899 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
900 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
902 2019-09-01 Jakub Jelinek <jakub@redhat.com>
905 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
906 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
907 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
911 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
912 GIMPLE_ASM TREE_LIST operands.
914 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
916 * doc/generic.texi (Unary and Binary Expressions): Mark up
917 an instance of TYPE_MIN.
919 2019-08-31 Stafford Horne <shorne@gmail.com>
921 * config/or1k/constraints.md (t): New constraint.
922 * config/or1k/or1k.h (GOT_REGS): New register class.
923 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
925 2019-08-30 Jim Wilson <jimw@sifive.com>
927 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
928 and -fpic and -mplt then disable -msave-restore and warn.
930 2019-08-30 Martin Sebor <msebor@redhat.com>
933 * tree-ssa-strlen.c (handle_store): Use a fallback location if
934 the statement doesn't have one.
935 * gimple-pretty-print.c (percent_G_format): Same.
938 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
939 before using them to validate MEM_REF offset.
941 2019-08-30 Marek Polacek <polacek@redhat.com>
943 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
945 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
947 * config/arm/arm.md (unaligned_loaddi,
948 unaligned_storedi): New unspec insn patterns.
949 * config/arm/neon.md (unaligned_storev8qi): Likewise.
950 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
951 and unaligned_storedi for 4-byte aligned memory.
952 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
953 4-byte aligned memory.
955 2019-08-30 Martin Jambor <mjambor@suse.cz>
957 tree-optimization/91579
958 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
959 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
961 (arg_needs_copy_p): Removed.
962 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
964 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
966 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
968 * config/i386/i386-features.c
969 (general_scalar_chain::compute_convert_gain):
970 Correct cost for double-word shifts.
971 (general_scalar_to_vector_candidate_p): Reject count operands
972 greater or equal to mode bitsize.
974 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
976 * config/i386/i386.c (inline_secondary_memory_needed): Return true
977 for moves between SSE and non-general registers and between
978 mask and non-general registers.
979 (ix86_register_move_cost): Remove stalled comment.
981 2019-08-29 Richard Biener <rguenther@suse.de>
983 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
984 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
986 2019-08-29 Richard Biener <rguenther@suse.de>
989 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
990 Do not emit scalar copies for debug-insns, instead replace
991 their uses with the reg copy used in the chain or reset them
992 if there is a reaching definition outside of the chain as well.
994 2019-08-29 Jakub Jelinek <jakub@redhat.com>
997 * config/i386/i386-expand.c (expand_vec_perm_movs,
998 expand_vec_perm_blend, expand_vec_perm_vpermil,
999 expand_vec_perm_pshufb, expand_vec_perm_1,
1000 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
1001 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
1002 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
1003 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
1004 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
1005 comments - replace ix86_expand_vec_perm_builtin_1 with
1006 ix86_expand_vec_perm_const_1.
1007 (expand_vec_perm2_vperm2f128_vblend): New function.
1008 (ix86_expand_vec_perm_const_1): New forward declaration. Call
1009 expand_vec_perm2_vperm2f128_vblend as last resort.
1010 (canonicalize_perm): Formatting fix.
1012 PR tree-optimization/91351
1013 * tree-cfg.c (generate_range_test): Use range_check_type instead of
1015 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
1016 range_check_type returns NULL.
1017 * tree-switch-conversion.c (switch_conversion::build_one_array):
1018 Use range_check_type instead of unsigned_type_for, don't perform
1019 linear opt if it returns NULL.
1020 (bit_test_cluster::find_bit_tests): Formatting fix.
1021 (bit_test_cluster::emit): Use range_check_type instead of
1023 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
1026 2019-08-29 Richard Biener <rguenther@suse.de>
1028 PR tree-optimization/91568
1029 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
1030 (vect_update_max_nunits): Add overload for poly_uint64.
1031 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
1032 (vect_build_slp_tree): Record max_nunits into the subtree
1033 and merge it upwards.
1034 (vect_print_slp_tree): Print max_nunits.
1036 2019-08-28 Marek Polacek <polacek@redhat.com>
1038 Implement P1152R4: Deprecating some uses of volatile.
1040 * doc/invoke.texi: Document -Wvolatile.
1042 2019-08-28 Marek Polacek <polacek@redhat.com>
1044 PR c++/91360 - Implement C++20 P1143R2: constinit.
1045 * doc/invoke.texi: Document -Wc++20-compat.
1047 2019-08-28 Martin Sebor <msebor@redhat.com>
1049 PR tree-optimization/91457
1050 * builtins.c (component_size): New function.
1051 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
1052 * builtins.h (compute_objsize): Add argument.
1053 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
1054 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
1055 (vrp_prop::check_mem_ref): Same.
1056 (vrp_prop::search_for_addr_array): Set no-warning bit.
1057 (check_array_bounds): Same.
1059 2019-08-28 Martin Sebor <msebor@redhat.com>
1062 * opts-common.c (option_enabled): Correct checking for language
1065 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
1067 * config/i386/i386.c (ix86_register_move_cost): Do not
1068 limit the cost of moves to/from XMM register to minimum 8.
1070 2019-08-28 Martin Jambor <mjambor@suse.cz>
1073 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
1074 checking assert a normal assert to test it really is redundant.
1075 * ipa-prop.c (compute_complex_assign_jump_func): Removed
1077 (update_jump_functions_after_inlining): Removed combining unary
1078 arithmetic operations with an ancestor jump function.
1079 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
1082 2019-08-28 Richard Biener <rguenther@suse.de>
1084 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
1087 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
1088 Richard Biener <rguenther@suse.de>
1090 * expr.c (expand_assignment): Handle misaligned DECLs.
1091 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
1092 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
1094 (assign_parm_setup_stack): Allocate properly aligned stack slots.
1095 * varasm.c (build_constant_desc): Align constants of misaligned types.
1096 * config/arm/predicates.md (aligned_operand): New predicate.
1097 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
1098 aligned_operand to check restrictions on memory addresses.
1099 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
1100 * config/arm/vec-common.md (mov<VALL>): Likewise.
1102 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1105 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
1106 V_128 iterator instead of VI_128.
1108 2019-08-28 Martin Liska <mliska@suse.cz>
1110 PR tree-optimization/90970
1111 * builtins.c (check_access): Remove assignment to maxread
1112 as it hasn't been used since when it was introduced in r255755.
1114 2019-08-27 Martin Sebor <msebor@redhat.com>
1116 PR tree-optimization/91567
1117 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
1119 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
1122 2019-08-27 Jeff Law <law@redhat.com>
1124 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
1125 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
1127 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
1130 * config/i386/i386-features.c (convert_scalars_to_vector):
1131 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
1132 crtl->stack_realign_processed. Update crtl->drap_reg by calling
1133 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
1134 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
1136 2019-08-27 Richard Biener <rguenther@suse.de>
1138 * config/i386/i386-features.h
1139 (general_scalar_chain::~general_scalar_chain): Add.
1140 (general_scalar_chain::insns_conv): New bitmap.
1141 (general_scalar_chain::n_sse_to_integer): New.
1142 (general_scalar_chain::n_integer_to_sse): Likewise.
1143 (general_scalar_chain::make_vector_copies): Adjust signature.
1144 * config/i386/i386-features.c
1145 (general_scalar_chain::general_scalar_chain): Outline,
1146 initialize new members.
1147 (general_scalar_chain::~general_scalar_chain): New.
1148 (general_scalar_chain::mark_dual_mode_def): Record insns
1149 we need to insert conversions at and count them.
1150 (general_scalar_chain::compute_convert_gain): Account
1151 for conversion instructions at chain boundary.
1152 (general_scalar_chain::make_vector_copies): Generate a single
1153 copy for a def by a specific insn.
1154 (general_scalar_chain::convert_registers): First populate
1155 defs_map, then make copies at out-of chain insns.
1157 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
1159 * config/arm/arm.md (stack_protect_set_insn): Add security-related
1161 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
1163 2019-08-27 Martin Liska <mliska@suse.cz>
1165 * cgraph.c (cgraph_node::remove): Remove dead assignment before
1167 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
1168 Enclose in anonymous namespace.
1169 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
1170 hard_register initialization in braces.
1171 * tree-vrp.h (value_range_base::supports_type_p): Return false
1172 for function with boolean return type.
1174 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
1176 * config/i386/i386.c (emit_i387_cw_initialization)
1177 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
1179 2019-08-26 Martin Sebor <msebor@redhat.com>
1182 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
1183 (sprintf_dom_walker): Remove class.
1184 (get_int_range): Make argument const.
1185 (directive::fmtfunc, directive::set_precision): Same.
1186 (format_none): Same.
1187 (build_intmax_type_nodes): Same.
1188 (adjust_range_for_overflow): Same.
1189 (format_floating): Same.
1190 (format_character): Same.
1191 (format_string): Same.
1192 (format_plain): Same.
1193 (get_int_range): Cast away constness.
1194 (format_integer): Same.
1195 (get_string_length): Call get_range_strlen_dynamic. Handle
1196 null lendata.maxbound.
1197 (should_warn_p): Adjust argument scope qualifier.
1199 (format_directive): Same.
1200 (parse_directive): Same.
1201 (is_call_safe): Same.
1202 (try_substitute_return_value): Same.
1203 (sprintf_dom_walker::handle_printf_call): Rename...
1204 (handle_printf_call): ...to this. Initialize target to host charmap
1205 here instead of in pass_sprintf_length::execute.
1206 (struct call_info): Make global.
1207 (sprintf_dom_walker::compute_format_length): Make global.
1208 (sprintf_dom_walker::handle_gimple_call): Same.
1209 * passes.def (pass_sprintf_length): Replace with pass_strlen.
1210 * print-rtl.c (print_pattern): Reduce the number of spaces to
1211 avoid -Wformat-truncation.
1212 * tree-pass.h (make_pass_warn_printf): New function.
1213 * tree-ssa-strlen.c (strlen_optimize): New variable.
1214 (get_string_length): Add comments.
1215 (get_range_strlen_dynamic): New function.
1216 (check_and_optimize_call): New function.
1217 (handle_integral_assign): New function.
1218 (strlen_check_and_optimize_stmt): Factor code out into
1219 strlen_check_and_optimize_call and handle_integral_assign.
1220 (strlen_dom_walker::evrp): New member.
1221 (strlen_dom_walker::before_dom_children): Use evrp member.
1222 (strlen_dom_walker::after_dom_children): Use evrp member.
1223 (printf_strlen_execute): New function.
1224 (pass_strlen::gate): Update to handle printf calls.
1225 (dump_strlen_info): New function.
1226 (pass_data_warn_printf): New variable.
1227 (pass_warn_printf): New class.
1228 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
1229 (handle_printf_call): Same.
1230 * tree-vrp.c (value_range_base::type): Adjust assertion.
1231 * vr-values.c (vr_values::update_value_range): Use type of the first
1232 argument rather than the second.
1234 2019-08-26 Richard Biener <rguenther@suse.de>
1236 * config/i386/i386-features.c (general_remove_non_convertible_regs):
1238 (convert_scalars_to_vector): Do not call it.
1240 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
1241 Uros Bizjak <ubizjak@gmail.com>
1243 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
1244 CASE_MATHFN_FLOATN for roundeven.
1245 * config/i386/i386.c (ix86_i387_mode_needed): Add case
1247 (ix86_mode_needed): Likewise.
1248 (ix86_mode_after): Likewise.
1249 (ix86_mode_entry): Likewise.
1250 (ix86_mode_exit): Likewise.
1251 (ix86_emit_mode_set): Likewise.
1252 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
1253 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
1254 (ix86_entity): Add I387_ROUNDEVEN.
1255 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
1256 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
1257 (define_int_iterator): Likewise.
1258 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
1259 (define_constant): Define ROUND_ROUNDEVEN mode.
1260 (define_attr): Add roundeven mode for i387_cw.
1261 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
1262 * internal-fn.def (ROUNDEVEN): New builtin function.
1263 * optabs.def (roundeven_optab): New optab.
1265 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
1267 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
1269 * builtins.def: Added function definitions for roundeven function
1271 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
1272 function call. Adjust condition for floor, ceil, trunc and round.
1273 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
1274 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
1275 (integer_valued_real_call_p): Added case for roundeven function.
1276 * real.c (is_even): New function. Returns true if real number is even,
1277 otherwise returns false.
1278 (is_halfway_below): New function. Returns true if real number is
1279 halfway between two integers, else return false.
1280 (real_roundeven): New function. Round real number to nearest integer,
1281 rounding halfway cases towards even.
1282 * real.h (real_value): Added descriptive comments. Added function
1283 declaration for roundeven function.
1284 * doc/extend.texi (Other Builtins): List roundeven variants among
1285 functions which can be handled as builtins.
1287 2019-08-26 Richard Biener <rguenther@suse.de>
1291 * config/i386/i386-features.h (general_scalar_chain::defs_map):
1293 (general_scalar_chain::replace_with_subreg): Remove.
1294 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
1295 (general_scalar_chain::convert_reg): Adjust signature.
1296 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
1297 iterate over all defs of a reg.
1298 (general_scalar_chain::replace_with_subreg): Remove.
1299 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
1300 (general_scalar_chain::make_vector_copies): Populate defs_map,
1301 place copy only after defs that are used as vectors in the chain.
1302 (general_scalar_chain::convert_reg): Emit a copy for a specific
1303 def in a specific instruction.
1304 (general_scalar_chain::convert_op): All reg uses are converted here.
1305 (general_scalar_chain::convert_insn): Emit copies for scalar
1306 uses of defs here. Replace uses with the copies we created.
1307 Replace and convert the def. Adjust REG_DEAD notes, remove
1308 REG_EQUIV/EQUAL notes.
1309 (general_scalar_chain::convert_registers): Only handle copies
1310 into the chain here.
1312 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
1314 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
1316 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
1318 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
1319 Add nop_convert case.
1320 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
1321 Fold all statements if requested.
1322 * tree-ssa-propagate.h (class substitute_and_fold_engine):
1323 Allow to fold all statements.
1324 * tree-vrp.c (class vrp_folder):
1325 Let substitute_and_fold_engine fold all statements.
1327 2019-08-26 Richard Biener <rguenther@suse.de>
1329 PR tree-optimization/91526
1330 * passes.def: Note that after late FRE we do TODO_update_address_taken.
1331 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
1332 TODO_update_address_taken.
1334 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
1336 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
1339 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
1341 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
1342 machine mode for unspec_volatile operand.
1344 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
1346 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
1347 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
1348 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
1349 (prefer_neon_for_64bits): Remove.
1350 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
1351 (tune_params): Remove PREF_NEON_64_FALSE uses.
1352 (arm_option_override): Remove prefer_neon selection code.
1353 (arm_print_tune_info): Remove prefer_neon_for_64bits.
1354 * gcc/config/arm/arm-protos.h (tune_params): Remove
1355 prefer_neon_for_64bits.
1356 (prefer_neon_for_64bits): Remove.
1358 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
1361 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
1362 and issue any diagnostics needed before collecting the pre-PCH
1365 2019-08-23 Jakub Jelinek <jakub@redhat.com>
1368 * common.opt (fexcess-precision=): Add Optimization flag. Use
1369 flag_excess_precision variable instead of
1370 flag_excess_precision_cmdline.
1371 * flags.h (class target_flag_state): Remove x_flag_excess_precision
1373 (flag_excess_precision): Don't define.
1374 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
1375 flag_excess_precision_cmdline. Remove comment.
1376 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
1377 and x_flag_excess_precision instead of
1378 frontend_set_flag_excess_precision_cmdline and
1379 x_flag_excess_precision_cmdline.
1380 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
1381 x_flag_excess_precision_cmdline.
1382 * toplev.c (init_excess_precision): Remove.
1383 (lang_dependent_init_target): Don't call it.
1385 2019-08-23 Martin Liska <mliska@suse.cz>
1387 * lto-wrapper.c (run_gcc): When setting jobserver
1388 set also parallel to 1. This was done so before r273908.
1390 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
1392 * config/arm/arm-cpus.in (cortex-m35p): New entry.
1393 (cortex-a76ae): Likewise.
1394 (cortex-a77): Likewise
1395 * config/arm/arm-tables.opt: Regenerate.
1396 * config/arm/arm-tune.md: Likewise.
1397 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
1398 cortex-a77 CPU options.
1400 2019-08-23 Martin Liska <mliska@suse.cz>
1402 * profile.c (instrument_values): Do not set
1404 * tree-profile.c (gimple_gen_interval_profiler): Remove
1406 (gimple_gen_pow2_profiler): Likewise.
1407 (gimple_gen_topn_values_profiler): Likewise.
1408 (gimple_gen_ic_profiler): Likewise.
1409 (gimple_gen_time_profiler): Likewise.
1410 (gimple_gen_average_profiler): Likewise.
1411 (gimple_gen_ior_profiler): Likewise.
1412 * value-prof.c (dump_histogram_value): Use default
1413 in switch statement instead of HIST_TYPE_MAX.
1414 (stream_in_histogram_value): Likewise.
1415 (gimple_duplicate_stmt_histograms): Do not
1416 use NULL for implicitly set arguments.
1417 (gimple_divmod_values_to_profile): Do not use
1419 (gimple_indirect_call_to_profile): Likewise.
1420 (gimple_find_values_to_profile): Use implicit
1421 function call arguments.
1422 * value-prof.h (gimple_alloc_histogram_value):
1424 (gimple_gen_interval_profiler): Remove last argument.
1425 (gimple_gen_pow2_profiler): Likewise.
1426 (gimple_gen_topn_values_profiler): Likewise.
1427 (gimple_gen_ic_profiler): Likewise.
1428 (gimple_gen_time_profiler): Likewise.
1429 (gimple_gen_average_profiler): Likewise.
1430 (gimple_gen_ior_profiler): Likewise.
1432 2019-08-22 Martin Sebor <msebor@redhat.com>
1435 * builtins.c (c_strlen): Rename argument and introduce new local.
1436 Set no-warning bit on original argument.
1437 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
1438 Fold empty and zero constructors into empty strings.
1439 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
1440 for missing initializers.
1441 * tree.c (build_string_literal): Handle optional argument.
1442 * tree.h (build_string_literal): Add defaulted argument.
1443 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
1444 no-warning bit on original expression.
1446 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
1449 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
1450 and UNSPEC_DARN_RAW.
1451 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
1453 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
1454 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
1455 (darn): Use an unspec_volatile, and UNSPECV_DARN.
1457 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
1459 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
1460 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
1461 * config/rs6000/rs6000.md (unspec): ... here.
1462 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
1463 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
1464 cmpeqb, *cmpeqb_internal): Delete, move to...
1465 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
1466 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
1467 cmpeqb, *cmpeqb_internal): ... here.
1469 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1471 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
1472 intrinsics if __ARM_FP.
1473 Use __ARM_FEATURE_CRC32 ifdef guard.
1475 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
1477 * config/arm/arm.md (neon_for_64bits): Remove.
1478 (avoid_neon_for_64bits): Remove.
1479 (arm_adddi3): Always split early.
1480 (arm_subdi3): Always split early.
1481 (negdi2): Remove Neon expansion.
1482 (split zero_extend): Split before reload.
1483 (split sign_extend): Split before reload.
1485 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
1487 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
1488 (qhs_extenddi_cstr): Likewise.
1489 * config/arm/arm.md (ashldi3): Always expand early.
1490 (ashlsi3): Likewise.
1491 (ashrsi3): Likewise.
1492 (zero_extend<mode>di2): Remove Neon variants.
1493 (extend<mode>di2): Likewise.
1494 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
1495 (signed_shift_di3_neon): Likewise.
1496 (unsigned_shift_di3_neon): Likewise.
1497 (ashrdi3_neon_imm_noclobber): Likewise.
1498 (lshrdi3_neon_imm_noclobber): Likewise.
1499 (<shift>di3_neon): Likewise.
1500 (split extend): Remove DI extend split patterns.
1502 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
1504 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
1505 (split not): Add DImode not splitter.
1506 (anddi3): Remove pattern.
1507 (anddi3_insn): Likewise.
1508 (anddi_zesidi_di): Likewise.
1509 (anddi_sesdi_di): Likewise.
1510 (anddi_notdi_di): Likewise.
1511 (anddi_notzesidi_di): Likewise.
1512 (anddi_notsesidi_di): Likewise.
1514 (iordi3_insn): Likewise.
1515 (iordi_zesidi_di): Likewise.
1516 (iordi_sesidi_di): Likewise.
1518 (xordi3_insn): Likewise.
1519 (xordi_sesidi_di): Likewise.
1520 (xordi_zesidi_di): Likewise.
1521 (one_cmpldi2): Likewise.
1522 (one_cmpldi2_insn): Likewise.
1523 * config/arm/constraints.md: Remove De, Df, Dg constraints.
1524 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
1526 (iwmmxt_xordi3): Likewise.
1527 (iwmmxt_anddi3): Likewise.
1528 * config/arm/neon.md (orndi3_neon): Remove pattern.
1529 (anddi_notdi_di): Likewise.
1530 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
1531 (arm_iordi_operand_neon): Likewise.
1532 (arm_xordi_operand_neon): Likewise.
1533 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
1534 (iordi_notzesidi_di): Likewise.
1535 (iordi_notdi_zesidi): Likewise.
1536 (iordi_notsesidi_di): Likewise.
1538 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
1540 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
1542 (iorsi3_compare0_scratch): Likewise.
1544 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
1546 * config/aarch64/aarch64-simd-builtins.def:
1549 * config/aarch64/aarch64-simd.md:
1550 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
1551 (aarch64_st1x4<VALLDIF:mode>): Likewise.
1552 (aarch64_ld1_x4_<mode>): Likewise.
1553 (aarch64_st1_x4_<mode>): Likewise.
1554 * config/aarch64/arm_neon.h:
1555 (vld1_s8_x4): New function.
1556 (vld1q_s8_x4): Likewise.
1557 (vld1_s16_x4): Likewise.
1558 (vld1q_s16_x4): Likewise.
1559 (vld1_s32_x4): Likewise.
1560 (vld1q_s32_x4): Likewise.
1561 (vld1_u8_x4): Likewise.
1562 (vld1q_u8_x4): Likewise.
1563 (vld1_u16_x4): Likewise.
1564 (vld1q_u16_x4): Likewise.
1565 (vld1_u32_x4): Likewise.
1566 (vld1q_u32_x4): Likewise.
1567 (vld1_f16_x4): Likewise.
1568 (vld1q_f16_x4): Likewise.
1569 (vld1_f32_x4): Likewise.
1570 (vld1q_f32_x4): Likewise.
1571 (vld1_p8_x4): Likewise.
1572 (vld1q_p8_x4): Likewise.
1573 (vld1_p16_x4): Likewise.
1574 (vld1q_p16_x4): Likewise.
1575 (vld1_s64_x4): Likewise.
1576 (vld1_u64_x4): Likewise.
1577 (vld1_p64_x4): Likewise.
1578 (vld1q_s64_x4): Likewise.
1579 (vld1q_u64_x4): Likewise.
1580 (vld1q_p64_x4): Likewise.
1581 (vld1_f64_x4): Likewise.
1582 (vld1q_f64_x4): Likewise.
1583 (vst1_s8_x4): Likewise.
1584 (vst1q_s8_x4): Likewise.
1585 (vst1_s16_x4): Likewise.
1586 (vst1q_s16_x4): Likewise.
1587 (vst1_s32_x4): Likewise.
1588 (vst1q_s32_x4): Likewise.
1589 (vst1_u8_x4): Likewise.
1590 (vst1q_u8_x4): Likewise.
1591 (vst1_u16_x4): Likewise.
1592 (vst1q_u16_x4): Likewise.
1593 (vst1_u32_x4): Likewise.
1594 (vst1q_u32_x4): Likewise.
1595 (vst1_f16_x4): Likewise.
1596 (vst1q_f16_x4): Likewise.
1597 (vst1_f32_x4): Likewise.
1598 (vst1q_f32_x4): Likewise.
1599 (vst1_p8_x4): Likewise.
1600 (vst1q_p8_x4): Likewise.
1601 (vst1_p16_x4): Likewise.
1602 (vst1q_p16_x4): Likewise.
1603 (vst1_s64_x4): Likewise.
1604 (vst1_u64_x4): Likewise.
1605 (vst1_p64_x4): Likewise.
1606 (vst1q_s64_x4): Likewise.
1607 (vst1q_u64_x4): Likewise.
1608 (vst1q_p64_x4): Likewise.
1609 (vst1_f64_x4): Likewise.
1610 (vst1q_f64_x4): Likewise.
1612 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1614 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
1616 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1617 Richard Sandiford <richard.sandiford@arm.com>
1620 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
1621 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
1623 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1626 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
1627 in reg if it fails aarch64_plus_operand predicate.
1629 2019-08-21 Richard Biener <rguenther@suse.de>
1631 PR tree-optimization/91482
1632 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
1633 BUILT_IN_ASSUME_ALIGNED calls.
1635 2019-08-21 Richard Biener <rguenther@suse.de>
1639 * config/i386/i386-features.c
1640 (general_scalar_chain::make_vector_copies): Copy stack temporary
1641 rtx when using it multiple times.
1642 (general_scalar_chain::convert_reg): Likewise.
1644 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1646 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
1648 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
1650 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
1651 catch more redundant zero initialization cases.
1652 (dse_dom_walker::dse_optimize_stmt): Likewise.
1654 2019-08-20 Richard Biener <rguenther@suse.de>
1657 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
1658 by collect2 when targetm.have_ctors_dtors which avoids dragging
1659 in temporary filenames from LTO input objects.
1661 2019-08-20 Richard Biener <rguenther@suse.de>
1663 PR tree-optimization/37242
1664 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
1665 to (T)a + (T)b if we know that a + b does not overflow.
1667 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
1669 PR rtl-optimization/91347
1670 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
1671 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
1673 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1675 * calls.h (function_arg_info): Add a pass_by_reference field,
1676 defaulting to false.
1677 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
1678 when applying pass-by-reference semantics.
1679 (initialize_argument_information): Likewise.
1680 (emit_library_call_value_1): Likewise.
1681 * function.c (assign_parm_data_one): Remove passed_pointer field.
1682 (assign_parm_find_data_types): Don't set it.
1683 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
1684 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
1685 arg.pass_by_reference instead of passed_pointer.
1687 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1689 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
1690 into a single function_arg_info, updating its fields when we
1691 apply pass-by-reference and promotion semantics. Use the
1692 function_arg_info to track the mode rather than keeping it in
1693 a separate local variable.
1694 (initialize_argument_information): Likewise. Base the final
1695 arg_to_skip on this new function_arg_info rather than creating
1696 a new one from scratch.
1698 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1700 * function.c (assign_parm_data_one): Replace passed_type,
1701 promoted_mode and named_arg with a function_arg_info field.
1702 (assign_parm_find_data_types): Remove local variables and
1703 assign directly to "data". Make data->passed_mode shadow
1704 data->arg.mode until promotion, then assign the promoted
1705 mode to data->arg.mode.
1706 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
1707 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
1708 (assign_parm_remove_parallels, assign_parm_setup_block_p)
1709 (assign_parm_setup_block, assign_parm_setup_reg)
1710 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
1711 arg.mode instead of promoted_mode, arg.type instead of passed_type
1712 and arg.named instead of named_arg. Use data->arg for
1713 function_arg_info structures that had the field values passed_type,
1714 promoted_mode and named_arg. Base other function_arg_infos on
1715 data->arg, changing the necessary properties.
1717 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1719 * calls.h (apply_pass_by_reference_rules): Declare.
1720 * calls.c (apply_pass_by_reference_rules): New function.
1721 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
1722 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
1723 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1724 * function.c (assign_parm_find_data_types): Likewise.
1725 * var-tracking.c (prepare_call_arguments): Likewise.
1727 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1729 * target.def (must_pass_in_stack): Take a function_arg_info instead
1730 of a mode and a type.
1731 * doc/tm.texi: Regenerate.
1732 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
1733 instead of a mode and a type.
1734 (must_pass_in_stack_var_size_or_pad): Likewise.
1735 * calls.c (must_pass_in_stack_var_size): Likewise.
1736 (must_pass_in_stack_var_size_or_pad): Likewise.
1737 (initialize_argument_information): Update call to
1738 targetm.calls.must_pass_in_stack.
1739 (must_pass_va_arg_on_stack): Likewise.
1740 * function.c (assign_parm_find_entry_rtl): Likewise.
1741 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
1742 * config/alpha/alpha.c (alpha_function_arg): Likewise.
1743 (alpha_function_arg_advance): Likewise.
1744 * config/cr16/cr16.c (cr16_function_arg): Likewise.
1745 (cr16_function_arg_advance): Likewise.
1746 * config/cris/cris.c (cris_pass_by_reference): Likewise.
1747 (cris_arg_partial_bytes): Likewise.
1748 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
1749 * config/lm32/lm32.c (lm32_function_arg): Likewise.
1750 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
1751 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
1752 * config/mips/mips.c (mips_pass_by_reference): Likewise.
1753 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
1754 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
1755 * config/sh/sh.c (sh_pass_by_reference): Likewise.
1756 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
1757 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1758 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
1759 instead of a mode and a type.
1760 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
1761 (fr30_num_arg_regs): Likewise.
1762 (fr30_setup_incoming_varargs): Update calls accordingly.
1763 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1764 (fr30_function_arg_advance): Likewise.
1765 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
1766 instead of a mode and a type.
1767 * config/gcn/gcn.c (num_arg_regs): Likewise.
1768 (gcn_function_arg, gcn_function_arg_advance): Update calls to
1769 num_arg_regs and targetm.calls.must_pass_in_stack.
1770 (gcn_arg_partial_bytes): Likewise.
1771 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
1772 function_arg_info instead of a mode and a type.
1773 (classify_argument): Update call accordingly.
1774 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
1775 function_arg_info instead of a mode and a type.
1776 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
1778 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
1779 (rs6000_parm_needs_stack): Update call accordingly.
1780 (setup_incoming_varargs): Likewise.
1782 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1784 * target.def (callee_copies): Take a function_arg_info instead
1785 of a mode, type and named flag.
1786 * doc/tm.texi: Regenerate.
1787 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
1788 instead of a mode, type and named flag.
1789 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
1790 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1791 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
1792 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
1793 instead of a mode, type and named flag.
1794 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
1795 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1796 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
1797 * calls.h (reference_callee_copied): Take a function_arg_info
1798 instead of a mode, type and named flag.
1799 * calls.c (reference_callee_copied): Likewise.
1800 (initialize_argument_information): Update call accordingly.
1801 (emit_library_call_value_1): Likewise.
1802 * function.c (gimplify_parameters): Likewise.
1803 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
1804 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
1805 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
1806 * config/c6x/c6x.c (c6x_callee_copies): Delete.
1807 (TARGET_CALLEE_COPIES): Define to
1808 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
1809 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
1810 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
1811 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
1812 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
1813 instead of a mode, type and named flag.
1814 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
1815 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
1816 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
1817 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
1818 * config/msp430/msp430.c (msp430_callee_copies): Delete.
1819 (TARGET_CALLEE_COPIES): Define to
1820 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
1821 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
1822 instead of a mode, type and named flag.
1823 * config/sh/sh.c (sh_callee_copies): Likewise.
1824 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
1825 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
1826 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
1828 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1830 * target.def (function_arg_advance): Take a function_arg_info instead
1831 of a mode, type and named flag.
1832 * doc/tm.texi: Regenerate.
1833 * targhooks.h (default_function_arg_advance): Take a function_arg_info
1834 instead of a mode, type and named flag.
1835 * targhooks.c (default_function_arg_advance): Likewise.
1836 * calls.c (initialize_argument_information): Update call to
1837 targetm.calls.function_arg_advance.
1838 (emit_library_call_value_1): Likewise.
1839 * dse.c (get_call_args): Likewise.
1840 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1841 * function.c (assign_parms, gimplify_parameters): Likewise.
1842 * var-tracking.c (prepare_call_arguments): Likewise.
1843 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
1844 function_arg_info instead of a mode, type and named flag.
1845 (aarch64_setup_incoming_varargs): Update call accordingly.
1846 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
1847 function_arg_info instead of a mode, type and named flag.
1848 (alpha_setup_incoming_varargs): Update call accordingly.
1849 * config/arc/arc.c (arc_function_arg_advance): Take a
1850 function_arg_info instead of a mode, type and named flag.
1851 (arc_setup_incoming_varargs): Update call accordingly.
1852 * config/arm/arm.c (arm_function_arg_advance): Take a
1853 function_arg_info instead of a mode, type and named flag.
1854 (cmse_func_args_or_return_in_stack): Update call accordingly.
1855 (arm_function_ok_for_sibcall): Likewise.
1856 (cmse_nonsecure_call_clear_caller_saved): Likewise.
1857 * config/avr/avr.c (avr_function_arg_advance): Take a
1858 function_arg_info instead of a mode, type and named flag.
1859 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
1860 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
1861 (c6x_call_saved_register_used): Update call accordingly.
1862 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
1863 function_arg_info instead of a mode, type and named flag.
1864 * config/cris/cris.c (cris_function_arg_advance): Likewise.
1865 * config/csky/csky.c (csky_function_arg_advance): Likewise.
1866 (csky_setup_incoming_varargs): Update call accordingly.
1867 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
1868 function_arg_info instead of a mode, type and named flag.
1869 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
1870 * config/frv/frv.c (frv_function_arg_advance): Likewise.
1871 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
1872 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
1873 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
1874 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1875 (ix86_setup_incoming_varargs): Update call accordingly.
1876 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
1877 function_arg_info instead of a mode, type and named flag.
1878 (ia64_setup_incoming_varargs): Update call accordingly.
1879 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
1880 function_arg_info instead of a mode, type and named flag.
1881 (iq2000_expand_prologue): Update call accordingly.
1882 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
1883 function_arg_info instead of a mode, type and named flag.
1884 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
1885 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
1886 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1887 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
1888 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1890 (microblaze_expand_prologue): Update call accordingly.
1891 * config/mips/mips.c (mips_function_arg_advance): Take a
1892 function_arg_info instead of a mode, type and named flag.
1893 (mips_setup_incoming_varargs): Update call accordingly.
1894 (mips_output_args_xfer): Likewise.
1895 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
1896 function_arg_info instead of a mode, type and named flag.
1897 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
1898 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
1899 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
1900 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
1901 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
1902 (nios2_setup_incoming_varargs): Update call accordingly.
1903 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
1904 function_arg_info instead of a mode, type and named flag.
1905 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
1906 * config/pa/pa.c (pa_function_arg_advance): Likewise.
1907 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
1908 * config/pru/pru.c (pru_function_arg_advance): Likewise.
1909 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
1910 (riscv_setup_incoming_varargs): Update call accordingly.
1911 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
1912 function_arg_info instead of a mode, type and named flag.
1913 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
1915 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
1916 (rs6000_parm_needs_stack): Update call accordingly.
1917 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
1918 instead of a mode, type and named flag.
1919 * config/s390/s390.c (s390_function_arg_advance): Likewise.
1920 (s390_call_saved_register_used): Update call accordingly.
1921 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
1922 instead of a mode, type and named flag.
1923 (sh_output_mi_thunk): Update call accordingly.
1924 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
1925 function_arg_info instead of a mode, type and named flag.
1926 * config/spu/spu.c (spu_function_arg_advance): Likewise.
1927 (spu_setup_incoming_varargs): Update call accordingly.
1928 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
1929 function_arg_info instead of a mode, type and named flag.
1930 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
1931 (tilegx_setup_incoming_varargs): Update call accordingly.
1932 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
1933 function_arg_info instead of a mode, type and named flag.
1934 (tilegx_setup_incoming_varargs): Update call accordingly.
1935 * config/v850/v850.c (v850_function_arg_advance): Take a
1936 function_arg_info instead of a mode, type and named flag.
1937 * config/vax/vax.c (vax_function_arg_advance): Likewise.
1938 * config/visium/visium.c (visium_function_arg_advance): Likewise.
1939 (visium_setup_incoming_varargs): Update call accordingly.
1940 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
1941 function_arg_info instead of a mode, type and named flag.
1943 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1945 * target.def (function_arg, function_incoming_arg): Take a
1946 function_arg_info instead of a mode, tree and named flag.
1947 * doc/tm.texi: Regenerate.
1948 * targhooks.h (default_function_arg): Take a function_arg_info
1949 instead of a mode, tree and named flag.
1950 (default_function_incoming_arg): Likewise.
1951 * targhooks.c (default_function_arg): Likewise.
1952 (default_function_incoming_arg): Likewise.
1953 * calls.h (function_arg_info::end_marker_p): New function.
1954 (function_arg_info::end_marker): Likewise.
1955 * calls.c (prepare_call_address, initialize_argument_information)
1956 (expand_call, emit_library_call_value_1): Update calls to
1957 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
1958 * dse.c: Include calls.h.
1959 (get_call_args): Update call to targetm.calls.function_arg.
1960 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1961 * var-tracking.c (prepare_call_arguments): Likewise.
1962 * function.c (assign_parm_find_entry_rtl): Update call to
1963 targetm.calls.function_incoming_arg.
1964 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
1965 function_arg_info instead of a mode, tree and named flag.
1966 * config/alpha/alpha.c (alpha_function_arg): Likewise.
1967 * config/arc/arc.c (arc_function_arg): Likewise.
1968 * config/arm/arm.c (arm_function_arg): Likewise.
1969 (cmse_func_args_or_return_in_stack): Update call accordingly.
1970 (arm_function_ok_for_sibcall): Likewise.
1971 (cmse_nonsecure_call_clear_caller_saved): Likewise.
1972 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
1973 instead of a mode, tree and named flag.
1974 * config/bfin/bfin.c (bfin_function_arg): Likewise.
1975 * config/c6x/c6x.c (c6x_function_arg): Likewise.
1976 (c6x_call_saved_register_used): Update call accordingly.
1977 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
1978 instead of a mode, tree and named flag.
1979 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
1980 (cris_function_arg_1): Likewise.
1981 * config/csky/csky.c (csky_function_arg): Likewise.
1982 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
1983 * config/fr30/fr30.c (fr30_function_arg): Likewise.
1984 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
1985 (frv_function_arg_1): Likewise.
1986 * config/ft32/ft32.c (ft32_function_arg): Likewise.
1987 * config/gcn/gcn.c (gcn_function_arg): Likewise.
1988 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1989 * config/i386/i386.c (ix86_function_arg): Likewise.
1990 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
1991 (ia64_function_arg_1): Likewise.
1992 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
1993 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
1995 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
1996 instead of a mode, tree and named flag.
1997 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1998 * config/m32r/m32r.c (m32r_function_arg): Likewise.
1999 * config/m68k/m68k.c (m68k_function_arg): Likewise.
2000 * config/mcore/mcore.c (mcore_function_arg): Likewise.
2001 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
2002 (microblaze_expand_prologue): Update call accordingly.
2003 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
2004 instead of a mode, tree and named flag.
2005 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
2006 (mmix_function_arg_1): Likewise.
2007 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
2008 * config/moxie/moxie.c (moxie_function_arg): Likewise.
2009 * config/msp430/msp430.c (msp430_function_arg): Likewise.
2010 * config/nds32/nds32.c (nds32_function_arg): Likewise.
2011 * config/nios2/nios2.c (nios2_function_arg): Likewise.
2012 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
2013 (nvptx_function_incoming_arg): Likewise.
2014 * config/or1k/or1k.c (or1k_function_arg): Likewise.
2015 * config/pa/pa.c (pa_function_arg): Likewise.
2016 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
2017 * config/pru/pru.c (pru_function_arg): Likewise.
2018 * config/riscv/riscv.c (riscv_function_arg): Likewise.
2019 * config/rl78/rl78.c (rl78_function_arg): Likewise.
2020 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
2021 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
2022 (rs6000_parm_needs_stack): Update call accordingly.
2023 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
2024 instead of a mode, tree and named flag.
2025 * config/s390/s390.c (s390_function_arg): Likewise.
2026 (s390_call_saved_register_used): Update call accordingly.
2027 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
2028 instead of a mode, tree and named flag.
2029 (sh_output_mi_thunk): Update call accordingly.
2030 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
2031 (sparc_function_incoming_arg): Take a function_arg_info instead of
2032 a mode, tree and named flag.
2033 * config/spu/spu.c (spu_function_arg): Likewise.
2034 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
2035 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
2036 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
2037 * config/v850/v850.c (v850_function_arg): Likewise.
2038 * config/vax/vax.c (vax_function_arg): Likewise.
2039 * config/visium/visium.c (visium_function_arg): Likewise.
2040 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
2041 (xtensa_function_incoming_arg): Likewise.
2043 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2045 * target.def (setup_incoming_varargs): Take a function_arg_info
2046 instead of a mode and tree.
2047 * doc/tm.texi: Regenerate.
2048 * targhooks.h (default_setup_incoming_varargs): Take a
2049 function_arg_info instead of a mode and tree.
2050 * targhooks.c (default_setup_incoming_varargs): Likewise.
2051 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
2052 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
2053 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
2054 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
2055 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
2056 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
2057 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
2058 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
2060 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
2061 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
2062 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
2063 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
2064 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
2065 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
2066 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
2067 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
2068 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
2069 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
2070 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
2071 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
2072 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
2073 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
2074 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
2075 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
2076 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
2077 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
2078 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
2079 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
2080 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
2081 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
2082 * function.c (assign_parms_setup_varargs): Update call to
2083 targetm.calls.setup_incoming_varargs.
2085 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2087 * target.def (pass_by_reference): Take a function_arg_info instead
2088 of a mode, type and named flag.
2089 * doc/tm.texi: Regenerate.
2090 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
2092 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
2093 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
2094 function_arg_info instead of a mode, type and named flag.
2095 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
2096 * calls.h (pass_by_reference): Take a function_arg_info instead of a
2097 mode, type and named flag.
2098 * calls.c (pass_by_reference): Likewise.
2099 (pass_va_arg_by_reference): Update call accordingly.
2100 (initialize_argument_information): Likewise.
2101 (emit_library_call_value_1): Likewise.
2102 * function.c (assign_parm_find_data_types): Likewise.
2103 * var-tracking.c (prepare_call_arguments): Likewise.
2104 * stor-layout.c: Include calls.h.
2105 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
2106 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
2107 function_arg_info instead of a mode, type and named flag.
2108 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
2109 * config/arc/arc.c (arc_pass_by_reference): Likewise.
2110 * config/arm/arm.c (arm_pass_by_reference): Likewise.
2111 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
2112 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
2113 (c6x_call_saved_register_used): Update call to pass_by_reference.
2114 * config/cris/cris.c (cris_pass_by_reference): Take a
2115 function_arg_info instead of a mode, type and named flag.
2116 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
2117 function_arg_info instead of a mode, type and named flag.
2118 (epiphany_arg_partial_bytes): Update call accordingly.
2119 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
2120 function_arg_info instead of a mode, type and named flag.
2121 (ft32_arg_partial_bytes): Update call accordingly.
2122 * config/i386/i386.c (ix86_pass_by_reference): Take a
2123 function_arg_info instead of a mode, type and named flag.
2124 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
2125 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
2126 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
2127 (m32r_return_in_memory): Update call accordingly.
2128 * config/mips/mips.c (mips_pass_by_reference): Take a
2129 function_arg_info instead of a mode, type and named flag.
2130 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
2131 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
2132 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
2133 (moxie_arg_partial_bytes): Update call accordingly.
2134 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
2135 function_arg_info instead of a mode, type and named flag.
2136 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
2137 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
2138 * config/pa/pa.c (pa_pass_by_reference): Likewise.
2139 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
2140 (riscv_return_in_memory): Update call accordingly.
2141 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
2142 function_arg_info instead of a mode, type and named flag.
2143 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
2144 (rs6000_parm_needs_stack): Update call to pass_by_reference.
2145 * config/s390/s390.c (s390_pass_by_reference): Take a
2146 function_arg_info instead of a mode, type and named flag.
2147 (s390_call_saved_register_used): Update call accordingly.
2148 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
2149 instead of a mode, type and named flag.
2150 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
2151 * config/spu/spu.c (spu_pass_by_reference): Likewise.
2152 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
2153 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
2154 * config/v850/v850.c (v850_pass_by_reference): Likewise.
2155 * config/visium/visium.c (visium_pass_by_reference): Likewise.
2157 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2159 * target.def (arg_partial_bytes): Take a function_arg_info instead
2160 of a mode, type and named flag.
2161 * doc/tm.texi: Regenerate.
2162 * target.h (function_arg_info): Declare.
2163 * calls.h (function_arg_info): New class.
2164 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
2165 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
2166 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
2167 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
2168 * calls.c (initialize_argument_information): Update call to
2169 targetm.calls.partial_bytes.
2170 (emit_library_call_value_1): Likewise.
2171 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2172 * function.c (assign_parm_find_entry_rtl): Likewise.
2173 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
2174 function_arg_info instead of a mode, type and named flag.
2175 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
2176 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
2177 (cmse_func_args_or_return_in_stack): Update accordingly.
2178 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
2179 function_arg_info instead of a mode, type and named flag.
2180 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
2181 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
2182 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
2183 * config/fr30/fr30.c: Include calls.h.
2184 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
2185 type and named flag.
2186 * config/frv/frv.c: Include calls.h.
2187 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
2188 type and named flag.
2189 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
2190 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
2191 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
2192 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
2193 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
2194 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
2195 * config/microblaze/microblaze.c (function_arg_partial_bytes):
2197 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
2198 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
2199 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
2200 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
2201 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
2202 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
2203 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
2204 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
2205 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
2206 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
2207 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
2208 (rs6000_parm_needs_stack): Update call accordingly.
2209 * config/sh/sh.c (sh_arg_partial_bytes): Take a
2210 function_arg_info instead of a mode, type and named flag.
2211 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
2212 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
2214 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2216 * calls.h (must_pass_va_arg_in_stack): Declare.
2217 * calls.c (must_pass_va_arg_in_stack): New function.
2218 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
2219 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
2220 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
2222 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2224 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2226 * calls.h (pass_va_arg_by_reference): Declare.
2227 * calls.c (pass_va_arg_by_reference): New function.
2228 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
2229 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
2230 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
2231 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2232 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2233 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
2234 (mips_gimplify_va_arg_expr): Likewise.
2235 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
2236 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2237 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
2238 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
2239 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
2240 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
2241 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
2242 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
2243 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
2244 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2245 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
2247 2019-08-20 Richard Biener <rguenther@suse.de>
2250 * config/i386/i386-features.c (general_scalar_chain::convert_op):
2251 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
2252 (convert_scalars_to_vector): Add timode_p parameter and use it
2253 to guard TImode-only operation.
2254 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
2255 (pass_stv::execute): Pass down timode_p.
2257 2019-08-20 Lili Cui <lili.cui@intel.com>
2259 * common/config/i386/i386-common.c
2260 (processor_names): Add tigerlake and cooperlake.
2261 (processor_alias_table): Add tigerlake and cooperlake.
2262 * config.gcc: Add -march=tigerlake and cooperlake.
2263 * config/i386/driver-i386.c
2264 (host_detect_local_cpu): Detect tigerlake and cooperlake.
2265 Add "has_avx" to classify processor.
2266 * config/i386/i386-builtins.c (processor_model) :
2267 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
2268 (arch_names_table): Add tigerlake and cooperlake.
2269 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
2270 and PROCESSOR_COOPERLAKE.
2271 * config/i386/i386-c.c
2272 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
2273 * config/i386/i386-options.c
2274 (m_TIGERLAKE) : Define.
2275 (m_COOPERLAKE) : Ditto.
2276 (m_CORE_AVX512): Ditto.
2277 (processor_cost_table): Add cascadelake.
2278 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
2279 * config/i386/i386.h
2280 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
2281 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
2282 (PTA_MOVDIRI): Ditto.
2283 (PTA_MOVDIR64B): Ditto.
2284 (PTA_COOPERLAKE) : Ditto.
2285 (PTA_TIGERLAKE) : Ditto.
2286 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
2287 * doc/extend.texi: Add tigerlake and cooperlake.
2288 * doc/invoke.texi: Add tigerlake and cooperlake.
2290 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
2292 * doc/install.texi (Specific, alpha): Remove note to use
2293 binutils 2.11.2 or later.
2295 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
2298 * function.c (assign_parm_find_stack_rtl): Use larger alignment
2301 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
2303 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
2304 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
2305 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
2306 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
2307 * config/aarch64/constraints.md (Dt): New constraint
2308 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
2310 2019-08-19 Richard Biener <rguenther@suse.de>
2312 PR tree-optimization/91403
2313 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
2314 cases we can handle with tail-recursion...
2315 (follow_ssa_edge_expr): ... here. Do so.
2317 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
2320 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
2321 implemented for -fsanitize=kernel-address, and merge check logic
2322 with -fsanitize=address.
2324 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
2326 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
2327 for cpu and machine. Factor 64/32b builtins.
2329 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
2331 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
2332 gone, point to sourceforge.net.
2334 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
2336 * doc/ux.texi (User Experience Guidelines): Update reference.
2338 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
2340 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
2343 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
2345 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
2346 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
2348 2019-08-16 Martin Sebor <msebor@redhat.com>
2350 * tree.def (TYPE_SIZE): Clarify.
2351 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
2353 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2355 PR tree-optimization/91109
2356 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
2357 * lra.c (lra): Use lra_need_for_scratch_reg_p.
2358 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
2360 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
2362 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
2363 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
2364 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
2365 (uavg<mode>3_ceil): New expander.
2366 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
2367 mode iterator when creating CONST1_RTX.
2368 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
2369 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
2370 mode iterator for const1_operand predicate.
2372 2019-08-16 Richard Biener <rguenther@suse.de>
2374 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
2375 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
2377 (follow_ssa_edge_in_condition_phi_branch): Likewise.
2378 (analyze_evolution_in_loop): Likewise.
2379 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
2380 (follow_ssa_edge_expr): ... here. Refactor code.
2382 2019-08-16 Richard Biener <rguenther@suse.de>
2385 * config/i386/i386-features.c
2386 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
2388 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2391 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
2392 only if subst_name matches curr_attr string.
2394 2019-08-16 Richard Biener <rguenther@suse.de>
2396 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
2397 stmt at gsi_p, instead replace it with a NOP removed later.
2398 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
2399 that became dead because of that.
2401 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
2403 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
2404 for which we can't represent a range.
2405 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
2407 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
2408 Set VR_UNDEFINED if type is not supported.
2409 * tree-ssanames.c (get_range_info): Pass type to set_varying.
2410 * tree-vrp.c (value_range_base::check): Assert that a varying has
2412 (value_range_base::equal_p): Early bail for undefines.
2413 (value_range_base::set_varying): Accept a type.
2414 (value_range::set_varying): Same.
2415 (value_range_base::type): VARYING can have a type, while UNDEFINE
2417 (value_range_base::dump): Print type for VARYING nodes.
2418 (value_range_base::set): Add type to VARYING.
2419 (extract_range_from_multiplicative_op): Pass type to set_varying.
2420 (extract_range_from_binary_expr): Same.
2421 (value_range_base::intersect_helper): Same.
2422 (value_range_base::union_helper): Same.
2423 (value_range_base::normalize_symbolics): Same.
2424 (determine_value_range_1): Same.
2425 * tree-vrp.h (class value_range_base): Add type to set_varying.
2426 Add prototype for dump(void).
2427 Add prototype for supports_type_p.
2428 (class value_range): Add type to set_varying.
2429 Add prototype for dump(void).
2430 * vr-values.c (set_value_range_to_truthvalue): Pass type to
2432 (vr_values::get_lattice_entry): Set varying even if propagation
2434 Pass type to set_varying.
2435 (vr_values::get_value_range): Remove vr_const_varying.
2436 Reallocate the lattice if needed.
2437 (vr_values::update_value_range): Pass type to set_varying.
2438 (vr_values::extract_range_for_var_from_comparison_expr): Same.
2439 (vr_values::extract_range_from_binary_expr): Same.
2440 (vr_values::extract_range_from_unary_expr): Same.
2441 (vr_values::extract_range_from_cond_expr): Same.
2442 (vr_values::check_for_binary_op_overflow): Same.
2443 (vr_values::extract_range_basic): Same.
2444 (vr_values::extract_range_from_assignment): Same.
2445 (vr_values::vr_values): Increase size of num_vr_values.
2446 (vr_values::extract_range_from_phi_node): Pass type to
2449 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
2452 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
2453 for costs of hard register moves.
2454 (ix86_register_move_cost): Likewise.
2455 * config/i386/i386.h (processor_costs): Move costs of hard
2456 register moves to hard_register. Add int_load, int_store,
2457 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
2458 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
2459 for costs of RTL expressions.
2460 * config/i386/x86-tune-costs.h: Move costs of hard register
2461 moves to hard_register. Duplicate int_load, int_store,
2462 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
2463 sse_load, sse_store for costs of RTL expressions.
2465 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2467 * target.def (setup_incoming_vararg_bounds): Remove.
2468 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
2469 * doc/tm.texi: Regenerate.
2470 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
2471 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
2472 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
2473 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
2475 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2477 MSP430: Fix lines over 80 characters long in
2478 config/msp430/*.{c,h} files
2480 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
2481 specifier in string.
2482 (msp430_select_hwmult_lib): Split line more than 80 characters long.
2483 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
2484 redundant old comment.
2485 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
2486 Split line more than 80 characters long.
2487 * config/msp430/msp430.c (msp430_option_override): Likewise.
2488 (msp430_return_in_memory): Likewise.
2489 (msp430_gimplify_va_arg_expr): Likewise.
2490 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
2491 (msp430_legitimate_constant): Likewise.
2492 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
2493 (msp430_attr): Likewise.
2494 (msp430_data_attr): Likewise.
2495 (msp430_start_function): Likewise.
2496 (gen_prefix): Likewise.
2497 (msp430_init_sections): Likewise.
2498 (msp430_select_section): Likewise.
2499 (msp430_function_section): Likewise.
2500 (msp430_unique_section): Likewise.
2501 (msp430_output_aligned_decl_common): Likewise.
2502 (msp430_do_not_relax_short_jumps): Likewise.
2503 (msp430_init_builtins): Likewise.
2504 (msp430_expand_delay_cycles): Likewise.
2505 (msp430_expand_prologue): Likewise.
2506 (msp430_expand_epilogue): Likewise.
2507 (msp430_expand_helper): Likewise.
2508 (msp430_split_movsi): Likewise.
2509 (msp430_print_operand): Likewise.
2510 (msp430_return_addr_rtx): Likewise.
2511 (msp430x_extendhisi): Likewise.
2512 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
2513 (ASM_SPEC): Likewise.
2514 Remove very obvious comments.
2515 (LIB_SPEC): Split line more than 80 characters long.
2516 (EH_RETURN_HANDLER_RTX): Likewise.
2517 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2519 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2521 MSP430: Fix whitespace errors and incorrect indentation in
2522 config/msp430/*.{c,h} files
2524 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
2525 (msp430_select_hwmult_lib): Likewise.
2526 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
2527 (msp430_extract_mcu_data): Likewise.
2528 (struct t_msp430_mcu_data): Likewise.
2529 * config/msp430/msp430.c (struct machine_function): Remove whitespace
2530 before left square bracket.
2531 (msp430_option_override): Fix indentation.
2532 (msp430_hard_regno_nregs_with_padding): Likewise.
2533 (msp430_initial_elimination_offset): Likewise.
2534 (msp430_special_register_convention_p): Remove whitespace before left
2535 square bracket and after exclamation mark.
2536 (msp430_evaluate_arg): Likewise.
2537 (msp430_callee_copies): Fix indentation.
2538 (msp430_gimplify_va_arg_expr): Likewise.
2539 (msp430_function_arg_advance): Remove whitespace before left square
2541 (reg_ok_for_addr): Likewise.
2542 (msp430_preserve_reg_p): Likewise.
2543 (msp430_compute_frame_info): Likewise.
2544 (msp430_asm_output_addr_const_extra): Add space between function name
2545 and open parenthesis.
2546 (has_section_name): Fix indentation.
2547 (msp430_attr): Remove trailing whitespace.
2548 (msp430_section_attr): Likewise.
2549 (msp430_data_attr): Likewise.
2550 (struct msp430_attribute_table): Fix comment and whitespace.
2551 (msp430_start_function): Remove whitespace before left square bracket.
2552 Add space between function name and open parenthesis.
2553 (msp430_select_section): Remove trailing whitespace.
2554 (msp430_section_type_flags): Remove trailing whitespace.
2555 (msp430_unique_section): Remove space before closing parenthesis.
2556 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
2557 (msp430_builtins): Remove whitespace before left square bracket.
2558 (msp430_init_builtins): Fix indentation.
2559 (msp430_expand_prologue): Remove whitespace before left square bracket.
2560 Remove space before closing parenthesis.
2561 (msp430_expand_epilogue): Remove whitespace before left square bracket.
2562 (msp430_split_movsi): Remove space before closing parenthesis.
2563 (helper_function_name_mappings): Fix indentation.
2564 (msp430_use_f5_series_hwmult): Fix whitespace.
2565 (use_32bit_hwmult): Likewise.
2566 (msp430_no_hwmult): Likewise.
2567 (msp430_output_labelref): Remove whitespace before left square bracket.
2568 (msp430_print_operand_raw): Likewise.
2569 (msp430_print_operand_addr): Likewise.
2570 (msp430_print_operand): Add two spaces after '.' in comment.
2571 Fix trailing whitespace.
2572 (msp430x_extendhisi): Fix indentation.
2573 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
2575 (PC_REGNUM): Likewise.
2576 (STACK_POINTER_REGNUM): Likewise.
2577 (CC_REGNUM): Likewise.
2579 2019-08-15 Richard Biener <rguenther@suse.de>
2582 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
2584 (general_scalar_chain::make_vector_copies): Use it.
2586 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
2588 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
2590 2019-08-15 Martin Liska <mliska@suse.cz>
2592 * tree-ssa-dce.c (propagate_necessity): We can't reach now
2593 operators with no arguments.
2594 (eliminate_unnecessary_stmts): Likewise here.
2596 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
2598 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
2599 <case COMPARE>: Revert 2019-08-14 change.
2600 (convertible_comparison_p): Revert 2019-08-14 change. Return false
2601 for (TARGET_64BIT || mode != DImode).
2603 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
2605 * tree-vrp.c (value_range_base::set): Merge in code from
2606 value_range_base::set_and_canonicalize.
2607 Enforce canonicalization at set time.
2608 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
2609 (value_range_base::set_undefined): Inline call to set().
2610 (value_range_base::set_varying): Same.
2611 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
2612 (vrp_val_max): New argument handle_pointers.
2613 (vrp_val_min): Same.
2614 (ranges_from_anti_range): Same.
2615 (extract_range_into_wide_ints): Use tree argument instead of sign
2617 (extract_range_from_multiplicative_op): Take in tree type instead
2618 of precision and sign. Adapt function for canonicalized ranges.
2619 (extract_range_from_binary_expr): Pass type to
2620 extract_range_from_multiplicative_op.
2621 Adapt for canonicalized ranges.
2622 (extract_range_from_unary_expr): Same.
2623 (value_range_base::intersect_helper): Adjust for canonicalized
2625 (value_range_base::union_helper): Same.
2626 (value_range_base::normalize_symbolics): New.
2627 * tree-vrp.h (class value_range_base): Remove
2628 set_and_canonicalize.
2629 New prototype for normalize_symbolics.
2630 (class value_range): Remove set_and_canonicalize.
2631 (vrp_val_min): Adjust prototype.
2632 (vrp_val_max): Same.
2634 (vr_values::extract_range_for_var_from_comparison_expr): Call set
2635 instead of set_and_canonicalize.
2637 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2640 * tree-vect-stmts.c (vectorizable_call): Check that the function
2641 is a BUILT_IN_MD function before passing it to
2642 targetm.vectorize.builtin_md_vectorized_function.
2644 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2646 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
2647 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
2648 (aarch64_select_early_remat_modes): Use it.
2650 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2652 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
2653 16 for SVE predicates even if they are fixed-length.
2655 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2657 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
2658 operand order match the MOV /Z alias.
2660 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2662 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
2663 the vector pattern as an aarch64_svpattern argument. Update the
2664 overloaded caller accordingly.
2665 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
2666 (aarch64_output_sve_vector_inc_dec): Likewise.
2668 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2670 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
2671 multiplication case, try to compute VG * (lowest set bit) directly
2672 rather than always basing the multiplication on VG. Use
2673 expand_mult for the multiplication if we can.
2675 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2677 * config/aarch64/aarch64-protos.h
2678 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
2679 (aarch64_sve_inc_dec_immediate_p): Rename to...
2680 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
2681 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
2682 (aarch64_output_sve_scalar_inc_dec): Declare.
2683 (aarch64_output_sve_inc_dec_immediate): Rename to...
2684 (aarch64_output_sve_vector_inc_dec): ...this.
2685 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
2686 (aarch64_output_sve_scalar_inc_dec): New functions.
2687 (aarch64_output_sve_addvl_addpl): Remove the base and offset
2688 arguments. Only handle true ADDVL and ADDPL instructions;
2689 don't emit an INC or DEC.
2690 (aarch64_sve_inc_dec_immediate_p): Rename to...
2691 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
2692 (aarch64_output_sve_inc_dec_immediate): Rename to...
2693 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
2694 aarch64_sve_vector_inc_dec_immediate_p.
2695 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
2696 (aarch64_sve_plus_immediate): New predicates.
2697 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
2698 rather than aarch64_sve_addvl_addpl_immediate.
2699 (aarch64_sve_inc_dec_immediate): Rename to...
2700 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
2701 aarch64_sve_vector_inc_dec_immediate_p.
2702 (aarch64_sve_add_operand): Update accordingly.
2703 * config/aarch64/constraints.md (Uai): New constraint.
2704 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
2705 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
2706 operand into a register if it satisfies aarch64_sve_plus_immediate.
2707 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
2708 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
2709 * config/aarch64/aarch64-sve.md (add<mode>3): Call
2710 aarch64_output_sve_vector_inc_dec instead of
2711 aarch64_output_sve_inc_dec_immediate.
2713 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2715 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
2716 (UNSPEC_REVW): New constants.
2717 (elem_bits): New mode attribute.
2718 (SVE_INT_UNARY): New int iterator.
2719 (optab): Handle UNSPEC_REV[BHW].
2720 (sve_int_op): New int attribute.
2721 (min_elem_bits): Handle VNx16QI and the predicate modes.
2722 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
2723 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
2724 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
2725 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
2726 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
2727 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
2728 unspecs based on the total width of the reversed data.
2729 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
2730 reinterpret followed by a subreg on big-endian targets.
2732 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2733 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2735 * config/aarch64/aarch64-sve.md
2736 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
2737 alternatives in which one of the inputs is in the same register
2740 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2742 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
2743 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
2745 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2747 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
2748 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
2750 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2751 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2753 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
2754 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
2755 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
2757 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2758 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2760 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
2761 Add an alternative that uses reversed shifts.
2763 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2765 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
2768 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2770 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
2771 a commutativity marker.
2773 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2774 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2776 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
2777 (aarch64_prepare_sve_cond_int_fma): Declare.
2778 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
2779 (aarch64_prepare_sve_int_fma): New functions.
2780 (aarch64_prepare_sve_cond_int_fma): Likewise.
2781 * config/aarch64/aarch64-sve.md
2782 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
2783 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
2784 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
2785 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
2786 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
2787 (*madd<mode>): Rename to...
2788 (*fma<mode>4): ...this.
2789 (*msub<mode>): Rename to...
2790 (*fnma<mode>4): ...this.
2792 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2793 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2795 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
2796 Print 2.0 naturally.
2797 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
2798 * config/aarch64/predicates.md
2799 (aarch64_sve_float_negated_arith_immediate): New predicate,
2800 renamed from aarch64_sve_float_arith_with_sub_immediate.
2801 (aarch64_sve_float_arith_with_sub_immediate): Test for both
2802 positive and negative constants.
2803 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
2804 or an aarch64_sve_float_arith_with_sub_immediate.
2805 * config/aarch64/constraints.md (vsN): Use
2806 aarch64_sve_float_negated_arith_immediate.
2807 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
2809 (sve_pred_fp_rhs2_immediate): New int attribute.
2810 * config/aarch64/aarch64-sve.md
2811 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
2812 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
2813 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
2814 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
2815 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
2816 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
2818 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2819 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2821 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
2822 (*aarch64_cond_abd<SVE_F:mode>_3)
2823 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
2825 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2826 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2828 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
2829 (*aarch64_cond_<su>abd<mode>_any): New patterns.
2831 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2832 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2834 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
2835 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
2836 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
2837 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
2839 * optabs.h (create_convert_operand_from): Expand comment.
2840 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
2841 when mapping scalar rtxes to vector operands.
2842 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
2843 ashiftrt and lshiftrt.
2844 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
2845 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
2846 (*cond_<optab><mode>_any_const): New patterns.
2848 2019-08-15 Martin Liska <mliska@suse.cz>
2851 * cgraph.c (cgraph_node::remove): When setting
2852 n->origin = NULL for all nested functions, reset
2855 2019-08-15 Martin Liska <mliska@suse.cz>
2857 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
2860 2019-08-15 Martin Liska <mliska@suse.cz>
2863 * passes.c (order): Remove.
2864 (uid_hash_t): Likewise).
2865 (remove_cgraph_node_from_order): Remove from set
2866 of pointers (cgraph_node *).
2867 (insert_cgraph_node_to_order): New.
2868 (duplicate_cgraph_node_to_order): New.
2869 (do_per_function_toporder): Register all 3 cgraph hooks.
2870 Skip removed_nodes now as we know about all of them.
2872 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
2874 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
2875 <case E_V8QImode>: Use vector_set path for
2876 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2877 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
2878 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2880 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2882 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
2884 2019-08-14 Martin Sebor <msebor@redhat.com>
2886 PR tree-optimization/91294
2887 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
2888 source length as exact.
2890 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
2892 * doc/extend.texi: Add "noinit" attribute documentation.
2893 * doc/sourcebuild.texi: Add noinit effective target documentation.
2894 * varasm.c (default_section_type_flags): Add support for "noinit"
2896 (default_elf_select_section): Add support for "noinit" attribute.
2897 * config/msp430/msp430.c (msp430_attribute_table): Remove
2900 2019-08-14 Richard Biener <rguenther@suse.de>
2901 Uroš Bizjak <ubizjak@gmail.com>
2904 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
2906 (scalar_chain::smode): New member.
2907 (scalar_chain::vmode): Likewise.
2908 (dimode_scalar_chain): Rename to...
2909 (general_scalar_chain): ... this.
2910 (general_scalar_chain::general_scalar_chain): Take mode arguments.
2911 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
2912 base with TImode and V1TImode.
2913 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
2914 (general_scalar_chain::vector_const_cost): Adjust for SImode
2916 (general_scalar_chain::compute_convert_gain): Likewise. Add
2917 {S,U}{MIN,MAX} support.
2918 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
2919 (general_scalar_chain::make_vector_copies): Likewise. Handle
2920 non-DImode chains appropriately.
2921 (general_scalar_chain::convert_reg): Likewise.
2922 (general_scalar_chain::convert_op): Likewise.
2923 (general_scalar_chain::convert_insn): Likewise. Add
2924 fatal_insn_not_found if the result is not recognized.
2925 (convertible_comparison_p): Pass in the scalar mode and use that.
2926 (general_scalar_to_vector_candidate_p): Likewise. Rename from
2927 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
2928 (scalar_to_vector_candidate_p): Remove by inlining into single
2930 (general_remove_non_convertible_regs): Rename from
2931 dimode_remove_non_convertible_regs.
2932 (remove_non_convertible_regs): Remove by inlining into single caller.
2933 (convert_scalars_to_vector): Handle SImode and DImode chains
2934 in addition to TImode chains.
2935 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
2936 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
2937 (*<maxmin>di3_doubleword): Likewise.
2939 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2940 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2942 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
2943 (*cond_bic<mode>_any): New patterns.
2945 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2947 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
2948 take the equivalent mask, as well as a bit count.
2949 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
2950 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
2951 (aarch64_sve_pred_and_operand): New predicates.
2952 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
2954 * config/aarch64/aarch64-sve.md
2955 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
2956 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
2958 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2960 * config/aarch64/aarch64-sve.md
2961 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
2962 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
2965 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2966 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2968 * config/aarch64/aarch64-sve.md
2969 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
2970 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
2972 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2973 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2975 * config/aarch64/aarch64-sve.md
2976 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
2977 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
2979 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2981 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
2982 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
2985 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2986 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2988 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
2990 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2991 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2993 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
2994 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
2995 (aarch64_print_operand): Add support for %I.
2996 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
2997 Bitcast floating-point constants to the corresponding integer constant.
2998 (aarch64_float_const_representable_p): Handle vectors as well
3000 (aarch64_expand_sve_vcond): Make sure that the operands are valid
3001 for the new vcond_mask_<mode><vpred> expander.
3002 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
3003 test aarch64_float_const_representable_p.
3004 (aarch64_sve_reg_or_dup_imm): New predicate.
3005 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
3006 gen_vcond_mask_<mode><vpred> instead of
3007 gen_aarch64_sve_dup<mode>_const.
3008 (vcond_mask_<mode><vpred>): Turn into a define_expand that
3009 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
3010 for operands 1 and 2 respectively. Force operand 2 into a
3011 register if operand 1 is a register. Fold old define_insn...
3012 (aarch64_sve_dup<mode>_const): ...and this define_insn...
3013 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
3014 floating-point constants that can be moved as integers. Add
3015 alternatives for MOV /M and FMOV /M.
3016 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
3017 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
3018 1 and 2 respectively.
3019 * config/aarch64/constraints.md (Ufc): Handle vectors as well
3021 (vss): New constraint.
3023 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3025 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
3026 (aarch64_sve_float_maxmin_operand): New predicates.
3027 * config/aarch64/constraints.md (vsB): New constraint.
3029 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
3030 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
3032 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
3033 Use aarch64_sve_float_maxmin_operand for operand 2.
3034 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
3035 Add alternatives for the constant forms.
3037 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3039 * config/aarch64/constraints.md (vsb): New constraint.
3040 (vsm): Generalize description.
3041 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
3043 (sve_imm_con): Handle smax, smin, umax and umin.
3044 (sve_imm_prefix): New code attribute.
3045 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
3046 (aarch64_sve_vsb_operand): New predicates.
3047 (aarch64_sve_mul_immediate): Rename to...
3048 (aarch64_sve_vsm_immediate): ...this.
3049 (aarch64_sve_mul_operand): Rename to...
3050 (aarch64_sve_vsm_operand): ...this.
3051 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
3052 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
3053 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
3054 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
3055 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
3056 add movprfx support for the immediate alternatives.
3057 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
3059 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
3062 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3064 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
3065 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
3066 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
3068 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3070 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
3071 (optab, sve_int_op): Handle them.
3072 * config/aarch64/aarch64-sve.md: Expand comment.
3074 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3076 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
3077 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
3078 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
3080 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3082 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
3083 (aarch64_expand_sve_const_pred_trn): New functions.
3084 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
3085 use the above functions when the parameter is true.
3086 (aarch64_expand_sve_const_pred): Update call accordingly.
3087 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
3089 (@aarch64_sve_<perm_insn><mode>): ...this.
3091 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3093 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
3095 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
3096 (aarch64_sve_emit_int_cmp): New functions.
3097 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
3098 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
3099 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
3100 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
3101 (UNSPEC_PRED_Z): New unspec.
3102 (set_clobber_cc_nzc): Delete.
3103 * config/aarch64/aarch64-sve.md: Add a block comment about
3105 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
3106 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
3107 the old pattern with that name. Use UNSPEC_PRED_Z instead of
3109 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
3110 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
3111 check for compatible predicates.
3112 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
3113 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
3114 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
3117 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3119 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
3120 * config/aarch64/aarch64-sve.md: Add a section describing it.
3121 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
3122 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
3123 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
3124 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
3125 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
3126 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
3127 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
3128 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
3129 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
3130 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
3131 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
3132 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
3133 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
3134 (aarch64_evpc_rev_local): Update accordingly.
3136 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3138 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
3140 (SVE_BHSI, SVE_SDI): Tweak comment.
3141 (SVE_HSDI): Likewise. Fix definition.
3142 (SVE_SDF): New mode iterator.
3143 (elem_bits): New mode attribute.
3144 (SVE_COND_FCVT): New int iterator.
3145 * config/aarch64/aarch64-sve.md
3146 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
3147 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
3148 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
3149 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
3150 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
3151 ...these new patterns.
3152 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
3153 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
3154 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
3156 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
3157 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
3158 ...these new patterns.
3159 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
3160 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
3161 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
3162 ...this new pattern.
3163 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
3164 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
3165 ...this new pattern.
3166 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
3168 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3170 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
3171 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
3172 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
3174 (optab, su): Handle them.
3175 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
3176 * config/aarch64/aarch64-sve.md
3177 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
3178 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
3179 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
3180 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
3181 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
3182 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
3183 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
3184 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
3185 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
3187 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
3188 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
3189 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
3190 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
3191 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
3192 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
3193 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
3194 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
3195 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
3196 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
3197 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
3198 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
3199 of UNSPEC_FLOAT_CONVERT.
3200 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
3201 aarch64_sve_extend<mode><Vwide>2.
3203 2019-08-14 Richard Biener <rguenther@suse.de>
3206 * config/i386/i386-features.c
3207 (dimode_scalar_chain::compute_convert_gain): Compute and dump
3208 individual instruction gain. Fix reg-reg copy GRP cost. Use
3209 ix86_cost->sse_op for vector instruction costs.
3211 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3213 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
3214 (cmp_op): Handle it.
3215 (SVE_COND_FP_CMP): Rename to...
3216 (SVE_COND_FP_CMP_I0): ...this.
3217 (SVE_FP_CMP): Remove.
3218 * config/aarch64/aarch64-sve.md
3219 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
3220 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
3221 using unspecs to represent the comparison.
3222 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
3223 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
3225 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
3226 (aarch64_unspec_cond_code): Move after integer code. Handle
3228 (aarch64_emit_sve_predicated_cond): Replace with...
3229 (aarch64_emit_sve_fp_cond): ...this new function.
3230 (aarch64_emit_sve_or_conds): Replace with...
3231 (aarch64_emit_sve_or_fp_conds): ...this new function.
3232 (aarch64_emit_sve_inverted_cond): Replace with...
3233 (aarch64_emit_sve_invert_fp_cond): ...this new function.
3234 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
3236 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3238 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
3239 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
3240 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
3241 SVE_HSD instead of SVE_SD.
3243 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3244 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3246 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
3248 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
3250 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
3251 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
3252 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
3253 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
3254 (*div<SVE_F:mode>3): Generalize to...
3255 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
3257 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3258 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3260 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
3262 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
3264 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
3266 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
3268 * config/aarch64/aarch64-sve.md: Add a block comment about the
3269 handling of predicated FP operations.
3270 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
3271 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
3272 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
3273 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
3274 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
3276 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
3277 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
3279 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
3280 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
3281 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
3282 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
3283 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
3284 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
3285 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
3286 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
3287 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
3288 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
3289 strictness operands. Use aarch64_sve_pred_dominates_p to check
3290 whether the predicate on the conditional operation is suitable
3291 for merging. Split patterns into the canonical equal-predicate form.
3292 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
3293 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
3295 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3296 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3298 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
3299 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
3300 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
3302 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
3303 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
3306 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3307 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3309 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
3310 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
3311 actually has, rather than relying on REG_EQUAL notes.
3312 Make the insn operand order match the SVE operand order.
3313 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
3314 the SVE operand order.
3316 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3318 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
3319 (aarch64_emit_set_immediate): Likewise.
3320 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
3321 (aarch64_pfalse_reg): Likewise.
3322 (aarch64_convert_sve_data_to_pred): New function.
3323 (aarch64_sve_move_pred_via_while): Take an optional target register
3324 and the required register mode.
3325 (aarch64_expand_sve_const_pred_1): New function.
3326 (aarch64_expand_sve_const_pred): Likewise.
3327 (aarch64_expand_mov_immediate): Build an all-true predicate
3328 if the significant bits of the immediate are all true. Use
3329 aarch64_expand_sve_const_pred for all compile-time predicate constants.
3330 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
3331 before register allocation.
3332 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
3333 a VNx16BI PTRUE when splitting the memory alternative.
3334 (vec_duplicate<mode>): Update accordingly.
3335 (*pred_cmp<cmp_op><mode>): Rename to...
3336 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
3338 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3340 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
3341 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
3342 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
3343 (UNSPEC_PTEST): New unspec.
3344 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
3345 * config/aarch64/iterators.md (data_bytes): New mode attribute.
3346 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
3347 * config/aarch64/aarch64-sve.md: Add a new section describing the
3348 handling of UNSPEC_PTEST.
3349 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
3350 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
3351 (ptest_ptrue<mode>): Replace with...
3352 (aarch64_ptest<mode>): ...this new pattern.
3353 (cbranch<mode>4): Update after above changes.
3354 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
3356 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
3357 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
3358 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
3360 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
3363 * builtins.c (builtin_with_linkage_p): New function.
3364 * builtins.h (builtin_with_linkage_p): New function.
3365 * symtab.c (write_symbol): Remove redundant assert.
3366 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
3367 Remove FIXME and use builtin_with_linkage_p.
3369 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3372 * tree-core.h (function_decl::function_code): Change type to
3374 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
3375 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
3376 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
3377 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
3379 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
3380 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
3381 (fndecl_built_in_p): Change the type of the "name" argument to
3383 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
3384 after check for DECL_BUILT_IN_CLASS.
3385 * cgraphclones.c (build_function_decl_skip_args): Use
3386 set_decl_built_in_function.
3387 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
3388 * ipa-split.c (split_function): Likewise.
3389 * langhooks.c (add_builtin_function_common): Likewise.
3390 * omp-simd-clone.c (simd_clone_create): Likewise.
3391 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
3392 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
3393 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
3395 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
3396 instead of DECL_FUNCTION_CODE.
3397 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
3398 instead of DECL_FUNCTION_CODE.
3399 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
3400 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
3401 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
3402 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
3403 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
3404 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
3405 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
3406 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
3407 (alpha_gimple_fold_builtin): Likewise.
3408 * config/arc/arc.c (arc_expand_builtin): Likewise.
3409 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
3410 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
3411 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
3412 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
3413 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
3414 * config/frv/frv.c (frv_expand_builtin): Likewise.
3415 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
3416 (gcn_expand_builtin): Likewise.
3417 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
3418 (fold_builtin_cpu): Likewise.
3419 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
3420 * config/i386/i386.c (ix86_fold_builtin): Likewise.
3421 (ix86_gimple_fold_builtin): Likewise.
3422 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
3423 (ia64_expand_builtin): Likewise.
3424 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
3425 * config/mips/mips.c (mips_expand_builtin): Likewise.
3426 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
3427 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
3428 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
3429 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
3430 * config/pa/pa.c (pa_expand_builtin): Likewise.
3431 * config/pru/pru.c (pru_expand_builtin): Likewise.
3432 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
3433 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3435 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
3436 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
3437 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
3438 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
3439 (rs6000_builtin_reciprocal): Likewise.
3440 * config/rx/rx.c (rx_expand_builtin): Likewise.
3441 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
3442 * config/s390/s390.c (s390_expand_builtin): Likewise.
3443 * config/sh/sh.c (sh_expand_builtin): Likewise.
3444 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
3445 (sparc_fold_builtin): Likewise.
3446 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
3447 * config/spu/spu.c (spu_expand_builtin): Likewise.
3448 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
3449 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
3450 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
3451 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
3452 (xtensa_expand_builtin): Likewise.
3454 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3457 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
3458 before the DECL_FUNCTION_CODE.
3459 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
3460 to check for a BUILT_IN_ALLOCA call.
3461 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
3462 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
3463 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
3464 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3465 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
3466 for BUILT_IN_NORMAL functions.
3467 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
3468 test for BUILT_IN_TM_ABORT.
3469 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
3470 to check for a BUILT_IN_STACK_RESTORE call.
3471 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
3472 * tree-ssa-threadedge.c
3473 (record_temporary_equivalences_from_stmts_at_dest): Check for a
3474 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
3475 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
3476 test for a BUILT_IN_NORMAL call instead of a negative test for
3477 an internal function call.
3479 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3481 * tree.h (build_vector_a_then_b): Declare.
3482 * tree.c (build_vector_a_then_b): New function.
3483 * fold-const-call.c (fold_while_ult): Likewise.
3484 (fold_const_call): Use it to handle IFN_WHILE_ULT.
3485 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
3486 (aarch64_svpattern): New enum.
3487 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
3488 constants through aarch64_expand_mov_immediate.
3489 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
3490 than general_operand as the predicate for operand 1.
3491 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
3492 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
3494 (simd_immediate_info::simd_immediate_info): New overload that
3495 takes a scalar_int_mode and an svpattern.
3496 (simd_immediate_info::u): Add a "pattern" field.
3497 (svpattern_token): New function.
3498 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
3499 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
3500 (aarch64_sve_move_pred_via_while): New functions.
3501 (aarch64_expand_mov_immediate): Try using
3502 aarch64_sve_move_pred_via_while for predicates that contain N ones
3503 followed by M zeros but that do not correspond to a VLnnn pattern.
3504 (aarch64_sve_pred_valid_immediate): New function.
3505 (aarch64_simd_valid_immediate): Use it instead of dealing directly
3506 with PTRUE and PFALSE.
3507 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
3510 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
3512 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
3514 (darwin_override_options): Likewise.
3515 * config/darwin.h: Likewise.
3516 * config/darwin.opt: Likewise.
3517 * config/i386/i386.c (output_pic_addr_const): Likewise.
3518 * config/rs6000/darwin.h: Likewise.
3519 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
3520 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
3521 ... this TARGET_MACHO_SYMBOL_STUBS.
3522 (FUNCTION_PROFILER):Likewise.
3523 * config/i386/i386.h: Likewise.
3525 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
3527 * config/i386/i386-expand.c (ix86_expand_vector_extract)
3528 <case E_V2SImode>: Use vec_extr path for
3529 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
3530 <case E_V8QImode>: Ditto.
3531 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
3532 Use SWI48 mode iterator. Use %k to output operand 0.
3533 (*mmx_pextrw): New insn pattern.
3534 (*mmx_pextrb): Ditto.
3535 (*mmx_pextrb_zext): Ditto.
3537 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
3539 * target.def (libc_has_function, libc_has_fast_function): Improve
3540 documentation strings.
3541 * doc/tm.texi: Regenerate.
3543 2019-08-13 Caroline Tice <cmtice@google.com>
3546 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
3547 vtv_end.o or vtv_end_preinit.o files if !static.
3549 2019-08-13 Olivier Hainque <hainque@adacore.com>
3551 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
3553 2019-08-13 Olivier Hainque <hainque@adacore.com>
3555 * rtlanal.c (tablejump_casesi_pattern): New function, to
3556 determine if a tablejump insn is a casesi dispatcher. Extracted
3557 from patch_jump_insn.
3558 * rtl.h (tablejump_casesi_pattern): Declare.
3559 * cfgrtl.c (patch_jump_insn): Use it.
3560 * dwarf2cfi.c (create_trace_edges): Use it.
3562 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
3565 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
3566 operand is larger than a long int.
3568 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3570 * machmode.h (opt_mode::else_mode): New function.
3571 (opt_mode::else_blk): Use it.
3572 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
3573 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
3574 (aarch64_gen_stepped_int_parallel): Likewise.
3575 (aarch64_stepped_int_parallel_p): Likewise.
3576 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
3578 * config/aarch64/aarch64.c
3579 (aarch64_expand_sve_widened_duplicate): Delete.
3580 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
3581 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
3582 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
3583 argument. Use early returns in the !CONST_INT_P handling.
3584 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
3585 than handling some inline.
3586 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
3588 (aarch64_simd_container_mode): ...here.
3589 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
3590 (aarch64_sve_ld1rq_operand_p): New functions.
3591 * config/aarch64/predicates.md (descending_int_parallel)
3592 (aarch64_sve_ld1rq_operand): New predicates.
3593 * config/aarch64/constraints.md (UtQ): New constraint.
3594 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
3595 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
3596 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
3597 (@aarch64_sve_reinterpret<mode>): New expander.
3598 (*aarch64_sve_reinterpret<mode>): New pattern.
3599 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
3600 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
3601 (*sve_ld1rq<Vesize>): Replace with...
3602 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
3604 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
3606 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
3609 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3611 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
3612 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
3613 (msp430_check_path_for_devices): New.
3614 (parse_devices_csv_1): New.
3615 (parse_devices_csv): New.
3616 (msp430_extract_mcu_data): Try to find devices.csv and search for the
3617 MCU data in devices.csv before using the hard-coded data.
3618 Warn if devices.csv isn't found and the MCU wasn't found in the
3619 hard-coded data either.
3620 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
3621 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
3622 Search for devices.csv on -I and -L paths.
3623 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
3624 msp430_set_driver_var.
3625 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
3627 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
3628 searched for devices.csv.
3629 (mwarn-devices-csv): Document option.
3631 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3633 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
3634 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
3635 Use a single Dn alternative instead of separate Dz and Dm
3636 alternatives. Use aarch64_output_sve_move_immediate.
3637 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
3639 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
3641 (aarch64_output_sve_mov_immediate): Handle predicate modes.
3642 (aarch64_output_ptrue): Delete.
3644 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3646 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
3648 (simd_immediate_info::value, simd_immediate_info::step)
3649 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
3651 (simd_immediate_info::u): ...this new union.
3652 (simd_immediate_info::simd_immediate_info): Update accordingly.
3653 (aarch64_output_simd_mov_immediate): Likewise.
3654 (aarch64_output_sve_mov_immediate): Likewise.
3656 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3658 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
3660 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
3661 (msp430_select_cpu): New spec function.
3662 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
3664 * config/msp430/msp430-devices.c: New file.
3665 * config/msp430/msp430-devices.h: New file.
3666 * config/msp430/msp430.c: Remove msp430_mcu_data.
3667 (msp430_option_override): Use msp430_extract_mcu_data to extract
3669 (msp430_use_f5_series_hwmult): Likewise.
3670 (use_32bit_hwmult): Likewise.
3671 (msp430_no_hwmult): Likewise.
3672 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
3674 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
3676 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
3677 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
3678 Remove hard-coded MCU multilib data.
3680 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3682 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
3683 based on the mode instead of testing properties of it.
3685 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3687 * doc/md.texi: Document the x and y constraints for AArch64.
3688 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
3689 (FP_LO8_REGS): New reg_class.
3690 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
3691 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
3692 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
3693 * config/aarch64/predicates.md (aarch64_simd_register): Use
3694 FP_REGNUM_P instead of checking the classes manually.
3695 * config/aarch64/constraints.md (y): New constraint.
3697 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3699 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
3700 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
3701 * config/aarch64/aarch64-simd.md
3702 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
3703 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
3704 from the asm template.
3705 * config/aarch64/aarch64-sve.md
3706 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
3707 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
3708 from the asm template.
3709 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
3710 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
3711 from the asm template.
3712 * config/aarch64/aarch64-simd-builtins.def: Update comment.
3714 2019-08-13 Martin Liska <mliska@suse.cz>
3716 * value-prof.c (gimple_ic_transform): Add new line.
3717 Print details with MSG_NOTE.
3719 2019-08-13 Martin Liska <mliska@suse.cz>
3721 * doc/invoke.texi: Document automatic detection of jobserver.
3722 * lto-wrapper.c (run_gcc): Detect jobserver always.
3724 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
3726 * config/i386/i386-expand.c (ix86_expand_vector_set)
3727 <case E_V2SImode>: Use vec_merge path for
3728 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
3729 <case E_V8QImode>: Ditto.
3730 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
3731 (*mmx_pinsrb): Ditto.
3733 2019-08-12 Jakub Jelinek <jakub@redhat.com>
3737 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
3738 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
3739 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
3740 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
3741 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
3743 2019-08-12 Richard Biener <rguenther@suse.de>
3746 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
3749 2019-08-12 Richard Biener <rguenther@suse.de>
3752 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
3753 lang_mask option, always use CL_DRIVER.
3754 (get_options_from_collect_gcc_options): Adjust.
3755 (find_and_merge_options): Likewise.
3756 (run_gcc): Likewise.
3758 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3760 * ipa-predicate.c (add_condition): Restore inverted test.
3762 2019-08-10 Jakub Jelinek <jakub@redhat.com>
3764 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
3765 (enum omp_clause_device_type_kind): New enum.
3766 (struct tree_omp_clause): Add subcode.device_type_kind.
3767 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
3768 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
3769 for device_type clause.
3770 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
3771 * tree-pretty-print.c (dump_omp_clause): Likewise.
3774 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
3777 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
3779 * reload1.c (finish_spills): Do not check ira_conflicts_p when
3780 handling spilled pseudos.
3782 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
3785 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
3786 to preserve the contents of the original insns.
3788 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
3790 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
3791 (addsi3_compare_op2): Likewise.
3793 2019-08-09 Martin Liska <mliska@suse.cz>
3795 * alias.c (alias_ptr_types_compatible_p): Strengten
3796 type comparison in LTO mode.
3798 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
3801 * tree-tailcall.c (find_tail_calls): Reject calls that might
3802 read from an escaped RESULT_DECL.
3804 2019-08-09 Martin Liska <mliska@suse.cz>
3806 * doc/invoke.texi: Document the option value.
3807 * lto-wrapper.c (run_gcc): Set auto_parallel
3808 only with -flto=auto.
3810 2019-08-09 Martin Liska <mliska@suse.cz>
3812 * opts.c (common_handle_option): Error for an invalid argument
3815 2019-08-09 Martin Liska <mliska@suse.cz>
3817 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
3818 use dump_printf to report optimization.
3819 (sem_variable::merge): Likwise.
3820 (sem_item_optimizer::merge_classes): Use dump_printf to report
3823 2019-08-09 Martin Liska <mliska@suse.cz>
3825 * value-prof.c (gimple_divmod_fixed_value_transform):
3826 Use dump_printf_loc.
3827 (gimple_mod_pow2_value_transform): Likewise.
3828 (gimple_mod_subtract_transform): Likewise.
3829 (init_node_map): Likewise.
3830 (gimple_ic_transform): Likewise.
3831 (gimple_stringops_transform): Likewise.
3833 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
3835 * doc/extend.texi: Add const qualifier to ld intrinsics.
3837 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
3839 * config/rs6000/dfp.md (D64_D128): Rename to ...
3840 (DDTD): ... this, throughout.
3841 (dfp_suffix): Rename to ...
3842 (q): ... this, throughout.
3844 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
3846 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
3847 (dfp_suffix): Ditto.
3848 (adddd3, addtd3): Merge to ...
3849 (add<mode>3 for D64_D128): ... this.
3850 (subdd3, subtd3): Merge to ...
3851 (sub<mode>3 for D64_D128): ... this.
3852 (muldd3, multd3): Merge to ...
3853 (mul<mode>3 for D64_D128): ... this.
3854 (divdd3, divtd3): Merge to ...
3855 (div<mode>3 for D64_D128): ... this.
3856 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
3857 (*cmp<mode>_internal1 for D64_D128): ... this.
3858 (ftruncdd2, ftrunctd2): Merge to ...
3859 (ftrunc<mode>2 for D64_D128): ... this.
3860 (fixdddi2, fixtddi2): Merge to ...
3861 (fix<mode>di2 for D64_D128): ... this.
3863 2019-08-08 Jim Wilson <jimw@sifive.com>
3866 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
3867 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
3868 Pass into recursive call.
3869 (riscv_flatten_aggregate_argument): New arg. Pass to
3870 riscv_flatten_aggregate_field.
3871 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
3872 riscv_flatten_aggregate_argument twice, with false and true as last
3873 arg. Process result twice. Compare results and warn if different.
3874 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
3876 2019-08-08 Martin Liska <mliska@suse.cz>
3879 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
3880 * lto-wrapper.c (jobserver_active_p): Likewise.
3882 2019-08-08 Martin Liska <mliska@suse.cz>
3884 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
3885 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
3886 (create_version_clone_with_body): Likewise.
3888 2019-08-08 Jakub Jelinek <jakub@redhat.com>
3890 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
3891 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
3892 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
3893 GOVD_EXPLICIT flags.
3894 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
3895 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
3896 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
3897 call install_var_field with mask 11 instead of 3.
3898 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
3899 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
3901 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3903 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
3904 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
3906 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3908 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
3909 MOVPRFX alternatives. Make the GPR alternatives more expensive
3912 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3914 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
3915 Disparage the GPR alternative relative to the FPR one.
3916 Fix handling of 8-bit and 16-bit FPR values.
3918 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3920 * config/aarch64/iterators.md (BITWISEV): Delete.
3921 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
3922 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
3923 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
3924 UNSPEC_FMINNMV, UNSPEC_FMINV.
3925 (bit_reduc_op): Delete.
3926 (sve_int_op): New int attribute.
3927 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
3928 UNSPEC_FMINNMV, UNSPEC_FMINV.
3929 * config/aarch64/aarch64-sve.md
3930 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
3931 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
3932 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
3933 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
3934 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
3935 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
3937 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
3938 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
3939 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
3940 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
3941 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
3944 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3946 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
3947 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
3948 (fms<mode>4, *fms<mode>4): Replace with...
3949 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
3950 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
3951 Use unspecs instead of rtx codes.
3952 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
3953 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
3955 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3957 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
3959 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
3960 * config/aarch64/aarch64-sve.md
3961 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
3962 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
3963 use a single unspec for the rhs.
3964 (*<su><maxmin><mode>3): Delete.
3965 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
3967 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3969 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
3970 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
3971 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
3972 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
3973 (optab, sve_fp_op): Handle them.
3974 (SVE_FP_UNARY): Delete.
3975 (optab): Remove sqrt entry.
3976 (sve_fp_op): Remove neg, abs and sqrt entries.
3977 (SVE_COND_FP_UNARY): New int iterator.
3978 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
3979 (*<frint_pattern><mode>2): Delete.
3980 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
3981 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
3982 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
3983 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
3985 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3987 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
3989 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3991 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
3992 (UNSPEC_COND_FADD): ...this.
3993 (UNSPEC_COND_SUB): Rename to...
3994 (UNSPEC_COND_FSUB): ...this.
3995 (UNSPEC_COND_MUL): Rename to...
3996 (UNSPEC_COND_FMUL): ...this.
3997 (UNSPEC_COND_DIV): Rename to...
3998 (UNSPEC_COND_FDIV): ...this.
3999 (UNSPEC_COND_MAX): Rename to...
4000 (UNSPEC_COND_FMAXNM): ...this.
4001 (UNSPEC_COND_MIN): Rename to...
4002 (UNSPEC_COND_FMINNM): ...this.
4003 (UNSPEC_COND_LT): Rename to...
4004 (UNSPEC_COND_FCMLT): ...this.
4005 (UNSPEC_COND_LE): Rename to...
4006 (UNSPEC_COND_FCMLE): ...this.
4007 (UNSPEC_COND_EQ): Rename to...
4008 (UNSPEC_COND_FCMEQ): ...this.
4009 (UNSPEC_COND_NE): Rename to...
4010 (UNSPEC_COND_FCMNE): ...this.
4011 (UNSPEC_COND_GE): Rename to...
4012 (UNSPEC_COND_FCMGE): ...this.
4013 (UNSPEC_COND_GT): Rename to...
4014 (UNSPEC_COND_FCMGT): ...this.
4015 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
4016 (sve_fp_op_rev): Update accordingly.
4017 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
4019 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4021 * config/aarch64/aarch64-sve.md: Reorganize contents and add
4023 * config/aarch64/check-sve-md.awk: New file.
4024 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
4025 (insn-conditions.md): Depend on it.
4027 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
4030 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
4031 (*negsi2_cmpz_zext): Ditto.
4033 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4035 * config/aarch64/iterators.md (commutative): Remove.
4037 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
4040 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
4041 processing COLLECT_GCC_OPTIONS.
4042 (run_gcc): Likewise.
4044 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
4046 PR tree-optimization/91109
4047 * lra-remat.c (update_scratch_ops): Remove assignment of the
4050 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4052 * data-streamer.h (streamer_write_poly_uint64): Declare.
4053 (streamer_read_poly_uint64): Likewise.
4054 * data-streamer-in.c (streamer_read_poly_uint64): New function.
4055 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
4056 * ipa-predicate.h (condition::size): Turn into a poly_int64.
4057 (add_condition): Take a poly_int64 size.
4058 * ipa-predicate.c (add_condition): Likewise.
4059 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
4060 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
4061 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
4062 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
4063 condition::size as a poly_int64.
4064 (unmodified_parm_1): Take a poly_int64 size pointer.
4065 (unmodified_parm): Likewise.
4066 (unmodified_parm_or_parm_agg_item): Likewise.
4067 (set_cond_stmt_execution_predicate): Update accordingly.
4068 (set_switch_stmt_execution_predicate): Likewise.
4069 (will_be_nonconstant_expr_predicate): Likewise.
4070 (will_be_nonconstant_predicate): Likewise.
4071 (inline_read_section): Stream condition::size as a poly_int.
4072 (ipa_fn_summary_write): Likewise.
4074 2019-08-07 Martin Liska <mliska@suse.cz>
4076 * fold-const.c (twoval_comparison_p): Replace int
4077 with bool as a return type.
4078 (simple_operand_p): Likewise.
4079 (operand_equal_p): Replace int with bool as a return type.
4080 * fold-const.h (operand_equal_p): Likewise.
4082 2019-08-07 Jakub Jelinek <jakub@redhat.com>
4084 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
4085 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
4086 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
4087 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
4088 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
4089 * tree-pretty-print.c (dump_omp_clause): Likewise.
4090 * tree-nested.c (convert_nonlocal_omp_clauses,
4091 convert_local_omp_clauses): Likewise.
4092 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
4094 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
4095 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
4096 clause with array or reference to array types, no matter what type
4097 except for reference it has.
4099 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
4101 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
4103 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
4105 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
4106 (arch_canonicalize): Support rv32g and rv64g and fix error
4109 2019-08-06 Martin Liska <mliska@suse.cz>
4111 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
4112 and DECL_IS_OPERATOR_DELETE_P.
4114 2019-08-06 Jakub Jelinek <jakub@redhat.com>
4116 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
4117 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
4118 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
4119 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
4120 (gimplify_omp_for): Don't do C++ random access iterator clause
4121 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
4122 don't predetermine the artificial iterator in case of C++ random
4123 access iterators as lastprivate, but private. For OMP_LOOP, force
4124 bind expr around simd body and force for_pre_body before the
4125 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
4126 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
4127 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
4128 diff var of C++ random access iterators. Handle
4129 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
4130 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
4131 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
4132 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
4133 * omp-low.c (lower_rec_input_clauses): For
4134 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
4135 variables instead of default constructing them.
4136 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
4137 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
4138 is_taskloop_ctx check from the assert to the guarding condition.
4140 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
4142 * config/riscv/multilib-generator: (canonical_order): New.
4143 (arch_canonicalize): Dito.
4144 Apply arch_canonicalize for alts.
4146 2019-08-05 Martin Sebor <msebor@redhat.com>
4148 * doc/extend.texi (Common Variable Attributes): Document alias
4151 2019-08-05 Marek Polacek <polacek@redhat.com>
4153 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
4154 * doc/invoke.texi: Document -Wcomma-subscript.
4156 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
4158 * tree-core.h (tree_function_decl): Make function_code an
4159 independent field. Group the remaining bitfields into bytes
4160 and move decl_type so that it contines to be at a byte boundary.
4161 Leave 12 bits for future expansion.
4163 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
4165 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
4166 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
4167 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
4170 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
4172 * gimple.h (gimple_move_vops): Declare.
4173 * gimple.c (gimple_move_vops): New function
4174 * gimple-fold.c (replace_call_with_call_and_fold)
4175 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
4176 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
4177 (gimple_fold_call): Use it.
4178 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
4179 * tree-call-cdce.c (use_internal_fn): Likewise.
4180 * tree-if-conv.c (predicate_load_or_store): Likewise.
4181 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4182 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4183 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
4184 (update_call_from_tree): Likewise.
4185 * tree-vect-stmts.c (vectorizable_load): Likewise.
4186 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
4188 2019-08-05 Martin Liska <mliska@suse.cz>
4191 * tree-ssa-dce.c (propagate_necessity): Handle new operators
4193 (eliminate_unnecessary_stmts): Likewise.
4195 2019-08-05 Richard Biener <rguenther@suse.de>
4198 * fold-const.c (get_array_ctor_element_at_index): Create
4199 offset_ints according to the sign of the index type and treat
4200 that as signed if it is obviously so.
4202 2019-08-05 Jakub Jelinek <jakub@redhat.com>
4205 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
4206 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
4207 _mm256_storeu2_m128i): New function.
4209 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
4211 * config/riscv/riscv.c (riscv_promote_function_mode): New.
4212 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
4214 2019-08-05 Alan Modra <amodra@gmail.com>
4217 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
4218 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
4220 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
4222 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
4223 bug that was fixed in Tcl 8.6.1.
4225 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
4227 * config/rs6000/future.md: New file.
4228 * config/rs6000/rs6000.md: Include future.md.
4229 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
4231 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4233 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
4234 check to use targetm.slow_unaligned_access instead.
4236 * function.c (assign_param_data_one): Remove unused data members.
4238 2019-08-02 Steve Ellcey <sellcey@marvell.com>
4240 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
4241 build_distinct_type_copy.
4242 (simd_clone_adjust_argument_types): Ditto.
4243 (simd_clone_adjust): Call build_distinct_type_copy here.
4244 (expand_simd_clones): Ditto.
4246 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
4249 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
4251 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
4253 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
4254 from 'const void *'.
4255 (sort_locs_in_loop_postorder_cmp): Likewise.
4257 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
4259 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
4260 (hot-bb-count-ws-permille): Likewise.
4261 (hot-bb-frequency-fraction): Likewise.
4262 (unlikely-bb-count-fraction): Likewise.
4263 * params.def (hot-bb-count-fraction): Rework description.
4264 (hot-bb-count-ws-permille): Likewise.
4265 (hot-bb-frequency-fraction): Likewise.
4266 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
4267 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
4269 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
4272 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
4275 2019-08-02 Richard Biener <rguenther@suse.de>
4277 * vec.h (vec::sort): Add gcc_qsort_r support.
4278 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
4279 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
4280 to gcc_qsort_r style callback.
4281 (sort_locs_in_loop_postorder_cmp): Likewise.
4282 (analyze_memory_references): Use gcc_sort_r interfaces.
4283 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
4285 2019-08-02 Martin Liska <mliska@suse.cz>
4288 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
4289 to detect working job server.
4290 (driver::detect_jobserver): Test whether jobserver
4291 is active from GCC driver. That will prevent situation where
4292 GCC is invoked from a LD plugin and the linker already uses
4293 file descriptors suggested by make. That leads to a wrong
4295 * gcc.h (driver): Add detect_jobserver.
4296 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
4297 not scanning for --jobserver-auth prefix.
4299 2019-08-02 Jakub Jelinek <jakub@redhat.com>
4301 PR tree-optimization/91201
4302 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
4303 V16QImode extraction without sse4.1 try to use V4SImode lowpart
4306 2019-08-01 Martin Sebor <msebor@redhat.com>
4309 * tree.c (type_initializer_zero_p): Define.
4310 * tree.h (type_initializer_zero_p): New function.
4312 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
4314 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
4316 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
4318 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
4319 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
4320 * predict.c (maybe_hot_count_p): Likewise.
4321 (maybe_hot_bb_p): Tweak comment.
4322 (maybe_hot_edge_p): Likewise.
4323 (probably_never_executed): Likewise. Minor tweak.
4324 (probably_never_executed_bb_p): Likewise.
4325 (unlikely_executed_edge_p): Likewise.
4326 (probably_never_executed_edge_p): Likewise.
4327 (optimize_function_for_size_p): Likewise.
4328 (optimize_function_for_speed_p): Likewise.
4329 (function_optimization_type): Likewise.
4330 (optimize_bb_for_size_p): Likewise.
4331 (optimize_bb_for_speed_p): Likewise.
4332 (bb_optimization_type): Likewise.
4333 (optimize_edge_for_size_p): Likewise.
4334 (optimize_edge_for_speed_p): Likewise.
4335 (optimize_insn_for_size_p): Likewise.
4336 (optimize_insn_for_speed_p): Likewise.
4337 (optimize_loop_for_size_p): Likewise.
4338 (optimize_loop_for_speed_p): Likewise.
4339 (optimize_loop_nest_for_speed_p): Likewise.
4340 (optimize_loop_nest_for_size_p): Likewise.
4341 (predictable_edge_p): Likewise.
4342 (handle_missing_profiles): Minor tweak.
4344 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
4346 * config/rs6000/predicates.md (pcrel_external_address): Update
4349 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
4352 * config/i386/mmx.md (usadv8qi): New expander.
4354 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
4357 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
4358 with reserved names that are in a system header.
4360 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
4362 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
4363 (*vec_extractv2si_0_zext_sse4): New insn pattern.
4364 (*vec_extractv2si_0_zext): Ditto.
4365 (*vec_extractv2si_1): Add (rm,x) alternative.
4366 (*vec_extractv2si_1_zext): New insn pattern.
4367 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
4370 2019-08-01 Richard Biener <rguenther@suse.de>
4372 * domwalk.c (bb_postorder): Remove static variable.
4373 (cmp_bb_postorder): Adjust.
4374 (sort_bbs_postorder): Adjust and use gcc_sort_r.
4375 (dom_walker::walk): Adjust.
4377 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
4379 * sort.cc (sort_r_ctx): New struct.
4380 (reorder23): Make templated on context type.
4382 (cmp1): Ditto. Adjust signature.
4385 [CHECKING_P] (cmp2to3): New static function. Use it...
4386 (gcc_qsort) [CHECKING_P]: ...here.
4387 (gcc_sort_r): New function.
4388 * system.h (sort_r_cmp_fn): New function typedef.
4389 (qsort_chk): Adjust signature.
4390 (gcc_sort_r): Declare.
4391 * vec.c (qsort_chk_error): Adjust.
4392 (qsort_chk): Adjust.
4394 2019-08-01 Richard Biener <rguenther@suse.de>
4396 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
4397 (compute_antic): Localize it here.
4399 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
4401 * common/config/riscv/riscv-common.c: Check -march string ends
4404 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
4406 * ipa-devirt.c (type_warning_cmp): Make static.
4407 (decl_warning_cmp): Ditto.
4409 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
4412 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
4413 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4414 use of deleted rs6000_dejagnu_cpu_index variable.
4415 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
4416 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
4417 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
4418 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
4419 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
4420 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
4422 2019-07-31 Richard Biener <rguenther@suse.de>
4424 PR tree-optimization/91280
4425 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4426 Decompose MEM_REF manually for offset handling.
4428 2019-07-31 Richard Biener <rguenther@suse.de>
4430 PR tree-optimization/91293
4431 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
4434 2019-07-31 Matt Thomas <matt@3am-software.com>
4435 Nick Hudson <nick@nthcliff.demon.co.uk>
4436 Matthew Green <mrg@eterna.com.au>
4437 Maya Rashish <coypu@sdf.org>
4439 * config.gcc (hppa*-*-netbsd*): New target.
4440 * config/pa/pa-netbsd.h: New file.
4441 * config/pa/pa32-netbsd.h: New file.
4443 2019-07-31 Jakub Jelinek <jakub@redhat.com>
4445 PR tree-optimization/91201
4446 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
4448 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
4450 * config/gcn/gcn-valu.md
4451 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
4452 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
4453 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
4454 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
4455 struct ilist. Add nops for delayeduse insns.
4456 * config/gcn/gcn.md (delayeduse): New attribute.
4457 (*movbi): Remove s_waitcnt from stores.
4458 (*mov<mode>_insn): Likewise.
4459 (*movti_insn): Likewise. Add delayeduse attribute.
4460 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
4461 (atomic_store<mode>): Remove or adjust s_waitcnt.
4463 2019-07-31 Richard Biener <rguenther@suse.de>
4465 * vr-values.h (vr_values::swap_vr_value): New.
4466 (vr_values::free_value_range): likewise.
4467 * vr-values.c (vr_values::swap_vr_value): Implement.
4468 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
4469 Do not return a range or take a var.
4470 (evrp_range_analyzer::stack): Change back to recording a non-const
4472 * gimple-ssa-evrp-analyze.c
4473 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
4475 (evrp_range_analyzer::pop_to_marker): Adjust.
4476 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
4477 (evrp_range_analyzer::pop_value_range): Likewise. Free the
4478 no longer needed value-range.
4480 2019-07-31 Martin Liska <mliska@suse.cz>
4482 * tree-ssa-dce.c (propagate_necessity): Delete operator can
4483 have size and (or) alignment as 2nd and later arguments.
4484 Mark all of them as necessary.
4486 2019-07-31 Richard Biener <rguenther@suse.de>
4488 PR tree-optimization/91178
4489 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
4492 2019-07-31 Jakub Jelinek <jakub@redhat.com>
4494 PR tree-optimization/91201
4495 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
4496 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
4498 (reduc_plus_scal_<mode>): Improve formatting by introducing
4501 2019-07-31 Sudakshina Das <sudi.das@arm.com>
4503 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
4504 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
4505 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
4506 (aarch64_init_tme_builtins): New.
4507 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
4508 (aarch64_expand_builtin_tme): New.
4509 (aarch64_expand_builtin): Handle TME builtins.
4510 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
4511 __ARM_FEATURE_TME when enabled.
4512 * config/aarch64/aarch64-option-extensions.def: Add "tme".
4513 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
4515 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
4516 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
4518 (tstart, ttest, tcommit, tcancel): New instructions.
4519 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
4520 (__tcancel, __ttest): New.
4521 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
4522 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
4523 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
4524 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
4525 * config/arm/types.md: Add new tme type attr.
4526 * doc/invoke.texi: Document "tme".
4528 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
4530 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
4531 warn_unused_result attribute.
4532 (cmse_check_address_range): Add warn_unused_result attribute.
4534 2019-07-31 Richard Biener <rguenther@suse.de>
4536 PR tree-optimization/91257
4537 * tree-vrp.c (union_ranges): Unify equality and less tests
4538 by using compare_values. Re-order cheap tests first.
4540 2019-07-31 Jakub Jelinek <jakub@redhat.com>
4543 * gimplify.c (gimplify_omp_for): If for class iterator on
4544 distribute parallel for there is no data sharing clause
4545 on inner_for_stmt, look for private clause on combined
4546 parallel too and if found, move it to inner_for_stmt.
4548 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
4550 * lra-int.h (lra_operand_data): Remove early_clobber field.
4551 (lra_insn_reg): Likewise.
4552 * lra.c (debug_operand_data): Update accordingly.
4553 (setup_operand_alternative): Likewise.
4554 (new_insn_reg): Likewise. Remove early_clobber parameter.
4555 (collect_non_operand_hard_regs): Update call accordingly.
4556 Don't assign to lra_insn_reg::early_clobber.
4557 (add_regs_to_insn_regno_info): Remove early_clobber parameter
4558 and update calls to new_insn_reg.
4559 (lra_update_insn_regno_info): Update calls accordingly.
4560 * lra-constraints.c (update_and_check_small_class_inputs): Take the
4561 alternative number as a parameter and test whether the operand
4562 is earlyclobbered in that particular alternative.
4563 (process_alt_operands): Update call accordingly. Use per-alternative
4564 checks for earyclobber here too.
4565 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
4566 against zero for IRA_UNKNOWN_ALT.
4568 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
4570 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
4572 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
4574 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
4575 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
4577 2019-07-30 Martin Liska <mliska@suse.cz>
4580 * cgraph.c (cgraph_edge::make_direct): Use
4581 edge->indirect_unknown_callee as edge->resolve_speculation can
4582 deallocate edge which is this pointer.
4584 2019-07-30 Richard Biener <rguenther@suse.de>
4586 PR tree-optimization/91257
4587 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
4589 2019-07-30 Martin Liska <mliska@suse.cz>
4591 * doc/invoke.texi: Document new behavior.
4592 * lto-wrapper.c (cpuset_popcount): New function
4593 is a copy of libgomp/config/linux/proc.c.
4594 (init_num_threads): Likewise.
4595 (run_gcc): Automatically detect core count for -flto.
4596 (jobserver_active_p): New function.
4598 2019-07-30 Richard Biener <rguenther@suse.de>
4600 PR tree-optimization/91257
4601 * bitmap.h (bitmap_ior_into_and_free): Declare.
4602 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
4603 whether to add the unliked element to the freelist.
4604 (bitmap_list_insert_element_after): Add defaulted param for
4605 an already allocated element.
4606 (bitmap_ior_into_and_free): New function.
4607 * tree-ssa-structalias.c (condense_visit): Reduce the
4608 ponts-to and edge bitmaps of the SCC members in a
4609 logarithmic fashion rather than all to one.
4611 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
4613 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
4614 parameter. When nonnull, make sure that the addition or subtraction
4615 has the same condition.
4616 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
4617 for CFN_COND_MUL too.
4619 2019-07-30 Richard Biener <rguenther@suse.de>
4621 PR tree-optimization/91291
4622 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
4625 2019-07-30 Jakub Jelinek <jakub@redhat.com>
4628 * omp-low.c (global_nonaddressable_vars): New variable.
4629 (use_pointer_for_field): For global decls, if they are non-addressable,
4630 remember it in the global_nonaddressable_vars bitmap, if they are
4631 addressable and in the global_nonaddressable_vars bitmap, ignore their
4632 TREE_ADDRESSABLE bit.
4633 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
4634 vars in global_nonaddressable_vars bitmap.
4635 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
4638 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
4639 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
4640 comparison to unsigned HOST_WIDE_INT before shifting it left.
4642 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
4644 * config/i386/i386.md (movstrict<mode>): Use register_operand
4645 predicate for operand 0. Add expander condition. Assert that
4646 operand 0 is a SUBREG RTX.
4647 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
4648 Update operand constraints and insn condition.
4649 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
4650 (zero_extendqihi2_and): Do not call gen_movstrictqi.
4651 (*setcc_qi_slp): Use register_operand predicate for operand 0.
4652 Update operand 0 constraints.
4653 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
4655 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4657 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
4658 when -m{code,data}-region are used without -mlarge.
4659 * config/msp430/msp430.c (msp430_option_override): Error when a
4660 non-default code or data region is used without -mlarge.
4661 (msp430_section_attr): Emit a warning and do not add upper/lower/either
4662 attributes when they are used without -mlarge.
4664 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4667 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
4669 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4672 * wide-int.h (generic_wide_int::sext_elt): New function.
4673 * inchash.h (hash::add_wide_int): Use it instead of elt.
4675 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4677 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
4679 * config/arm/arm.md (<crc_variant>): Rename to...
4680 (arm_<crc_variant>): ... This.
4681 (<cdp>): Rename to...
4682 (arm_<cdp>): ... This.
4683 (<ldc>): Rename to...
4684 (arm_<ldc>): ... This.
4685 (<stc>): Rename to...
4686 (arm_<stc>): ... This.
4687 (<mcr>): Rename to...
4688 (arm_<mcr>): ... This.
4689 (<mrc>): Rename to...
4690 (arm_<mrc>): ... This.
4691 (<mcrr>): Rename to...
4692 (arm_<mcrr>): ... This.
4693 (<mrrc>): Rename to...
4694 (arm_<mrrc>): ... This.
4696 2019-07-29 Richard Biener <rguenther@suse.de>
4698 PR tree-optimization/91257
4699 * tree-ssa-sccvn.h (struct vn_avail): New.
4700 (struct vn_ssa_aux): Add avail member.
4701 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
4702 member, add m_avail_freelist one.
4703 (rpo_elim::~rpo_elim): Remove.
4704 (rpo_elim::eliminate_avail): Adjust to new avail tracking
4706 (rpo_elim::eliminate_push_avail): Likewise.
4707 (do_unwind): Likewise.
4708 (do_rpo_vn): Likewise.
4710 2019-07-29 Richard Biener <rguenther@suse.de>
4712 PR tree-optimization/91257
4713 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
4714 most cases, instead call compare_values which handles the
4715 symbolic ranges we handle specially.
4716 (compare_values_warnv): Do not call operand_less_p but open-code
4717 the effective fold calls. Avoid converting so much.
4719 2019-07-29 Martin Liska <mliska@suse.cz>
4721 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
4722 remove LHS of operator new call. It's handled latter.
4724 2019-07-29 Richard Biener <rguenther@suse.de>
4726 PR tree-optimization/91267
4727 * vr-values.c (vr_values::update_value_range): Add early return
4728 for effectively VARYING lattice entry.
4730 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4733 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
4734 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
4735 necessary if keep_all_vdefs_p is true.
4736 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
4737 that keep_all_vdefs_p is false.
4738 (mark_all_reaching_defs_necessary): Likewise.
4739 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
4741 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4743 * common.opt (Og): Change the initial value of flag_dse to 0.
4744 * opts.c (default_options_table): Move OPT_ftree_dse from
4745 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
4746 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
4747 entry before the OPT_ftree_sra entry.
4748 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
4749 of flags disabled by Og.
4751 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4753 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
4756 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4758 * doc/sourcebuild.texi (check-function-bodies): Document.
4760 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4762 * simplify-rtx.c (simplify_const_unary_operation): Fold a
4763 VEC_DUPLICATE of a fixed-length vector even if the result
4764 is variable-length. Likewise fold a duplicate of a
4765 variable-length vector if the variable-length vector is
4766 itself a duplicate of a fixed-length sequence.
4767 (test_vector_ops_duplicate): Test more cases.
4769 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4771 * vector-builder.h (vector_builder): Add a shape template parameter.
4772 (vector_builder::new_unary_operation): New function, generalizing
4773 the old tree_vector_builder function.
4774 (vector_builder::new_binary_operation): Likewise.
4775 (vector_builder::binary_encoded_nelts): Likewise.
4776 * int-vector-builder.h (int_vector_builder): Update template
4777 parameters to vector_builder.
4778 (int_vector_builder::shape_nelts): New function.
4779 * rtx-vector-builder.h (rtx_vector_builder): Update template
4780 parameters to vector_builder.
4781 (rtx_vector_builder::shape_nelts): New function.
4782 (rtx_vector_builder::nelts_of): Likewise.
4783 (rtx_vector_builder::npatterns_of): Likewise.
4784 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
4785 * tree-vector-builder.h (tree_vector_builder): Update template
4786 parameters to vector_builder.
4787 (tree_vector_builder::shape_nelts): New function.
4788 (tree_vector_builder::nelts_of): Likewise.
4789 (tree_vector_builder::npatterns_of): Likewise.
4790 (tree_vector_builder::nelts_per_pattern_of): Likewise.
4791 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
4792 (tree_vector_builder::new_binary_operation): Delete.
4793 (tree_vector_builder::binary_encoded_nelts): Likewise.
4794 * simplify-rtx.c: Include rtx-vector-builder.h.
4795 (distributes_over_addition_p): New function.
4796 (simplify_const_unary_operation)
4797 (simplify_const_binary_operation): Generalize handling of vector
4798 constants to include variable-length vectors.
4799 (test_vector_ops_series): Add more tests.
4801 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
4804 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
4805 than INDENTIFIER_POINTER.
4807 2019-07-28 Martin Liska <mliska@suse.cz>
4810 * cgraph.c (symbol_table::create_edge): Always allocate
4812 (symbol_table::free_edge): Store summary_id to
4813 edge_released_summary_ids if != -1;
4814 * cgraph.h (NEXT_FREE_NODE): Remove.
4815 (SET_NEXT_FREE_NODE): Likewise.
4816 (NEXT_FREE_EDGE): Likewise.
4817 (symbol_table::release_symbol): Store summary_id to
4818 cgraph_released_summary_ids if != -1;
4819 (symbol_table::allocate_cgraph_symbol): Always allocate
4822 2019-07-28 Alan Modra <amodra@gmail.com>
4824 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
4827 2019-07-28 Alan Modra <amodra@gmail.com>
4830 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
4832 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
4833 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
4834 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
4836 2019-07-28 Alan Modra <amodra@gmail.com>
4839 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
4840 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
4841 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
4842 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
4843 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
4844 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
4845 in asm_default spec.
4846 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
4847 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
4849 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
4851 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
4853 2019-07-26 Tamar Christina <tamar.christina@arm.com>
4856 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
4857 * config/aarch64/aarch64-option-extensions.def: Add new comments
4858 and restore easier to read options.
4860 2019-07-26 Tamar Christina <tamar.christina@arm.com>
4862 * convert.c (convert_to_real_1): Move part of conversion code...
4863 * match.pd: ...To here.
4865 2019-07-26 Martin Jambor <mjambor@suse.cz>
4868 * ipa-inline-transform.c (check_speculations_1): New function.
4869 (push_all_edges_in_set_to_vec): Likewise.
4870 (check_speculations): Use check_speculations_1, new parameter
4872 (inline_call): Pass new_edges to check_speculations.
4873 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
4875 (speculation_useful_p): Early return true if edge is inlined, remove
4876 later checks for inline_failed.
4878 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
4880 PR rtl-optimization/91223
4881 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
4882 matching with INOUT operand.
4884 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
4886 * stmt.c (expand_case): Try to narrow the index type if it's larger
4887 than a word. Tidy up.
4889 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
4891 * cif-code.def (NEVER_CALL): New code.
4892 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
4893 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
4895 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
4897 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
4898 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
4900 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4902 * ipa-devirt.c (add_type_duplicate): Fix return value.
4904 2019-07-25 Richard Biener <rguenther@suse.de>
4906 * tree-vrp.c (extract_range_from_multiplicative_op): Add
4907 type parameter and use it instead of guessing expression
4908 type from the first operand.
4909 (extract_range_from_binary_expr): Pass expr_type down.
4911 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4913 * config/arm/arm.md (SATrev): Change to code attribute.
4914 (*satsi_<SAT:code>): Adjust for the above.
4915 (*satsi_<SAT:code>_shift): Likewise.
4917 2019-07-25 Richard Biener <rguenther@suse.de>
4919 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
4920 Make value_range * temporary const.
4921 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
4923 (evrp_range_analyzer::record_ranges_from_): Likewise.
4924 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
4925 deal with having recorded a const one.
4926 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
4927 Return a const value_range *.
4928 (evrp_range_analyzer::pop_value_range): Likewise.
4929 (evrp_range_analyzer::stack): Record const value_range *s.
4930 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
4932 * gimple-ssa-sprintf.c (get_int_range): Likewise.
4933 (format_integer): Likewise.
4934 (sprintf_dom_walker::handle_gimple_call): Likewise.
4935 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
4936 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
4937 (vrp_prop::get_value_range): Adjust.
4938 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
4939 modifying the lattice in-place.
4940 (vrp_prop::visit_stmt): Likewise.
4941 * vr-values.c (vr_values::get_lattice_entry): New private method.
4942 (vr_values::get_value_range): Wrap it and return a const
4944 (vr_values::set_def_to_varying): New.
4945 (vr_values::set_defs_to_varying): Use it.
4946 (vr_values::update_value_range): Likewise.
4947 (vr_values::vrp_stmt_computes_nonzero): Adjust.
4948 (values::op_with_constant_singleton_va): Likewise.
4949 (vr_values::extract_range_for_var_from_co): Likewise.
4950 (vr_values::extract_range_from_ssa_name): Likewise.
4951 (vr_values::extract_range_from_cond_expr): Likewise.
4952 (vr_values::extract_range_basic): Likewise.
4953 (compare_ranges): Take const value_range *, adjust.
4954 (compare_range_with_value): Likewise.
4955 (vrp_valueize): Adjust.
4956 (vrp_valueize_1): Likewise.
4957 (vr_values::get_vr_for_comparison): Return a const value_range *.
4958 (vr_values::compare_name_with_value): Adjust.
4959 (vr_values::compare_names): Likewise.
4960 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
4962 (vr_values::vrp_evaluate_conditional): Likewise.
4963 (find_case_label_ranges): Take a const value_range *.
4964 (vr_values::vrp_visit_switch_stmt): Adjust.
4965 (vr_values::extract_range_from_phi_node): Likewise.
4966 (vr_values::simplify_div_or_mod_using_ran): Likewise.
4967 (vr_values::simplify_abs_using_ranges): Likewise.
4968 (test_for_singularity): Take a const value_range *.
4969 (range_fits_type_p): Likewise.
4970 (vr_values::simplify_cond_using_ranges_1): Adjust.
4971 (vr_values::simplify_cond_using_ranges_2): Likewise.
4972 (vr_values::simplify_switch_using_ranges): Likewise.
4973 (vr_values::simplify_float_conversion_usi): Likewise.
4974 (vr_values::two_valued_val_range_p): Likewise.
4975 * vr-values.h (vr_values::get_value_range): Return a const
4977 (vr_values::set_def_to_varying): New.
4978 (vr_values::get_lattice_entry): New private method.
4979 (vr_values::get_vr_for_comparison): Return a const value_range *.
4981 2019-07-25 Martin Liska <mliska@suse.cz>
4982 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
4985 * common.opt: Add -fallocation-dce
4986 * gimple.c (gimple_call_operator_delete_p): New.
4987 * gimple.h (gimple_call_operator_delete_p): Likewise.
4988 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
4989 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
4990 DECL_IS_OPERATOR_DELETE_P.
4991 (mark_all_reaching_defs_necessary_1): Likewise.
4992 (propagate_necessity): Likewise.
4993 (eliminate_unnecessary_stmts): Handle
4994 gimple_call_operator_delete_p.
4995 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
4996 Add packing of OPERATOR_DELETE.
4997 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
4999 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
5000 (DECL_SET_IS_OPERATOR_DELETE): New.
5001 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
5003 2019-07-25 Martin Liska <mliska@suse.cz>
5005 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
5006 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
5007 * coverage.c (coverage_begin_function): Likewise.
5008 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
5009 * gimple.c (gimple_call_nonnull_result_p): Likewise.
5010 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
5011 (sem_item::hash_referenced_symbol_properties): Likewise.
5012 * lto-streamer-out.c (hash_tree): Likewise.
5013 * predict.c (expr_expected_value_1): Likewise.
5014 * tree-inline.c (expand_call_inline): Likewise.
5015 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
5016 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
5017 * tree-core.h (enum function_decl_type): New enum.
5018 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
5019 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
5020 (set_function_decl_type): Likewise.
5021 (DECL_IS_OPERATOR_NEW_P): New.
5022 (DECL_SET_IS_OPERATOR_NEW): Likewise.
5023 (DECL_LAMBDA_FUNCTION): Likewise.
5024 (DECL_LAMBDA_FUNCTION_P): Likewise.
5025 (DECL_IS_OPERATOR_NEW): Remove.
5026 (DECL_SET_LAMBDA_FUNCTION): Likewise.
5028 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
5030 * ipa-profile.c (get_most_common_single_value): Use
5031 get_nth_most_common_value.
5032 * profile.c (sort_hist_value): New function.
5033 (compute_value_histograms): Call sort_hist_value to sort the
5034 values after loading from disk.
5035 * value-prof.c (get_most_common_single_value): Rename to ...
5036 get_nth_most_common_value. Add input params n, return
5037 the n_th value and count.
5038 (gimple_divmod_fixed_value_transform): Use
5039 get_nth_most_common_value.
5040 (gimple_ic_transform): Likewise.
5041 (gimple_stringops_transform): Likewise.
5042 * value-prof.h (get_most_common_single_value): Add input params
5045 2019-07-25 Richard Biener <rguenther@suse.de>
5047 PR tree-optimization/91236
5048 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
5049 size of CONSTRUCTOR write. Fix buffer size we pass to
5052 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5054 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
5055 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
5058 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5060 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
5061 explicitly disabled with --disable-initfini-array.
5063 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5065 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
5068 2019-07-24 Martin Sebor <msebor@redhat.com>
5070 PR tree-optimization/91183
5071 PR tree-optimization/86688
5072 * builtins.c (compute_objsize): Handle MEM_REF.
5073 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
5074 (get_min_string_length): Remove.
5075 (count_nonzero_bytes): New function.
5076 (handle_char_store): Rename...
5077 (handle_store): to this. Handle multibyte stores via integer types.
5078 (strlen_check_and_optimize_stmt): Adjust conditional and the called
5081 2019-07-24 Martin Sebor <msebor@redhat.com>
5084 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
5085 (diagnostic_report_diagnostic): Same.
5086 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
5087 (diagnostic_context::lang_mask): New data member.
5088 * ipa-pure-const.c (suggest_attribute): Use
5089 lang_hooks.option_lang_mask ().
5090 * opts-common.c (option_enabled): Handle new argument.
5091 (get_option_state): Pass an additional argument.
5092 * opts.c (print_filtered_help): Print supported languages for
5093 unsupported options. Adjust printing of current state.
5094 * opts.h (option_enabled): Add argument.
5095 * toplev.c (print_switch_values): Use lang_mask.
5096 (general_init): Set global_dc->lang_mask.
5098 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
5101 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
5103 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
5105 * cgraphunit.c (symbol_table::compile): Start and stop
5106 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
5107 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
5109 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
5111 * gimplify.c (flag_instrument_functions_exclude_p): Include
5112 namespace/class information in the printable name.
5113 * opts.c (add_comma_separated_to_vector): Add NUL terminator
5114 to tokens entered into the vector.
5116 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
5118 * tree-nested.c (build_simple_mem_ref_notrap): New function.
5119 (get_static_chain): Call it instead of build_simple_mem_ref.
5120 (get_frame_field): Likewise.
5121 (get_nonlocal_debug_decl): Likewise.
5122 (convert_nonlocal_reference_op): Likewise.
5124 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
5126 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
5128 (arc_compute_frame_size): Millicode is disabled when compiling
5130 (arc_return_address_register): Likewise.
5131 (arc_compute_function_type): Likewise.
5132 (arc_compute_frame_size): Likewise.
5133 (secondary_reload_info): Likewise.
5134 (arc_get_unalign): Likewise.
5135 (arc_can_use_return_insn): Declare.
5136 * config/arc/arc.c (AUX_LP_START): Define
5137 (AUX_LP_END): Likewise.
5138 (arc_frame_info): Update gmask member to 64-bit datum.
5139 (GMASK_LEN): Update.
5140 (arc_compute_function_type): Make it static, move it forward.
5141 (arc_must_save_register): Update, consider the extra regs.
5142 (arc_compute_millicode_save_restore_regs): Update to use the 64
5144 (arc_compute_frame_size): Likewise.
5145 (arc_enter_leave_p): Likewise.
5146 (arc_save_callee_saves): Likewise.
5147 (arc_restore_callee_saves): Likewise.
5148 (arc_save_callee_enter): Likewise.
5149 (arc_restore_callee_leave): Likewise.
5150 (arc_save_callee_milli): Likewise.
5151 (arc_restore_callee_milli): Likewise.
5152 (arc_expand_prologue): Add new interrupt handling.
5153 (arc_return_address_register): Make it static, move it forward.
5154 (arc_expand_epilogue): Add new interrupt handling.
5155 (arc_get_unalign): Delete.
5156 (arc_epilogue_uses): Make sure we do not remove the extra
5157 saved/restored registers when interrupt.
5158 (arc_can_use_return_insn): New function.
5159 (push_reg): Likewise.
5160 (pop_reg): Likewise.
5161 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
5163 (arc_restore_callee_saves): Likewise, but restoring.
5164 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
5165 (R33_REG): Likewise.
5166 (R34_REG): Likewise.
5167 (R35_REG): Likewise.
5168 (R36_REG): Likewise.
5169 (R37_REG): Likewise.
5170 (R38_REG): Likewise.
5171 (R39_REG): Likewise.
5172 (R45_REG): Likewise.
5173 (R46_REG): Likewise.
5174 (R47_REG): Likewise.
5175 (R48_REG): Likewise.
5176 (R49_REG): Likewise.
5177 (R50_REG): Likewise.
5178 (R51_REG): Likewise.
5179 (R52_REG): Likewise.
5180 (R53_REG): Likewise.
5181 (R54_REG): Likewise.
5182 (R55_REG): Likewise.
5183 (R56_REG): Likewise.
5184 (R58_REG): Likewise.
5185 (type): Add rtie attribute.
5186 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
5187 (movsi_insn): Accept moves to lp_count.
5188 (rtie): Update pattern.
5189 (simple_return): Simplify it, don't use this pattern as a return
5191 (arc600_rtie): New pattern.
5192 (p_return_i): Clean up.
5194 * config/arc/builtins.def (rtie): Only available for non ARC6xx
5196 * config/arc/predicates.md (move_src_operand): Consider lp_count
5199 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
5201 * config/s390/predicates.md (addv_const_operand): New predicate.
5202 * config/s390/s390-modes.def (CCO): New condition code mode.
5203 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
5204 (s390_branch_condition_mask): Likewise.
5205 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
5206 ("mulv<mode>4"): New expanders.
5207 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
5208 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
5209 pattern definitions.
5211 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5214 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
5215 (define_predicates): Add entry for uniform_vector_p.
5216 (vec_same_elem_p): New match pattern.
5218 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
5221 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
5222 * config/i386/darwin32-biarch.h .. to here.
5223 * config/i386/darwin64-biarch.h: Adjust comments.
5224 * config/rs6000/darwin32-biarch.h: Likewise.
5225 * config/rs6000/darwin64-biarch.h: Likewise.
5226 * config.gcc: Missed commit from r273746
5227 (*-*-darwin*): Don't include CPU t-darwin here.
5228 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
5229 an error message if i686-darwin configuration is attempted for
5232 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
5235 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
5236 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
5237 an error message if i686-darwin configuration is attempted for
5239 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
5240 (powerpc-*-darwin*): Use biarch files where needed.
5241 (powerpc64-*-darwin*): Likewise.
5242 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
5243 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
5245 * config/i386/darwin32-biarch.h: New.
5246 * config/i386/darwin64.h: Rename.
5247 * config/i386/darwin64-biarch.h: To this.
5248 * config/i386/t-darwin: Rename.
5249 * config/i386/t-darwin32-biarch: To this.
5250 * config/i386/t-darwin64: Rename.
5251 * config/i386/t-darwin64-biarch: To this.
5252 * config/rs6000/darwin32-biarch.h: New.
5253 * config/rs6000/darwin64.h: Rename.
5254 * config/rs6000/darwin64-biarch.h: To this.
5255 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
5257 * config/rs6000/t-darwin8: Rename.
5258 * config/rs6000/t-darwin32-biarch: To this.
5259 * config/rs6000/t-darwin64 Rename.
5260 * config/rs6000/t-darwin64-biarch: To this.
5262 2019-07-23 Martin Sebor <msebor@redhat.com>
5264 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
5266 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
5268 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
5269 (rh): New alias for it.
5271 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
5273 * gdbhooks.py: Pass replace=True to
5274 gdb.printing.register_pretty_printer.
5276 2019-07-23 Richard Biener <rguenther@suse.de>
5279 * lto-streamer-in.c (input_function): Drop inline-entry markers
5280 that ended up with an unknown location block.
5282 2019-07-23 Richard Biener <rguenther@suse.de>
5284 PR tree-optimization/83518
5285 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
5286 init from a constant even when partial defs are already recorded.
5288 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
5290 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
5291 * config/i386/znver1.md: Enable patterns for znver2 and add store
5292 variants which use extra AGU unit.
5294 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
5296 * config/i386/i386-options.c (ix86_option_override_internal): Default
5297 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
5298 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
5301 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
5303 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
5304 (znver2_costs): Update 256 bit SSE costs and multiplication.
5306 2019-07-23 Jan Beulich <jbeulich@suse.com>
5308 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
5309 Require only AVX512F.
5310 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
5311 alternative expanding to vpternlog.
5313 2019-07-23 Martin Liska <mliska@suse.cz>
5315 * dwarf2out.c (gen_producer_string): Canonize -flto=N
5316 to -flto in dwarf producer string.
5318 2019-07-23 Richard Biener <rguenther@suse.de>
5320 * tree-cfg.c (label_for_bb): Remove global var.
5321 (main_block_label): Take label_for_bb as argument.
5322 (cleanup_dead_labels_eh): Likewise, adjust.
5323 (cleanup_dead_labels): Adjust.
5325 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
5327 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
5328 Configurations): Add documentation for __builtin_mtfsf.
5330 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
5332 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
5333 * config/riscv/riscv.c (riscv_constant_alignment): Use
5334 riscv_align_data_type.
5335 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
5336 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
5337 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
5338 * config/riscv/riscv.opt (malign-data): New.
5339 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
5341 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
5343 * cgraph.c (dump_graphviz): New function.
5344 * cgraph.h (dump_graphviz): New function.
5345 * symtab.c (dump_graphviz): New function.
5347 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
5349 * config/aarch64/aarch64-simd.md
5350 (*aarch64_simd_sra<mode>): New.
5351 * config/aarch64/iterators.md
5352 (SHIFTRT): New iterator.
5353 (sra_op): New attribute.
5355 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5357 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
5358 callee-saved regs R4->R10 in an interrupt function that calls another
5361 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
5363 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
5364 (_mm_blendv_epi8): New.
5366 2019-07-22 Richard Biener <rguenther@suse.de>
5368 PR tree-optimization/91221
5369 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
5370 restrict partial-def handling of empty constructors and
5371 memset to refs with known offset.
5373 2019-07-22 Jan Beulich <jbeulich@suse.com>
5375 * config/i386/sse.md (ternlogsuffix): New.
5376 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
5378 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
5380 2019-07-22 Martin Liska <mliska@suse.cz>
5382 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
5384 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
5386 2019-07-22 Martin Liska <mliska@suse.cz>
5388 * lto-section-in.c (lto_get_section_data):
5389 Use new function get_compression.
5390 * lto-streamer-out.c (produce_lto_section): Use
5391 set_compression to encode compression algorithm.
5392 * lto-streamer.h (struct lto_section): Do not
5393 use bitfields in the format.
5395 2019-07-22 Martin Liska <mliska@suse.cz>
5398 * opts-common.c (decode_cmdline_option): Decode
5399 argument of -Werror and check it for a wrong language.
5400 * opts-global.c (complain_wrong_lang): Remove such case.
5402 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
5404 * config/arc/arc.c (prepare_move_operands): Always use an
5405 intermediate register when storing a TLS symbols.
5407 2019-07-22 Stafford Horne <shorne@gmail.com>
5409 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
5412 2019-07-22 Stafford Horne <shorne@gmail.com>
5414 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
5415 and munordered-float validations.
5416 * config/or1k/constraints.md (d): New register constraint.
5417 * config/or1k/predicates.md (fp_comparison_operator): New.
5418 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
5420 (or1k_expand_compare): Normalize unordered comparisons.
5421 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
5422 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
5423 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
5424 * config/or1k/or1k.md (type): Add fpu.
5425 (fpu): New instruction reservation.
5426 (F, f, fr, fi, FI, FOP, fop): New.
5427 (<fop><F:mode>3): New ALU instruction definition.
5428 (float<fi><F:mode>2): New conversion instruction definition.
5429 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
5430 (fpcmpcc): New code iterator.
5431 (*sf_fp_insn): New instruction definition.
5432 (cstore<F:mode>4): New expand definition.
5433 (cbranch<F:mode>4): New expand definition.
5434 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
5435 munordered-float): New options.
5436 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
5439 2019-07-22 Stafford Horne <shorne@gmail.com>
5441 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
5442 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
5443 documenation to be more clear.
5444 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
5446 * config/or1k/or1k.opt (mrori): New option.
5447 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
5448 msfimm, mshftimm): Rewrite documentation to be more clear.
5449 * config/or1k/or1k.md (insn_support): Add ror and rori.
5450 (enabled): Add conditions for ror and rori.
5451 (rotrsi3): Replace condition for shftimm with ror and rori.
5453 2019-07-22 Stafford Horne <shorne@gmail.com>
5456 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
5457 (extend<mode>si2): Update predicate.
5458 * config/or1k/predicates.md (volatile_mem_operand): New.
5459 (reg_or_mem_operand): New.
5461 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
5463 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
5464 * config/rs6000/rs6000-call.c: ... to here.
5466 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
5468 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
5471 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
5473 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
5475 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
5477 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
5479 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
5481 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
5482 (any_memory_operand): New predicate.
5483 (reg_or_mem_operand): Use it.
5485 2019-07-20 Jakub Jelinek <jakub@redhat.com>
5488 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
5490 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
5492 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
5493 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
5495 2019-07-20 Jakub Jelinek <jakub@redhat.com>
5497 * tree.def (OMP_LOOP): New tree code.
5498 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
5499 (enum omp_clause_bind_kind): New enum.
5500 (struct tree_omp_clause): Add subcode.bind_kind.
5501 * tree.h (OMP_LOOP_CHECK): Rename to ...
5502 (OMP_LOOPING_CHECK): ... this.
5503 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
5504 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
5505 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
5506 (OMP_CLAUSE_BIND_KIND): Define.
5507 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
5508 bind clause entries.
5509 (walk_tree_1): Handle OMP_CLAUSE_BIND.
5510 * tree-pretty-print.c (dump_omp_clause): Likewise.
5511 (dump_generic_node): Handle OMP_LOOP.
5512 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
5513 (in_omp_construct): New variable.
5514 (is_gimple_stmt): Handle OMP_LOOP.
5515 (gimplify_scan_omp_clauses): For lastprivate don't set
5516 check_non_private if code == OMP_LOOP. For reduction clause
5517 on OMP_LOOP combined with parallel or teams propagate as shared
5518 on the combined construct. Handle OMP_CLAUSE_BIND.
5519 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
5520 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
5521 for constructs from a loop construct to gimplify_scan_omp_clauses.
5522 Don't predetermine iterator linear on OMP_SIMD from loop construct.
5523 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
5524 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
5525 to match the implicit ORT_TARGET construct around whole body.
5526 Temporarily clear in_omp_construct when processing body.
5527 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
5528 etc. temporarily set in_omp_construct when processing body.
5529 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
5530 * omp-low.c (struct omp_context): Add loop_p.
5531 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
5532 in that the original var might be private.
5533 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
5534 (check_omp_nesting_restrictions): Adjust nesting restrictions for
5535 addition of loop construct.
5536 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
5538 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
5539 lastprivate non-addressable iterator of a collapse(1) simd.
5541 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
5543 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
5546 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
5548 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
5549 refer to default conditions. Warn for the 'y' spec which is ignored
5552 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
5554 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
5555 cpu_supports_info, builtin_hash_struct, builtin_hasher,
5556 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
5557 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
5558 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
5559 init_cumulative_args, rs6000_promote_function_mode,
5560 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
5561 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
5562 rs6000_function_arg_boundary, rs6000_parm_offset,
5563 rs6000_parm_start, rs6000_arg_size,
5564 rs6000_darwin64_record_arg_advance_flush,
5565 rs6000_darwin64_record_arg_advance_recurse,
5566 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
5567 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
5568 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
5569 rs6000_mixed_function_arg, rs6000_psave_function_arg,
5570 rs6000_finish_function_arg, rs6000_function_arg,
5571 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
5572 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
5573 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
5574 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
5575 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
5576 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
5577 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
5578 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
5579 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
5580 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
5581 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
5582 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
5583 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
5584 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
5585 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
5586 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
5587 get_element_number, altivec_expand_vec_set_builtin,
5588 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
5589 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
5590 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
5591 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
5592 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
5593 rs6000_expand_builtin, rs6000_vector_type,
5594 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
5595 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
5596 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
5598 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
5599 cpu_supports_info, builtin_hash_struct, builtin_hasher,
5600 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
5601 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
5602 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
5603 init_cumulative_args, rs6000_promote_function_mode,
5604 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
5605 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
5606 rs6000_function_arg_boundary, rs6000_parm_offset,
5607 rs6000_parm_start, rs6000_arg_size,
5608 rs6000_darwin64_record_arg_advance_flush,
5609 rs6000_darwin64_record_arg_advance_recurse,
5610 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
5611 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
5612 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
5613 rs6000_mixed_function_arg, rs6000_psave_function_arg,
5614 rs6000_finish_function_arg, rs6000_function_arg,
5615 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
5616 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
5617 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
5618 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
5619 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
5620 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
5621 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
5622 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
5623 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
5624 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
5625 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
5626 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
5627 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
5628 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
5629 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
5630 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
5631 get_element_number, altivec_expand_vec_set_builtin,
5632 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
5633 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
5634 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
5635 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
5636 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
5637 rs6000_expand_builtin, rs6000_vector_type,
5638 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
5639 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
5640 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
5641 to here from rs6000.c.
5642 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
5643 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
5644 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
5645 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
5646 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
5647 rs6000_return_in_memory, rs6000_return_in_msb,
5648 rs6000_pass_by_reference, setup_incoming_varargs,
5649 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
5650 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
5651 rs6000_function_arg_padding, rs6000_function_arg,
5652 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
5653 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
5654 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
5655 rs6000_passes_long_double, rs6000_passes_vector,
5656 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
5657 altivec_builtin_mask_for_load) Add declarations.
5658 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
5659 * config/config.gcc: Add new source file rs6000-call.c to garbage
5660 collector and extra_objs.
5662 2019-07-19 Jeff Law <law@redhat.com>
5664 PR tree-optimization/86061
5665 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
5666 strncpy. Drop some trivial dead code.
5667 (maybe_trim_memstar_call): Handle strncpy.
5669 2019-07-19 Richard Biener <rguenther@suse.de>
5671 PR tree-optimization/91211
5672 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
5673 memset encoding size.
5675 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
5678 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
5680 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
5683 * ipa-inline.c (recursive_inlining): Fix limits check.
5685 2019-07-19 Richard Biener <rguenther@suse.de>
5687 PR tree-optimization/91200
5688 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
5689 no PHI nodes in middle-bb.
5691 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
5693 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
5695 * config/aarch64/aarch64-option-extensions.def: Likewise.
5697 2019-07-19 Jakub Jelinek <jakub@redhat.com>
5700 * function.c (insert_temp_slot_address): Store into the hash table
5701 a copy of address to avoid RTL sharing issues.
5703 2019-07-19 Richard Biener <rguenther@suse.de>
5705 PR tree-optimization/91207
5707 2019-07-17 Richard Biener <rguenther@suse.de>
5709 PR tree-optimization/91178
5710 * tree-vect-stmts.c (get_group_load_store_type): For SLP
5711 loads with a gap larger than the vector size always use
5713 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
5714 avoid loading vectors that are only contained in the gap
5715 and thus are not needed.
5717 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
5719 * config/i386/i386.md (*addqi_2_slp): Remove.
5720 (*<code>qi_2_slp): Ditto.
5722 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
5724 * config/rs6000/predicates.md (prefixed_mem_operand): Call
5725 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
5726 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
5727 Rename function from rs6000_prefixed_address.
5728 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5730 (TARGET_TOC): Likewise.
5731 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
5733 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5735 (TARGET_TOC): Likewise.
5736 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
5738 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5740 (TARGET_TOC): Likewise.
5741 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5742 check to require -mcmodel=medium for pc-relative addressing.
5743 (create_TOC_reference): Add assertion for TARGET_TOC.
5744 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
5746 (rs6000_emit_move): Likewise.
5747 (TOC_alias_set): Rename TOC alias set static variable from 'set'
5749 (get_TOC_alias_set): Likewise.
5750 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
5752 (rs6000_can_eliminate): Likewise.
5753 (rs6000_prefixed_address_mode_p): Rename function from
5754 rs6000_prefixed_address.
5755 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
5756 TARGET_HAS_TOC and not pc-relative.
5757 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
5758 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5760 (TARGET_TOC): Likewise.
5761 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
5764 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
5767 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
5768 for operand 0. Do not use (match_dup) to match operand 1 with
5769 operand 0. Add check in insn constraint that either input operand
5770 matches operand 0. Use SWI12 mode iterator to also handle
5772 (*and<mode>_1_slp): Ditto.
5773 (*<code>qi_1_slp): Ditto.
5774 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
5775 Do not use (match_dup) to match operand 1 with operand 0. Add
5776 check in insn constraint that operand 1 matches operand 0.
5777 Use SWI12 mode iterator to also handle HImode operands.
5778 (*ashl<mode>3_1_slp): Ditto.
5779 (*<shift_insn><mode>3_1_slp): Ditto.
5780 (*<rotate_insn><mode>3_1_slp): Ditto.
5782 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
5784 * config/arm/arm-builtins.c
5785 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
5786 (arm_expand_unop_builtin): Likewise.
5787 * config/arm/crypto.md
5788 (crypto_sha1h): Convert from define_insn to define_expand.
5789 (crypto_<crypto_pattern>): Likewise.
5790 (crypto_sha1h_lb): New define_insn.
5791 (crypto_<crypto_pattern>_lb): Likewise.
5793 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
5796 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
5797 (vsha1cq_u32): Likewise.
5798 (vsha1pq_u32): Likewise.
5799 (vsha1mq_u32): Likewise.
5800 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
5802 (crypto_sha1c): Correct vec select.
5803 (crypto_sha1m): Likewise.
5804 (crypto_sha1p): Likewise.
5806 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
5808 * config/arm/predicates.md (arm_borrow_operation): New predicate.
5809 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
5810 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
5811 (subdi_zesidi_zesidi): Likewise.
5812 (negdi2_compare, negdi2_insn): Likewise.
5813 (negdi_extensidi): Likewise.
5814 (negdi_zero_extendsidi): Likewise.
5815 (arm_cmpdi_insn): Likewise.
5816 (subsi3_carryin): Use arm_borrow_operation.
5817 (subsi3_carryin_const): Likewise.
5818 (subsi3_carryin_const0): Likewise.
5819 (subsi3_carryin_compare): Likewise.
5820 (subsi3_carryin_compare_const): Likewise.
5821 (subsi3_carryin_compare_const0): Likewise.
5822 (subsi3_carryin_shift): Likewise.
5823 (rsbsi3_carryin_shift): Likewise.
5824 (negsi2_carryin_compare): Likewise.
5826 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
5828 PR tree-optimization/91137
5829 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
5830 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
5831 Init, use and fini the above new field.
5832 (determine_base_object_1): New function.
5833 (determine_base_object): Reimplement using walk_tree.
5835 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
5837 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
5838 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
5839 CLEANUP_FORCE_FAST_DCE is set.
5840 * ifcvt.c (rest_of_handle_if_conversion): Pass
5841 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
5842 if-conversion succeeded.
5844 2019-07-18 Richard Biener <rguenther@suse.de>
5846 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
5847 branches to make code less indented.
5849 2019-07-17 Alexandre Oliva <oliva@adacore.com>
5852 * attribs.c (decls_mismatched_attributes): Simplify the logic
5853 that avoids duplicates and false positives.
5855 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
5857 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
5858 data into data section when generating PIC code.
5859 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
5860 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
5861 generating code for SOM targets earlier than HP-UX 11. Otherwise,
5862 return 2 for SOM and 0 for other targets.
5864 2019-07-17 Jeff Law <law@redhat.com>
5866 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
5867 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
5868 avoid unexpected switch statement fallthru.
5870 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
5872 * config/i386/i386.md (*add<dwi>3_doubleword):
5873 Remove redundant constraints.
5874 (*add<mode>_1): Ditto.
5877 (*addqi_1_slp): Ditto.
5878 (*add<mode>_2): Ditto.
5879 (*addv<mode>4): Ditto.
5880 (*sub<dwi>3_doubleword): Ditto.
5881 (*sub<mode>_1): Ditto.
5882 (*subqi_1_slp): Ditto.
5883 (*sub<mode>_2): Ditto.
5884 (*subv<mode>4): Ditto.
5885 (*sub<mode>_3): Ditto.
5886 (@add<mode>3_carry): Ditto.
5887 (@sub<mode>3_carry): Ditto.
5888 (*add<mode>3_cc_overflow_1): Ditto.
5889 (*add<mode>3_zext_cc_overflow_2): Ditto.
5891 (*and<mode>_1): Ditto.
5893 (*andqi_1_slp): Ditto.
5895 (*andqi_2_maybe_si): Ditto.
5896 (*and<mode>_2): Ditto.
5897 (*andqi_2_slp): Ditto.
5898 (*<code><mode>_1): Ditto.
5899 (*<code>qi_1): Ditto.
5900 (*<code>qi_1_slp): Ditto.
5901 (*<code><mode>_2): Ditto.
5902 (*<code>qi_2_slp): Ditto.
5904 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
5906 * alias.c (record_component_aliases): Do not simplify pointed-to
5909 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
5911 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
5912 partial reg stall on alternative 2.
5914 2019-07-17 Richard Biener <rguenther@suse.de>
5916 PR tree-optimization/91178
5917 * tree-ssa.c (release_defs_bitset): Iterate from higher to
5918 lower SSA names to avoid quadratic behavior in the common case.
5919 * tree-data-ref.c (split_constant_offset): Add limit argument
5920 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
5921 (split_constant_offset_1): Add limit argument and use it to
5922 limit SSA def walking. Optimize the common plus/minus case.
5924 2019-07-17 Richard Biener <rguenther@suse.de>
5926 PR tree-optimization/91178
5927 * tree-vect-stmts.c (get_group_load_store_type): For SLP
5928 loads with a gap larger than the vector size always use
5930 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
5931 avoid loading vectors that are only contained in the gap
5932 and thus are not needed.
5934 2019-07-17 Richard Biener <rguenther@suse.de>
5936 PR tree-optimization/91180
5937 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
5938 computation for memset partial defs.
5940 2019-07-17 Jakub Jelinek <jakub@redhat.com>
5942 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
5943 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
5944 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
5945 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
5946 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
5947 * omp-grid.c (grid_process_grid_body,
5948 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
5949 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
5950 == GF_OMP_FOR_KIND_SIMD.
5951 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
5952 check_omp_nesting_restrictions, scan_omp_1_stmt,
5953 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
5954 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
5955 omp_find_scan): Likewise.
5956 * omp-expand.c (expand_omp_for): Likewise.
5957 * omp-general.c (omp_extract_for_data): Likewise.
5959 PR tree-optimization/91157
5960 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
5961 a vector boolean with scalar mode.
5962 (expand_vector_condition): Handle first operand being a vector boolean
5964 (expand_vector_operations_1): For comparisons, don't bail out early
5965 if the return type is vector boolean with scalar mode, but comparison
5966 operand type is not.
5968 2019-07-17 Richard Biener <rguenther@suse.de>
5970 PR tree-optimization/91181
5971 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
5974 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
5976 * config/i386/i386.md (*testdi_1): Match CCZmode for
5977 constants that might have the SImode sign bit set.
5978 (*testqi_1_maybe_si): Remove "!" constraint modifier.
5979 Use correct constraints for pentium pairing.
5980 (*test<mode>_1): Ditto.
5982 2019-07-16 Jeff Law <law@redhat.com>
5984 PR rtl-optimization/91173
5985 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
5986 SSA_NAME with a constant value, fold its value into the offset
5987 and clear the base before calling gen_addr_rtx.
5989 2019-07-16 Jakub Jelinek <jakub@redhat.com>
5991 PR rtl-optimization/91164
5992 * dse.c (rest_of_handle_dse): If dead edges have been purged,
5993 invalidate dominance info.
5995 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5997 * read-md.h (md_reader::record_potential_iterator_use): Add a
5998 file_location parameter.
5999 * read-rtl.c (attribute_use::loc): New field.
6000 (map_attr_string): Take a file_location parameter. Report cases
6001 in which attributes map to multiple distinct values.
6002 (apply_attribute_uses): Update call accordingly.
6003 (md_reader::handle_overloaded_name): Likewise.
6004 (md_reader::apply_iterator_to_string): Likewise. Skip empty
6006 (record_attribute_use): Take a file_location parameter.
6007 Initialize attribute_use::loc.
6008 (md_reader::record_potential_iterator_use): Take a file_location
6009 parameter. Update call to record_attribute_use.
6010 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
6011 (rtx_reader::read_rtx_code): Likewise.
6012 (rtx_reader::read_rtx_operand): Likewise. Record a location
6013 for implicitly-expanded empty strings.
6015 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
6017 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
6018 Use file_location instead of separate fields.
6019 (md_reader::set_md_ptr_loc): Take a file_location instead of a
6020 separate filename and line number.
6021 * read-md.c (ptr_loc): As above.
6022 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
6023 (md_reader::fprint_md_ptr_loc): Likewise.
6024 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
6025 instead of a separate filename and line number.
6026 (md_reader::read_string): Update call accordingly.
6028 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
6030 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
6031 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
6032 leaving the choice between SFDF and P implicit.
6033 (*mov<mode>_update2): Likewise.
6034 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
6035 rather than leaving the choice betweem IBM128 and GPR implicit.
6036 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
6037 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
6039 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
6040 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
6041 * config/rs6000/vsx.md
6042 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
6043 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
6044 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
6045 and VSX_EXTRACT_I implicit.
6047 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
6049 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
6050 Explicitly use <MOVEP1:MODE> for the mode attribute.
6052 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
6055 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
6057 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
6060 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
6063 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
6065 * config/i386/i386.md (@test<mode>_ccno_1):
6066 Rename from test<mode>_ccno_1.
6067 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
6068 (*testqi_1_maybe_si): Remove modrm attribute.
6069 (*test<mode>_1): Ditto.
6070 * config/i386/i386-expand.c (ix86_split_idivmod): Use
6071 gen_test_ccno_1 and gen_extend_insn.
6073 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
6075 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
6078 2019-07-15 Richard Biener <rguenther@suse.de>
6081 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
6082 node make sure to replace all uses with something valid.
6084 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
6086 PR tree-optimization/88497
6087 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
6088 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
6089 function undistribute_bitref_for_vector.
6090 (undistribute_bitref_for_vector): New function.
6091 (cleanup_vinfo_map): Likewise.
6092 (sort_by_mach_mode): Likewise.
6094 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
6096 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
6097 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
6098 and testdi_ccno_1 using SWI48 mode attribute.
6099 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
6100 x86_64_szext_general_operand.
6101 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
6102 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
6103 instead of genera_operand mode attribute.
6105 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
6107 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
6108 fopen and fclose to their respective types.
6109 (DotFn.invoke): Ditto.
6111 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
6113 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
6114 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
6115 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
6116 (array_index_predicate): Remove.
6117 (analyze_function_body): Account cost for variable ofsetted array
6119 (estimate_node_size_and_time): Do not compute array index hint.
6120 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
6121 (inline_read_section): Do not read array index hint.
6122 (ipa_fn_summary_write): Do not write array index hint.
6123 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
6124 * ipa-cp.c (hint_time_bonus): Remove.
6125 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
6126 (ipa_fnsummary): Remove array_index.
6127 * ipa-inline.c (want_inline_small_function_p): Do not use
6129 (edge_badness): Likewise.
6130 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
6132 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
6135 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
6136 superfluous "builtin function" phrasing.
6138 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
6140 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
6142 (aliasing_component_refs_walk): Break out from ...
6143 (aliasing_component_refs_p): ... here.
6145 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
6148 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
6149 "builtin function" phrasing.
6151 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6154 * recog.h (temporary_volatile_ok): New class.
6155 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
6156 volatile_ok temporarily to true using temporary_volatile_ok.
6157 * expr.c (emit_block_move_via_cpymem): Likewise.
6158 * optabs.c (maybe_legitimize_operand): Likewise.
6160 2019-07-13 Jakub Jelinek <jakub@redhat.com>
6162 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
6163 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
6164 uses inside of order(concurrent) constructs.
6165 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
6166 OMP_CLAUSE_ORDER is seen.
6167 * omp-low.c (struct omp_context): Add order_concurrent member.
6168 (scan_sharing_clauses): Set ctx->order_concurrent if
6169 OMP_CLAUSE_ORDER is seen.
6170 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
6171 of simd order(concurrent). Diagnose constructs not allowed inside of
6172 for order(concurrent).
6173 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
6174 complaining about static double setjmp (double); or class static
6175 methods or non-global namespace setjmps.
6176 (omp_runtime_api_call): New function.
6177 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
6178 order(concurrent) loops.
6180 2019-07-12 Martin Sebor <msebor@redhat.com>
6182 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
6183 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
6184 * tree-vrp.c (vrp_prop::check_mem_ref): Use
6185 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
6187 2019-07-12 Jan Hubicka <jh@suse.cz>
6189 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
6190 (indirect_refs_may_alias_p): ... here.
6191 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
6192 mem refs in the access paths.
6194 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
6196 PR tree-optimization/89430
6197 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
6198 store elimination for local variable without address escape.
6200 2019-07-12 Jeff Law <law@redhat.com>
6202 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
6203 for the ".far" section.
6205 2019-07-12 Richard Biener <rguenther@suse.de>
6207 PR tree-optimization/91145
6208 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
6211 2019-07-12 Alexandre Oliva <oliva@adacore.com>
6213 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
6214 rather than this_state as the lowering context for the ELSE
6215 seq in a GIMPLE_EH_ELSE.
6217 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
6219 * vector-builder.h (vector_builder::elt): Allow already-supplied
6220 elements to be read back before building is complete.
6222 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
6224 PR rtl-optimization/91136
6225 * df-core.c (ACCESSING REFS): Fix typos in comment.
6226 * resource.c (mark_target_live_reg): Add artificial defs that occur at
6227 the beginning of the block to the initial set of live registers.
6229 2019-07-12 Richard Biener <rguenther@suse.de>
6231 * fold-const.h (get_array_ctor_element_at_index): Adjust.
6232 * fold-const.c (get_array_ctor_element_at_index): Add
6233 ctor_idx output parameter informing the caller where in
6234 the constructor the element was (not) found. Add early exit
6235 for when the ctor is sorted.
6236 * gimple-fold.c (fold_array_ctor_reference): Support constant
6237 folding across multiple array elements.
6239 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
6241 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
6242 doesn't have location, set the current location to the function's end.
6244 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
6246 * config/aarch64/aarch64.md (*compare_condjump<mode>)
6247 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
6248 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
6249 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
6250 * config/aarch64/aarch64-simd.md
6251 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
6252 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
6253 * config/aarch64/aarch64-sve.md
6254 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
6255 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
6257 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
6259 * doc/md.texi: Document that @ patterns can have different
6260 numbers of operands.
6261 * genemit.c (handle_overloaded_gen): Handle this case.
6262 * genopinit.c (handle_overloaded_gen): Likewise.
6263 * gensupport.c (replace_operands_with_dups): Iterate over
6264 the new rtx's format rather than the old one's.
6266 2019-07-12 Jakub Jelinek <jakub@redhat.com>
6268 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
6269 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
6270 order clause entries.
6271 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
6272 * tree-pretty-print.c (dump_omp_clause): Likewise.
6273 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
6275 * omp-low.c (scan_sharing_clauses): Likewise.
6276 * tree-nested.c (convert_nonlocal_omp_clauses,
6277 convert_local_omp_clauses): Likewise.
6279 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
6281 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
6282 fallthrough target of current basic block isn't the placed
6285 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
6288 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
6289 (_mm512_storeu_epi64): Likewise.
6290 (_mm512_loadu_epi32): Likewise.
6291 (_mm512_storeu_epi32): Likewise.
6292 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
6293 (_mm_storeu_epi64): Likewise.
6294 (_mm256_storeu_epi32): Likewise.
6295 (_mm_storeu_epi32): Likewise.
6297 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
6299 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
6301 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
6303 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
6306 2019-07-11 Jakub Jelinek <jakub@redhat.com>
6309 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
6310 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
6311 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
6312 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
6313 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
6314 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
6316 (ufix_truncv2dfv2si2<mask_name>): Change into ...
6317 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
6318 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
6320 (sse2_cvttpd2dq<mask_name>): Change into ...
6321 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
6322 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
6323 (*sse2_cvtpd2dq<mask_name>): Change into ...
6324 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
6325 Add "C" constraint to const0_operand.
6326 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
6327 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
6331 * config/i386/i386-builtin-types.def
6332 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
6333 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
6334 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
6335 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
6336 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
6337 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
6338 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
6339 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
6340 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
6341 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
6342 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
6343 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
6344 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
6345 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
6346 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
6347 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
6348 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
6349 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
6350 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
6351 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
6352 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
6353 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
6354 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
6355 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
6356 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
6357 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
6358 __builtin_ia32_vpdpbusd_v4si_maskz,
6359 __builtin_ia32_vpdpbusds_v16si_mask,
6360 __builtin_ia32_vpdpbusds_v16si_maskz,
6361 __builtin_ia32_vpdpbusds_v8si_mask,
6362 __builtin_ia32_vpdpbusds_v8si_maskz,
6363 __builtin_ia32_vpdpbusds_v4si_mask,
6364 __builtin_ia32_vpdpbusds_v4si_maskz,
6365 __builtin_ia32_vpdpwssd_v16si_mask,
6366 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
6367 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
6368 __builtin_ia32_vpdpwssd_v4si_maskz,
6369 __builtin_ia32_vpdpwssds_v16si_mask,
6370 __builtin_ia32_vpdpwssds_v16si_maskz,
6371 __builtin_ia32_vpdpwssds_v8si_mask,
6372 __builtin_ia32_vpdpwssds_v8si_maskz,
6373 __builtin_ia32_vpdpwssds_v4si_mask,
6374 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
6375 suffixed types rather than *_INT.
6376 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
6377 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
6378 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
6379 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
6380 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
6381 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
6383 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
6385 * tree-vrp.c (intersect_ranges): If we know the intersection is
6386 empty, there is no need to conservatively add anything else to
6389 2019-07-11 Richard Biener <rguenther@suse.de>
6392 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
6393 when the object is volatile and we have not cleared it even though
6394 there are no nonzero elements.
6396 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
6398 * config/rs6000/predicates.md (cint34_operand): Update
6399 SIGNED_34BIT_OFFSET_P call.
6400 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
6401 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
6402 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
6403 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
6404 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
6406 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
6407 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
6408 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
6409 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
6410 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
6412 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
6414 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
6415 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
6416 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
6417 (DEF_MIN_OSX_VERSION): New.
6419 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
6421 * fold-const.c (fold_relational_const): Fix folding of
6422 vector-to-scalar NE_EXPRs.
6423 (test_vector_folding): Add more tests.
6425 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
6428 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
6429 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
6430 (vec_setv2di_internal): Reexpress as...
6431 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
6432 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
6433 rather than gen_neon_vset_lane<mode>.
6435 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
6438 * lra-constraints.c (process_alt_operands): Don't match user
6439 defined regs only if they are early clobbers.
6441 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
6443 * wide-int.h (wi::lshift): Reject negative values for the fast path.
6445 2019-07-10 Richard Biener <rguenther@suse.de>
6447 PR tree-optimization/91126
6448 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
6449 native encoding offset for BYTES_BIG_ENDIAN.
6450 (vn_reference_lookup_3): Likewise.
6452 2019-07-10 Richard Biener <rguenther@suse.de>
6454 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
6455 LHS whenever possible.
6457 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
6459 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
6460 from ...; work also on duplicated types.
6461 (nonoverlapping_component_refs_since_match): ... here
6462 (ncr_type_uid): Break out from ...
6463 (ncr_compar): ... here; look for TYPE_UID of canonical type if
6465 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
6466 the types and nonoverlapping_component_refs_p_1 to disambiguate.
6468 2019-07-09 Martin Sebor <msebor@redhat.com>
6470 PR tree-optimization/90989
6471 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
6472 optimization to just single character stores.
6474 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
6476 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
6477 Swap operands only once.
6479 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
6481 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
6482 for both call instructions.
6484 2019-07-09 John Darrington <john@darrington.wattle.id.au>
6486 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
6487 rather than GET_MODE_BITSIZE to better handle partial integer modes.
6489 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
6491 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
6492 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
6493 function from rs6000-logue.c back to rs6000.c.
6494 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
6496 2019-07-09 Martin Sebor <msebor@redhat.com>
6499 * auto-profile.c: Change class-key of PODs to struct and others
6501 * basic-block.h: Same.
6502 * bitmap.c (bitmap_alloc): Same.
6504 * builtins.c (expand_builtin_prefetch): Same.
6505 (expand_builtin_interclass_mathfn): Same.
6506 (expand_builtin_strlen): Same.
6507 (expand_builtin_mempcpy_args): Same.
6508 (expand_cmpstr): Same.
6509 (expand_builtin___clear_cache): Same.
6510 (expand_ifn_atomic_bit_test_and): Same.
6511 (expand_builtin_thread_pointer): Same.
6512 (expand_builtin_set_thread_pointer): Same.
6513 * caller-save.c (setup_save_areas): Same.
6514 (replace_reg_with_saved_mem): Same.
6515 (insert_restore): Same.
6516 (insert_save): Same.
6517 (add_used_regs): Same.
6518 * cfg.c (get_bb_copy): Same.
6519 (set_loop_copy): Same.
6522 * cfgexpand.c (alloc_stack_frame_space): Same.
6523 (add_stack_var): Same.
6524 (add_stack_var_conflict): Same.
6525 (add_scope_conflicts_1): Same.
6526 (update_alias_info_with_stack_vars): Same.
6527 (expand_used_vars): Same.
6528 * cfghooks.c (redirect_edge_and_branch_force): Same.
6529 (delete_basic_block): Same.
6531 (make_forwarder_block): Same.
6532 (force_nonfallthru): Same.
6533 (duplicate_block): Same.
6534 (lv_flush_pending_stmts): Same.
6536 * cfgloop.c (flow_loops_cfg_dump): Same.
6537 (flow_loop_nested_p): Same.
6538 (superloop_at_depth): Same.
6539 (get_loop_latch_edges): Same.
6540 (flow_loop_dump): Same.
6541 (flow_loops_dump): Same.
6542 (flow_loops_free): Same.
6543 (flow_loop_nodes_find): Same.
6544 (establish_preds): Same.
6545 (flow_loop_tree_node_add): Same.
6546 (flow_loop_tree_node_remove): Same.
6547 (flow_loops_find): Same.
6548 (find_subloop_latch_edge_by_profile): Same.
6549 (find_subloop_latch_edge_by_ivs): Same.
6550 (mfb_redirect_edges_in_set): Same.
6551 (form_subloop): Same.
6552 (merge_latch_edges): Same.
6553 (disambiguate_multiple_latches): Same.
6554 (disambiguate_loops_with_multiple_latches): Same.
6555 (flow_bb_inside_loop_p): Same.
6557 (get_loop_body_with_size): Same.
6558 (get_loop_body): Same.
6559 (fill_sons_in_loop): Same.
6560 (get_loop_body_in_dom_order): Same.
6561 (get_loop_body_in_custom_order): Same.
6562 (release_recorded_exits): Same.
6563 (get_loop_exit_edges): Same.
6564 (num_loop_branches): Same.
6565 (remove_bb_from_loops): Same.
6566 (find_common_loop): Same.
6567 (delete_loop): Same.
6568 (cancel_loop): Same.
6569 (verify_loop_structure): Same.
6570 (loop_preheader_edge): Same.
6571 (loop_exit_edge_p): Same.
6572 (single_exit): Same.
6573 (loop_exits_to_bb_p): Same.
6574 (loop_exits_from_bb_p): Same.
6575 (get_loop_location): Same.
6576 (record_niter_bound): Same.
6577 (get_estimated_loop_iterations_int): Same.
6578 (max_stmt_executions_int): Same.
6579 (likely_max_stmt_executions_int): Same.
6580 (get_estimated_loop_iterations): Same.
6581 (get_max_loop_iterations): Same.
6582 (get_max_loop_iterations_int): Same.
6583 (get_likely_max_loop_iterations): Same.
6584 * cfgloop.h (simple_loop_desc): Same.
6588 (loop_iterator::next): Same.
6589 (loop_outermost): Same.
6590 * cfgloopanal.c (mark_irreducible_loops): Same.
6591 (num_loop_insns): Same.
6592 (average_num_loop_insns): Same.
6593 (expected_loop_iterations_unbounded): Same.
6594 (expected_loop_iterations): Same.
6595 (mark_loop_exit_edges): Same.
6596 (single_likely_exit): Same.
6597 * cfgloopmanip.c (fix_bb_placement): Same.
6598 (fix_bb_placements): Same.
6599 (remove_path): Same.
6600 (place_new_loop): Same.
6602 (scale_loop_frequencies): Same.
6603 (scale_loop_profile): Same.
6604 (create_empty_if_region_on_edge): Same.
6605 (create_empty_loop_on_edge): Same.
6608 (fix_loop_placements): Same.
6609 (copy_loop_info): Same.
6610 (duplicate_loop): Same.
6611 (duplicate_subloops): Same.
6612 (loop_redirect_edge): Same.
6613 (can_duplicate_loop_p): Same.
6614 (duplicate_loop_to_header_edge): Same.
6615 (mfb_keep_just): Same.
6616 (has_preds_from_loop): Same.
6617 (create_preheader): Same.
6618 (create_preheaders): Same.
6619 (lv_adjust_loop_entry_edge): Same.
6620 (loop_version): Same.
6621 * cfgloopmanip.h: Same.
6623 * cgraphbuild.c: Same.
6624 * combine.c (make_extraction): Same.
6625 * config/i386/i386-features.c: Same.
6626 * config/i386/i386-features.h: Same.
6627 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
6628 (ix86_emit_outlined_ms2sysv_restore): Same.
6629 (ix86_noce_conversion_profitable_p): Same.
6630 (ix86_init_cost): Same.
6631 (ix86_simd_clone_usable): Same.
6632 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
6634 * coretypes.h: Same.
6635 * data-streamer-in.c (string_for_index): Change class-key of PODs
6636 to struct and others to class.
6637 (streamer_read_indexed_string): Same.
6638 (streamer_read_string): Same.
6639 (bp_unpack_indexed_string): Same.
6640 (bp_unpack_string): Same.
6641 (streamer_read_uhwi): Same.
6642 (streamer_read_hwi): Same.
6643 (streamer_read_gcov_count): Same.
6644 (streamer_read_wide_int): Same.
6645 * data-streamer.h (streamer_write_bitpack): Same.
6646 (bp_unpack_value): Same.
6647 (streamer_write_char_stream): Same.
6648 (streamer_write_hwi_in_range): Same.
6649 (streamer_write_record_start): Same.
6650 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
6651 (add_cross_iteration_register_deps): Same.
6652 (build_intra_loop_deps): Same.
6653 * df-core.c (df_analyze): Same.
6654 (loop_post_order_compute): Same.
6655 (loop_inverted_post_order_compute): Same.
6656 * df-problems.c (df_rd_alloc): Same.
6657 (df_rd_simulate_one_insn): Same.
6658 (df_rd_local_compute): Same.
6659 (df_rd_init_solution): Same.
6660 (df_rd_confluence_n): Same.
6661 (df_rd_transfer_function): Same.
6663 (df_rd_dump_defs_set): Same.
6664 (df_rd_top_dump): Same.
6665 (df_lr_alloc): Same.
6666 (df_lr_reset): Same.
6667 (df_lr_local_compute): Same.
6669 (df_lr_confluence_n): Same.
6671 (df_lr_top_dump): Same.
6672 (df_lr_verify_transfer_functions): Same.
6673 (df_live_alloc): Same.
6674 (df_live_reset): Same.
6675 (df_live_init): Same.
6676 (df_live_confluence_n): Same.
6677 (df_live_finalize): Same.
6678 (df_live_free): Same.
6679 (df_live_top_dump): Same.
6680 (df_live_verify_transfer_functions): Same.
6681 (df_mir_alloc): Same.
6682 (df_mir_reset): Same.
6683 (df_mir_init): Same.
6684 (df_mir_confluence_n): Same.
6685 (df_mir_free): Same.
6686 (df_mir_top_dump): Same.
6687 (df_word_lr_alloc): Same.
6688 (df_word_lr_reset): Same.
6689 (df_word_lr_init): Same.
6690 (df_word_lr_confluence_n): Same.
6691 (df_word_lr_free): Same.
6692 (df_word_lr_top_dump): Same.
6693 (df_md_alloc): Same.
6694 (df_md_simulate_one_insn): Same.
6695 (df_md_reset): Same.
6698 (df_md_top_dump): Same.
6699 * df-scan.c (df_insn_delete): Same.
6700 (df_insn_rescan): Same.
6701 (df_notes_rescan): Same.
6702 (df_sort_and_compress_mws): Same.
6703 (df_install_mws): Same.
6704 (df_refs_add_to_chains): Same.
6705 (df_ref_create_structure): Same.
6706 (df_ref_record): Same.
6707 (df_def_record_1): Same.
6708 (df_find_hard_reg_defs): Same.
6709 (df_uses_record): Same.
6710 (df_get_conditional_uses): Same.
6711 (df_get_call_refs): Same.
6712 (df_recompute_luids): Same.
6713 (df_get_entry_block_def_set): Same.
6714 (df_entry_block_defs_collect): Same.
6715 (df_get_exit_block_use_set): Same.
6716 (df_exit_block_uses_collect): Same.
6717 (df_mws_verify): Same.
6718 (df_bb_verify): Same.
6719 * df.h (df_scan_get_bb_info): Same.
6720 * doc/tm.texi: Same.
6721 * dse.c (record_store): Same.
6723 * emit-rtl.c (const_fixed_hasher::equal): Same.
6724 (set_mem_attributes_minus_bitpos): Same.
6725 (change_address): Same.
6726 (adjust_address_1): Same.
6727 (offset_address): Same.
6729 * except.c (dw2_build_landing_pads): Same.
6730 (sjlj_emit_dispatch_table): Same.
6731 * explow.c (allocate_dynamic_stack_space): Same.
6732 (emit_stack_probe): Same.
6733 (probe_stack_range): Same.
6734 * expmed.c (store_bit_field_using_insv): Same.
6735 (store_bit_field_1): Same.
6736 (store_integral_bit_field): Same.
6737 (extract_bit_field_using_extv): Same.
6738 (extract_bit_field_1): Same.
6739 (emit_cstore): Same.
6740 * expr.c (emit_block_move_via_cpymem): Same.
6741 (expand_cmpstrn_or_cmpmem): Same.
6742 (set_storage_via_setmem): Same.
6743 (emit_single_push_insn_1): Same.
6744 (expand_assignment): Same.
6745 (store_constructor): Same.
6746 (expand_expr_real_2): Same.
6747 (expand_expr_real_1): Same.
6750 * function.c (try_fit_stack_local): Same.
6751 (assign_stack_local_1): Same.
6752 (assign_stack_local): Same.
6753 (cut_slot_from_list): Same.
6754 (insert_slot_to_list): Same.
6755 (max_slot_level): Same.
6756 (move_slot_to_level): Same.
6757 (temp_address_hasher::equal): Same.
6758 (remove_unused_temp_slot_addresses): Same.
6759 (assign_temp): Same.
6760 (combine_temp_slots): Same.
6761 (update_temp_slot_address): Same.
6762 (preserve_temp_slots): Same.
6765 * gcc-rich-location.h: Same.
6767 * genattrtab.c (check_attr_test): Same.
6768 (check_attr_value): Same.
6769 (convert_set_attr_alternative): Same.
6770 (convert_set_attr): Same.
6772 (copy_boolean): Same.
6773 (get_attr_value): Same.
6774 (expand_delays): Same.
6775 (make_length_attrs): Same.
6777 (make_alternative_compare): Same.
6778 (simplify_test_exp): Same.
6779 (tests_attr_p): Same.
6780 (get_attr_order): Same.
6781 (clear_struct_flag): Same.
6783 (compares_alternatives_p): Same.
6786 (find_attrs_to_cache): Same.
6787 (write_test_expr): Same.
6788 (walk_attr_value): Same.
6789 (write_attr_get): Same.
6790 (eliminate_known_true): Same.
6791 (write_insn_cases): Same.
6792 (write_attr_case): Same.
6793 (write_attr_valueq): Same.
6794 (write_attr_value): Same.
6795 (write_dummy_eligible_delay): Same.
6796 (next_comma_elt): Same.
6798 (make_internal_attr): Same.
6799 (copy_rtx_unchanging): Same.
6800 (gen_insn_reserv): Same.
6801 (check_tune_attr): Same.
6802 (make_automaton_attrs): Same.
6804 * genextract.c (gen_insn): Same.
6805 (VEC_char_to_string): Same.
6806 * genmatch.c (print_operand): Same.
6808 (parser::parse_operation): Same.
6809 (parser::parse_capture): Same.
6810 (parser::parse_c_expr): Same.
6811 (parser::parse_simplify): Same.
6813 * genoutput.c (output_operand_data): Same.
6814 (output_get_insn_name): Same.
6815 (compare_operands): Same.
6816 (place_operands): Same.
6817 (process_template): Same.
6818 (validate_insn_alternatives): Same.
6819 (validate_insn_operands): Same.
6821 (note_constraint): Same.
6822 * genpreds.c (write_one_predicate_function): Same.
6823 (add_constraint): Same.
6824 (process_define_register_constraint): Same.
6825 (write_lookup_constraint_1): Same.
6826 (write_lookup_constraint_array): Same.
6827 (write_insn_constraint_len): Same.
6828 (write_reg_class_for_constraint_1): Same.
6829 (write_constraint_satisfied_p_array): Same.
6830 * genrecog.c (optimize_subroutine_group): Same.
6831 * gensupport.c (process_define_predicate): Same.
6832 (queue_pattern): Same.
6833 (remove_from_queue): Same.
6834 (process_rtx): Same.
6835 (is_predicable): Same.
6836 (change_subst_attribute): Same.
6837 (subst_pattern_match): Same.
6838 (alter_constraints): Same.
6839 (alter_attrs_for_insn): Same.
6840 (shift_output_template): Same.
6841 (alter_output_for_subst_insn): Same.
6842 (process_one_cond_exec): Same.
6844 (process_define_cond_exec): Same.
6845 (mnemonic_htab_callback): Same.
6846 (gen_mnemonic_attr): Same.
6847 (read_md_rtx): Same.
6849 * gimple-loop-interchange.cc (dump_reduction): Same.
6850 (dump_induction): Same.
6851 (loop_cand::~loop_cand): Same.
6852 (free_data_refs_with_aux): Same.
6853 (tree_loop_interchange::interchange_loops): Same.
6854 (tree_loop_interchange::map_inductions_to_loop): Same.
6855 (tree_loop_interchange::move_code_to_inner_loop): Same.
6856 (compute_access_stride): Same.
6857 (compute_access_strides): Same.
6858 (proper_loop_form_for_interchange): Same.
6859 (tree_loop_interchange_compute_ddrs): Same.
6860 (prune_datarefs_not_in_loop): Same.
6861 (prepare_data_references): Same.
6862 (pass_linterchange::execute): Same.
6863 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
6864 (unroll_jam_possible_p): Same.
6866 (adjust_unroll_factor): Same.
6867 (tree_loop_unroll_and_jam): Same.
6868 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
6869 (loop_versioning::expensive_stmt_p): Same.
6870 (loop_versioning::version_for_unity): Same.
6871 (loop_versioning::dump_inner_likelihood): Same.
6872 (loop_versioning::find_per_loop_multiplication): Same.
6873 (loop_versioning::analyze_term_using_scevs): Same.
6874 (loop_versioning::record_address_fragment): Same.
6875 (loop_versioning::analyze_expr): Same.
6876 (loop_versioning::analyze_blocks): Same.
6877 (loop_versioning::prune_conditions): Same.
6878 (loop_versioning::merge_loop_info): Same.
6879 (loop_versioning::add_loop_to_queue): Same.
6880 (loop_versioning::decide_whether_loop_is_versionable): Same.
6881 (loop_versioning::make_versioning_decisions): Same.
6882 (loop_versioning::implement_versioning_decisions): Same.
6883 * gimple-ssa-evrp-analyze.c
6884 (evrp_range_analyzer::record_ranges_from_phis): Same.
6885 * gimple-ssa-store-merging.c (split_store::split_store): Same.
6886 (count_multiple_uses): Same.
6887 (split_group): Same.
6888 (imm_store_chain_info::output_merged_store): Same.
6889 (pass_store_merging::process_store): Same.
6890 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
6891 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
6893 (alloca_call_type): Same.
6894 (pass_walloca::execute): Same.
6895 * gimple-streamer-in.c (input_phi): Same.
6896 (input_gimple_stmt): Same.
6897 * gimple-streamer.h: Same.
6898 * godump.c (go_force_record_alignment): Same.
6899 (go_format_type): Same.
6900 (go_output_type): Same.
6901 (go_output_fndecl): Same.
6902 (go_output_typedef): Same.
6903 (keyword_hash_init): Same.
6904 (find_dummy_types): Same.
6905 * graph.c (draw_cfg_nodes_no_loops): Same.
6906 (draw_cfg_nodes_for_loop): Same.
6907 * hard-reg-set.h (hard_reg_set_iter_next): Same.
6909 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
6910 * hsa-dump.c (dump_hsa_cfun): Same.
6911 * hsa-gen.c (gen_function_def_parameters): Same.
6912 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
6913 * input.c (dump_line_table_statistics): Same.
6916 * internal-fn.c (get_multi_vector_move): Same.
6917 (expand_load_lanes_optab_fn): Same.
6918 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
6919 (expand_GOMP_SIMT_EXIT): Same.
6920 (expand_GOMP_SIMT_LAST_LANE): Same.
6921 (expand_GOMP_SIMT_ORDERED_PRED): Same.
6922 (expand_GOMP_SIMT_VOTE_ANY): Same.
6923 (expand_GOMP_SIMT_XCHG_BFLY): Same.
6924 (expand_GOMP_SIMT_XCHG_IDX): Same.
6925 (expand_addsub_overflow): Same.
6926 (expand_neg_overflow): Same.
6927 (expand_mul_overflow): Same.
6928 (expand_call_mem_ref): Same.
6929 (expand_mask_load_optab_fn): Same.
6930 (expand_scatter_store_optab_fn): Same.
6931 (expand_gather_load_optab_fn): Same.
6932 * ipa-cp.c (ipa_get_parm_lattices): Same.
6933 (print_all_lattices): Same.
6934 (ignore_edge_p): Same.
6935 (build_toporder_info): Same.
6936 (free_toporder_info): Same.
6937 (push_node_to_stack): Same.
6938 (ipcp_lattice<valtype>::set_contains_variable): Same.
6939 (set_agg_lats_to_bottom): Same.
6940 (ipcp_bits_lattice::meet_with): Same.
6941 (set_single_call_flag): Same.
6942 (initialize_node_lattices): Same.
6943 (ipa_get_jf_ancestor_result): Same.
6944 (ipcp_verify_propagated_values): Same.
6945 (propagate_scalar_across_jump_function): Same.
6946 (propagate_context_across_jump_function): Same.
6947 (propagate_bits_across_jump_function): Same.
6948 (ipa_vr_operation_and_type_effects): Same.
6949 (propagate_vr_across_jump_function): Same.
6950 (set_check_aggs_by_ref): Same.
6951 (set_chain_of_aglats_contains_variable): Same.
6952 (merge_aggregate_lattices): Same.
6953 (agg_pass_through_permissible_p): Same.
6954 (propagate_aggs_across_jump_function): Same.
6955 (call_passes_through_thunk_p): Same.
6956 (propagate_constants_across_call): Same.
6957 (devirtualization_time_bonus): Same.
6958 (good_cloning_opportunity_p): Same.
6959 (context_independent_aggregate_values): Same.
6960 (gather_context_independent_values): Same.
6961 (perform_estimation_of_a_value): Same.
6962 (estimate_local_effects): Same.
6963 (value_topo_info<valtype>::add_val): Same.
6964 (add_all_node_vals_to_toposort): Same.
6965 (value_topo_info<valtype>::propagate_effects): Same.
6966 (ipcp_propagate_stage): Same.
6967 (ipcp_discover_new_direct_edges): Same.
6968 (same_node_or_its_all_contexts_clone_p): Same.
6969 (cgraph_edge_brings_value_p): Same.
6970 (gather_edges_for_value): Same.
6971 (create_specialized_node): Same.
6972 (find_more_scalar_values_for_callers_subset): Same.
6973 (find_more_contexts_for_caller_subset): Same.
6974 (copy_plats_to_inter): Same.
6975 (intersect_aggregates_with_edge): Same.
6976 (find_aggregate_values_for_callers_subset): Same.
6977 (cgraph_edge_brings_all_agg_vals_for_node): Same.
6978 (decide_about_value): Same.
6979 (decide_whether_version_node): Same.
6980 (spread_undeadness): Same.
6981 (identify_dead_nodes): Same.
6982 (ipcp_store_vr_results): Same.
6983 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
6984 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
6985 (redirect_to_unreachable): Same.
6986 (edge_set_predicate): Same.
6987 (evaluate_conditions_for_known_args): Same.
6988 (evaluate_properties_for_edge): Same.
6989 (ipa_fn_summary_t::duplicate): Same.
6990 (ipa_call_summary_t::duplicate): Same.
6991 (dump_ipa_call_summary): Same.
6992 (ipa_dump_fn_summary): Same.
6993 (eliminated_by_inlining_prob): Same.
6994 (set_cond_stmt_execution_predicate): Same.
6995 (set_switch_stmt_execution_predicate): Same.
6996 (compute_bb_predicates): Same.
6997 (will_be_nonconstant_expr_predicate): Same.
6998 (phi_result_unknown_predicate): Same.
6999 (analyze_function_body): Same.
7000 (compute_fn_summary): Same.
7001 (estimate_edge_devirt_benefit): Same.
7002 (estimate_edge_size_and_time): Same.
7003 (estimate_calls_size_and_time): Same.
7004 (estimate_node_size_and_time): Same.
7005 (remap_edge_change_prob): Same.
7006 (remap_edge_summaries): Same.
7007 (ipa_merge_fn_summary_after_inlining): Same.
7008 (ipa_fn_summary_generate): Same.
7009 (inline_read_section): Same.
7010 (ipa_fn_summary_read): Same.
7011 (ipa_fn_summary_write): Same.
7012 * ipa-fnsummary.h: Same.
7013 * ipa-hsa.c (ipa_hsa_read_section): Same.
7014 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
7015 * ipa-icf.c (sem_function::param_used_p): Same.
7016 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
7017 * ipa-inline.c (edge_badness): Same.
7018 (inline_small_functions): Same.
7019 * ipa-polymorphic-call.c
7020 (ipa_polymorphic_call_context::stream_out): Same.
7021 * ipa-predicate.c (predicate::remap_after_duplication): Same.
7022 (predicate::remap_after_inlining): Same.
7023 (predicate::stream_out): Same.
7024 * ipa-predicate.h: Same.
7025 * ipa-profile.c (ipa_profile_read_summary): Same.
7026 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
7027 (count_formal_params): Same.
7028 (ipa_dump_param): Same.
7029 (ipa_alloc_node_params): Same.
7030 (ipa_print_node_jump_functions_for_edge): Same.
7031 (ipa_print_node_jump_functions): Same.
7032 (ipa_load_from_parm_agg): Same.
7033 (get_ancestor_addr_info): Same.
7034 (ipa_compute_jump_functions_for_edge): Same.
7035 (ipa_analyze_virtual_call_uses): Same.
7036 (ipa_analyze_stmt_uses): Same.
7037 (ipa_analyze_params_uses_in_bb): Same.
7038 (update_jump_functions_after_inlining): Same.
7039 (try_decrement_rdesc_refcount): Same.
7040 (ipa_impossible_devirt_target): Same.
7041 (update_indirect_edges_after_inlining): Same.
7042 (combine_controlled_uses_counters): Same.
7043 (ipa_edge_args_sum_t::duplicate): Same.
7044 (ipa_write_jump_function): Same.
7045 (ipa_write_indirect_edge_info): Same.
7046 (ipa_write_node_info): Same.
7047 (ipa_read_edge_info): Same.
7048 (ipa_prop_read_section): Same.
7049 (read_replacements_section): Same.
7050 * ipa-prop.h (ipa_get_param_count): Same.
7051 (ipa_get_param): Same.
7052 (ipa_get_type): Same.
7053 (ipa_get_param_move_cost): Same.
7054 (ipa_set_param_used): Same.
7055 (ipa_get_controlled_uses): Same.
7056 (ipa_set_controlled_uses): Same.
7057 (ipa_get_cs_argument_count): Same.
7058 * ipa-pure-const.c (analyze_function): Same.
7059 (pure_const_read_summary): Same.
7061 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
7062 * ipa-split.c (test_nonssa_use): Same.
7063 (dump_split_point): Same.
7064 (dominated_by_forbidden): Same.
7065 (split_part_set_ssa_name_p): Same.
7066 (find_split_points): Same.
7067 * ira-build.c (finish_loop_tree_nodes): Same.
7068 (low_pressure_loop_node_p): Same.
7069 * ira-color.c (ira_reuse_stack_slot): Same.
7071 * ira.c (setup_reg_equiv): Same.
7072 (print_insn_chain): Same.
7074 * loop-doloop.c (doloop_condition_get): Same.
7076 (record_reg_sets): Same.
7077 (doloop_optimize): Same.
7078 * loop-init.c (loop_optimizer_init): Same.
7079 (fix_loop_structure): Same.
7080 * loop-invariant.c (merge_identical_invariants): Same.
7081 (compute_always_reached): Same.
7083 (may_assign_reg_p): Same.
7084 (find_invariants_bb): Same.
7085 (find_invariants_body): Same.
7086 (replace_uses): Same.
7087 (can_move_invariant_reg): Same.
7088 (free_inv_motion_data): Same.
7089 (move_single_loop_invariants): Same.
7090 (change_pressure): Same.
7091 (mark_ref_regs): Same.
7092 (calculate_loop_reg_pressure): Same.
7093 * loop-iv.c (biv_entry_hasher::equal): Same.
7094 (iv_extend_to_rtx_code): Same.
7095 (check_iv_ref_table_size): Same.
7096 (clear_iv_info): Same.
7097 (latch_dominating_def): Same.
7098 (iv_get_reaching_def): Same.
7099 (iv_constant): Same.
7105 (get_biv_step): Same.
7107 (analyzed_for_bivness_p): Same.
7109 (iv_analyze_biv): Same.
7110 (iv_analyze_expr): Same.
7111 (iv_analyze_def): Same.
7112 (iv_analyze_op): Same.
7114 (iv_analyze_result): Same.
7116 (eliminate_implied_conditions): Same.
7117 (simplify_using_initial_values): Same.
7118 (shorten_into_mode): Same.
7119 (canonicalize_iv_subregs): Same.
7120 (determine_max_iter): Same.
7121 (check_simple_exit): Same.
7122 (find_simple_exit): Same.
7123 (get_simple_loop_desc): Same.
7124 * loop-unroll.c (report_unroll): Same.
7125 (decide_unrolling): Same.
7126 (unroll_loops): Same.
7127 (loop_exit_at_end_p): Same.
7128 (decide_unroll_constant_iterations): Same.
7129 (unroll_loop_constant_iterations): Same.
7130 (compare_and_jump_seq): Same.
7131 (unroll_loop_runtime_iterations): Same.
7132 (decide_unroll_stupid): Same.
7133 (unroll_loop_stupid): Same.
7134 (referenced_in_one_insn_in_loop_p): Same.
7135 (reset_debug_uses_in_loop): Same.
7136 (analyze_iv_to_split_insn): Same.
7137 * lra-eliminations.c (lra_debug_elim_table): Same.
7138 (setup_can_eliminate): Same.
7140 (lra_get_elimination_hard_regno): Same.
7141 (lra_eliminate_regs_1): Same.
7142 (eliminate_regs_in_insn): Same.
7143 (update_reg_eliminate): Same.
7144 (init_elimination): Same.
7145 (lra_eliminate): Same.
7147 * lra-lives.c (initiate_live_solver): Same.
7148 * lra-remat.c (create_remat_bb_data): Same.
7149 * lra-spills.c (lra_spill): Same.
7150 * lra.c (lra_set_insn_recog_data): Same.
7151 (lra_set_used_insn_alternative_by_uid): Same.
7152 (init_reg_info): Same.
7153 (expand_reg_info): Same.
7154 * lto-cgraph.c (output_symtab): Same.
7155 (read_identifier): Same.
7156 (get_alias_symbol): Same.
7158 (input_varpool_node): Same.
7161 (input_cgraph_1): Same.
7163 (input_symtab): Same.
7164 (input_offload_tables): Same.
7165 (output_cgraph_opt_summary): Same.
7166 (input_edge_opt_summary): Same.
7167 (input_cgraph_opt_section): Same.
7168 * lto-section-in.c (lto_free_raw_section_data): Same.
7169 (lto_create_simple_input_block): Same.
7170 (lto_free_function_in_decl_state_for_node): Same.
7171 * lto-streamer-in.c (lto_tag_check_set): Same.
7172 (lto_location_cache::revert_location_cache): Same.
7173 (lto_location_cache::input_location): Same.
7174 (lto_input_location): Same.
7175 (stream_input_location_now): Same.
7176 (lto_input_tree_ref): Same.
7177 (lto_input_eh_catch_list): Same.
7178 (input_eh_region): Same.
7179 (lto_init_eh): Same.
7180 (make_new_block): Same.
7182 (fixup_call_stmt_edges): Same.
7183 (input_struct_function_base): Same.
7184 (input_function): Same.
7185 (lto_read_body_or_constructor): Same.
7186 (lto_read_tree_1): Same.
7187 (lto_read_tree): Same.
7188 (lto_input_scc): Same.
7189 (lto_input_tree_1): Same.
7190 (lto_input_toplevel_asms): Same.
7191 (lto_input_mode_table): Same.
7192 (lto_reader_init): Same.
7193 (lto_data_in_create): Same.
7194 * lto-streamer-out.c (output_cfg): Same.
7195 * lto-streamer.h: Same.
7196 * modulo-sched.c (duplicate_insns_of_cycles): Same.
7197 (generate_prolog_epilog): Same.
7198 (mark_loop_unsched): Same.
7199 (dump_insn_location): Same.
7200 (loop_canon_p): Same.
7201 (sms_schedule): Same.
7202 * omp-expand.c (expand_omp_for_ordered_loops): Same.
7203 (expand_omp_for_generic): Same.
7204 (expand_omp_for_static_nochunk): Same.
7205 (expand_omp_for_static_chunk): Same.
7206 (expand_omp_simd): Same.
7207 (expand_omp_taskloop_for_inner): Same.
7208 (expand_oacc_for): Same.
7209 (expand_omp_atomic_pipeline): Same.
7210 (mark_loops_in_oacc_kernels_region): Same.
7211 * omp-offload.c (oacc_xform_loop): Same.
7212 * omp-simd-clone.c (simd_clone_adjust): Same.
7213 * optabs-query.c (get_traditional_extraction_insn): Same.
7214 * optabs.c (expand_vector_broadcast): Same.
7215 (expand_binop_directly): Same.
7216 (expand_twoval_unop): Same.
7217 (expand_twoval_binop): Same.
7218 (expand_unop_direct): Same.
7219 (emit_indirect_jump): Same.
7220 (emit_conditional_move): Same.
7221 (emit_conditional_neg_or_complement): Same.
7222 (emit_conditional_add): Same.
7223 (vector_compare_rtx): Same.
7224 (expand_vec_perm_1): Same.
7225 (expand_vec_perm_const): Same.
7226 (expand_vec_cond_expr): Same.
7227 (expand_vec_series_expr): Same.
7228 (maybe_emit_atomic_exchange): Same.
7229 (maybe_emit_sync_lock_test_and_set): Same.
7230 (expand_atomic_compare_and_swap): Same.
7231 (expand_atomic_load): Same.
7232 (expand_atomic_store): Same.
7233 (maybe_emit_op): Same.
7234 (valid_multiword_target_p): Same.
7235 (create_integer_operand): Same.
7236 (maybe_legitimize_operand_same_code): Same.
7237 (maybe_legitimize_operand): Same.
7238 (create_convert_operand_from_type): Same.
7239 (can_reuse_operands_p): Same.
7240 (maybe_legitimize_operands): Same.
7241 (maybe_gen_insn): Same.
7242 (maybe_expand_insn): Same.
7243 (maybe_expand_jump_insn): Same.
7244 (expand_insn): Same.
7245 * optabs.h (create_expand_operand): Same.
7246 (create_fixed_operand): Same.
7247 (create_output_operand): Same.
7248 (create_input_operand): Same.
7249 (create_convert_operand_to): Same.
7250 (create_convert_operand_from): Same.
7253 * predict.c (optimize_insn_for_speed_p): Same.
7254 (optimize_loop_for_size_p): Same.
7255 (optimize_loop_for_speed_p): Same.
7256 (optimize_loop_nest_for_speed_p): Same.
7257 (get_base_value): Same.
7258 (predicted_by_loop_heuristics_p): Same.
7259 (predict_extra_loop_exits): Same.
7260 (predict_loops): Same.
7261 (predict_paths_for_bb): Same.
7262 (predict_paths_leading_to): Same.
7263 (propagate_freq): Same.
7264 (pass_profile::execute): Same.
7266 * profile-count.c (profile_count::differs_from_p): Same.
7267 (profile_probability::differs_lot_from_p): Same.
7268 * profile-count.h: Same.
7269 * profile.c (branch_prob): Same.
7270 * regrename.c (free_chain_data): Same.
7271 (mark_conflict): Same.
7272 (create_new_chain): Same.
7273 (merge_overlapping_regs): Same.
7274 (init_rename_info): Same.
7275 (merge_chains): Same.
7276 (regrename_analyze): Same.
7277 (regrename_do_replace): Same.
7278 (scan_rtx_reg): Same.
7279 (record_out_operands): Same.
7280 (build_def_use): Same.
7281 * regrename.h: Same.
7283 * reload1.c (init_reload): Same.
7284 (maybe_fix_stack_asms): Same.
7285 (copy_reloads): Same.
7286 (count_pseudo): Same.
7287 (count_spilled_pseudo): Same.
7289 (find_reload_regs): Same.
7290 (select_reload_regs): Same.
7291 (spill_hard_reg): Same.
7292 (fixup_eh_region_note): Same.
7293 (set_reload_reg): Same.
7294 (allocate_reload_reg): Same.
7295 (compute_reload_subreg_offset): Same.
7296 (reload_adjust_reg_for_icode): Same.
7297 (emit_input_reload_insns): Same.
7298 (emit_output_reload_insns): Same.
7299 (do_input_reload): Same.
7300 (inherit_piecemeal_p): Same.
7302 * sanopt.c (maybe_get_dominating_check): Same.
7303 (maybe_optimize_ubsan_ptr_ifn): Same.
7304 (can_remove_asan_check): Same.
7305 (maybe_optimize_asan_check_ifn): Same.
7306 (sanopt_optimize_walker): Same.
7307 * sched-deps.c (add_dependence_list): Same.
7308 (chain_to_prev_insn): Same.
7309 (add_insn_mem_dependence): Same.
7310 (create_insn_reg_set): Same.
7311 (maybe_extend_reg_info_p): Same.
7312 (sched_analyze_reg): Same.
7313 (sched_analyze_1): Same.
7314 (get_implicit_reg_pending_clobbers): Same.
7315 (chain_to_prev_insn_p): Same.
7316 (deps_analyze_insn): Same.
7317 (deps_start_bb): Same.
7318 (sched_free_deps): Same.
7320 (init_deps_reg_last): Same.
7322 * sched-ebb.c: Same.
7323 * sched-int.h: Same.
7324 * sched-rgn.c (add_branch_dependences): Same.
7325 (concat_insn_mem_list): Same.
7327 (sched_rgn_compute_dependencies): Same.
7328 * sel-sched-ir.c (reset_target_context): Same.
7329 (copy_deps_context): Same.
7330 (init_id_from_df): Same.
7331 (has_dependence_p): Same.
7332 (change_loops_latches): Same.
7333 (bb_top_order_comparator): Same.
7334 (make_region_from_loop_preheader): Same.
7335 (sel_init_pipelining): Same.
7336 (get_loop_nest_for_rgn): Same.
7337 (make_regions_from_the_rest): Same.
7338 (sel_is_loop_preheader_p): Same.
7339 * sel-sched-ir.h (inner_loop_header_p): Same.
7340 (get_all_loop_exits): Same.
7342 * sese.c (sese_build_liveouts): Same.
7343 (sese_insert_phis_for_liveouts): Same.
7344 * sese.h (defined_in_sese_p): Same.
7345 * sreal.c (sreal::stream_out): Same.
7347 * streamer-hooks.h: Same.
7348 * target-globals.c (save_target_globals): Same.
7349 * target-globals.h: Same.
7352 * targhooks.c (default_has_ifunc_p): Same.
7353 (default_empty_mask_is_expensive): Same.
7354 (default_init_cost): Same.
7355 * targhooks.h: Same.
7357 * tree-affine.c (aff_combination_mult): Same.
7358 (aff_combination_expand): Same.
7359 (aff_combination_constant_multiple_p): Same.
7360 * tree-affine.h: Same.
7361 * tree-cfg.c (build_gimple_cfg): Same.
7362 (replace_loop_annotate_in_block): Same.
7363 (replace_uses_by): Same.
7365 (dump_cfg_stats): Same.
7366 (gimple_duplicate_sese_region): Same.
7367 (gimple_duplicate_sese_tail): Same.
7368 (move_block_to_fn): Same.
7369 (replace_block_vars_by_duplicates): Same.
7370 (move_sese_region_to_fn): Same.
7371 (print_loops_bb): Same.
7373 (print_loops): Same.
7375 (debug_loops): Same.
7377 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
7378 (chrec_fold_multiply_poly_poly): Same.
7379 (chrec_evaluate): Same.
7380 (chrec_component_in_loop_num): Same.
7381 (reset_evolution_in_loop): Same.
7382 (is_multivariate_chrec): Same.
7383 (chrec_contains_symbols): Same.
7384 (nb_vars_in_chrec): Same.
7385 (chrec_convert_1): Same.
7386 (chrec_convert_aggressive): Same.
7387 * tree-chrec.h: Same.
7388 * tree-core.h: Same.
7389 * tree-data-ref.c (dump_data_dependence_relation): Same.
7390 (canonicalize_base_object_address): Same.
7391 (data_ref_compare_tree): Same.
7392 (prune_runtime_alias_test_list): Same.
7393 (get_segment_min_max): Same.
7394 (create_intersect_range_checks): Same.
7395 (conflict_fn_no_dependence): Same.
7396 (object_address_invariant_in_loop_p): Same.
7397 (analyze_ziv_subscript): Same.
7398 (analyze_siv_subscript_cst_affine): Same.
7399 (analyze_miv_subscript): Same.
7400 (analyze_overlapping_iterations): Same.
7401 (build_classic_dist_vector_1): Same.
7402 (add_other_self_distances): Same.
7403 (same_access_functions): Same.
7404 (build_classic_dir_vector): Same.
7405 (subscript_dependence_tester_1): Same.
7406 (subscript_dependence_tester): Same.
7407 (access_functions_are_affine_or_constant_p): Same.
7408 (get_references_in_stmt): Same.
7409 (loop_nest_has_data_refs): Same.
7410 (graphite_find_data_references_in_stmt): Same.
7411 (find_data_references_in_bb): Same.
7412 (get_base_for_alignment): Same.
7413 (find_loop_nest_1): Same.
7414 (find_loop_nest): Same.
7415 * tree-data-ref.h (dr_alignment): Same.
7416 (ddr_dependence_level): Same.
7417 * tree-if-conv.c (fold_build_cond_expr): Same.
7418 (add_to_predicate_list): Same.
7419 (add_to_dst_predicate_list): Same.
7420 (phi_convertible_by_degenerating_args): Same.
7421 (idx_within_array_bound): Same.
7422 (all_preds_critical_p): Same.
7423 (pred_blocks_visited_p): Same.
7424 (predicate_bbs): Same.
7425 (build_region): Same.
7426 (if_convertible_loop_p_1): Same.
7427 (is_cond_scalar_reduction): Same.
7428 (predicate_scalar_phi): Same.
7429 (remove_conditions_and_labels): Same.
7430 (combine_blocks): Same.
7431 (version_loop_for_if_conversion): Same.
7432 (versionable_outer_loop_p): Same.
7433 (ifcvt_local_dce): Same.
7434 (tree_if_conversion): Same.
7435 (pass_if_conversion::gate): Same.
7436 * tree-if-conv.h: Same.
7437 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
7438 * tree-loop-distribution.c (bb_top_order_cmp): Same.
7440 (stmt_has_scalar_dependences_outside_loop): Same.
7441 (copy_loop_before): Same.
7442 (create_bb_after_loop): Same.
7443 (const_with_all_bytes_same): Same.
7444 (generate_memset_builtin): Same.
7445 (generate_memcpy_builtin): Same.
7446 (destroy_loop): Same.
7447 (build_rdg_partition_for_vertex): Same.
7448 (compute_access_range): Same.
7449 (data_ref_segment_size): Same.
7450 (latch_dominated_by_data_ref): Same.
7451 (compute_alias_check_pairs): Same.
7452 (fuse_memset_builtins): Same.
7453 (finalize_partitions): Same.
7454 (find_seed_stmts_for_distribution): Same.
7455 (prepare_perfect_loop_nest): Same.
7456 * tree-parloops.c (lambda_transform_legal_p): Same.
7457 (loop_parallel_p): Same.
7458 (reduc_stmt_res): Same.
7459 (add_field_for_name): Same.
7460 (create_call_for_reduction_1): Same.
7461 (replace_uses_in_bb_by): Same.
7462 (transform_to_exit_first_loop_alt): Same.
7463 (try_transform_to_exit_first_loop_alt): Same.
7464 (transform_to_exit_first_loop): Same.
7466 (gen_parallel_loop): Same.
7467 (gather_scalar_reductions): Same.
7468 (get_omp_data_i_param): Same.
7469 (try_create_reduction_list): Same.
7470 (oacc_entry_exit_single_gang): Same.
7471 (parallelize_loops): Same.
7472 * tree-pass.h: Same.
7473 * tree-predcom.c (determine_offset): Same.
7474 (last_always_executed_block): Same.
7475 (split_data_refs_to_components): Same.
7476 (suitable_component_p): Same.
7477 (valid_initializer_p): Same.
7478 (find_looparound_phi): Same.
7479 (insert_looparound_copy): Same.
7480 (add_looparound_copies): Same.
7481 (determine_roots_comp): Same.
7482 (predcom_tmp_var): Same.
7483 (initialize_root_vars): Same.
7484 (initialize_root_vars_store_elim_1): Same.
7485 (initialize_root_vars_store_elim_2): Same.
7486 (finalize_eliminated_stores): Same.
7487 (initialize_root_vars_lm): Same.
7488 (remove_stmt): Same.
7489 (determine_unroll_factor): Same.
7490 (execute_pred_commoning_cbck): Same.
7491 (base_names_in_chain_on): Same.
7492 (combine_chains): Same.
7493 (pcom_stmt_dominates_stmt_p): Same.
7494 (try_combine_chains): Same.
7495 (prepare_initializers_chain_store_elim): Same.
7496 (prepare_initializers_chain): Same.
7497 (prepare_initializers): Same.
7498 (prepare_finalizers_chain): Same.
7499 (prepare_finalizers): Same.
7500 (insert_init_seqs): Same.
7501 * tree-scalar-evolution.c (loop_phi_node_p): Same.
7502 (compute_overall_effect_of_inner_loop): Same.
7503 (add_to_evolution_1): Same.
7504 (add_to_evolution): Same.
7505 (follow_ssa_edge_binary): Same.
7506 (follow_ssa_edge_expr): Same.
7507 (backedge_phi_arg_p): Same.
7508 (follow_ssa_edge_in_condition_phi_branch): Same.
7509 (follow_ssa_edge_in_condition_phi): Same.
7510 (follow_ssa_edge_inner_loop_phi): Same.
7511 (follow_ssa_edge): Same.
7512 (analyze_evolution_in_loop): Same.
7513 (analyze_initial_condition): Same.
7514 (interpret_loop_phi): Same.
7515 (interpret_condition_phi): Same.
7516 (interpret_rhs_expr): Same.
7517 (interpret_expr): Same.
7518 (interpret_gimple_assign): Same.
7519 (analyze_scalar_evolution_1): Same.
7520 (analyze_scalar_evolution): Same.
7521 (analyze_scalar_evolution_for_address_of): Same.
7522 (get_instantiated_value_entry): Same.
7523 (loop_closed_phi_def): Same.
7524 (instantiate_scev_name): Same.
7525 (instantiate_scev_poly): Same.
7526 (instantiate_scev_binary): Same.
7527 (instantiate_scev_convert): Same.
7528 (instantiate_scev_not): Same.
7529 (instantiate_scev_r): Same.
7530 (instantiate_scev): Same.
7531 (resolve_mixers): Same.
7532 (initialize_scalar_evolutions_analyzer): Same.
7533 (scev_reset_htab): Same.
7535 (derive_simple_iv_with_niters): Same.
7536 (simple_iv_with_niters): Same.
7537 (expression_expensive_p): Same.
7538 (final_value_replacement_loop): Same.
7539 * tree-scalar-evolution.h (block_before_loop): Same.
7540 * tree-ssa-address.h: Same.
7541 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
7542 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
7543 (record_edge_info): Same.
7544 * tree-ssa-live.c (var_map_base_fini): Same.
7545 (remove_unused_locals): Same.
7546 * tree-ssa-live.h: Same.
7547 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
7548 (pass_ch_vect::execute): Same.
7549 (pass_ch::process_loop_p): Same.
7550 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
7551 (movement_possibility): Same.
7552 (outermost_invariant_loop): Same.
7554 (determine_max_movement): Same.
7555 (invariantness_dom_walker::before_dom_children): Same.
7556 (move_computations): Same.
7557 (may_move_till): Same.
7558 (force_move_till_op): Same.
7559 (force_move_till): Same.
7560 (memref_free): Same.
7561 (record_mem_ref_loc): Same.
7562 (set_ref_stored_in_loop): Same.
7563 (mark_ref_stored): Same.
7564 (sort_bbs_in_loop_postorder_cmp): Same.
7565 (sort_locs_in_loop_postorder_cmp): Same.
7566 (analyze_memory_references): Same.
7567 (mem_refs_may_alias_p): Same.
7568 (find_ref_loc_in_loop_cmp): Same.
7569 (rewrite_mem_ref_loc::operator): Same.
7570 (first_mem_ref_loc_1::operator): Same.
7571 (sm_set_flag_if_changed::operator): Same.
7572 (execute_sm_if_changed_flag_set): Same.
7574 (hoist_memory_references): Same.
7575 (ref_always_accessed::operator): Same.
7576 (refs_independent_p): Same.
7577 (record_dep_loop): Same.
7578 (ref_indep_loop_p_1): Same.
7579 (ref_indep_loop_p): Same.
7580 (can_sm_ref_p): Same.
7581 (find_refs_for_sm): Same.
7582 (loop_suitable_for_sm): Same.
7583 (store_motion_loop): Same.
7584 (store_motion): Same.
7585 (fill_always_executed_in): Same.
7586 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
7587 (estimated_unrolled_size): Same.
7588 (loop_edge_to_cancel): Same.
7589 (remove_exits_and_undefined_stmts): Same.
7590 (remove_redundant_iv_tests): Same.
7591 (unloop_loops): Same.
7592 (estimated_peeled_sequence_size): Same.
7593 (try_peel_loop): Same.
7594 (canonicalize_loop_induction_variables): Same.
7595 (canonicalize_induction_variables): Same.
7596 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
7598 (stmt_after_inc_pos): Same.
7599 (contains_abnormal_ssa_name_p): Same.
7600 (niter_for_exit): Same.
7603 (find_givs_in_bb): Same.
7604 (find_induction_variables): Same.
7605 (find_interesting_uses_cond): Same.
7606 (outermost_invariant_loop_for_expr): Same.
7607 (idx_find_step): Same.
7608 (add_candidate_1): Same.
7609 (add_iv_candidate_derived_from_uses): Same.
7610 (alloc_use_cost_map): Same.
7611 (prepare_decl_rtl): Same.
7612 (generic_predict_doloop_p): Same.
7613 (computation_cost): Same.
7614 (determine_common_wider_type): Same.
7615 (get_computation_aff_1): Same.
7616 (get_use_type): Same.
7617 (determine_group_iv_cost_address): Same.
7619 (difference_cannot_overflow_p): Same.
7620 (may_eliminate_iv): Same.
7621 (determine_set_costs): Same.
7622 (cheaper_cost_pair): Same.
7623 (compare_cost_pair): Same.
7624 (iv_ca_cand_for_group): Same.
7625 (iv_ca_recount_cost): Same.
7626 (iv_ca_set_remove_invs): Same.
7627 (iv_ca_set_no_cp): Same.
7628 (iv_ca_set_add_invs): Same.
7629 (iv_ca_set_cp): Same.
7630 (iv_ca_add_group): Same.
7632 (iv_ca_compare_deps): Same.
7633 (iv_ca_delta_reverse): Same.
7634 (iv_ca_delta_commit): Same.
7635 (iv_ca_cand_used_p): Same.
7636 (iv_ca_delta_free): Same.
7640 (iv_ca_extend): Same.
7641 (iv_ca_narrow): Same.
7642 (iv_ca_prune): Same.
7643 (cheaper_cost_with_cand): Same.
7644 (iv_ca_replace): Same.
7645 (try_add_cand_for): Same.
7646 (get_initial_solution): Same.
7647 (try_improve_iv_set): Same.
7648 (find_optimal_iv_set_1): Same.
7649 (create_new_iv): Same.
7650 (rewrite_use_compare): Same.
7651 (remove_unused_ivs): Same.
7652 (determine_scaling_factor): Same.
7653 * tree-ssa-loop-ivopts.h: Same.
7654 * tree-ssa-loop-manip.c (create_iv): Same.
7655 (compute_live_loop_exits): Same.
7656 (add_exit_phi): Same.
7657 (add_exit_phis): Same.
7658 (find_uses_to_rename_use): Same.
7659 (find_uses_to_rename_def): Same.
7660 (find_uses_to_rename_in_loop): Same.
7661 (rewrite_into_loop_closed_ssa): Same.
7662 (check_loop_closed_ssa_bb): Same.
7663 (split_loop_exit_edge): Same.
7665 (ip_normal_pos): Same.
7666 (copy_phi_node_args): Same.
7667 (gimple_duplicate_loop_to_header_edge): Same.
7668 (can_unroll_loop_p): Same.
7669 (determine_exit_conditions): Same.
7670 (scale_dominated_blocks_in_loop): Same.
7671 (niter_for_unrolled_loop): Same.
7672 (tree_transform_and_unroll_loop): Same.
7673 (rewrite_all_phi_nodes_with_iv): Same.
7674 * tree-ssa-loop-manip.h: Same.
7675 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
7676 (number_of_iterations_ne): Same.
7677 (assert_no_overflow_lt): Same.
7678 (assert_loop_rolls_lt): Same.
7679 (number_of_iterations_lt): Same.
7680 (adjust_cond_for_loop_until_wrap): Same.
7681 (tree_simplify_using_condition): Same.
7682 (simplify_using_initial_conditions): Same.
7683 (simplify_using_outer_evolutions): Same.
7684 (loop_only_exit_p): Same.
7685 (ssa_defined_by_minus_one_stmt_p): Same.
7686 (number_of_iterations_popcount): Same.
7687 (number_of_iterations_exit): Same.
7688 (find_loop_niter): Same.
7689 (finite_loop_p): Same.
7690 (chain_of_csts_start): Same.
7691 (get_val_for): Same.
7692 (loop_niter_by_eval): Same.
7693 (derive_constant_upper_bound_ops): Same.
7694 (do_warn_aggressive_loop_optimizations): Same.
7695 (record_estimate): Same.
7696 (get_cst_init_from_scev): Same.
7697 (record_nonwrapping_iv): Same.
7698 (idx_infer_loop_bounds): Same.
7699 (infer_loop_bounds_from_ref): Same.
7700 (infer_loop_bounds_from_array): Same.
7701 (infer_loop_bounds_from_pointer_arith): Same.
7702 (infer_loop_bounds_from_signedness): Same.
7703 (bound_index): Same.
7704 (discover_iteration_bound_by_body_walk): Same.
7705 (maybe_lower_iteration_bound): Same.
7706 (estimate_numbers_of_iterations): Same.
7707 (estimated_loop_iterations): Same.
7708 (estimated_loop_iterations_int): Same.
7709 (max_loop_iterations): Same.
7710 (max_loop_iterations_int): Same.
7711 (likely_max_loop_iterations): Same.
7712 (likely_max_loop_iterations_int): Same.
7713 (estimated_stmt_executions_int): Same.
7714 (max_stmt_executions): Same.
7715 (likely_max_stmt_executions): Same.
7716 (estimated_stmt_executions): Same.
7717 (stmt_dominates_stmt_p): Same.
7718 (nowrap_type_p): Same.
7719 (loop_exits_before_overflow): Same.
7720 (scev_var_range_cant_overflow): Same.
7721 (scev_probably_wraps_p): Same.
7722 (free_numbers_of_iterations_estimates): Same.
7723 * tree-ssa-loop-niter.h: Same.
7724 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
7725 (idx_analyze_ref): Same.
7726 (analyze_ref): Same.
7727 (gather_memory_references_ref): Same.
7728 (mark_nontemporal_store): Same.
7729 (emit_mfence_after_loop): Same.
7730 (may_use_storent_in_loop_p): Same.
7731 (mark_nontemporal_stores): Same.
7732 (should_unroll_loop_p): Same.
7733 (volume_of_dist_vector): Same.
7734 (add_subscript_strides): Same.
7735 (self_reuse_distance): Same.
7736 (insn_to_prefetch_ratio_too_small_p): Same.
7737 * tree-ssa-loop-split.c (split_at_bb_p): Same.
7738 (patch_loop_exit): Same.
7739 (find_or_create_guard_phi): Same.
7740 (easy_exit_values): Same.
7741 (connect_loop_phis): Same.
7742 (connect_loops): Same.
7743 (compute_new_first_bound): Same.
7745 (tree_ssa_split_loops): Same.
7746 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
7747 (is_maybe_undefined): Same.
7748 (tree_may_unswitch_on): Same.
7749 (simplify_using_entry_checks): Same.
7750 (tree_unswitch_single_loop): Same.
7751 (tree_unswitch_loop): Same.
7752 (tree_unswitch_outer_loop): Same.
7753 (empty_bb_without_guard_p): Same.
7754 (used_outside_loop_p): Same.
7755 (get_vop_from_header): Same.
7756 (hoist_guard): Same.
7757 * tree-ssa-loop.c (gate_oacc_kernels): Same.
7758 (get_lsm_tmp_name): Same.
7759 * tree-ssa-loop.h: Same.
7760 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
7761 (build_and_add_sum): Same.
7762 (no_side_effect_bb): Same.
7764 (linearize_expr): Same.
7765 (should_break_up_subtract): Same.
7766 (linearize_expr_tree): Same.
7767 * tree-ssa-scopedtables.c: Same.
7768 * tree-ssa-scopedtables.h: Same.
7769 * tree-ssa-structalias.c (condense_visit): Same.
7770 (label_visit): Same.
7771 (dump_pred_graph): Same.
7772 (perform_var_substitution): Same.
7773 (move_complex_constraints): Same.
7774 (remove_preds_and_fake_succs): Same.
7775 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
7776 (determine_bb_domination_status): Same.
7777 (duplicate_thread_path): Same.
7778 (thread_through_all_blocks): Same.
7779 * tree-ssa-threadupdate.h: Same.
7780 * tree-streamer-in.c (streamer_read_string_cst): Same.
7781 (input_identifier): Same.
7782 (unpack_ts_type_common_value_fields): Same.
7783 (unpack_ts_block_value_fields): Same.
7784 (unpack_ts_translation_unit_decl_value_fields): Same.
7785 (unpack_ts_omp_clause_value_fields): Same.
7786 (streamer_read_tree_bitfields): Same.
7787 (streamer_alloc_tree): Same.
7788 (lto_input_ts_common_tree_pointers): Same.
7789 (lto_input_ts_vector_tree_pointers): Same.
7790 (lto_input_ts_poly_tree_pointers): Same.
7791 (lto_input_ts_complex_tree_pointers): Same.
7792 (lto_input_ts_decl_minimal_tree_pointers): Same.
7793 (lto_input_ts_decl_common_tree_pointers): Same.
7794 (lto_input_ts_decl_non_common_tree_pointers): Same.
7795 (lto_input_ts_decl_with_vis_tree_pointers): Same.
7796 (lto_input_ts_field_decl_tree_pointers): Same.
7797 (lto_input_ts_function_decl_tree_pointers): Same.
7798 (lto_input_ts_type_common_tree_pointers): Same.
7799 (lto_input_ts_type_non_common_tree_pointers): Same.
7800 (lto_input_ts_list_tree_pointers): Same.
7801 (lto_input_ts_vec_tree_pointers): Same.
7802 (lto_input_ts_exp_tree_pointers): Same.
7803 (lto_input_ts_block_tree_pointers): Same.
7804 (lto_input_ts_binfo_tree_pointers): Same.
7805 (lto_input_ts_constructor_tree_pointers): Same.
7806 (lto_input_ts_omp_clause_tree_pointers): Same.
7807 (streamer_read_tree_body): Same.
7808 * tree-streamer.h: Same.
7809 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
7810 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
7811 (vect_analyze_possibly_independent_ddr): Same.
7812 (vect_analyze_data_ref_dependence): Same.
7813 (vect_compute_data_ref_alignment): Same.
7814 (vect_enhance_data_refs_alignment): Same.
7815 (vect_analyze_data_ref_access): Same.
7816 (vect_check_gather_scatter): Same.
7817 (vect_find_stmt_data_reference): Same.
7818 (vect_create_addr_base_for_vector_ref): Same.
7819 (vect_setup_realignment): Same.
7820 (vect_supportable_dr_alignment): Same.
7821 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
7822 (adjust_phi_and_debug_stmts): Same.
7823 (vect_set_loop_mask): Same.
7824 (add_preheader_seq): Same.
7825 (vect_maybe_permute_loop_masks): Same.
7826 (vect_set_loop_masks_directly): Same.
7827 (vect_set_loop_condition_masked): Same.
7828 (vect_set_loop_condition_unmasked): Same.
7829 (slpeel_duplicate_current_defs_from_edges): Same.
7830 (slpeel_add_loop_guard): Same.
7831 (slpeel_can_duplicate_loop_p): Same.
7832 (create_lcssa_for_virtual_phi): Same.
7834 (vect_update_ivs_after_vectorizer): Same.
7835 (vect_gen_vector_loop_niters_mult_vf): Same.
7836 (slpeel_update_phi_nodes_for_loops): Same.
7837 (slpeel_update_phi_nodes_for_guard1): Same.
7838 (find_guard_arg): Same.
7839 (slpeel_update_phi_nodes_for_guard2): Same.
7840 (slpeel_update_phi_nodes_for_lcssa): Same.
7841 (vect_do_peeling): Same.
7842 (vect_create_cond_for_alias_checks): Same.
7843 (vect_loop_versioning): Same.
7844 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
7845 (vect_inner_phi_in_double_reduction_p): Same.
7846 (vect_analyze_scalar_cycles_1): Same.
7847 (vect_fixup_scalar_cycles_with_patterns): Same.
7848 (vect_get_loop_niters): Same.
7849 (bb_in_loop_p): Same.
7850 (vect_get_max_nscalars_per_iter): Same.
7851 (vect_verify_full_masking): Same.
7852 (vect_compute_single_scalar_iteration_cost): Same.
7853 (vect_analyze_loop_form_1): Same.
7854 (vect_analyze_loop_form): Same.
7855 (vect_active_double_reduction_p): Same.
7856 (vect_analyze_loop_operations): Same.
7857 (neutral_op_for_slp_reduction): Same.
7858 (vect_is_simple_reduction): Same.
7859 (vect_model_reduction_cost): Same.
7860 (get_initial_def_for_reduction): Same.
7861 (get_initial_defs_for_reduction): Same.
7862 (vect_create_epilog_for_reduction): Same.
7863 (vectorize_fold_left_reduction): Same.
7864 (vectorizable_reduction): Same.
7865 (vectorizable_induction): Same.
7866 (vectorizable_live_operation): Same.
7867 (loop_niters_no_overflow): Same.
7868 (vect_get_loop_mask): Same.
7869 (vect_transform_loop_stmt): Same.
7870 (vect_transform_loop): Same.
7871 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
7872 (vect_determine_precisions): Same.
7873 (vect_pattern_recog_1): Same.
7874 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
7875 * tree-vect-stmts.c (stmt_vectype): Same.
7876 (process_use): Same.
7877 (vect_init_vector_1): Same.
7878 (vect_truncate_gather_scatter_offset): Same.
7879 (get_group_load_store_type): Same.
7880 (vect_build_gather_load_calls): Same.
7881 (vect_get_strided_load_store_ops): Same.
7882 (vectorizable_simd_clone_call): Same.
7883 (vectorizable_store): Same.
7884 (permute_vec_elements): Same.
7885 (vectorizable_load): Same.
7886 (vect_transform_stmt): Same.
7887 (supportable_widening_operation): Same.
7888 * tree-vectorizer.c (vec_info::replace_stmt): Same.
7889 (vec_info::free_stmt_vec_info): Same.
7890 (vect_free_loop_info_assumptions): Same.
7891 (vect_loop_vectorized_call): Same.
7892 (set_uid_loop_bbs): Same.
7893 (vectorize_loops): Same.
7894 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
7895 * tree.c (add_tree_to_fld_list): Same.
7896 (fld_type_variant_equal_p): Same.
7897 (fld_decl_context): Same.
7898 (fld_incomplete_type_of): Same.
7899 (free_lang_data_in_binfo): Same.
7900 (need_assembler_name_p): Same.
7901 (find_decls_types_r): Same.
7902 (get_eh_types_for_runtime): Same.
7903 (find_decls_types_in_eh_region): Same.
7904 (find_decls_types_in_node): Same.
7905 (assign_assembler_name_if_needed): Same.
7906 * value-prof.c (stream_out_histogram_value): Same.
7907 * value-prof.h: Same.
7908 * var-tracking.c (use_narrower_mode): Same.
7909 (prepare_call_arguments): Same.
7910 (vt_expand_loc_callback): Same.
7911 (resolve_expansions_pending_recursion): Same.
7912 (vt_expand_loc): Same.
7913 * varasm.c (const_hash_1): Same.
7914 (compare_constant): Same.
7915 (tree_output_constant_def): Same.
7916 (simplify_subtraction): Same.
7917 (get_pool_constant): Same.
7918 (output_constant_pool_2): Same.
7919 (output_constant_pool_1): Same.
7920 (mark_constants_in_pattern): Same.
7921 (mark_constant_pool): Same.
7922 (get_section_anchor): Same.
7923 * vr-values.c (compare_range_with_value): Same.
7924 (vr_values::extract_range_from_phi_node): Same.
7925 * vr-values.h: Same.
7926 * web.c (unionfind_union): Same.
7929 2019-07-09 Martin Sebor <msebor@redhat.com>
7932 * align.h: Change class-key from class to struct and vice versa
7933 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
7934 * alloc-pool.h: Same.
7935 * asan.c (shadow_mem_size): Same.
7936 * auto-profile.c: Same.
7937 * basic-block.h: Same.
7939 * cfgexpand.c (set_rtl): Same.
7940 (expand_one_stack_var_at): Same.
7944 * config/i386/i386.h: Same.
7945 * df-problems.c (df_print_bb_index): Same.
7947 * df.h (df_single_use): Same.
7948 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
7949 (layout::annotation_line_showed_range_p): Same.
7950 (get_printed_columns): Same.
7951 (correction::ensure_terminated): Same.
7952 (line_corrections::~line_corrections): Same.
7955 * dump-context.h: Same.
7957 * dwarf2out.c: Same.
7958 * edit-context.c: Same.
7959 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
7961 * function.c (assign_stack_local): Same.
7964 * gcov.c (block_info::block_info): Same.
7965 * genattrtab.c: Same.
7966 * genextract.c: Same.
7967 * genmatch.c (comparison_code_p): Same.
7968 (id_base::id_base): Same.
7969 (decision_tree::print): Same.
7970 * genoutput.c: Same.
7971 * genpreds.c (write_one_predicate_function): Same.
7972 * genrecog.c (validate_pattern): Same.
7973 (find_operand_positions): Same.
7974 (optimize_subroutine_group): Same.
7975 (merge_pattern_transition::merge_pattern_transition): Same.
7976 (merge_pattern_info::merge_pattern_info): Same.
7977 (merge_state_result::merge_state_result): Same.
7978 (merge_into_state): Same.
7979 * gensupport.c: Same.
7980 * gensupport.h: Same.
7981 * ggc-common.c (init_ggc_heuristics): Same.
7982 * ggc-tests.c (test_union): Same.
7983 * gimple-loop-interchange.cc (dump_induction): Same.
7984 * gimple-loop-versioning.cc: Same.
7985 * gimple-match.h (gimple_match_cond::any_else): Same.
7986 * gimple-ssa-backprop.c: Same.
7987 * gimple-ssa-sprintf.c: Same.
7988 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
7990 (store_immediate_info::store_immediate_info): Same.
7991 (merged_store_group::apply_stores): Same.
7992 (get_location_for_stmts): Same.
7993 * gimple-ssa-strength-reduction.c: Same.
7994 * gimple-ssa-warn-alloca.c: Same.
7995 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
7996 * godump.c (go_type_decl): Same.
7997 * hash-map-tests.c (test_map_of_strings_to_int): Same.
7999 * hash-set-tests.c (test_set_of_strings): Same.
8001 * hsa-common.h: Same.
8002 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
8003 * input.c (assert_loceq): Same.
8006 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
8007 * ipa-fnsummary.h: Same.
8008 * ipa-inline.h: Same.
8010 * ipa-split.c (visit_bb): Same.
8011 * ira-int.h (minmax_set_iter_next): Same.
8012 * loop-invariant.c: Same.
8014 * lra-eliminations.c: Same.
8016 * lra-lives.c (mark_regno_dead): Same.
8017 * lra-remat.c: Same.
8018 * lra-spills.c: Same.
8019 * lto-streamer.h: Same.
8020 * mem-stats.h: Same.
8021 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
8022 * omp-low.c (omp_clause_aligned_alignment): Same.
8023 * optabs-query.h (get_vcond_eq_icode): Same.
8025 * opts.c (wrap_help): Same.
8027 * predict.c (predict_paths_leading_to_edge): Same.
8028 * pretty-print.h: Same.
8029 * profile-count.h: Same.
8031 * read-rtl-function.c: Same.
8034 * regrename.c: Same.
8035 * regrename.h: Same.
8038 * rtl.h (costs_add_n_insns): Same.
8040 * sched-int.h: Same.
8041 * sel-sched-ir.h: Same.
8043 * sese.h (vec_find): Same.
8045 * target-globals.h: Same.
8046 * tree-affine.c (aff_combination_find_elt): Same.
8047 * tree-affine.h: Same.
8048 * tree-data-ref.h: Same.
8049 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
8050 * tree-predcom.c: Same.
8051 * tree-scalar-evolution.c (find_var_scev_info): Same.
8052 * tree-ssa-alias.h: Same.
8053 * tree-ssa-ccp.c: Same.
8054 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
8055 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
8056 (rewrite_mem_refs): Same.
8057 (execute_sm_if_changed): Same.
8058 (hoist_memory_references): Same.
8059 * tree-ssa-loop-ivopts.c (operator<=): Same.
8060 * tree-ssa-loop.h: Same.
8061 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
8062 * tree-ssa-structalias.c: Same.
8063 * tree-switch-conversion.h (cluster::cluster): Same.
8064 (simple_cluster::simple_cluster): Same.
8065 * tree-vect-patterns.c (type_conversion_p): Same.
8066 * tree-vectorizer.c (dump_stmt_cost): Same.
8067 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
8068 * tree.c (protected_set_expr_location): Same.
8069 * tree.h (desired_pro_or_demotion_p): Same.
8070 (fndecl_built_in_p): Same.
8071 * unique-ptr-tests.cc: Same.
8072 * var-tracking.c (delete_variable_part): Same.
8073 * varasm.c (assemble_real): Same.
8074 (tree_output_constant_def): Same.
8076 * wide-int-bitmask.h: Same.
8077 * wide-int.h (decompose): Same.
8079 2019-07-09 Richard Biener <rguenther@suse.de>
8081 PR tree-optimization/91114
8082 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
8083 find a vector type isn't fatal.
8085 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
8087 * config/aarch64/aarch64-simd.md
8088 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
8089 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
8090 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
8091 (*aarch64_crypto_aese_fused,
8092 *aarch64_crypto_aesd_fused): Update to new definition.
8093 * config/aarch64/aarch64.c
8094 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
8096 2019-07-09 Richard Biener <rguenther@suse.de>
8098 * gimple-match.h (gimple_match_op::resimplify): New.
8099 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
8100 gimple_resimplify4, gimple_resimplify5): Remove.
8101 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
8102 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
8104 (gimple_match_op::resimplify): New.
8105 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
8106 according to availability. Use gimple_match_op::resimplify.
8108 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
8110 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
8112 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
8114 * config/arm/crypto.md:
8115 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
8116 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
8117 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
8118 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
8120 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
8121 * config/arm/aarch-common-protos.h
8122 (aarch_crypto_can_dual_issue): Remove.
8123 * config/arm/aarch-common.c
8124 (aarch_crypto_can_dual_issue): Likewise.
8125 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
8126 * config/arm/cortex-a53.md: Likewise.
8127 * config/arm/cortex-a57.md: Likewise.
8128 * config/arm/iterators.md:
8129 (CRYPTO_BINARY): Redefine.
8130 (CRYPTO_UNARY): Removed.
8131 (CRYPTO_AES, CRYPTO_AESMC): New.
8133 2019-07-09 Richard Biener <rguenther@suse.de>
8135 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
8136 (vn_reference_lookup_3): If the main ref has no access path recorded
8137 but orig_ref has use it to do access-path based disambiguation.
8138 (vn_reference_lookup_pieces): Adjust.
8139 (vn_reference_lookup): Pass down original ref if we valueized.
8141 2019-07-09 Martin Liska <mliska@suse.cz>
8143 * doc/extend.texi: Document influence on loop
8146 2019-07-09 Martin Liska <mliska@suse.cz>
8148 * lto-compress.c (lto_normalized_zstd_level): Do not use
8149 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
8150 of libzstd. One can use 0 as a default compression level.
8152 2019-07-09 Martin Liska <mliska@suse.cz>
8154 * doc/invoke.texi: Add link from -fprofile-dir option.
8155 Use better wording for 'gcno filename'.
8157 2019-07-08 Martin Sebor <msebor@redhat.com>
8161 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
8163 (args_loc_t): New type.
8164 (args_loc_t, locmap_t): same.
8165 (diag_returned_locals): New function.
8166 (is_addr_local): Same.
8167 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
8168 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
8169 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
8171 2019-07-08 Jakub Jelinek <jakub@redhat.com>
8173 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
8174 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
8175 and casts in offset when different, both through gimple stmts
8176 and through trees. Rewritten using loops to minimize code duplication
8179 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
8181 * emit-rtl.c (set_insn_locations): New function moved from...
8182 * function.c (set_insn_locations): ...here.
8183 * ira-emit.c (emit_moves): Propagate location of the first instruction
8184 to the inserted move instructions.
8185 * reg-stack.c (compensate_edge): Set the location if the sequence is
8186 inserted on the edge.
8187 * rtl.h (set_insn_locations): Declare.
8189 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
8191 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
8192 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
8195 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
8197 PR rtl-optimization/88233
8198 * common.opt (fsplit-wide-types-early): New option.
8199 * common/config/rs6000/rs6000-common.c
8200 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
8202 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
8203 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
8204 flag_split_wide_types_early.
8205 (pass_data_lower_subreg3): New.
8206 (pass_lower_subreg3): New.
8207 (make_pass_lower_subreg3): New.
8208 * passes.def (pass_lower_subreg2): Move after the loop passes.
8209 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
8210 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
8211 the pass pipeline; its previous place is taken by ...
8212 (make_pass_lower_subreg3): ... this.
8214 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
8216 * config/s390/s390.c (s390_shift_truncation_mask): Define.
8217 (TARGET_SHIFT_TRUNCATION_MASK): Define.
8219 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
8221 * config/s390/constraints.md: Add new jsc constraint.
8222 * config/s390/predicates.md: New predicates.
8223 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
8224 * config/s390/s390.c (s390_valid_shift_count): New function.
8225 (print_shift_count_operand): Use s390_valid_shift_count.
8226 (print_operand): Likewise.
8227 * config/s390/s390.md: Use new predicate.
8228 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
8229 * config/s390/vector.md: Use new predicate.
8231 2019-07-08 Andrew Waterman <andrew@sifive.com>
8232 Jim Wilson <jimw@sifive.com>
8234 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
8235 bitsize instead of BITS_PER_WORD.
8237 2019-07-08 Martin Liska <mliska@suse.cz>
8239 * collect2.c (defined): Revert to before r254460.
8240 (scan_prog_file): Revert to before r254460.
8242 2019-07-08 Richard Biener <rguenther@suse.de>
8244 PR tree-optimization/83518
8245 * tree-ssa-sccvn.c: Include splay-tree.h.
8246 (struct pd_range, struct pd_data): New.
8247 (struct vn_walk_cb_data): Add data to track partial definitions.
8248 (vn_walk_cb_data::~vn_walk_cb_data): New.
8249 (vn_walk_cb_data::push_partial_def): New.
8250 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
8251 (vn_reference_lookup_2): When partial defs are registered give up.
8252 (vn_reference_lookup_3): Track partial defs for memset and
8253 constructor zeroing and for defs from constants.
8255 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
8257 * doc/install.texi (bootstrap-Og): Document.
8259 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
8261 * config/riscv/pic.md (*local_pic_load_s<mode>)
8262 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
8263 referenced by <mode>, giving...
8264 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
8265 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
8266 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
8267 use <X:MODE> for the mode attribute.
8269 2019-07-07 Jeff Law <law@redhat.com>
8271 PR tree-optimization/91090
8272 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
8273 in handling of ranges to simplify switch statements.
8275 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
8277 * config/darwin.c (darwin_override_options): Make a final check on PIC
8280 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
8282 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
8285 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
8288 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
8289 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
8290 instead of matching them to "l" output operands.
8292 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
8294 * config/mips/mips.c (mips_split_move): Zero-initialize addr
8295 and check whether addr.reg is nonnull before using it.
8297 2019-07-06 Jakub Jelinek <jakub@redhat.com>
8299 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
8300 ctx->for_simd_scan_phase simd copy the outer var to the privatized
8301 variable(s). For conditional lastprivate look through outer
8302 GIMPLE_OMP_SCAN context.
8303 (lower_omp_1): For conditional lastprivate look through outer
8304 GIMPLE_OMP_SCAN context.
8306 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
8307 member to combined_into_simd_safelen1.
8308 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
8309 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
8310 clauses if ctx->combined_into_simd_safelen1 put statements after the
8311 predicate conditionalized block rather than into it.
8313 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8315 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
8317 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
8318 Make the choice of <mode> explicit, giving...
8319 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
8321 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8323 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
8324 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
8326 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
8327 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
8328 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
8329 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
8330 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
8331 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
8332 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
8333 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
8334 (*avx512f_scatterdi<mode>): Likewise.
8335 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
8337 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8339 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
8340 specify the mode iterator referenced by <mode>, giving...
8341 (*push1_h8300hs_<QHI:mode>): ...this.
8343 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8345 * config/gcn/gcn-valu.md
8346 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
8347 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
8348 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
8349 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
8350 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
8351 but using the _exec comparison patterns.
8352 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
8353 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
8354 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
8355 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
8356 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
8357 but using the _exec comparison patterns.
8359 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8361 * config/arm/sync.md
8362 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
8363 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
8364 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
8365 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
8368 2019-07-06 Jakub Jelinek <jakub@redhat.com>
8370 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
8371 (maybe_lookup_ctx): Add forward declaration.
8372 (omp_find_scan): Likewise. Walk into body of simd if composited
8373 with worksharing loop.
8374 (scan_omp_simd_scan): New function.
8375 (scan_omp_1_stmt): Call it.
8376 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
8377 ctx->for_simd_scan_phase.
8378 (lower_rec_input_clauses): Do much less work for inscan reductions
8379 in ctx->for_simd_scan_phase is_simd regions.
8380 (lower_omp_scan): Set is_simd also on simd constructs composited
8381 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
8382 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
8383 emit their body after in simd constructs composited with worksharing
8385 (lower_omp_for_scan): Handle worksharing loop composited with simd.
8387 * omp-low.c (omp_find_scan): Make static.
8388 (lower_omp_for_scan): Fix order of merge arguments in input phase of
8389 the second loop, var2 represents the first partial sum and so needs
8390 to go before rprivb[ivar].
8392 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
8394 * config/rs6000/rs6000-logue.c: Remove unused code.
8396 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
8398 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
8400 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
8403 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
8404 check with a frame laid out check.
8406 2019-07-05 Richard Biener <rguenther@suse.de>
8408 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
8409 when comparing against a store with possibly the same value.
8411 2019-07-05 Richard Biener <rguenther@suse.de>
8413 PR tree-optimization/91091
8414 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
8415 (walk_non_aliased_vuses): Likewise.
8416 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
8417 (get_continuation_for_phi): New tbaa_p parameter and pass
8419 (walk_non_aliased_vuses): Likewise.
8420 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
8421 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
8422 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
8424 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
8425 (adjust_offsets_for_equal_base_address): New function.
8426 (vn_reference_lookup_3): Use it to catch more base equivalences.
8427 Handle and pass down tbaa_p flag.
8428 (vn_reference_lookup_pieces): Adjust.
8429 (vn_reference_lookup): Remove alias-set altering, instead pass
8430 down false as tbaa_p.
8432 2019-07-05 Richard Biener <rguenther@suse.de>
8434 PR tree-optimization/91091
8435 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
8436 accesses can happen with -fno-strict-aliasing.
8438 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
8440 * tree-ssa-alias.c (alias_stats): Add
8441 nonoverlapping_component_refs_since_match_p_must_overlap.
8442 (dump_alias_stats): Print it.
8443 (nonoverlapping_component_refs_since_match_p): Add early exit.
8444 (nonoverlapping_component_refs_p): Do not account early exit.
8446 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
8448 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
8449 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
8450 (emit_eh_dispatch): Delete.
8451 (lower_catch): Emit the eh_dispatch manually and set the location of
8452 the first catch statement onto it.
8453 (lower_eh_filter): Emit the eh_dispatch manually and set location.
8454 (lower_eh_dispatch): Propagate location.
8455 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
8456 (eliminate_build): Likewise.
8458 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
8460 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
8461 phi nodes if possible.
8462 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
8463 location info on the newly created statement.
8464 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
8465 newly created increment if needed.
8467 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8470 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
8471 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
8472 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
8473 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
8474 ctx->add_safelen1 is set.
8476 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
8477 GOMP_loop_start at the start of second worksharing loop in a scan.
8478 For nowait, don't emit GOMP_loop_end_nowait at the end of first
8479 worksharing loop in a scan even if there are conditional lastprivates,
8480 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
8482 2019-07-04 Jan Hubicka <jh@suse.cz>
8484 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
8485 Fix check for match in the ref walk.
8487 2019-07-04 Martin Liska <mliska@suse.cz>
8489 * tree-ssa-loop-niter.c
8490 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
8491 (estimate_numbers_of_iterations):
8492 Support __builtin_expect_with_probability for analysis
8493 of # of loop iterations.
8495 2019-07-04 Alexandre Oliva <oliva@adacore.com>
8497 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
8498 * except.c: Likewise.
8499 * expr.c (expand_expr_real_1): Reject it.
8500 * gimplify.c (gimplify_expr): Gimplify it, within
8502 * tree-dump.c (dequeue_and_dump): Dump it.
8503 * tree-pretty-print.c (dump_generic_node): Likewise.
8504 * tree.c (block_may_fallthru): Handle it.
8505 * tree.def (EH_ELSE_EXPR): Introduce it.
8506 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
8507 with GIMPLE_EH_ELSE as try/finally/else.
8509 2019-07-04 Richard Biener <rguenther@suse.de>
8512 * tree-pass.h (execute_all_ipa_transforms): Add a flag
8513 parameter whether to disable GC collection.
8514 * passes.c (execute_one_ipa_transform_pass): Likewise, and
8516 (execute_all_ipa_transforms): Likewise and pass it down.
8517 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
8518 collection from applying IPA transforms.
8519 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
8520 from applying IPA transforms.
8522 2019-07-04 Richard Biener <rguenther@suse.de>
8524 PR tree-optimization/90911
8525 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
8526 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
8527 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
8528 scalar_loop_scaling.
8529 (vect_transform_loop): Scale scalar loop profile if needed.
8530 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
8531 the loop copy from if-conversion adjust edge probabilities
8532 and scale the vectorized loop body profile, queue the scalar
8533 profile for updating after peeling.
8535 2019-07-04 Jan Hubicka <jh@suse.cz>
8537 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
8538 parameters; return early for must-alias.
8539 (indirect_ref_may_alias_decl_p): Likewise; when establishing
8540 outer types match, try nonoverlapping_component_refs
8541 if must-alias is not obvious.
8542 (indirect_refs_may_alias_p): Likewise.
8543 (refs_may_alias_p_2): Likewise.
8545 2019-07-04 Richard Biener <rguenther@suse.de>
8547 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
8549 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
8551 (struct vn_walk_cb_data): New callback data struct.
8552 (vn_reference_lookup_2): Adjust.
8553 (vn_reference_lookup_3): Likewise.
8554 (vn_reference_lookup_pieces): Likewise.
8555 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
8556 (visit_reference_op_load): Adjust.
8558 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8560 PR tree-optimization/91063
8561 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
8562 stmt from stmts sequence before calling vect_init_vector_1.
8565 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8568 * fwprop.c (reg_single_def_p): New function.
8569 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
8570 (forward_propagate_into): New parameter reg_prop_only
8571 with default value false.
8572 Propagate def's src into loop only if SET_SRC and SET_DEST
8573 of def_set have single definitions.
8574 Likewise if reg_prop_only is set to true.
8575 (fwprop): New param fwprop_addr_p.
8576 Integrate fwprop_addr into fwprop.
8577 (fwprop_addr): Remove.
8578 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
8580 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
8581 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
8582 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
8584 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8586 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
8587 in worksharing loop scans.
8589 PR tree-optimization/91074
8590 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
8593 PR rtl-optimization/90756
8594 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
8597 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
8599 * config/aarch64/aarch64.md: Remove redundant constraints from
8600 define_expand but keep some patterns untouched if they are
8601 specially selected by TARGET_SECONDARY_RELOAD hook.
8602 * config/aarch64/aarch64-sve.md: Likewise.
8603 * config/aarch64/atomics.md: Remove redundant constraints from
8605 * config/aarch64/aarch64-simd.md: Likewise.
8607 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
8609 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
8610 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
8611 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
8613 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
8616 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
8618 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
8619 (STARTFILE_SPEC): Split crt3 into a separate spec.
8620 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
8621 (DARWIN_CRT2_SPEC): New.
8622 (DARWIN_CRT3_SPEC): New.
8623 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
8624 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
8625 (DARWIN_CRT3_SPEC): New.
8627 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
8629 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
8630 Change the RTL attribute "length" from "4" to "*" to allow the
8631 length attribute to be adjusted automatically for prefixed load,
8632 store, and add immediate instructions.
8633 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
8635 (extendsi<mode>2, EXTSI iterator): Likewise.
8636 (movsi_internal1): Likewise.
8637 (movsi_from_sf): Likewise.
8638 (movdi_from_sf_zero_ext): Likewise.
8639 (mov<mode>_internal): Likewise.
8640 (movcc_internal1, QHI iterator): Likewise.
8641 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
8642 (movsf_from_si): Likewise.
8643 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
8644 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
8645 (mov<mode>, FMOVE128 iterator): Likewise.
8646 (movdi_internal64): Likewise.
8647 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
8649 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
8650 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
8651 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
8652 (vsx_splat_v4sf): Likewise.
8654 2019-07-03 Mark Wielaard <mark@klomp.org>
8657 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
8658 DW_AT_addr_base if there is actually a .debug_addr section with
8660 (output_addr_table): Add DWARF5 table header generation here after
8661 checking there are actually any addresses from...
8662 (dwarf2out_finish): ...here.
8664 2019-07-03 Richard Biener <rguenther@suse.de>
8667 * match.pd (vec_perm -> bit_insert): Fix element read from
8670 2019-07-03 Martin Liska <mliska@suse.cz>
8672 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
8673 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
8675 * generic-match-head.c: Include dbgcnt.h.
8676 * gimple-match-head.c: Likewise.
8678 2019-07-03 Martin Liska <mliska@suse.cz>
8680 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
8681 (GCOV_COUNTER_V_TOPN): New.
8682 (GCOV_COUNTER_V_INDIR): Use _topn.
8683 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
8684 (GCOV_TOPN_VALUES): New.
8685 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
8686 (GCOV_TOPN_VALUES_COUNTERS): New.
8687 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
8689 (gimple_init_gcov_profiler): Rename variables from one_value
8691 (gimple_gen_one_value_profiler): Remove.
8692 (gimple_gen_topn_values_profiler): New function.
8693 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
8694 names instead of SINGLE_VALUE.
8695 (stream_out_histogram_value): Likewise.
8696 (stream_in_histogram_value): Likewise.
8697 (get_most_common_single_value): Likewise.
8698 (gimple_divmod_fixed_value_transform): Likewise.
8699 (gimple_stringops_transform): Likewise.
8700 (gimple_divmod_values_to_profile): Likewise.
8701 (gimple_stringops_values_to_profile): Likewise.
8702 (gimple_find_values_to_profile): Likewise.
8703 * value-prof.h (enum hist_type): Rename to TOPN.
8704 (gimple_gen_one_value_profiler): Remove.
8705 (gimple_gen_topn_values_profiler): New.
8707 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
8709 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
8710 if it has the DW_AT_data_member_location attribute.
8712 2019-07-03 Richard Biener <rguenther@suse.de>
8714 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
8717 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
8719 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
8720 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
8721 (tlsdesc_small_sve_<mode>): Likewise.
8723 2019-07-03 Martin Liska <mliska@suse.cz>
8725 * Makefile.in: Define ZSTD_LIB.
8726 * common.opt: Adjust compression level
8727 to support also zstd levels.
8728 * config.in: Regenerate.
8729 * configure: Likewise.
8730 * configure.ac: Add --with-zstd and --with-zstd-include options
8732 * doc/install.texi: Mention zstd dependency.
8733 * gcc.c: Print supported LTO compression algorithms.
8734 * lto-compress.c (lto_normalized_zstd_level): Likewise.
8735 (lto_compression_zstd): Likewise.
8736 (lto_uncompression_zstd): Likewise.
8737 (lto_end_compression): Dispatch in between zlib and zstd.
8738 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
8739 (lto_uncompression_zlib): Make it static.
8740 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
8741 * lto-section-in.c (lto_get_section_data): Pass info
8742 about used compression.
8743 * lto-streamer-out.c: By default use zstd when possible.
8744 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
8745 (TV_IPA_LTO_COMPRESS): Likewise for compression.
8747 2019-07-03 Martin Liska <mliska@suse.cz>
8749 * lto-section-in.c (lto_get_section_data): Add "lto" section.
8750 * lto-section-out.c (lto_destroy_simple_output_block): Never
8751 compress LTO_section_lto section.
8752 * lto-streamer-out.c (produce_asm): Do not set major_version
8754 (lto_output_toplevel_asms): Likewise.
8755 (produce_lto_section): New function.
8756 (lto_output): Call produce_lto_section.
8757 (lto_write_mode_table): Do not set major_version and
8759 (produce_asm_for_decls): Likewise.
8760 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
8762 (struct lto_header): Remove.
8763 (struct lto_section): New struct.
8764 (struct lto_simple_header): Do not inherit from lto_header.
8765 (struct lto_file_decl_data): Add lto_section_header field.
8767 2019-07-03 Martin Liska <mliska@suse.cz>
8769 * lra-eliminations.c (eliminate_regs_in_insn): Remove
8771 * reg-stack.c (check_asm_stack_operands): Likewise.
8772 * tree-ssa-structalias.c (create_function_info_for): Likewise.
8773 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
8774 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
8777 2019-07-03 Martin Liska <mliska@suse.cz>
8779 PR tree-optimization/90892
8780 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
8781 in string constants.
8783 2019-07-03 Martin Liska <mliska@suse.cz>
8786 * multiple_target.c (create_dispatcher_calls): Add to comdat
8787 group only if set for ifunc.
8789 2019-07-03 Martin Liska <mliska@suse.cz>
8792 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
8793 Define local_object_name in outer scope in order to handle
8794 use-after-scope issue.
8796 2019-07-03 Martin Liska <mliska@suse.cz>
8798 * common.opt: Add fprofile-note.
8799 * coverage.c (coverage_init): Append the option
8801 * doc/invoke.texi: Document -fprofile-note.
8803 2019-07-03 Jakub Jelinek <jakub@redhat.com>
8805 PR tree-optimization/91033
8806 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
8807 vect_analyze_data_refs): Add bool * arguments.
8808 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
8809 if failure is due to scatter/gather, set *fatal to false if non-NULL.
8810 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
8811 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
8812 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
8813 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
8814 vect_analyze_data_refs caller.
8816 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
8818 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
8819 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
8820 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
8821 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
8822 OMP_CLAUSE__SCANTEMP_ entry.
8823 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
8824 * tree-pretty-print.c (dump_omp_clause): Likewise.
8825 * tree-nested.c (convert_nonlocal_omp_clauses,
8826 convert_local_omp_clauses): Likewise.
8827 * omp-general.h (struct omp_for_data): Add have_scantemp and
8828 have_nonctrl_scantemp members.
8829 * omp-general.c (omp_extract_for_data): Initialize them.
8830 * omp-low.c (struct omp_context): Add scan_exclusive member.
8831 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
8832 result again with GF_OMP_FOR_KIND_MASK. Initialize also
8833 ctx->scan_exclusive.
8834 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
8835 of !ctx->scan_inclusive.
8836 (lower_rec_input_clauses): Simplify gimplification of dtors using
8837 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
8838 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
8839 loops. Don't add barrier for reduction_omp_orig_ref if
8840 ctx->scan_??xclusive.
8841 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
8842 (lower_omp_scan): Use ctx->scan_exclusive instead
8843 of !ctx->scan_inclusive. Handle worksharing loops with inscan
8844 reductions. Use new_vard != new_var instead of repeated
8845 omp_is_reference calls.
8846 (omp_find_scan, lower_omp_for_scan): New functions.
8847 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
8849 * omp-expand.c (expand_omp_scantemp_alloc): New function.
8850 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
8851 and fd->have_scantemp.
8853 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
8854 on worksharing loop propagate it as shared clause to containing
8857 * omp-expand.c (expand_omp_for_static_nochunk,
8858 expand_omp_for_static_chunk): For nowait worksharing loop with
8859 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
8862 2019-07-02 qing zhao <qing.zhao@oracle.com>
8864 PR preprocessor/90581
8865 * doc/cppopts.texi: Add document for -fmax-include-depth.
8866 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
8868 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
8870 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
8871 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
8872 (mmx_packssdw): Ditto.
8873 (mmx_punpckhbw): Ditto.
8874 (mmx_punpcklbw): Ditto.
8875 (mmx_punpckhwd): Ditto.
8876 (mmx_punpcklwd): Ditto.
8877 (mmx_punpckhdq): Ditto.
8878 (mmx_punpckldq): Ditto.
8879 (*vec_dupv4hi): Ditto.
8880 (*vec_dupv2si): Ditto.
8881 (mmx_pmovmskb): Ditto.
8882 * config/i386/sse.md (sse_cvtpi2ps): Use
8883 TARGET_SSE2 && SSE_REG_P in split condition.
8884 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
8885 TARGET_SSSE3 && SSE_REGNO_P in split condition.
8886 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
8887 (ssse3_pshufbv8qi3): Ditto.
8888 (ssse3_palignrdi): Ditto.
8890 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
8892 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
8893 with inlined save and restore.
8895 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
8897 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
8898 to be inserted on single successor edge of the entry block. Then call
8899 commit_edge_insertions instead of inserting the instructions manually.
8900 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
8901 RTL expansion and rebuild jump labels chain.
8903 2019-07-02 Richard Biener <rguenther@suse.de>
8905 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
8907 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
8909 * tree.c (build_common_tree_nodes): Initialize them.
8910 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
8911 Make declarations comments.
8912 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
8913 chrec_known): Remove definitions.
8914 (initialize_scalar_evolutions_analyzer): Remove.
8915 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
8916 * tree-streamer.c (preload_common_nodes): Do not preload
8917 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
8919 2019-07-02 Jan Hubicka <jh@suse.cz>
8921 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
8924 2019-07-02 Jan Hubicka <jh@suse.cz>
8926 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
8928 (nonoverlapping_component_refs_since_match_p): ... this one;
8929 handle also non-decl bases; return -1 if search gave up.
8930 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
8931 nonoverlapping_component_refs_of_decl_p_no_alias to
8932 nonoverlapping_component_refs_since_match_p_may_alias,
8933 nonoverlapping_component_refs_since_match_p_no_alias.
8934 (dump_alias_stats): Update dumping.
8935 (aliasing_matching_component_refs_p): Break out from ...;
8936 dispatch to nonoverlapping_component_refs_for_decl_p
8937 and nonoverlapping_component_refs_since_match_p.
8938 (aliasing_component_refs_p): ... here; call
8939 nonoverlapping_component_refs_p in scenarios where we can not
8940 precisely determine base match.
8941 (decl_refs_may_alias_p): Use
8942 nonoverlapping_component_refs_since_match_p.
8943 (indirect_ref_may_alias_decl_p): Do not call
8944 nonoverlapping_component_refs_p.
8945 (indirect_refs_may_alias_p): Likewise.
8947 2019-07-02 Jan Hubicka <jh@suse.cz>
8949 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
8950 to clobber of return value.
8952 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8954 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
8955 for is_neon_type instructions that have not already been categorized.
8957 2019-07-02 Richard Biener <rguenther@suse.de>
8959 PR tree-optimization/58483
8960 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
8961 for MEM_REF base hashing.
8962 (equal_mem_array_ref_p): Likewise for base comparison.
8964 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8966 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
8968 (signbit<mode>2): Use that name. Simplify.
8970 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
8973 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
8974 Tune heuristic from PR71016 to allow MIN / MAX.
8976 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8978 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
8980 (abs<mode>2): Use that name. Simplify.
8982 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8984 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
8986 (neg<mode>2): Use that name. Simplify.
8988 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8990 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
8992 (abs<mode>2): Use that name. Simplify.
8994 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8996 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
8998 (neg<mode>2): Use that name. Simplify.
9000 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
9002 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
9003 ("enabled" attribute): Handle sse_noavx isa attribute.
9004 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
9005 Use TARGET_SSE && SSE_REGNO_P in split condition.
9006 (*vec_dupv2sf): Ditto.
9008 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9010 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
9012 (floatsi<mode>2): Use that name. Simplify.
9014 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9016 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
9018 (extenddf<mode>2_vsx): Make this a parameterized name.
9019 (extenddf<mode>2): Use those names. Simplify.
9021 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9023 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
9025 (eh_return): Use that name. Simplify.
9027 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9029 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
9030 (doloop_end): Use that name. Simplify.
9032 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9034 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
9036 (indirect_jump): Use that name. Simplify.
9038 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9040 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
9042 (abs<mode>2): Use that name. Simplify.
9044 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9046 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
9048 (fix_trunc<mode>si2): Use that name. Simplify.
9050 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9052 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
9053 (allocate_stack): Use that name. Simplify.
9055 2019-07-01 Martin Sebor <msebor@redhat.com>
9058 * hash-map.h (hash_map::put): On insertion invoke element ctor.
9059 (hash_map::get_or_insert): Same. Reformat comment.
9060 * hash-set.h (hash_set::add): On insertion invoke element ctor.
9061 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
9062 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
9063 * hash-table.h (hash_table::operator=): Prevent copy assignment.
9064 (hash_table::hash_table (const hash_table&)): Use copy ctor
9065 instead of assignment to copy elements.
9067 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
9068 John David Anglin <danglin@gcc.gnu.org>
9071 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
9072 using saved frame pointer.
9074 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
9077 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
9078 Add frame clobber and schedule blockage.
9080 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
9082 * doc/invoke.texi (Link Options): Further editorial changes to
9083 -flinker-output docs.
9085 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9087 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
9088 Load both operands of a PLUS into registers separately.
9090 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
9092 * config/s390/vector.md: Fix shift count operand printing.
9094 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
9096 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
9098 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
9100 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
9101 Use recog_data to test for an output operand.
9103 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
9105 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
9106 exclude any others that are disparaged or that are bound to need
9108 (ira_get_dup_out_num): Expand comment.
9110 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
9112 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
9113 constraint string for each operand/alternative combo. Only handle
9114 '%' at the start of constraint strings, and look for it outside
9117 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
9119 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
9120 alternative_mask instead of HARD_REG_SET to represent a
9121 bitmask of alternatives.
9122 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
9123 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
9125 2019-07-01 Martin Liska <mliska@suse.cz>
9127 * edit-context.c (test_applying_fixits_unreadable_file): Do not
9128 use () for a constructor call.
9129 (test_applying_fixits_line_out_of_range): Likewise.
9130 * ggc-page.c (alloc_page): Use (void *) for %p printf format
9132 (free_page): Likewise.
9134 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
9136 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
9137 parameter names to match usage (no functional change).
9138 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
9140 2019-07-01 Richard Biener <rguenther@suse.de>
9142 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
9144 (pass_fre::execute): Honor it.
9145 * passes.def: Adjust pass_fre invocations to allow iterating,
9146 add non-iterating pass_fre before late threading/dom.
9148 2019-07-01 Richard Biener <rguenther@suse.de>
9150 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
9151 TARGET_MEM_REF handling to also handle address-taken ones.
9153 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
9155 * doc/sourcebuild.texi (Effective-Target Keywords, Other
9156 hardware attributes): Document avx512vp2intersect.
9158 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
9160 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
9161 (abs<mode>2): New expander.
9162 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
9163 Use CODE_FOR_ssse3_absv8qi2.
9164 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
9165 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
9167 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
9169 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
9170 to sse, sse_noavx and avx. Update all uses.
9172 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
9174 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
9175 (*mmx_<plusminus_insn><mode>3): Ditto.
9176 (*mmx_mulv4hi3"): Ditto.
9177 (*mmx_smulv4hi3_highpart): Ditto.
9178 (*mmx_umulv4hi3_highpart): Ditto.
9179 (*mmx_pmaddwd): Ditto.
9180 (*sse2_umulv1siv1di3): Ditto.
9181 (*mmx_<code>v4hi3): Ditto.
9182 (*mmx_<code>v8qi3): Ditto.
9183 (mmx_ashr<mode>3): Ditto.
9184 ("mmx_<shift_insn><mode>3): Ditto.
9185 (*mmx_eq<mode>3): Ditto.
9186 (mmx_gt<mode>3): Ditto.
9187 (mmx_andnot<mode>3): Ditto.
9188 (*mmx_<code><mode>3): Ditto.
9189 (*mmx_pinsrw): Ditto.
9190 (*mmx_pextrw): Ditto.
9191 (mmx_pshufw_1): Ditto.
9192 (*mmx_uavgv8qi3): Ditto.
9193 (*mmx_uavgv4hi3): Ditto.
9194 ("mmx_psadbw): Ditto.
9195 * config/i386/sse.md (sse_cvtps2pi): Ditto.
9196 (sse_cvttps2pi): Ditto.
9197 (ssse3_pmaddubsw): Ditto.
9198 (*ssse3_pmulhrswv4hi3): Ditto.
9199 (ssse3_psign<mode>3): Ditto.
9201 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
9203 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
9204 adjustment for bit-fields to all aggregate types.
9206 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
9208 * config/rs6000/predicates.md (pcrel_address): Use
9209 SYMBOL_REF_LOCAL_P to determine if a label is local.
9210 (pcrel_external_address): New predicate.
9211 (non_prefixed_mem_operand): Delete, predicate not used.
9212 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
9213 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
9215 (SYMBOL_REF_PCREL_P): Likewise.
9218 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
9220 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
9221 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
9222 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
9224 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
9226 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
9227 override on extra_headers.
9229 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
9231 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
9232 * config/darwin-driver.c (darwin_default_min_version): Remove newline
9234 (darwin_driver_init): Likewise.
9236 2019-06-28 Jan Beulich <jbeulich@suse.com>
9238 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
9239 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
9240 Eliminate redundant alternative.
9242 2019-06-28 Jan Beulich <jbeulich@suse.com>
9244 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
9245 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
9248 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
9250 * config/arc/arc.c (arc_rtx_costs): All short instructions are
9251 having a lower cost regardless of the speed option.
9253 2019-06-28 Jan Beulich <jbeulich@suse.com>
9255 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
9256 vector_operand plus, on both alternatives, "Bm" constraint.
9258 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
9260 * config/arm/arm.md: Remove redundant constraints from
9261 define_expand but leave reload_inm and reload_outm patterns
9262 untouched since they need special constraints to work.
9263 * config/arm/arm-fixed.md: Remove redundant constraints from
9265 * config/arm/iwmmxt.md: Likewise.
9266 * config/arm/neon.md: Likewise.
9267 * config/arm/sync.md: Likewise.
9268 * config/arm/thumb1.md: Likewise.
9269 * config/arm/vec-common.md: Likewise.
9271 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
9273 * doc/install.texi: Document --disable-tm-clone-registry.
9275 2019-06-27 Jakub Jelinek <jakub@redhat.com>
9278 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
9281 PR tree-optimization/91010
9282 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
9283 return true. Otherwise, don't call operand_equal_p if offset1 or
9284 offset2 is NULL and just return false.
9286 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
9288 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
9289 user-specified float mode choice for kernel mode code.
9291 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
9293 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
9296 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
9298 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
9299 use longcall for 64b code.
9301 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
9303 * builtins.c (get_memory_rtx): Fix comment.
9304 * optabs.def (movmem_optab): Change to cpymem_optab.
9305 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
9306 (emit_block_move_hints): Change movmem to cpymem.
9307 * defaults.h: Change movmem to cpymem.
9308 * targhooks.c (get_move_ratio): Change movmem to cpymem.
9309 (default_use_by_pieces_infrastructure_p): Ditto.
9310 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
9311 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
9313 * config/aarch64/aarch64.h: Change movmem to cpymem.
9314 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
9315 * config/alpha/alpha.h: Change movmem to cpymem in comment.
9316 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
9318 * config/arc/arc-protos.h: Change movmem to cpymem.
9319 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
9320 * config/arc/arc.h: Change movmem to cpymem in comment.
9321 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
9322 * config/arm/arm-protos.h: Change movmem to cpymem in names.
9323 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
9324 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
9325 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
9326 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
9327 * config/avr/avr-protos.h: Change movmem to cpymem.
9328 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
9329 avr_out_movmem): Change movmem to cpymem.
9330 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
9331 Change movmem to cpymem.
9332 * config/bfin/bfin-protos.h: Change movmem to cpymem.
9333 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
9334 Change movmem to cpymem.
9335 * config/bfin/bfin.h: Change movmem to cpymem in comment.
9336 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
9337 * config/c6x/c6x-protos.h: Change movmem to cpymem.
9338 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
9339 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
9340 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
9341 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
9342 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
9343 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
9344 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
9345 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
9346 expand_small_cpymem_or_setmem,
9347 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
9348 expand_set_or_cpymem_constant_prologue,
9349 ix86_expand_set_or_cpymem): Change movmem to cpymem.
9350 * config/i386/i386-protos.h: Change movmem to cpymem.
9351 * config/i386/i386.h: Change movmem to cpymem in comment.
9352 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
9353 (setmem<mode>): Change expansion function name.
9354 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
9355 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
9356 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
9357 * config/m32c/m32c-protos.h: Change movmem to cpymem.
9358 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
9359 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
9360 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
9362 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
9363 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
9364 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
9365 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
9366 Change movmem to cpymem.
9367 * config/mips/mips.h: Change movmem to cpymem.
9368 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
9369 * config/nds32/nds32-memory-manipulation.c
9370 (nds32_expand_movmemsi_loop_unknown_size,
9371 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
9372 nds32_expand_movmemsi_unroll,
9373 nds32_expand_movmemsi): Change movmem to cpymem.
9374 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
9375 * config/nds32/nds32-protos.h: Change movmem to cpymem.
9376 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
9377 (pa_adjust_insn_length): Change call to compute_movmem_length.
9378 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
9379 movmemdi, movmemdi_prereload,
9380 movmemdi_postreload): Change movmem to cpymem.
9381 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
9382 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
9383 * config/riscv/riscv.c: Change movmem to cpymem in comment.
9384 * config/riscv/riscv.h: Change movmem to cpymem.
9385 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
9386 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
9387 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
9389 * config/s390/s390-protos.h: Change movmem to cpymem.
9390 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
9391 s390_expand_insv): Change movmem to cpymem.
9392 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
9393 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
9394 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
9395 * config/sparc/sparc.h: Change movmem to cpymem in comment.
9396 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
9397 for nonexistent function.
9398 * config/vax/vax.h: Change movmem to cpymem in comment.
9399 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
9400 * config/visium/visium.h: Change movmem to cpymem in comment.
9401 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
9402 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
9403 * doc/md.texi: Change movmem to cpymem and update description to match.
9404 * doc/rtl.texi: Change movmem to cpymem.
9405 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
9406 * doc/tm.texi: Regenerate.
9408 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
9410 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
9411 -fvariable-expansion-in-unroller by default.
9412 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
9415 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
9418 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
9419 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
9421 * config.gcc(rs6000-*-*): Define target_gtfiles.
9423 2019-06-27 Jan Hubicka <jh@suse.cz>
9425 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
9426 (add_type_duplicate): When odr hash is not allocated, to nothing.
9427 (odr_based_tbaa_p): New function.
9428 (set_type_canonical_for_odr_type): New function.
9429 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
9430 set_type_canonical_for_odr_type): New.
9431 * tree.c (gimple_canonical_types_compatible_p): ODR types with
9432 ODR based TBAA are not equivalent to non-ODR types.
9434 2019-06-27 Martin Liska <mliska@suse.cz>
9436 PR tree-optimization/90974
9437 PR rtl-optimization/90975
9438 PR rtl-optimization/90976
9440 PR tree-optimization/91017
9441 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
9443 * lra.c (lra_set_insn_recog_data): Remove a leftover from
9444 initial commit of IRA.
9445 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
9447 * tree-vect-loop.c (vect_create_epilog_for_reduction):
9448 Remove unused mode1.
9449 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
9452 2019-06-27 Jakub Jelinek <jakub@redhat.com>
9455 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
9456 instead of register_operand for operands[1], add m to its constraints
9457 if operands[2] uses "C" constraint. Ensure in condition that if
9458 operands[2] is not 0, then operands[1] is not a MEM. For last two
9459 alternatives, use unaligned loads instead of aligned if operands[1] is
9462 2019-06-27 Martin Liska <mliska@suse.cz>
9464 * asan.c (asan_emit_allocas_unpoison): Remove obviously
9466 * bt-load.c (move_btr_def): Likewise.
9467 * builtins.c (expand_builtin_apply_args_1): Likewise.
9468 (expand_builtin_apply): Likewise.
9469 * cfgexpand.c (expand_asm_stmt): Likewise.
9470 (construct_init_block): Likewise.
9471 * cfghooks.c (verify_flow_info): Likewise.
9472 * cfgloopmanip.c (remove_path): Likewise.
9473 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
9474 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
9475 * combine.c (simplify_if_then_else): Likewise.
9476 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
9477 (choose_basereg): Likewise.
9478 (ix86_expand_prologue): Likewise.
9479 (ix86_preferred_output_reload_class): Likewise.
9480 * cselib.c (cselib_record_sets): Likewise.
9481 * df-scan.c (df_scan_alloc): Likewise.
9482 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
9483 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
9484 * emit-rtl.c (try_split): Likewise.
9485 * graphite-scop-detection.c (assign_parameter_index_in_region):
9487 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
9488 * ira-color.c (setup_profitable_hard_regs): Likewise.
9489 * ira.c (rtx_moveable_p): Likewise.
9490 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9491 * read-rtl.c (read_subst_mapping): Likewise.
9492 * regrename.c (scan_rtx): Likewise.
9493 * reorg.c (fill_slots_from_thread): Likewise.
9494 * tree-inline.c (tree_function_versioning): Likewise.
9495 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
9496 * tree-ssa-sink.c (statement_sink_location): Likewise.
9497 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
9498 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
9499 (vect_create_epilog_for_reduction): Likewise.
9500 * tree.c (build_nonstandard_integer_type): Likewise.
9502 2019-06-27 Richard Biener <rguenther@suse.de>
9504 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
9506 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
9508 PR tree-optimization/89772
9509 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
9510 out-of-bound accesses checking.
9512 2019-06-27 Martin Liska <mliska@suse.cz>
9514 PR tree-optimization/91014
9515 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
9516 when LHS is NULL_TREE.
9518 2019-06-27 Martin Liska <mliska@suse.cz>
9520 * symbol-summary.h (traverse): Pass
9521 argument a to the call of callback.
9522 (gt_ggc_mx): Mark arguments as unused.
9523 (gt_pch_nx): Likewise.
9525 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
9528 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
9531 2019-06-26 Jeff Law <law@redhat.com>
9533 PR tree-optimization/90883
9534 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
9535 (delete_dead_or_redundant_assignment): Likewise.
9537 PR tree-optimization/90883
9538 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
9539 * tree-ssa-dse.c: Update various comments to distinguish between
9540 dead and redundant stores.
9541 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
9542 (dse_optimize_redundant_stores): New function.
9543 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
9544 Distinguish between dead and redundant calls in dump output. All
9546 (delete_dead_or_redundant_assignment): Similarly for assignments.
9547 (dse_optimize_stmt): Handle _CHK variants. For statements which
9548 store 0 into multiple memory locations, try to prove a subsequent
9551 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
9554 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
9555 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
9557 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
9559 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
9560 (branch_islands): New extern.
9561 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
9562 * config/rs6000/rs6000.c: .. here.
9564 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
9566 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
9567 (powerpc*-*-*) ... to here.
9569 2019-06-26 Jeff Law <law@redhat.com>
9571 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
9572 memcpy, memmove and memset builtins.
9573 (maybe_trim_memstar_call): Likewise.
9575 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
9577 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
9579 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
9581 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
9583 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
9585 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
9587 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
9589 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
9592 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
9594 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
9596 2019-06-26 Richard Biener <rguenther@suse.de>
9599 * tree-inline.c (remap_ssa_name): Copy SSA range info.
9601 2019-06-26 Richard Biener <rguenther@suse.de>
9603 * lto-streamer.h (lto_bitmap_alloc): Remove.
9604 (lto_bitmap_free): Likewise.
9605 * lto-streamer.c (lto_bitmap_alloc): Remove.
9606 (lto_bitmap_free): Likewise.
9607 (lto_obstack): Likewise.
9608 (lto_obstack_initialized): Likewise.
9609 * lto-streamer-out.c (lto_output): Use own obstack for local
9610 bitmap, free it consistently.
9612 2019-06-26 Jakub Jelinek <jakub@redhat.com>
9615 * config/i386/sse.md
9616 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
9617 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
9618 insns if operands[2] is misaligned_operand.
9620 2019-06-26 Li Jia He <helijia@linux.ibm.com>
9622 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
9624 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
9627 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
9629 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
9631 2019-06-26 Martin Liska <mliska@suse.cz>
9633 PR tree-optimization/90973
9634 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
9635 epilogue_cost_vec instead of prologue_cost_vec for
9638 2019-06-26 Martin Liska <mliska@suse.cz>
9640 * bb-reorder.c (connect_better_edge_p): Add missing else
9641 statement in the middle of if-else statements.
9643 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
9644 H.J. Lu <hongjiu.lu@intel.com>
9645 Olga Makhotina <olga.makhotina@intel.com>
9647 * common/config/i386/i386-common.c
9648 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
9649 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
9650 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
9651 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
9652 (ix86_handle_option): Handle -mavx512vp2intersect.
9653 * config/i386/avx512vp2intersectintrin.h: New.
9654 * config/i386/avx512vp2intersectvlintrin.h: New.
9655 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
9656 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
9658 * config/i386/i386-builtin-types.def: Add new types.
9659 * config/i386/i386-builtin.def: Add new builtins.
9660 * config/i386/i386-builtins.c: (enum processor_features): Add
9661 F_AVX512VP2INTERSECT.
9662 (static const _isa_names_table isa_names_table): Ditto.
9663 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9664 __AVX512VP2INTERSECT__.
9665 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
9666 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
9667 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
9668 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
9669 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
9670 * config/i386/i386-options.c (ix86_target_string): Add
9671 -mavx512vp2intersect.
9672 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
9673 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
9674 P2HImode and P2QImode.
9675 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
9676 number for P2QImode and P2HImode.
9677 (ix86_regmode_natural_size): New function.
9678 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
9679 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
9680 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
9681 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
9682 * config/i386/i386.opt: Add -mavx512vp2intersect.
9683 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
9684 avx512vp2intersectvlintrin.h.
9685 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
9686 (define_mode_iterator VI48_AVX512VP2VL): New.
9687 (avx512vp2intersect_2intersect<mode>,
9688 avx512vp2intersect_2intersectv16si): New define_insn patterns.
9689 * config.gcc: Add avx512vp2intersectvlintrin.h and
9690 avx512vp2intersectintrin.h to extra_headers.
9691 * doc/invoke.texi: Document -mavx512vp2intersect.
9693 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
9695 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
9697 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
9699 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
9700 savres_routine_syms, savres_routine_name, morestack_ref,
9701 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
9702 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
9703 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
9704 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
9705 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
9706 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
9707 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
9708 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
9709 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
9710 get_stack_clash_protection_probe_interval,
9711 get_stack_clash_protection_guard_size,
9712 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
9713 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
9714 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
9715 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
9716 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
9717 gen_frame_mem_offset, rs6000_savres_routine_name,
9718 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
9719 ptr_regno_for_savres, rs6000_emit_savres_rtx,
9720 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
9721 rs6000_global_entry_point_prologue_needed_p,
9722 rs6000_get_separate_components, rs6000_components_for_bb,
9723 rs6000_disqualify_components, rs6000_emit_prologue_components,
9724 rs6000_emit_epilogue_components, rs6000_set_handled_components,
9725 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
9726 rs6000_output_savres_externs, rs6000_output_function_prologue,
9727 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
9728 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
9729 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
9730 rs6000_output_function_epilogue, gen_add3_const,
9731 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
9732 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
9734 (machine_function): Moved to rs6000.h.
9735 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
9737 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
9738 savres_routine_syms, savres_routine_name, morestack_ref,
9739 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
9740 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
9741 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
9742 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
9743 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
9744 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
9745 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
9746 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
9747 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
9748 get_stack_clash_protection_probe_interval,
9749 get_stack_clash_protection_guard_size,
9750 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
9751 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
9752 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
9753 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
9754 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
9755 gen_frame_mem_offset, rs6000_savres_routine_name,
9756 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
9757 ptr_regno_for_savres, rs6000_emit_savres_rtx,
9758 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
9759 rs6000_global_entry_point_prologue_needed_p,
9760 rs6000_get_separate_components, rs6000_components_for_bb,
9761 rs6000_disqualify_components, rs6000_emit_prologue_components,
9762 rs6000_emit_epilogue_components, rs6000_set_handled_components,
9763 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
9764 rs6000_output_savres_externs, rs6000_output_function_prologue,
9765 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
9766 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
9767 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
9768 rs6000_output_function_epilogue, gen_add3_const,
9769 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
9770 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
9771 to here from rs6000.c.
9772 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
9773 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
9774 quad_address_offset_p) Moved to here from rs6000.c.
9775 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
9776 * config/config.gcc: Add new source file rs6000-logue.c to garbage
9779 2019-06-25 Martin Liska <mliska@suse.cz>
9781 * hash-table.c (hashtab_chk_error): Move here from ...
9782 * hash-table.h (hashtab_chk_error): ... here.
9784 2019-06-25 Martin Liska <mliska@suse.cz>
9786 PR tree-optimization/90978
9787 * df-scan.c (df_update_entry_block_defs): Remove dead else
9789 (df_update_exit_block_uses): Likewise.
9791 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
9792 Andrew Stubbs <ams@codesourcery.com>
9794 * config.gcc (thread_file): Set to gcn for AMD GCN.
9795 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
9796 (TARGET_EMUTLS_VAR_INIT): New hook.
9798 2019-06-25 Martin Jambor <mjambor@suse.cz>
9801 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
9803 2019-06-25 Richard Biener <rguenther@suse.de>
9805 PR tree-optimization/90930
9806 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
9807 into parallel form in the last pass instance.
9809 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
9811 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
9812 (arc_legitimize_pic_address): Simplify and cleanup the function.
9813 (SYMBOLIC_CONST): Remove.
9814 (prepare_pic_move): Likewise.
9815 (prepare_move_operands): Handle complex mov cases here.
9816 (arc_legitimize_address_0): Remove call to
9817 arc_legitimize_pic_address.
9818 (arc_legitimize_address): Remove call to
9819 arc_legitimize_tls_address.
9820 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
9821 (movhi_insn): Likewise.
9823 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9825 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
9827 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
9828 format of "__intN" types for UINTMAX_TYPE.
9829 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
9830 format of "__intN" types for SIZETYPE.
9831 * tree.c (build_common_tree_nodes): Accept "__intN__"
9832 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
9833 * doc/invoke.texi: Document that __intN__ disables pedantic
9836 2019-06-25 Jan Hubicka <jh@suse.cz>
9838 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
9839 base2_alias_set is non-zero before doing TBAA based disambiguation.
9841 2019-06-25 Martin Liska <mliska@suse.cz>
9843 PR tree-optimization/90973
9844 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
9845 of prologue and epilogue.
9847 2019-06-24 Jan Hubicka <jh@suse.cz>
9849 * ipa-utils.h (type_with_linkage_p): Verify that type is
9851 (odr_type_p): Remove extra return.
9852 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
9853 hash STRING_FLAG only for arrays and integers.
9854 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
9856 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9858 * print-tree.c (print_node): Print cxx-odr-p
9860 * tree.c (need_assembler_name_p): Also check that type
9862 (verify_type_variant): Update verification of SRING_FLAG;
9863 also check CXX_ODR_P.
9864 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
9865 (TYPE_STRING_FLAG): Use it.
9866 (TYPE_CXX_ODR_P): New macro.
9867 * dwarf2out.c (gen_array_type_die): First check that type
9868 is an array and then test string flag.
9870 2019-06-24 Richard Biener <rguenther@suse.de>
9872 PR tree-optimization/90972
9873 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
9874 in common code, dealing with STRING_CST properly.
9876 2019-06-24 Richard Biener <rguenther@suse.de>
9878 PR tree-optimization/90930
9879 PR tree-optimization/90316
9880 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
9883 2019-06-24 Martin Sebor <msebor@redhat.com>
9885 * tree-pretty-print.h: Remove unnecessary punctuation characters
9887 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
9889 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
9891 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
9892 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
9893 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
9895 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
9897 * config/rs6000/darwin.h: Handle GCC target pragma.
9899 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
9901 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
9903 2019-06-22 Jeff Law <law@redhat.com>
9905 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9907 2019-06-22 Jan Hubicka <jh@suse.cz>
9909 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
9910 give up on bitfields; continue searching for different refs
9913 2019-06-21 Jakub Jelinek <jakub@redhat.com>
9915 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
9916 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
9917 containing the offset as possible simd lane access. Look through
9918 widening conversion. Move the
9919 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
9921 2019-06-21 Richard Biener <rguenther@suse.de>
9923 PR tree-optimization/90930
9924 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
9925 flag on new stmts to avoid re-processing them.
9927 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
9929 PR c++/90875 - added -Wswitch-outside-range option
9930 * doc/invoke.texi (Wswitch-outside-range): Document.
9932 2019-06-21 Jeff Law <law@redhat.com>
9934 PR tree-optimization/90949
9935 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
9936 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
9938 2019-06-21 Richard Biener <rguenther@suse.de>
9941 * dwarf2out.c (prune_unused_types_walk): Always consider
9942 function-local extern declarations as used.
9944 2019-06-21 Richard Biener <rguenther@suse.de>
9946 PR tree-optimization/90913
9947 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
9948 the scalar variant of if-conversion versioning.
9950 2019-06-21 Jakub Jelinek <jakub@redhat.com>
9952 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
9953 create another "omp scan inscan exclusive" array if
9954 !ctx->scan_inclusive.
9955 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
9956 (lower_omp_scan): Likewise.
9957 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
9958 2-bit bitfield for simd_lane_access_p member.
9959 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
9960 aux == (void *)-4 as simd lane access.
9961 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
9962 comment with permutations to show the canonical permutation order.
9963 (vectorizable_scan_store): Handle exclusive scan.
9964 (vectorizable_store): Call vectorizable_scan_store even for
9965 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
9967 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
9968 "omp simd array" arrays with one byte elements.
9970 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
9972 * config/alpha/alpha.md (@unaligned_store<mode>):
9973 Rename from unaligned_store<mode>.
9974 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
9975 * config/alpha/sync.md (@load_locked_<mode>): Rename
9976 from load_locked_<mode>.
9977 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
9978 (@atomic_compare_and_swap<mode>_1): Rename
9979 from atomic_compare_and_swap<mode>_1.
9980 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
9981 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
9982 Use gen_reload_in_aligned and gen_unaligned_store.
9983 (emit_load_locked): Remove.
9984 (emit_store_conditional): Ditto.
9985 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
9986 (alpha_split_compare_and_swap): Ditto.
9987 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
9988 (alpha_split_compare_and_swap_12): Use gen_load_locked
9989 and gen_store_conditional.
9990 (alpha_split_atomic_exchange): Ditto.
9991 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
9992 (alpha_split_atomic_exchange_12): Use gen_load_locked
9993 and gen_store_conditional.
9995 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
9997 * config/aarch64/aarch64-errata.h: New file.
9998 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
9999 (CA53_ERR_843419_SPEC): Delete.
10000 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
10001 * config/aarch64/aarch64-linux.h: Likewise.
10002 * config/aarch64/aarch64-netbsd.h: Likewise.
10003 * config/aarch64/aarch64-freebsd.h: Likewise.
10005 2019-06-20 Marek Polacek <polacek@redhat.com>
10007 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
10009 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
10011 * config/rs6000/rs6000.md (isa attribute): Add support for
10012 for a future processor.
10014 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
10017 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
10018 standard scalar operation pattern for V2DF.
10019 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
10020 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
10021 (*ieee_<ieee_maxmin><mode>3): Likewise.
10022 (vec_setv2df_0): Likewise.
10024 2019-06-20 Jan Hubicka <jh@suse.cz>
10026 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
10027 parameter; it has no use in gimple memory model.
10028 (indirect_ref_may_alias_decl_p): Update.
10030 2019-06-20 Martin Liska <mliska@suse.cz>
10032 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
10035 2019-06-20 Jakub Jelinek <jakub@redhat.com>
10037 * tree-vect-stmts.c (enum scan_store_kind): New type.
10038 (scan_store_can_perm_p): Change last argument from int * to
10039 vec<enum scan_store_kind> *, record precisely which permutations
10040 need whole vector left shift or that plus VEC_COND_EXPR.
10041 (vectorizable_scan_store): Adjust caller, use whole vector left shift
10042 and additional VEC_COND_EXPR only for those iterations that need it.
10044 2019-06-20 Alexandre Oliva <oliva@adacore.com>
10046 * config.gcc: Fix ARM --with-fpu checking and error message.
10048 2019-06-19 Marek Polacek <polacek@redhat.com>
10050 PR c++/60364 - noreturn after first decl not diagnosed.
10051 * attribs.c (get_attribute_namespace): No longer static.
10052 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
10054 (attr_noreturn_exclusions): Make it extern.
10055 * attribs.h (get_attribute_namespace): Declare.
10056 * tree-inline.c (function_attribute_inlinable_p): Use
10057 get_attribute_name.
10059 2019-06-19 Martin Sebor <msebor@redhat.com>
10061 PR tree-optimization/90626
10062 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
10064 PR tree-optimization/90626
10065 * tree-ssa-strlen.c (strxcmp_unequal): New function.
10066 (handle_builtin_string_cmp): Call it.
10068 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
10070 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
10071 and DARWIN_NOPIE_SPEC.
10072 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
10073 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
10074 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
10075 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
10076 (DARWIN_EXPORT_DYNAMIC): Delete.
10077 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
10078 and pie options processing to darwin.h.
10079 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
10081 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
10083 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
10084 in computing the number of options to be moved.
10086 2019-06-19 Maya Rashish <coypu@sdf.org>
10088 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
10089 (CLEAR_INSN_CACHE) Use it.
10091 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
10093 * config/i386/i386.md (cmpstrnsi): Remove dead code.
10095 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
10097 PR middle-end/84521
10098 * builtins.c (expand_builtin_setjmp_setup): Save
10099 hard_frame_pointer_rtx.
10100 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
10102 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
10104 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
10106 (remove_reg_equal_offset_note): Remove unused function.
10107 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
10109 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10110 (arc_builtin_setjmp_frame_value): Remove function.
10111 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10112 (avr_builtin_setjmp_frame_value): Remove function.
10113 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10114 (ix86_builtin_setjmp_frame_value): Remove function.
10115 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
10116 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10117 (sparc_builtin_setjmp_frame_value): Remove function.
10118 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10119 (vax_builtin_setjmp_frame_value): Remove function.
10120 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
10121 pointer if has_nonlocal_label.
10123 2019-06-19 Jakub Jelinek <jakub@redhat.com>
10125 * doc/md.texi: Document vec_shl_<mode> pattern.
10126 * optabs.def (vec_shl_optab): New optab.
10127 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
10128 argument, if == vec_shl_optab, check for left whole vector shift
10129 pattern rather than right shift.
10130 (expand_vec_perm_const): Add vec_shl_optab support.
10131 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
10133 * tree-vect-generic.c (lower_vec_perm): Support permutations which
10134 can be handled by vec_shl_optab.
10135 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
10136 (check_scan_store): Use it.
10137 (vectorizable_scan_store): If target can't do normal permutations,
10138 try to use whole vector left shifts and if needed a VEC_COND_EXPR
10140 * config/i386/sse.md (vec_shl_<mode>): New expander.
10142 * omp-low.c (lower_rec_input_clauses): Handle references properly
10144 (lower_omp_scan): Likewise.
10146 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10148 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
10149 mem_mode is BLKmode.
10151 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
10154 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
10155 pointer adjustment for the case of no callee-saved registers and
10156 stack frame bigger than 128 bytes.
10158 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
10160 PR middle-end/90862
10161 * omp-low.c (check_omp_nesting_restrictions): Handle
10162 GF_OMP_TARGET_KIND_OACC_DECLARE.
10164 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
10166 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
10167 (@add<mode>3_carry): Rename from add<mode>3_carry.
10168 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
10169 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
10170 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
10171 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
10172 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
10173 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
10174 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
10175 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
10176 (cmpstrnsi): Use gen_cmp_1.
10177 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
10178 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
10179 (@umonitor_<mode>): Rename from umonitor_<mode>.
10180 * config/i386/i386-expand.c (ix86_expand_copysign):
10181 Use gen_copysign3_const and gen_copysign3_var.
10182 (ix86_expand_xorsign): Use gen_xorsign3_1.
10183 (ix86_expand_branch): Use gen_sub3_carry_ccc,
10184 gen_sub3_carry_ccgz and gen_cmp1.
10185 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
10186 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
10187 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
10188 (ix86_split_lshr): Ditto.
10189 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
10191 2019-06-18 Jason Merrill <jason@redhat.com>
10193 * tree.c (build_constructor): Add MEM_STAT_DECL.
10195 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10197 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
10198 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
10199 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
10200 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
10201 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
10202 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
10203 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
10204 Use CC_NZC instead of CC.
10205 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
10206 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
10207 (aarch64_print_operand): Handle E_CC_NZCmode.
10208 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
10209 of gen_set_clobber_cc.
10211 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10213 * config/aarch64/aarch64-sve.md: Tabify file.
10215 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10217 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
10218 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
10219 * config/aarch64/aarch64-sve.md: Use it.
10221 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10223 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
10224 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
10225 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
10226 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
10227 (aarch64_expand_sve_vec_cmp_int): Use it.
10228 (aarch64_expand_sve_vec_cmp_float): Likewise.
10229 * config/aarch64/aarch64-sve.md: Likewise throughout.
10231 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10232 Kugan Vivekanandarajah <kuganv@linaro.org>
10234 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
10235 (*cond_<optab><mode>_z): Fold into...
10236 (*cond_<optab><mode>_any): ...here. Also handle cases in which
10237 operand 4 can be tied to operand 0 (either inherently or via RA).
10239 2019-06-18 Richard Biener <rguenther@suse.de>
10242 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
10243 as if optimized away.
10245 2019-06-18 Tom de Vries <tdevries@suse.de>
10247 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
10248 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
10249 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
10251 (define_insn "@set_softstack_<mode>"): ... this.
10252 (define_insn "omp_simt_enter_<mode>"): Rename to ...
10253 (define_insn "@omp_simt_enter_<mode>"): ... this.
10254 (define_insn "omp_simt_exit_<mode>"): Rename to ...
10255 (define_insn "@omp_simt_exit_<mode>"): ... this.
10257 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10259 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
10260 vf parameter. Restore the previous iv step of nscalars_step,
10261 but give it iv_type rather than compare_type. Tweak code order
10262 to match the comments.
10263 (vect_set_loop_condition_masked): Update accordingly.
10264 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
10265 for iv_precision. Tweak comment formatting.
10267 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
10269 * config/darwin.c: Strip trailing whitespace.
10271 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
10273 * config/darwin.c (darwin_emit_unwind_label): New default to false.
10274 (darwin_override_options): Set darwin_emit_unwind_label as needed.
10276 2019-06-18 Martin Jambor <mjambor@suse.cz>
10279 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
10280 caller does not have flag_ipa_cp set.
10282 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10284 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
10285 from "*fold_left_plus_<mode>", updated operands order.
10286 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
10287 * internal-fn.c (mask_fold_left_direct): New define.
10288 (expand_mask_fold_left_optab_fn): Likewise.
10289 (direct_mask_fold_left_optab_supported_p): Likewise.
10290 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
10291 * optabs.def (mask_fold_left_plus_optab): New optab.
10292 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
10293 masked internal_fn for a reduction ifn.
10294 (vectorize_fold_left_reduction): Add support for masking reductions.
10296 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
10298 PR middle-end/80791
10299 * target.def (predict_doloop_p): New hook.
10300 * targhooks.h (default_predict_doloop_p): New declaration.
10301 * targhooks.c (default_predict_doloop_p): New function.
10302 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
10303 * doc/tm.texi: Regenerate.
10304 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
10305 (TARGET_PREDICT_DOLOOP_P): New macro.
10306 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
10308 2019-06-17 Jakub Jelinek <jakub@redhat.com>
10310 * omp-low.c (struct omp_context): Add scan_inclusive field.
10311 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
10313 (struct omplow_simd_context): Add lastlane member.
10314 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
10315 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
10317 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
10318 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
10319 (lower_omp_scan): New function.
10320 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
10321 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
10322 check 3rd argument if present rather than 2nd.
10323 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
10324 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
10326 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
10327 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
10329 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
10330 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
10331 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
10333 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
10334 IFN_GOMP_SIMD_LANE argument.
10335 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
10336 encoded ->aux value.
10337 * tree-vect-stmts.c: Include attribs.h.
10338 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
10339 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
10341 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
10342 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
10344 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
10347 * config/i386/i386.md (*nabstf2_1): New insn pattern.
10348 (*nabs<mode>2_1): Ditto.
10349 (nabs sse-reg splitter): New splitter.
10350 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
10352 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
10354 PR bootstrap/90873.
10355 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
10358 2019-06-17 Tom de Vries <tdevries@suse.de>
10360 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
10361 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
10362 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
10364 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
10366 (define_insn "omp_simt_enter_insn"): Rename to ...
10367 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
10368 match_operand 0, 1 and 2, as well as the unspec_volatile result.
10369 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
10370 gen_omp_simt_enter_si.
10371 (define_expand "omp_simt_exit"): New.
10372 (define_insn "omp_simt_exit"): Rename to ...
10373 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
10376 2019-06-17 Matthew Green <mrg@eterna.com.au>
10377 Maya Rashish <coypu@sdf.org>
10379 * config.gcc (aarch64*-*-netbsd*): New target.
10380 * config/aarch64/aarch64-netbsd.h: New file.
10381 * config/aarch64/t-aarch64-netbsd: Likewise.
10383 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
10385 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
10386 the access path from base to first VIEW_CONVERT_EXPR or
10389 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
10391 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
10392 access path on BIT_FIELD_REFs.
10394 2019-06-17 Martin Liska <mliska@suse.cz>
10397 * ipa-utils.h (odr_type_p): Remove dead code.
10399 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10401 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
10402 alternative Solaris 11.4 format.
10403 * configure: Regenerate.
10405 2019-06-17 Tom de Vries <tdevries@suse.de>
10407 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
10408 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
10410 (define_insn "call_value_insn"): Rename to ...
10411 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
10413 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
10416 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
10418 PR middle-end/64242
10419 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
10420 frame clobbers and schedule block.
10421 (builtin_longjmp): Likewise.
10423 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10425 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
10426 describe how to perform MSPABI compliant 64-bit shift.
10427 * config/msp430/msp430.md (ashldi3): New define_expand.
10428 (ashrdi3): New define_expand.
10429 (lshrdi3): New define_expand.
10431 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10433 * doc/sourcebuild.texi: Document new effective target keyword
10436 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
10438 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
10439 indirect_refs_may_alias_p): Revert accidental commits.
10441 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
10442 at the end of structures.
10444 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
10446 * config/darwin.c (machopic_indirect_call_target): Use renamed
10447 darwin_picsymbol_stubs to decide on output.
10448 (darwin_override_options): Handle darwin_picsymbol_stubs.
10449 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
10450 (LD64_VERSION): Revise default.
10451 * config/darwin.opt: (mpic-symbol-stubs): New option.
10452 (darwin_picsymbol_stubs): New variable.
10453 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
10454 rename to TARGET_MACHO_PICSYM_STUBS.
10455 * config/i386/i386.c (output_pic_addr_const): Likewise.
10456 * config/i386/i386.h Likewise.
10457 * config/rs6000/darwin.h: Likewise.
10458 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
10459 darwin_picsymbol_stubs.
10461 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
10463 * config/darwin.opt (prebind, noprebind, seglinkedit,
10464 noseglinkedit): Add RejectNegative.
10466 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
10468 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
10469 in my previous patch.
10471 2019-06-16 Tom de Vries <tdevries@suse.de>
10473 PR tree-optimization/89376
10474 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
10476 2019-06-15 Maya Rashish <coypu@sdf.org>
10478 * doc/invoke.texi (Spec Files): Update location of the
10481 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
10483 * doc/extend.texi (Common Function Attributes): Clarify
10484 no_sanitize. Fix grammar.
10486 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
10488 * tree-ssa-alias.c (alias_stats): Add
10489 nonoverlapping_component_refs_p_may_alias,
10490 nonoverlapping_component_refs_p_no_alias,
10491 nonoverlapping_component_refs_of_decl_p_may_alias,
10492 nonoverlapping_component_refs_of_decl_p_no_alias.
10493 (dump_alias_stats): Dump them.
10494 (nonoverlapping_component_refs_of_decl_p): Add stats.
10495 (nonoverlapping_component_refs_p): Add stats; do not stop on first
10498 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
10500 * config/i386/i386.md (and<mode>3): Generate zero-extends for
10501 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
10503 (*anddi3_doubleword): Split before reload. Merge with
10504 anddi->zext pre-reload splitter.
10505 (*andndi3_doubleword): Split before reload.
10506 (*<code>di3_doubleword): Ditto.
10507 (*one_cmpldi2_doubleword): Ditto.
10509 2019-06-15 Jakub Jelinek <jakub@redhat.com>
10511 PR middle-end/90779
10512 * gimplify.c: Include omp-offload.h and context.h.
10513 (gimplify_bind_expr): Add "omp declare target" attributes
10514 to static block scope variables inside of target region or target
10517 2019-06-15 Tom de Vries <tdevries@suse.de>
10519 PR tree-optimization/90009
10520 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
10521 Return NULL if bb contains IFN_UNIQUE.
10523 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
10525 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
10526 (un): New define_mode_attr.
10527 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
10528 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
10529 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
10531 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
10533 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
10535 * config/darwin.opt: Add RejectNegative where needed, reorder
10536 and add minimal functional descriptions.
10538 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
10540 PR rtl-optimization/90765
10541 * calls.c (update_stack_alignment_for_call): New function.
10542 (expand_call): Call update_stack_alignment_for_call when
10543 outgoing parameter is passed in the stack.
10544 (emit_library_call_value_1): Likewise.
10545 * function.c (locate_and_pad_parm): Don't update
10546 stack_alignment_needed and preferred_stack_boundary.
10548 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
10551 * config/i386/i386-features.c
10552 (dimode_scalar_chain::compute_convert_gain): Replace
10553 mmxsse_to_integer with sse_to_integer.
10554 * config/i386/i386.c (ix86_register_move_cost): Verify that
10555 moves between MMX and non-MMX units require secondary memory.
10556 Correct costs of moves between SSE and integer units.
10557 * config/i386/i386.h (processor_costs): Rename cost of moving
10558 SSE register to integer to sse_to_integer. Rename cost of
10560 2019-06-14 Matt Thomas <matt@3am-software.com>
10561 Matthew Green <mrg@eterna.com.au>
10562 Nick Hudson <skrll@netbsd.org>
10563 Maya Rashish <coypu@sdf.org>
10564 Richard Earnshaw <rearnsha@arm.com>
10566 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
10567 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
10568 * config/arm/netbsd-eabi.h: New file.
10569 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
10571 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
10572 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
10573 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
10574 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
10576 2019-06-14 Richard Biener <rguenther@suse.de>
10578 * tree-loop-distribution.c (classify_partition): Return
10579 whether a reduction appeared in all partitions and do not
10580 stop builtin detection because of this.
10581 (distribute_loop): Sort a non-builtin partition last if
10582 there's a reduction in all partitions and make sure the
10583 partition prevailing as last is not a builtin.
10585 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
10588 * ipa-prop.c (add_to_agg_contents_list): New function.
10589 (clobber_by_agg_contents_list_p): Likewise.
10590 (extract_mem_content): Likewise.
10591 (get_place_in_agg_contents_list): Delete.
10592 (determine_known_aggregate_parts): Renamed from
10593 determine_locally_known_aggregate_parts. New parameter
10596 2019-06-13 Martin Sebor <msebor@redhat.com>
10598 PR tree-optimization/90662
10599 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
10602 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
10605 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
10606 dbase is not TARGET_MEM_REF.
10608 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
10610 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
10612 (and<mode>3): Use gen_extend_insn instead of indirect functions.
10613 Do not generate DImode extends for 32bit targets.
10614 (and->zext post-reload splitter): Use gen_extend_insn
10615 instead of indirect functions.
10616 (anddi->zext pre-reload splitter): New.
10617 (*zext<mode>_doubleword_and): Remove.
10618 (*zext<mode>_doubleword): Ditto.
10619 (*zextsi_doubleword): Dittto.
10621 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
10623 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
10624 Use gen_sub3_insn instead of indirect function.
10625 (ix86_expand_ashl_const): Use gen_add2_insn instead of
10627 (ix86_adjust_counter): Ditto.
10629 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
10630 Lijia He <helijia@linux.ibm.com>
10632 PR tree-optimization/77820
10633 * tree-ssa-threadedge.c
10634 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
10636 (thread_across_edge): Add call to
10637 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
10639 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
10641 * config/darwin-driver.c (validate_macosx_version_min): New.
10642 (darwin_default_min_version): Cleanup and validate supplied version.
10643 (darwin_driver_init): Likewise and push cleaned version into opts.
10645 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
10647 PR tree-optimization/90869
10648 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
10649 converts in MEM_REF referencing decl rather than view converts
10650 from decl type to MEM_REF type.
10652 2019-06-13 Richard Biener <rguenther@suse.de>
10654 PR tree-optimization/90856
10655 * tree-sra.c (build_ref_for_model): Only use
10656 build_reconstructed_reference when address-spaces are the same.
10658 2019-06-13 Jakub Jelinek <jakub@redhat.com>
10660 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
10661 wrap ei variable name in the declaration in ()s.
10662 (nvptx_single): Actually use mode_label variable. Formatting fix.
10664 2019-06-13 Richard Biener <rguenther@suse.de>
10666 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
10667 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
10668 also return the condition stmt.
10669 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
10670 loop we can version and version that, reusing the loop version
10671 created by if-conversion instead of versioning again.
10673 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
10675 * gimple-loop-versioning.cc (prune_loop_conditions): Use
10677 * tree-vrp (value_range_base::may_contain_p): Call into
10678 value_inside_range.
10679 (value_inside_range): Make private inside value_range_base class.
10680 Take min/max from *this.
10681 (range_includes_p): Remove.
10682 * tree-vrp.h (value_range_base): Add value_inside_range.
10683 (range_includes_p): Remove.
10684 (range_includes_zero_p): Call may_contain_p.
10685 * vr-values.c (compare_range_with_value): Same.
10687 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
10689 * doc/extend.texi (ARC Function Attributes): Update info.
10691 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
10693 PR tree-optimization/89713
10694 * doc/invoke.texi (-ffinite-loops): Document new option.
10695 * common.opt (-ffinite-loops): New option.
10696 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
10697 IFN_GOACC_LOOP calls as necessary.
10698 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
10700 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
10701 IFN_GOACC_LOOP call is not used.
10702 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
10704 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10707 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
10708 compare_type is not with Pmode size, we will create an IV with
10709 Pmode size with truncated use (i.e. converted to the correct type).
10710 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
10711 (vect_iv_limit_for_full_masking): New. Factored out of
10712 vect_set_loop_condition_masked.
10713 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
10714 (vect_iv_limit_for_full_masking): Declare.
10716 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10719 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
10720 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
10721 (get_alias_ptr_type_for_ptr_address): Likewise.
10722 (add_iv_candidate_for_use): Add scaled index candidate if useful.
10723 * tree-ssa-address.c (preferred_mem_scale_factor): New.
10724 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
10727 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10729 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
10731 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
10733 * common/config/pru/pru-common.c: New file.
10734 * config.gcc: Add PRU target.
10735 * config/pru/alu-zext.md: New file.
10736 * config/pru/constraints.md: New file.
10737 * config/pru/predicates.md: New file.
10738 * config/pru/pru-opts.h: New file.
10739 * config/pru/pru-passes.c: New file.
10740 * config/pru/pru-pragma.c: New file.
10741 * config/pru/pru-protos.h: New file.
10742 * config/pru/pru.c: New file.
10743 * config/pru/pru.h: New file.
10744 * config/pru/pru.md: New file.
10745 * config/pru/pru.opt: New file.
10746 * config/pru/t-pru: New file.
10747 * doc/extend.texi: Document PRU pragmas.
10748 * doc/invoke.texi: Document PRU-specific options.
10749 * doc/md.texi: Document PRU asm constraints.
10751 2019-06-12 Martin Sebor <msebor@redhat.com>
10753 PR middle-end/90676
10754 * tree-pretty-print.c (dump_mem_ref): New function. Include
10755 MEM_REF type in output when different size than operand.
10756 (dump_generic_node): Move code to dump_mem_ref and call it.
10758 2019-06-12 Martin Sebor <msebor@redhat.com>
10760 PR tree-optimization/90662
10761 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
10764 2019-06-12 Tom de Vries <tdevries@suse.de>
10766 PR tree-optimization/90009
10767 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
10769 2019-06-12 Martin Liska <mliska@suse.cz>
10771 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
10773 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
10774 * mem-stats.h (mem_alloc_description::mem_alloc_description):
10775 Do not sanitize created maps.
10777 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
10779 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
10780 value_range::singleton_p.
10781 * tree-vrp.c (value_range_constant_singleton): Remove.
10782 * tree-vrp.h (value_range_constant_singleton): Remove.
10783 * vr-values.c (vr_values::singleton): Use
10784 value_range::singleton_p.
10786 2019-06-12 Jakub Jelinek <jakub@redhat.com>
10789 * cfgexpand.c (align_local_variable): Add really_expand argument,
10790 don't SET_DECL_ALIGN if it is false.
10791 (add_stack_var): Add really_expand argument, pass it through to
10792 align_local_variable.
10793 (expand_one_stack_var_1): Pass true as really_expand to
10794 align_local_variable.
10795 (expand_one_ssa_partition): Pass true as really_expand to
10797 (expand_one_var): Pass really_expand through to add_stack_var.
10799 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
10801 * config/arm/iterators.md (VABAL): New int iterator.
10802 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
10803 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
10804 UNSPEC_VABAL_U values.
10806 2019-06-12 Martin Liska <mliska@suse.cz>
10808 * value-prof.c (stream_out_histogram_value): Only first value
10811 2019-06-12 Jakub Jelinek <jakub@redhat.com>
10814 * symtab.c (symtab_node::set_section): Allow being called on aliases
10815 as long as they aren't analyzed yet.
10817 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
10819 * config/mips/mips.c (mips_final_postscan_insn): Modify call
10820 to `mips_set_text_contents_type' to indicate whether a
10821 non-debug insn follows.
10823 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
10825 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
10826 enabling -mpcrel by default.
10827 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
10828 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
10829 that the test against -mcpu=future is done first. Then test if
10830 -mprefixed-addr is on for -mpcrel.
10831 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
10833 2019-06-11 Jakub Jelinek <jakub@redhat.com>
10836 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
10837 instead of and.u%d.
10839 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
10841 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
10843 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
10845 PR c++/90449 - add -Winaccessible-base option.
10846 * doc/invoke.texi (Winaccessible-base): Document.
10848 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
10850 PR tree-optimization/62041
10851 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
10853 2019-06-11 Jason Merrill <jason@redhat.com>
10855 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
10856 * tree.c (get_tree_code_name): Likewise.
10857 * print-tree.c (print_node): Only briefly print a node with an
10860 2019-06-11 Jakub Jelinek <jakub@redhat.com>
10863 * trans-mem.c (tm_memopt_compute_available): Add assertion
10864 that blocks is not empty. Formatting fix.
10866 2019-06-11 Martin Liska <mliska@suse.cz>
10869 * hash-table.h: Extend create_gcc, add one parameter
10870 that is passed into hash_table::hash_table.
10872 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
10874 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
10876 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
10877 Emit clobber also for non-sse operations.
10878 (ix86_split_fp_absneg_operator): New function.
10879 * config/i386/i386.md (SSEMODEF): New mode iterator.
10880 (ssevecmodef): New mode attribute.
10881 (<code>tf2): Use absneg code iterator.
10882 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
10883 Add three-operand AVX alternatives.
10884 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
10885 Use absneg code iterator and X87MODEF mode iterator.
10886 (absneg fp_reg non-sse splitter): Call absneg code iterator
10887 and X87MODEF mode iterator.
10888 (absneg general_reg non-sse splitter): Use absneg code iterator
10889 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
10890 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
10891 code iterator. Add three-operand AVX alternative.
10892 (absneg sse_reg splitter): Use absneg code iterator
10893 and SSEMODEF mode iterator. Handle AVX operands.
10894 (absneg fp_reg splitter): Use absneg code iterator
10895 and MODEF mode iterator.
10896 (absneg general_reg splitter): Merge splitters using MODEF mode
10897 iterator. Use absneg code iterator. Call
10898 ix86_split_fp_absneg_operator.
10899 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
10900 Do not enable for non-sse modes before reload.
10901 (CSGNMODE): Remove.
10902 (CSGNVMODE): Ditto.
10903 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
10904 ssevecmodef mode attribute instaed of CSGNVMODE.
10905 (copysign<mode>3_const): Ditto.
10906 (copysign<mode>3_var): Ditto.
10907 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
10908 Use absneg code iterator. Simplify code using std::swap.
10909 * config/i386/predicates.md (absneg_operator): Remove.
10911 2019-06-10 Martin Sebor <msebor@redhat.com>
10913 * gimple-fold.c (get_range_strlen): Update comment that didn't
10914 make it into r267503 or related commits.
10916 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
10918 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
10919 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
10921 2019-06-10 Jakub Jelinek <jakub@redhat.com>
10923 * tree.def (OMP_SCAN): New tree code.
10924 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
10925 OMP_CLAUSE_EXCLUSIVE.
10926 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
10927 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
10928 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
10929 OMP_CLAUSE_{IN,EX}CLUSIVE.
10930 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
10931 * tree-nested.c (convert_nonlocal_reference_stmt,
10932 convert_local_reference_stmt, convert_gimple_call): Handle
10934 * tree-pretty-print.c (dump_omp_clause): Handle
10935 OMP_CLAUSE_{IN,EX}CLUSIVE.
10936 (dump_generic_node): Handle OMP_SCAN.
10937 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
10938 * gimple.h (gomp_scan): New type.
10939 (is_a_helper <gomp_scan *>::test,
10940 is_a_helper <const gomp_scan *>::test): New templates.
10941 (gimple_build_omp_scan): Declare.
10942 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
10943 gimple_omp_scan_set_clauses): New inline functions.
10944 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
10945 * gimple.c (gimple_build_omp_scan): New function.
10946 (gimple_copy): Handle GIMPLE_OMP_SCAN.
10947 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
10948 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
10949 GIMPLE_OMP_TASKGROUP.
10950 (dump_gimple_omp_scan): New function.
10951 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
10952 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
10953 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
10954 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
10955 (is_gimple_stmt): Handle OMP_SCAN.
10956 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
10957 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
10958 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
10959 mentioned in nested #pragma omp scan. Handle
10960 OMP_CLAUSE_{IN,EX}CLUSIVE.
10961 (gimplify_expr): Handle OMP_SCAN.
10962 * omp-low.c (check_omp_nesting_restrictions): For parent context,
10963 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
10965 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
10968 2019-06-10 Martin Liska <mliska@suse.cz>
10970 * ipa-cp.c (ignore_edge_p): New function.
10971 (build_toporder_info): Use it.
10972 * ipa-inline.c (ignore_edge_p): New function.
10973 (inline_small_functions): Use it.
10974 * ipa-pure-const.c (ignore_edge_for_nothrow):
10975 Verify opt_for_fn for caller and callee.
10976 (ignore_edge_for_pure_const): Likewise.
10977 * ipa-reference.c (ignore_edge_p): Extend to check
10979 * ipa-utils.c (searchc): Refactor.
10980 * ipa-utils.h: Fix coding style.
10982 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
10984 * config/arc/arc.c (arc_rtx_costs): Update costs.
10986 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
10988 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
10989 (arc_split_ior): Likewise.
10990 (arc_check_mov_const): Likewise.
10991 (arc_split_mov_const): Likewise.
10992 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
10993 (arc_rtx_costs): Replace check Crr with Cax constraint.
10994 (prepare_move_operands): Cleanup, remove unused code.
10995 (arc_split_ior): New function.
10996 (arc_check_ior_const): Likewise.
10997 (arc_split_mov_const): Likewise.
10998 (arc_check_mov_const): Likewise.
10999 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
11000 in define_insn_and_split pattern.
11001 (iorsi3): Likewise.
11002 (mulsi3_v2): Add new matching variant.
11003 (andsi3_i): Cleanup pattern.
11004 (rotrsi3_cnt1): Update pattern.
11005 (rotrsi3_cnt8): New pattern.
11006 (ashlsi2_cnt8): Likewise.
11007 (ashlsi2_cnt16): Likewise.
11008 * config/arc/constraints.md (C0p): Update constraint.
11010 (C0x): New pattern.
11011 (Cax): New pattern.
11013 2019-06-10 Martin Liska <mliska@suse.cz>
11015 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
11016 Update coding style.
11017 (sem_item_optimizer::dump_cong_classes):
11018 Print how many items are in a non-singular class. Improve
11021 2019-06-10 Martin Liska <mliska@suse.cz>
11023 * value-prof.c (dump_histogram_value): Change dump format.
11024 (gimple_mod_subtract_transform): Remove legacy comment.
11026 2019-06-10 Martin Liska <mliska@suse.cz>
11028 * value-prof.c (dump_histogram_value): Print histogram values
11031 2019-06-10 Martin Liska <mliska@suse.cz>
11033 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
11034 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
11035 * ipa-profile.c (ipa_profile_generate_summary):
11036 Use get_most_common_single_value.
11037 * tree-profile.c (gimple_init_gcov_profiler):
11038 Instrument with __gcov_one_value_profiler_v2
11039 and __gcov_indirect_call_profiler_v4.
11040 * value-prof.c (dump_histogram_value):
11041 Print all values for HIST_TYPE_SINGLE_VALUE.
11042 (stream_out_histogram_value): Update assert for
11044 (stream_in_histogram_value): Set number of
11045 counters for HIST_TYPE_SINGLE_VALUE.
11046 (get_most_common_single_value): New.
11047 (gimple_divmod_fixed_value_transform):
11048 Use get_most_common_single_value.
11049 (gimple_ic_transform): Likewise.
11050 (gimple_stringops_transform): Likewise.
11051 (gimple_find_values_to_profile): Set number
11052 of counters for HIST_TYPE_SINGLE_VALUE.
11053 * value-prof.h (get_most_common_single_value): New.
11055 2019-06-10 Martin Liska <mliska@suse.cz>
11057 * hash-map.h: Pass default value to hash_table ctor.
11058 * hash-table.h: Add default value to call of a ctor.
11060 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
11062 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
11063 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
11065 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
11068 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
11069 Call pa_output_function_label.
11070 (TARGET_ASM_FUNCTION_PROLOGUE): define.
11071 * config/pa/pa-protos.h (pa_output_function_label): Declare.
11072 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
11074 (pa_linux_output_function_prologue): Declare.
11075 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
11076 (pa_output_function_label): New.
11077 (pa_output_function_prologue): Revise to use pa_output_function_label.
11078 (pa_linux_output_function_prologue): New.
11079 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
11081 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
11083 * tree-vrp.h (value_range_base::intersect): New.
11084 (value_range::intersect_helper): Move from here...
11085 (value_range_base::intersect_helper): ...to here.
11086 * tree-vrp.c (value_range::intersect_helper): Rename to...
11087 (value_range_base::intersect_helper): ...this, and rewrite to
11088 return a value instead of modifying THIS in place.
11089 Also, move equivalence handling...
11090 (value_range::intersect): ...here, while calling intersect_helper.
11091 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
11093 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
11095 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
11097 2019-06-07 Jakub Jelinek <jakub@redhat.com>
11099 * Makefile.in (genprogerr): Add condmd.
11100 (genprog): Remove it here.
11102 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
11104 * doc/invoke.texi (AMD GCN Options): Add gfx906.
11106 2019-06-07 Richard Biener <rguenther@suse.de>
11109 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
11110 that appear after user labels.
11112 2019-06-07 Martin Liska <mliska@suse.cz>
11114 * cselib.c (cselib_init): Disable hash table
11116 * hash-set.h: Pass new default argument to m_table.
11117 * hash-table.c: Add global variable with hash table
11118 sanitization limit.
11119 * hash-table.h (Allocator>::hash_table): Add new argument
11121 (hashtab_chk_error): New.
11122 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
11123 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
11124 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
11126 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
11128 * common.opt (flto-odr-type-merging): Ignore.
11129 * invoke.texi (-flto-odr-type-merging): Remove.
11130 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
11131 (can_be_vtable_hashed_p): Remove.
11132 (hash_odr_vtable): Remove.
11133 (odr_vtable_hasher::hash): Remove.
11134 (types_same_for_odr): Remove.
11135 (types_odr_comparable): Remove.
11136 (odr_vtable_hasher::equal): Remove.
11137 (odr_vtable_hash_type, odr_vtable_hash): Remove.
11138 (add_type_duplicate): Do not synchronize vtable and name hashtables.
11139 (get_odr_type): Do not use vtable hash.
11140 (dump_odr_type): Remove commented out code.
11141 (build_type_inheritance_graph): Do not allocate vtable hash.
11142 (rebuild_type_inheritance_graph): Do not delete vtable hash.
11143 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
11144 (odr_type_p): Likewise.
11145 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
11148 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
11150 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
11151 immediately after same_types_for_tbaa_p returns -1 and continue
11152 looking for possible exact match; if matching types are arrays
11153 watch for partial overlaps.
11154 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
11155 (indirect_refs_may_alias_p): Do type based disambiguation first;
11158 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
11160 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
11162 2019-06-07 Martin Liska <mliska@suse.cz>
11164 * doc/invoke.texi: Remove param.
11165 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
11167 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
11168 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
11169 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
11170 * profile.c (instrument_values): Remove
11171 HIST_TYPE_INDIR_CALL_TOPN.
11172 * tree-profile.c (init_ic_make_global_vars):
11173 Always build __gcov_indirect_call only.
11174 (gimple_init_gcov_profiler): Remove usage
11175 of PARAM_INDIR_CALL_TOPN_PROFILE.
11176 (gimple_gen_ic_profiler): Likewise.
11177 * value-prof.c (dump_histogram_value): Likewise.
11178 (stream_in_histogram_value): Likewise.
11179 (gimple_indirect_call_to_profile): Likewise.
11180 (gimple_find_values_to_profile): Likewise.
11181 * value-prof.h (enum hist_type): Likewise.
11183 2019-06-07 Martin Liska <mliska@suse.cz>
11185 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
11188 2019-06-07 Martin Liska <mliska@suse.cz>
11190 PR tree-optimization/78902
11191 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
11192 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
11193 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
11194 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
11195 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
11196 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
11197 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
11198 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
11199 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
11200 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
11201 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
11202 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
11203 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
11205 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
11206 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
11207 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
11208 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
11209 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
11210 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
11211 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
11212 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
11213 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
11214 warn_unused_result attribute.
11215 (BUILT_IN_STRDUP): Likewise.
11216 (BUILT_IN_STRNDUP): Likewise.
11217 (BUILT_IN_ALLOCA): Likewise.
11218 (BUILT_IN_CALLOC): Likewise.
11219 (BUILT_IN_MALLOC): Likewise.
11220 (BUILT_IN_REALLOC): Likewise.
11222 2019-06-06 Jim Wilson <jimw@sifive.com>
11225 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
11226 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
11227 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
11229 2019-06-06 Martin Sebor <msebor@redhat.com>
11231 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
11232 (handle_builtin_malloc): Remove trailing spaces.
11233 (handle_builtin_memset): Same.
11234 (handle_builtin_memcmp): Same.
11235 (compute_string_length): Same.
11236 (determine_min_objsize): Same.
11237 (handle_builtin_string_cmp): Same.
11238 (handle_char_store): Same. Break up excessively long line.
11240 2019-06-06 Martin Jambor <mjambor@suse.cz>
11242 * tree-sra.c (build_reconstructed_reference): Drop the alignment
11245 2019-06-06 Martin Jambor <mjambor@suse.cz>
11247 * tree-sra.c (struct access): New field grp_same_access_path.
11248 (dump_access): Dump it.
11249 (build_reconstructed_reference): New function.
11250 (build_ref_for_model): Use it if possible.
11251 (path_comparable_for_same_access): New function.
11252 (same_access_path_p): Likewise.
11253 (sort_and_splice_var_accesses): Set the new flag.
11254 (analyze_access_subtree): Likewise.
11255 (propagate_subaccesses_across_link): Propagate zero value of the new
11256 flag down the access tree.
11258 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
11260 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
11261 * config/gcn/gcn.opt (gpu_type): Add gfx906.
11262 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
11263 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
11266 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11268 PR tree-optimization/90332
11269 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
11270 Handle VALS containing two vectors.
11271 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
11273 (@aarch64_combinez<mode>): ... This.
11274 (*aarch64_combinez_be<mode>): Rename to...
11275 (@aarch64_combinez_be<mode>): ... This.
11276 (vec_init<mode><Vhalf>): New define_expand.
11277 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
11279 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11281 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
11282 library functions only when not optimizing for size.
11283 (ashlsi3): Likewise.
11284 (ashrhi3): Likewise.
11285 (ashrsi3): Likewise.
11286 (lshrhi3): Likewise.
11287 (lshrsi3): Likewise.
11289 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
11291 PR rtl-optimization/88751
11292 * ira.c (ira): Use the number of the actually referenced registers
11293 when calculating the threshold.
11295 2019-06-06 Jakub Jelinek <jakub@redhat.com>
11297 * configure: Regenerate.
11299 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11301 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
11302 register if it is in memory, so the shift can be emulated with a rotate
11304 (ashrhi3): Likewise.
11305 (lshrhi3): Likewise.
11307 2019-06-06 Martin Liska <mliska@suse.cz>
11309 PR tree-optimization/87954
11310 * match.pd: Simplify mult where both arguments are 0 or 1.
11312 2019-06-06 Richard Biener <rguenther@suse.de>
11314 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
11315 put equivalences on UNDEFINED ranges.
11316 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
11317 Make sure to drop defs of stmts added during simplification
11320 2019-06-06 Richard Biener <rguenther@suse.de>
11322 * tree-ssa-structalias.c: Include tree-cfg.h.
11323 (make_heapvar): Do not make heap vars artificial.
11324 (find_func_aliases_for_builtin_call): Handle stack allocation
11326 (find_func_aliases): Delay processing of simple enough returns
11328 (set_uids_in_ptset): Adjust.
11329 (find_what_var_points_to): Likewise.
11330 (solve_constraints): Do not dump points-to sets here.
11331 (compute_points_to_sets): Post-process return statements,
11332 amending the escaped solution. Dump points-to sets afterwards.
11333 (ipa_pta_execute): Dump points-to sets.
11335 2019-06-06 Martin Liska <mliska@suse.cz>
11338 * doc/install.texi: Fix HTML headers and
11339 titles for 'Installing GCC' pages.
11341 2019-06-06 Martin Liska <mliska@suse.cz>
11343 * ipa-icf-gimple.h (dump_message_1): Remove.
11344 (dump_message): Likewise.
11345 (return_false_with_message_1): Print also file.
11346 (return_false_with_msg): Likewise.
11347 (return_with_result): Likewise.
11348 (return_with_debug): Likewise.
11349 * ipa-icf.c (sem_function::equals_private): Remove call
11352 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
11354 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
11355 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
11356 memory operand for it.
11357 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
11359 2019-06-05 Martin Sebor <msebor@redhat.com>
11361 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
11362 Adjust quoting and hyphenation.
11363 * convert.c (convert_to_real_1): Same.
11364 * gcc.c (driver_wrong_lang_callback): Same.
11365 (driver::handle_unrecognized_options): Same.
11366 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
11367 * opts-common.c (cmdline_handle_error): Same.
11368 (read_cmdline_option): Same.
11369 * opts-global.c (complain_wrong_lang): Same.
11370 (print_ignored_options): Same.
11371 (handle_common_deferred_options): Same.
11372 * pretty-print.h: Same.
11373 * print-rtl.c (debug_bb_n_slim): Same.
11374 * sched-rgn.c (make_pass_sched_fusion): Same.
11375 * tree-cfg.c (verify_gimple_assign_unary): Same.
11376 (verify_gimple_label): Same.
11377 * tree-ssa-operands.c (verify_ssa_operands): Same.
11378 * varasm.c (do_assemble_alias): Same.
11379 (assemble_alias): Same.
11381 2019-06-05 Richard Henderson <rth@twiddle.net>
11383 * config/alpha/alpha.c (direct_return): Move down after
11384 struct machine_function definition; use saved frame_size;
11386 (struct machine_function): Add sa_mask, sa_size, frame_size.
11387 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
11388 (alpha_compute_frame_layout): ... new function.
11389 (TARGET_COMPUTE_FRAME_LAYOUT): New.
11390 (alpha_initial_elimination_offset): Use saved sa_size.
11391 (alpha_vms_initial_elimination_offset): Likewise.
11392 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
11393 (alpha_expand_prologue): Use saved frame data. Merge integer
11394 and fp register save loops.
11395 (alpha_expand_epilogue): Likewise.
11396 (alpha_start_function): Use saved frame data.
11397 * config/alpha/alpha-protos.h (direct_return): Update.
11398 (alpha_sa_size): Remove.
11400 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
11402 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
11403 multiplication by a power-of-two value.
11404 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
11405 and turn the modulo operation into a masking operation.
11407 2019-06-05 Jakub Jelinek <jakub@redhat.com>
11410 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
11411 with VOIDmode inner operands.
11413 2019-06-05 Richard Biener <rguenther@suse.de>
11415 PR middle-end/90726
11416 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11417 turn an expression graph into a tree.
11419 2019-06-05 Jakub Jelinek <jakub@redhat.com>
11421 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
11423 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
11424 treat it like explicit monotonic schedule modifier.
11425 (expand_omp_for): Initialize has_lastprivate_conditional.
11426 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
11429 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
11430 references, lookup in in hash map MEM_REF operand instead of the
11432 (lower_omp_1): When looking for lastprivate conditional assignments,
11433 handle MEM_REFs with REFERENCE_TYPE operands.
11435 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
11436 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
11437 and references a VLA. Handle references to non-VLAs if is_simd
11438 all privatization clauses like reductions.
11439 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
11440 If omp_is_reference, use always omp simd arrays and set
11441 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
11442 fails, emit reference initialization.
11444 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
11447 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
11448 _mm_mask_fpclass_sd_mask): New intrinsics.
11449 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
11450 * config/i386/i386-builtin.def
11451 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
11453 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
11454 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
11455 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
11456 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
11457 case QI_FTYPE_V2SF_INT): Ditto.
11458 * config/i386/sse.md
11459 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
11460 Extended to insnstructions with mask operands.
11462 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11464 * config/rs6000/constraints.md (define_register_constraint "wp"):
11466 (define_register_constraint "wq"): Delete.
11467 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11468 (rs6000_init_hard_regno_mode_ok): Adjust.
11469 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11470 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
11471 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
11472 (define_mode_attr VSa): Delete.
11473 (define_mode_attr VSisa): New.
11474 (rest of file): Adjust.
11475 * doc/md.texi (Machine Constraints): Adjust.
11477 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11479 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
11480 (define_attr "enabled"): Handle those new isa values.
11482 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11484 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
11485 (define_mode_attr VSr5): Delete.
11486 (define_mode_attr VStype_sqrt): Delete.
11487 (define_mode_iterator VSX_SPDP): Delete.
11488 (define_mode_attr VS_spdp_res): Delete.
11489 (define_mode_attr VS_spdp_insn): Delete.
11490 (define_mode_attr VS_spdp_type): Delete.
11491 (*vsx_sqrt<mode>2): Adjust.
11492 (vsx_<VS_spdp_insn>): Delete, split to...
11493 (vsx_xscvdpsp): ... this. New. And...
11494 (vsx_xvcvspdp): ... this. New. And...
11495 (vsx_xvcvdpsp): ... this. New.
11497 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11499 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
11501 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
11502 (rest of file): Adjust.
11504 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11506 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
11507 (vsx_extract_<mode>_var): Ditto.
11509 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11511 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
11514 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11516 * config/rs6000/constraints.md (define_register_constraint "ww"):
11518 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11519 (rs6000_init_hard_regno_mode_ok): Adjust.
11520 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11521 RS6000_CONSTRAINT_ww.
11522 * config/rs6000/rs6000.md: Adjust.
11523 * config/rs6000/vsx.md: Adjust.
11524 * doc/md.texi (Machine Constraints): Adjust.
11526 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11528 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
11529 (define_mode_attr sd): New.
11530 (define_mode_attr s): New.
11531 (define_mode_attr Ftrad): Delete.
11532 (define_mode_attr Fvsx): Delete.
11533 (define_mode_attr Fs): Delete.
11534 (rest of file): Use the new mode attributes.
11535 * config.rs6000/vsx.md: Use the new mode attributes.
11537 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11539 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
11542 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11544 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
11545 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
11546 used with VSX_B, VSX_D, or VSX_F, with just "wa".
11548 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
11551 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
11552 C++ with strict ANSI requirements.
11554 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
11556 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
11557 computations when step is 1.
11559 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11561 * config/rs6000/constraints.md (define_register_constraint "wf"):
11563 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11564 (rs6000_init_hard_regno_mode_ok): Adjust.
11565 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11566 RS6000_CONSTRAINT_wf.
11567 * config/rs6000/rs6000.md: Adjust.
11568 * config/rs6000/vsx.md: Adjust.
11569 * doc/md.texi (Machine Constraints): Adjust.
11571 2019-06-04 Andrew Pinski <apinski@marvell.com>
11573 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
11576 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11578 * config/rs6000/constraints.md (define_register_constraint "wd"):
11580 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11581 (rs6000_init_hard_regno_mode_ok): Adjust.
11582 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11583 RS6000_CONSTRAINT_wd.
11584 * config/rs6000/rs6000.md: Adjust.
11585 * config/rs6000/vsx.md: Adjust.
11586 * doc/md.texi (Machine Constraints): Adjust.
11588 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11590 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
11591 (rest of file): Adjust.
11593 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11595 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
11596 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
11597 (vsx_splat_<mode>_reg): Adjust.
11599 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11601 * config/rs6000/constraints.md (define_register_constraint "ws"):
11603 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11604 (rs6000_init_hard_regno_mode_ok): Adjust.
11605 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11606 RS6000_CONSTRAINT_ws.
11607 * config/rs6000/rs6000.md: Adjust.
11608 * config/rs6000/vsx.md: Adjust.
11609 * doc/md.texi (Machine Constraints): Adjust.
11611 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11613 * config/rs6000/constraints.md (define_register_constraint "wv"):
11615 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11616 (rs6000_init_hard_regno_mode_ok): Adjust.
11617 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11618 RS6000_CONSTRAINT_wv.
11619 * config/rs6000/rs6000.md: Adjust.
11620 * config/rs6000/vsx.md: Adjust.
11621 * doc/md.texi (Machine Constraints): Adjust.
11623 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11625 * config/rs6000/constraints.md (define_register_constraint "wi"):
11627 (define_register_constraint "wt"): Delete.
11628 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11629 (rs6000_init_hard_regno_mode_ok): Adjust.
11630 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11631 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
11632 * config/rs6000/rs6000.md: Adjust.
11633 * config/rs6000/vsx.md: Adjust.
11634 * doc/md.texi (Machine Constraints): Adjust.
11636 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
11638 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
11640 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
11641 default_elf_asm_output_external.
11643 2019-06-04 Martin Liska <mliska@suse.cz>
11645 * ipa-icf.c (INCLUDE_LIST): Remove.
11646 (sem_item_optimizer::execute): Remove call to init_wpa.
11647 * ipa-icf.h (init_wpa): Remove.
11649 2019-06-04 Jakub Jelinek <jakub@redhat.com>
11651 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
11652 conditional on combined for simd.
11653 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
11655 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
11656 constructs, don't remove lastprivate_conditional_map, but instead set
11657 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
11658 to parent construct temporaries.
11659 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
11660 like !ctx->lastprivate_conditional_map.
11661 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
11662 use up->outer context instead of up.
11663 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
11664 gimple_omp_for_combined_p.
11665 (expand_omp_for_static_nochunk): Likewise.
11666 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
11667 probably moved over into expand_omp_for_generic rather than being copied
11670 2019-06-04 Martin Liska <mliska@suse.cz>
11672 * value-prof.c (dump_histogram_value): Fix typo.
11673 (gimple_mod_subtract_transform): Likewise.
11675 2019-06-04 Richard Biener <rguenther@suse.de>
11677 PR middle-end/90726
11678 * tree-chrec.c (chrec_contains_symbols): Add to visited.
11679 (tree_contains_chrecs): Likewise.
11680 (chrec_contains_symbols_defined_in_loop): Move here and avoid
11681 exponential behaivor from ...
11682 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
11684 (expression_expensive_p): Avoid exponential behavior and compute
11685 expanded size, rejecting any expansion.
11686 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
11687 (idx_contains_abnormal_ssa_name_p): Likewise.
11688 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
11689 (contains_abnormal_ssa_name_p): Simplify and use
11690 walk_tree_without_duplicates.
11692 2019-06-04 Richard Biener <rguenther@suse.de>
11694 PR tree-optimization/90738
11696 2019-06-03 Richard Biener <rguenther@suse.de>
11698 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
11699 full reference tree and record in ref->ref.
11700 (vn_reference_lookup_3): Pass in original ref to
11701 ao_ref_init_from_vn_reference.
11702 (vn_reference_lookup): Likewise.
11703 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
11704 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
11705 Handle non-decl bases in the original reference.
11707 2019-06-04 Martin Liska <mliska@suse.cz>
11709 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
11710 number of references.
11711 (sem_item_optimizer::do_congruence_step):
11712 (sem_item_optimizer::worklist_push): Dump how references
11714 (sem_item_optimizer::worklist_pop): Use heap.
11715 (sem_item_optimizer::process_cong_reduction): Likewise.
11716 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
11718 2019-06-04 Martin Liska <mliska@suse.cz>
11720 * ipa-icf.h (struct sem_usage_pair_hash): New.
11721 (sem_usage_pair_hash::hash): Likewise.
11722 (sem_usage_pair_hash::equal): Likewise.
11723 (struct sem_usage_hash): Likewise.
11724 * ipa-icf.c (sem_item::sem_item): Initialize
11725 referenced_by_count.
11726 (sem_item::add_reference): Register a reference
11727 in ref_map and not in target->usages.
11728 (sem_item::setup): Remove initialization of
11730 (sem_item::~sem_item): Remove usage of dead vectors.
11731 (sem_item::dump): Remove dump of references.
11732 (sem_item_optimizer::sem_item_optimizer): Initialize
11734 (sem_item_optimizer::read_section): Remove useless
11736 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
11737 (sem_item_optimizer::build_graph): Pass m_references
11738 to ::add_reference.
11739 (sem_item_optimizer::verify_classes): Remove usage of dead
11741 (sem_item_optimizer::traverse_congruence_split): Return true
11742 when a class is split.
11743 (sem_item_optimizer::do_congruence_step_for_index): Use
11744 hash_map for look up of (sem_item *, index). That brings
11745 significant speed up.
11746 (sem_item_optimizer::do_congruence_step): Return true
11747 when a split is done.
11748 (congruence_class::is_class_used): Use referenced_by_count.
11750 2019-06-04 Alan Modra <amodra@gmail.com>
11753 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
11756 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
11758 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
11759 * config/rs6000/rs6000.c (direct_move_p): Adjust.
11760 (rs6000_secondary_reload_simple_move): Adjust.
11761 (rs6000_opt_masks): Neuter the "mfpgpr" option.
11762 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
11763 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
11766 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
11767 (floatunssi<mode>2_lfiwzx): Adjust.
11768 (fix_trunc<mode>si2_stfiwx): Adjust.
11769 (fixuns_trunc<mode>si2_stfiwx): Adjust.
11770 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
11771 (mfpgpr): Mark as deprecated.
11772 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
11773 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
11774 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
11776 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
11778 * config/rs6000/constraints.md (define_register_constraint "wg"):
11780 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11781 RS6000_CONSTRAINT_wg.
11782 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11783 (rs6000_init_hard_regno_mode_ok): Adjust.
11784 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
11785 Delete "wg" alternatives.
11786 * doc/md.texi (Machine Constraints): Adjust.
11788 2019-06-03 Alan Modra <amodra@gmail.com>
11790 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
11791 (get_uncond_jump_length): Assert length less than INT_MAX and
11794 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
11796 PR middle-end/64242
11797 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
11799 (expand_builtin_nonlocal_goto): Likewise.
11801 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
11803 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
11804 (aarch64_asm_output_external): Declare.
11805 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
11806 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
11807 (aarch64_asm_output_alias): New.
11808 (aarch64_asm_output_external): New.
11809 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
11810 (ASM_OUTPUT_EXTERNAL): Define.
11812 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
11813 * tree-vrp.h (value_range_base::nonzero_p): New.
11814 (value_range_base::set_nonnull): Rename to...
11815 (value_range_base::set_nonzero): ...this.
11816 (value_range_base::set_null): Rename to...
11817 (value_range_base::set_zero): ...this.
11818 (value_range::set_nonnull): Remove.
11819 (value_range::set_null): Remove.
11820 * tree-vrp.c (range_is_null): Remove.
11821 (range_is_nonnull): Remove.
11822 (extract_range_from_binary_expr): Use value_range_base::*zero_p
11823 instead of range_is_*null.
11824 (extract_range_from_unary_expr): Same.
11825 (value_range_base::set_nonnull): Rename to...
11826 (value_range_base::set_nonzero): ...this.
11827 (value_range::set_nonnull): Remove.
11828 (value_range_base::set_null): Rename to...
11829 (value_range_base::set_zero): ...this.
11830 (value_range::set_null): Remove.
11831 (extract_range_from_binary_expr): Rename set_*null uses to
11833 (extract_range_from_unary_expr): Same.
11834 (union_helper): Same.
11835 * vr-values.c (get_value_range): Use set_*zero instead of
11837 (vr_values::extract_range_from_binary_expr): Same.
11838 (vr_values::extract_range_basic): Same.
11840 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
11843 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
11845 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11847 * config/aarch64/iterators.md (MAX_OPP): New code attr.
11848 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
11850 (aarch64_<su>abd<mode>_3): ... This.
11851 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
11853 2019-06-03 Richard Biener <rguenther@suse.de>
11855 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
11856 full reference tree and record in ref->ref.
11857 (vn_reference_lookup_3): Pass in original ref to
11858 ao_ref_init_from_vn_reference.
11859 (vn_reference_lookup): Likewise.
11860 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
11861 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
11862 Handle non-decl bases in the original reference.
11864 2019-06-03 Martin Liska <mliska@suse.cz>
11866 * doc/generic.texi: Remove Java Trees.
11868 2019-06-03 Martin Liska <mliska@suse.cz>
11870 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
11871 returns 0 when operands are equal.
11873 2019-06-03 Richard Biener <rguenther@suse.de>
11875 PR tree-optimization/90716
11876 * tree-loop-distribution.c (destroy_loop): Process blocks in
11879 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11882 * vector-builder.h (vector_builder::count_dups): New method.
11883 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
11885 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
11886 (vec_init<mode><Vel>): New pattern.
11887 * config/aarch64/aarch64.c (emit_insr): New function.
11888 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
11889 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
11890 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
11891 (aarch64_sve_expand_vector_init): Define two overloaded functions.
11893 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11895 PR tree-optimization/90681
11896 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
11897 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
11898 special case for SLP, but fail on non-groupped loads.
11900 2019-06-03 Martin Liska <mliska@suse.cz>
11902 * cfg.c (debug): Use TDF_DETAILS for debug and
11903 print edge info only once.
11905 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
11908 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
11910 2019-06-01 Martin Sebor <msebor@redhat.com>
11912 PR middle-end/90694
11913 * tree-pretty-print.c (dump_generic_node): Add parentheses.
11915 2019-05-31 Jan Hubicka <jh@suse.cz>
11917 * alias.c: Include ipa-utils.h.
11918 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
11919 * ipa-devirt.c (prevailing_odr_type): New.
11920 * ipa-utils.h (previaling_odr_type): Declare.
11922 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
11923 Hongtao Liu <hongtao.liu@intel.com>
11926 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
11927 NOTE_INSN_DELETED_LABEL check.
11929 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
11930 Robert Suchanek <robert.suchanek@mips.com>
11932 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
11933 and 3rd operands of the fmadd/fmsub/maddv builtin.
11935 2019-05-31 Jakub Jelinek <jakub@redhat.com>
11937 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
11938 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
11939 on OMP_SIMD if not nested inside of worksharing loop that also has
11940 lastprivate conditional clause for the same decl.
11941 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
11942 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
11944 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
11946 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
11948 (lower_lastprivate_clauses): Likewise.
11949 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
11950 calling lower_rec_input_clauses.
11951 (lower_omp_for): Likewise.
11952 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
11953 clause on simd construct.
11954 * omp-expand.c (expand_omp_simd): Initialize cond_var if
11955 OMP_CLAUSE__CONDTEMP_ clause is present.
11957 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
11960 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
11963 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
11964 TEX_D32, TEX_D64 or TEX_D128.
11966 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
11968 * match.pd (~(vec?cst1:cst2)): New transformation.
11970 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
11972 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
11973 ((size_t)(A /[ex] B) CMP C): New transformation.
11975 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
11977 * doc/md.texi: Document define_insn_and_rewrite.
11978 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
11979 * gensupport.c (queue_elem): Update comment.
11980 (replace_operands_with_dups): New function.
11981 (gen_rewrite_sequence): Likewise.
11982 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
11983 * read-rtl.c (apply_subst_iterator): Likewise.
11984 (add_condition_to_rtx, named_rtx_p): Likewise.
11985 (rtx_reader::read_rtx_operand): Likewise.
11986 * config/aarch64/aarch64-sve.md
11987 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
11988 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
11989 define_insn_and_rewrite.
11990 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
11991 Remove separate define_split.
11993 2019-05-31 Jan Hubicka <jh@suse.cz>
11995 * tree-ssa-alias.c (type_has_components_p): New function.
11996 (aliasing_component_refs_p): Use it.
11998 2019-05-31 Martin Liska <mliska@suse.cz>
12000 * gdbhooks.py: Add const_tree to TreePrinter.
12002 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
12005 * common.opt (feliminate-unused-debug-symbols): Enable by default.
12006 * doc/invoke.texi (Debugging Options): Document new default of
12007 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
12009 2019-05-31 Jakub Jelinek <jakub@redhat.com>
12011 PR tree-optimization/90671
12012 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
12013 template_block used to be empty on the first call, don't use
12014 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
12015 seq with bb_seq and set it with set_bb_seq.
12017 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
12019 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
12021 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
12022 Michael Meissner <meissner@linux.ibm.com>
12024 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
12025 (prefixed_mem_operand): Likewise.
12026 (non_prefixed_mem_operand): Likewise.
12027 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
12029 * config/rs6000/rs6000.c (print_operand_address): Handle
12030 PC-relative addresses.
12031 (mode_supports_prefixed_address_p): New function.
12032 (rs6000_prefixed_address): New function.
12033 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
12034 (SYMBOL_REF_PCREL_P): Likewise.
12036 2019-05-30 Jakub Jelinek <jakub@redhat.com>
12038 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
12039 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
12040 (gimplify_omp_for): If worksharing loop with lastprivate conditional
12041 is nested inside of parallel region, add _condtemp_ clause to both.
12042 * tree-nested.c (convert_nonlocal_omp_clauses,
12043 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
12045 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
12047 * omp-general.c (omp_extract_for_data): Compute it.
12048 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
12049 (lower_rec_input_clauses): Likewise.
12050 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
12051 clause is already present, just add one further one after it.
12052 (lower_lastprivate_clauses): Handle cond_ptr with array type.
12053 (lower_send_shared_vars): Clear _condtemp_ vars.
12054 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
12055 or section or taskgroup.
12056 * omp-expand.c (determine_parallel_type): Disallow combining only if
12057 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
12058 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
12059 (expand_omp_for_generic, expand_omp_for_static_nochunk,
12060 expand_omp_for_static_chunk, expand_omp_for): Use
12061 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
12062 determine if a special set of API routines are needed and if condtemp
12063 needs to be initialized, while always initialize cond_var if
12064 fd->lastprivate_conditional is non-zero.
12066 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
12067 Michael Meissner <meissner@linux.ibm.com>
12069 * config/rs6000/constraints.md (eI): New constraint.
12070 * config/rs6000/predicates.md (cint34_operand): New predicate.
12071 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
12072 (SIGNED_34BIT_OFFSET_P): Likewise.
12073 * doc/md.texi (eI): Document constraint.
12075 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
12077 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
12079 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
12080 Michael Meissner <meissner@linux.ibm.com>
12082 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
12083 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
12084 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
12085 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
12086 (OTHER_FUTURE_MASKS): Likewise.
12087 (POWERPC_MASKS): Likewise.
12088 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
12089 specified without -mprefixed-addr or -mcpu=future. Error if
12090 -mprefixed-addr is specified without -mcpu=future.
12091 (rs6000_opt_masks): Add entry for prefixed-addr.
12092 * rs6000.opt (mprefixed-addr): New option.
12094 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
12096 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
12097 cfun->is_thunk check.
12099 2019-05-30 Jakub Jelinek <jakub@redhat.com>
12101 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
12104 2019-05-30 Martin Liska <mliska@suse.cz>
12106 * gdbinit.in: Fix 'ptc' command. Add trt
12107 that prints TREE_TYPE($).
12109 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
12110 Alan Modra <amodra@gmail.com>
12112 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
12114 (rs6000_indirect_call_template_1): ...and here.
12115 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
12116 plt16_ha, plt16_lo, mtctr indirect calls. Use
12117 rs6000_pltseq_enum.
12118 (rs6000_decl_ok_for_sibcall): New function.
12119 (rs6000_function_ok_for_sibcall): Refactor.
12120 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
12121 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
12122 when pcrel. Reorganize.
12123 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
12124 * rs6000.h (rs6000_pltseq_enum): New enum.
12125 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
12126 (*pltseq_tocsave): Use rs6000_pltseq_enum.
12127 (*pltseq_plt16_ha): Likewise.
12128 (*pltseq_plt16_lo): Likewise.
12129 (*pltseq_mtctr): Likewise.
12130 (*pltseq_plt_pcrel): New insn.
12131 (*call_local_aix): Handle @notoc calls.
12132 (*call_value_local_aix): Likewise.
12133 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
12134 (*call_value_nonlocal_aix): Likewise.
12135 (*call_indirect_pcrel): New insn.
12136 (*call_value_indirect_pcrel): Likewise.
12138 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
12140 * config/i386/sse.md (*save_multiple<mode>): Rename from
12141 save_multiple<mode>.
12142 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
12143 (*restore_multiple_and_return<mode>): Rename from
12144 restore_multiple_and_return<mode>.
12145 (*restore_multiple_leave_return<mode>): Rename from
12146 restore_multiple_leave_return<mode>.
12148 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
12150 * config.gcc (rx-*-linux*): New target.
12151 * config/rx/elf.opt: New file.
12152 * config/rx/linux.h: Likewise.
12153 * config/rx/t-linux: Likewise.
12154 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
12156 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
12157 (ASM_APP_OFF): Likewise.
12158 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
12161 2019-05-29 Jan Hubicka <jh@suse.cz>
12163 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
12164 variants are pointer equivalent.
12166 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12168 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
12169 * config/aarch64/aarch64-sve2.md: New file.
12170 (<u>avg<mode>3_floor): New pattern.
12171 (<u>avg<mode>3_ceil): Likewise.
12172 (*<sur>h<addsub><mode>): Likewise.
12173 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
12174 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
12176 2019-05-29 Jakub Jelinek <jakub@redhat.com>
12179 * optc-save-gen.awk: In cl_optimization_print, use correct condition
12180 for var_opt_string printing. In cl_optimization_print_diff, print
12181 (null) instead of invoking undefined behavior if one of the
12182 var_opt_string pointers is NULL and use && instead of first || in the
12183 guarding condition. For var_target_other options, handle const char *
12184 target variables similarly to const char * optimize node variables.
12186 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
12188 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
12189 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
12190 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
12191 Add autib1716 and pacib1716 initialisation.
12192 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
12193 for autib1716 and pacib1716.
12194 * config/aarch64/aarch64-protos.h (aarch64_key_type,
12195 aarch64_post_cfi_startproc): Define.
12196 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
12197 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
12198 aarch64_handle_pac_ret_protection): Set default sign key to A.
12199 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
12200 aarch64_expand_prologue): Add check for b-key.
12201 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
12202 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
12203 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
12204 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
12205 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
12206 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
12207 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
12208 * config/aarch64/aarch64.md (do_return): Add check for b-key.
12209 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
12210 pauth_hint_num_a with pauth_hint_num.
12211 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
12212 pauth_hint_num_a with pauth_hint_num.
12213 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
12214 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
12215 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
12216 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
12217 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
12218 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
12219 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
12220 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
12221 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
12222 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
12223 UNSPEC_AUTIA1716 respectively.
12224 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
12225 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
12226 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
12227 * doc/invoke.texi (-mbranch-protection): Add b-key type.
12228 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
12229 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
12231 2019-05-29 Jakub Jelinek <jakub@redhat.com>
12233 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
12234 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
12235 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
12236 explicit clause on combined parallel into implicit shared clause.
12237 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
12238 and firstprivate if the decl has one too from combined parallel to
12239 the worksharing construct.
12241 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
12242 Michael Meissner <meissner@linux.ibm.com>
12244 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
12246 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
12248 * rtl.h (LABEL_REF_P): New #define.
12250 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
12252 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
12254 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12256 * internal-fn.c: Marked mask_load_direct as vectorizable.
12257 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
12258 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
12259 combined even if masks different with allow_slp_p param.
12260 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
12261 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
12262 dissolve SLP-only vectorizable groups when SLP has been discarded.
12263 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
12264 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
12266 (vect_build_slp_tree_1): Fixed comment typo.
12267 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
12268 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
12269 loads for SLP only.
12270 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
12272 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
12274 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12276 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
12277 Remove obsolete use_thunk reference.
12278 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
12279 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12280 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
12281 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
12282 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12283 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12284 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12285 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
12286 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
12288 2019-05-28 Nathan Sidwell <nathan@acm.org>
12290 * tree.h (IDENTIFIER_ANON_P): New.
12291 (anon_aggrname_format, anon_aggname_p): Don't declare.
12292 (make_anon_name): Declare.
12293 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
12294 (hash_tree): Likewise.
12295 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
12296 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
12297 (anon_cnt, make_anon_name): New.
12299 2019-05-28 Martin Liska <mliska@suse.cz>
12302 * opts-global.c (decode_options): Print help for all
12303 help_option_arguments.
12304 * opts.c (print_help): Add new argument.
12305 (common_handle_option): Remember all values into
12306 help_option_arguments.
12307 * opts.h (print_help): Add new argument.
12309 2019-05-28 Martin Liska <mliska@suse.cz>
12312 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
12313 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
12314 (func_checker::compare_bb): Call compare_loops.
12316 2019-05-27 Jakub Jelinek <jakub@redhat.com>
12318 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
12319 on sections construct.
12320 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
12322 (lower_omp_sections): Handle lastprivate conditional.
12323 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
12324 lastprivate_conditional_map.
12325 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
12327 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
12328 critical, taskgroup and section regions when looking for a region
12329 with non-NULL lastprivate_conditional_map.
12331 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
12333 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
12334 (*ix86_gen_sub3): Ditto.
12335 (*ix86_gen_sub3_carry): Ditto.
12336 (*ix86_gen_one_cmpl2): Ditto.
12337 (*ix86_gen_andsp): Ditto.
12338 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
12339 (gen_and2_insn): New static function.
12340 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
12341 Use gen_add3_insn instead of ix86_gen_add3.
12342 (ix86_expand_split_stack_prologue): Use gen_add2_insn
12343 instead of ix86_gen_add3.
12344 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
12345 Use gen_sub3_insn instead of ix86_gen_sub3.
12346 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
12347 instead of ix86_gen_add3.
12348 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
12349 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
12350 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
12351 * config/i386/i386-options.c (ix86_option_override_internal):
12352 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
12353 ix86_gen_one_cmpl2 and ix86_gen_andsp.
12355 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
12357 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
12358 and DW_OP_GNU_const_index opcodes.
12360 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
12362 * config/i386/i386.h (STACK_SIZE_MODE): Define.
12364 2019-05-27 Richard Biener <rguenther@suse.de>
12366 PR tree-optimization/90637
12367 * tree-ssa-sink.c (statement_sink_location): Honor the
12368 computed sink location for single-uses.
12370 2019-05-27 Richard Biener <rguenther@suse.de>
12372 PR middle-end/90610
12373 * match.pd (vec_perm): Avoid clobbering op0 when not generating
12376 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
12378 * config/i386/i386.md (@sub<mode>3_carry): Rename
12379 from sub<mode>3_carry.
12380 (@leave_<mode>): New expander.
12381 (*leave): Rename from leave.
12382 (*leave_rex64): Rename from leave_rex64.
12383 (@monitorx_<mode>): Rename from monitorx_<mode>.
12384 (@clzero_<mode>): Rename from clzero_<mode>.
12385 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
12386 from sse3_monitor_<mode>.
12387 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
12388 (*ix86_gen_leave): Ditto.
12389 (*ix86_gen_monitor): Ditto.
12390 (*ix86_gen_monitorx): Ditto.
12391 (*ix86_gen_clzero): Ditto.
12392 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
12393 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
12394 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
12395 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
12396 Use gen_sse3_monitor instead of ix86_gen_monitor.
12397 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
12398 instead of ix86_gen_monitorx.
12399 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
12400 instead of ix86_gen_clzero.
12401 * config/i386/i386-options.c (ix86_option_override_internal):
12402 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
12403 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
12405 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
12407 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
12408 Rename from tls_global_dynamic_64_<mode>.
12409 (@tls_local_dynamic_base_64_<mode>): Rename from
12410 tls_local_dynamic_base_64_<mode>.
12411 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
12412 Remove indirect function.
12413 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
12414 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
12415 instead of ix86_gen_tls_global_dynamic_64.
12416 Use gen_tls_local_dynamic_base_64 instead of
12417 ix86_gen_tls_local_dynamic_base_64.
12418 * config/i386/i386-options.c (ix86_option_override_internal):
12419 Do not initialize ix86_gen_tls_global_dynamic_64 and
12420 ix86_gen_tls_local_dynamic_base_64.
12422 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
12424 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
12425 Rename from pro_epilogue_adjust_stack_<mode>_add.
12426 (@pro_epilogue_adjust_stack_sub_<mode>)
12427 Rename from pro_epilogue_adjust_stack_<mode>_sub.
12428 (@allocate_stack_worker_probe_<mode>):
12429 Rename from allocate_stack_worker_probe_<mode>.
12430 (allocate_stack): Use gen_allocate_stack_worker_probe.
12431 (probe_stack): Use gen_probe_stack_1.
12432 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
12433 (@adjust_stack_and_probe_<mode>): Rename from
12434 adjust_stack_and_probe<mode>.
12435 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
12436 (stack_protect_set): Use gen_stack_protect_set_1.
12437 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
12438 (stack_protect_test): Use gen_stack_protect_test_1.
12439 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
12440 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
12441 Remove indirect function.
12442 (*ix86_gen_adjust_stack_and_probe): Ditto.
12443 (*ix86_gen_probe_stack_range): Ditto.
12444 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
12445 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
12446 (ix86_adjust_stack_and_probe_stack_clash): Use
12447 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
12448 (ix86_adjust_stack_and_probe): Ditto.
12449 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
12450 of ix86_gen_probe_stack_range.
12451 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
12452 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
12453 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
12454 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
12455 CODE_FOR_stack_protect_test_{si,di}.
12456 * config/i386/i386-options.c (ix86_option_override_internal):
12457 Do not initialize ix86_gen_allocate_stack_worker,
12458 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
12460 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
12462 * doc/invoke.texi (Link Options): Many editorial changes around
12465 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12467 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
12468 pre-Solaris 11 referene and most Studio compiler details.
12470 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
12473 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
12474 DImode to SImode in floating-point registers on 64-bit target.
12475 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
12476 register_operand in xmpyu patterns.
12478 2019-05-24 Jakub Jelinek <jakub@redhat.com>
12480 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
12481 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
12482 OMP_CLAUSE__REDUCTEMP_.
12483 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
12484 OMP_CLAUSE__CONDTEMP_.
12485 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
12486 * tree-pretty-print.c (dump_omp_clause): Likewise.
12487 * tree-nested.c (convert_nonlocal_omp_clauses,
12488 convert_local_omp_clauses): Likewise.
12489 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
12490 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
12491 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
12493 (gimplify_omp_for): Warn and disable conditional modifier from
12494 lastprivate on loop iterators.
12495 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
12497 * omp-general.c (omp_extract_for_data): Initialize it.
12498 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
12500 (delete_omp_context): Delete it.
12501 (lower_lastprivate_conditional_clauses): New function.
12502 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
12503 handle lastprivate conditional clauses.
12504 (lower_reduction_clauses): Add CLIST argument, emit it into
12505 the critical section if any.
12506 (lower_omp_sections): Adjust lower_lastprivate_clauses and
12507 lower_reduction_clauses callers.
12508 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
12509 to lower_lastprivate_clauses.
12510 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
12511 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
12512 clist into a critical section if not emitted there already by
12513 lower_reduction_clauses.
12514 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
12516 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
12517 conditional variables.
12518 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
12520 (expand_omp_for_generic, expand_omp_for_static_nochunk,
12521 expand_omp_for_static_chunk): Handle lastprivate conditional.
12522 (expand_omp_for): Handle fd.lastprivate_conditional like
12525 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
12527 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
12528 kernel does not exit cleanly.
12529 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
12531 2019-05-24 Jason Merrill <jason@redhat.com>
12534 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
12536 2019-05-24 Richard Biener <rguenther@suse.de>
12539 * tree-loop-distribution.c (struct partition): Add location
12541 (partition_alloc): Initialize all fields.
12542 (generate_memset_builtin): Use the location recorded in the
12543 partition for the generated call.
12544 (generate_memcpy_builtin): Likewise.
12545 (classify_partition): Record the location of a single store
12546 as location for the partition.
12548 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
12550 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
12553 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
12556 * common/config/aarch64/aarch64-common.c
12557 (aarch64_rewrite_selected_cpu): Change local temporary variable
12558 type from unsigned long to uint64_t.
12559 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
12560 aarch64_get_extension_string_for_isa_flags): Change declaration to
12561 match new definition by replacing unsigned long with uint64_t.
12563 2019-05-24 Jakub Jelinek <jakub@redhat.com>
12566 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
12567 gen_attr_type just once instead of 4-7 times. Formatting fixes.
12568 Handle stack_protect_test_<mode> codegen similarly to corresponding
12571 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
12573 * config/i386/darwin.h: Reject -mfentry*.
12574 * doc/sourcebuild.texi: Document mfentry target support.
12576 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
12578 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
12579 Rename to rs6000_global_entry_point_prologue_needed_p. Return
12580 false for PC-relative functions.
12581 (rs6000_output_function_prologue): Change called function name to
12582 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
12583 name,1" for PC-relative functions.
12584 (rs6000_elf_declare_function_name): Change called function name to
12585 rs6000_global_entry_point_prologue_needed_p.
12587 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
12590 * config/i386/i386.c (gen_rtx_cost):
12591 Use ix86_tune_cost instead of ix86_cost.
12593 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
12594 Michael Meissner <meissner@linux.ibm.com>
12595 Segher Boessenkool <segher@kernel.crashing.org>
12597 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
12599 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
12600 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
12601 (rs6000_fndecl_pcrel_p): Likewise.
12602 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
12603 error if -mpcrel is requested without -mcpu=future.
12604 (rs6000_opt_masks): Add entry for pcrel.
12605 (rs6000_fndecl_pcrel_p): New function.
12606 (rs6000_pcrel_p): Likewise.
12607 * config/rs6000/rs6000.opt (mpcrel): New option.
12608 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
12610 2019-05-23 Jan Hubicka <jh@suse.cz>
12611 Martin Liska <mliska@suse.cz>
12613 PR tree-optimization/90576
12614 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
12616 (aliasing_component_refs_p): Fix three way size compare conditional;
12617 give up earlier in case we can not decide on equivalence.
12619 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
12620 Michael Meissner <meissner@linux.ibm.com>
12621 Segher Boessenkool <segher@kernel.crashing.org>
12623 * config.gcc: Add future cpu.
12624 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
12625 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
12627 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
12628 (RS6000_CPU): New instantiation for future cpu.
12629 * config/rs6000/rs6000-opts.h (enum processor_type): Add
12631 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
12632 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
12633 * config/rs6000/rs6000-tables.opt: Regenerate.
12634 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
12635 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
12636 (rs6000_machine_from_flags): Handle future cpu.
12637 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
12638 PROCESSOR_POWER9 for now.
12639 (rs6000_adjust_cost): Likewise.
12640 (rs6000_issue_rate): Likewise.
12641 (rs6000_register_move_cost): Likewise.
12642 (rs6000_opt_masks): Add entry for future.
12643 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
12644 (MASK_FUTURE): New #define.
12645 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
12646 * config/rs6000/rs6000.opt (mfuture): New target option.
12647 * doc/invoke.texi (mcpu): Add future cpu.
12649 2019-05-23 Martin Liska <mliska@suse.cz>
12652 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
12653 operation points to a temporary (pointed via tree_to_wide_ref)
12654 that is out of scope after the &.
12656 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
12659 * doc/extend.texi (Function Names): Add missing word.
12661 2019-05-23 Richard Biener <rguenther@suse.de>
12663 PR tree-optimization/88440
12664 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
12666 * tree-loop-distribution.c (generate_memset_builtin): Fold the
12668 (generate_memcpy_builtin): Likewise.
12669 (distribute_loop): Pass in whether to only distribute patterns.
12670 (prepare_perfect_loop_nest): Also allow size optimization.
12671 (pass_loop_distribution::execute): When optimizing a loop
12672 nest for size allow pattern replacement.
12674 2019-05-23 Jakub Jelinek <jakub@redhat.com>
12677 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
12680 2019-05-23 Martin Liska <mliska@suse.cz>
12683 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
12684 expression similarly to gimplify_decl_expr.
12686 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12688 * cse.c (cse_dump_path): s/dump_file/f.
12690 2019-05-22 David Malcolm <dmalcolm@redhat.com>
12693 * diagnostic-format-json.cc: Include "selftest.h".
12694 (json_from_expanded_location): Only add "file" key for non-NULL
12696 (json_from_location_range): Don't add "start" and "finish"
12697 children if they are UNKNOWN_LOCATION.
12698 (selftest::test_unknown_location): New selftest.
12699 (selftest::test_bad_endpoints): New selftest.
12700 (selftest::diagnostic_format_json_cc_tests): New function.
12701 * json.cc (json::object::get): New function.
12702 (selftest::test_object_get): New selftest.
12703 (selftest::json_cc_tests): Call it.
12704 * json.h (json::object::get): New decl.
12705 * selftest-run-tests.c (selftest::run_tests): Call
12706 selftest::diagnostic_format_json_cc_tests.
12707 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
12710 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
12711 Andrew Stubbs <amd@codesourcery.com>
12713 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
12714 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
12715 (kernel): Rename to...
12716 (main_kernel): ... this.
12717 (load_image): Load _init_array and _fini_array kernels.
12718 (run): Add argument for kernel to run.
12719 (main): Run init_array_kernel before main_kernel, and
12720 fini_array_kernel after.
12721 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
12722 amdgpu_hsa_kernel attribute on functions.
12723 (gcn_disable_constructors): Delete.
12724 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
12725 * config/gcn/crt0.c (size_t): Define.
12726 (_init_array, _fini_array): New.
12727 (__preinit_array_start, __preinit_array_end,
12728 __init_array_start, __init_array_end,
12729 __fini_array_start, __fini_array_end): Declare weak references.
12731 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
12733 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
12735 2019-05-22 Jason Merrill <jason@redhat.com>
12737 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
12739 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
12742 * config/i386/i386-options.c (ix86_init_machine_status): Set
12743 stack_frame_required to true.
12744 * config/i386/i386.c (ix86_get_frame_size): New function.
12745 (ix86_frame_pointer_required): Replace get_frame_size with
12746 ix86_get_frame_size.
12747 (ix86_compute_frame_layout): Likewise.
12748 (ix86_find_max_used_stack_alignment): Changed to void. Set
12749 stack_frame_required.
12750 (ix86_finalize_stack_frame_flags): Always call
12751 ix86_find_max_used_stack_alignment. Replace get_frame_size with
12752 ix86_get_frame_size.
12753 * config/i386/i386.h (machine_function): Add stack_frame_required.
12755 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
12757 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
12759 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
12761 * common/config/aarch64/aarch64-common.c
12762 (struct aarch64_option_extension, struct processor_name_to_arch,
12763 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
12764 aarch64_contains_opt,
12765 aarch64_get_extension_string_for_isa_flags): Change type of
12766 variables storing flags to uint64_t.
12767 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
12768 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
12769 * config/aarch64/aarch64.c (struct processor,
12770 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
12771 aarch64_validate_march, aarch64_override_options,
12772 aarch64_option_print, aarch64_handle_attr_isa_flags,
12773 aarch64_declare_function_name, aarch64_start_file): Make flag
12774 variables uint64_t.
12775 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
12776 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
12777 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
12778 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
12779 * config/aarch64/driver-aarch64.c
12780 (struct aarch64_arch_extension, struct aarch64_core_data,
12781 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
12782 flag variables uint64_t.
12783 * doc/invoke.texi: Add documentation for new arguments.
12785 2019-05-22 Richard Biener <rguenther@suse.de>
12787 * alias.c (ao_ref_from_mem): Move stack-slot sharing
12789 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
12791 2019-05-22 Martin Liska <mliska@suse.cz>
12794 * doc/extend.texi: Document the change.
12796 2019-05-22 Richard Biener <rguenther@suse.de>
12798 PR tree-optimization/90450
12799 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
12800 (mem_ref_hasher::equal): Check it.
12801 (mem_ref_alloc): Initialize it.
12802 (gather_mem_refs_stmt): Set it.
12804 2019-05-22 Richard Biener <rguenther@suse.de>
12806 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
12808 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
12811 2019-05-22 Alan Modra <amodra@gmail.com>
12813 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
12814 (ASM_CPU_SPEC): Conditionally add -many.
12815 * config/rs6000/rs6000.c (rs6000_machine): New static var.
12816 (rs6000_machine_from_flags, emit_asm_machine): New functions..
12817 (rs6000_file_start): ..extracted from here, and modified to
12819 (rs6000_output_function_prologue): Emit .machine as necessary.
12821 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
12823 PR middle-end/90553
12824 * ira-lives.c (process_bb_node_lives): Consider defs
12825 for a call insn to be die before the call, not after.
12827 * function.c (assign_parm_setup_block): Raise alignment of
12828 stacked parameter only for STRICT_ALIGNMENT targets.
12830 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12832 * config/rs6000/constraints.md (define_register_constraint "wz"):
12834 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12835 RS6000_CONSTRAINT_wz.
12836 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12837 (rs6000_init_hard_regno_mode_ok): Adjust.
12838 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
12839 * doc/md.texi (Machine Constraints): Adjust.
12841 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12843 * config/rs6000/constraints.md (define_register_constraint "wl"):
12845 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12846 RS6000_CONSTRAINT_wl.
12847 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12848 (rs6000_init_hard_regno_mode_ok): Adjust.
12849 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
12850 * doc/md.texi (Machine Constraints): Adjust.
12852 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12854 * config/rs6000/constraints.md (define_register_constraint "wm"):
12856 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12857 RS6000_CONSTRAINT_wm.
12858 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12859 (rs6000_init_hard_regno_mode_ok): Adjust.
12860 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
12861 * doc/md.texi (Machine Constraints): Adjust.
12863 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12865 * config/rs6000/constraints.md (define_register_constraint "wk"):
12867 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12868 RS6000_CONSTRAINT_wk.
12869 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12870 (rs6000_init_hard_regno_mode_ok): Adjust.
12871 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
12872 * doc/md.texi (Machine Constraints): Adjust.
12874 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12876 * config/rs6000/constraints.md (define_register_constraint "wj"):
12878 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12879 RS6000_CONSTRAINT_wj.
12880 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12881 (rs6000_init_hard_regno_mode_ok): Adjust.
12882 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
12884 * config/rs6000/vsx.md: Ditto.
12885 * doc/md.texi (Machine Constraints): Adjust.
12887 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12889 * config/rs6000/constraints.md (define_register_constraint "wh"):
12891 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12892 RS6000_CONSTRAINT_wh.
12893 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12894 (rs6000_init_hard_regno_mode_ok): Adjust.
12895 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
12896 * doc/md.texi (Machine Constraints): Adjust.
12898 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
12901 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
12902 Avoid calling gen_lowpart with CONST operand.
12904 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
12906 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
12907 field template_last_to_copy.
12908 (ssa_create_duplicates): Set it, and use it. Attempt to
12909 preserve more debug stmts.
12911 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
12913 * config/i386/sse.md (VF1_AVX2): New mode iterator.
12914 (signbit<mode>2): New expander
12916 2019-05-21 James Clarke <jrtc27@jrtc27.com>
12919 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
12920 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
12922 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
12924 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
12925 %ebx and %ecx bafore calling cpuid with leaf 1 or
12926 non-constant leaf argument.
12928 2019-05-21 Alan Modra <amodra@gmail.com>
12931 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
12932 power9 direct move cost.
12934 2019-05-21 Richard Biener <rguenther@suse.de>
12936 PR middle-end/90510
12937 * fold-const.c (fold_read_from_vector): New function.
12938 * fold-const.h (fold_read_from_vector): Declare.
12939 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
12940 single-element insert permutations. Canonicalize selector
12941 further and fix issue with last commit.
12943 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
12945 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
12946 parameter with default value false to declaration.
12947 (split_edges_for_insertion): New inline function. Wrapper for
12948 split_critical_edges with for_edge_insertion_p = true.
12949 * tree-cfg.c (split_critical_edges): Don't split non-critical
12950 edges if for_edge_insertion_p is false. Fix whitespace.
12951 * tree-ssa-pre.c (pass_pre::execute): Call
12952 split_edges_for_insertion instead of split_critical_edges.
12953 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
12954 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
12955 (pass_data_sink_code): Update function name in the comment.
12957 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
12959 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
12960 around is_value_included_in that knows how to handle BIT_AND_EXPR.
12961 (is_pred_expr_subset_of): Use the new function. Handle more cases where
12962 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
12965 2019-05-21 Martin Liska <mliska@suse.cz>
12967 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
12969 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
12970 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
12972 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12974 (rs6000_function_arg): Likewise.
12975 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
12976 (rs6000_expand_ternop_builtin): Use interval syntax.
12977 (get_element_number): Likewise.
12978 (altivec_expand_builtin): Likewise.
12979 (rs6000_get_function_versions_dispatcher): Quote target_clones.
12981 2019-05-20 Jakub Jelinek <jakub@redhat.com>
12985 * function.h (struct function): Add calls_eh_return member.
12986 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
12987 gimplifying __builtin_eh_return call.
12988 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
12990 (expand_call_inline): Or in src_cfun->calls_eh_return into
12991 dst_cfun->calls_eh_return.
12992 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
12993 cfun->calls_eh_return.
12994 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
12995 * lto-streamer-out.c (output_struct_function_base): Write
12998 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
13000 PR rtl-optimization/43147
13001 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
13002 IX86_BUILTIN_SHUFPD.
13004 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
13006 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
13007 (refs_may_alias_p_1): ... here; update stats.
13008 (refs_may_alias_p): Do not update stats here.
13010 2019-05-20 Richard Biener <rguenther@suse.de>
13012 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
13013 doesn't produce pointers.
13014 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
13015 the first operand points to.
13017 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
13019 * tree-ssa-alias.c (compare_sizes): New function.
13020 (sompare_type_sizes): New function
13021 (aliasing_component_refs_p): Use it.
13022 (indirect_ref_may_alias_decl_p): Likewise.
13024 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13026 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
13028 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13030 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
13031 (LIBLSAN_EARLY_SPEC): Likewise.
13032 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
13034 2019-05-20 Martin Liska <mliska@suse.cz>
13036 * config/i386/i386.c (ix86_libc_has_fast_function):
13037 Add ATTRIBUTE_UNUSED for the argument.
13039 2019-05-20 Richard Biener <rguenther@suse.de>
13041 * gimple-match-head.c: Include vec-perm-indices.h.
13042 * generic-match-head.c: Likewise.
13043 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
13045 * fold-const.c (fold_vec_perm): Export.
13046 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
13047 (match.pd): ...here.
13049 2019-05-20 Jakub Jelinek <jakub@redhat.com>
13051 * cfgloop.h (struct loop): Add simdlen member.
13052 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
13053 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
13054 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
13055 as new argument to autovectorize_vector_sizes target hook. If
13056 loop->simdlen, pick up vector size where the vectorization factor
13057 is equal to loop->simd, and if there is none, fall back to the first
13059 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
13061 * omp-low.c (omp_clause_aligned_alignment): Likewise.
13062 * omp-general.c (omp_max_vf): Likewise.
13063 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
13064 * tree-vect-slp.c (vect_slp_bb): Likewise.
13065 * target.def (autovectorize_vector_sizes): Add ALL argument and
13067 * doc/tm.texi: Adjust documentation.
13068 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
13069 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
13070 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
13072 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
13073 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
13074 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
13075 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
13076 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
13077 preferred vector size is not 512-bit or 256-bit, just put those
13078 unpreferred ones last.
13080 2019-05-20 Martin Liska <mliska@suse.cz>
13082 * targhooks.c (default_libc_has_fast_function): New function.
13083 * targhooks.h (default_libc_has_fast_function): Likewise.
13085 2019-05-20 Martin Liska <mliska@suse.cz>
13087 PR middle-end/90263
13088 * builtins.c (expand_builtin_memory_copy_args): When having a
13089 target with fast mempcpy implementation do now use memcpy.
13090 * config/i386/i386.c (ix86_libc_has_fast_function): New.
13091 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
13092 * doc/tm.texi: Likewise.
13093 * doc/tm.texi.in: Likewise.
13095 * expr.c (emit_block_move_hints): Add 2 new arguments.
13096 * expr.h (emit_block_move_hints): Bail out when libcall
13097 to memcpy would be used.
13099 2019-05-20 Martin Liska <mliska@suse.cz>
13101 * profile-count.c: Add vertical spacing in order
13102 to separate functions.
13103 * profile-count.h: Likewise.
13105 2019-05-20 Martin Liska <mliska@suse.cz>
13107 * profile-count.h: Do not use full qualified
13109 * profile-count.c (profile_count::to_frequency): Likewise.
13111 2019-05-20 Martin Liska <mliska@suse.cz>
13113 * profile-count.h (enum profile_quality): Use capital letters
13114 for enum value names. Use the adjusted names.
13115 * profile-count.c: Use the adjusted names.
13117 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13119 * config/rs6000/constraints.md (define_register_constraint "wH"):
13121 (define_register_constraint "wI"): Delete.
13122 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13123 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
13124 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13125 (rs6000_init_hard_regno_mode_ok): Adjust.
13126 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
13127 resp. "d", or with "wa" as appropriate, all with "p8v".
13128 * config/rs6000/vsx.md: Ditto.
13129 * doc/md.texi (Machine Constraints): Adjust.
13131 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13133 * config/rs6000/constraints.md (define_register_constraint "wy"):
13135 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13136 RS6000_CONSTRAINT_wy.
13137 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13138 (rs6000_init_hard_regno_mode_ok): Adjust.
13139 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
13140 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
13141 (define_mode_attr Fisa): New.
13142 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
13143 * doc/md.texi (Machine Constraints): Adjust.
13145 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13147 * config/rs6000/constraints.md (define_register_constraint "wu"):
13149 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13150 RS6000_CONSTRAINT_wu.
13151 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13152 (rs6000_init_hard_regno_mode_ok): Adjust.
13153 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
13155 (define_mode_attr Fa): Delete.
13156 * config/rs6000/vsx.md: Ditto.
13157 * doc/md.texi (Machine Constraints): Adjust.
13159 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13161 * config/rs6000/constraints.md (define_register_constraint "wJ"):
13163 (define_register_constraint "wK"): Delete.
13164 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13165 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
13166 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13167 (rs6000_init_hard_regno_mode_ok): Adjust.
13168 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
13169 Replace "wK" constraint by "wH" with "p9v".
13170 * config/rs6000/vsx.md: Ditto.
13171 * doc/md.texi (Machine Constraints): Adjust.
13173 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13175 * config/rs6000/constraints.md (define_register_constraint "wb"):
13177 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13178 RS6000_CONSTRAINT_wb.
13179 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13180 (rs6000_init_hard_regno_mode_ok): Adjust.
13181 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
13182 * config/rs6000/vsx.md: Ditto.
13183 * doc/md.texi (Machine Constraints): Adjust.
13185 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13187 * config/rs6000/constraints.md (define_register_constraint "wo"):
13189 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13190 RS6000_CONSTRAINT_wo.
13191 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13192 (rs6000_init_hard_regno_mode_ok): Adjust.
13193 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
13194 * config/rs6000/altivec.md: Ditto.
13195 * doc/md.texi (Machine Constraints): Adjust.
13197 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
13199 * config/darwin-c.c (darwin_register_objc_includes): Do not
13200 prepend the sysroot when building gnu-runtime header search
13203 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
13205 * config/darwin.c (darwin_file_end): Use switch_to_section ()
13206 instead of direct output of the asm.
13208 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
13210 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
13211 argument to be type bool (was int before).
13212 (rs6000_emit_epilogue): Simplify some code. Declare some variables
13213 at first use. Use type bool for some variables. Fix a theoretical
13214 eh_return bug for svr4.
13216 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
13218 * config/rs6000/rs6000.md (isa): New attribute.
13219 (enabled): New attribute.
13221 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
13223 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
13224 assemble_start_function and assemble_end_function.
13226 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
13228 PR middle-end/89433
13229 * omp-general.c (oacc_verify_routine_clauses): Change formal
13230 parameters. Add checking if already marked with an OpenACC
13231 'routine' directive. Adjust all users.
13233 PR middle-end/89433
13234 * omp-general.c (oacc_build_routine_dims): Move some of its
13236 (oacc_verify_routine_clauses): ... this new function.
13237 * omp-general.h (oacc_verify_routine_clauses): New prototype.
13239 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
13241 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
13242 formating of picbase labels to match other ports.
13244 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
13246 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
13247 in the generated code.
13249 2019-05-16 Martin Sebor <msebor@redhat.com>
13251 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
13252 identifiers, keywords, operators, and types in diagnostics. Correct
13253 quoting, spelling, and sentence capitalization issues.
13254 (expand_builtin_atomic_is_lock_free): Same.
13255 (fold_builtin_next_arg): Same.
13256 * cfgexpand.c (expand_one_var): Same.
13257 (tree_conflicts_with_clobbers_p): Same.
13258 (expand_asm_stmt): Same.
13259 (verify_loop_structure): Same.
13260 * cgraphunit.c (process_function_and_variable_attributes): Same.
13261 * collect-utils.c (collect_execute): Same.
13262 * collect2.c (maybe_run_lto_and_relink): Same.
13263 (is_lto_object_file): Same.
13264 (scan_prog_file): Same.
13265 * convert.c (convert_to_real_1): Same.
13266 * dwarf2out.c (dwarf2out_begin_prologue): Same.
13267 * except.c (verify_eh_tree): Same.
13268 * gcc.c (execute): Same.
13269 (eval_spec_function): Same.
13270 (run_attempt): Same.
13271 (driver::set_up_specs): Same.
13272 (compare_debug_auxbase_opt_spec_function): Same.
13273 * gcov-tool.c (unlink_gcda_file): Same.
13275 (do_rewrite): Same.
13276 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
13277 * gimplify.c (gimplify_asm_expr): Same.
13278 (gimplify_adjust_omp_clauses): Same.
13279 * hsa-gen.c (gen_hsa_addr_insns): Same.
13280 (gen_hsa_insns_for_load): Same.
13281 (gen_hsa_cmp_insn_from_gimple): Same.
13282 (gen_hsa_insns_for_operation_assignment): Same.
13283 (gen_get_level): Same.
13284 (gen_hsa_alloca): Same.
13285 (omp_simple_builtin::generate): Same.
13286 (gen_hsa_atomic_for_builtin): Same.
13287 (gen_hsa_insns_for_call): Same.
13288 * input.c (dump_location_info): Same.
13289 * ipa-devirt.c (compare_virtual_tables): Same.
13290 * ira.c (ira_setup_eliminable_regset): Same.
13291 * lra-assigns.c (lra_assign): Same.
13292 * lra-constraints.c (lra_constraints): Same.
13293 * lto-streamer-in.c (lto_input_mode_table): Same.
13294 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
13295 (merge_and_complain): Same.
13296 (compile_offload_image): Same.
13297 (compile_images_for_offload_targets): Same.
13298 (debug_objcopy): Same.
13301 * opts.c (print_specific_help): Same.
13302 (parse_no_sanitize_attribute): Same.
13303 (print_help): Same.
13304 (handle_param): Same.
13305 * plugin.c (add_new_plugin): Same.
13306 (parse_plugin_arg_opt): Same.
13307 (try_init_one_plugin): Same.
13308 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
13309 operators, and types in diagnostics. Correct quoting and spelling
13311 * read-rtl-function.c (parse_edge_flag_token): Same.
13312 (function_reader::parse_enum_value): Same.
13313 * reg-stack.c (check_asm_stack_operands): Same.
13314 * regcprop.c (validate_value_data): Same.
13315 * sched-rgn.c (make_pass_sched_fusion): Same.
13316 * stmt.c (check_unique_operand_names): Same.
13317 * targhooks.c (default_target_option_pragma_parse): Same.
13318 * tlink.c (recompile_files): Same.
13319 * toplev.c (process_options): Same.
13320 (do_compile): Same.
13321 * trans-mem.c (diagnose_tm_1): Same.
13322 (ipa_tm_scan_irr_block): Same.
13323 (ipa_tm_diagnose_transaction): Same.
13324 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
13325 format a tree code name in a diagnostic.
13326 (verify_types_in_gimple_min_lval): Same.
13327 (verify_types_in_gimple_reference): Same.
13328 (verify_gimple_call): Same.
13329 (verify_gimple_assign_unary): Same.
13330 (verify_gimple_assign_binary): Same.
13331 (verify_gimple_assign_ternary): Same.
13332 (verify_gimple_assign_single): Same.
13333 (verify_gimple_switch): Same.
13334 (verify_gimple_label): Same.
13335 (verify_gimple_phi): Same.
13336 (verify_gimple_in_seq): Same.
13337 (verify_eh_throw_stmt_node): Same.
13338 (collect_subblocks): Same.
13339 (gimple_verify_flow_info): Same.
13340 (do_warn_unused_result): Same.
13341 * tree-inline.c (expand_call_inline): Same.
13342 * tree-into-ssa.c (update_ssa): Same.
13343 * tree.c (tree_int_cst_elt_check_failed): Same.
13344 (tree_vec_elt_check_failed): Same.
13345 (omp_clause_operand_check_failed): Same.
13346 (verify_type_variant): Same.
13347 (verify_type): Same.
13348 * value-prof.c (verify_histograms): Same.
13349 * varasm.c (assemble_start_function): Same.
13351 2019-05-16 Martin Sebor <msebor@redhat.com>
13353 * config/i386/i386-expand.c (get_element_number): Quote keywords
13354 and other internal names in diagnostics. Adjust other diagnostic
13355 formatting issues noted by -Wformat-diag.
13356 * config/i386/i386-features.c
13357 (ix86_mangle_function_version_assembler_name): Same.
13358 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
13359 * config/i386/i386.c (ix86_function_type_abi): Same.
13360 (ix86_function_ms_hook_prologue): Same.
13361 (classify_argument): Same.
13362 (ix86_expand_prologue): Same.
13363 (ix86_md_asm_adjust): Same.
13364 (ix86_memmodel_check): Same.
13366 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
13368 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
13369 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
13372 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
13375 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
13376 intrinsics without SSE/SSE2/SSSE3.
13377 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
13379 (*mmx_uavgv8qi3): Likewise.
13381 2019-05-17 Richard Biener <rguenther@suse.de>
13383 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
13384 VEC_PERM_EXPR as __VEC_PERM with -gimple.
13386 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
13388 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
13389 vec_sldw insn pattern.
13391 2019-05-17 Richard Biener <rguenther@suse.de>
13393 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
13395 2019-05-17 Martin Liska <mliska@suse.cz>
13398 * toplev.c (output_stack_usage): With LTO and sanitizer it
13399 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
13400 has no file location.
13402 2019-05-16 Jakub Jelinek <jakub@redhat.com>
13405 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
13406 sz0 is equal to sz1, instead return false in that case.
13408 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
13409 has non-constant expression, force sctx.lane and use two
13410 argument IFN_GOMP_SIMD_LANE instead of single argument.
13411 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
13412 two argument IFN_GOMP_SIMD_LANE without lhs.
13413 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
13415 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
13417 (LOOP_REQUIRES_VERSIONING): Or in
13418 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
13419 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13421 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
13422 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
13423 from simd if clause if needed.
13425 2019-05-16 Richard Biener <rguenther@suse.de>
13427 * tree-affine.c (expr_to_aff_combination): New function split
13429 (tree_to_aff_combination): ... here.
13430 (aff_combination_expand): Avoid building a GENERIC tree.
13432 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
13434 * cgraphunit.c (cgraph_node::expand_thunk): Remove
13435 assemble_start_function and assemble_end_function calls.
13436 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
13437 assemble_start_function and assemble_end_function.
13438 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
13439 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
13440 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
13441 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
13442 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
13443 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
13444 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
13445 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
13446 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
13447 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
13448 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
13449 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
13451 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
13452 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
13453 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
13454 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
13455 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
13456 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
13457 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
13458 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
13459 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
13460 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
13461 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13462 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
13463 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
13464 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
13466 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
13467 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
13468 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
13470 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
13472 * tree-ssa-alias.c (alias_stats): Add
13473 aliasing_component_refs_p_may_alias and
13474 aliasing_component_refs_p_no_alias.
13475 (dump_alias_stats): Print aliasing_component_refs_p stats.
13476 (aliasing_component_refs_p): Update stats.
13478 2019-05-16 Martin Liska <mliska@suse.cz>
13481 * multiple_target.c (expand_target_clones): Do not allow
13482 target_clones being used with a symbol that is an alias.
13484 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
13486 PR tree-optimization/90394
13487 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
13488 positives rather than ICE for cases where (code2 == NE_EXPR
13489 && code1 == BIT_AND_EXPR).
13491 2019-05-16 Jakub Jelinek <jakub@redhat.com>
13494 * tree-core.h (struct tree_decl_common): Document
13495 decl_nonshareable_flag for PARM_DECLs.
13496 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
13497 * calls.c (expand_call): Don't try tail call if caller
13498 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
13499 passed on the stack and callee needs to pass any arguments on the
13501 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
13502 else if instead of series of mutually exclusive ifs. Handle
13503 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
13504 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
13506 * lto-streamer.h (LTO_major_version): Bump to 9.
13508 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
13510 PR tree-optimization/90106
13511 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
13512 new parameter as new internal function call, also move it to new
13514 (use_internal_fn): Pass internal function call to
13515 shrink_wrap_one_built_in_call_with_conds.
13517 2019-05-15 Jakub Jelinek <jakub@redhat.com>
13519 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
13521 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
13522 safelen_int and set loop->dont_vectorize.
13524 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13527 * config/i386/i386-builtin.def: Enable MMX intrinsics with
13529 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
13531 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
13532 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
13533 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
13536 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13539 * config/i386/mmx.md (*vec_dupv2sf): Changed to
13540 define_insn_and_split to support SSE emulation.
13541 (*vec_extractv2sf_0): Likewise.
13542 (*vec_extractv2sf_1): Likewise.
13543 (*vec_extractv2si_0): Likewise.
13544 (*vec_extractv2si_1): Likewise.
13545 (*vec_extractv2si_zext_mem): Likewise.
13546 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
13547 (vec_extractv2sf_1 splitter): Likewise.
13548 (vec_extractv2sfsf): Likewise.
13549 (vec_setv2si): Likewise.
13550 (vec_extractv2si_1 splitter): Likewise.
13551 (vec_extractv2sisi): Likewise.
13552 (vec_setv4hi): Likewise.
13553 (vec_extractv4hihi): Likewise.
13554 (vec_setv8qi): Likewise.
13555 (vec_extractv8qiqi): Likewise.
13556 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
13557 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
13558 (vec_extractv2sisi): Likewise.
13559 (vec_extractv4hihi): Likewise.
13560 (vec_extractv8qiqi): Likewise.
13561 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
13562 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
13563 (vec_initv2sisi): Likewise.
13564 (vec_initv4hihi): Likewise.
13565 (vec_initv8qiqi): Likewise.
13566 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
13567 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
13568 (vec_setv4hi): Likewise.
13569 (vec_setv8qi): Likewise.
13571 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13574 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
13575 TARGET_MMX_WITH_SSE.
13576 (MMXMODE:*mov<mode>_internal): Likewise.
13577 (MMXMODE:movmisalign<mode>): Likewise.
13579 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
13582 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
13583 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
13584 (sse2_cvtpd2pi): Ditto.
13585 (sse2_cvttpd2pi): Ditto.
13586 (*vec_concatv2sf_sse4_1): Ditto.
13587 (*vec_concatv2sf_sse): Ditto.
13588 (*vec_concatv2si_sse4_1): Ditto.
13589 (*vec_concatv2si): Ditto.
13590 (*vec_concatv4si_0): Ditto.
13591 (*vec_concatv2di_0): Ditto.
13593 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13596 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
13598 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13601 * config/i386/sse.md (ssse3_palignrdi): Changed to
13602 define_insn_and_split to support SSE emulation.
13604 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13607 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
13609 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13612 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
13613 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
13616 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13619 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
13620 or TARGET_MMX_WITH_SSE.
13621 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
13623 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13626 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
13628 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13631 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
13632 Changed to define_insn_and_split to support SSE emulation.
13634 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13637 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
13638 Changed to define_insn_and_split to support SSE emulation.
13640 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13643 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
13644 (*mmx_<emms>): This.
13645 (mmx_<emms>): New expander.
13647 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13650 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
13652 (*sse2_umulv1siv1di3): Add SSE2 emulation.
13654 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13657 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
13659 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13662 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
13664 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13667 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
13668 TARGET_MMX_WITH_SSE.
13669 (*mmx_uavgv4hi3): Add SSE emulation.
13671 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13674 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
13675 and TARGET_MMX_WITH_SSE.
13676 (*mmx_uavgv8qi3): Add SSE emulation.
13678 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13681 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
13682 maskmovdqu for __MMX_WITH_SSE__.
13684 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13687 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
13688 TARGET_MMX and TARGET_MMX_WITH_SSE.
13689 (*mmx_umulv4hi3_highpart): Add SSE emulation.
13691 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13694 * config/i386/mmx.md (mmx_pmovmskb): Changed to
13695 define_insn_and_split to support SSE emulation.
13697 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13700 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
13701 and TARGET_MMX_WITH_SSE.
13702 (mmx_<code>v8qi3): Likewise.
13703 (smaxmin:<code>v4hi3): New.
13704 (umaxmin:<code>v8qi3): Likewise.
13705 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
13706 (umaxmin:*mmx_<code>v8qi3): Likewise.
13708 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13711 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
13712 TARGET_MMX_WITH_SSE.
13713 (*mmx_pinsrw): Add SSE emulation.
13715 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13718 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
13720 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13723 * config/i386/sse.md (sse_cvtpi2ps): Changed to
13724 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
13727 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13730 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
13731 (sse_cvttps2pi): Likewise.
13733 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13736 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
13737 TARGET_MMX_WITH_SSE.
13738 (mmx_pshufw_1): Add SSE emulation.
13739 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
13740 TARGET_MMX_WITH_SSE to support SSE emulation.
13742 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13745 * config/i386/constraints.md (Yw): New constraint.
13746 * config/i386/mmx.md (*vec_dupv2si): Changed to
13747 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
13748 support SSE emulation.
13750 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13753 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
13754 TARGET_MMX_WITH_SSE.
13755 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
13757 (mmx_gt<mode>3): Likewise.
13759 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13762 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
13763 TARGET_MMX_WITH_SSE. Add SSE support.
13765 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13768 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
13769 TARGET_MMX_WITH_SSE.
13770 (any_logic:<code><mode>3): New.
13771 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
13774 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13777 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
13778 TARGET_MMX_WITH_SSE. Add SSE emulation.
13779 (mmx_<shift_insn><mode>3): Likewise.
13780 (ashr<mode>3): New.
13781 (<shift_insn><mode>3): Likewise.
13783 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13786 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
13787 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
13789 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13792 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
13793 TARGET_MMX_WITH_SSE.
13794 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
13797 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13800 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
13801 TARGET_MMX_WITH_SSE.
13803 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
13806 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13809 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
13810 (plusminus:mmx_<plusminus_insn><mode>3): Check
13811 TARGET_MMX_WITH_SSE.
13812 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
13813 (<plusminus_insn><mode>3): New.
13814 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
13815 (*mmx_<plusminus_insn><mode>3): Likewise.
13817 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13820 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
13821 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
13823 * config/i386/mmx.m (mmx_punpckhbw): Changed to
13824 define_insn_and_split to support SSE emulation.
13825 (mmx_punpcklbw): Likewise.
13826 (mmx_punpckhwd): Likewise.
13827 (mmx_punpcklwd): Likewise.
13828 (mmx_punpckhdq): Likewise.
13829 (mmx_punpckldq): Likewise.
13831 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13832 Uros Bizjak <ubizjak@gmail.com>
13835 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
13837 (ix86_split_mmx_pack): Likewise.
13838 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
13840 (ix86_split_mmx_pack): Likewise.
13841 * config/i386/i386.md (mmx_isa): New.
13842 (enabled): Also check mmx_isa.
13843 * config/i386/mmx.md (any_s_truncate): New code iterator.
13844 (s_trunsuffix): New code attr.
13845 (mmx_packsswb): Removed.
13846 (mmx_packssdw): Likewise.
13847 (mmx_packuswb): Likewise.
13848 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
13849 MMX packsswb/packuswb with SSE2.
13850 (mmx_packssdw): Likewise.
13851 * config/i386/predicates.md (register_mmxmem_operand): New.
13853 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13856 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13857 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
13858 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
13859 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
13860 (ix86_vector_mode_supported_p): Likewise.
13861 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
13863 2019-05-15 Martin Liska <mliska@suse.cz>
13865 PR middle-end/90478
13866 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
13867 Check for overflow.
13869 2019-05-15 Richard Biener <rguenther@suse.de>
13871 * tree-into-ssa.c (pass_build_ssa::execute): Run
13872 update_address_taken before going into SSA.
13874 2019-05-15 Richard Biener <rguenther@suse.de>
13876 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
13877 as __BIT_FIELD_REF with type with -gimple.
13879 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
13881 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
13882 semantically equivalent branches (left over after prior refactorings).
13884 2019-05-15 Richard Biener <rguenther@suse.de>
13886 PR tree-optimization/88828
13887 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
13890 2019-05-14 Richard Biener <rguenther@suse.de>
13892 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
13893 as __VIEW_CONVERT with -gimple.
13895 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13898 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
13901 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
13903 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
13904 define_split to become a define_insn_and_split.
13906 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
13908 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
13910 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
13911 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
13912 (sibcall_epilogue): Adjust.
13913 (epilogue): Adjust.
13915 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13917 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
13918 to unsupported ones.
13919 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
13920 * config.host: Likewise.
13921 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
13922 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
13923 __svr4__]: Remove "brand" fallback.
13924 [!KSTAT_DATA_STRING]: Remove.
13925 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
13927 (comdat_group): Likewise.
13928 (set_have_as_tls): Likewise.
13929 (gcc_cv_target_dl_iterate_phdr): Likewise.
13930 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
13931 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
13932 * configure: Regenerate.
13933 * doc/install.texi: Simplify Solaris target triplets.
13934 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
13935 (Specific, *-*-solaris2*): Document Solaris 10 removal.
13936 Remove Solaris 10 references.
13937 Remove obsolete Solaris bug reference.
13938 (Specific, sparc-sun-solaris2.10): Remove.
13940 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
13942 * config/i386/i386.md (any_div): New code iterator.
13943 (paired_mod): New code attribute.
13944 (sgnprefix): Handle DIV and UDIV RTXes.
13946 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
13947 and udivmod<mode>4 patterns using any_div code iterator.
13948 (divmod splitters): Macroize splitters using any_div code iterator.
13949 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
13950 (*udivmodsi4_pow2_zext_2): Ditto.
13951 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
13952 and *udivmod<mode>4_noext patterns using any_div code iterator.
13953 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
13954 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
13955 patterns using any_div code iterator.
13956 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
13957 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
13958 patterns using any_div code iterator.
13959 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
13960 udivmodhiqi3 patterns using any_extend code iterator.
13962 2019-05-14 Richard Biener <rguenther@suse.de>
13963 H.J. Lu <hongjiu.lu@intel.com>
13965 PR tree-optimization/88828
13966 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
13967 permuting in a single non-constant element not extracted
13970 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
13972 * internal-fn.def (SIGNBIT): New.
13973 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
13975 (signbitv4sf2): Likewise.
13977 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
13980 * config/mips/mips.c (mips_split_move): Skip forward SRC into
13981 next insn when the SRC reg is dead.
13983 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
13985 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
13986 (alloc_cand_and_find_basis): Ditto.
13987 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
13988 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
13989 (create_add_imm_cand, slsr_process_cast): Ditto.
13990 (slsr_process_copy, replace_mult_candidate): Ditto.
13991 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
13992 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
13993 (pass_strength_reduction::execute): Init the first NULL element.
13995 2019-05-13 Nathan Sidwell <nathan@acm.org>
13997 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
13998 (run_attempt): Reformat line break.
14000 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
14003 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
14004 data registers in sibcall epilogues.
14005 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
14007 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
14010 * configure.ac (--enable-frame-pointer):
14011 Disable by default for cygwin and mingw.
14012 * configure: Regenerate.
14014 2019-05-13 Nathan Sidwell <nathan@acm.org>
14016 * dwarf2out.c (breakout_comdat_types): Move comment to correct
14018 (const_ok_for_output_1): Balance parens around #if/#else/#endif
14019 (gen_member_die): Move abstract origin check earlier. Only VARs
14020 can be static_inline_p. Simplify splicing control flow.
14022 2019-05-13 Richard Biener <rguenther@suse.de>
14024 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
14026 (vect_build_slp_tree_1): Likewise.
14028 2019-05-13 Richard Biener <rguenther@suse.de>
14030 PR tree-optimization/90402
14031 * tree-if-conv.c (tree_if_conversion): Value number only
14032 the loop body by making the latch an exit of the region
14034 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
14036 (do_rpo_vn): Deal with multiple edges into the entry block
14037 that are not backedges inside the region by skipping PHIs
14038 of the entry block.
14040 2019-05-13 Richard Biener <rguenther@suse.de>
14042 PR tree-optimization/90316
14043 * tree-ssa-pre.c (insert_aux): Fold into ...
14044 (insert): ... this function. Use a RPO walk to reduce the
14045 number of required iterations.
14047 2019-05-13 Martin Liska <mliska@suse.cz>
14049 PR tree-optimization/90416
14050 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
14051 string instead of passing the second part as va_arg argument.
14053 2019-05-13 Martin Liska <mliska@suse.cz>
14055 PR gcov-profile/90380
14056 * gcov.c (handle_cycle): Do not support zero cycle count,
14057 it should not be possible.
14058 (path_contains_zero_cycle_arc): New function.
14059 (circuit): Ignore zero cycle arc counts.
14061 2019-05-13 Martin Liska <mliska@suse.cz>
14063 PR gcov-profile/90380
14064 * gcov.c (enum loop_type): Remove the enum and
14066 (handle_cycle): Assert that we should not reach
14068 (circuit): Use loop_found instead of a tri-state loop_type.
14069 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
14072 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
14075 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
14076 (ix86_output_indirect_branch_via_reg): Use output mechanism
14077 accounting for __USER_LABEL_PREFIX__.
14078 (ix86_output_indirect_branch_via_push): Likewise.
14079 (ix86_output_function_return): Likewise.
14080 (ix86_output_indirect_function_return): Likewise.
14082 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
14084 * doc/md.texi: Document use of code attributes in rtx patterns.
14085 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
14086 * read-rtl.c (find_code): Split out search loops into...
14087 (maybe_find_code): ...this new function.
14088 (check_code_iterator): Make the error message more informative.
14089 (check_code_attribute): New function.
14090 (rtx_reader::rtx_alloc_for_name): Likewise.
14091 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
14092 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
14093 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
14094 <max_opp> directly as an rtx code instead of via a match_operator.
14095 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
14096 (<su>abd<mode>_3): Update accordingly.
14098 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
14100 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
14101 is given, print the state of the EH "save world" computation for
14104 2019-05-11 Jakub Jelinek <jakub@redhat.com>
14107 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
14108 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
14110 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
14112 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
14113 Use pinsrd for TARGET_SSE4_1.
14114 * config/i386/sse.md (movdi_to_sse): Ditto.
14116 2019-05-10 Richard Biener <rguenther@suse.de>
14118 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
14119 (do_rpo_vn): Initialize next_value_id.
14121 2019-05-10 Martin Liska <mliska@suse.cz>
14123 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
14126 2019-05-10 Jakub Jelinek <jakub@redhat.com>
14128 PR tree-optimization/90385
14129 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
14130 arguments of the exit phis.
14133 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
14134 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
14136 (copy_tree_body_r): Likewise.
14137 (copy_fn): Set id.do_not_fold to true.
14139 2019-05-10 Martin Liska <mliska@suse.cz>
14141 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
14142 Reapply changes from r269790.
14144 2019-05-10 Martin Liska <mliska@suse.cz>
14146 PR middle-end/90340
14147 * doc/invoke.texi: New params.
14148 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
14149 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
14150 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
14152 * tree-switch-conversion.h (struct jump_table_cluster):
14155 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
14157 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
14159 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
14161 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
14163 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
14165 PR rtl-optimization/88879
14166 * sel-sched.c (sel_target_adjust_priority): Remove assert.
14168 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
14171 * config/arm/arm.c (callee_saved_reg_p): Move before
14172 thumb_find_work_register.
14173 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
14174 thumb_find_work_register. Only call df_get_live_out once.
14175 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
14176 (thumb_find_work_register): Use
14177 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
14178 algorithms to locate a spare call clobbered reg.
14180 2019-05-09 Martin Liska <mliska@suse.cz>
14182 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
14183 and MAX_EXPR in GIMPLE FE format.
14185 2019-05-09 Martin Liska <mliska@suse.cz>
14187 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
14188 * gimple-pretty-print.c (dump_gimple_bb_header):
14190 (pp_cfg_jump): Dump edge probability.
14191 * profile-count.c (profile_quality_as_string): Simplify
14192 with a static array.
14193 (parse_profile_quality): New function.
14194 (profile_count::dump): Simplify with a static array.
14195 (profile_count::from_gcov_type): Add new argument.
14196 * profile-count.h (parse_profile_quality): Likewise.
14197 * predict.h (set_hot_bb_threshold): New.
14198 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
14200 * predict.c (get_hot_bb_threshold): Set from the new param.
14201 (set_hot_bb_threshold): New.
14203 2019-05-09 Richard Biener <rguenther@suse.de>
14205 PR tree-optimization/90395
14206 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
14207 rewrite vector stores that throw internally.
14209 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
14211 * cif-code.def (CHKP): Remove.
14214 * configure.ac (--enable-frame-pointer): Disable by default for
14216 * configure: Regenerate.
14218 2019-05-09 Alan Modra <amodra@gmail.com>
14221 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
14222 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
14223 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
14224 cost for general <-> vsx when direct moves are available.
14225 Cost union classes at minimal cost for any reg in the class.
14226 Correct calculation for moves between vsx, float, and altivec.
14227 Don't return a low cost for moves between special regs. Don't
14228 use hard coded register numbers.
14229 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
14230 (rs6000_ira_change_pseudo_allocno_class): New function.
14231 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
14232 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
14234 (movsi_internal1): Don't disparage vector alternatives.
14235 (mov<mode>_internal): Likewise, excepting alternative that
14237 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
14238 we <- b alternative.
14240 2019-05-08 Jakub Jelinek <jakub@redhat.com>
14243 PR tree-optimization/89060
14244 * tree-ssa-live.h (live_vars_map): New typedef.
14245 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
14246 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
14247 (struct compute_live_vars_data): New type.
14248 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
14249 live_vars_at_stmt, destroy_live_vars): New functions.
14250 * tree-tailcall.c: Include tree-ssa-live.h.
14251 (live_vars, live_vars_vec): New global variables.
14252 (find_tail_calls): Perform variable life analysis before punting.
14253 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
14254 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
14256 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
14257 Perform variable life analysis to select variables that really need
14259 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
14260 instead set id->eh_landing_pad_dest and assert it is the same.
14261 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
14263 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
14264 Richard Earnshaw <rearnsha@arm.com>
14267 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
14269 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
14270 (thumb1_compute_save_core_reg_mask): Don't force a spare work
14271 register if both the epilogue and prologue can use call-clobbered
14273 (thumb1_unexpanded_epilogue): Use
14274 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
14275 picking temporaries for restoring high regs to match that of the
14276 prologue where possible.
14277 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
14278 the list of work registers. Detect if the return address is still live
14279 at the end of the prologue and avoid using it for a work register if so.
14280 If the return address is not live, add LR to the list of pushable regs
14281 after the first pass.
14283 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
14285 PR tree-optimization/90078
14286 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
14287 (INFTY): Increase the value for infinite cost.
14288 (struct comp_cost): Promote type of members to int64_t.
14289 (infinite_cost): Don't set complexity in initialization.
14290 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
14291 overflows to infinite_cost.
14292 (adjust_setup_cost): Promote type of parameter and cost computation
14294 (struct ainc_cost_data, struct iv_ca): Promote type of member to
14296 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
14297 cost computation to int64_t.
14298 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
14299 int64_t's format specifier in dump.
14301 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
14303 PR tree-optimization/90240
14304 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
14305 with respect to scaling factor pre-computed for each basic block.
14306 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
14307 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
14308 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
14309 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
14310 live range for array of loop's basic blocks. Cleanup aux field of
14311 loop's basic blocks.
14313 2019-05-08 Jakub Jelinek <jakub@redhat.com>
14315 PR tree-optimization/90356
14316 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
14318 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
14320 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
14321 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
14322 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
14323 (ix86_handle_option): Handle -mavx512bf16.
14324 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
14326 * config/i386/avx512bf16vlintrin.h: New.
14327 * config/i386/avx512bf16intrin.h: New.
14328 * config/i386/cpuid.h (bit_AVX512BF16): New.
14329 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
14330 * config/i386/i386-builtin-types.def: Add new types.
14331 * config/i386/i386-builtin.def: Add new builtins.
14332 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14334 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
14335 (ix86_option_override_internal): Handle BF16.
14336 (ix86_valid_target_attribute_inner_p): Ditto.
14337 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
14338 * config/i386/i386-builtin.c (enum processor_features): Add
14340 (static const _isa_names_table isa_names_table): Ditto.
14341 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
14342 (PTA_AVX512BF16): Ditto.
14343 * config/i386/i386.opt: Add -mavx512bf16.
14344 * config/i386/immintrin.h: Include avx512bf16intrin.h
14345 and avx512bf16vlintrin.h.
14346 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
14347 avx512f_cvtneps2bf16_<mode><mask_name>,
14348 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
14349 * config/i386/subst.md (mask_half): Add new subst.
14350 * doc/invoke.texi: Document -mavx512bf16.
14352 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
14354 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
14355 Delete declaration.
14356 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
14357 (rs6000_debug_legitimize_reload_address): Delete.
14358 (rs6000_legitimize_reload_address_ptr): Delete.
14359 (rs6000_option_override_internal): Adjust.
14360 (mem_operand_gpr): Adjust comment.
14361 (legitimate_lo_sum_address_p): Ditto.
14362 (rs6000_legitimize_reload_address): Delete.
14363 (rs6000_debug_legitimize_reload_address): Delete.
14364 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
14366 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
14369 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14370 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
14371 to compute vector element selector for both constant and variable
14374 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
14376 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
14377 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
14378 ashrdi3_cvt using SWI48 mode iterator.
14380 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14382 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
14383 (aarch64_<su>abd<mode>_3): Likewise.
14384 (*aarch64_<su>abd<mode>_3): New define_insn.
14385 (<sur>sad<vsi2qi>): New define_expand.
14386 * config/aarch64/iterators.md: Added MAX_OPP attribute.
14387 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
14388 (build_vect_cond_expr): Likewise.
14390 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
14392 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
14393 clobbers outside of accessible_reg_set.
14394 * config/i386/i386.c (ix86_conditional_register_usage):
14395 Disable register sets by clearing corresponding bits in
14396 accessible_reg_set. Do not set corresponding bits in fixed_regs,
14397 call_used_regs and don't clear corresponding reg_names array members.
14399 2019-05-07 Richard Biener <rguenther@suse.de>
14401 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
14402 not specified still compute a comp_vectype for invariant
14405 2019-05-07 Richard Biener <rguenther@suse.de>
14407 PR tree-optimization/90316
14408 * tree-ssa-pre.c (translate_vuse_through_block): When
14409 same_valid is NULL do not bother to search for a virtual
14411 (phi_translate_1): When operands changed we cannot keep
14412 the same value-number so do not bother to ask whether
14413 that's possible from translate_vuse_through_block.
14415 2019-05-07 Martin Liska <mliska@suse.cz>
14417 * bitmap.c (bitmap_register): Come up with
14418 alloc_descriptor_max_uid and assign it for
14420 (register_overhead): Use get_descriptor as
14422 (release_overhead): New.
14423 (bitmap_elem_to_freelist): Call it.
14424 (bitmap_elt_clear_from): Likewise.
14425 (bitmap_obstack_free): Likewise.
14426 (bitmap_move): Sensitively release memory.
14427 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
14428 (bitmap_initialize): Initialize alloc_descriptor to zero.
14429 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
14431 2019-05-07 Richard Biener <rguenther@suse.de>
14433 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
14434 we build a SLP node. Remove max_size and limiting.
14435 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
14437 2019-05-07 Richard Biener <rguenther@suse.de>
14439 PR tree-optimization/90316
14440 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
14441 limit by reference.
14442 (walk_non_aliased_vuses): Take walking limit argument.
14443 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
14444 walking if it is reached instead of just counting.
14445 (get_continuation_for_phi): Likewise.
14446 (walk_non_aliased_vuses): Likewise, instead of leaving counter
14447 limiting to the callback.
14448 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
14449 (vn_reference_lookup_3): Likewise.
14450 (vn_reference_lookup_pieces): Likewise.
14451 (vn_reference_lookup): Likewise.
14452 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
14453 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
14454 (avail_exprs_stack::lookup_avail_expr): Likewise.
14456 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
14458 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
14459 for comparaible types in the second direction even if first one
14460 hits incomparable type.
14462 2019-05-07 Richard Biener <rguenther@suse.de>
14465 * lto-wrapper.c (debug_objcopy): Use the original filename
14466 including archive offset for the filename used for -save-temps.
14468 2019-05-07 Li Jia He <helijia@linux.ibm.com>
14470 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
14473 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
14474 Hongtao Liu <hongtao.liu@intel.com>
14478 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
14479 Modified, original implementation isn't correct.
14481 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14483 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
14484 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
14485 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
14486 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
14487 (FRAME_POINTER_REGNUM): Change numbering.
14488 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
14489 (alt_reg_names): Adjust.
14490 (rs6000_conditional_register_usage): Don't mark hard register 64 as
14492 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
14493 (DWARF_FRAME_REGISTERS): Delete.
14494 (DWARF2_FRAME_REG_OUT): Fix whitespace.
14495 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
14497 (REG_ALLOC_ORDER): Adjust.
14498 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
14499 (REG_CLASS_CONTENTS): Adjust.
14500 (RETURN_ADDR_RTX): Change comment.
14501 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
14503 (REGISTER_NAMES): Adjust.
14504 (ADDITIONAL_REGISTER_NAMES): Adjust.
14505 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
14507 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14509 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
14511 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
14512 (DWARF_FRAME_REGISTERS): Adjust.
14513 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
14515 (REG_ALLOC_ORDER): Adjust.
14516 (enum reg_class): Delete SPR_REGS.
14517 (REG_CLASS_NAMES): Delete SPR_REGS.
14518 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
14519 (REGISTER_NAMES): Adjust.
14520 (ADDITIONAL_REGISTER_NAMES): Adjust.
14521 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
14522 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
14523 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
14524 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
14525 (htm_spr_regno): Delete.
14526 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
14528 (rs6000_dbx_register_number): Adjust.
14530 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14532 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
14534 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14536 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
14537 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
14539 2019-05-06 Jakub Jelinek <jakub@redhat.com>
14541 PR tree-optimization/88709
14542 PR tree-optimization/90271
14543 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
14544 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
14545 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
14547 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
14548 of the store merging group is larger than
14549 PARAM_STORE_MERGING_MAX_SIZE parameter.
14550 (split_group): Add bzero_first argument. If set, always emit first
14551 the first store which must be = {} of the whole area and then for the
14552 rest of the stores consider all zero bytes as paddings.
14553 (imm_store_chain_info::output_merged_store): Check if first store
14554 is = {} of the whole area and if yes, determine which setting of
14555 bzero_first for split_group gives smaller number of stores. Adjust
14556 split_group callers.
14557 (lhs_valid_for_store_merging_p): Allow decls.
14558 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
14560 (pass_store_merging::process_store): Likewise.
14562 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
14565 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
14566 handling of V1TImode.
14568 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
14571 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
14572 and enable_frame_pointer ...
14573 * configure.ac: ... here. Update help strings for
14574 --enable-frame-pointer.
14575 * configure: Regenerate.
14576 * config/i386/i386-options.c (ix86_option_override_internal): Remove
14577 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
14578 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
14579 (USE_X86_64_FRAME_POINTER): Ditto.
14581 2019-05-06 Martin Liska <mliska@suse.cz>
14583 * config.gcc: Append to target_gtfiles and fix indentation.
14585 2019-05-06 Richard Biener <rguenther@suse.de>
14587 PR tree-optimization/90358
14588 * tree-vect-stmts.c (get_group_load_store_type): Properly
14589 detect unused upper half of load.
14590 (vectorizable_load): Likewise.
14592 2019-05-06 Richard Biener <rguenther@suse.de>
14594 PR tree-optimization/88828
14595 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
14596 (simplify_vector_constructor): ...here. Handle constants in
14599 2019-05-06 Richard Biener <rguenther@suse.de>
14601 PR tree-optimization/90328
14602 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
14603 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
14604 is valid in the loop nest before using it.
14605 (initialize_data_dependence_relation): Adjust.
14606 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
14607 loop as loop-nest to dr_may_alias_p.
14609 2019-05-06 Richard Biener <rguenther@suse.de>
14611 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
14613 2019-05-06 Richard Biener <rguenther@suse.de>
14615 PR tree-optimization/90316
14616 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
14617 compute target on demand.
14618 (get_continuation_for_phi): Remove code walking stmts to
14619 get to a target virtual operand which could end up being
14622 2019-05-06 Martin Liska <mliska@suse.cz>
14625 * config/i386/i386-options.c (ix86_option_override_internal): Error only
14626 when -mabi is selected to a non-default version.
14628 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
14629 Martin Liska <mliska@suse.cz>
14631 * Makefile.in: Add lto-dump.texi.
14632 * cgraph.h: Add new functions get_visibility_string and
14633 get_symtab_type_string.
14634 * doc/gcc.texi: Include lto-dump section.
14635 * doc/lto-dump.texi: New file.
14636 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
14637 (parse_dump_option): Factor out this function.
14638 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
14639 (parse_dump_option): Export the function.
14640 * symtab.c (symtab_node::get_visibility_string): New function.
14641 (symtab_node::get_symtab_type_string): Likewise.
14643 2019-05-06 Martin Liska <mliska@suse.cz>
14645 * config/i386/i386-builtins.c: New file.
14646 * config/i386/i386-builtins.h: New file.
14647 * config/i386/i386-expand.c: New file.
14648 * config/i386/i386-expand.h: New file.
14649 * config/i386/i386-features.c: New file.
14650 * config/i386/i386-features.h: New file.
14651 * config/i386/i386-options.c: New file.
14652 * config/i386/i386-options.h: New file.
14653 * config.gcc: Add new files into extra_objs and
14655 * config/i386/i386.c: Split content of the file
14656 into newly introduced files.
14657 * config/i386/i386.h: Declare common variables
14659 * config/i386/t-i386: Define dependencies for new files.
14661 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
14664 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
14665 Restrict 'all' variant to 32-bit configurations.
14666 (unaligned_loadhiu): Likewise.
14667 (unaligned_storehi): Likewise.
14668 (unaligned_storesi): Likewise.
14669 (unaligned_loadhis): Disable when compiling for thumb1.
14671 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
14673 PR tree-optimization/90269
14674 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
14677 2019-05-03 Martin Liska <mliska@suse.cz>
14679 * hash-map.h: Add is_empty function.
14680 * hash-set.h: Likewise.
14681 * hash-table.h: Likewise.
14682 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
14683 elements () == 0 (and similar usages).
14684 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
14685 * gimplify.c (gimplify_bind_expr): Likewise.
14686 (gimplify_switch_expr): Likewise.
14687 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
14688 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
14689 * postreload-gcse.c (dump_hash_table): Likewise.
14690 (gcse_after_reload_main): Likewise.
14691 * predict.c (combine_predictions_for_bb): Likewise.
14692 * tree-parloops.c (reduction_phi): Likewise.
14693 (separate_decls_in_region): Likewise.
14694 (transform_to_exit_first_loop): Likewise.
14695 (gen_parallel_loop): Likewise.
14696 (gather_scalar_reductions): Likewise.
14697 (try_create_reduction_list): Likewise.
14698 * var-tracking.c (dump_vars): Likewise.
14699 (emit_notes_for_changes): Likewise.
14700 (vt_emit_notes): Likewise.
14702 2019-05-03 Richard Biener <rguenther@suse.de>
14704 PR tree-optimization/90316
14705 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
14708 2019-05-03 Richard Biener <rguenther@suse.de>
14710 * tree-vect-stmts.c (get_group_load_store_type): Avoid
14711 peeling for gaps by loading only lower halves of vectors
14713 (vectorizable_load): Likewise.
14715 2019-05-03 Richard Biener <rguenther@suse.de>
14717 PR middle-end/89518
14718 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
14720 2019-05-03 Richard Biener <rguenther@suse.de>
14722 PR middle-end/87314
14723 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
14724 Handle STRING_CST vs DECL or STRING_CST.
14726 2019-05-03 Richard Biener <rguenther@suse.de>
14728 PR tree-optimization/88963
14729 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
14730 vector loads feeding only BIT_FIELD_REFs to component
14731 loads. Rewrite stores fed by CONSTRUCTORs to component
14734 2019-05-03 Jakub Jelinek <jakub@redhat.com>
14736 * opts.h (finish_options): Remove lang_mask argument.
14737 (print_help, help_option_argument): Declare.
14738 * opts.c (print_help): Remove forward declaration, no longer static.
14739 (finish_options): Remove lang_mask argument, don't call print_help
14741 * opts-global.c (decode_options): Adjust finish_option caller, call
14744 PR tree-optimization/90303
14745 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
14746 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
14748 2019-05-03 Richard Biener <rguenther@suse.de>
14750 PR tree-optimization/89698
14751 * gimple-fold.c (canonicalize_constructor_val): Early out
14752 for constants, handle unfolded INTEGER_CSTs as they appear in
14753 C++ virtual table ctors.
14755 2019-05-03 Richard Biener <rguenther@suse.de>
14757 * passes.c (execute_function_todo): Remove dead code.
14759 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
14761 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
14762 the internal register number, for any "real" register.
14764 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
14766 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
14767 correct numbers for TFHAR, TFIAR, TEXASR.
14769 2019-05-02 Richard Biener <rguenther@suse.de>
14771 PR tree-optimization/89653
14772 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
14773 update-address-taken before the pass.
14774 * passes.def (pass_tree_loop_init): Put comment before it.
14776 2019-05-02 Richard Biener <rguenther@suse.de>
14778 PR tree-optimization/89509
14779 * tree-ssa-structalias.c (compute_dependence_clique): Look
14780 at the first subvar when determining whether it is restrict.
14782 2019-05-02 Richard Biener <rguenther@suse.de>
14784 PR tree-optimization/90273
14785 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
14786 useless debug stmts.
14788 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14790 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
14792 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
14794 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
14795 VEC_COND_EXPR be inserted to emulate a conditional internal function.
14796 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
14797 (vectorizable_reduction): Use the functions above to vectorize in a
14798 fully masked loop codes that don't have a conditional internal
14801 2019-05-02 Martin Liska <mliska@suse.cz>
14803 * cgraphclones.c: Call valid_attribute_p with 1 for
14805 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
14806 it's for target attribute.
14807 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
14808 Add new boolean argument.
14809 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
14811 (ix86_valid_target_attribute_tree): Pass target_clone_attr
14812 to ix86_valid_target_attribute_inner_p.
14813 (ix86_valid_target_attribute_p): Pass flags argument to
14814 ix86_valid_target_attribute_inner_p.
14815 (get_builtin_code_for_version): Use 0 as it's target attribute.
14817 2019-05-02 Martin Liska <mliska@suse.cz>
14819 * gcc.c (process_command): Add dummy file only
14821 * opts-global.c (decode_options): Pass lang_mask.
14822 * opts.c (print_help): New function.
14823 (finish_options): Print --help if help_option_argument
14825 (common_handle_option): Factor out content of OPT__help_
14827 * opts.h (finish_options): Add new argument.
14829 2019-05-02 Martin Liska <mliska@suse.cz>
14832 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
14833 With -minline-all-stringops use inline expansion using 4B loop.
14834 * doc/invoke.texi: Document the change of
14835 -minline-all-stringops.
14837 2019-05-01 Jeff Law <law@redhat.com>
14839 PR tree-optimization/88797
14840 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
14841 PHI feeds a conditional on the RHS of an assignment.
14843 2019-04-30 Andrew Waterman <andrew@sifive.com>
14844 Jim Wilson <jimw@sifive.com>
14846 * config/riscv/constraints.md (L): New.
14847 * config/riscv/predicates.md (lui_operand): New.
14848 (sfb_alu_operand): New.
14849 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
14850 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
14851 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
14852 * config/riscv/risc.md (type): Add sfb_alu.
14853 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
14854 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
14855 (branch_zero<mode>): Delete.
14856 (mov<mode>cc): New.
14857 (mov<GPR:mode><X:mode>cc): Likewise.
14858 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
14860 2019-04-30 Nathan Sidwell <nathan@acm.org>
14862 * tree.h (MARK_TS_EXP): New.
14864 2019-04-30 Martin Liska <mliska@suse.cz>
14866 * opts.c (enable_warning_as_error): Provide hints
14867 for unknown options.
14869 2019-04-30 Martin Liska <mliska@suse.cz>
14872 * doc/invoke.texi: Add missing dash for gas-locview-support
14873 and gno-as-locview-support.
14875 2019-04-30 Jakub Jelinek <jakub@redhat.com>
14878 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
14879 whitespace at the start of target attribute string.
14881 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14884 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
14885 Define __ARM_FEATURE_ATOMICS.
14887 2019-04-30 Martin Liska <mliska@suse.cz>
14889 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
14890 into built_in_function enum. Remove code for endp == 2 and
14891 use BUILT_IN_* constants.
14892 (gimple_fold_builtin): Call the function with fcode.
14894 2019-04-30 Martin Liska <mliska@suse.cz>
14896 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
14897 DECL_FUNCTION_CODE into ix86_builtins enum before
14898 the switch statement.
14900 2019-04-30 Jakub Jelinek <jakub@redhat.com>
14902 PR tree-optimization/89475
14903 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
14906 2019-04-30 Martin Liska <mliska@suse.cz>
14908 PR translation/90274
14909 * opts.c (print_filtered_help): Wrap string in _(...).
14911 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
14913 PR tree-optimization/90240
14915 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14917 PR tree-optimization/90078
14918 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
14919 checks for infinite_cost overflow.
14921 2019-04-29 Jeff Law <law@redhat.com>
14923 * passes.def: Move -Wrestrict pass after copy propagation.
14925 2019-04-29 Maya Rashish <coypu@sdf.org>
14927 * config.gcc (default_gnu_indirect_function): Default to yes
14928 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
14929 sparc*-*-netbsd*, x86_64-*-netbsd*.
14931 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
14933 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
14934 where cond2 is NE_EXPR.
14935 (is_value_included_in): Update comment.
14937 2019-04-29 Richard Biener <rguenther@suse.de>
14939 PR tree-optimization/90278
14940 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
14941 EH on comparison simplification.
14943 2019-04-29 Jason Merrill <jason@redhat.com>
14945 PR c++/82081 - tail call optimization breaks noexcept
14946 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
14947 nothrow function to a might-throw function into a tail call.
14949 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
14951 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
14952 (DDR_INNER_LOOP): Likewise.
14953 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
14954 (initialize_data_dependence_relation): Likewise.
14955 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
14957 2019-04-29 Jakub Jelinek <jakub@redhat.com>
14959 PR rtl-optimization/90257
14960 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
14964 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
14968 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
14971 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
14974 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
14976 * lra-spills.c (lra_final_code_change): Remove useless move insns.
14978 2019-04-29 Richard Biener <rguenther@suse.de>
14980 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
14983 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
14985 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
14986 varasm.h, and netbsd-protos.h.
14988 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
14991 * config/i386/i386-protos.h (ix86_data_alignment): Change
14992 the second argument type to unsigned int.
14993 * config/i386/i386.c (ix86_data_alignment): Change "align"
14994 argument type to unsigned int.
14996 2019-04-27 Martin Liska <mliska@suse.cz>
14998 PR middle-end/90258
14999 * opt-suggestions.c (option_proposer::build_option_suggestions):
15000 When get_valid_option_values returns empty values, add the
15001 misspelling candidate.
15003 2019-04-26 Jim Wilson <jimw@sifive.com>
15005 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
15007 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
15008 Pass orig_mode to riscv_build_integer.
15009 (riscv_split_integer): Pass mode to riscv_move_integer.
15010 (riscv_legitimize_const_move): Likewise.
15011 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
15012 promoted_mode. Replace force_reg call with code to load constant into
15013 promoted reg and then subreg it for the store.
15014 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
15015 riscv_move_integer.
15017 2018-04-26 Eugene Sharygin <eush@ispras.ru>
15019 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
15022 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
15024 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
15025 commentary about the encoding of precision.
15027 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
15029 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
15030 * config/i386/t-freebsd64: New file.
15031 * config.gcc: Add the t-freebsd64 for multilib support.
15033 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
15035 * doc/extend.texi (vector_size): Add missing comma after @xref.
15037 2019-04-25 Jakub Jelinek <jakub@redhat.com>
15039 * BASE-VER: Set to 10.0.0.
15041 2019-04-25 Richard Biener <rguenther@suse.de>
15043 PR middle-end/89765
15044 * gimplify.c (gimplify_expr): Avoid turning a lvalue
15045 VIEW_CONVERT_EXPR into one operating on an rvalue.
15047 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
15050 * config/i386/i386.c (feature_priority): Moved to file scope.
15051 (processor_features): Likewise.
15052 (processor_model): Likewise.
15053 (_arch_names_table): Likewise.
15054 (arch_names_table): Likewise.
15055 (_feature_list): Removed.
15056 (feature_list): Likewise.
15057 (_isa_names_table): Moved to file scope. Add priority.
15058 (isa_names_table): Likewise.
15059 (get_builtin_code_for_version): Replace feature_list with
15060 isa_names_table. Update error message for P_ZERO priority.
15062 2019-04-25 Richard Biener <rguenther@suse.de>
15064 * tree-pass.h (make_pass_phi_only_cprop): Remove.
15065 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
15067 2019-04-24 Jeff Law <law@redhat.com>
15069 PR tree-optimization/90037
15070 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
15071 * passes.def: Replace all instance of phi-only cprop with the
15072 lattice propagator. Move propagation pass from after erroneous
15073 path isolation to before erroneous path isolation.
15074 * tree-ssa-phionlycprop.c: Remove.
15076 2019-04-24 Richard Biener <rguenther@suse.de>
15078 PR middle-end/90213
15079 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
15080 by size and BITS_PER_UNIT on poly-wide-ints.
15082 2019-04-25 Richard Biener <rguenther@suse.de>
15084 PR middle-end/90194
15085 * match.pd: Add pattern to simplify view-conversion of an
15088 2019-04-24 Clement Chigot <clement.chigot@atos.net>
15090 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
15091 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
15092 for Go on 32 bit AIX.
15093 * config/rs6000/aix72.h: Likewise.
15095 2019-04-24 Jakub Jelinek <jakub@redhat.com>
15098 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
15099 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
15101 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
15104 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
15105 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
15106 for restored hard frame pointer.
15107 (s390_sched_dependencies_evaluation): Implement new target hook.
15108 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
15110 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
15112 * config/arc/arc-options.def: Fix typos and spelling mistakes.
15113 * config/arc/arc.c (arc_init): Cleanup warning message.
15114 (arc_override_options): Likewise.
15116 2019-04-24 Jakub Jelinek <jakub@redhat.com>
15119 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
15120 a register if both if_true and if_false are MEMs.
15122 PR tree-optimization/90208
15123 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
15124 after labels of new_bb, not before them.
15126 PR tree-optimization/90211
15127 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
15128 which are not SSA_NAMEs.
15130 2018-04-23 Sudakshina Das <sudi.das@arm.com>
15132 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
15134 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
15136 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
15138 PR rtl-optimization/87979
15139 * modulo-sched.c (sms_schedule): Start ii value "mii" should
15142 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
15144 PR rtl-optimization/84032
15145 * modulo-sched.c (ps_insn_find_column): Change condition so that
15146 branch will always be the last insn in a row inside partial
15149 2019-04-23 Richard Biener <rguenther@suse.de>
15152 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
15153 dest_single_pred_p argument.
15154 (remove_forwarder_block): Adjust.
15155 (remove_forwarder_block_with_phi): Likewise.
15157 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15158 Bernd Edlinger <bernd.edlinger@hotmail.de>
15159 Jakub Jelinek <jakub@redhat.com>
15162 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
15163 if used with general-regs-only.
15164 (arm_conditional_register_usage): Don't add non-general regs if
15166 (arm_valid_target_attribute_rec): Handle general-regs-only.
15167 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
15169 (TARGET_HARD_FLOAT_SUB): Define.
15170 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
15171 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
15172 (TARGET_REALLY_IWMMXT2): Likewise.
15173 * config/arm/arm.opt: Add -mgeneral-regs-only.
15174 * doc/extend.texi: Document ARM general-regs-only target.
15175 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
15177 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
15179 PR tree-optimization/90078
15180 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
15181 checks for infinite_cost overflow.
15183 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
15185 PR tree-optimization/90021
15186 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
15187 and check univariate against it.
15188 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
15189 * tree-data-ref.c (add_other_self_distances): Pass new argument.
15191 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
15195 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
15198 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
15201 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
15203 * lra-spills.c (lra_final_code_change): Remove useless move insns.
15205 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
15207 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
15208 names using operand format, rather than hard-wired.
15209 (speculation_barrier): Likewise.
15211 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
15213 PR tree-optimization/88055
15214 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
15215 (gen_one_condition): Use it if !HONOR_NANS.
15217 2019-04-19 Jakub Jelinek <jakub@redhat.com>
15219 PR middle-end/90139
15220 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
15221 assign_temp instead of gen_reg_rtx.
15223 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
15225 PR translation/90118
15226 * config/aarch64/aarch64.c (aarch64_override_options_internal):
15227 Add missing space before %<.
15229 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
15231 PR rtl-optimization/87871
15232 * ira-lives.c (make_object_dead): Don't add conflicts to
15233 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
15235 2019-04-18 Martin Sebor <msebor@redhat.com>
15237 PR middle-end/89797
15238 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
15239 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
15240 assuming type size fits in SHWI.
15242 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
15245 * ipa-inline.c (flatten_function): New parameter UPDATE.
15246 (ipa_inline, early_inliner): Use it.
15248 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
15250 * fold-const.c (int_const_binop): Return early on failure.
15252 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
15254 PR middle-end/85164
15255 * combine.c (force_int_to_mode): Cast the argument rather than
15256 the result of known_alignment.
15257 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
15259 2019-04-18 Richard Biener <rguenther@suse.de>
15262 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
15264 (remove_forwarder_block): ... here.
15265 (remove_forwarder_block_with_phi): Also move debug stmts here.
15267 2019-04-18 Jakub Jelinek <jakub@redhat.com>
15269 PR translation/79183
15270 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
15271 inform where appropriate.
15273 2019-04-18 Richard Biener <rguenther@suse.de>
15275 * tree.c (get_qualified_type): Put found type variants at the
15276 head of the variant list.
15278 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
15280 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
15282 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
15285 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
15286 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
15287 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
15288 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
15289 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
15291 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
15293 * ira-conflicts.c (print_allocno_conflicts): Always print something,
15294 even for allocno's with no conflicts.
15295 (print_conflicts): Print an extra newline.
15297 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
15299 * auto-inc-dec.c (attempt_change): Set the alignment of the
15300 temporary memory to that of the original.
15302 2019-04-17 Joao Moreira <jmoreira@suse.de>
15304 * targhooks.c (default_print_patchable_function_entry): Emit
15305 __patchable_function_entries section with writable flags to allow
15306 relocation resolution.
15308 2019-04-17 Jonny Grant <jg@jguk.org>
15310 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
15312 2019-04-17 Jakub Jelinek <jakub@redhat.com>
15314 PR middle-end/90095
15315 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
15316 on lowpart SUBREGs.
15318 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
15320 * config/arc/arc.c (arc_init): Format diagnostic string.
15321 (arc_override_options): Likewise.
15322 (check_if_valid_regno_const): Likewise.
15323 (arc_reorg): Likewise.
15325 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
15328 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
15330 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
15332 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
15333 (*movdi_update1): Use Pmode.
15334 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
15335 (movdi_<mode>_update_stack): Rename to ...
15336 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
15338 (*movsi_update1): Use Pmode.
15339 (*movsi_update2): Use Pmode.
15340 (movsi_update): Rename to ...
15341 (movsi_<mode>_update): ... this. Use Pmode.
15342 (movsi_update_stack): Fix condition.
15343 (*movhi_update1): Use Pmode. Fix argument to
15344 avoiding_indexed_address_p.
15345 (*movhi_update2): Ditto.
15346 (*movhi_update3): Ditto.
15347 (*movhi_update4): Ditto.
15348 (*movqi_update1): Ditto.
15349 (*movqi_update2): Ditto.
15350 (*movqi_update3): Ditto.
15351 (*movsf_update1, *movdf_update1): Merge, rename to...
15352 (*mov<mode>_update1): This. Use Pmode. Fix argument to
15353 avoiding_indexed_address_p. Add "size" attribute.
15354 (*movsf_update2, *movdf_update2): Merge, rename to...
15355 (*mov<mode>_update2): This. Ditto.
15356 (*movsf_update3): Use Pmode. Fix argument to
15357 avoiding_indexed_address_p.
15358 (*movsf_update4): Ditto.
15359 (allocate_stack): Simplify condition. Adjust pattern names.
15361 2019-04-17 Jakub Jelinek <jakub@redhat.com>
15364 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
15365 whitespace at the start of target attribute string.
15367 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
15370 * config/rs6000/power9.md: Add store forwarding bypass.
15372 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
15375 * valtrack.c (dead_debug_insert_temp): Reset debug references
15376 to the return value of a call being removed.
15378 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
15380 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
15381 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
15382 implement target hook.
15383 (arc_memory_move_cost): New function.
15384 (TARGET_REGISTER_MOVE_COST): Define.
15385 (TARGET_MEMORY_MOVE_COST): Likewise.
15386 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
15387 (MEMORY_MOVE_COST): Likewise.
15389 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
15391 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
15392 (sibcall_value_insn): Likewise.
15393 * config/arc/constraints.md (Rs5): Remove.
15395 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
15397 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
15398 for last two fake registers.
15399 (arc_conditional_register_usage): Make sure fake frame and arg
15400 pointer regs are in general regs class.
15401 (FRAME_POINTER_MASK): Remove.
15402 (RETURN_ADDR_MASK): Remove.
15403 (arc_must_save_register): Use hard frame regnum.
15404 (frame_restore_reg): Use hard_frame_pointer_rtx.
15405 (arc_save_callee_saves): Likewise.
15406 (arc_restore_callee_saves): Likewise.
15407 (arc_save_callee_enter): Likewise.
15408 (arc_restore_callee_leave): Likewise.
15409 (arc_save_callee_milli): Likewise.
15410 (arc_eh_return_address_location): Likewise.
15411 (arc_check_multi): Use hard frame regnum.
15412 (arc_can_eliminate): Likewise.
15413 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
15414 for register allocator.
15415 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
15416 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
15417 (FRAME_POINTER_REGNUM): Change it to a fake register.
15418 (HARD_FRAME_POINTER_REGNUM): Defined.
15419 (ARG_POINTER_REGNUM): Change it to a new fake register.
15420 (ELIMINABLE_REGS): Update.
15421 (REGISTER_NAMES): Update names.
15422 * config/arc/arc.md (LP_START): Remove.
15423 (LP_END): Likewise.
15424 (shift_si3_loop): Update pattern.
15426 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
15428 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
15429 to avoid delay slot scheduling.
15430 (arc_must_save_register): Don't save SP.
15431 * config/arc/arc.md (stack_tie): Remove.
15432 (UNSPEC_ARC_STKTIE): Likewise.
15434 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
15435 Shiva Chen <shiva0217@gmail.com>
15437 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
15438 code gen with large shift amount.
15440 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
15442 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
15445 2019-04-16 Jakub Jelinek <jakub@redhat.com>
15448 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
15449 print -m64/-mx32/-m32 if it is true.
15450 (ix86_debug_options, ix86_function_specific_print): Pass true as
15451 ADD_ABI_P to ix86_target_string.
15452 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
15453 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
15454 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
15456 PR rtl-optimization/90082
15457 * dce.c (can_delete_call): New function.
15458 (deletable_insn_p, mark_insn): Use it.
15460 PR tree-optimization/90090
15461 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
15463 (is_division_by_square): Likewise. Formatting fix.
15465 2019-04-16 Richard Biener <rguenther@suse.de>
15467 PR tree-optimization/56049
15468 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
15469 equality check if alias-set zero will prevail.
15471 2019-04-15 Jeff Law <law@redhat.com>
15473 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
15474 size and alignment as unsigned.
15476 2019-04-15 Richard Biener <rguenther@suse.de>
15479 * tree-loop-distribution.c (destroy_loop): Preserve correct
15482 2019-04-15 Richard Biener <rguenther@suse.de>
15484 PR tree-optimization/90071
15485 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
15486 abnormal operands from def stmts.
15488 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
15490 PR rtl-optimization/89794
15491 * combine.c (count_auto_inc): New function.
15492 (try_combine): Count how many auto_inc expressions there were in the
15493 original instructions. Ensure we have the same number in the new
15494 instructions. Remove the code that tried to ensure auto_inc side
15495 effects on i1 and i0 are not lost.
15497 2019-04-15 Richard Biener <rguenther@suse.de>
15500 * tree.h (auto_var_p): Declare.
15501 * tree.c (auto_var_p): New function, split out from ...
15502 (auto_var_in_fn_p): ... here.
15503 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
15505 (new_var_info): Initialize it.
15506 (set_uids_in_ptset): Also set the shadow variable uid if required.
15507 (ipa_pta_execute): Postprocess points-to solutions assigning
15508 shadow variable uids for locals that may reach their containing
15509 function recursively.
15510 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
15511 assert but instead check whether the points-to solution is
15514 2019-04-15 Martin Jambor <mjambor@suse.cz>
15517 * cgraph.c (clone_of_p): Loop over clone chain for each step in
15520 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
15522 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
15524 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
15525 Kito Cheng <kito.cheng@gmail.com>
15526 Shiva Chen <shiva0217@gmail.com>
15528 * config/nds32/nds32-md-auxiliary.c
15529 (nds32_legitimize_pic_address): Use new PIC pattern.
15530 (nds32_legitimize_tls_address): Use new TLS pattern.
15531 (nds32_output_symrel): New.
15532 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
15533 (nds32_alloc_relax_group_id): Ditto.
15534 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
15535 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
15537 (nds32_group_tls_insn): Ditto.
15538 (nds32_group_float_insns): Ditto.
15539 * config/nds32/nds32.md (tls_le): New.
15542 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
15544 * configure: Add nds32 target for dwarf2 debug_line checking.
15545 * configure.ac: Regenerated.
15547 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
15550 * ipa-devirt.c (skip_in_fields_list_p): New.
15551 (odr_types_equivalent_p): Use it.
15553 2019-04-13 Jakub Jelinek <jakub@redhat.com>
15556 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
15557 instead of strncmp when checking for thumb and arm. Formatting fixes.
15559 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
15561 * doc/install.texi: Document --with-target-system-zlib.
15563 2019-04-12 Martin Sebor <msebor@redhat.com>
15569 * targhooks.c (default_vector_alignment): Avoid assuming
15570 argument fits in SHWI.
15571 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
15572 a shift expression.
15573 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
15575 2019-04-12 Jakub Jelinek <jakub@redhat.com>
15577 PR rtl-optimization/89965
15578 * dce.c: Include rtl-iter.h.
15579 (struct check_argument_load_data): New type.
15580 (check_argument_load): New function.
15581 (find_call_stack_args): Check for loads from stack slots still tracked
15582 in sp_bytes and punt if any is found.
15584 * config/mips/loongson-mmiintrin.h: Fix up #error message.
15586 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
15588 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
15589 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
15591 2019-04-12 Martin Liska <mliska@suse.cz>
15593 PR middle-end/89970
15594 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
15596 (separate_attrs): Handle multiple 'default's.
15597 (expand_target_clones): Rework error handling code.
15599 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
15602 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
15603 mode of vector rather than mode of destination for move instruction.
15604 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
15605 Use QI inner mode with V16QI vector mode.
15607 2019-04-12 Jakub Jelinek <jakub@redhat.com>
15610 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
15611 "invalid %%t operand" in output_operand_lossage message.
15613 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
15615 * config/s390/predicates.md (permute_pattern_operand): New
15617 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
15618 operand for the permute pattern.
15619 ("*vec_perm<mode>"): New insn definition.
15620 ("bswap<mode>"): Generate the permute pattern operand in the
15621 expander and perform the operand reloads for pre arch13 level
15623 ("*bswap<mode>_emu"): Rename to ...
15624 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
15625 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
15626 Add the USE operand for the permute pattern.
15627 ("*vec_set_bswap_vec<mode>"): Likewise.
15629 2019-04-12 Jakub Jelinek <jakub@redhat.com>
15632 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
15633 and gcc_unreachable if it fails, just call tree_to_uhwi which
15634 verifies that too. Test TREE_CHAIN instead of list_length > 1.
15635 Start warning message with a lower-case letter. Formatting fixes.
15637 PR rtl-optimization/90026
15638 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
15639 successors, look for BARRIERs inside of the whole BB_FOOTER chain
15640 rather than just at the start of it. If e->src BB_FOOTER is not NULL
15641 in cfglayout mode, use emit_barrier_after_bb.
15643 2018-04-11 Steve Ellcey <sellcey@marvell.com>
15645 PR rtl-optimization/87763
15646 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
15649 2019-04-11 Tom de Vries <tdevries@suse.de>
15651 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
15652 max macro using statement expression.
15654 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
15656 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
15657 * xcoffout.c (xcoff_private_rodata_section_name): Define.
15658 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
15659 read_only_private_data_section using xcoff_private_rodata_section_name.
15660 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
15662 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
15665 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
15667 2019-04-11 Jakub Jelinek <jakub@redhat.com>
15669 PR rtl-optimization/89965
15670 * dce.c (sp_based_mem_offset): New function.
15671 (find_call_stack_args): Use sp_based_mem_offset.
15673 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
15675 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
15677 2019-04-11 Richard Biener <rguenther@suse.de>
15679 PR tree-optimization/90020
15680 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
15681 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
15682 * tree-ssa-pre.c (compute_avail): Use it to not put
15683 possibly trapping references after a call that might not
15684 return into EXP_GEN.
15685 * gcse.c (compute_hash_table_work): Do not elide
15686 marking a block containing a call if the call might not
15689 2019-04-11 Richard Biener <rguenther@suse.de>
15691 PR tree-optimization/90018
15692 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
15693 Test both SLP and interleaving variants.
15695 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
15697 * config/s390/8561.md: New file.
15698 * config/s390/driver-native.c (s390_host_detect_local_cpu):
15699 Add arch13 cpu model.
15700 * config/s390/s390-opts.h (enum processor_type): Likewise.
15701 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
15702 (s390_get_unit_mask): Likewise.
15703 (s390_is_fpd): Likewise.
15704 (s390_is_fxd): Likewise.
15705 * config/s390/s390.h (s390_tune_attr): Likewise.
15706 * config/s390/s390.md: Include arch13 pipeline description.
15707 * config/s390/s390.opt: Add arch13.
15709 2018-04-10 Steve Ellcey <sellcey@marvell.com>
15711 PR rtl-optimization/87763
15712 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
15714 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
15716 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
15718 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
15719 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
15720 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
15721 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
15723 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
15725 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
15726 "Although" in -fipa-icf documentation.
15728 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
15729 of using multiple -g options.
15731 2019-04-10 Martin Liska <mliska@suse.cz>
15733 PR gcov-profile/89959
15734 * doc/gcov.texi: Make documentation of -x option
15737 2019-04-10 Richard Biener <rguenther@suse.de>
15739 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
15741 (DR_GROUP_SAME_DR_STMT): Remove.
15742 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
15743 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
15744 replace with assert.
15745 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
15746 (vect_record_grouped_load_vectors): Remove unreachable code.
15748 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
15751 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
15752 obsolete reference to N.
15754 2019-04-10 Jakub Jelinek <jakub@redhat.com>
15756 PR middle-end/90025
15757 * expr.c (store_expr): Set properly size on the MEM passed to
15761 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
15762 with strlen in between hostsz-3 and hostsz-1 inclusive when no
15763 translation is needed, and when translation is needed, only append
15764 ... if the string length is hostsz or more bytes long. Avoid using
15767 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
15770 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
15771 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
15773 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
15774 differences directly.
15775 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
15777 2019-04-09 Jakub Jelinek <jakub@redhat.com>
15779 PR translation/90011
15780 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
15782 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
15784 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
15785 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
15786 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
15787 trailing space from -gsplit-dwarf diagnostics.
15789 PR tree-optimization/89998
15790 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
15791 instead of integer_type_node if possible, don't add ranges if return
15792 type is not compatible with int.
15793 * gimple-fold.c (gimple_fold_builtin_sprintf,
15794 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
15797 2019-04-09 Martin Liska <mliska@suse.cz>
15799 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
15800 * doc/install.texi: Document the new config.
15802 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
15804 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
15805 use gimple_expr_type for load and store calls. Skip over the
15806 condition argument in a conditional internal function.
15807 Protect use of TREE_INT_CST_LOW.
15809 2019-04-09 Jakub Jelinek <jakub@redhat.com>
15812 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
15813 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
15814 trailing period from it too.
15816 2019-04-08 wu yuan <wuyuan5@huawei.com>
15818 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
15819 * config/aarch64/aarch64.md : Add "tsv110.md"
15820 * config/aarch64/tsv110.md: New file.
15822 2019-04-08 Richard Biener <rguenther@suse.de>
15824 PR tree-optimization/90006
15825 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
15828 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
15831 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
15833 (fma_root_node): Likewise.
15834 (func_fma_steering): Likewise.
15836 2019-04-08 Jakub Jelinek <jakub@redhat.com>
15838 PR rtl-optimization/89865
15839 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
15841 PR rtl-optimization/89865
15842 * config/i386/i386.md
15843 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
15844 numbers not to clash with the additional operands[4].
15845 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
15846 with extra register copy in the middle.
15848 2019-04-08 Martin Liska <mliska@suse.cz>
15850 PR gcov-profile/89961
15851 * doc/gcov.texi: Document data_file.
15852 * gcov.c (generate_results): Add data_info into JSON output.
15854 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
15856 PR tree-optimization/89725
15857 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
15858 loop's chrec as invariant symbol.
15859 * tree-chrec.h (chrec_contains_symbols): New parameter.
15860 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
15861 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
15862 function of loops not in DDR's loop_nest.
15863 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
15865 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
15868 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
15871 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
15874 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
15875 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
15877 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
15879 * sched-deps.c (sched_macro_fuse_insns): Check return value of
15880 targetm.fixed_condition_code_regs.
15882 2019-04-05 Richard Biener <rguenther@suse.de>
15886 * tree-cfgcleanup.c (remove_forwarder_block): Always move
15887 debug bind stmts but reset them if they are not valid at the
15890 2019-04-05 Martin Liska <mliska@suse.cz>
15892 PR translation/89936
15893 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
15894 order to wrap keywords or arguments.
15895 * collect2.c (main): Likewise.
15896 (scan_prog_file): Likewise.
15897 (scan_libraries): Likewise.
15898 * common/config/riscv/riscv-common.c
15899 (riscv_subset_list::parsing_subset_version): Likewise.
15900 (riscv_subset_list::parse_std_ext): Likewise.
15901 * config/aarch64/aarch64.c (aarch64_override_options_internal):
15903 * config/arm/arm.c (arm_option_override): Likewise.
15904 * config/cris/cris.c (cris_print_operand): Likewise.
15905 * config/darwin-c.c (darwin_pragma_options): Likewise.
15906 (darwin_pragma_unused): Likewise.
15907 (darwin_pragma_ms_struct): Likewise.
15908 * config/ft32/ft32.c (ft32_print_operand): Likewise.
15909 * config/i386/i386.c (print_reg): Likewise.
15910 (ix86_print_operand): Likewise.
15911 * config/i386/xm-djgpp.h: Likewise.
15912 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
15913 * config/m32c/m32c.c (m32c_option_override): Likewise.
15914 * config/msp430/msp430.c (msp430_option_override): Likewise.
15915 * config/nds32/nds32.c (nds32_option_override): Likewise.
15916 * config/nvptx/mkoffload.c (main): Likewise.
15917 * config/rx/rx.c (rx_print_operand): Likewise.
15918 (valid_psw_flag): Likewise.
15919 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
15920 (vms_pragma_nomember_alignment): Likewise.
15921 (vms_pragma_extern_model): Likewise.
15922 * lto-wrapper.c (compile_offload_image): Likewise.
15923 * omp-offload.c (oacc_parse_default_dims): Likewise.
15924 * symtab.c (symtab_node::verify_base): Likewise.
15925 * tlink.c (recompile_files): Likewise.
15926 (start_tweaking): Likewise.
15927 * tree-profile.c (parse_profile_filter): Likewise.
15929 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
15931 PR tree-optimization/89956
15932 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
15933 multiple negates of the same value.
15935 2019-04-04 Martin Sebor <msebor@redhat.com>
15937 PR middle-end/89957
15938 PR middle-end/89911
15939 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
15940 have the same precision since the function crashes otherwise.
15941 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
15942 has non-zero arguments.
15944 2019-04-04 Martin Sebor <msebor@redhat.com>
15946 PR middle-end/89934
15947 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
15948 out if the number of arguments is less than expected.
15950 2019-04-04 Jeff Law <law@redhat.com>
15952 PR rtl-optimization/89399
15953 * ree.c (combine_set_extension): Use single_set rather than
15954 digging into PATTERN for items on the candidate list.
15955 (combine_reaching_defs): Likewise.
15957 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
15959 PR rtl-optimization/46590
15960 * loop-invariant.c (find_defs): Move df_remove_problem and
15961 df_process_deferred_rescans to move_invariants.
15962 Move df_live_add_problem and df_live_set_all_dirty calls
15963 to move_invariants.
15964 (move_invariants): Likewise.
15965 (move_loop_invariants): Likewise, making the df_live calls
15966 conditional on -O. Remove the problem again if we added it
15969 2019-04-03 qing zhao <qing.zhao@oracle.com>
15971 PR tree-optimization/89730
15972 * ipa-inline.c (can_inline_edge_p): Delete the checking for
15973 -flive-patching=inline-only-static.
15974 (can_inline_edge_by_limits_p): Add the checking for
15975 -flive-patching=inline-only-static and grant always_inline
15976 even when -flive-patching=inline-only-static is specified.
15978 2019-04-03 Jeff Law <law@redhat.com>
15980 PR rtl-optimization/81025
15981 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
15983 2019-04-03 Richard Biener <rguenther@suse.de>
15985 PR tree-optimization/84101
15986 * tree-vect-stmts.c: Include explow.h for hard_function_value,
15987 regs.h for hard_regno_nregs.
15988 (cfun_returns): New helper.
15989 (vect_model_store_cost): When vectorizing a store to a decl
15990 we return and the function ABI returns in a multi-reg location
15991 account for the possible spilling that will happen.
15993 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
15995 * config/s390/s390.c (s390_legitimate_address_p): Reject long
15996 displacement addresses for vector mode operands.
15998 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
16000 * config/arc/arc.c (GMASK_LEN): Define.
16001 (arc_restore_callee_saves): Restore first blink when
16004 2019-04-03 Sudakshina Das <sudi.das@arm.com>
16006 * doc/extend.texi: Add deprecated comment on sign-return-address
16007 function attribute and add mbranch-protection.
16008 * doc/invoke.texi: Add bti to the options for mbranch-protection.
16010 2019-04-03 Richard Biener <rguenther@suse.de>
16013 * lto-wrapper.c (run_gcc): Avoid implicit rules making
16014 the all target phony.
16016 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
16020 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
16021 Return false for variable DImode shifts.
16022 (dimode_scalar_chain::compute_convert_gain): Do not handle
16023 register count operand in variable DImode shifts.
16024 (dimode_scalar_chain::make_vector_copies): Remove support to copy
16025 count argument of a variable shift instruction to a vector register.
16026 (dimode_scalar_chain::convert_reg): Remove support to convert
16027 count argument of a variable shift instruction.
16029 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
16031 PR rtl-optimization/84206
16032 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
16033 iterating over loop headers.
16035 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
16037 PR rtl-optimization/85876
16038 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
16039 beyond the original fence.
16041 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
16043 * config.gcc: Mark spu* targets as deprecated/obsolete.
16045 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16047 * config/s390/s390-builtin-types.def: New builtin function type
16048 definitions. Remove unused types.
16049 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
16050 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
16051 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
16052 overloaded builtins.
16053 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
16054 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
16055 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
16056 (vec_double, vec_signed, vec_unsigned): Define to use the new
16057 overloaded builtins.
16058 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
16061 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16063 * config/s390/s390-builtin-types.def: New builtin function type
16065 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
16066 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
16067 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
16068 (s390_vstrszh, s390_vstrszf): New low-level builtins.
16069 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
16070 constant definitions.
16071 * config/s390/vecintrin.h (vec_search_string_cc)
16072 (vec_search_string_until_zero_cc): New builtin name definitions.
16073 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
16075 ("vec_vstrs<mode>"): New insn definition.
16077 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16079 * config/s390/s390-builtin-types.def: Add new builtin function
16081 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
16082 New overloaded builtins.
16083 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
16085 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
16086 (UNSPEC_VEC_SLDBYTE): ... this.
16087 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
16088 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
16090 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
16091 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
16092 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
16094 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16096 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
16097 New insn definition.
16098 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
16099 * config/s390/vector.md (V_HW_HSD): ... here.
16101 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16103 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
16104 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
16105 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
16106 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
16107 New insn definitions.
16109 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16111 * config/s390/s390-builtin-types.def: Add new builtin function type.
16112 * config/s390/s390-builtins.def: Add overloaded builtin
16113 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
16114 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
16115 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
16116 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
16117 ("eltswap<mode>"): New expander.
16118 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
16121 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16123 * config/s390/s390-builtin-types.def: Add new builtin function types.
16124 * config/s390/s390-builtins.def: Add overloaded builtin
16125 s390_vec_revb. Add low-level builtins for vlbr and vstbr
16127 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
16128 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
16129 ("bswap<mode>"): New expander.
16130 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
16132 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16134 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
16135 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
16136 vector builtin version number in __VEC__.
16138 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16140 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
16142 (SFSI): New mode attribute.
16143 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
16144 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
16146 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
16147 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
16148 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
16149 ("floatsi<mode>2"): Add wcefb instruction.
16151 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16153 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
16154 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
16156 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
16157 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
16158 support 32 bit fp-int conversions. Rename to ...
16159 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
16160 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
16161 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
16162 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
16165 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16167 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
16168 if-then-else constructs if we can use the select instruction.
16169 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
16171 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16173 * config/s390/s390.md ("*popcountdi_arch13_cc")
16174 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
16176 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
16177 Append _z196 to make it ...
16178 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
16179 ("popcounthi2_z196"): ... this.
16180 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
16181 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
16183 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16185 * config/s390/s390.c (s390_canonicalize_comparison): Convert
16186 certain compares for arch13 in order to make use of the condition
16187 code result produced by the new instructions.
16188 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
16189 nxrk, and nxgrk instruction patterns.
16190 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
16191 (inv_no): Add new code iterator together with some attributes.
16192 ("*andc_split_<mode>"): Disable splitter for arch13.
16193 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
16194 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
16195 ("*<ANDOR:bitops_name>c<GPR:mode>")
16196 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
16197 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
16198 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
16199 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
16201 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16203 * common/config/s390/s390-common.c (processor_flags_table): New
16205 * config.gcc: Support arch13 with the --with-arch= configure flag.
16206 * config/s390/driver-native.c (s390_host_detect_local_cpu):
16207 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
16208 * config/s390/s390.c (s390_get_sched_attrmask)
16209 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
16210 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
16211 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
16212 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
16213 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
16215 * config/s390/s390.opt: Support arch13 as processor type in
16216 command line options.
16218 2019-04-02 Martin Liska <mliska@suse.cz>
16220 PR translation/89912
16221 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
16222 Fix param description of graphite-max-arrays-per-scop.
16224 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
16226 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
16227 (ASAN_CC1_SPEC): Use it in 64-bit mode.
16228 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
16230 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
16232 PR rtl-optimization/85412
16233 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
16234 sel_sched_region_1, not after.
16236 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
16238 PR rtl-optimization/86928
16239 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
16240 compute_live if necessary.
16241 (sel_redirect_edge_and_branch): Likewise.
16243 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
16245 PR rtl-optimization/89865
16246 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
16247 register if it is a part of small class.
16249 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
16251 PR rtl-optimization/87273
16252 * sel-sched-ir.c (merge_fences): Remove assert.
16254 2019-04-01 Richard Biener <rguenther@suse.de>
16256 PR tree-optimization/46590
16257 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
16258 (dom_walker::m_reachability): Add in place of...
16259 (dom_walker::m_skip_unreachable_blocks): ...this.
16260 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
16261 Move complex initialization ...
16262 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
16263 lazily and initialize edge flags on each invocation.
16264 (dom_walker::bb_reachable): Use m_reachability.
16266 2019-04-01 Martin Liska <mliska@suse.cz>
16269 * opt-suggestions.c (option_proposer::build_option_suggestions):
16270 Add variant without any argument in order to provide better
16273 2019-04-01 Richard Biener <rguenther@suse.de>
16276 * gimple.c: Include langhooks.h.
16277 (gimple_get_alias_set): Treat enumeral types as the underlying
16280 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16281 Eric Botcazou <ebotcazou@adacore.com>
16283 PR rtl-optimization/89862
16284 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
16285 that operates on the full registers for WORD_REGISTER_OPERATIONS
16288 2019-03-29 Jim Wilson <jimw@sifive.com>
16290 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
16291 Clear MASK_RVC and then set if C subset supported.
16293 2019-03-29 Jakub Jelinek <jakub@redhat.com>
16296 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
16297 non-addressable complit into its initializer if it is volatile.
16299 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
16301 * opts-common.c (integral_argument): Set errno properly in one case.
16303 2019-03-29 Martin Liska <mliska@suse.cz>
16305 * doc/invoke.texi: Remove -Wchkp from documentation.
16307 2019-03-29 Martin Liska <mliska@suse.cz>
16309 * dbgcnt.c (print_limit_reach): New function.
16312 2019-03-29 Martin Liska <mliska@suse.cz>
16314 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
16315 (dbg_cnt_process_opt): Parse first tokens aas
16316 dbg_cnt_process_single_pair is also using strtok.
16318 2019-03-29 Jakub Jelinek <jakub@redhat.com>
16320 PR rtl-optimization/87485
16321 * function.c (expand_function_end): Move stack_protect_epilogue
16322 before loading of return value into hard register(s).
16324 2019-03-28 Jakub Jelinek <jakub@redhat.com>
16326 PR middle-end/89621
16327 * tree-inline.h (struct copy_body_data): Add
16328 dont_remap_vla_if_no_change flag.
16329 * tree-inline.c (remap_type_3, remap_type_2): New functions.
16330 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
16331 and remap_type_2 returns false.
16332 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
16333 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
16334 only from where it is copied to nested contexts.
16336 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
16339 * config/i386/i386.md (RMW operation with LEA peephole):
16340 Use LEAMODE mode attribute instead of SWI mode iterator for
16343 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
16346 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
16347 Also process XEXP (src, 0) of a shift insn.
16349 2019-03-28 David Malcolm <dmalcolm@redhat.com>
16351 PR middle-end/89725
16352 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
16353 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
16355 2019-03-28 Jakub Jelinek <jakub@redhat.com>
16357 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
16359 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
16360 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
16361 immediately after first one with df_analyze in between, but rather
16362 process all bbs, queueing ones that need second pass in a worklist,
16363 df_analyze, process queued debug insn changes and if second pass is
16364 needed, process bbs from worklist, df_analyze, process queued debug
16367 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
16368 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
16369 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
16371 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
16374 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
16377 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
16380 * config/i386/i386.c (ix86_function_value_1): Call the newly added
16381 function for 32-bit MS_ABI.
16382 (function_value_ms_32): New function.
16384 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
16386 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
16387 (movdi): Call gen_movdi_symbol_save_scc.
16388 (gen_movdi_symbol_save_scc): New insn and split.
16390 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
16392 PR rtl-optimization/89313
16393 * function.c (matching_constraint_num): New static function.
16394 (match_asm_constraints_1): Use it. Fixup white space and comment.
16395 Don't replace inputs with non-matching constraints which conflict
16396 with early clobber outputs.
16398 2019-03-27 Jeff Law <law@redhat.com>
16400 PR rtl-optimization/87761
16401 PR rtl-optimization/89826
16402 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
16404 (pass_cprop_hardreg::execute): Call df_analyze after adding the
16405 note problem to get REG_DEAD/REG_UNUSED notes updated.
16407 2019-03-27 Richard Biener <rguenther@suse.de>
16409 PR tree-optimization/89463
16410 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
16411 queue edges to remove.
16412 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
16413 dead stmts. Delay edge removal until PHIs are removed to
16414 make debug-stmt creation not confused by seemingly degenerate
16417 2019-03-27 Alan Modra <amodra@gmail.com>
16419 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
16421 * config/rs6000/darwin.h: Likewise.
16422 * config/rs6000/rs6000.c: Likewise.
16424 2019-03-27 Alan Modra <amodra@gmail.com>
16426 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
16427 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
16429 2019-03-26 Andrew Waterman <andrew@sifive.com>
16430 Jim Wilson <jimw@sifive.com>
16432 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
16433 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
16434 (generic_idivdi, generic_fmul_single, generic_fmul_double)
16435 (generic_fdiv, generic_fsqrt): Add check for generic tune.
16436 (generic_alu): Add auipc to type list.
16437 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
16438 (riscv_microarchitecture): Declare.
16439 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
16440 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
16442 (riscv_microarchitecture): New.
16443 (sifive_7_tune_info): New.
16444 (riscv_cpu_info_table): Add microarchitecture value for rocket and
16445 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
16447 (riscv_store_data_bypass_p): New.
16448 (riscv_option_override): Set riscv_microarchitecture from
16449 cpu->microarchitecture.
16450 * config/riscv/riscv.md: Include sifive-7.md.
16453 (auipc<mode>): Change type to auipc.
16454 (restore_stack_nonlocal): New.
16455 * config/riscv/sifive-7.md: New.
16456 * doc/invoke.texi (RISC-V Options): Update mtune docs.
16458 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
16461 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
16462 Also process XEXP (src, 0) of a shift insn.
16464 2019-03-26 Richard Biener <rguenther@suse.de>
16466 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
16467 (copy_debug_stmt): Likewise.
16468 (expand_call_inline): Likewise.
16469 (copy_bb): Avoid redundant lookup & set of gimple_block.
16470 * gimple-low.c (lower_gimple_return): Likewise.
16471 (lower_builtin_setjmp): Likewise.
16473 2019-03-26 Jakub Jelinek <jakub@redhat.com>
16475 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
16476 is constant 0, turn into static const data member initialized to false.
16477 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
16478 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
16480 2019-03-26 Jason Merrill <jason@redhat.com>
16481 Jakub Jelinek <jakub@redhat.com>
16483 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
16485 (mem_alloc_description::release_object_overhead): Fix comment typos.
16486 * hash-table.h (hash_table::~hash_table): Call
16487 release_instance_overhead only if m_entries is non-NULL, otherwise
16488 call unregister_descriptor.
16490 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
16492 PR tree-optimization/81740
16493 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16494 In case of outer loop vectorization, check for backward dependence
16495 at the inner loop if outer loop dependence is reversed.
16497 2019-03-26 Alan Modra <amodra@gmail.com>
16499 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
16500 rs6000_vector_mem init. Correct wI and wJ comment.
16502 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
16504 PR rtl-optimization/88347
16505 PR rtl-optimization/88423
16506 * sched-deps.c (sched_analyze_insn): Take into account that for
16507 tablejumps the barrier appears after a label and a jump_table_data.
16509 2019-03-25 Martin Sebor <msebor@redhat.com>
16512 * c-common.c (check_user_alignment): Rename local. Correct maximum
16513 alignment in diagnostic. Avoid assuming argument fits in SHWI,
16514 convert it to UHWI when it fits.
16516 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
16519 * dwarf2out.c (premark_used_variables): New function.
16520 (prune_unused_types_walk): Do not mark not premarked external
16522 (prune_unused_types): Call premark_used_variables.
16524 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
16526 PR rtl-optimization/89676
16527 * lra-constraints.c (curr_insn_transform): Do match reload for
16528 early clobbers when the match was successful only for different
16531 2019-03-25 Martin Sebor <msebor@redhat.com>
16533 * doc/extend.texi (Common Type Attributes): Document vector_size.
16534 (Common Variable Attributes): Mention size constraint. Correct
16536 (Vector Extensions): Use @dfn when defining bas type. Clarify
16537 base type and size constraints.
16539 2019-03-25 Richard Biener <rguenther@suse.de>
16541 PR tree-optimization/89789
16542 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
16543 changes from non-undefined back to undefined.
16545 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
16547 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
16548 heap string and a gc string, but since this variable is unknown to
16549 ggc the gc string might get reused and corrupted. Fixed by always
16550 using a heap string.
16552 2019-03-25 Richard Biener <rguenther@suse.de>
16554 PR tree-optimization/89779
16555 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
16556 to remove IV defs, delay actual removal.
16557 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
16558 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
16559 very end, properly also reset loop control IV information.
16561 2019-03-25 Richard Biener <rguenther@suse.de>
16563 PR tree-optimization/89802
16564 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
16565 move EH data to folded stmt.
16567 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
16569 * config/s390/s390-builtin-types.def: Remove few unused types and
16570 fix sort order for others.
16572 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
16574 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
16575 expected and found types with -mdebug during builtin matching.
16577 2019-03-25 Richard Biener <rguenther@suse.de>
16579 PR middle-end/89790
16580 * fold-const.c (operand_equal_p): Revert last change with
16583 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
16585 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
16586 notes for the result of the __tls_get_addr calls.
16587 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
16589 2019-03-24 Jeff Law <law@redhat.com>
16591 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
16593 PR rtl-optimization/87761
16594 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
16595 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
16597 (pass_cprop_hardreg::execute): Add df note problem and defer insn
16598 rescans. Reprocess blocks as needed, calling df_analyze before
16599 reprocessing. Always call df_analyze before fixing up debug bind
16602 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
16604 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
16607 2019-03-22 Andrew Pinski <apinski@marvell.com>
16609 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
16610 attrribute for uxtw.
16612 2019-03-26 Jeff Law <law@redhat.com>
16614 PR rtl-optimization/87761
16615 * config/mips/mips-protos.h (mips_split_move): Add new argument.
16616 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
16617 (mips_split_move): Accept new INSN argument. Try to forward SRC
16618 into the next instruction.
16619 (mips_split_move_insn): Pass INSN through to mips_split_move.
16621 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
16623 PR rtl-optimization/89676
16624 * lra-constraints.c (curr_insn_transform): Do match reload for
16625 early clobbers even if the match was successful.
16627 2019-03-22 Jakub Jelinek <jakub@redhat.com>
16630 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
16632 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
16634 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
16636 2019-03-22 Jakub Jelinek <jakub@redhat.com>
16638 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
16639 <avx512>_fmsub_<mode>_mask3<round_name>,
16640 <avx512>_fnmadd_<mode>_mask3<round_name>,
16641 <avx512>_fnmsub_<mode>_mask3<round_name>,
16642 avx512f_vmfmadd_<mode>_mask3<round_name>,
16643 avx512f_vmfmsub_<mode>_mask3<round_name>,
16644 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
16645 instead of register_operand and %v instead of v for match_operand 1.
16646 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
16647 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
16648 <round_nimm_predicate> instead of register_operand and %v instead of v
16649 for match_operand 1.
16651 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
16652 <avx512>_fmadd_<mode>_mask3<round_name>,
16653 <avx512>_fmsub_<mode>_mask<round_name>,
16654 <avx512>_fmsub_<mode>_mask3<round_name>,
16655 <avx512>_fnmadd_<mode>_mask<round_name>,
16656 <avx512>_fnmadd_<mode>_mask3<round_name>,
16657 <avx512>_fnmsub_<mode>_mask<round_name>,
16658 <avx512>_fnmsub_<mode>_mask3<round_name>,
16659 <avx512>_fmaddsub_<mode>_mask<round_name>,
16660 <avx512>_fmaddsub_<mode>_mask3<round_name>,
16661 <avx512>_fmsubadd_<mode>_mask<round_name>,
16662 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
16663 <round_nimm_predicate> instead of nonimmediate_operand.
16664 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
16665 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
16666 Use register_operand instead of <round_nimm_predicate> for the
16667 operand that needs to match output.
16668 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
16669 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
16670 Likewise. Formatting fixes.
16673 * config/i386/i386.c (enum ix86_builtins): Remove
16674 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
16675 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
16676 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
16677 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
16678 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
16679 __builtin_ia32_vfmsubss3_mask3): New builtins.
16680 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
16681 avx512f_vmfmadd_<mode>_mask3<round_name>,
16682 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
16683 *avx512f_vmfmsub_<mode>_mask<round_name>,
16684 avx512f_vmfmsub_<mode>_mask3<round_name>,
16685 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
16686 *avx512f_vmfnmadd_<mode>_mask<round_name>,
16687 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
16688 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
16689 *avx512f_vmfnmsub_<mode>_mask<round_name>,
16690 avx512f_vmfnmsub_<mode>_mask3<round_name>,
16691 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
16692 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
16693 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
16694 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
16695 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
16696 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
16697 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
16698 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
16699 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
16700 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
16701 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
16702 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
16703 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
16704 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
16705 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
16706 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
16707 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
16708 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
16709 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
16710 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
16711 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
16712 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
16714 2019-03-21 Martin Sebor <msebor@redhat.com>
16716 PR tree-optimization/89350
16717 * builtins.c (compute_objsize): Also ignore offsets whose upper
16719 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
16720 (builtin_memref::builtin_memref): Initialize new member.
16721 Allow EXPR to be null.
16722 (builtin_memref::extend_offset_range): Replace local with a member.
16723 Avoid assuming pointer offsets are unsigned.
16724 (builtin_memref::set_base_and_offset): Determine base object
16725 before computing offset range.
16726 (builtin_access::builtin_access): Handle memset.
16727 (builtin_access::generic_overlap): Replace local with a member.
16728 (builtin_access::strcat_overlap): Same.
16729 (builtin_access::overlap): Same.
16730 (maybe_diag_overlap): Same.
16731 (maybe_diag_access_bounds): Same.
16732 (wrestrict_dom_walker::check_call): Handle memset.
16733 (check_bounds_or_overlap): Same.
16735 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
16736 Jakub Jelinek <jakub@redhat.com>
16739 * tree.c (fld_type_variant, fld_incomplete_type_of,
16740 fld_process_array_type): Call fld->pset.add and don't call
16741 add_tree_to_fld_list if it returns true.
16742 (free_lang_data_in_type): Similarly with self-recursive call. Purge
16743 non-marked types from TYPE_NEXT_VARIANT list.
16744 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
16746 2019-03-21 Jakub Jelinek <jakub@redhat.com>
16748 * hash-table.h (hash_table): Add Lazy template parameter defaulted
16749 to false, if true, don't alloc_entries during construction, but defer
16750 it to the first method that needs m_entries allocated.
16751 (hash_table::hash_table, hash_table::~hash_table,
16752 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
16753 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
16754 hash_table::clear_slot, hash_table::traverse_noresize,
16755 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
16756 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
16758 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
16759 NO_INSERT instead of find_with_hash.
16760 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
16761 hash_set::m_table): Add Lazy to template params of hash_table.
16762 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
16763 * attribs.c (test_attribute_exclusions): Likewise.
16764 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
16765 hash_set. Add tests for hash_set with Lazy = true.
16767 2019-03-21 Richard Biener <rguenther@suse.de>
16769 PR tree-optimization/89779
16770 * tree.c (tree_nop_conversion): Consolidate and fix defensive
16771 checks with respect to released SSA names now having error_mark_node
16773 * fold-const.c (operand_equal_p): Likewise.
16775 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
16778 * config/s390/s390.c (global_not_special_regno_p): Move to make it
16780 (s390_optimize_register_info): Use global_not_special_regno_p to
16781 check for global regs.
16783 2019-03-20 Jakub Jelinek <jakub@redhat.com>
16786 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
16787 update this_alternative nor this_alternative_set.
16789 2019-03-19 Jim Wilson <jimw@sifive.com>
16792 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
16793 align, size, offset. Use them to handle a BLKmode reference. Update
16795 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
16797 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16799 PR rtl-optimization/89768
16800 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
16801 instead of GEN_INT.
16802 (unroll_loop_runtime_iterations): Likewise.
16804 2019-03-19 Martin Sebor <msebor@redhat.com>
16806 PR tree-optimization/89644
16807 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
16808 rather than endptr as an indicator of nul-termination.
16810 PR tree-optimization/89644
16811 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
16812 arrays in determining sequence sizes in strncpy and stpncpy.
16814 2019-03-19 Martin Liska <mliska@suse.cz>
16816 PR middle-end/89737
16817 * predict.c (combine_predictions_for_bb): Empty likely_edges and
16818 unlikely_edges if there's an edge that belongs to both these sets.
16820 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
16823 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
16824 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
16825 go via a stack temporary.
16827 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16830 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
16831 instead of gen_rtx_SUBREG.
16832 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
16834 2019-03-19 Richard Biener <rguenther@suse.de>
16837 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
16839 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
16843 * tree.c (free_lang_data_in_decl): Do not free context of C++
16846 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16849 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
16850 subs for the first alternative except when operands[3] is 1.
16853 * gimplify.c (gimplify_asm_expr): For output argument with
16854 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
16857 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
16859 PR rtl-optimization/89753
16860 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
16861 explicit unrolling factor even more robust.
16863 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16866 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
16867 compensation use x2 += 1 instead of x2 -= -1 and when honoring
16868 signed zeros, do another copysign after the compensation.
16870 2019-03-18 Martin Sebor <msebor@redhat.com>
16872 PR tree-optimization/89720
16873 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
16874 more conservatively, the same as anti-range.
16876 2019-03-18 Richard Biener <rguenther@suse.de>
16878 PR middle-end/88945
16879 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
16880 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
16881 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
16882 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
16884 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
16886 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
16887 Extend queue to 1024 entries.
16888 Add "consumed" field.
16889 (gomp_print_output): Remove print_index parameter.
16890 Add final parameter.
16891 Change limit to unsigned.
16892 Use consumed field to implement circular buffer.
16893 Detect interrupted print in final pass.
16894 Flush output at the end.
16895 (run): Update gomp_print_output usage.
16896 (main): Initialize kernargs->output_data.consumed.
16898 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
16900 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
16901 calculation of the minimum number of scalar iterations for
16902 fully-predicated loops.
16904 2019-03-18 Martin Jambor <mjambor@suse.cz>
16906 PR tree-optimization/89546
16907 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
16908 any propagation to its children took place.
16910 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
16913 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
16914 parameter, and make use of it.
16915 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
16917 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16919 * config/arc/arc.opt (mcode-density-frame): Get the inital value
16920 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
16921 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
16922 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
16923 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
16924 match what the ops is doing.
16925 (push_multi_fp_blink): Likewise.
16926 * config/arc/arc.c (arc_override_options): Enable enter/leave when
16927 compiling for size and elf target.
16928 (arc_save_callee_enter): Adjust note to match what enter/leave
16931 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16933 * config/arc/arc.md (tst_movb): Fix constraint.
16935 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16937 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
16939 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16941 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
16942 * config/arc/arc.c (arc_conditional_register_usage): Remove all
16943 reg_alloc_order references.
16944 (size_alloc_order): Define.
16945 (arc_adjust_reg_alloc_order): New function.
16946 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
16948 (ADJUST_REG_ALLOC_ORDER): Define.
16949 (HONOR_REG_ALLOC_ORDER): Likewise.
16951 2019-03-18 Richard Biener <rguenther@suse.de>
16954 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
16955 loads and stores a bit more.
16957 2019-03-18 Richard Biener <rguenther@suse.de>
16960 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
16961 load pessimization to stores as well.
16963 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
16965 PR middle-end/86979
16966 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
16967 successor, use NULL as its av set.
16969 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
16971 PR rtl-optimization/89721
16972 * lra-constraints (invariant_p): Return false if side_effects_p holds.
16974 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
16977 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16978 When handling vec_extract, use modular arithmetic to allow
16979 constant selectors greater than vector length.
16980 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
16981 V1TImode vectors to have constant selector values greater than 0.
16982 Use modular arithmetic to compute vector index.
16983 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
16984 index for in-memory vectors. Correct code generation for
16985 in-register vectors.
16986 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
16989 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
16993 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
16996 2019-03-15 Jakub Jelinek <jakub@redhat.com>
16999 * tree.c (inchash::add_expr): Strip any location wrappers.
17000 * fold-const.c (operand_equal_p): Move stripping of location wrapper
17001 after hash verification.
17004 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
17005 SIGN_EXTEND and ZERO_EXTEND.
17007 2019-03-14 Jason Merrill <jason@redhat.com>
17008 Jakub Jelinek <jakub@redhat.com>
17010 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
17011 than if is_empty (*slot).
17012 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
17013 existing elt and for elt removal.
17014 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
17015 of already removed elt.
17017 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
17020 * config/i386/i386.c (remove_partial_avx_dependency): Handle
17021 REG_EH_REGION note.
17023 2019-03-14 Martin Liska <mliska@suse.cz>
17026 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
17028 2019-03-14 Richard Biener <rguenther@suse.de>
17031 * config/i386/i386.c (make_resolver_func): Properly set
17032 DECL_CONTEXT on the RESULT_DECL.
17033 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
17035 2019-03-14 Richard Biener <rguenther@suse.de>
17037 * gimple-pretty-print.c: Include cfgloop.h.
17038 (dump_gimple_phi): Adjust.
17039 (dump_gimple_bb_header): Dump loop header for GIMPLE.
17040 (pp_cfg_jump): Adjust.
17041 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
17042 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
17043 (lower_phi_internal_fn): Remove.
17044 (verify_gimple_call): Remove IFN_PHI special-casing.
17045 (dump_function_to_file): Dump IL state.
17046 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
17047 done to deal with PHI nodes being present in non-SSA state.
17049 2019-03-14 Jakub Jelinek <jakub@redhat.com>
17052 * multiple_target.c (create_dispatcher_calls): Change
17053 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
17054 In the node->iterate_referring loop, push *ref rather than ref, call
17055 ref->remove_reference () and always pass 0 to iterate_referring.
17057 PR rtl-optimization/89679
17058 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
17059 would contain a paradoxical SUBREG.
17061 2019-03-14 Richard Biener <rguenther@suse.de>
17063 PR tree-optimization/89710
17064 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
17067 2019-03-14 Martin Liska <mliska@suse.cz>
17069 * coverage.c (coverage_begin_function): Stream also
17071 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
17072 documentation about function declaration location.
17073 * gcov-dump.c (tag_function): Print whole range
17074 of function declaration.
17075 * gcov.c (struct function_info): Add end_column field.
17076 (function_info::function_info): Initialize it.
17077 (output_json_intermediate_file): Output {start,end}_column
17079 (read_graph_file): Read end_column.
17081 2019-03-14 Richard Biener <rguenther@suse.de>
17083 PR middle-end/89698
17084 * fold-const.c (operand_equal_p): For INDIRECT_REF check
17085 that the access types are similar.
17087 2019-03-14 Jakub Jelinek <jakub@redhat.com>
17089 PR tree-optimization/89703
17090 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
17091 aren't compatible also with builtin_decl_explicit. Check pure
17092 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
17093 and BUILT_IN_STPNCPY{,_CHK}.
17095 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
17098 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
17099 addr32 prefix to VSIB address for X32.
17100 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
17102 (*avx512pf_gatherpf<mode>df_mask): Likewise.
17103 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
17104 (*avx512pf_scatterpf<mode>df_mask): Likewise.
17105 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
17106 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
17107 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
17108 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
17109 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
17110 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
17111 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
17112 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
17113 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
17114 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
17115 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
17116 (*avx512f_scatterdi<mode>): Likewise.
17118 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
17121 * lra-constraints.c (inherit_in_ebb): Update
17122 potential_reload_hard_regs along with live_hard_regs.
17124 2019-03-13 Jakub Jelinek <jakub@redhat.com>
17127 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
17129 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
17131 2019-03-13 Martin Sebor <msebor@redhat.com>
17133 PR tree-optimization/89662
17134 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
17137 2019-03-13 Richard Biener <rguenther@suse.de>
17139 PR middle-end/89677
17140 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
17141 throw FP expressions at tree-affine.
17143 2019-03-14 Richard Biener <rguenther@suse.de>
17145 * tree-pretty-print.c (dump_generic_node): For -gimple properly
17146 dump negative integer constants using _Literal (type) -num.
17148 2019-03-13 Jakub Jelinek <jakub@redhat.com>
17150 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
17151 nonlocal_value member.
17153 PR middle-end/88588
17154 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
17155 (ipa_simd_modify_function_body): Handle PHIs.
17157 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
17159 * config/s390/s390.c (s390_option_override_internal): Use more
17160 aggressive inlining parameters.
17162 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
17164 * config/s390/3906.md: New file.
17165 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
17166 (LONGRUNNING_THRESHOLD): Remove.
17167 (MAX_SCHED_MIX_SCORE): Decrease.
17168 (MAX_SCHED_MIX_DISTANCE): Decrease.
17169 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
17170 (struct s390_sched_state): New struct to hold scheduling state.
17171 (S390_SCHED_STATE_NORMAL): Remove.
17172 (S390_SCHED_STATE_CRACKED): Remove.
17173 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
17174 (s390_get_sched_attrmask): Use new attribute.
17175 (s390_get_unit_mask): Use new units.
17176 (s390_is_fpd): New function.
17177 (s390_is_fxd): New function.
17178 (s390_is_longrunning): New function.
17179 (s390_sched_score): Use new functions.
17180 (s390_sched_reorder): Likewise.
17181 (s390_sched_variable_issue): Rework and use new functions.
17182 (s390_sched_init): Use new functions.
17183 * config/s390/s390.h (s390_tune_attr): Add z14.
17184 * config/s390/s390.md: Add z14.
17186 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
17188 * config/s390/2964.md: Update pipeline description.
17189 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
17190 (LONGRUNNING_THRESHOLD): Remove.
17191 (LATENCY_FACTOR): Remove.
17192 (s390_get_unit_mask): Add unit.
17193 (s390_sched_score): Use fxd/fpd.
17194 (s390_sched_variable_issue): Use fxd/fpd.
17196 2019-03-12 Martin Liska <mliska@suse.cz>
17198 * config/i386/i386.c: Reword an error message.
17200 2019-03-12 Martin Jambor <mjambor@suse.cz>
17202 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
17203 terminate with newline.
17205 2019-03-12 Jakub Jelinek <jakub@redhat.com>
17208 * config/s390/s390.md (tabort): Use %wd instead of
17209 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
17210 letters and periods.
17211 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
17212 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
17215 PR middle-end/89663
17216 * builtins.c (expand_builtin_int_roundingfn,
17217 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
17218 gcc_unreachable if validate_arglist fails.
17220 2019-03-12 Richard Biener <rguenther@suse.de>
17222 PR tree-optimization/89664
17223 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
17224 free the occurance tree after the early out.
17226 2019-03-11 Jakub Jelinek <jakub@redhat.com>
17228 PR middle-end/89655
17230 * vr-values.c (vr_values::update_value_range): If
17231 old_vr->varying_p (), don't update it, make new_vr also VARYING
17234 2019-03-11 Martin Liska <mliska@suse.cz>
17236 * config/aarch64/aarch64.c (aarch64_override_options_internal):
17237 Fix double string quoting.
17239 2019-03-11 Martin Liska <mliska@suse.cz>
17241 * collect-utils.c (collect_wait): Wrap apostrophes
17242 in gcc internal format with %'.
17243 * collect2.c (main): Likewise.
17244 (scan_prog_file): Likewise.
17245 (scan_libraries): Likewise.
17246 * config/i386/i386.c (ix86_expand_call): Likewise.
17247 (ix86_handle_interrupt_attribute): Likewise.
17248 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17249 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17250 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
17251 * lto-wrapper.c (find_crtoffloadtable): Likewise.
17252 * symtab.c (symtab_node::verify_base): Likewise.
17253 * tree-cfg.c (verify_gimple_label): Likewise.
17254 * tree.c (verify_type_variant): Likewise.
17256 2019-03-11 Martin Liska <mliska@suse.cz>
17258 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
17259 in a string format message and fix GNU coding style.
17260 (expand_builtin_set_thread_pointer): Likewise.
17261 * common/config/aarch64/aarch64-common.c
17262 (aarch64_rewrite_selected_cpu): Likewise.
17263 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
17264 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
17265 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
17266 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
17267 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
17268 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
17269 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
17270 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
17271 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
17272 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
17274 * common/config/riscv/riscv-common.c
17275 (riscv_subset_list::parsing_subset_version): Likewise.
17276 (riscv_subset_list::parse_std_ext): Likewise.
17277 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
17278 (riscv_subset_list::parse): Likewise.
17279 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
17280 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
17281 (aarch64_override_options_internal): Likewise.
17282 (aarch64_validate_mcpu): Likewise.
17283 (aarch64_validate_march): Likewise.
17284 (aarch64_validate_mtune): Likewise.
17285 (aarch64_override_options): Likewise.
17286 * config/alpha/alpha.c (alpha_option_override): Likewise.
17287 * config/arc/arc.c (arc_init): Likewise.
17288 (parse_mrgf_banked_regs_option): Likewise.
17289 (arc_override_options): Likewise.
17290 (arc_expand_builtin_aligned): Likewise.
17291 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
17292 (arm_expand_builtin): Likewise.
17293 * config/arm/arm.c (arm_option_check_internal): Likewise.
17294 (arm_configure_build_target): Likewise.
17295 (arm_option_override): Likewise.
17296 (arm_options_perform_arch_sanity_checks): Likewise.
17297 (arm_handle_cmse_nonsecure_entry): Likewise.
17298 (arm_handle_cmse_nonsecure_call): Likewise.
17299 (arm_tls_referenced_p): Likewise.
17300 (thumb1_expand_prologue): Likewise.
17301 * config/avr/avr.c (avr_option_override): Likewise.
17302 * config/bfin/bfin.c (bfin_option_override): Likewise.
17303 * config/c6x/c6x.c (c6x_option_override): Likewise.
17304 * config/cr16/cr16.c (cr16_override_options): Likewise.
17305 * config/cris/cris.c (cris_option_override): Likewise.
17306 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
17307 * config/darwin-c.c (macosx_version_as_macro): Likewise.
17308 * config/darwin.c (darwin_override_options): Likewise.
17309 * config/frv/frv.c (frv_expand_builtin): Likewise.
17310 * config/h8300/h8300.c (h8300_option_override): Likewise.
17311 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
17312 (ix86_option_override_internal): Likewise.
17313 (warn_once_call_ms2sysv_xlogues): Likewise.
17314 (ix86_expand_prologue): Likewise.
17315 (split_stack_prologue_scratch_regno): Likewise.
17316 (ix86_warn_parameter_passing_abi): Likewise.
17317 * config/ia64/ia64.c (fix_range): Likewise.
17318 * config/m68k/m68k.c (m68k_option_override): Likewise.
17319 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
17320 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
17321 (mips_set_compression_mode): Likewise.
17322 * config/mmix/mmix.c (mmix_option_override): Likewise.
17323 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
17324 * config/msp430/msp430.c (msp430_option_override): Likewise.
17325 * config/nds32/nds32.c (nds32_option_override): Likewise.
17326 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
17327 (nios2_option_override): Likewise.
17328 (nios2_expand_custom_builtin): Likewise.
17329 * config/nvptx/mkoffload.c (main): Likewise.
17330 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
17331 * config/pa/pa.c (fix_range): Likewise.
17332 (pa_option_override): Likewise.
17333 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
17334 (riscv_option_override): Likewise.
17335 * config/rl78/rl78.c (rl78_option_override): Likewise.
17336 * config/rs6000/aix61.h: Likewise.
17337 * config/rs6000/aix71.h: Likewise.
17338 * config/rs6000/aix72.h: Likewise.
17339 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
17340 * config/rs6000/freebsd64.h: Likewise.
17341 * config/rs6000/linux64.h: Likewise.
17342 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
17343 (rs6000_expand_zeroop_builtin): Likewise.
17344 (rs6000_expand_mtfsb_builtin): Likewise.
17345 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
17346 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
17347 (rs6000_invalid_builtin): Likewise.
17348 (rs6000_expand_split_stack_prologue): Likewise.
17349 * config/rs6000/rtems.h: Likewise.
17350 * config/rx/rx.c (valid_psw_flag): Likewise.
17351 (rx_expand_builtin): Likewise.
17352 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17353 * config/s390/s390.c (s390_expand_builtin): Likewise.
17354 (s390_function_profiler): Likewise.
17355 (s390_option_override_internal): Likewise.
17356 (s390_option_override): Likewise.
17357 * config/sh/sh.c (sh_option_override): Likewise.
17358 (sh_builtin_saveregs): Likewise.
17359 (sh_fix_range): Likewise.
17360 * config/sh/vxworks.h: Likewise.
17361 * config/sparc/sparc.c (sparc_option_override): Likewise.
17362 * config/spu/spu.c (spu_option_override): Likewise.
17363 (fix_range): Likewise.
17364 * config/visium/visium.c (visium_option_override): Likewise.
17365 (visium_handle_interrupt_attr): Likewise.
17366 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
17367 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
17368 (dbg_cnt_process_opt): Likewise.
17369 * dwarf2out.c (output_dwarf_version): Likewise.
17370 * except.c (expand_eh_return): Likewise.
17371 * gcc.c (defined): Likewise.
17372 (driver_handle_option): Likewise.
17373 (process_command): Likewise.
17374 (compare_files): Likewise.
17375 (driver::prepare_infiles): Likewise.
17376 (driver::do_spec_on_infiles): Likewise.
17377 (driver::maybe_run_linker): Likewise.
17378 * omp-offload.c (oacc_parse_default_dims): Likewise.
17379 * opts-global.c (handle_common_deferred_options): Likewise.
17380 * opts.c (parse_sanitizer_options): Likewise.
17381 (common_handle_option): Likewise.
17382 (enable_warning_as_error): Likewise.
17383 * passes.c (enable_disable_pass): Likewise.
17384 * plugin.c (parse_plugin_arg_opt): Likewise.
17385 (default_plugin_dir_name): Likewise.
17386 * targhooks.c (default_expand_builtin_saveregs): Likewise.
17387 (default_pch_valid_p): Likewise.
17388 * toplev.c (init_asm_output): Likewise.
17389 (process_options): Likewise.
17390 (toplev::run_self_tests): Likewise.
17391 * tree-cfg.c (verify_gimple_call): Likewise.
17392 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
17393 (tree_inlinable_function_p): Likewise.
17394 * var-tracking.c (vt_find_locations): Likewise.
17396 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
17398 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
17399 only on the else branch.
17401 2019-03-11 Martin Liska <mliska@suse.cz>
17403 * gcov.c (output_intermediate_json_line): Print function
17405 (output_json_intermediate_file): Add new argument.
17406 * doc/gcov.texi: Document the change.
17408 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
17410 PR rtl-optimization/89588
17411 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
17412 explicit unrolling factor more robust.
17414 2019-03-11 Richard Biener <rguenther@suse.de>
17416 PR tree-optimization/89649
17417 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
17418 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
17419 on the prolog and epilog loops.
17420 (vect_loop_versioning): Return copy of loop.
17421 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
17422 on the non-vectorized version of the loop.
17424 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
17427 * config/i386/sse.md (*vec_extractv2di_0_sse):
17428 Add (=r,x) alternative and corresponding splitter.
17430 2019-03-10 Martin Jambor <mjambor@suse.cz>
17432 PR tree-optimization/85762
17433 PR tree-optimization/87008
17434 PR tree-optimization/85459
17435 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
17436 it points to if there is a type changing MEM_REF. Adjust all callers.
17437 (build_accesses_from_assign): Disable total scalarization if
17438 contains_vce_or_bfcref_p returns true through the new parameter, for
17441 2019-03-09 Jakub Jelinek <jakub@redhat.com>
17444 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
17445 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
17448 * common.opt (fdiagnostics-show-labels,
17449 fdiagnostics-show-line-numbers, fdiagnostics-format=,
17450 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
17451 gas-locview-support, ginline-points, ginternal-reset-location-views):
17452 Terminate description text with a dot.
17453 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
17454 * config/mcore/mcore.opt (m210, m340): Likewise.
17455 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
17456 mnops=): Start description text with a capital letter.
17457 * config/arc/arc.opt (msize-level=): Likewise.
17458 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
17459 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
17460 mnewlib): Likewise.
17461 * config/ft32/ft32.opt (msim): Likewise.
17462 (mft32b, mcompress): Likewise. Terminate description text with a dot.
17463 (mnodiv, mnopm): Terminate description text with a dot.
17464 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
17466 * config/i386/i386.opt (prefer_vector_width, instrument_return):
17468 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
17471 PR rtl-optimization/89634
17472 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
17473 are modified in BB_END (e->src) instruction.
17475 2019-03-08 David Malcolm <dmalcolm@redhat.com>
17478 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
17479 messages more amenable to translation, and improve wording.
17481 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
17483 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
17484 ud- and du-chains between phases.
17486 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
17489 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
17490 instead of POLY_INT_CST.
17492 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
17494 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
17497 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
17502 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
17503 (_mm_storeu_si64): Ditto.
17505 2019-03-08 Martin Liska <mliska@suse.cz>
17508 * config/i386/i386.c (ix86_option_override_internal): Disable
17509 jump tables when retpolines are used.
17511 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
17514 * ipa-split.c (execute_split_functions): Do not split
17515 'noinline' or 'section' function.
17517 2019-03-08 Jakub Jelinek <jakub@redhat.com>
17520 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
17521 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
17522 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
17525 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
17526 from diagnostics. Formatting fixes.
17529 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
17530 warn_odr diagnostics.
17533 * lra-constraints.c (process_alt_operands): Avoid one space before
17534 " at the end of line and another after " on another line in a string
17536 * attribs.c (handle_dll_attribute): Likewise.
17537 * config/avr/avr-devices.c (avr_texinfo): Likewise.
17539 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
17540 warning_at or inform messages in G_() if there is no ?:.
17542 PR tree-optimization/89550
17543 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
17544 returned true. Formatting fixes.
17545 (expand_builtin_strnlen): Formatting fixes.
17546 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
17547 if warning_at returned true.
17548 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
17550 2019-03-08 Richard Biener <rguenther@suse.de>
17552 PR middle-end/89578
17553 * cfgloop.h (struct loop): Add owned_clique field.
17554 * cfgloopmanip.c (copy_loop_info): Copy it.
17555 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
17557 * tree-inline.c (copy_loops): Remap owned_clique.
17558 * lto-streamer-in.c (input_cfg): Stream owned_clique.
17559 * lto-streamer-out.c (output_cfg): Likewise.
17561 2019-03-08 Jakub Jelinek <jakub@redhat.com>
17564 * config/darwin.c: Include intl.h.
17565 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
17566 composing the message out of two separate parts.
17568 2019-03-07 Jakub Jelinek <jakub@redhat.com>
17571 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
17572 doesn't start with a capital letter and doesn't end with a dot.
17573 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
17574 with a capital letter.
17575 (ix86_mangle_function_version_assembler_name): Likewise.
17576 (ix86_generate_version_dispatcher_body): Likewise.
17577 (fold_builtin_cpu): Likewise.
17578 (get_builtin_code_for_version): Likewise. Remove extraneous space.
17579 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
17580 translators, wrap full type name in %qs.
17582 PR translation/79999
17583 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
17584 depend clause with source (or sink) modifier.
17585 * omp-expand.c (expand_omp_ordered_sink): Likewise.
17588 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
17589 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
17590 (avx512f_load<mode>_mask): New define_expand.
17591 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
17592 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
17593 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
17594 __builtin_ia32_movess_mask): New builtins.
17595 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
17596 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
17597 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
17598 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
17600 2019-03-07 Martin Jambor <mjambor@suse.cz>
17603 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
17604 for extern inline functions.
17606 2019-03-07 Martin Jambor <mjambor@suse.cz>
17609 * cgraph.h (cgraph_node): New inline method former_thunk_p.
17610 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
17611 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
17612 have multiple callees. At the end check if declarations match as
17613 opposed to cgraph_nodes.
17615 2019-03-07 Martin Liska <mliska@suse.cz>
17617 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
17618 which is equivalent to searching for this in clones chain.
17619 * symtab.c (symtab_node::verify_base): Similarly compare ASM
17620 names with a neighbour and special case first node in a chain.
17622 2019-01-25 Jason Merrill <jason@redhat.com>
17624 PR c++/80916 - spurious "static but not defined" warning.
17625 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
17626 for an internal symbol with DECL_EXTERNAL.
17628 2019-04-07 Richard Biener <rguenther@suse.de>
17630 PR middle-end/89618
17631 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
17632 * tree-inline.c (copy_loops): Simplify.
17634 2019-03-07 Martin Liska <mliska@suse.cz>
17636 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
17638 2019-03-07 Richard Biener <rguenther@suse.de>
17640 PR tree-optimization/89595
17641 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
17642 stmt iterator as reference, take boolean output parameter to
17643 indicate whether the stmt was removed and thus the iterator
17645 (dom_opt_dom_walker::before_dom_children): Re-iterate over
17646 stmts created by folding.
17648 2019-03-07 Jakub Jelinek <jakub@redhat.com>
17651 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
17654 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
17656 PR rtl-optimization/88845
17657 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
17659 * lra.c (remove_scratches_1): New function.
17660 (remove_scratches): Use it.
17661 (lra_emit_move): Likewise.
17663 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
17665 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
17666 unaligned_access variable.
17667 * config/arc/arc.c (arc_override_options): Set unaligned access
17668 default on for HS CPUs.
17669 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
17671 2019-03-06 Martin Liska <mliska@suse.cz>
17673 PR gcov-profile/89577
17674 * doc/gcov.texi: Prefer to use --coverage.
17675 * doc/sourcebuild.texi: Likewise.
17677 2019-03-02 Jason Merrill <jason@redhat.com>
17679 PR c++/86485 - -Wmaybe-unused with empty class ?:
17680 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
17682 2019-03-05 Jakub Jelinek <jakub@redhat.com>
17685 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
17688 PR middle-end/89590
17689 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
17690 exactly one argument.
17692 2019-03-05 Jakub Jelinek <jakub@redhat.com>
17693 Richard Sandiford <richard.sandiford@arm.com>
17695 PR tree-optimization/89570
17696 * match.pd (vec_cond into cond_op simplification): Don't use
17697 get_conditional_internal_fn, use as_internal_fn (cond_op).
17699 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
17702 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
17703 to decide when to split off a non-zero offset from a symbol.
17704 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
17705 in function symbols.
17707 2019-03-05 Richard Biener <rguenther@suse.de>
17709 PR tree-optimization/89594
17710 * tree-if-conv.c (pass_if_conversion::execute): Handle
17711 case where .LOOP_VECTORIZED_FUNCTION was removed.
17713 2019-03-05 Jakub Jelinek <jakub@redhat.com>
17716 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
17717 instead alloca it only when needed with the needed size.
17719 PR tree-optimization/89570
17720 * match.pd (vec_cond into cond_op simplification): Guard with
17721 vectorized_internal_fn_supported_p test and #if GIMPLE.
17723 PR tree-optimization/89566
17724 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
17725 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
17726 Punt if get_user_idx_format succeeds, but idx_format argument is
17727 not provided or doesn't have pointer type, or if idx_args is above
17728 number of provided arguments.
17730 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
17732 PR tree-optimization/89437
17733 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
17735 2019-03-04 Richard Biener <rguenther@suse.de>
17737 PR middle-end/89572
17738 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
17741 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
17743 PR tree-optimization/89487
17744 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
17745 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
17746 (distribute_loop): Don't do runtime alias check if there is non-
17747 addressable data reference.
17748 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
17749 is a register variable.
17751 2019-03-02 Jakub Jelinek <jakub@redhat.com>
17754 * config/arm/arm.md (cmpsi2_addneg): Use
17755 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
17756 If operands[2] is 0 or INT_MIN, force use of subs.
17757 (*compare_scc splitter): Use gen_int_mode.
17758 (*negscc): Likewise.
17759 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
17761 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
17762 Monk Chiang <sh.chiang04@gmail.com>
17764 * common/config/riscv/riscv-common.c: Include sstream.
17765 (riscv_subset_list::to_string): New.
17766 (riscv_arch_str): Likewise.
17767 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
17768 * config.in: Regen.
17769 * config/riscv/riscv-protos.h (riscv_arch_str): New.
17770 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
17771 (riscv_emit_attribute): New.
17772 (riscv_file_start): Emit attribute if needed.
17773 (riscv_option_override): Init riscv_emit_attribute_p.
17774 * config/riscv/riscv.opt (mriscv-attribute): New option.
17775 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
17776 * configure: Regen.
17777 * doc/install.texi: Document --with-riscv-attribute.
17778 * doc/invoke.texi: Document -mriscv-attribute.
17780 * common/config/riscv/riscv-common.c:
17781 Include config/riscv/riscv-protos.h.
17782 (INCLUDE_STRING): Defined.
17783 (RISCV_DONT_CARE_VERSION): Defined.
17784 (riscv_subset_t): Declare.
17785 (riscv_subset_t::riscv_subset_t): New.
17786 (riscv_subset_list): Declare.
17787 (riscv_subset_list::riscv_subset_list): New.
17788 (riscv_subset_list::~riscv_subset_list): Likewise.
17789 (riscv_subset_list::parsing_subset_version): Likewise.
17790 (riscv_subset_list::parse_std_ext): Likewise.
17791 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
17792 (riscv_subset_list::add): Likewise.
17793 (riscv_subset_list::lookup): Likewise.
17794 (riscv_subset_list::xlen): Likewise.
17795 (riscv_subset_list::parse): Likewise.
17796 (riscv_supported_std_ext): Likewise.
17797 (current_subset_list): Likewise.
17798 (riscv_parse_arch_string): Using riscv_subset_list::parse to
17801 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
17803 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17804 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
17805 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
17807 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
17809 PR rtl-optimization/85899
17810 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
17811 fallthru edges leading to the exit block.
17813 2019-03-01 Tamar Christina <tamar.christina@arm.com>
17816 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
17817 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
17819 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
17821 PR tree-optimization/89535
17822 * tree-vect-stmts.c (vectorizable_call): Record the vector types
17823 for each operand. Calculate the fallback choice for mask operands
17824 and pass it to vect_get_vec_def_for_operand.
17826 2019-03-01 Richard Biener <rguenther@suse.de>
17828 PR middle-end/89541
17829 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
17830 get virtual operands.
17831 (get_expr_operands): Handle CONST_DECL like other decls.
17833 2019-03-01 Jakub Jelinek <jakub@redhat.com>
17835 PR middle-end/89503
17836 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
17837 on DECL_P and EXPR_P.
17839 2019-03-01 Richard Biener <rguenther@suse.de>
17841 PR middle-end/89497
17842 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
17843 argument, defaulted to zero.
17844 * passes.c (execute_function_todo): Pass down SSA update flags
17845 to cleanup_tree_cfg.
17846 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
17847 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
17849 (cleanup_tree_cfg): Get and pass down SSA update flags.
17851 2019-03-01 Jakub Jelinek <jakub@redhat.com>
17854 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
17855 early_lto_debug argument.
17857 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
17859 PR tree-optimization/89536
17860 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
17861 only whether bit #0 of the value is 0 instead of the entire value.
17863 2019-02-28 Marek Polacek <polacek@redhat.com>
17865 PR c++/87068 - missing diagnostic with fallthrough statement.
17866 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
17867 at the end of a seq, save its location to walk_stmt_info.
17868 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
17871 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
17874 * tree.c (find_atomic_core_type): Move ahead in file.
17875 (check_base_type): Correctly compare alignments of atomic types.
17877 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
17880 * config/i386/i386.c (get_builtin_code_for_version): Identify
17881 Westmere from PCLMUL, instead of AES.
17883 2019-02-28 Jakub Jelinek <jakub@redhat.com>
17886 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
17887 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
17890 2019-02-28 Tamar Christina <tamar.christina@arm.com>
17893 * config/aarch64/aarch64-option-extensions.def: Document it.
17894 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
17897 2019-02-28 Jakub Jelinek <jakub@redhat.com>
17900 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
17901 builtins if they don't have a single scalar floating point argument.
17904 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
17906 PR rtl-optimization/89490
17907 * varasm.c (get_block_for_section): Bail out for mergeable sections.
17908 (default_use_anchors_for_symbol_p, output_object_block): Assert the
17909 block section is not mergeable.
17911 2019-02-27 Jakub Jelinek <jakub@redhat.com>
17914 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
17915 old define_insn to ...
17916 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
17917 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
17918 Rename old define_insn to ...
17919 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
17920 (thumb2_casesi_internal_pic): New define_expand. Rename old
17922 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
17923 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
17924 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
17926 2019-02-27 Richard Biener <rguenther@suse.de>
17929 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
17931 2019-02-27 Richard Biener <rguenther@suse.de>
17933 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
17936 2019-02-27 Richard Biener <rguenther@suse.de>
17939 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
17940 parameter, prefix section name with .gnu.debuglto_ if true.
17941 (dwarf2out_finish): Pass false to output_comdat_type_unit.
17942 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
17944 2019-02-27 Richard Biener <rguenther@suse.de>
17947 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
17948 rather than on use_debug_types, doing what output_die does.
17949 (value_format): Likewise.
17951 2019-02-27 Martin Jambor <mjambor@suse.cz>
17952 Martin Sebor <msebor@redhat.com>
17954 * doc/invoke.texi (Warning Options): Reword description of
17955 -Wno-absolute-value.
17957 2019-02-27 Jakub Jelinek <jakub@redhat.com>
17959 PR tree-optimization/89280
17960 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
17961 builtin_setjmp_setup_bb): New functions.
17962 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
17963 When visiting __builtin_setjmp_setup block, queue in special
17964 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
17965 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
17966 from visited after the loop if they don't have any visited successor
17969 2018-02-26 Steve Ellcey <sellcey@marvell.com>
17971 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
17973 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
17975 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17978 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
17979 with types other than sizetype/ssizetype.
17981 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
17983 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
17984 (enum sparc_processor_type): ...this.
17985 (enum sparc_code_model_type): New enumeration type.
17986 (enum sparc_memory_model_type): Tweak comments.
17987 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
17989 (mcmodel): Use sparc_code_model enumeration and variable.
17990 (sparc_code_model): New enumeration.
17991 (mdebug): Add Undocumented marker.
17992 * config/sparc/sparc.h (enum cmodel): Delete.
17993 (sparc_cmodel): Likewise.
17994 (TARGET_CM_MEDLOW): Adjust to above renaming.
17995 (TARGET_CM_MEDMID): Likewise.
17996 (TARGET_CM_MEDANY): Likewise.
17997 (TARGET_CM_EMBMEDANY): Likewise.
17998 * config/sparc/sparc.c (sparc_cmodel): Delete.
17999 (sparc_option_override): Remove string/value mapping support for the
18000 code model. Move code and memory model support to after the handling
18001 of target flags. Do private machine setup last.
18002 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
18003 (sparc_legitimize_reload_address): Likewise.
18004 (sparc_output_mi_thunk): Likewise.
18005 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
18007 2019-02-26 Jakub Jelinek <jakub@redhat.com>
18009 PR tree-optimization/89500
18010 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
18011 (handle_builtin_strlen): Remove noncst_bound variable. Always
18012 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
18013 cst if the first cst bytes starting at x are known to be non-zero,
18014 even if the string is not zero terminated. Don't try to modify
18015 *si for strnlen. Update strlen_to_stridx only for strlen or if
18016 we can prove strnlen returns the same value as strlen would.
18018 2019-02-26 Martin Liska <mliska@suse.cz>
18020 * alloc-pool.h (struct pool_usage): Remove extra
18022 * bitmap.h (struct bitmap_usage): Likewise.
18023 * ggc-common.c (struct ggc_usage): Likewise.
18024 * mem-stats.h (struct mem_usage): Likewise.
18025 (mem_alloc_description::dump): Print dash lines
18026 here and repeat header at the end of a table report.
18027 It's then more readable.
18028 * tree-phinodes.c (phinodes_print_statistics): Make
18029 horizontal alignment.
18030 * tree-ssanames.c (ssanames_print_statistics): Likewise.
18031 * vec.c (struct vec_usage): Remove extra print_dash_line.
18032 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
18034 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
18036 * doc/extend.texi (__builtin_object_size):
18037 Use @pxref instead of @xref inside parenthesis.
18038 (__builtin_has_attribute): Add missing comma after @xref.
18039 (__builtin_object_size): Ditto.
18040 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
18042 2019-02-26 Jeff Law <law@redhat.com>
18044 PR rtl-optimization/87761
18045 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
18046 detect obviously dead insns and delete them.
18048 2019-02-26 Richard Biener <rguenther@suse.de>
18050 PR tree-optimization/89505
18051 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
18052 to handle restrict pointed-to vars with multiple subvars
18055 2019-02-26 Richard Biener <rguenther@suse.de>
18057 PR tree-optimization/89489
18058 * tree-parloops.c (create_loop_fn): Copy over last_clique.
18060 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
18062 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
18063 and move around comment.
18064 <BIT_AND_EXPR>: Likewise.
18065 <BIT_NOT_EXPR>: Add specific handling for boolean types.
18067 2019-02-26 Jakub Jelinek <jakub@redhat.com>
18070 * config/i386/i386.c (remove_partial_avx_dependency): Call
18071 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
18072 after changing possibly many instructions to use that pseudo. Fix up
18073 insertion of v4sf_const0 setter at the start of bb.
18075 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
18078 * doc/extend.texi (Variadic Pointer Args): New section.
18080 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
18081 Martin Sebor <msebor@gmail.com>
18083 * common.opt (Wattribute-alias): Likewise.
18084 * doc/invoke.texi (Option Summary): List general form of
18085 -Wattribute-alias=. List positive form of -Wmissing-attributes.
18086 (-Wmissing-attributes): Invert entry, rewrite and correct default.
18087 Add cross-references.
18088 (-Wattribute-alias): Rewrite and correct default. Mention
18089 considered attributes (same as for -Wmissing-attributes).
18091 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
18093 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
18094 (_mm_cvtpd_ps): Likewise.
18095 (_mm_cvttpd_epi32): Likewise.
18098 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
18099 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
18102 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
18104 2019-02-25 Tamar Christina <tamar.christina@arm.com>
18107 * common/config/aarch64/aarch64-common.c
18108 (struct aarch64_option_extension): Add is_synthetic.
18109 (all_extensions): Use it.
18110 (TARGET_OPTION_INIT_STRUCT): Define hook.
18111 (struct gcc_targetm_common): Moved to end.
18112 (all_extensions_by_on): New.
18113 (opt_ext_cmp, typedef opt_ext): New.
18114 (aarch64_option_init_struct): New.
18115 (aarch64_contains_opt): New.
18116 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
18117 * config/aarch64/aarch64-option-extensions.def
18118 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
18119 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
18120 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
18121 Set is_synthetic to false.
18122 (crypto): Set is_synthetic to true.
18123 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
18126 2019-02-25 Tamar Christina <tamar.christina@arm.com>
18128 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
18129 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
18130 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
18131 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
18132 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
18133 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
18134 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
18135 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
18137 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
18138 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
18139 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
18140 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
18141 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
18142 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
18143 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
18144 vfmlsl_laneq_high_f16): ... To this.
18145 * config/arm/neon.md: Update comments.
18147 2019-02-25 Tamar Christina <tamar.christina@arm.com>
18149 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
18150 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
18151 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
18152 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
18153 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
18154 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
18155 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
18156 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
18158 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
18159 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
18160 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
18161 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
18162 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
18163 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
18164 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
18165 vfmlslq_laneq_high_f16): ... To this.
18167 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
18169 PR rtl-optimization/86096
18170 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
18171 comparing mw_order values.
18173 2019-02-25 Jakub Jelinek <jakub@redhat.com>
18176 * config/arm/arm.md (*subsi3_carryin_const): Use
18177 arm_neg_immediate_operand predicate instead of
18178 arm_not_immediate_operand, "L" constraint instead of "K" and
18179 print it using %n2 instead of %B2.
18180 (*subsi3_carryin_const0): New define_insn.
18181 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
18182 instead of arm_not_operand and "I" constraint instead of "K" and
18183 print it using %n3 instead of %B2. Instead of using match_dup 2 add
18184 another match_operand and in the condition check that it is negation
18186 (*subsi3_carryin_compare_const0): New define_ins.
18187 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
18188 *subsi3_carryin_const.
18189 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
18190 split into *subsi3_carryin_compare_const0 if the highpart is zero.
18193 * config/arm.vfp.md (*negdf2_vfp): Use
18194 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
18195 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
18197 2019-02-24 Jakub Jelinek <jakub@redhat.com>
18199 PR rtl-optimization/89445
18200 * simplify-rtx.c (simplify_ternary_operation): Don't use
18201 simplify_merge_mask on operands that may trap.
18202 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
18203 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
18204 second operand is CONST_VECTOR, check if any element could be zero.
18205 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
18206 their operands can trap.
18208 2019-02-23 Martin Sebor <msebor@redhat.com>
18210 * gimple-ssa-sprintf.c (target_strtol): Rename...
18211 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
18212 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
18213 check for range error.
18215 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
18218 * opts-common.c (prune_options): Also prune joined switches
18219 with Negative and RejectNegative.
18220 * config/i386/i386.opt (march=): Add Negative(march=).
18221 (mtune=): Add Negative(mtune=).
18222 * doc/options.texi: Document Negative used together with Joined
18223 and RejectNegative.
18225 2019-02-22 Martin Sebor <msebor@redhat.com>
18227 * doc/extend.texi (Other Builtins): Add
18228 __builtin_is_constant_evaluated.
18230 2019-02-22 Richard Biener <rguenther@suse.de>
18232 PR tree-optimization/87609
18233 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
18235 2019-02-22 Jeff Law <law@redhat.com>
18237 PR rtl-optimization/87761
18238 * config/mips/mips.md: Add new combiner pattern to recognize
18239 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
18241 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
18244 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
18245 destination register in peepholes generating patterns for ADDS/SUBS.
18246 (add<mode>3_compare0,
18247 *addsi3_compare0_uxtw, add<mode>3_compareC,
18248 add<mode>3_compareV_imm, add<mode>3_compareV,
18249 *adds_<optab><ALLX:mode>_<GPI:mode>,
18250 *subs_<optab><ALLX:mode>_<GPI:mode>,
18251 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
18252 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
18253 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
18254 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
18255 sub<mode>3_compare1): Allow stack pointer for source register.
18256 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
18258 2019-02-22 Martin Sebor <msebor@redhat.com>
18260 PR tree-optimization/88993
18261 PR tree-optimization/88853
18262 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
18264 (sprintf_dom_walker::call_info::is_string_func): New helper.
18265 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
18266 for formatted string functions.
18267 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
18269 2019-02-22 Martin Sebor <msebor@redhat.com>
18272 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
18273 unreachable subexpressions.
18275 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
18276 Hongtao Liu <hongtao.liu@intel.com>
18277 Sunil K Pandey <sunil.k.pandey@intel.com>
18280 * config/i386/i386-passes.def: Add
18281 pass_remove_partial_avx_dependency.
18282 * config/i386/i386-protos.h
18283 (make_pass_remove_partial_avx_dependency): New.
18284 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
18286 (pass_data_remove_partial_avx_dependency): New.
18287 (pass_remove_partial_avx_dependency): Likewise.
18288 (make_pass_remove_partial_avx_dependency): Likewise.
18289 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
18290 (*extendsfdf2): Add avx_partial_xmm_update.
18291 (truncdfsf2): Likewise.
18292 (*float<SWI48:mode><MODEF:mode>2): Likewise.
18293 (SF/DF conversion splitters): Disabled for TARGET_AVX.
18295 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
18297 PR middle-end/85598
18298 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
18301 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
18304 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
18305 (PTA_SKYLAKE): Add PTA_AES.
18306 (PTA_GOLDMONT): Likewise.
18308 2019-02-22 Sudakshina Das <sudi.das@arm.com>
18310 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
18311 instruction if enabled.
18312 (aarch64_override_options): Remove reference to return address key.
18314 2019-02-22 Richard Biener <rguenther@suse.de>
18316 PR tree-optimization/89440
18317 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
18318 not necessary assert.
18320 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
18323 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
18324 (oacc_replace_fn_attrib_attr): ... this new function.
18325 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
18326 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
18328 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18330 * config/arm/arm-cpus.in (ares): Rename to...
18331 (neoverse-n1): ... This. Add ares as alias.
18332 * config/arm/arm-tables.opt: Regenerate.
18333 * config/arm/arm-tune.md: Likewise.
18334 * doc/invoke.txt (ARM Options): Document neoverse-n1.
18336 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18338 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
18339 * config/aarch64/aarch64-tune.md: Regenerate.
18340 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
18342 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18344 * config/aarch64/aarch64.c (ares_tunings): Rename to...
18345 (neoversen1_tunings): ... This.
18346 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
18347 (neoverse-n1): New CPU.
18348 * config/aarch64/aarch64-tune.md: Regenerate.
18349 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
18351 2019-02-22 Richard Biener <rguenther@suse.de>
18353 PR middle-end/87609
18354 * cfghooks.h (dependence_hash): New typedef.
18355 (struct copy_bb_data): New type.
18356 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
18357 (duplicate_block): Likewise.
18358 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
18359 (copy_bbs): Create and pass down copy_bb_data.
18360 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
18361 (rtl_duplicate_bb): Likewise.
18362 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
18363 remap dependence info.
18365 2019-02-22 Richard Biener <rguenther@suse.de>
18367 PR tree-optimization/87609
18368 * tree-core.h (tree_base): Document special clique values.
18369 * tree-inline.c (remap_dependence_clique): Do not use the
18370 special clique value of one.
18371 (maybe_set_dependence_info): Use clique one.
18372 (clear_dependence_clique): New callback.
18373 (compute_dependence_clique): Clear clique one from all refs
18374 before assigning it (again).
18376 2019-02-21 Martin Sebor <msebor@redhat.com>
18378 * doc/extend.texi (__clear_cache): Correct signature.
18380 2019-02-21 Ian Lance Taylor <iant@golang.org>
18383 * varasm.c (decode_addr_const): Call lookup_constant_def rather
18384 than output_constant_def.
18385 (add_constant_to_table): New static function.
18386 (output_constant_def): Call add_constant_to_table.
18387 (tree_output_constant_def): Likewise.
18389 2019-02-21 Jakub Jelinek <jakub@redhat.com>
18392 * builtins.c (fold_builtin_arith_overflow): If first two args are
18393 INTEGER_CSTs, set intres and ovfres to constants rather than calls
18396 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
18399 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
18400 error for -mindirect-branch/-mfunction-return with incompatible
18403 2019-02-21 Jakub Jelinek <jakub@redhat.com>
18406 * constraints.md (q): Remove.
18407 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
18410 2019-02-21 Martin Jambor <mjambor@suse.cz>
18413 * omp-general.c (omp_extract_for_data): Removed a duplicate call
18414 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
18415 (omp_adjust_for_condition): ...here. Added necessary parameters.
18416 * omp-general.h (omp_adjust_for_condition): Updated declaration.
18417 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
18418 proper values to new parameters of omp_adjust_for_condition.
18420 2019-02-20 Jakub Jelinek <jakub@redhat.com>
18422 PR middle-end/89412
18423 * expr.c (expand_assignment): If result is a MEM, use change_address
18424 instead of simplify_gen_subreg.
18426 2019-02-20 Jakub Jelinek <jakub@redhat.com>
18427 David Malcolm <dmalcolm@redhat.com>
18429 PR middle-end/89091
18430 * fold-const.c (decode_field_reference): Return NULL_TREE if
18431 lang_hooks.types.type_for_size returns NULL. Check it before
18432 overwriting *exp_. Use return NULL_TREE instead of return 0.
18434 2019-02-20 Jakub Jelinek <jakub@redhat.com>
18436 PR middle-end/88074
18437 PR middle-end/89415
18438 * toplev.c (do_compile): Double the emin/emax exponents to workaround
18441 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
18444 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
18445 TARGET_SSE in addition to TARGET_SSE_MATH.
18447 (ix86_excess_precision): Ditto.
18448 (ix86_float_exceptions_rounding_supported_p): Ditto.
18449 (use_rsqrt_p): Ditto.
18450 * config/i386/sse.md (rsqrt<mode>2): Ditto.
18452 2019-02-20 David Malcolm <dmalcolm@redhat.com>
18455 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
18456 linenum_arith_t when determining if two adjacent line spans are
18457 close enough to merge.
18458 (diagnostic_show_locus): Use linenum_arith_t when iterating over
18459 lines within each line_span.
18461 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
18464 * lra-constraints.c(uses_hard_regs_p): Fix handling of
18465 paradoxical SUBREGS.
18467 2019-02-20 Li Jia He <helijia@linux.ibm.com>
18470 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
18471 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
18472 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
18475 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
18477 * config/gcn/gcn.c (print_operand): Fix typo.
18479 2019-02-19 Richard Biener <rguenther@suse.de>
18481 PR middle-end/88074
18482 * toplev.c (do_compile): Initialize mpfr's exponent range
18483 based on available float modes.
18485 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
18487 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
18488 as long as the epilogue isn't completed.
18490 2019-02-18 Martin Sebor <msebor@redhat.com>
18492 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
18493 __has_cpp_attribute, and __has_include.
18495 2019-02-18 Martin Sebor <msebor@redhat.com>
18497 * doc/invoke.texi (-Wreturn-type): Correct and expand.
18499 2019-02-18 Martin Sebor <msebor@redhat.com>
18501 PR middle-end/89294
18502 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
18504 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
18506 2019-02-18 Richard Biener <rguenther@suse.de>
18508 PR tree-optimization/89296
18509 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
18510 of no-warning flag to cases that might emit the bogus warning.
18512 2019-02-18 Jakub Jelinek <jakub@redhat.com>
18515 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
18517 * config/arm/vfp.md (*movdi_vfp): Likewise.
18518 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
18519 "q" constraint for operands[0].
18522 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
18523 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
18524 pattern in a temporary buffer.
18525 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
18526 than 64-operands[2].
18529 * config/s390/s390.c (s390_indirect_branch_attrvalue,
18530 s390_indirect_branch_settings): Define unconditionally.
18531 (s390_set_current_function): Likewise, but guard the whole body except
18532 the s390_indirect_branch_settings call with
18533 #if S390_USE_TARGET_ATTRIBUTE.
18534 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
18536 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
18537 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
18538 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
18539 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
18540 HOST_WIDE_INT_1U instead of 1ULL.
18541 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
18542 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
18543 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
18544 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
18546 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
18549 2019-02-18 Martin Jambor <mjambor@suse.cz>
18551 PR tree-optimization/89209
18552 * tree-sra.c (create_access_replacement): New optional parameter
18553 reg_tree. Use it as a type if non-NULL and access type is not of
18555 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
18556 to create_access_replacement.
18557 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
18558 Check lacc is non-NULL before attempting to re-create it on the RHS.
18560 2019-02-18 Martin Liska <mliska@suse.cz>
18563 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
18565 (symbol_table::free_edge): Recycle m_summary_id.
18566 * cgraph.h (get_summary_id): New.
18567 (symbol_table::release_symbol): Set m_summary_id to -1
18569 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
18570 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
18571 function_summary to fast_function_summary.
18572 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
18573 * ipa-pure-const.c (class funct_state_summary_t):
18574 Switch from function_summary to fast_function_summary.
18575 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
18576 (class ipa_ref_opt_summary_t): Switch from function_summary
18577 to fast_function_summary.
18578 * symbol-summary.h (class function_summary_base): New class
18579 that is created from base of former function_summary.
18580 (function_summary_base::unregister_hooks): New.
18581 (class function_summary): Inherit from function_summary_base.
18582 (class call_summary_base): New class
18583 that is created from base of former call_summary.
18584 (class call_summary): Inherit from call_summary_base.
18585 (struct is_same): New.
18586 (class fast_function_summary): New summary class.
18587 (class fast_call_summary): New summary class.
18588 * vec.h (vec_safe_grow_cleared): New function.
18590 2019-02-18 Martin Liska <mliska@suse.cz>
18592 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
18593 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
18594 * doc/tm.texi: Document new target hook.
18595 * doc/tm.texi.in: Likewise.
18596 * target.def: Add new target macro.
18597 * gcc.c (find_fortran_preinclude_file): Do not search multilib
18600 2019-02-17 Alan Modra <amodra@gmail.com>
18603 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
18604 output reg on add insn.
18605 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
18607 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
18610 * config/i386/sse.md (ssedoublemode): Remove V4HI.
18611 (PMULHRSW): Likewise.
18612 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
18614 (ssse3_pmulhrswv4hi3): New expander.
18616 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
18618 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
18619 MMX. Add isa attribute.
18621 2019-02-16 Jakub Jelinek <jakub@redhat.com>
18623 PR rtl-optimization/66152
18624 * builtins.h (c_readstr): Declare.
18625 * builtins.c (c_readstr): Remove forward declaration. Add
18626 null_terminated_p argument, if false, read all bytes from the
18627 string instead of stopping after '\0'.
18628 * expr.c (string_cst_read_str): New function.
18629 (store_expr): Use string_cst_read_str instead of
18630 builtin_strncpy_read_str. Try to store by pieces the whole
18631 exp_len first, and only if that fails, split it up into
18632 store by pieces followed by clear_storage. Formatting fix.
18634 * config/i386/i386.md (*movqi_internal): Remove static from
18635 buf variable. Use output_asm_insn (buf, operands); return "";
18636 instead of return buf;.
18637 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
18638 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
18639 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
18641 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
18643 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
18644 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
18645 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
18646 (CC1_SPEC): Likewise.
18647 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
18649 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
18651 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
18652 the base address on 64-bit strict-alignment platforms.
18654 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
18656 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
18658 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
18660 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
18662 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
18664 PR rtl-optimization/88308
18665 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
18666 on copied instruction.
18668 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
18670 * final.c (insn_current_reference_address): Replace test on JUMP_P
18671 with test on jump_to_label_p.
18672 * config/visium/visium-passes.def: New file.
18673 * config/visium/t-visium (PASSES_EXTRA): Define.
18674 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
18675 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
18676 (TRAMPOLINE_ALIGNMENT): Define.
18677 * config/visium/visium.c (visium_option_override): Do not register
18678 the machine-specific reorg pass here.
18679 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
18681 (output_branch): Adjust threshold for long branch instruction.
18682 * config/visium/visium.md (cpu): Move around.
18683 (length): Adjust for the GR6.
18685 2019-02-15 Richard Biener <rguenther@suse.de>
18686 Jakub Jelinek <jakub@redhat.com>
18688 PR tree-optimization/89278
18689 * tree-loop-distribution.c: Include tree-eh.h.
18690 (generate_memset_builtin, generate_memcpy_builtin): Call
18691 rewrite_to_non_trapping_overflow on builtin->size before passing it
18692 to force_gimple_operand_gsi.
18694 2019-02-15 Jakub Jelinek <jakub@redhat.com>
18697 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
18699 * opth-gen.awk: Likewise.
18701 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
18703 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
18704 Enable MMX, SSE and SSE2 by default.
18705 * config/i386/i386.c (ix86_option_override_internal): Do not
18706 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
18708 2019-02-14 Jakub Jelinek <jakub@redhat.com>
18710 PR rtl-optimization/89354
18711 * combine.c (make_extraction): Punt if extraction_mode is narrower
18714 2019-02-14 Maya Rashish <coypu@sdf.org>
18716 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
18717 * config/netbsd-d.c: New file.
18718 * config/t-netbsd: Add netbsd-d.o
18720 2018-02-14 Steve Ellcey <sellcey@marvell.com>
18722 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
18723 affects_type_identity to true for aarch64_vector_pcs.
18724 (aarch64_comp_type_attributes): New function.
18725 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
18727 2019-02-14 Tamar Christina <tamar.christina@arm.com>
18730 * config/arm/iterators.md (ANY64): Add V4HF.
18732 2019-02-14 Martin Liska <mliska@suse.cz>
18734 PR rtl-optimization/89242
18735 * dce.c (delete_unmarked_insns): Call free_dominance_info we
18736 process a transformation.
18738 2019-02-14 Jakub Jelinek <jakub@redhat.com>
18740 PR tree-optimization/89314
18741 * fold-const.c (fold_binary_loc): Cast strlen argument to
18742 const char * before dereferencing it. Formatting fixes.
18744 PR middle-end/89284
18745 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
18747 2019-02-13 Ian Lance Taylor <iant@golang.org>
18749 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
18750 and set current index for other optimizations.
18752 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
18754 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
18755 nonimmediate_operand as operand 2 predicate.
18756 (vec_set<VF2_512_256:mode>_0): Ditto.
18757 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
18758 (*vec_concatv2si): Remove alternative 2.
18759 (*vec_concatv4si_0): Use vm constraint for alternative 0.
18760 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
18761 (vec_concatv2di): Split alternatives 4,5,6 to ...
18762 (*vec_concatv2di_0) ... new pattern.
18764 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
18767 * config/arm/arm.c (ldm_stm_operation_p) Set
18768 addr_reg_in_reglist correctly for first register.
18769 (load_multiple_sequence): Remove dead base check.
18770 (gen_ldm_seq): Correctly set write_back for Thumb-1.
18772 2019-02-13 Tamar Christina <tamar.christina@arm.com>
18775 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
18776 Expose as @aarch64_pred_mov.
18777 * config/aarch64/aarch64.c (aarch64_classify_address):
18778 Use expand_insn which legitimizes operands.
18780 2019-02-13 Martin Liska <mliska@suse.cz>
18782 * builtins.h (expand_builtin_with_bounds): Remove declaration.
18783 * calls.c (struct arg_data): Remove special_slot, pointer_arg
18784 and pointer_offset fields.
18785 (initialize_argument_information): Remove usage of dead
18787 * cgraph.h (struct cgraph_thunk_info): Remove
18788 add_pointer_bounds_args.
18789 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
18791 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
18793 * config/i386/i386.c (ix86_function_arg_advance): Remove
18795 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
18796 (def_builtin): Remove usage of dead fields.
18797 (ix86_add_new_builtins): Likewise.
18798 * ipa-fnsummary.c (compute_fn_summary): Likewise.
18799 * ipa-icf.c (sem_function::equals_wpa): Likewise.
18800 (sem_function::init): Likewise.
18801 (sem_variable::merge): Likewise.
18802 * ipa-visibility.c (function_and_variable_visibility): Likewise.
18803 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
18804 * lto-cgraph.c (lto_output_node): Likewise.
18805 (lto_output_varpool_node): Likewise.
18806 (input_node): Likewise.
18807 (input_varpool_node): Likewise.
18808 * lto-streamer-out.c (lto_output): Likewise.
18809 * tree-inline.c (expand_call_inline): Remove usage of
18811 * tree-inline.h (struct copy_body_data): Likewise.
18812 * varpool.c (varpool_node::dump): Likewise.
18814 2019-02-13 Jakub Jelinek <jakub@redhat.com>
18816 PR middle-end/89303
18817 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
18818 into pt->vars_contains_escaped_heap instead of setting
18819 pt->vars_contains_escaped_heap to it.
18821 PR middle-end/89281
18822 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
18823 INTVAL (size), compare it to GET_MODE_MASK instead of
18824 1 << GET_MODE_BITSIZE.
18827 * config/i386/predicates.md (x86_64_immediate_operand): Allow
18828 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
18831 2019-02-13 Martin Liska <mliska@suse.cz>
18834 * cfgrtl.c (remove_barriers_from_footer): New function.
18835 (try_redirect_by_replacing_jump): Use it.
18836 (cfg_layout_redirect_edge_and_branch): Likewise.
18838 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
18840 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
18841 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
18842 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
18843 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
18844 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
18845 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
18847 * config/rs6000/rs6000.c (builtin_function_type)
18848 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
18849 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
18850 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
18851 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
18852 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
18854 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
18856 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
18857 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
18859 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
18862 * config/i386/i386.md (*movoi_internal_avx): Revert revision
18863 268678 and revision 268657.
18864 (*movti_internal): Likewise.
18866 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
18869 * config/s390/s390.c (s390_decompose_address): Update comment.
18870 (s390_check_qrst_address): Reject invalid address forms after
18873 2019-02-12 Martin Liska <mliska@suse.cz>
18876 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
18877 we need default values of funct_state for a function that
18880 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
18882 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
18883 the object to pick the size of stores on strict-alignment platforms.
18885 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
18886 (*movdi_insn_sp32): Likewise.
18887 (*movdi_insn_sp64): Likewise.
18889 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
18892 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
18893 types that needs constructiong.
18894 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
18896 2019-02-12 Richard Biener <rguenther@suse.de>
18898 PR tree-optimization/89253
18899 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
18900 duplicate the loop.
18902 2019-02-11 David Malcolm <dmalcolm@redhat.com>
18905 * input.c (selftest::test_line_offset_overflow): New selftest.
18906 (selftest::input_c_tests): Call it.
18908 2019-02-11 Martin Sebor <msebor@redhat.com>
18910 PR tree-optimization/88771
18911 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
18912 when -Wstringop-overflow is set.
18913 (builtin_memref::builtin_memref): Adjust excessive upper bound
18914 only when lower bound is not excessive.
18915 (maybe_diag_overlap): Detect and diagnose excessive bounds via
18916 -Wstringop-ovefflow.
18917 (maybe_diag_offset_bounds): Rename...
18918 (maybe_diag_access_bounds): ...to this.
18919 (check_bounds_or_overlap): Adjust for name change above.
18921 2019-02-11 Martin Sebor <msebor@redhat.com>
18924 * builtins.c (max_object_size): Move from here...
18925 * builtins.h (max_object_size): ...and here...
18926 * tree.c (max_object_size): ...to here...
18927 * tree.h (max_object_size): ...and here.
18929 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
18931 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
18932 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
18933 for correct semantics.
18935 2019-02-11 Alan Modra <amodra@gmail.com>
18937 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
18938 -mlongcall and -mpltseq.
18939 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
18940 (RS/6000 and PowerPC Options <-mpltseq>): Document.
18941 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
18942 * config/rs6000/sysv4.opt (mpltseq): New option.
18943 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
18944 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
18945 support is lacking. Don't allow -mpltseq with -mbss-plt.
18946 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
18947 -mpltseq given for ELFv1.
18948 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
18949 Only use UNSPEC_PLTSEQ for inline PLT calls.
18950 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
18951 use UNSPEC_PLTSEQ for inline PLT calls.
18952 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
18953 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
18954 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
18955 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
18956 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
18957 (pltseq_mtctr_<mode>): Likewise.
18959 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18961 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
18963 * configure: Regenerate.
18965 2019-02-11 Jakub Jelinek <jakub@redhat.com>
18968 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
18971 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
18973 * function.c (assign_parm_setup_block): Use the stored
18974 size, not the passed size, when allocating stack-space,
18975 also for a parameter with alignment larger than
18976 MAX_SUPPORTED_STACK_ALIGNMENT.
18978 2019-02-11 Martin Liska <mliska@suse.cz>
18981 * ipa-cp.c (build_toporder_info): Remove usage of a param.
18982 * ipa-inline.c (inline_small_functions): Likewise.
18983 * ipa-pure-const.c (propagate_pure_const): Likewise.
18984 (propagate_nothrow): Likewise.
18985 * ipa-reference.c (propagate): Likewise.
18986 * ipa-utils.c (struct searchc_env): Remove unused field.
18987 (searchc): Always search across AVAIL_INTERPOSABLE.
18988 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
18989 the only called IPA pure const can properly not propagate
18990 across interposable boundary.
18991 * ipa-utils.h (ipa_reduced_postorder): Remove param.
18993 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
18995 * config/nds32/nds32.md (call_internal, call_value_internal,
18996 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
18998 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
19000 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
19003 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
19005 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
19008 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
19010 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
19012 2019-02-10 Jakub Jelinek <jakub@redhat.com>
19014 PR tree-optimization/89268
19015 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
19016 if preds is non-NULL.
19018 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
19021 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
19024 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
19026 * config/nds32/nds32.md (trap): New pattern.
19028 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
19030 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
19033 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
19035 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
19038 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
19040 * ipa-visibility.c (localize_node): Also do not localize
19041 LDPR_PREVAILING_DEF_IRONLY_EXP.
19043 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
19046 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
19047 instead of type_with_linkage.
19049 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
19052 * params.def (uninlined-function-insns, uninlined-function-time,
19053 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
19054 bound so we don't get overflows.
19056 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
19058 * config/rs6000/rs6000-string.c (expand_compare_loop,
19059 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
19062 2019-02-09 Jakub Jelinek <jakub@redhat.com>
19064 PR middle-end/89246
19065 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19066 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
19067 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
19069 2019-02-09 Alan Modra <amodra@gmail.com>
19072 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
19073 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
19076 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
19078 PR middle-end/88560
19079 * lra-constraints.c (process_alt_operands): Don't increase reject
19080 for memory when offset memory is required.
19082 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
19084 * config/s390/vector.md: Implement vector copysign.
19086 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
19088 * expr.c (expand_constructor): Correct indentations.
19090 2019-02-08 Richard Biener <rguenther@suse.de>
19092 PR tree-optimization/89247
19093 * tree-if-conv.c: Include tree-cfgcleanup.h.
19094 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
19095 (tree_if_conversion): Pass through predicate vector.
19096 (pass_if_conversion::execute): Do CFG cleanup and SSA update
19097 inline, see if any if-converted loops we refrece in
19098 LOOP_VECTORIZED calls vanished and fixup.
19099 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
19101 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
19103 * config/s390/constraints.md (jdd): New constraint.
19105 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
19108 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
19109 upper 16 vector registers without TARGET_AVX512VL.
19110 (*movti_internal): Likewise.
19112 2019-02-08 Jakub Jelinek <jakub@redhat.com>
19114 PR rtl-optimization/89234
19115 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
19116 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
19117 (copy_reg_eh_region_note_backward): Likewise.
19119 2019-02-08 Richard Biener <rguenther@suse.de>
19121 PR middle-end/89223
19122 * tree-data-ref.c (initialize_matrix_A): Fail if constant
19123 doesn't fit in HWI.
19124 (analyze_subscript_affine_affine): Handle failure from
19125 initialize_matrix_A.
19127 2019-02-08 Jakub Jelinek <jakub@redhat.com>
19129 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
19132 2019-02-07 David Malcolm <dmalcolm@redhat.com>
19134 PR tree-optimization/86637
19135 PR tree-optimization/89235
19136 * tree-vect-loop.c (optimize_mask_stores): Add an
19137 auto_purge_vect_location sentinel to ensure that vect_location is
19139 * tree-vectorizer.c
19140 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
19141 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
19142 to ensure that vect_location is purged on exit.
19143 (pass_slp_vectorize::execute): Likewise, replacing the manual
19145 * tree-vectorizer.h (class auto_purge_vect_location): New class.
19147 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19149 * config/aarch64/iterators.md (max_opp): New code_attr.
19150 (USMAX): New code iterator.
19151 * config/aarch64/predicates.md (aarch64_smin): New predicate.
19152 (aarch64_smax): Likewise.
19153 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
19154 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
19157 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
19160 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
19161 for TARGET_AVX512VL.
19162 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
19164 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
19166 * config/s390/s390-builtin-types.def: Add new types.
19167 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
19168 (s390_vec_xlw4): Make the memory operand into a const pointer.
19169 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
19171 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
19172 a new vector type with the alignment of the scalar memory operand.
19174 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
19175 Jakub Jelinek <jakub@redhat.com>
19178 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
19179 arm_count_ldrdstrd_insns): New declarations.
19180 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
19182 (valid_operands_ldrd_strd): New function.
19183 (arm_count_ldrdstrd_insns): New function.
19184 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
19185 sets instead of single DImode set and define new insns to match this.
19187 2019-02-07 Tamar Christina <tamar.christina@arm.com>
19189 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
19190 Make it a C initializer.
19192 2019-02-07 Tamar Christina <tamar.christina@arm.com>
19195 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
19197 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19199 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
19200 Use neon_dot<q> for type.
19201 (neon_<sup>dot_lane<vsi2qi>): Likewise.
19203 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19205 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
19206 Use neon_dot<q> for type.
19207 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
19208 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
19210 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
19212 PR rtl-optimization/89225
19213 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
19216 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
19218 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
19219 after restoring registers saved to allocate the frame on Windows.
19221 2019-02-06 Richard Biener <rguenther@suse.de>
19223 PR tree-optimization/89182
19224 * graphite.h (cached_scalar_evolution_in_region): Declare.
19225 * graphite.c (struct seir_cache_key): New.
19226 (struct sese_scev_hash): Likewise.
19227 (seir_cache): New global.
19228 (cached_scalar_evolution_in_region): New function.
19229 (graphite_transform_loops): Allocate and release seir_cache.
19230 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
19231 cached_scalar_evolution_in_region.
19232 * graphite-scop-detection.c (scop_detection::can_represent_loop):
19234 (scop_detection::graphite_can_represent_expr: Use
19235 cached_scalar_evolution_in_region.
19236 (scop_detection::stmt_simple_for_scop_p): Likewise.
19237 (find_params_in_bb): Likewise.
19238 (gather_bbs::before_dom_children): Likewise.
19239 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
19240 (add_loop_constraints): Likewise.
19242 2019-02-06 Jakub Jelinek <jakub@redhat.com>
19244 PR middle-end/89210
19245 * fold-const-call.c (fold_const_vec_convert): Pass true as last
19246 operand to new_unary_operation only if both element types are integral
19247 and it isn't a widening conversion. Return NULL_TREE if
19248 new_unary_operation failed.
19250 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
19253 * config/s390/s390.md: Remove load and test FP splitter.
19255 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
19258 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
19259 expand_compare_loop, expand_block_compare_gpr,
19260 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
19261 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
19262 #include "profile-count.h" and "predict.h" for types and functions
19263 needed to work with REG_BR_PROB notes.
19265 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
19268 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
19269 for the long branch case.
19271 2019-02-05 Jakub Jelinek <jakub@redhat.com>
19274 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
19275 can throw, non-call exceptions are enabled and we can't delete
19276 dead exceptions or alter cfg. Set must_clean if
19277 delete_insn_and_edges returns true, don't set it blindly for calls.
19278 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
19280 PR rtl-optimization/89195
19281 * combine.c (make_extraction): For MEMs, don't extract bytes outside
19282 of the original MEM.
19284 2019-02-05 Martin Liska <mliska@suse.cz>
19286 PR gcov-profile/89000
19287 * gcov.c (function_summary): Remove argument.
19288 (file_summary): New function.
19289 (print_usage): Replace tabs with spaces.
19290 (generate_results): Use new function file_summary.
19292 2019-02-05 Jakub Jelinek <jakub@redhat.com>
19295 * optabs.c (prepare_cmp_insn): Pass x and y to
19296 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
19298 2019-02-05 Richard Biener <rguenther@suse.de>
19300 PR middle-end/89150
19301 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
19302 (struct bitmap_element): Drop chain_prev so we properly recurse on
19303 the prev member, supporting tree views.
19304 (struct bitmap_head): GTY skip the obstack member.
19306 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
19309 * doc/extend.texi (Vector Extensions): Add an example of using vector
19310 types together with x86 intrinsics.
19312 2019-02-04 Alan Modra <amodra@gmail.com>
19314 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
19315 str[] size to 160, and comment.
19317 2019-02-04 Alan Modra <amodra@gmail.com>
19319 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
19320 (rs6000_pltseq_template): Guard output of TLS markers with
19321 TARGET_TLS_MARKERS.
19322 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
19323 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
19324 to use inline PLT sequences.
19325 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
19326 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
19327 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
19329 2019-02-04 Martin Liska <mliska@suse.cz>
19332 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
19333 out when ipa_fn_summaries does not contain entry for callee.
19335 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
19337 * config/sparc/sparc.h: Remove superfluous blank lines.
19338 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
19339 (got_register_rtx): ...this.
19340 (sparc_got): Adjust to above renaming.
19341 (sparc_tls_got): Likewise.
19342 (sparc_delegitimize_address): Likewise.
19343 (sparc_output_mi_thunk): Likewise.
19344 (sparc_init_pic_reg): Likewise.
19345 (save_local_or_in_reg_p): Fix test on the GOT register.
19346 (USE_HIDDEN_LINKONCE): Move around.
19347 (get_pc_thunk_name): Likewise.
19348 (gen_load_pcrel_sym): Likewise.
19349 (load_got_register): Likewise.
19351 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
19353 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
19354 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
19356 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
19358 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
19359 into consideration.
19361 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
19363 * config.gcc (with_nds32_lib, glibc):
19364 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
19365 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
19366 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
19368 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
19371 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
19372 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
19373 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
19374 (*rcpsf2_sse): Ditto.
19375 (*rsqrtsf2_sse): Ditto.
19376 (sse4_1_round<mode<2): Ditto.
19378 2019-02-03 Richard Biener <rguenther@suse.de>
19381 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
19384 2019-02-02 Jakub Jelinek <jakub@redhat.com>
19386 PR middle-end/87887
19387 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19388 Punt with warning on aggregate return or argument types. Ignore
19389 type/mode checking for uniform arguments.
19391 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
19393 * combine.c (try_combine): Do not print "Can't combine" messages unless
19394 printing failed combination attempts.
19396 2019-02-01 Martin Jambor <mjambor@suse.cz>
19399 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
19400 segment and global segment variables before making them static.
19402 2019-02-01 Martin Jambor <mjambor@suse.cz>
19404 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
19405 missed optimization dump with dump_enabled_p.
19407 2019-02-01 Richard Biener <rguenther@suse.de>
19409 PR middle-end/88597
19410 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
19411 the instantiate cache.
19412 (instantiate_scev_binary): Elide second operand procesing
19413 if equal to the first.
19414 * tree-chrec.c (chrec_contains_symbols): Add visited set.
19415 (chrec_contains_undetermined): Likewise.
19416 (tree_contains_chrecs): Likewise.
19418 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
19420 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
19422 2019-02-01 Jakub Jelinek <jakub@redhat.com>
19424 PR tree-optimization/89143
19425 * wide-int-range.h (wide_int_range_absu): Declare.
19426 * wide-int-range.cc (wide_int_range_absu): New function.
19427 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
19429 PR tree-optimization/88107
19430 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
19431 instead of assertion that eh_region_outermost is non-NULL, if it
19432 is NULL, set *ALL to true and return NULL.
19433 (move_sese_region_to_fn): Adjust caller, if all is set, call
19434 duplicate_eh_regions with NULL region.
19436 2019-02-01 Richard Biener <rguenth@suse.de>
19438 PR rtl-optimization/88593
19439 * mode-switching.c (optimize_mode_switching): Free dominators before
19440 calling cleanup_cfg.
19442 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
19444 PR tree-optimization/88932
19445 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
19447 2019-01-31 Jakub Jelinek <jakub@redhat.com>
19449 PR middle-end/89137
19450 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
19451 bogus clang warning.
19453 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
19456 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
19457 alternative to avoid partial SSE register stall for TARGET_AVX.
19458 (truncdfsf2): Ditto.
19459 (sse4_1_round<mode>2): Ditto.
19461 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
19463 PR tree-optimization/89008
19464 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
19465 process anything of the form X * 0.
19467 2019-01-31 Richard Biener <rguenther@suse.de>
19469 PR tree-optimization/89135
19470 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
19471 with abnormal preds.
19473 2019-01-31 Jakub Jelinek <jakub@redhat.com>
19476 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
19477 always_inline callees into no_sanitize_address callers.
19479 2019-01-31 Richard Biener <rguenther@suse.de>
19481 PR rtl-optimization/89115
19482 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
19484 2019-01-30 Martin Sebor <msebor@redhat.com>
19487 * doc/extend.texi (cast to a union): Correct and expand.
19489 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
19491 PR rtl-optimization/87246
19492 * lra-constraints.c (simplify_operand_subreg): Reload memory
19493 in subreg if the address became invalid.
19495 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
19498 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
19499 Disable for little-endian.
19501 2019-01-30 Richard Biener <rguenther@suse.de>
19503 PR rtl-optimization/89115
19504 * opts.c (default_options_optimization): Reduce
19505 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
19506 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
19509 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
19511 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
19512 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
19513 type of vector element when vec_extract is implemented by direct
19516 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
19518 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
19520 2019-01-30 Richard Biener <rguenther@suse.de>
19522 PR tree-optimization/89111
19523 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
19524 canonicalization to appropriately sized access types.
19526 2019-01-30 Jakub Jelinek <jakub@redhat.com>
19529 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
19530 for arguments to functions that are TU-local and shouldn't be
19531 referenced by assembly.
19533 2019-01-30 Ulrich Drepper <drepper@redhat.com>
19535 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
19538 2019-01-29 Martin Sebor <msebor@redhat.com>
19541 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
19543 2019-01-29 Jakub Jelinek <jakub@redhat.com>
19547 * omp-simd-clone.c (simd_clone_clauses_extract)
19548 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
19549 OMP_CLAUSE_ALIGNED_ALIGNMENT.
19551 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
19553 * config.gcc: Force .init_array for ARC.
19555 2019-01-29 Richard Biener <rguenther@suse.de>
19558 * dwarf2out.c (collect_skeleton_dies): New helper.
19559 (copy_decls_for_unworthy_types): Call it.
19560 (build_abbrev_table): Assert we do not try to replace
19561 DW_AT_signature refs with local refs.
19563 2019-01-28 Jakub Jelinek <jakub@redhat.com>
19565 PR middle-end/89002
19566 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
19567 for lastprivate/linear IV, push gimplify context around gimplify_assign
19568 and, if it needed any temporaries, pop it into a gimple bind around the
19571 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
19573 * common.opt (-Wattribute-alias): Remove "no-" from name.
19574 Make -Wattribute-alias command line option and
19575 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
19577 2019-01-28 Jakub Jelinek <jakub@redhat.com>
19580 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
19581 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
19583 (bmi2): Add missing @opindex.
19584 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
19585 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
19586 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
19587 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
19588 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
19589 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
19590 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
19591 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
19592 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
19593 xsavec, xsaveopt and xsaves options.
19595 2019-01-28 Richard Biener <rguenther@suse.de>
19598 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
19601 2019-01-28 Richard Biener <rguenther@suse.de>
19603 PR tree-optimization/88739
19604 * tree-cfg.c (verify_types_in_gimple_reference): Verify
19605 BIT_FIELD_REFs only are applied to mode-precision operands
19606 when they are integral.
19607 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
19608 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
19609 BIT_FIELD_REFs of non-mode-precision integral operands.
19611 2019-01-27 Jakub Jelinek <jakub@redhat.com>
19614 * config/i386/sse.md
19615 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
19616 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
19617 first constants in pairs are multiples of 2. Formatting fixes.
19618 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
19619 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
19620 first constants in each quadruple are multiples of 4. Formatting fixes.
19622 2019-01-26 Martin Jambor <mjambor@suse.cz>
19625 * tree-inline.c: Include tree-cfgcleanup.h.
19626 (delete_unreachable_blocks_update_callgraph): Move...
19627 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
19628 ...here, make externally visible, make second argument bool, adjust
19630 * tree-cfgcleanup.c: Include cgraph.h.
19631 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
19633 * ipa-prop.c: Include tree-cfgcleanup.h.
19634 (ipcp_transform_function): Call
19635 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
19637 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
19639 PR rtl-optimization/88846
19640 * ira.c (process_set_for_memref_referenced_p): New.
19641 (memref_referenced_p): Add new param. Use
19642 process_set_for_memref_referenced_p. Add new switch cases.
19643 (memref_used_between_p): Pass new arg to memref_referenced_p.
19645 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
19648 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
19649 argument ABI_BREAK. Set to true if the calculated alignment has
19650 changed in gcc-9. Check bit-fields for their base type alignment.
19651 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
19652 (aarch64_function_arg_boundary): Likewise.
19653 (aarch64_gimplify_va_arg_expr): Likewise.
19655 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
19657 PR middle-end/89037
19658 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
19659 instead of accessing TREE_INT_CST_ELT directly.
19661 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
19663 * doc/sourcebuild.texi (Environment attributes): Add fenv and
19664 fenv_exceptions description.
19666 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
19668 PR rtl-optimization/87763
19669 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
19670 Allow SUBREG when matching CC_NZmode compare.
19672 2019-01-25 Richard Biener <rguenther@suse.de>
19674 PR tree-optimization/89049
19675 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
19676 Look at the pattern stmt to determine if the stmt is vectorized.
19678 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
19680 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
19681 (pred_mov<mode>): Handle all-register forms using both a new
19682 alternative and a split.
19684 2019-01-25 Richard Biener <rguenther@suse.de>
19686 PR tree-optimization/86865
19687 * graphite-scop-detection.c (scop_detection::can_represent_loop):
19688 Reject non-do-while loops.
19690 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
19692 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
19693 * config/rs6000/constraints.md (Q constraint): Use REG_P.
19694 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
19695 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
19696 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
19697 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
19698 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
19699 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
19700 vlogical_operand, gpc_reg_operand, int_reg_operand,
19701 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
19702 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
19703 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
19704 (save_world_operation, restore_world_operation, lmw_operation,
19705 stmw_operation): Use MEM_P and REG_P.
19706 (tie_operand): Use MEM_P.
19707 (vrsave_operation, crsave_operation): Use REG_P.
19708 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
19709 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
19710 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
19711 (call_operand): Use HARD_REGISTER_P.
19712 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
19714 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
19715 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
19716 quad_aligned_load_p, replace_swapped_aligned_store,
19717 recombine_lvx_pattern, replace_swapped_aligned_load,
19718 recombine_stvx_pattern): Use MEM_P.
19719 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
19720 Use MEM_P and SYMBOL_REF_P.
19721 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
19722 (insn_is_swappable_p): Use REG_P and MEM_P.
19723 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
19724 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
19726 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
19727 Use CONST_DOUBLE_P.
19728 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
19730 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
19731 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
19732 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
19733 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
19735 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
19736 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
19737 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
19738 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
19739 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
19740 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
19741 rs6000_split_logical_di): Use CONST_INT_P.
19742 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
19743 REG_P and SYMBOL_REF_P.
19744 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
19745 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
19746 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
19747 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
19748 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
19749 (small_data_operand, print_operand_address): Use CONST_INT_P and
19751 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
19752 (rs6000_init_hard_regno_mode_ok, direct_move_p):
19753 Use HARD_REGISTER_NUM_P.
19754 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
19755 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
19756 SUBREG_P and SYMBOL_REF_P.
19757 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
19758 and HARD_REGISTER_NUM_P.
19759 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
19761 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
19762 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
19764 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
19765 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
19766 find_addr_reg): Use REG_P.
19767 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
19768 (rs6000_emit_le_vsx_move): Use SUBREG_P.
19769 (offsettable_ok_by_alignment, constant_pool_expr_p,
19770 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
19771 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
19772 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
19773 rs6000_assemble_integer, create_TOC_reference,
19774 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
19775 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
19776 (rs6000_split_vec_extract_var): Use reg_or_subregno.
19777 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
19778 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
19779 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
19780 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
19781 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
19782 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
19783 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
19784 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
19785 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
19786 and cbranch<mode>4): Use CONST_INT_P.
19787 (multiple define_splits): Use REG_P and SUBREG_P.
19788 (define_expands call, call_value): Use MEM_P.
19789 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
19790 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
19791 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
19792 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
19793 and HARD_REGISTER_NUM_P.
19794 (multiple define_splits): Use HARD_REGISTER_NUM_P.
19796 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
19798 PR rtl-optimization/88948
19799 * rtl.h (prepare_copy_insn): New prototype.
19800 * gcse.c (prepare_copy_insn): New function, split out from
19801 process_insert_insn.
19802 (process_insert_insn): Use prepare_copy_insn.
19803 * store-motion.c (replace_store_insn): Use prepare_copy_insn
19804 instead of gen_move_insn.
19806 2019-01-24 Jakub Jelinek <jakub@redhat.com>
19809 * config/i386/i386.c (ix86_pic_register_p): Return true for
19810 UNSPEC_SET_GOT too.
19812 PR tree-optimization/88964
19813 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
19814 punt if HONOR_SNANS (chrec).
19816 PR middle-end/89015
19817 * tree-nested.c (convert_nonlocal_reference_stmt,
19818 convert_local_reference_stmt, convert_tramp_reference_stmt,
19819 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
19820 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
19821 or GIMPLE_OMP_TASK.
19823 PR tree-optimization/89027
19824 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
19825 for "omp simd array" variables.
19827 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
19830 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
19831 force the alignment of m_val.
19833 2019-01-24 Richard Biener <rguenther@suse.de>
19836 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
19837 When in "legacy" debug mode make sure to reset self-origins.
19839 2019-01-24 Martin Liska <mliska@suse.cz>
19841 PR gcov-profile/88994
19842 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
19843 result will be always smaller or equal to the original.
19844 * gcov.c (mangle_name): Fix else branch where we should
19845 also copy to PTR and shift the pointer.
19847 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
19849 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
19850 * vr-values.c (find_case_label_ranges): Fix a comment typo.
19852 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
19854 * common/config/i386/i386-common.c
19855 (OPTION_MASK_ISA_ENQCMD_SET,
19856 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
19857 (ix86_handle_option): Handle -menqcmd.
19858 * config.gcc (enqcmdintrin.h): New header file.
19859 * config/i386/cpuid.h (bit_ENQCMD): New bit.
19860 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19862 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
19864 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
19865 __builtin_ia32_enqcmds): New builtins.
19866 * config/i386/i386-c.c (__ENQCMD__): New macro.
19867 * config/i386/i386-option.c (ix86_target_string): Add
19869 (ix86_valid_target_attribute_inner_p): Likewise.
19870 * config/i386/i386-expand.c
19871 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
19872 IX86_BUILTIN_ENQCMDS.
19873 * config/i386/i386.h (TARGET_ENQCMD): New.
19874 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
19875 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
19876 (movdir64b_<mode>): Parameterize to enable share expansion code
19877 with ENQCMD in function ix86_expand_builtin.
19878 * config/i386/i386.opt: Add -menqcmd.
19879 * config/i386/immintrin.h: Include enqcmdintrin.h.
19880 * config/i386/enqcmdintrin.h: New intrinsic file.
19881 * doc/invoke.texi: Add -menqcmd.
19883 2019-01-23 Bin Cheng <bin.cheng@arm.com>
19884 Steve Ellcey <sellcey@marvell.com>
19887 * recog.c (address_operand): Return false on wrong mode for address.
19888 (constrain_operands): Check for mode with 'p' constraint.
19890 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
19893 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
19894 Disparage MMX alternative.
19895 (sse2_cvtpd2pi): Ditto.
19896 (sse2_cvttpd2pi): Ditto.
19898 2019-01-23 David Malcolm <dmalcolm@redhat.com>
19901 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
19902 use-after-free of the result of
19903 aarch64_get_extension_string_for_isa_flags.
19905 2019-01-23 Jakub Jelinek <jakub@redhat.com>
19908 * doc/extend.texi: Document break and continue behavior in
19909 statement expressions.
19911 2019-01-23 Richard Biener <rguenther@suse.de>
19913 PR tree-optimization/89008
19914 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
19915 not leave another stray operand.
19917 2019-01-23 Jakub Jelinek <jakub@redhat.com>
19919 * BASE-VER: Bump to 9.0.1.
19921 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
19923 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
19924 thunk that returns by reference, use the type of the return object
19925 of the thunk instead of that of the alias to build the dereference.
19927 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
19929 * config/arc/atomic.md: Add operand to DMB instruction.
19931 2019-01-23 Jakub Jelinek <jakub@redhat.com>
19933 PR tree-optimization/88964
19934 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
19935 build_zero_cst instead of build_int_cst. Return false for loop
19936 invariants which honor signed zeros.
19938 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
19940 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
19942 2019-01-22 Jakub Jelinek <jakub@redhat.com>
19945 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
19946 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
19947 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
19949 PR middle-end/88968
19950 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
19951 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
19954 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
19955 Disable for little endian.
19957 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
19960 * config/arm/arm.c (arm_needs_double_word_align): Check
19961 DECL_BIT_FIELD_TYPE.
19963 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
19964 H.J. Lu <hongjiu.lu@intel.com>
19967 * config/i386/i386-builtin.def: Add mask2 to all builtin
19968 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
19970 * config/i386/i386.c (BDESC): Add mask2 to the definition.
19971 (BDESC_FIRST): Likewise.
19972 (define_builtin): Add an argument for mask2. Updated to handle
19973 both ix86_isa_flags and ix86_isa_flags2.
19974 (define_builtin_const): Likewise.
19975 (define_builtin_pure): Likewise.
19976 (define_builtin2): Deleted.
19977 (define_builtin_const2): Likewise.
19978 (builtin_description): Add a member, mask2.
19979 (bdesc_*): Add mask2 to builtin initializations.
19980 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
19981 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
19983 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
19985 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
19988 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
19991 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
19994 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
19995 alignment is dominated by a bitfield with 64-bit aligned base type.
19996 (arm_function_arg): Emit a warning if the alignment has changed since
19997 earlier GCC releases.
19998 (arm_function_arg_boundary): Likewise.
19999 (arm_setup_incoming_varargs): Likewise.
20001 2019-01-22 Richard Biener <rguenther@suse.de>
20003 PR tree-optimization/88862
20004 * graphite-scop-detection.c
20005 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
20007 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
20009 * doc/extend.tex (AMD GCN Function Attributes): New section.
20010 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
20011 * doc/invoke.texi (AMD GCN Options): New section.
20012 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
20014 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
20016 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
20017 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
20019 2019-01-22 Jakub Jelinek <jakub@redhat.com>
20021 PR tree-optimization/88044
20022 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
20023 is false in the first iteration, but !every_iteration, return false
20024 instead of true with niter->niter zero.
20026 PR rtl-optimization/88904
20027 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
20028 any nonequal registers before processing BB_END (b).
20031 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
20033 (expand_binop_directly, expand_doubleword_clz,
20034 expand_doubleword_popcount, expand_ctz, expand_ffs,
20035 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
20037 PR rtl-optimization/49429
20039 PR rtl-optimization/86334
20041 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
20042 addressable from here...
20043 (emit_block_op_via_libcall): ... to here.
20045 2019-01-22 Richard Biener <rguenther@suse.de>
20047 * tree-vect-loop.c (vect_analyze_loop_operations): Use
20048 auto_vec for cost vector to fix memleak.
20049 (vectorize_fold_left_reduction): Properly gather SLP defs.
20050 (vectorizable_comparison): Do not swap operands to properly
20053 2019-01-22 Alan Modra <amodra@gmail.com>
20056 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
20057 stays a reg. Allow a const_int.
20058 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
20059 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
20060 (IS_NOMARK_TLSGETADDR): Define.
20061 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
20062 (rs6000_output_tlsargs): New function.
20063 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
20064 __tls_get_addr call takes an arg.
20065 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
20066 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
20068 (call_value_nonlocal_sysv): ..or here, delete split.
20069 (tls_gdld_nomark): Delete.
20070 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
20071 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
20072 (call_value_nonlocal_sysv): Likewise.
20073 (call_value_nonlocal_sysv_secure): Likewise.
20074 (call_value_nonlocal_aix): Likewise.
20075 (call_value_indirect_aix): Likewise.
20076 (call_value_indirect_elfv2): Likewise.
20077 (call_value_local32, call_value_local64): Disable for no-mark tls.
20078 (call_value_local_aix): Likewise.
20080 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
20083 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
20084 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
20086 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
20088 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
20089 string contents as hash_map keys.
20091 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
20094 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
20095 for rvalue context. Handle rvalues correctly. Use min_align_of_type
20096 instead of TYPE_ALIGN.
20097 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
20098 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
20099 pointer from TYPE_STUB_DECL.
20101 2019-01-21 Richard Biener <rguenther@suse.de>
20103 PR tree-optimization/88934
20104 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
20105 at the possibly non-constant operand.
20106 (vect_get_constant_vectors): Adjust.
20108 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
20111 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
20112 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
20113 instead of _X86INTRIN_H_INCLUDED.
20114 * onfig/i386/clwbintrin.h: Likewise.
20115 * config/i386/pkuintrin.h: Likewise.
20116 * config/i386/prfchwintrin.h: Likewise.
20117 * config/i386/rdseedintrin.h: Likewise.
20118 * config/i386/wbnoinvdintrin.h: Likewise.
20119 * config/i386/xsavecintrin.h: Likewise.
20120 * config/i386/xsavesintrin.h: Likewise.
20121 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
20122 * config/i386/xsaveintrin.h: Likewise.
20123 * config/i386/xsaveoptintrin.h: Likewise.
20124 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
20125 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
20126 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
20127 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
20128 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
20129 * config/i386/immintrin.h: Here.
20131 2019-01-20 Martin Jambor <mjambor@suse.cz>
20134 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
20135 with aa_walk_budget.
20136 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
20137 aa_walk_budget_p parameter.
20138 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
20139 walk. Updated all callers.
20140 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
20141 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
20143 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
20144 parameter info. Extract info from fbi. Pass fbi to recursive calls
20145 and to unmodified_parm.
20146 (phi_result_unknown_predicate): New parameter fbi, removed parameter
20147 info, updated call to will_be_nonconstant_expr_predicate.
20148 (param_change_prob): New parameter fbi, limit AA walking.
20149 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
20150 calls to various above functions.
20151 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
20152 parameter. Use it to limit AA walking.
20153 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
20154 fbi, limit AA walk.
20155 (detect_type_change): New parameter fbi, pass it on to
20156 detect_type_change_from_memory_writes.
20157 (detect_type_change_ssa): Likewise.
20158 (aa_overwalked): Removed.
20159 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
20160 accordingly, adjust to the neew AA limiting scheme.
20161 (parm_ref_data_preserved_p): Likewise.
20162 (ipa_compute_jump_functions_for_edge): Adjust call to
20164 (ipa_analyze_call_uses): Likewise.
20165 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
20166 (ipa_analyze_node): Initialize aa_walk_budget.
20167 (ipcp_transform_function): Likewise.
20168 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
20169 to get_dynamic_type.
20171 2019-01-19 Jakub Jelinek <jakub@redhat.com>
20173 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
20174 outside of #if CHECKING_P code.
20176 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
20178 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
20179 New function, split out from...
20180 (loop_versioning::analyze_stride): ...here.
20181 (loop_versioning::find_per_loop_multiplication): Use gassign.
20182 (loop_versioning::analyze_term_using_scevs): Return a success code.
20183 (loop_versioning::analyze_arbitrary_term): New function.
20184 (loop_versioning::analyze_address_fragment): Use
20185 analyze_arbitrary_term if all else fails.
20187 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
20190 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
20193 2019-01-18 Richard Biener <rguenther@suse.de>
20195 PR tree-optimization/88903
20196 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
20197 scalar stmts a SLP shift amount is composed of when detecting
20200 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
20203 * config/arm/arm-cpus.in (mp): New feature.
20204 (sec): New feature.
20205 (fgroup ARMv7ve): Add mp and sec features.
20206 (arch armv7-a): Add options to allow mp and sec extensions.
20207 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
20208 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
20209 extenstions to the base architecture.
20210 (cpu cortex-a8): Add sec extension to the base architecture.
20211 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
20212 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
20213 variants down to the base v7-a varaint.
20214 * config/arm/t-multilib (v7_a_arch_variants): New variable.
20215 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
20216 of permitted extensions for -march=armv7-a and for
20217 -mcpu=generic-armv7-a.
20219 2019-01-18 Martin Liska <mliska@suse.cz>
20221 * params.def: Fix comment.
20222 * tree-profile.c (gimple_init_gcov_profiler): Bump function
20224 (gimple_gen_ic_func_profiler): Likewise.
20226 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20228 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
20229 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
20230 and put in error checks for stack protector guard options.
20231 (aarch64_stack_protect_guard): New.
20232 (TARGET_STACK_PROTECT_GUARD): Define.
20233 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
20234 (reg_stack_protect_address<mode>): New.
20235 (stack_protect_set): Adjust for SSP_GLOBAL.
20236 (stack_protect_test): Likewise.
20237 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
20238 (-mstack-protector-guard): Likewise.
20239 (-mstack-protector-guard-offset): Likewise.
20241 2019-01-18 Jakub Jelinek <jakub@redhat.com>
20243 PR tree-optimization/86214
20244 * tree-inline.h (struct copy_body_data): Add
20245 add_clobbers_to_eh_landing_pads member.
20246 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
20247 (copy_edges_for_bb): Call it if EH edge destination is <
20248 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
20249 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
20250 if flag_stack_reuse != SR_NONE and clear it afterwards.
20252 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
20255 * doc/install.texi (with-multilib-list): Document for aarch64.
20257 2019-01-18 Jakub Jelinek <jakub@redhat.com>
20260 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
20261 (("..."))) with ("...").
20263 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
20265 * doc/extend.texi (Built-in Functions for Memory Model Aware
20266 Atomic Operations): Document atomic fetch and nand.
20268 2019-01-18 Martin Liska <mliska@suse.cz>
20269 Richard Biener <rguenther@suse.de>
20271 PR middle-end/88587
20272 * cgraph.h (create_version_clone_with_body): Add new argument
20274 * cgraphclones.c (cgraph_node::create_version_clone): Add
20275 DECL_ATTRIBUTES to a newly created decl. And call
20276 valid_attribute_p so that proper cl_target_optimization_node
20277 is set for the newly created declaration.
20278 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
20280 (expand_target_clones): Do not call valid_attribute_p, it must
20282 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
20285 2019-01-17 Jakub Jelinek <jakub@redhat.com>
20288 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
20289 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
20290 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
20292 2019-01-17 Martin Sebor <msebor@redhat.com>
20294 PR middle-end/88273
20295 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
20296 Handle anti-ranges the same as no range at all.
20298 2018-01-17 Steve Ellcey <sellcey@cavium.com>
20300 * config/aarch64/aarch64.c (cgraph.h): New include.
20301 (intl.h): New include.
20302 (supported_simd_type): New function.
20303 (currently_supported_simd_type): Ditto.
20304 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
20305 (aarch64_simd_clone_adjust): Ditto.
20306 (aarch64_simd_clone_usable): Ditto.
20307 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
20308 (TARGET_SIMD_CLONE_ADJUST): Ditto.
20309 (TARGET_SIMD_CLONE_USABLE): Ditto.
20310 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
20311 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
20314 2019-01-17 Martin Sebor <msebor@redhat.com>
20316 PR tree-optimization/88800
20317 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
20318 NO_WARNING bit here. Avoid folding out-of-bounds calls.
20319 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
20320 redundant argument. Add new argument and issue diagnostics under
20321 its control. Detect out-of-bounds access even with warnings
20323 (check_bounds_or_overlap): Change return type. Add argument.
20324 (wrestrict_dom_walker::check_call): Adjust.
20325 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
20326 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
20327 check_bounds_or_overlap's return value.
20328 (handle_builtin_stxncpy): Same.
20329 (handle_builtin_strcat): Same.
20331 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20332 Kwok Cheung Yeung <kcy@codesourcery.com>
20333 Julian Brown <julian@codesourcery.com>
20334 Tom de Vries <tom@codesourcery.com>
20336 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
20338 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20340 * doc/sourcebuild.texi: Document dg-require-effective-target
20341 llvm_binutils and offload_gcn.
20343 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20344 Kwok Cheung Yeung <kcy@codesourcery.com>
20345 Julian Brown <julian@codesourcery.com>
20346 Tom de Vries <tom@codesourcery.com>
20348 * doc/sourcebuild.texi: Document dg-required-effective-target
20351 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20352 Kwok Cheung Yeung <kcy@codesourcery.com>
20353 Julian Brown <julian@codesourcery.com>
20354 Tom de Vries <tom@codesourcery.com>
20355 Jan Hubicka <hubicka@ucw.cz>
20356 Martin Jambor <mjambor@suse.cz>
20358 * config.gcc: Add amdgcn*-*-amdhsa configuration.
20359 * configure.ac: Check for dlopen.
20360 * configure: Regenerate.
20362 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20363 Kwok Cheung Yeung <kcy@codesourcery.com>
20364 Julian Brown <julian@codesourcery.com>
20365 Tom de Vries <tom@codesourcery.com>
20366 Jan Hubicka <hubicka@ucw.cz>
20367 Martin Jambor <mjambor@suse.cz>
20369 * common/config/gcn/gcn-common.c: New file.
20370 * config/gcn/driver-gcn.c: New file.
20371 * config/gcn/gcn-builtins.def: New file.
20372 * config/gcn/gcn-hsa.h: New file.
20373 * config/gcn/gcn-modes.def: New file.
20374 * config/gcn/gcn-opts.h: New file.
20375 * config/gcn/gcn-passes.def: New file.
20376 * config/gcn/gcn-protos.h: New file.
20377 * config/gcn/gcn-run.c: New file.
20378 * config/gcn/gcn-tree.c: New file.
20379 * config/gcn/gcn.c: New file.
20380 * config/gcn/gcn.h: New file.
20381 * config/gcn/gcn.opt: New file.
20382 * config/gcn/t-gcn-hsa: New file.
20384 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20385 Kwok Cheung Yeung <kcy@codesourcery.com>
20386 Julian Brown <julian@codesourcery.com>
20387 Tom de Vries <tom@codesourcery.com>
20388 Jan Hubicka <hubicka@ucw.cz>
20389 Martin Jambor <mjambor@suse.cz>
20391 * config/gcn/constraints.md: New file.
20392 * config/gcn/gcn-valu.md: New file.
20393 * config/gcn/gcn.md: New file.
20394 * config/gcn/predicates.md: New file.
20396 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
20398 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
20399 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
20400 (stmt_uses_0_or_null_in_undefined_way): Likewise.
20401 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
20403 2019-01-17 Tamar Christina <tamar.christina@arm.com>
20406 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
20407 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
20408 it and document registers.
20410 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20412 * config/aarch64/aarch64.c (ares_tunings): Define.
20413 * config/aarch64/aarch64-cores.def (ares): Use the above.
20415 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
20419 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
20421 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
20422 (_mm512_fixupimm_round_pd): Update parameters and builtin.
20423 (_mm512_maskz_fixupimm_round_pd): Ditto.
20424 (_mm512_fixupimm_round_ps): Ditto.
20425 (_mm512_maskz_fixupimm_round_ps): Ditto.
20426 (_mm_fixupimm_round_sd): Ditto.
20427 (_mm_maskz_fixupimm_round_sd): Ditto.
20428 (_mm_fixupimm_round_ss): Ditto.
20429 (_mm_maskz_fixupimm_round_ss): Ditto.
20430 (_mm512_fixupimm_pd): Ditto.
20431 (_mm512_maskz_fixupimm_pd): Ditto.
20432 (_mm512_fixupimm_ps): Ditto.
20433 (_mm512_maskz_fixupimm_ps): Ditto.
20434 (_mm_fixupimm_sd): Ditto.
20435 (_mm_maskz_fixupimm_sd): Ditto.
20436 (_mm_fixupimm_ss): Ditto.
20437 (_mm_maskz_fixupimm_ss): Ditto.
20438 (_mm512_mask_fixupimm_round_pd): Update builtin.
20439 (_mm512_mask_fixupimm_round_ps): Ditto.
20440 (_mm_mask_fixupimm_round_sd): Ditto.
20441 (_mm_mask_fixupimm_round_ss): Ditto.
20442 (_mm512_mask_fixupimm_pd): Ditto.
20443 (_mm512_mask_fixupimm_ps): Ditto.
20444 (_mm_mask_fixupimm_sd): Ditto.
20445 (_mm_mask_fixupimm_ss): Ditto.
20446 * config/i386/avx512vlintrin.h:
20447 (_mm256_fixupimm_pd): Update parameters and builtin.
20448 (_mm256_maskz_fixupimm_pd): Ditto.
20449 (_mm256_fixupimm_ps): Ditto.
20450 (_mm256_maskz_fixupimm_ps): Ditto.
20451 (_mm_fixupimm_pd): Ditto.
20452 (_mm_maskz_fixupimm_pd): Ditto.
20453 (_mm_fixupimm_ps): Ditto.
20454 (_mm_maskz_fixupimm_ps): Ditto.
20455 (_mm256_mask_fixupimm_pd): Update builtin.
20456 (_mm256_mask_fixupimm_ps): Ditto.
20457 (_mm_mask_fixupimm_pd): Ditto.
20458 (_mm_mask_fixupimm_ps): Ditto.
20459 * config/i386/i386-builtin-types.def: Add new types and remove
20461 * config/i386/i386-builtin.def: Update builtin definitions.
20462 * config/i386/i386.c: Handle new builtin types and remove useless ones.
20463 * config/i386/sse.md: Update VFIXUPIMM* patterns.
20464 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
20465 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
20466 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
20467 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
20468 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
20469 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
20470 * config/i386/subst.md:
20471 (round_saeonly_sd_mask_operand4): Add new subst_attr.
20472 (round_saeonly_sd_mask_op4): Ditto.
20473 (round_saeonly_expand_operand5): Ditto.
20474 (round_saeonly_expand): Update.
20476 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
20480 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
20482 * config/i386/sse.md: Combine VFIXUPIMM* patterns
20483 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
20484 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
20485 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
20486 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
20487 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
20488 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
20490 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
20494 2018-12-15 Jakub Jelinek <jakub@redhat.com>
20497 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
20498 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
20499 instead of UNSPEC_FIXUPIMM.
20501 2019-01-17 Richard Biener <rguenther@suse.de>
20504 * dwarf2out.c (want_pubnames): Never generate pubnames sections
20505 and friends for the LTO part of debug info.
20507 2019-01-17 Jakub Jelinek <jakub@redhat.com>
20509 PR tree-optimization/86214
20510 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
20513 PR rtl-optimization/88870
20514 * dce.c (deletable_insn_p): Never delete const/pure calls that can
20515 throw if we can't alter the cfg or delete dead exceptions.
20516 (mark_insn): Don't call find_call_stack_args for such calls.
20518 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
20520 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
20521 prototypes for vec_st.
20522 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
20523 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
20524 mainly on signed/unsigned long long and double.
20526 2019-01-16 David Malcolm <dmalcolm@redhat.com>
20529 * combine.c (delete_noop_moves): Convert to "bool" return,
20530 returning true if any edges are eliminated.
20531 (combine_instructions): Also return true if delete_noop_moves
20534 2019-01-16 Tamar Christina <tamar.christina@arm.com>
20536 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
20537 correct max nunits for endian swap.
20538 (aarch64_expand_fcmla_builtin): Correct subreg code.
20539 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
20540 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
20543 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
20545 * config/alpha/alpha.c (alpha_gimplify_va_arg):
20546 Handle split indirect COMPLEX_TYPE arguments.
20548 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
20551 * config/aarch64/aarch64-modes.def: Add comment about how the carry
20552 bit is set by add and compare.
20553 (CC_ADC): New CC_MODE.
20554 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
20555 to cache the code and mode of X. Adjust the shape of a CC_Cmode
20556 comparison. Add detection for CC_ADCmode.
20557 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
20559 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
20560 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
20561 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
20562 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
20563 to eliminate the need for zero-extending the operands.
20564 (add<mode>3_compareC_imm): Delete. Merge into ...
20565 (add<mode>3_compareC): ... this. Restructure the comparison to
20566 eliminate the need for zero-extending the operands.
20567 (add<mode>3_carryin): Use LTU for the overflow detection.
20568 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
20569 Reexpress comparison for overflow.
20570 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
20571 (add<mode>3_carryinC): Likewise.
20572 (add<mode>3_carryinV): Use LTU for carry between partials.
20573 * config/aarch64/predicates.md (aarch64_carry_operation): Update
20574 handling of CC_Cmode and add CC_ADCmode.
20575 (aarch64_borrow_operation): Likewise.
20577 2019-01-16 Tamar Christina <tamar.christina@arm.com>
20579 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
20580 Remove patternmode.
20581 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
20582 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
20583 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
20584 Remove endianness conversion.
20586 2019-01-16 Martin Liska <mliska@suse.cz>
20588 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
20590 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
20592 * gcc.c (add_sysrooted_hdrs_prefix): New function.
20593 (path_prefix_reset): Move up in the source file.
20594 (find_fortran_preinclude_file): Make complex search for the
20595 fortran header files.
20597 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
20599 * godump.c (go_output_typedef): When outputting a typedef, refer
20600 to the underlying type by its name and not its structure.
20602 2019-01-15 David Malcolm <dmalcolm@redhat.com>
20605 * tree.c (build_function_type): Assert that arg_types is not
20608 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
20610 PR inline-asm/52813
20611 * doc/extend.texi: Document that listing the stack pointer in the
20612 clobber list of an asm is a deprecated feature.
20613 * common.opt (Wdeprecated): Moved from c-family/c.opt.
20614 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
20615 warning instead of an error for clobbers of the stack pointer.
20616 Add a note explaining why.
20618 2019-01-15 Richard Biener <rguenther@suse.de>
20621 * dwarf2out.c (gen_member_die): Do not generate inheritance
20624 2019-01-15 Richard Biener <rguenther@suse.de>
20626 PR tree-optimization/88855
20627 * tree-if-conv.c (combine_blocks): Collect
20628 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
20630 2019-01-15 Tom de Vries <tdevries@suse.de>
20633 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
20634 lhs == NULL_TREE for gang-level reduction.
20636 2019-01-15 Richard Biener <rguenther@suse.de>
20637 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20640 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
20641 return true if SSA_NAME is already marked in visited bitmap.
20642 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
20644 2019-01-15 Jakub Jelinek <jakub@redhat.com>
20646 PR tree-optimization/88775
20647 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
20648 equal == 0 equality pointer comparisons some more if compared in
20649 integral types and either one points to an automatic var and the
20650 other to a global, or we can prove at least one points to the middle
20651 or both point to start or both point to end.
20653 2019-01-14 Andi Kleen <ak@linux.intel.com>
20655 * Makefile.in: Lower autofdo sampling rate by 10x.
20656 * Makefile.tpl: Dito.
20658 2019-01-14 Tom Honermann <tom@honermann.net>
20660 * defaults.h: Define CHAR8_TYPE.
20662 2019-01-14 Martin Sebor <msebor@redhat.com>
20665 * doc/extend.texi (Darwin Format Checks): Clarify.
20667 2019-01-14 Richard Biener <rguenther@suse.de>
20669 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
20670 whether we are in (simplify ...) or (match ...) context.
20672 2019-01-14 Jakub Jelinek <jakub@redhat.com>
20674 PR rtl-optimization/88796
20675 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
20676 * cfgexpand.c (stack_protect_prologue): Initialize
20677 crtl->stack_protect_guard_decl.
20678 * function.c (stack_protect_epilogue): Use it instead of calling
20679 targetm.stack_protect_guard again.
20680 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
20681 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
20682 crtl->stack_protect_guard_decl.
20683 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
20684 on the returned MEM_EXPR.
20686 2019-01-12 Tom de Vries <tdevries@suse.de>
20688 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
20689 vector length using -fopenacc-dim.
20691 2019-01-12 Tom de Vries <tdevries@suse.de>
20693 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
20694 lengths into account.
20696 2019-01-12 Svante Signell <svante.signell@gmail.com>
20698 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
20699 (TARGET_CAN_SPLIT_STACK): Define.
20700 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
20702 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20704 * params.def (inline-unit-growth): Set to 40.
20706 2019-01-12 Jakub Jelinek <jakub@redhat.com>
20708 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
20710 2019-01-12 Tom de Vries <tdevries@suse.de>
20712 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
20713 region calling vector-partitionable routine, set default_vector_length
20716 2019-01-12 Tom de Vries <tdevries@suse.de>
20718 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
20719 variable default_vector_length.
20721 2019-01-12 Tom de Vries <tdevries@suse.de>
20723 PR middle-end/88703
20724 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
20725 from oacc_default_dims, as oacc_validate_dims would do it, and apply
20728 2019-01-12 Tom de Vries <tdevries@suse.de>
20730 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
20731 (nvptx_goacc_validate_dims): Add used parameter.
20732 * doc/tm.texi: Regenerate.
20733 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
20734 argument to call to targetm.goacc.validate_dims.
20735 (default_goacc_validate_dims): Add used
20737 * target.def (validate_dims): Add used parameter in DEFHOOK.
20738 * targhooks.h (default_goacc_validate_dims): Add used parameter.
20740 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20742 PR middle-end/85956
20744 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
20746 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
20747 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
20748 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
20749 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
20751 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
20753 PR rtl-optimization/87305
20755 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
20756 for little endian pseudos used as paradoxical subreg.
20758 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20760 PR tree-optimization/88693
20761 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
20762 for STRING_CSTs that don't contain any NUL characters in the first
20763 TREE_STRING_LENGTH bytes.
20765 2019-01-11 Alan Modra <amodra@gmail.com>
20769 * genattrtab.c (min_fn): Don't translate values.
20770 (min_attr_value): Return INT_MAX when the value can't be calculated.
20771 Return minimum among any values that can be calculated.
20772 (max_attr_value): Adjust.
20774 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20776 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
20778 2019-01-11 Steve Ellcey <sellcey@marvell.com>
20780 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
20781 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
20782 (aarch64_return_call_with_max_clobbers): New function.
20783 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
20784 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
20786 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
20787 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
20788 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
20789 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
20790 * cselib.c (cselib_process_insn): Add argument to
20791 targetm.hard_regno_call_part_clobbered call.
20792 * ira-conflicts.c (ira_build_conflicts): Ditto.
20793 * ira-costs.c (ira_tune_allocno_costs): Ditto.
20794 * lra-constraints.c (inherit_reload_reg): Ditto.
20795 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
20796 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
20797 argument. Call targetm.return_call_with_max_clobbers.
20798 Add argument to targetm.hard_regno_call_part_clobbered call.
20799 (calls_have_same_clobbers_p): New function.
20800 (process_bb_lives): Add call_insn and last_call_insn variables.
20801 Pass call_insn to check_pseudos_live_through_calls.
20802 Modify if stmt to check targetm.return_call_with_max_clobbers.
20803 Update setting of flush variable.
20804 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
20806 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
20807 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
20808 targetm.hard_regno_call_part_clobbered call.
20809 * reginfo.c (choose_hard_reg_mode): Ditto.
20810 * regrename.c (check_new_reg_p): Ditto.
20811 * reload.c (find_equiv_reg): Ditto.
20812 * reload1.c (emit_reload_insns): Ditto.
20813 * sched-deps.c (deps_analyze_insn): Ditto.
20814 * sel-sched.c (init_regs_for_mode): Ditto.
20815 (mark_unavailable_hard_regs): Ditto.
20816 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
20817 * target.def (hard_regno_call_part_clobbered): Add insn argument.
20818 (return_call_with_max_clobbers): New target function.
20819 * doc/tm.texi: Regenerate.
20820 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
20821 * hooks.c (hook_bool_uint_mode_false): Change to
20822 hook_bool_insn_uint_mode_false.
20823 * hooks.h (hook_bool_uint_mode_false): Ditto.
20825 2019-01-11 Steve Ellcey <sellcey@marvell.com>
20827 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
20828 (aarch64_remove_extra_call_preserved_regs): New function.
20829 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
20830 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
20831 * doc/tm.texi: Regenerate.
20832 * final.c (get_call_reg_set_usage): Call new hook.
20833 * target.def (remove_extra_call_preserved_regs): New hook.
20834 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
20835 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
20837 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20840 * passes.c (finish_optimization_passes): Call print_combine_total_stats
20841 inside of pass_combine_1 dump rather than pass_profile_1.
20843 2019-01-11 Tom de Vries <tdevries@suse.de>
20845 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
20846 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
20847 (PTX_NUM_PER_WORKER_BARRIERS): Define.
20848 (nvptx_apply_dim_limits): Prevent vector_length 64 and
20851 2019-01-11 Tom de Vries <tdevries@suse.de>
20853 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
20855 2019-01-11 Jan Beulich <jbeulich@suse.com>
20857 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
20858 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
20859 sse2_cvtsi2sd): Add {l}.
20860 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
20863 2019-01-10 Jakub Jelinek <jakub@redhat.com>
20866 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
20868 (*float<floatunssuffix>v2div2sf2): New define_insn.
20869 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
20870 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
20871 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
20872 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
20873 match_operands with "const0_operand" "C".
20875 2019-01-10 Tamar Christina <tamar.christina@arm.com>
20877 * config/aarch64/aarch64-builtins.c
20878 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
20879 (aarch64_init_simd_builtins): ...Here
20881 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
20883 PR rtl-optimization/87305
20885 (setup_live_pseudos_and_spill_after_risky_transforms): Check
20886 allocation for big endian pseudos used as paradoxical subregs and
20887 spill them if it is wrong.
20888 * lra-constraints.c (lra_constraints): Add a comment.
20890 2019-01-10 Richard Biener <rguenther@suse.de>
20892 PR tree-optimization/88792
20893 * tree-ssa-pre.c (get_representative_for): Do not return a
20896 2019-01-10 Jakub Jelinek <jakub@redhat.com>
20898 PR middle-end/84877
20900 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
20901 (assign_parm_setup_block): Do the argument slot realignment here
20904 2019-01-10 Stefan Agner <stefan@agner.ch>
20907 * config/arm/arm.c (arm_option_override_internal): Force
20908 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
20910 2019-01-10 Jakub Jelinek <jakub@redhat.com>
20913 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
20916 2019-01-10 Tamar Christina <tamar.christina@arm.com>
20918 * config/arm/arm-builtins.c
20919 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
20920 (MAC_LANE_PAIR_QUALIFIERS): New.
20921 (arm_expand_builtin_args): Use it.
20922 (arm_expand_builtin_1): Likewise.
20923 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
20924 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
20925 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
20926 * config/arm/arm_neon.h:
20927 (vcadd_rot90_f16): New.
20928 (vcaddq_rot90_f16): New.
20929 (vcadd_rot270_f16): New.
20930 (vcaddq_rot270_f16): New.
20933 (vcmla_lane_f16): New.
20934 (vcmla_laneq_f16): New.
20935 (vcmlaq_lane_f16): New.
20936 (vcmlaq_laneq_f16): New.
20937 (vcmla_rot90_f16): New.
20938 (vcmlaq_rot90_f16): New.
20939 (vcmla_rot90_lane_f16): New.
20940 (vcmla_rot90_laneq_f16): New.
20941 (vcmlaq_rot90_lane_f16): New.
20942 (vcmlaq_rot90_laneq_f16): New.
20943 (vcmla_rot180_f16): New.
20944 (vcmlaq_rot180_f16): New.
20945 (vcmla_rot180_lane_f16): New.
20946 (vcmla_rot180_laneq_f16): New.
20947 (vcmlaq_rot180_lane_f16): New.
20948 (vcmlaq_rot180_laneq_f16): New.
20949 (vcmla_rot270_f16): New.
20950 (vcmlaq_rot270_f16): New.
20951 (vcmla_rot270_lane_f16): New.
20952 (vcmla_rot270_laneq_f16): New.
20953 (vcmlaq_rot270_lane_f16): New.
20954 (vcmlaq_rot270_laneq_f16): New.
20955 (vcadd_rot90_f32): New.
20956 (vcaddq_rot90_f32): New.
20957 (vcadd_rot270_f32): New.
20958 (vcaddq_rot270_f32): New.
20961 (vcmla_lane_f32): New.
20962 (vcmla_laneq_f32): New.
20963 (vcmlaq_lane_f32): New.
20964 (vcmlaq_laneq_f32): New.
20965 (vcmla_rot90_f32): New.
20966 (vcmlaq_rot90_f32): New.
20967 (vcmla_rot90_lane_f32): New.
20968 (vcmla_rot90_laneq_f32): New.
20969 (vcmlaq_rot90_lane_f32): New.
20970 (vcmlaq_rot90_laneq_f32): New.
20971 (vcmla_rot180_f32): New.
20972 (vcmlaq_rot180_f32): New.
20973 (vcmla_rot180_lane_f32): New.
20974 (vcmla_rot180_laneq_f32): New.
20975 (vcmlaq_rot180_lane_f32): New.
20976 (vcmlaq_rot180_laneq_f32): New.
20977 (vcmla_rot270_f32): New.
20978 (vcmlaq_rot270_f32): New.
20979 (vcmla_rot270_lane_f32): New.
20980 (vcmla_rot270_laneq_f32): New.
20981 (vcmlaq_rot270_lane_f32): New.
20982 (vcmlaq_rot270_laneq_f32): New.
20983 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
20984 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
20985 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
20986 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
20987 vcmlaq_lane270): New.
20988 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
20989 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
20990 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
20991 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
20992 (arm_option_reconfigure_globals): Use them.
20993 * config/arm/iterators.md (VDF, VQ_HSF): New.
20994 (VCADD, VCMLA): New.
20995 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
20996 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
20998 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
20999 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
21001 2019-01-10 Tamar Christina <tamar.christina@arm.com>
21003 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
21004 Add qualifier_lane_pair_index.
21005 (emit-rtl.h): Include.
21006 (TYPES_QUADOP_LANE_PAIR): New.
21007 (aarch64_simd_expand_args): Use it.
21008 (aarch64_simd_expand_builtin): Likewise.
21009 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
21011 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
21012 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
21013 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
21014 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
21015 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
21016 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
21017 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
21018 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
21019 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
21020 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
21021 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
21022 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
21023 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
21024 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
21025 Add __ARM_FEATURE_COMPLEX.
21026 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
21027 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
21028 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
21029 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
21030 fcmlaq_lane270): New.
21031 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
21032 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
21033 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
21034 * config/aarch64/arm_neon.h:
21035 (vcadd_rot90_f16): New.
21036 (vcaddq_rot90_f16): New.
21037 (vcadd_rot270_f16): New.
21038 (vcaddq_rot270_f16): New.
21041 (vcmla_lane_f16): New.
21042 (vcmla_laneq_f16): New.
21043 (vcmlaq_lane_f16): New.
21044 (vcmlaq_rot90_lane_f16): New.
21045 (vcmla_rot90_laneq_f16): New.
21046 (vcmla_rot90_lane_f16): New.
21047 (vcmlaq_rot90_f16): New.
21048 (vcmla_rot90_f16): New.
21049 (vcmlaq_laneq_f16): New.
21050 (vcmla_rot180_laneq_f16): New.
21051 (vcmla_rot180_lane_f16): New.
21052 (vcmlaq_rot180_f16): New.
21053 (vcmla_rot180_f16): New.
21054 (vcmlaq_rot90_laneq_f16): New.
21055 (vcmlaq_rot270_laneq_f16): New.
21056 (vcmlaq_rot270_lane_f16): New.
21057 (vcmla_rot270_laneq_f16): New.
21058 (vcmlaq_rot270_f16): New.
21059 (vcmla_rot270_f16): New.
21060 (vcmlaq_rot180_laneq_f16): New.
21061 (vcmlaq_rot180_lane_f16): New.
21062 (vcmla_rot270_lane_f16): New.
21063 (vcadd_rot90_f32): New.
21064 (vcaddq_rot90_f32): New.
21065 (vcaddq_rot90_f64): New.
21066 (vcadd_rot270_f32): New.
21067 (vcaddq_rot270_f32): New.
21068 (vcaddq_rot270_f64): New.
21072 (vcmla_lane_f32): New.
21073 (vcmla_laneq_f32): New.
21074 (vcmlaq_lane_f32): New.
21075 (vcmlaq_laneq_f32): New.
21076 (vcmla_rot90_f32): New.
21077 (vcmlaq_rot90_f32): New.
21078 (vcmlaq_rot90_f64): New.
21079 (vcmla_rot90_lane_f32): New.
21080 (vcmla_rot90_laneq_f32): New.
21081 (vcmlaq_rot90_lane_f32): New.
21082 (vcmlaq_rot90_laneq_f32): New.
21083 (vcmla_rot180_f32): New.
21084 (vcmlaq_rot180_f32): New.
21085 (vcmlaq_rot180_f64): New.
21086 (vcmla_rot180_lane_f32): New.
21087 (vcmla_rot180_laneq_f32): New.
21088 (vcmlaq_rot180_lane_f32): New.
21089 (vcmlaq_rot180_laneq_f32): New.
21090 (vcmla_rot270_f32): New.
21091 (vcmlaq_rot270_f32): New.
21092 (vcmlaq_rot270_f64): New.
21093 (vcmla_rot270_lane_f32): New.
21094 (vcmla_rot270_laneq_f32): New.
21095 (vcmlaq_rot270_lane_f32): New.
21096 (vcmlaq_rot270_laneq_f32): New.
21097 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
21098 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
21099 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
21100 (FCADD, FCMLA): New.
21102 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
21104 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
21108 * config/pa/pa.c: Change "can not" to "cannot".
21109 * gimple-ssa-evrp-analyze.c: Likewise.
21110 * ipa-icf.c: Likewise.
21111 * ipa-polymorphic-call.c: Likewise.
21112 * ipa-pure-const.c: Likewise.
21113 * lra-constraints.c: Likewise.
21114 * lra-remat.c: Likewise.
21115 * reload1.c: Likewise.
21116 * reorg.c: Likewise.
21117 * tree-ssa-uninit.c: Likewise.
21119 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
21123 * Makefile.in: Mechanically replace "can not" with "cannot".
21124 * alias.c: Likewise.
21125 * builtins.c: Likewise.
21126 * calls.c: Likewise.
21127 * cgraph.c: Likewise.
21128 * cgraph.h: Likewise.
21129 * cgraphclones.c: Likewise.
21130 * cgraphunit.c: Likewise.
21131 * combine-stack-adj.c: Likewise.
21132 * combine.c: Likewise.
21133 * common/config/i386/i386-common.c: Likewise.
21134 * config/aarch64/aarch64.c: Likewise.
21135 * config/alpha/sync.md: Likewise.
21136 * config/arc/arc.c: Likewise.
21137 * config/arc/predicates.md: Likewise.
21138 * config/arm/arm-c.c: Likewise.
21139 * config/arm/arm.c: Likewise.
21140 * config/arm/arm.h: Likewise.
21141 * config/arm/arm.md: Likewise.
21142 * config/arm/cortex-r4f.md: Likewise.
21143 * config/csky/csky.c: Likewise.
21144 * config/csky/csky.h: Likewise.
21145 * config/darwin-f.c: Likewise.
21146 * config/epiphany/epiphany.md: Likewise.
21147 * config/i386/i386.c: Likewise.
21148 * config/i386/sol2.h: Likewise.
21149 * config/m68k/m68k.c: Likewise.
21150 * config/mcore/mcore.h: Likewise.
21151 * config/microblaze/microblaze.md: Likewise.
21152 * config/mips/20kc.md: Likewise.
21153 * config/mips/sb1.md: Likewise.
21154 * config/nds32/nds32.c: Likewise.
21155 * config/nds32/predicates.md: Likewise.
21156 * config/pa/pa.c: Likewise.
21157 * config/rs6000/e300c2c3.md: Likewise.
21158 * config/rs6000/rs6000.c: Likewise.
21159 * config/s390/s390.h: Likewise.
21160 * config/sh/sh.c: Likewise.
21161 * config/sh/sh.md: Likewise.
21162 * config/spu/vmx2spu.h: Likewise.
21163 * cprop.c: Likewise.
21164 * dbxout.c: Likewise.
21165 * df-scan.c: Likewise.
21166 * doc/cfg.texi: Likewise.
21167 * doc/extend.texi: Likewise.
21168 * doc/fragments.texi: Likewise.
21169 * doc/gty.texi: Likewise.
21170 * doc/invoke.texi: Likewise.
21171 * doc/lto.texi: Likewise.
21172 * doc/md.texi: Likewise.
21173 * doc/objc.texi: Likewise.
21174 * doc/rtl.texi: Likewise.
21175 * doc/tm.texi: Likewise.
21177 * emit-rtl.c: Likewise.
21178 * emit-rtl.h: Likewise.
21179 * except.c: Likewise.
21180 * expmed.c: Likewise.
21181 * expr.c: Likewise.
21182 * fold-const.c: Likewise.
21183 * genautomata.c: Likewise.
21184 * gimple-fold.c: Likewise.
21185 * hard-reg-set.h: Likewise.
21186 * ifcvt.c: Likewise.
21187 * ipa-comdats.c: Likewise.
21188 * ipa-cp.c: Likewise.
21189 * ipa-devirt.c: Likewise.
21190 * ipa-fnsummary.c: Likewise.
21191 * ipa-icf.c: Likewise.
21192 * ipa-inline-transform.c: Likewise.
21193 * ipa-inline.c: Likewise.
21194 * ipa-polymorphic-call.c: Likewise.
21195 * ipa-profile.c: Likewise.
21196 * ipa-prop.c: Likewise.
21197 * ipa-pure-const.c: Likewise.
21198 * ipa-reference.c: Likewise.
21199 * ipa-split.c: Likewise.
21200 * ipa-visibility.c: Likewise.
21202 * ira-build.c: Likewise.
21203 * ira-color.c: Likewise.
21204 * ira-conflicts.c: Likewise.
21205 * ira-costs.c: Likewise.
21206 * ira-int.h: Likewise.
21207 * ira-lives.c: Likewise.
21210 * loop-invariant.c: Likewise.
21211 * loop-unroll.c: Likewise.
21212 * lower-subreg.c: Likewise.
21213 * lra-assigns.c: Likewise.
21214 * lra-constraints.c: Likewise.
21215 * lra-eliminations.c: Likewise.
21216 * lra-lives.c: Likewise.
21217 * lra-remat.c: Likewise.
21218 * lra-spills.c: Likewise.
21220 * lto-cgraph.c: Likewise.
21221 * lto-streamer-out.c: Likewise.
21222 * postreload-gcse.c: Likewise.
21223 * predict.c: Likewise.
21224 * profile-count.h: Likewise.
21225 * profile.c: Likewise.
21226 * recog.c: Likewise.
21228 * reload.c: Likewise.
21229 * reload1.c: Likewise.
21230 * reorg.c: Likewise.
21231 * resource.c: Likewise.
21232 * rtl.def: Likewise.
21234 * rtlanal.c: Likewise.
21235 * sched-deps.c: Likewise.
21236 * sched-ebb.c: Likewise.
21237 * sched-rgn.c: Likewise.
21238 * sel-sched-ir.c: Likewise.
21239 * sel-sched.c: Likewise.
21240 * shrink-wrap.c: Likewise.
21241 * simplify-rtx.c: Likewise.
21242 * symtab.c: Likewise.
21243 * target.def: Likewise.
21244 * toplev.c: Likewise.
21245 * tree-call-cdce.c: Likewise.
21246 * tree-cfg.c: Likewise.
21247 * tree-complex.c: Likewise.
21248 * tree-core.h: Likewise.
21249 * tree-eh.c: Likewise.
21250 * tree-inline.c: Likewise.
21251 * tree-loop-distribution.c: Likewise.
21252 * tree-nrv.c: Likewise.
21253 * tree-profile.c: Likewise.
21254 * tree-sra.c: Likewise.
21255 * tree-ssa-alias.c: Likewise.
21256 * tree-ssa-dce.c: Likewise.
21257 * tree-ssa-dom.c: Likewise.
21258 * tree-ssa-forwprop.c: Likewise.
21259 * tree-ssa-loop-im.c: Likewise.
21260 * tree-ssa-loop-ivcanon.c: Likewise.
21261 * tree-ssa-loop-ivopts.c: Likewise.
21262 * tree-ssa-loop-niter.c: Likewise.
21263 * tree-ssa-phionlycprop.c: Likewise.
21264 * tree-ssa-phiopt.c: Likewise.
21265 * tree-ssa-propagate.c: Likewise.
21266 * tree-ssa-threadedge.c: Likewise.
21267 * tree-ssa-threadupdate.c: Likewise.
21268 * tree-ssa-uninit.c: Likewise.
21269 * tree-ssanames.c: Likewise.
21270 * tree-streamer-out.c: Likewise.
21271 * tree.c: Likewise.
21272 * tree.h: Likewise.
21273 * vr-values.c: Likewise.
21275 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
21277 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
21278 (ix86_split_xorsign): Ditto.
21279 * config/i386/i386.c (ix86_expand_xorsign): New function.
21280 (ix86_split_xorsign): Ditto.
21281 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
21282 (xorsign<mode>3): New expander.
21283 (xorsign<mode>3_1): New insn_and_split pattern.
21284 * config/i386/sse.md (xorsign<mode>3): New expander.
21286 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
21288 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
21289 (*tablejump_sp64): Likewise.
21290 (*tablejump<P:mode>): ...this.
21291 (*call_address_sp32): Merge into...
21292 (*call_address_sp64): Likewise.
21293 (*call_address<P:mode>): ...this.
21294 (*call_symbolic_sp32): Merge into...
21295 (*call_symbolic_sp64): Likewise.
21296 (*call_symbolic<P:mode>): ...this.
21297 (call_value): Remove constraint and add predicate.
21298 (*call_value_address_sp32): Merge into...
21299 (*call_value_address_sp64): Likewise.
21300 (*call_value_address<P:mode>): ...this.
21301 (*call_value_symbolic_sp32): Merge into...
21302 (*call_value_symbolic_sp64): Likewise.
21303 (*call_value_symbolic<P:mode>): ...this.
21304 (*sibcall_symbolic_sp32): Merge into...
21305 (*sibcall_symbolic_sp64): Likewise.
21306 (*sibcall_symbolic<P:mode>): ...this.
21307 (sibcall_value): Remove constraint and add predicate.
21308 (*sibcall_value_symbolic_sp32): Merge into...
21309 (*sibcall_value_symbolic_sp64): Likewise.
21310 (*sibcall_value_symbolic<P:mode>): ...this.
21311 (window_save): Minor tweak.
21312 (*branch_sp32): Merge into...
21313 (*branch_sp64): Likewise.
21314 (*branch<P:mode>): ...this.
21316 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
21317 James Clarke <jrtc27@jrtc27.com>
21320 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
21321 consistently in TLS address generation and adjust code to the renaming
21322 of patterns. Mark calls to __tls_get_addr as const.
21323 * config/sparc/sparc.md (tgd_hi22): Turn into...
21324 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
21325 (tgd_lo10): Turn into...
21326 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
21327 (tgd_add32): Merge into...
21328 (tgd_add64): Likewise.
21329 (tgd_add<P:mode>): ...this and use Pmode throughout.
21330 (tldm_hi22): Turn into...
21331 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
21332 (tldm_lo10): Turn into...
21333 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
21334 (tldm_add32): Merge into...
21335 (tldm_add64): Likewise.
21336 (tldm_add<P:mode>): ...this and use Pmode throughout.
21337 (tldm_call32): Merge into...
21338 (tldm_call64): Likewise.
21339 (tldm_call<P:mode>): ...this and use Pmode throughout.
21340 (tldo_hix22): Turn into...
21341 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
21342 (tldo_lox10): Turn into...
21343 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
21344 (tldo_add32): Merge into...
21345 (tldo_add64): Likewise.
21346 (tldo_add<P:mode>): ...this and use Pmode throughout.
21347 (tie_hi22): Turn into...
21348 (tie_hi22<P:mode>): ...this and use Pmode throughout.
21349 (tie_lo10): Turn into...
21350 (tie_lo10<P:mode>): ...this and use Pmode throughout.
21351 (tie_ld64): Use DImode throughout.
21352 (tie_add32): Merge into...
21353 (tie_add64): Likewise.
21354 (tie_add<P:mode>): ...this and use Pmode throughout.
21355 (tle_hix22_sp32): Merge into...
21356 (tle_hix22_sp64): Likewise.
21357 (tle_hix22<P:mode>): ...this and use Pmode throughout.
21358 (tle_lox22_sp32): Merge into...
21359 (tle_lox22_sp64): Likewise.
21360 (tle_lox22<P:mode>): ...this and use Pmode throughout.
21361 (*tldo_ldub_sp32): Merge into...
21362 (*tldo_ldub_sp64): Likewise.
21363 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
21364 (*tldo_ldub1_sp32): Merge into...
21365 (*tldo_ldub1_sp64): Likewise.
21366 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
21367 (*tldo_ldub2_sp32): Merge into...
21368 (*tldo_ldub2_sp64): Likewise.
21369 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
21370 (*tldo_ldsb1_sp32): Merge into...
21371 (*tldo_ldsb1_sp64): Likewise.
21372 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
21373 (*tldo_ldsb2_sp32): Merge into...
21374 (*tldo_ldsb2_sp64): Likewise.
21375 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
21376 (*tldo_ldub3_sp64): Use DImode throughout.
21377 (*tldo_ldsb3_sp64): Likewise.
21378 (*tldo_lduh_sp32): Merge into...
21379 (*tldo_lduh_sp64): Likewise.
21380 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
21381 (*tldo_lduh1_sp32): Merge into...
21382 (*tldo_lduh1_sp64): Likewise.
21383 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
21384 (*tldo_ldsh1_sp32): Merge into...
21385 (*tldo_ldsh1_sp64): Likewise.
21386 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
21387 (*tldo_lduh2_sp64): Use DImode throughout.
21388 (*tldo_ldsh2_sp64): Likewise.
21389 (*tldo_lduw_sp32): Merge into...
21390 (*tldo_lduw_sp64): Likewise.
21391 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
21392 (*tldo_lduw1_sp64): Use DImode throughout.
21393 (*tldo_ldsw1_sp64): Likewise.
21394 (*tldo_ldx_sp64): Likewise.
21395 (*tldo_stb_sp32): Merge into...
21396 (*tldo_stb_sp64): Likewise.
21397 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
21398 (*tldo_sth_sp32): Merge into...
21399 (*tldo_sth_sp64): Likewise.
21400 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
21401 (*tldo_stw_sp32): Merge into...
21402 (*tldo_stw_sp64): Likewise.
21403 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
21404 (*tldo_stx_sp64): Use DImode throughout.
21406 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21408 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
21409 check configure option to set BTI and Return Address Signing.
21410 * configure.ac: Add --enable-standard-branch-protection and
21411 --disable-standard-branch-protection.
21412 * configure: Regenerated.
21413 * doc/install.texi: Document the same.
21415 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21416 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21418 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
21419 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
21420 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
21422 * config/aarch64/aarch64-bti-insert.c: New file.
21423 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
21425 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
21427 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
21428 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
21429 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
21430 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
21432 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21434 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
21435 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
21436 Disable bti for -mbranch-protection=none.
21437 (aarch64_handle_standard_branch_protection): Enable bti for
21438 -mbranch-protection=standard.
21439 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
21440 -mbranch-protection.
21441 (aarch64_bti_enabled): Check if bti is enabled.
21442 * config/aarch64/aarch64.opt: Declare target variable.
21443 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
21445 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21447 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
21448 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
21449 (aarch64_expand_epilogue): Likewise.
21450 (aarch64_output_mi_thunk): Likewise.
21451 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
21452 TAILCALL_ADDR_REGS to x16 and x17.
21453 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
21455 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21457 * config/aarch64/aarch64-option-extensions.def: Define
21458 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
21459 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
21460 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
21461 (AARCH64_FL_PREDRES): New.
21462 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
21463 AARCH64_FL_PREDRES by default.
21464 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
21466 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21468 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
21470 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
21471 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
21472 * doc/invoke.texi: Document ARMv8.5-A.
21474 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21476 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
21477 (xorsign<mode>3): Likewise.
21479 2019-01-09 Jelinek <jakub@redhat.com>
21481 PR middle-end/88758
21482 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
21483 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
21485 PR rtl-optimization/88331
21486 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
21487 not currently_expanding_to_rtl.
21489 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
21491 * doc/invoke.texi (-Os): Remove trailing spaces.
21492 (-finline-functions): Remove reference to -O2.
21494 2019-01-08 Jakub Jelinek <jakub@redhat.com>
21496 PR rtl-optimization/79593
21497 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
21499 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
21500 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
21502 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
21505 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
21509 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
21510 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
21512 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
21515 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
21516 ix86_avx_u128_mode_entry.
21518 2019-01-08 Martin Liska <mliska@suse.cz>
21520 PR tree-optimization/88753
21521 * tree-switch-conversion.c (switch_conversion::build_one_array):
21522 Come up with local variable constructor. Convert first to
21523 type of constructor values.
21525 2019-01-08 Richard Biener <rguenther@suse.de>
21527 PR tree-optimization/86554
21528 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
21529 rpo_avail): Move earlier.
21530 (visit_nary_op): When value-numbering to expressions
21531 with different overflow behavior make sure there's an
21532 available expression on the path.
21534 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
21536 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
21537 aarch64_parse_branch_protection,
21538 struct aarch64_branch_protect_type,
21539 aarch64_handle_no_branch_protection,
21540 aarch64_handle_standard_branch_protection,
21541 aarch64_validate_mbranch_protection,
21542 aarch64_handle_pac_ret_protection,
21543 aarch64_handle_attr_branch_protection,
21544 accepted_branch_protection_string,
21545 aarch64_pac_ret_subtypes,
21546 aarch64_branch_protect_types,
21547 aarch64_handle_pac_ret_leaf): Define.
21548 (aarch64_override_options_after_change_1, aarch64_override_options):
21549 Add check for accepted_branch_protection_string.
21550 (aarch64_option_save): Save accepted_branch_protection_string.
21551 (aarch64_option_restore): Save accepted_branch_protection_string.
21552 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
21553 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
21554 msign-return-address.
21555 * doc/invoke.texi: Add mbranch-protection.
21557 2019-01-08 Alan Modra <amodra@gmail.com>
21560 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
21561 Delete "unknownp" parameter. Adjust callers. Handle
21562 CONST_INT, PLUS, MINUS, and MULT.
21563 (attr_value_aligned): Renamed from or_attr_value.
21564 (min_attr_value): Return INT_MIN for unhandled rtl case..
21565 (min_fn): ..and translate to INT_MAX here.
21566 (write_length_unit_log): Modify to cope without "unknown".
21567 (write_attr_value): Handle IF_THEN_ELSE.
21569 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
21571 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
21572 optimization for masked stores.
21574 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
21576 PR middle-end/88567
21577 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
21578 output vector directly to duplicate_and_interleave instead of
21579 going through a temporary. Postpone insertion of ctor_seq to
21580 the end of the loop.
21582 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
21585 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
21586 unsigned_p. Handle signed and unsigned overflow correction as
21588 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
21590 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
21592 (add<mode>3_compareV_imm): Make this callable for expanding.
21593 (subv<GPI:mode>4): Use register_operand for operand 1. Use
21594 aarch64_plus_operand for operand 2.
21595 (subv<GPI:mode>_insn): New insn pattern.
21596 (subv<GPI:mode>_imm): Likewise.
21597 (negv<GPI:mode>3): New expand pattern.
21598 (negv<GPI:mode>_insn): New insn pattern.
21599 (negv<GPI:mode>_cmp_only): Likewise.
21600 (cmpv<GPI:mode>_insn): Likewise.
21601 (subvti4): Use register_operand for operand 1. Update call to
21602 aarch64_expand_subvti.
21603 (usubvti4): Likewise.
21604 (negvti3): New expand pattern.
21605 (negdi_carryout): New insn pattern.
21606 (negvdi_carryinV): New insn pattern.
21607 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
21608 version the named version.
21609 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
21611 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
21613 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
21615 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
21616 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
21617 (sub<mode>3_carryinCV): Delete.
21618 (sub<GPI:mode>3_carryinV): New expand pattern.
21619 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
21621 2019-01-07 Richard Biener <rguenther@suse.de>
21623 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
21624 of tree_operand_hash.
21626 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
21628 PR tree-optimization/88598
21629 * tree.h (single_nonzero_element): Declare.
21630 * tree.c (single_nonzero_element): New function.
21631 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
21632 if I is the only nonzero element of CST.
21634 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
21636 PR tree-optimization/88598
21637 * tree.h (initializer_each_zero_or_onep): Declare.
21638 * tree.c (initializer_each_zero_or_onep): New function.
21639 (signed_or_unsigned_type_for): Handle float types too.
21640 (unsigned_type_for, signed_type_for): Update comments accordingly.
21641 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
21642 x & { 0 or -1, 0 or -1, ... }.
21644 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
21646 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
21647 with x86_64-pc-linux-gnu.
21649 2019-01-07 Tom de Vries <tdevries@suse.de>
21652 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
21654 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
21657 2019-01-07 Jakub Jelinek <jakub@redhat.com>
21659 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
21660 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
21661 TARGET_AVX512F as condition.
21664 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
21665 const_not_ok_for_debug_p target hook.
21666 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
21667 on UNSPEC and subexpressions thereof if all subexpressions of the
21668 UNSPEC are CONSTANT_P.
21670 PR tree-optimization/88676
21671 * tree-ssa-phiopt.c (two_value_replacement): New function.
21672 (tree_ssa_phiopt_worker): Call it.
21675 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
21676 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
21679 * tree-vect-generic.c: Include insn-config.h and recog.h.
21680 (expand_vector_piecewise): Add defaulted ret_type argument,
21681 if non-NULL, use that in preference to type for the result type.
21682 (expand_vector_parallel): Formatting fix.
21683 (do_vec_conversion, do_vec_narrowing_conversion,
21684 expand_vector_conversion): New functions.
21685 (expand_vector_operations_1): Call expand_vector_conversion
21686 for VEC_CONVERT ifn calls.
21687 * internal-fn.def (VEC_CONVERT): New internal function.
21688 * internal-fn.c (expand_VEC_CONVERT): New function.
21689 * fold-const-call.c (fold_const_vec_convert): New function.
21690 (fold_const_call): Use it for CFN_VEC_CONVERT.
21691 * doc/extend.texi (__builtin_convertvector): Document.
21693 2019-01-07 Tom de Vries <tdevries@suse.de>
21695 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
21696 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
21697 vector_red_partition, vector_red_sym): New global variables.
21698 (nvptx_option_override): Initialize vector_red_sym.
21699 (nvptx_declare_function_name): Restore red_partition register.
21700 (nvptx_file_end): Emit code to declare the vector reduction variables.
21701 (nvptx_output_red_partition): New function.
21702 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
21703 large vector reductions.
21704 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
21705 (nvptx_init_builtins): Add VECTOR_ADDR.
21706 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
21707 Handle nvptx_expand_shared_addr.
21708 (nvptx_get_shared_red_addr): Add vector argument and handle large
21710 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
21712 (nvptx_goacc_reduction_init): Likewise.
21713 (nvptx_goacc_reduction_fini): Likewise.
21714 (nvptx_goacc_reduction_teardown): Likewise.
21715 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
21716 init,fini,teardown}.
21717 (nvptx_init_axis_predicate): Initialize vector_red_partition.
21718 (nvptx_set_current_function): Init vector_red_partition.
21719 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
21720 (nvptx_red_partition): New insn.
21721 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
21723 2019-01-07 Tom de Vries <tdevries@suse.de>
21726 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
21729 2019-01-07 Tom de Vries <tdevries@suse.de>
21731 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
21732 (nvptx_option_override): Init oacc_bcast_partition.
21733 (nvptx_init_oacc_workers): New function.
21734 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
21735 (nvptx_needs_shared_bcast): New function.
21736 (nvptx_find_par): Generalize to enable vectors to use shared-memory
21737 to propagate state.
21738 (nvptx_shared_propagate): Initialize vector bcast partition and
21739 synchronization state.
21740 (nvptx_single): Generalize to enable vectors to use shared-memory
21741 to propagate state.
21742 (nvptx_process_pars): Likewise.
21743 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
21744 * config/nvptx/nvptx.h (struct machine_function): Add
21745 bcast_partition and sync_bar members.
21747 2019-01-07 Tom de Vries <tdevries@suse.de>
21749 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
21750 (nvptx_apply_dim_limits): New function.
21751 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
21754 2019-01-07 Tom de Vries <tdevries@suse.de>
21756 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
21757 as late as possible.
21759 2019-01-07 Tom de Vries <tdevries@suse.de>
21761 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
21762 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
21763 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
21764 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
21765 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
21767 2019-01-07 Tom de Vries <tdevries@suse.de>
21769 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
21771 2019-01-07 Tom de Vries <tdevries@suse.de>
21773 * omp-offload.c (oacc_get_min_dim): New function.
21774 * omp-offload.h (oacc_get_min_dim): Declare.
21776 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
21779 * config/i386/i386.c (function_value_ms_64): Return small sturct in
21780 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
21782 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21786 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
21788 * ipa-inline.c (edge_badness): Use inlined_time instead of
21789 inline_summaries->get.
21791 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21793 * opts.c (enable_fdo_optimizations): Enable
21794 version-loops-for-strides, loop-interchange, unrol-and-jam
21795 and tree-loop-distribution.
21796 * invoke.texi: Document newly enabled options.
21798 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21800 * doc/invoke.texi (max-inline-insns-small): New parameters.
21801 * ipa-inline.c (want_early_inline_function_p): simplify.
21802 (want_inline_small_function_p): Fix pasto from previous patch;
21803 use max-inline-insns-small bound.
21804 * params.def (max-inline-insns-small): New param.
21805 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
21806 variables correctly.
21808 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21810 * doc/invoke.texi: Document max-inline-insns-size,
21811 uninlined-function-insns, uninlined-function-time,
21812 uninlined-thunk-insns and uninlined-thunk-time.
21813 * params.def: Add max-inline-insns-size,
21814 uninlined-function-insns, uninlined-function-time,
21815 uninlined-thunk-insns and uninlined-thunk-time.
21816 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
21818 * ipa-inline.c (can_inline_edge_by_limits_p,
21819 want_inline_small_function_p): Use new parameters.
21821 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21823 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
21825 2019-01-05 Jakub Jelinek <jakub@redhat.com>
21827 PR middle-end/82564
21829 * expr.c (expand_assignment): For calls returning VLA structures
21830 if to_rtx is not a MEM, force it into a stack temporary.
21833 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
21834 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
21835 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
21836 subexpressions of both operands.
21837 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
21838 subrtxes are CONSTANT_P.
21839 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
21840 2018-11-09 changes.
21842 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
21844 * params.def (hot-bb-count-ws-permille): Set to 990.
21846 2019-01-04 Martin Sebor <msebor@redhat.com>
21849 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
21852 2019-01-04 Martin Sebor <msebor@redhat.com>
21855 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
21857 2019-01-04 Jakub Jelinek <jakub@redhat.com>
21859 * gdbinit.in: Turn off pagination for the skip commands, restore
21860 it to previous state afterwards.
21862 2019-01-04 Jakub Jelinek <jakub@redhat.com>
21865 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
21866 of GET_MODE (opN) as modes of the libcall arguments.
21868 2019-01-04 Jan Beulich <jbeulich@suse.com>
21870 * config/i386/sse.md
21871 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
21872 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
21873 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
21874 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
21875 avx512f_vmcmp<mode>3<round_saeonly_name>,
21876 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
21877 avx512f_maskcmp<mode>3,
21878 <avx512>_cvt<ssemodesuffix>2mask<mode>,
21879 <avx512>_cvt<ssemodesuffix>2mask<mode>,
21880 *<avx512>_cvtmask2<ssemodesuffix><mode>,
21881 *<avx512>_cvtmask2<ssemodesuffix><mode>,
21882 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
21883 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
21884 <avx512>_gt<mode>3<mask_scalar_merge_name>,
21885 <avx512>_gt<mode>3<mask_scalar_merge_name>,
21886 <avx512>_testm<mode>3<mask_scalar_merge_name>,
21887 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
21888 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
21889 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
21890 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
21891 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
21892 avx512cd_maskb_vec_dup<mode>,
21893 avx512cd_maskw_vec_dup<mode>,
21894 avx512dq_fpclass<mode><mask_scalar_merge_name>,
21895 avx512dq_vmfpclass<mode>,
21896 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
21899 2019-01-03 Martin Sebor <msebor@redhat.com>
21901 PR tree-optimization/88659
21902 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
21904 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
21906 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
21907 unaligned vsx and avoid lxvd2x/stxvd2x.
21908 (gen_lvx_v4si_move): New function.
21910 2019-01-03 Tom de Vries <tdevries@suse.de>
21912 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
21913 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
21915 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
21917 2019-01-03 Tom de Vries <tdevries@suse.de>
21919 * config/nvptx/nvptx.c (struct offload_attrs): New.
21920 (populate_offload_attrs): New function. Factor mask extraction out of
21921 nvptx_reorg. Add extraction of dimensions.
21922 (nvptx_reorg): Use populate_offload_attrs.
21924 2019-01-03 Tom de Vries <tdevries@suse.de>
21926 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
21927 cases for oacc_min_dims_p and routine_p. Add asserts for
21928 oacc_default_dims_p and offload_region_p.
21930 2019-01-03 Tom de Vries <tdevries@suse.de>
21932 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
21933 factored out of ...
21934 (nvptx_goacc_validate_dims): ... here.
21936 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
21938 PR tree-optimization/85574
21939 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
21941 (struct ssa_equip_hash_traits): Declare.
21942 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
21944 2019-01-03 Jakub Jelinek <jakub@redhat.com>
21947 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
21948 change it to qualified_type.
21950 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
21952 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
21953 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
21955 2019-01-02 Martin Sebor <msebor@redhat.com>
21956 Jeff Law <law@redhat.com>
21958 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
21959 (get_range_strlen_tree): Update appropriately.
21961 * gimple-fold.h (get_range_strlen): Drop unused last argument.
21963 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
21964 rather than set_range_info.
21965 * tree-ssa-strlen.c (set_strlen_range): Extracted from
21966 maybe_set_strlen_range. Handle potentially boundary crossing
21967 cases more conservatively.
21968 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
21969 Call set_strlen_range.
21970 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
21972 PR middle-end/88663
21973 * gimple-fold.c (get_range_strlen): Update prototype to no longer
21974 need the flexp argument.
21975 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
21976 from calls to get_range_strlen. Update comments. Just update
21977 VAL for an unterminated const char array and let the reset of the
21978 code handle it normally. No longer try to set *flexp. Adjust
21980 (get_range_strlen): Update for the new get_range_strlen API.
21981 (get_maxval_strlen): Similarly.
21982 (gimple_fold_builtin_strlen): Handle update meaning of return value
21983 from get_range_strlen.
21984 * gimple-ssa-sprintf.c (get_string_length): Update for the new
21985 get_range_strlen API.
21987 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
21990 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
21991 false at WPA time when body was removed.
21993 2019-01-02 Martin Liska <mliska@suse.cz>
21995 PR tree-optimization/88650
21996 * predict.c (set_even_probabilities): Calculate probability
21997 remainer only when really used.
21999 2019-01-02 Richard Biener <rguenther@suse.de>
22001 PR middle-end/88651
22002 * tree-data-ref.c (analyze_subscript_affine_affine): Use
22003 widest_ints when mangling max_stmt_execution results.
22005 2019-01-02 Richard Biener <rguenther@suse.de>
22007 PR tree-optimization/88621
22008 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
22009 bitfields when canoncalizing.
22011 2019-01-02 Richard Biener <rguenther@suse.de>
22014 * config/i386/x86-tune-costs.h (intel_cost): Adjust
22015 cost of cheap SSE instruction.
22017 2019-01-02 Richard Biener <rguenther@suse.de>
22020 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
22021 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
22023 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
22024 set after UIDs before splitting them.
22026 2019-01-01 Martin Sebor <msebor@redhat.com>
22027 Jeff Law <law@redhat.com>
22029 * gimple-fold.c (get_range_strlen_tree): Record if the computed
22030 length is optimistic. If it is, then arrange to compute the
22031 conservative length as well.
22033 * gimple-fold.h (get_range_strlen): Update prototype.
22034 * builtins.c (check_access): Update call to get_range_strlen to use
22035 c_strlen_data pointer. Change various variable accesses to instead
22036 pull data from the c_strlen_data structure.
22037 (check_strncat_sizes, expand_builtin_strncat): Likewise.
22038 * calls.c (maybe_warn_nonstring_arg): Likewise.
22039 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
22040 minimum length if maximum lengh is unknown.
22041 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
22042 that used c_strlen, it's no longer needed. Restructure slightly.
22043 (format_string): Set unlikely range appropriately.
22044 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
22046 (get_range_strlen): Accept c_strlen_data pointer for external
22047 call sites as well. Pass through to call to internal get_range_strlen.
22048 Adjust minlen, maxlen and maxbound as needed.
22049 (get_maxval_strlen): Update comments.
22050 (gimple_fold_builtin_strlen): Update call to get_range_strlen
22051 to use c_strlen_data pointer. Change variable accesses to instead
22052 use c_strlen_data data members.
22054 * gimple-fold.c (get_range_strlen): Update prototype.
22055 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
22056 local variables. Use pdata to return information to caller.
22057 Update calls to get_range_strlen. Update pdata->maxbound.
22058 (get_range_strlen -- static version): Similarly.
22059 (get_range_strlen -- extern version): Update for internal
22060 get_range_strlen API change. Convert to external data format.
22061 (get_maxval_strlen): Similarly.
22063 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
22065 * coverage.c (get_coverage_counts): Use current_function_decl.
22066 * profile.c (read_thunk_profile): New function.
22067 (branch_prob): Add THUNK parameter.
22068 * tree-profile.c (tree_profiling): Handle thunks.
22069 * value-prof.c (init_node_map): Handle thunks.
22070 * value-prof.h (branch_prob): Upate prototype.
22071 (read_thunk_profile): Declare.
22073 2019-01-01 Jakub Jelinek <jakub@redhat.com>
22075 Update copyright years.
22077 * gcc.c (process_command): Update copyright notice dates.
22078 * gcov-dump.c (print_version): Ditto.
22079 * gcov.c (print_version): Ditto.
22080 * gcov-tool.c (print_version): Ditto.
22081 * gengtype.c (create_file): Ditto.
22082 * doc/cpp.texi: Bump @copying's copyright year.
22083 * doc/cppinternals.texi: Ditto.
22084 * doc/gcc.texi: Ditto.
22085 * doc/gccint.texi: Ditto.
22086 * doc/gcov.texi: Ditto.
22087 * doc/install.texi: Ditto.
22088 * doc/invoke.texi: Ditto.
22090 Copyright (C) 2019 Free Software Foundation, Inc.
22092 Copying and distribution of this file, with or without modification,
22093 are permitted in any medium without royalty provided the copyright
22094 notice and this notice are preserved.