1 2019-09-16 Richard Biener <rguenther@suse.de>
3 PR tree-optimization/91756
4 PR tree-optimization/87132
5 * tree-ssa-alias.h (enum translate_flags): New.
6 (get_continuation_for_phi): Use it instead of simple bool flag.
7 (walk_non_aliased_vuses): Likewise.
8 * tree-ssa-alias.c (maybe_skip_until): Adjust.
9 (get_continuation_for_phi): When looking across backedges only
10 disallow valueization.
11 (walk_non_aliased_vuses): Adjust.
12 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
15 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
18 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
19 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
20 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
21 * target.def (have_count_reg_decr_p): New hook.
22 (doloop_cost_for_generic): Likewise.
23 (doloop_cost_for_address): Likewise.
24 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
25 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
26 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
27 * doc/tm.texi: Regenerate.
28 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
30 (record_group): Init doloop_p.
31 (add_candidate_1): Add optional argument doloop, change the handlings
33 (add_candidate): Likewise.
34 (generic_predict_doloop_p): Update attribute.
35 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
36 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
37 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
39 (get_computation_cost): Update for doloop IV cand extra cost.
40 (determine_group_iv_cost_cond): Update for doloop IV cand.
41 (determine_iv_cost): Likewise.
42 (ivopts_estimate_reg_pressure): Likewise.
43 (may_eliminate_iv): Update handlings for doloop IV cand.
44 (add_iv_candidate_for_doloop): New function.
45 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
46 (iv_ca_set_no_cp): Update for doloop IV cand.
47 (iv_ca_set_cp): Likewise.
48 (iv_ca_dump): Dump register cost.
49 (find_doloop_use): New function.
50 (analyze_and_mark_doloop_use): Likewise.
51 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
53 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
56 * cse.c (cse_insn): Do not replace anything with a
59 2019-09-13 Ian Lance Taylor <iant@golang.org>
61 * doc/invoke.texi (Optimize Options): Fix typo.
63 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
65 PR tree-optimization/89386
66 * config/i386/sse.md (smulhrs<mode>3): New expander.
67 (smulhrsv4hi3): Ditto.
69 2019-09-12 Richard Biener <rguenther@suse.de>
71 PR tree-optimization/91750
72 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
73 in the type of the evolution.
75 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
77 PR tree-optimization/89386
78 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
79 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
80 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
81 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
82 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
83 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
84 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
85 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
86 (su, r): Handle the unspecs above.
87 (bt): New int attribute.
88 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
89 * internal-fn.c (first_commutative_argument): Commutativity info for
91 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
92 (umulhrs_optab): New optabs.
93 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
94 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
95 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
97 (vect_vect_recog_func_ptrs): Add it.
99 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
101 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
104 2019-09-11 Nathan Sidwell <nathan@acm.org>
106 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
107 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
109 2019-09-11 Richard Biener <rguenther@suse.de>
111 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
112 * lto-wrapper.c (merge_and_complain): Pick up -g.
113 (append_compiler_options): Likewise.
114 (run_gcc): Re-instantiate handling -g0 at link-time.
115 * doc/invoke.texi (flto): Document debug info generation.
117 2019-09-11 Richard Biener <rguenther@suse.de>
119 PR tree-optimization/90387
120 * vr-values.c (vr_values::extract_range_basic): After inlining
121 simplify non-constant __builtin_constant_p to false.
123 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
125 PR rtl-optimization/89795
126 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
127 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
129 2019-09-11 Jakub Jelinek <jakub@redhat.com>
131 PR tree-optimization/91723
132 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
133 instead of pointer equality when checking if argument vectypes are
137 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
138 of get_nonzero_bits, only call it for integral types.
140 2019-09-11 Richard Biener <rguenther@suse.de>
143 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
145 * match.pd: Add flag_unsafe_math_optimizations check
146 before deciding on the widest type in a binary math operation.
148 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
150 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
151 and CALL_REALLY_USED_REGISTERS must be defined, and that
152 CALL_REALLY_USED_REGISTERS is preferred.
153 * doc/tm.texi: Regenerate.
154 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
155 (call_really_used_regs): Likewise.
156 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
157 CALL_REALLY_USED_REGISTERS are defined.
158 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
159 initial value if defined.
160 (initial_call_really_used_regs): Delete.
161 (saved_call_really_used_regs): Likewise.
162 (CALL_REALLY_USED_REGNO_P): Likewise.
163 (init_reg_sets): Remove handling of call_really_used_regs.
164 (save_register_info, restore_register_info, globalize_reg): Likewise.
165 (init_reg_sets_1): Likewise. Use call_used_regs instead of
166 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
167 outside operand_reg_set.
168 (fix_register): Don't change call_used_regs if
169 CALL_REALLY_USED_REGISTERS is defined.
170 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
171 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
172 instead of call_really_used_regs.
173 (csky_conditional_register_usage): Remove the old handling of
174 call_used_regs and change the handling of call_really_used_regs
175 to use call_used_regs instead.
176 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
177 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
178 making a register fixed.
179 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
180 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
181 instead of call_really_used_regs.
182 (m32r_conditional_register_usage): Don't set call_used_regs when
183 making a register fixed.
184 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
185 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
186 instead of call_really_used_regs.
187 (mips_interrupt_extra_call_saved_reg_p): Likewise.
188 (mips_cfun_call_saved_reg_p): Likewise.
189 (mips_swap_registers): Remove the old handling of call_used_regs
190 and change the handling of call_really_used_regs to use call_used_regs
192 (mips_conditional_register_usage): Likewise.
193 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
194 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
195 instead of call_really_used_regs.
196 (mn10300_get_live_callee_saved_regs): Likewise.
197 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
198 (mn10300_conditional_register_usage): Don't set call_used_regs when
199 making a register fixed.
200 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
201 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
202 Remove the old handling of call_used_regs and change the handling
203 of call_really_used_regs to use call_used_regs instead.
204 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
205 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
206 instead of call_really_used_regs.
207 (s390_register_info_gprtofpr, s390_register_info): Likewise.
208 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
209 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
210 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
211 (s390_conditional_register_usage): Remove the old handling of
212 call_used_regs and change the handling of call_really_used_regs
213 to use call_used_regs instead.
214 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
215 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
216 (sh_fix_range, reg_unused_after): Likewise.
217 (sh_conditional_register_usage): Remove the old handling of
218 call_used_regs and change the handling of call_really_used_regs
219 to use call_used_regs instead.
220 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
221 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
222 call_used_regs when making a register fixed.
223 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
224 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
225 call_used_regs when making a register fixed.
226 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
227 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
228 set call_used_regs when making a register fixed.
229 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
230 * config/visium/visium.c (visium_conditional_register_usage): Remove
231 the old handling of call_used_regs and change the handling of
232 call_really_used_regs to use call_used_regs instead.
234 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
236 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
237 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
238 * reginfo.c (call_used_regs): New macro.
240 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
242 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
244 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
245 (bpf_expand_epilogue): Likewise.
246 * config/c6x/c6x.c (c6x_save_reg): Likewise.
247 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
248 (ft32_expand_epilogue): Likewise.
249 * config/i386/i386.c (ix86_save_reg): Likewise.
250 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
251 (moxie_expand_epilogue): Likewise.
252 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
253 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
254 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
256 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
258 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
259 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
260 instead of testing call_used_regs directly.
261 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
262 (aarch64_components_for_bb): Likewise.
263 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
264 * config/arc/arc.c (arc_must_save_register): Likewise.
265 (arc_epilogue_uses): Likewise.
266 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
267 (legitimize_pic_address, callee_saved_reg_p): Likewise.
268 (arm_compute_save_reg0_reg12_mask): Likewise.
269 (arm_compute_save_core_reg_mask): Likewise.
270 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
271 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
272 (cmse_nonsecure_entry_clear_before_return): Likewise.
273 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
274 (arm_expand_epilogue): Likewise.
275 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
276 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
277 (_reg_unused_after): Likewise.
278 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
279 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
280 (add_to_reg, hwloop_optimize): Likewise.
281 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
282 (bpf_expand_epilogue): Likewise.
283 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
284 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
285 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
286 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
287 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
288 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
289 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
290 * config/frv/frv.c (frv_stack_info): Likewise.
291 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
292 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
293 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
294 (move_callee_saved_registers): Likewise.
295 * config/h8300/h8300.c (byte_reg): Likewise.
296 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
297 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
298 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
299 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
300 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
301 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
302 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
303 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
304 * config/m32c/m32c.c (need_to_save): Likewise.
305 * config/m68k/m68k.c (m68k_save_reg): Likewise.
306 * config/mcore/mcore.c (calc_live_regs): Likewise.
307 * config/microblaze/microblaze.c (microblaze_must_save_register):
309 * config/mmix/mmix.c (mmix_local_regno): Likewise.
310 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
311 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
312 (mmix_expand_epilogue): Likewise.
313 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
314 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
315 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
316 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
317 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
318 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
319 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
320 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
321 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
322 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
323 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
324 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
325 * config/rl78/rl78.c (need_to_save): Likewise.
326 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
327 (rs6000_stack_info, generate_set_vrsave): Likewise.
328 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
329 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
330 * config/rx/rx.c (rx_get_stack_layout): Likewise.
331 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
332 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
333 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
334 (save_local_or_in_reg_p): Likewise.
335 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
336 (xstormy16_epilogue_uses): Likewise.
337 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
338 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
339 * config/v850/v850.c (compute_register_save_size): Likewise.
340 * config/vax/vax.c (vax_expand_prologue): Likewise.
341 * config/visium/visium.c (visium_save_reg_p): Likewise.
342 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
343 * cselib.c (cselib_process_insn): Likewise.
344 * df-scan.c (df_get_entry_block_def_set): Likewise.
345 * function.c (aggregate_value_p): Likewise.
346 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
347 * ira-lives.c (process_bb_node_lives): Likewise.
348 * ira.c (do_reload): Likewise.
349 * lra-lives.c (process_bb_lives): Likewise.
350 * lra-remat.c (lra_remat): Likewise.
351 * lra.c (lra): Likewise.
352 * postreload.c (reload_combine_recognize_pattern): Likewise.
353 (reload_cse_move2add): Likewise.
354 * recog.c (peep2_find_free_register): Likewise.
355 * regrename.c (check_new_reg_p): Likewise.
356 * reload.c (find_equiv_reg): Likewise.
357 * reload1.c (reload, find_reg): Likewise.
358 * sel-sched.c (init_hard_regs_data): Likewise.
360 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
362 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
363 regs_invalidated_by_call & ~fixed_reg_set instead of
364 call_used_or_fixed_regs & ~fixed_reg_set.
365 * config/sh/sh.c (output_stack_adjust): Likewise.
367 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
369 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
370 (call_used_reg_set): Delete.
371 (call_used_or_fixed_regs): New macro.
372 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
373 of call_used_reg_set.
374 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
375 instead of call_used_regs.
376 (save_call_clobbered_regs): Likewise.
377 * cfgcleanup.c (old_insns_match_p): Likewise.
378 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
379 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
381 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
382 * config/sh/sh.c (output_stack_adjust): Likewise.
383 * final.c (collect_fn_hard_reg_usage): Likewise.
384 * ira-build.c (ira_build): Likewise.
385 * ira-color.c (calculate_saved_nregs): Likewise.
386 (allocno_reload_assign, calculate_spill_cost): Likewise.
387 * ira-conflicts.c (ira_build_conflicts): Likewise.
388 * ira-costs.c (ira_tune_allocno_costs): Likewise.
389 * ira-lives.c (process_bb_node_lives): Likewise.
390 * ira.c (setup_reg_renumber): Likewise.
391 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
392 * lra-constraints.c (need_for_call_save_p): Likewise.
393 (need_for_split_p, inherit_in_ebb): Likewise.
394 * lra-lives.c (process_bb_lives): Likewise.
395 * lra-remat.c (call_used_input_regno_present_p): Likewise.
396 * postreload.c (reload_combine): Likewise.
397 * regrename.c (find_rename_reg): Likewise.
398 * reload1.c (reload_as_needed): Likewise.
399 * rtlanal.c (find_all_hard_reg_sets): Likewise.
400 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
401 * shrink-wrap.c (requires_stack_frame_p): Likewise.
403 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
405 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
406 (no_caller_save_reg_set): Delete.
407 * caller-save.c (init_caller_save): Don't initialize it.
408 * ira-conflicts.c (ira_build_conflicts): Calculate
409 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
411 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
413 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
414 (target_hard_regs::x_savable_regs): New field.
415 (call_fixed_reg_set): Delete.
416 (savable_regs): New macro,
417 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
418 (init_reg_sets_1): Likewise. Initialize savable_regs.
419 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
420 for all registers. Set savable_regs instead of call_fixed_reg_set.
421 (setup_save_areas, save_call_clobbered_regs): Replace uses of
422 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
423 * config/sh/sh.c (output_stack_adjust): Likewise.
425 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
427 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
428 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
429 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
431 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
433 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
434 * rtlanal.c (get_call_rtx_from): Likewise.
435 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
436 than the pattern to get_call_rtx_from.
437 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
438 an rtx_insn * instead of an rtx.
439 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
441 2019-09-10 Martin Liska <mliska@suse.cz>
443 * common.opt: Use newly added WarnRemoved.
444 * config/aarch64/aarch64.opt: Likewise.
445 * config/arm/arm.opt: Likewise.
446 * config/i386/i386.opt: Likewise.
447 * config/ia64/ia64.opt: Likewise.
448 * config/rs6000/rs6000.opt: Likewise.
449 * doc/options.texi: Document WarnRemoved properly.
450 * dwarf2out.c (gen_producer_string): Handle renamed
451 OPT_SPECIAL_warn_removed.
452 * lto-opts.c (lto_write_options): Likewise.
453 * lto-wrapper.c (merge_and_complain): Likewise.
454 * opts-common.c (decode_cmdline_option): Likewise.
455 (prune_options): Likewise.
456 (read_cmdline_option): Likewise.
457 (control_warning_option): Likewise.
458 * opts.c (print_filtered_help): Likewise.
459 * optc-gen.awk: Parse for WarnRemoved and make usage
460 of Deprecated an error.
461 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
463 2019-09-10 Arnaud Charlet <charlet@adacore.com>
465 * doc/install.texi: Fix syntax for html generation.
467 2019-09-10 Jakub Jelinek <jakub@redhat.com>
470 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
471 the shift type to type.
473 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
475 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
477 (stack_protect_combined_test_insn): Likewise.
479 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
480 Mickaël Guêné <mickael.guene@st.com>
482 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
483 * config/arm/arm.md (FDPIC_REGNUM): New constant.
484 (load_tp_soft_fdpic): New pattern.
485 (load_tp_soft): Disable in FDPIC mode.
487 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
488 Mickaël Guêné <mickael.guene@st.com>
490 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
491 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
492 (arm_call_tls_get_addr): Add FDPIC support.
493 (legitimize_tls_address): Likewise.
494 (arm_emit_tls_decoration): Likewise.
496 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
497 Mickaël Guêné <mickael.guene@st.com>
499 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
501 (arm_trampoline_init): Likewise.
502 (arm_trampoline_adjust_address): Likewise.
503 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
505 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
506 Mickaël Guêné <mickael.guene@st.com>
508 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
509 (legitimize_pic_address): Enforce binding rules on function
510 pointers in FDPIC mode.
511 (arm_assemble_integer): Likewise.
513 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
514 Mickaël Guêné <mickael.guene@st.com>
516 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
517 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
520 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
521 Mickaël Guêné <mickael.guene@st.com>
523 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
526 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
527 Mickaël Guêné <mickael.guene@st.com>
529 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
531 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
533 * config/arm/arm.c (arm_option_override): Define pic register to
535 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
536 have no decl or go through PLT.
537 (calculate_pic_address_constant): New function.
538 (legitimize_pic_address): Call calculate_pic_address_constant.
539 (arm_load_pic_register): Handle TARGET_FDPIC.
540 (arm_is_segment_info_known): New function.
541 (arm_pic_static_addr): Add support for FDPIC.
542 (arm_load_function_descriptor): New function.
543 (arm_emit_call_insn): Add support for FDPIC.
544 (arm_assemble_integer): Add support for FDPIC.
545 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
546 Define. (FDPIC_REGNUM): New define.
547 * config/arm/arm.md (call): Add support for FDPIC.
548 (call_value): Likewise.
549 (restore_pic_register_after_call): New pattern.
550 (untyped_call): Disable if FDPIC.
551 (untyped_return): Likewise.
552 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
554 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
555 Mickaël Guêné <mickael.guene@st.com>
557 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
558 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
559 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
560 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
561 (CC1_SPEC): Use FDPIC_CC1_SPEC.
562 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
563 * config/arm/uclinuxfdpiceabi.h: New file.
565 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
567 * config.gcc: Handle *-*-uclinuxfdpiceabi.
569 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
570 Mickaël Guêné <mickael.guene@st.com>
572 * config/arm/arm.opt: Add -mfdpic option.
573 * doc/invoke.texi: Add documentation for -mfdpic.
575 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
577 * expmed.c (extract_bit_field): Update function comment
579 * expr.c (expand_expr_real): Update function comment
581 (expand_misaligned_mem_ref): New helper function.
582 (expand_expr_real_2): Use expand_misaligned_mem_ref.
583 Remove duplicate assignment to "base" at case MEM_REF.
584 Remove a shadowed variable "unsignedp" at case VCE.
586 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
588 * regset.h (regs_invalidated_by_call_regset): Delete.
589 (fixed_reg_set_regset): Likewise.
590 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
591 (fixed_reg_set_regset, persistent_obstack): Likewise.
592 (init_reg_sets_1, globalize_reg): Update accordingly.
593 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
595 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
596 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
597 instead of regs_invalidated_by_call_regset.
598 (df_lr_confluence_n, df_md_confluence_n): Likewise.
599 * df-scan.c (df_scan_start_dump): Likewise.
600 * dse.c (copy_fixed_regs): Likewise.
601 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
603 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
605 * array-traits.h: New file.
606 * coretypes.h (array_traits, bitmap_view): New types.
607 * bitmap.h: Include "array-traits.h"
608 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
609 (base_bitmap_view, bitmap_view): New classes.
610 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
611 * hard-reg-set.h: Include array-traits.h.
612 (array_traits<HARD_REG_SET>): New struct.
613 * regset.h (IOR_REG_SET_HRS): New macro.
614 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
615 rather than iterating over each hard register.
616 * sched-deps.c (sched_analyze_insn): Likewise.
617 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
619 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
621 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
622 instead of a HARD_REG_SET *.
623 * ira-build.c (ior_hard_reg_conflicts): Likewise.
624 (ira_build): Update call accordingly.
625 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
627 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
629 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
630 (HARD_REG_SET::operator!=): Likewise.
631 (hard_reg_set_equal_p): Delete.
632 * cfgcleanup.c (old_insns_match_p): Use == instead of
633 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
634 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
635 (add_allocno_hard_regs_to_forest): Likewise.
636 (setup_allocno_available_regs_num): Likewise.
637 * ira.c (setup_pressure_classes): Likewise.
638 (setup_allocno_and_important_classes): Likewise.
639 (setup_reg_class_relations): Likewise.
640 * lra-lives.c (process_bb_lives): Likewise.
641 * reg-stack.c (change_stack, convert_regs_1): Likewise.
643 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
645 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
646 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
647 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
648 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
650 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
651 * ira.c (setup_reg_renumber): Likewise.
652 * lra-assigns.c (find_hard_regno_for_1): Likewise.
653 * regrename.c (regrename_find_superclass): Likewise.
654 * reload1.c (find_reg): Likewise.
656 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
658 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
659 * caller-save.c (setup_save_areas): Use "&~" instead of
660 AND_COMPL_HARD_REG_SET.
661 (save_call_clobbered_regs): Likewise.
662 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
664 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
665 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
666 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
667 * config/mips/mips.c (mips_class_max_nregs): Likewise.
668 (mips_conditional_register_usage): Likewise.
669 * config/sh/sh.c (output_stack_adjust): Likewise.
670 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
671 (setup_profitable_hard_regs): Likewise.
672 (get_conflict_and_start_profitable_regs): Likewise.
673 * ira-conflicts.c (print_allocno_conflicts): Likewise.
674 (ira_build_conflicts): Likewise.
675 * ira-costs.c (restrict_cost_classes): Likewise.
676 (setup_regno_cost_classes_by_aclass): Likewise.
677 * ira-lives.c (process_bb_node_lives): Likewise.
678 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
679 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
680 (setup_allocno_and_important_classes, setup_class_translate_array)
681 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
683 * lra-assigns.c (find_hard_regno_for_1): Likewise.
684 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
685 (process_alt_operands, inherit_in_ebb): Likewise.
686 * lra-eliminations.c (update_reg_eliminate): Likewise.
687 * lra-lives.c (process_bb_lives): Likewise.
688 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
689 * resource.c (find_dead_or_set_registers): Likewise.
690 (mark_target_live_regs): Likewise.
691 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
692 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
693 (implicit_clobber_conflict_p): Likewise.
694 * shrink-wrap.c (requires_stack_frame_p): Likewise.
695 (try_shrink_wrapping): Likewise.
697 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
699 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
700 (HARD_REG_SET::operator|=): Likewise.
701 (IOR_HARD_REG_SET): Delete.
702 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
704 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
705 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
706 * final.c (collect_fn_hard_reg_usage): Likewise.
707 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
708 * ira-build.c (merge_hard_reg_conflicts): Likewise.
709 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
710 (propagate_some_info_from_allocno): Likewise.
711 (copy_info_to_removed_store_destinations): Likewise.
712 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
713 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
714 (fast_allocation): Likewise.
715 * ira-conflicts.c (ira_build_conflicts): Likewise.
716 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
717 (process_bb_node_lives): Likewise.
718 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
719 * lra-assigns.c (find_hard_regno_for_1): Likewise.
720 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
721 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
722 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
723 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
724 (process_bb_lives): Likewise.
725 * lra-spills.c (assign_spill_hard_regs): Likewise.
726 * postreload.c (reload_combine): Likewise.
727 * reginfo.c (init_reg_sets_1): Likewise.
728 * regrename.c (merge_overlapping_regs, find_rename_reg)
729 (merge_chains): Likewise.
730 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
731 (find_reload_regs, finish_spills, choose_reload_regs_init)
732 (emit_reload_insns): Likewise.
733 * reorg.c (redundant_insn): Likewise.
734 * resource.c (find_dead_or_set_registers, mark_set_resources)
735 (mark_target_live_regs): Likewise.
736 * rtlanal.c (find_all_hard_reg_sets): Likewise.
737 * sched-deps.c (sched_analyze_insn): Likewise.
738 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
739 (find_best_reg_for_expr): Likewise.
740 * shrink-wrap.c (try_shrink_wrapping): Likewise.
742 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
744 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
745 (HARD_REG_SET::operator&): Likewise.
746 (AND_HARD_REG_SET): Delete.
747 * caller-save.c (setup_save_areas): Use "&" instead of
749 (save_call_clobbered_regs): Likewise.
750 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
751 * config/m32c/m32c.c (reduce_class): Likewise.
752 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
753 * final.c (get_call_reg_set_usage): Likewise.
754 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
755 (setup_left_conflict_sizes_p): Likewise.
756 * ira-conflicts.c (print_allocno_conflicts): Likewise.
757 (ira_build_conflicts): Likewise.
758 * ira-costs.c (restrict_cost_classes): Likewise.
759 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
760 (setup_reg_class_relations): Likewise.
761 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
762 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
763 * resource.c (find_dead_or_set_registers): Likewise.
764 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
766 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
768 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
769 (COMPL_HARD_REG_SET): Delete.
770 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
771 of COMPL_HARD_REG_SET.
772 (try_rename_operands): Likewise.
773 * config/sh/sh.c (push_regs): Likewise.
774 * lra-assigns.c (find_hard_regno_for_1): Likewise.
775 * lra-constraints.c (contains_reg_p): Likewise.
776 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
778 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
780 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
781 * caller-save.c (save_call_clobbered_regs): Use assignment instead
782 of COPY_HARD_REG_SET.
783 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
784 (epiphany_conditional_register_usage): Likewise.
785 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
786 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
787 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
788 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
789 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
790 * config/mips/mips.c (mips_class_max_nregs): Likewise.
791 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
792 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
793 * config/sh/sh.c (output_stack_adjust): Likewise.
794 * final.c (collect_fn_hard_reg_usage): Likewise.
795 (get_call_reg_set_usage): Likewise.
796 * ira-build.c (ira_create_object, remove_low_level_allocnos)
797 (ira_flattening): Likewise.
798 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
799 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
800 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
801 (ira_reassign_pseudos): Likewise.
802 * ira-conflicts.c (print_allocno_conflicts): Likewise.
803 (ira_build_conflicts): Likewise.
804 * ira-costs.c (restrict_cost_classes): Likewise.
805 (setup_regno_cost_classes_by_aclass): Likewise.
806 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
807 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
808 (setup_stack_reg_pressure_class, setup_pressure_classes)
809 (setup_allocno_and_important_classes, setup_class_translate_array)
810 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
811 (ira_setup_eliminable_regset): Likewise.
812 * lra-assigns.c (find_hard_regno_for_1): Likewise.
813 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
814 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
815 (process_alt_operands, inherit_in_ebb): Likewise.
816 * lra-lives.c (process_bb_lives): Likewise.
817 * lra-spills.c (assign_spill_hard_regs): Likewise.
818 * lra.c (lra): Likewise.
819 * mode-switching.c (new_seginfo): Likewise.
820 * postreload.c (reload_combine): Likewise.
821 * reg-stack.c (straighten_stack): Likewise.
822 * reginfo.c (save_register_info, restore_register_info): Likewise.
823 (init_reg_sets_1, record_subregs_of_mode): Likewise
824 * regrename.c (create_new_chain, rename_chains): Likewise.
825 * reload1.c (order_regs_for_reload, find_reg): Likewise.
826 (find_reload_regs): Likewise.
827 * resource.c (find_dead_or_set_registers): Likewise.
828 (mark_target_live_regs): Likewise.
829 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
831 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
833 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
834 (note_pattern_stores): Declare.
835 (note_stores): Take an rtx_insn *.
836 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
837 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
838 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
839 (note_stores): Take an rtx_insn * as argument and process
840 CALL_INSN_FUNCTION_USAGE. Rename old function to...
841 (note_pattern_stores): ...this.
842 (find_first_parameter_load): Pass the insn rather than
843 its pattern to note_stores.
844 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
845 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
846 (insert_one_insn): Likewise.
847 * combine.c (combine_instructions): Likewise.
848 (likely_spilled_retval_p): Likewise.
849 (try_combine): Use note_pattern_stores instead of note_stores.
850 (record_dead_and_set_regs): Pass the insn rather than its pattern
852 (reg_dead_at_p): Likewise.
853 * config/bfin/bfin.c (workaround_speculation): Likewise.
854 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
856 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
857 instead of note_stores.
858 (frv_optimize_membar_local): Pass the insn rather than its pattern
860 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
861 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
862 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
863 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
864 (mips_reorg_process_insns): Likewise.
865 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
866 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
868 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
869 its pattern to note_stores.
870 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
872 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
873 the insn to note_stores.
874 (prescan_insns_for_dce): Update call accordingly.
875 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
877 * df-problems.c (can_move_insns_across): Likewise.
878 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
879 * function.c (assign_parm_setup_reg): Likewise.
880 * gcse-common.c (record_last_mem_set_info_common): Likewise.
881 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
882 (single_set_gcse): Likewise.
883 * ira.c (validate_equiv_mem): Likewise.
884 (update_equiv_regs): Use note_pattern_stores rather than note_stores
886 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
887 pattern to note_stores.
888 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
889 * loop-iv.c (simplify_using_initial_values): Likewise.
890 * mode-switching.c (optimize_mode_switching): Likewise.
891 * optabs.c (emit_libcall_block_1): Likewise.
892 (expand_atomic_compare_and_swap): Likewise.
893 * postreload-gcse.c (load_killed_in_block_p): Likewise.
894 (record_opr_changes): Likewise. Remove explicit handling of
895 CALL_INSN_FUNCTION_USAGE.
896 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
897 * regcprop.c (kill_clobbered_values): Likewise.
898 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
900 * regrename.c (build_def_use): Likewise.
901 * reload1.c (reload): Use note_pattern_stores instead of note_stores
902 for mark_not_eliminable.
903 (reload_as_needed): Pass the insn rather than its pattern
905 (emit_output_reload_insns): Likewise.
906 * resource.c (mark_target_live_regs): Likewise.
907 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
908 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
909 instead of note_stores.
910 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
911 its pattern to note_stores.
912 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
913 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
915 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
917 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
918 than a #define. Use a structure rather than an array as the
919 fallback definition. Remove special cases for low array sizes.
920 (const_hard_reg_set): New typedef.
921 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
922 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
923 (hard_reg_set_empty_p): Likewise.
924 (SET_HARD_REG_BIT): Use a function rather than a macro to
925 handle the case in which HARD_REG_SET is a structure.
926 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
927 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
928 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
929 (IOR_COMPL_HARD_REG_SET): Likewise.
930 (hard_reg_set_iterator::pset): Constify the pointer target.
931 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
932 of a "const HARD_REG_SET". Update the handling of non-integer
934 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
935 * reload.h: Likewise.
936 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
937 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
938 of a "const HARD_REG_SET".
939 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
940 (range_in_hard_reg_set_p): Likewise.
941 * ira-costs.c (restrict_cost_classes): Likewise.
942 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
943 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
944 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
945 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
946 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
947 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
948 take an unsigned int and open-code the HARD_REG_SET operations.
950 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
952 * Makefile.in (OBJS): Remove bt-load.o.
953 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
954 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
955 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
956 document that the option no longer does anything.
957 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
958 * target.def (branch_target_register_class): Delete.
959 (branch_target_register_callee_saved): Likewise.
960 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
961 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
962 * doc/tm.texi: Regenerate.
963 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
964 (make_pass_branch_target_load_optimize2): Likewise.
965 * passes.def (pass_branch_target_load_optimize1): Likewise.
966 (pass_branch_target_load_optimize2): Likewise.
967 * targhooks.h (default_branch_target_register_class): Likewise.
968 * targhooks.c (default_branch_target_register_class): Likewise.
969 * opt-suggestions.c (test_completion_valid_options): Remove
970 -fbtr-bb-exclusive from the list of test options.
973 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
975 * match.pd: Add flag_unsafe_math_optimizations check
976 before deciding on the widest type in a binary math operation.
978 2019-09-09 Martin Liska <mliska@suse.cz>
980 * config/i386/i386.opt: Update comment of removed
981 options that are preserved only for backward
984 2019-09-09 Jakub Jelinek <jakub@redhat.com>
987 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
991 * config/i386/avxintrin.h (__v32qs): New typedef.
992 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
995 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
997 * doc/invoke.texi (Option Summary): Cover eBPF.
998 (eBPF Options): New section.
999 * doc/extend.texi (BPF Built-in Functions): Likewise.
1000 (BPF Kernel Helpers): Likewise.
1002 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
1004 * config.gcc: Support for bpf-*-* targets.
1005 * common/config/bpf/bpf-common.c: New file.
1006 * config/bpf/t-bpf: Likewise.
1007 * config/bpf/predicates.md: Likewise.
1008 * config/bpf/constraints.md: Likewise.
1009 * config/bpf/bpf.opt: Likewise.
1010 * config/bpf/bpf.md: Likewise.
1011 * config/bpf/bpf.h: Likewise.
1012 * config/bpf/bpf.c: Likewise.
1013 * config/bpf/bpf-protos.h: Likewise.
1014 * config/bpf/bpf-opts.h: Likewise.
1015 * config/bpf/bpf-helpers.h: Likewise.
1016 * config/bpf/bpf-helpers.def: Likewise.
1018 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
1020 * doc/sourcebuild.texi (Effective-Target Keywords): Document
1023 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
1025 * opt-functions.awk (integer_range_info): Make sure values are in
1026 numeric context before operating with them.
1028 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
1030 * genemit.c (gen_split): Print the filename and line number where the
1031 splitter (or peephole2) was defined, to the dump file.
1033 2019-09-07 Jakub Jelinek <jakub@redhat.com>
1035 PR tree-optimization/91665
1036 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
1037 incompatible with the type of PHI result.
1039 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1042 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
1043 gen_unaligned_storedi for 4-byte aligned addresses.
1045 2019-09-06 Jim Wilson <jimw@sifive.com>
1047 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
1050 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
1052 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
1054 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
1056 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
1057 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
1059 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
1062 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
1063 cost of SSE->integer and integer->SSE moves from 2 to 6.
1066 2019-09-06 Jakub Jelinek <jakub@redhat.com>
1068 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
1069 before testing TYPE_TRANSPARENT_AGGR.
1070 * calls.c (initialize_argument_information, load_register_parameters):
1073 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
1075 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
1077 (cmp_ior): Likewise.
1079 2019-09-06 Martin Liska <mliska@suse.cz>
1081 * doc/match-and-simplify.texi: Separate tuples with ;.
1083 2019-09-06 Martin Liska <mliska@suse.cz>
1086 * Makefile.in: Remove tlink.o.
1087 * collect2.c (do_link): New function isolated
1090 * collect2.h (do_tlink): Remove declaration of do_tlink.
1091 * doc/extend.texi: Remove documentation of -frepo.
1092 * doc/invoke.texi: Likewise.
1093 * doc/sourcebuild.texi: Remove cleanup-repo-files.
1096 2019-09-05 Jakub Jelinek <jakub@redhat.com>
1097 Jim Wilson <jimw@sifive.com>
1100 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
1101 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
1102 paradoxical_subreg_p (operands[0]).
1103 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
1104 use as intermediate value.
1106 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
1108 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
1109 (sync_compare_and_swap<mode>_insn): Likewise.
1111 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
1114 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
1115 without movmisalign optab.
1117 2019-09-05 Jakub Jelinek <jakub@redhat.com>
1122 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
1123 types, use type of their first field instead of type of
1126 2019-09-05 Richard Biener <rguenther@suse.de>
1128 PR rtl-optimization/91656
1129 * postreload-gcse.c (record_last_mem_set_info): Revert addition
1132 2019-09-05 Richard Biener <rguenther@suse.de>
1135 * tree-inline.c (declare_return_variable): Mark the return
1136 slot as addressable after building an address of it.
1138 2019-09-05 Arnaud Charlet <charlet@adacore.com>
1140 * doc/install.texi: Update and clarify requirements to build GNAT.
1142 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
1145 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
1146 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
1147 call to be in memory.
1148 (pass_expand::execute): Call discover_nonconstant_array_refs before
1149 setting currently_expanding_to_rtl.
1151 2019-09-04 Caroline Tice <cmtice@google.com>
1153 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
1156 2019-09-04 Marek Polacek <polacek@redhat.com>
1158 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
1160 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
1163 * config/i386/i386.c (inline_secondary_memory_needed): Return true
1164 for QI and HImode moves between SSE and general registers.
1166 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1169 * doc/invoke.texi: Document -Wenum-conversion.
1171 2019-09-04 Richard Biener <rguenther@suse.de>
1173 PR rtl-optimization/36262
1174 * postreload-gcse.c: Include intl.h and gcse.h.
1175 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
1176 to avoid linear list walk.
1177 (record_last_mem_set_info): Gate off if not computing transparentness.
1178 (get_bb_avail_insn): If transparentness isn't computed give up
1180 (gcse_after_reload_main): Skip compute_transp and extended PRE
1181 if gcse_or_cprop_is_too_expensive says so.
1183 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1185 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
1187 (msp430_select_section): Handle decls with the "noinit" attribute with
1188 default_elf_select_section.
1189 Handle SECCAT_RODATA_MERGE_* section types with
1190 default_elf_select_section.
1191 Add comments about handling of unsupported section types.
1192 (msp430_section_type_flags): Remove handling of the noinit section.
1194 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1196 * config/msp430/msp430.c (msp430_attr): Remove warnings about
1197 conflicting msp430-specific attributes.
1198 (msp430_section_attr): Likewise.
1199 Add warnings about conflicts with generic "noinit" and "section"
1201 Fix grammar in -mlarge error message.
1202 (msp430_data_attr): Rename to msp430_persist_attr.
1203 Add warnings about conflicts with generic "noinit" and "section"
1205 Add warning for when variable is not initialized.
1206 Chain conditionals which prevent the attribute being added.
1207 (ATTR_EXCL): New helper.
1208 (attr_reent_exclusions): New exclusion table.
1209 (attr_naked_exclusions): Likewise.
1210 (attr_crit_exclusions): Likewise.
1211 (attr_lower_exclusions): Likewise.
1212 (attr_upper_exclusions): Likewise.
1213 (attr_either_exclusions): Likewise.
1214 (attr_persist_exclusions): Likewise.
1215 (msp430_attribute_table): Update with exclusion rules.
1216 (msp430_output_aligned_decl_common): Don't output common symbol if decl
1219 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1221 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
1222 (msp430_handle_generic_attribute): New function.
1223 * doc/tm.texi: Regenerate.
1224 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
1225 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
1226 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
1227 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
1229 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
1231 PR tree-optimization/91504
1232 * match.pd: Add ((~a & b) ^a) --> (a | b).
1234 2019-09-03 Jakub Jelinek <jakub@redhat.com>
1237 * config/i386/i386-expand.c (split_double_mode): If there is more than
1238 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
1239 already split matching MEM operand instead of calling adjust_address
1242 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
1244 * config.gcc: Obsolete spu target. Remove references to spu.
1245 * configure.ac: Remove references to spu.
1246 * configure: Regenerate.
1247 * config/spu/: Remove directory.
1248 * common/config/spu/: Remove directory.
1250 * doc/extend.texi: Remove references to spu.
1251 * doc/invoke.texi: Likewise.
1252 * doc/md.texi: Likewise.
1253 * doc/sourcebuild.texi: Likewise.
1255 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1260 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
1261 and SSA_NAME referring to CONSTANT_P correctly.
1263 2019-09-03 Richard Biener <rguenther@suse.de>
1265 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
1266 (vn_nary_op_insert): Likewise.
1267 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
1268 (vn_nary_op_lookup): Likewise.
1269 (vn_nary_op_insert): Likewise.
1271 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
1273 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
1274 (*op0, 1) instead of XEXP (*op1, 0).
1276 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1278 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
1279 (aarch64_fjcvtzs): New define_insn.
1280 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
1281 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
1283 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
1284 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
1285 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1286 __ARM_FEATURE_JCVT where appropriate.
1287 * config/aarch64/arm_acle.h (__jcvt): Define.
1289 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1291 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
1292 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
1293 (aarch64_<frintnzs_op><mode>): New define_insn.
1294 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
1295 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1296 __ARM_FEATURE_FRINT when appropriate.
1297 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
1298 frint32x, frint64z, frint64x.
1299 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
1300 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
1301 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
1302 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
1303 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
1304 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
1305 * config/aarch64/iterators.md (VSFDF): Define.
1306 (FRINTNZX): Likewise.
1307 (frintnzs_op): Likewise.
1309 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
1311 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
1312 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
1314 * config/aarch64/aarch64-tune.md: Regenerated.
1315 * doc/invoke.texi: Document the new processors.
1317 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1319 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
1323 (sve2-sm4): Likewise.
1325 (svesha3): Likewise.
1326 (svebitperm): Likewise.
1328 2019-09-03 Jakub Jelinek <jakub@redhat.com>
1329 Richard Biener <rguenther@suse.de>
1331 PR tree-optimization/91597
1332 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
1333 BIT_AND_EXPR optimization for pointers, even if both operand
1334 ranges don't include NULL, the result can be NULL.
1336 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1339 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
1340 (non_mem_decl_p): ...this.
1341 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
1342 (expand_assignment): Call mem_ref_referes_to_non_mem_p
1343 unconditionally as before.
1345 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
1348 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
1349 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
1350 * tree.def (LTGT_EXPR): Likewise.
1351 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
1353 2019-09-02 Jakub Jelinek <jakub@redhat.com>
1356 * fold-const.c (range_check_type): For enumeral and boolean
1357 type, pass 1 to type_for_size langhook instead of
1358 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
1359 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
1360 (build_range_check): Don't call unsigned_type_for for pointer types.
1361 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
1362 range_check_type result.
1364 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
1366 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
1367 (replace_ref): Do not replace a chain of only two candidates which are
1368 valid memory references.
1370 2019-09-02 Martin Liska <mliska@suse.cz>
1372 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
1373 Bail out when we'll end up with the same number of clusters as
1375 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
1376 (jump_table_cluster::can_be_handled): Remove the guard
1377 as it's already handled in ::is_enabled. Allocate output
1378 after early bail out.
1380 2019-09-02 Martin Liska <mliska@suse.cz>
1382 PR gcov-profile/91601
1383 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
1384 (path_contains_zero_or_negative_cycle_arc): ... this and handle
1385 also negative edges.
1386 (circuit): Handle also negative edges as they can happen
1389 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
1392 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
1393 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
1394 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
1396 2019-09-01 Jakub Jelinek <jakub@redhat.com>
1399 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
1400 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
1401 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
1405 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
1406 GIMPLE_ASM TREE_LIST operands.
1408 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
1410 * doc/generic.texi (Unary and Binary Expressions): Mark up
1411 an instance of TYPE_MIN.
1413 2019-08-31 Stafford Horne <shorne@gmail.com>
1415 * config/or1k/constraints.md (t): New constraint.
1416 * config/or1k/or1k.h (GOT_REGS): New register class.
1417 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
1419 2019-08-30 Jim Wilson <jimw@sifive.com>
1421 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
1422 and -fpic and -mplt then disable -msave-restore and warn.
1424 2019-08-30 Martin Sebor <msebor@redhat.com>
1427 * tree-ssa-strlen.c (handle_store): Use a fallback location if
1428 the statement doesn't have one.
1429 * gimple-pretty-print.c (percent_G_format): Same.
1432 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
1433 before using them to validate MEM_REF offset.
1435 2019-08-30 Marek Polacek <polacek@redhat.com>
1437 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
1439 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
1441 * config/arm/arm.md (unaligned_loaddi,
1442 unaligned_storedi): New unspec insn patterns.
1443 * config/arm/neon.md (unaligned_storev8qi): Likewise.
1444 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
1445 and unaligned_storedi for 4-byte aligned memory.
1446 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
1447 4-byte aligned memory.
1449 2019-08-30 Martin Jambor <mjambor@suse.cz>
1451 tree-optimization/91579
1452 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
1453 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
1455 (arg_needs_copy_p): Removed.
1456 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
1458 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
1460 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
1462 * config/i386/i386-features.c
1463 (general_scalar_chain::compute_convert_gain):
1464 Correct cost for double-word shifts.
1465 (general_scalar_to_vector_candidate_p): Reject count operands
1466 greater or equal to mode bitsize.
1468 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
1470 * config/i386/i386.c (inline_secondary_memory_needed): Return true
1471 for moves between SSE and non-general registers and between
1472 mask and non-general registers.
1473 (ix86_register_move_cost): Remove stalled comment.
1475 2019-08-29 Richard Biener <rguenther@suse.de>
1477 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
1478 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
1480 2019-08-29 Richard Biener <rguenther@suse.de>
1483 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
1484 Do not emit scalar copies for debug-insns, instead replace
1485 their uses with the reg copy used in the chain or reset them
1486 if there is a reaching definition outside of the chain as well.
1488 2019-08-29 Jakub Jelinek <jakub@redhat.com>
1491 * config/i386/i386-expand.c (expand_vec_perm_movs,
1492 expand_vec_perm_blend, expand_vec_perm_vpermil,
1493 expand_vec_perm_pshufb, expand_vec_perm_1,
1494 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
1495 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
1496 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
1497 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
1498 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
1499 comments - replace ix86_expand_vec_perm_builtin_1 with
1500 ix86_expand_vec_perm_const_1.
1501 (expand_vec_perm2_vperm2f128_vblend): New function.
1502 (ix86_expand_vec_perm_const_1): New forward declaration. Call
1503 expand_vec_perm2_vperm2f128_vblend as last resort.
1504 (canonicalize_perm): Formatting fix.
1506 PR tree-optimization/91351
1507 * tree-cfg.c (generate_range_test): Use range_check_type instead of
1509 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
1510 range_check_type returns NULL.
1511 * tree-switch-conversion.c (switch_conversion::build_one_array):
1512 Use range_check_type instead of unsigned_type_for, don't perform
1513 linear opt if it returns NULL.
1514 (bit_test_cluster::find_bit_tests): Formatting fix.
1515 (bit_test_cluster::emit): Use range_check_type instead of
1517 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
1520 2019-08-29 Richard Biener <rguenther@suse.de>
1522 PR tree-optimization/91568
1523 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
1524 (vect_update_max_nunits): Add overload for poly_uint64.
1525 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
1526 (vect_build_slp_tree): Record max_nunits into the subtree
1527 and merge it upwards.
1528 (vect_print_slp_tree): Print max_nunits.
1530 2019-08-28 Marek Polacek <polacek@redhat.com>
1532 Implement P1152R4: Deprecating some uses of volatile.
1534 * doc/invoke.texi: Document -Wvolatile.
1536 2019-08-28 Marek Polacek <polacek@redhat.com>
1538 PR c++/91360 - Implement C++20 P1143R2: constinit.
1539 * doc/invoke.texi: Document -Wc++20-compat.
1541 2019-08-28 Martin Sebor <msebor@redhat.com>
1543 PR tree-optimization/91457
1544 * builtins.c (component_size): New function.
1545 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
1546 * builtins.h (compute_objsize): Add argument.
1547 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
1548 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
1549 (vrp_prop::check_mem_ref): Same.
1550 (vrp_prop::search_for_addr_array): Set no-warning bit.
1551 (check_array_bounds): Same.
1553 2019-08-28 Martin Sebor <msebor@redhat.com>
1556 * opts-common.c (option_enabled): Correct checking for language
1559 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
1561 * config/i386/i386.c (ix86_register_move_cost): Do not
1562 limit the cost of moves to/from XMM register to minimum 8.
1564 2019-08-28 Martin Jambor <mjambor@suse.cz>
1567 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
1568 checking assert a normal assert to test it really is redundant.
1569 * ipa-prop.c (compute_complex_assign_jump_func): Removed
1571 (update_jump_functions_after_inlining): Removed combining unary
1572 arithmetic operations with an ancestor jump function.
1573 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
1576 2019-08-28 Richard Biener <rguenther@suse.de>
1578 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
1581 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
1582 Richard Biener <rguenther@suse.de>
1584 * expr.c (expand_assignment): Handle misaligned DECLs.
1585 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
1586 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
1588 (assign_parm_setup_stack): Allocate properly aligned stack slots.
1589 * varasm.c (build_constant_desc): Align constants of misaligned types.
1590 * config/arm/predicates.md (aligned_operand): New predicate.
1591 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
1592 aligned_operand to check restrictions on memory addresses.
1593 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
1594 * config/arm/vec-common.md (mov<VALL>): Likewise.
1596 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1599 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
1600 V_128 iterator instead of VI_128.
1602 2019-08-28 Martin Liska <mliska@suse.cz>
1604 PR tree-optimization/90970
1605 * builtins.c (check_access): Remove assignment to maxread
1606 as it hasn't been used since when it was introduced in r255755.
1608 2019-08-27 Martin Sebor <msebor@redhat.com>
1610 PR tree-optimization/91567
1611 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
1613 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
1616 2019-08-27 Jeff Law <law@redhat.com>
1618 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
1619 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
1621 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
1624 * config/i386/i386-features.c (convert_scalars_to_vector):
1625 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
1626 crtl->stack_realign_processed. Update crtl->drap_reg by calling
1627 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
1628 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
1630 2019-08-27 Richard Biener <rguenther@suse.de>
1632 * config/i386/i386-features.h
1633 (general_scalar_chain::~general_scalar_chain): Add.
1634 (general_scalar_chain::insns_conv): New bitmap.
1635 (general_scalar_chain::n_sse_to_integer): New.
1636 (general_scalar_chain::n_integer_to_sse): Likewise.
1637 (general_scalar_chain::make_vector_copies): Adjust signature.
1638 * config/i386/i386-features.c
1639 (general_scalar_chain::general_scalar_chain): Outline,
1640 initialize new members.
1641 (general_scalar_chain::~general_scalar_chain): New.
1642 (general_scalar_chain::mark_dual_mode_def): Record insns
1643 we need to insert conversions at and count them.
1644 (general_scalar_chain::compute_convert_gain): Account
1645 for conversion instructions at chain boundary.
1646 (general_scalar_chain::make_vector_copies): Generate a single
1647 copy for a def by a specific insn.
1648 (general_scalar_chain::convert_registers): First populate
1649 defs_map, then make copies at out-of chain insns.
1651 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
1653 * config/arm/arm.md (stack_protect_set_insn): Add security-related
1655 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
1657 2019-08-27 Martin Liska <mliska@suse.cz>
1659 * cgraph.c (cgraph_node::remove): Remove dead assignment before
1661 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
1662 Enclose in anonymous namespace.
1663 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
1664 hard_register initialization in braces.
1665 * tree-vrp.h (value_range_base::supports_type_p): Return false
1666 for function with boolean return type.
1668 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
1670 * config/i386/i386.c (emit_i387_cw_initialization)
1671 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
1673 2019-08-26 Martin Sebor <msebor@redhat.com>
1676 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
1677 (sprintf_dom_walker): Remove class.
1678 (get_int_range): Make argument const.
1679 (directive::fmtfunc, directive::set_precision): Same.
1680 (format_none): Same.
1681 (build_intmax_type_nodes): Same.
1682 (adjust_range_for_overflow): Same.
1683 (format_floating): Same.
1684 (format_character): Same.
1685 (format_string): Same.
1686 (format_plain): Same.
1687 (get_int_range): Cast away constness.
1688 (format_integer): Same.
1689 (get_string_length): Call get_range_strlen_dynamic. Handle
1690 null lendata.maxbound.
1691 (should_warn_p): Adjust argument scope qualifier.
1693 (format_directive): Same.
1694 (parse_directive): Same.
1695 (is_call_safe): Same.
1696 (try_substitute_return_value): Same.
1697 (sprintf_dom_walker::handle_printf_call): Rename...
1698 (handle_printf_call): ...to this. Initialize target to host charmap
1699 here instead of in pass_sprintf_length::execute.
1700 (struct call_info): Make global.
1701 (sprintf_dom_walker::compute_format_length): Make global.
1702 (sprintf_dom_walker::handle_gimple_call): Same.
1703 * passes.def (pass_sprintf_length): Replace with pass_strlen.
1704 * print-rtl.c (print_pattern): Reduce the number of spaces to
1705 avoid -Wformat-truncation.
1706 * tree-pass.h (make_pass_warn_printf): New function.
1707 * tree-ssa-strlen.c (strlen_optimize): New variable.
1708 (get_string_length): Add comments.
1709 (get_range_strlen_dynamic): New function.
1710 (check_and_optimize_call): New function.
1711 (handle_integral_assign): New function.
1712 (strlen_check_and_optimize_stmt): Factor code out into
1713 strlen_check_and_optimize_call and handle_integral_assign.
1714 (strlen_dom_walker::evrp): New member.
1715 (strlen_dom_walker::before_dom_children): Use evrp member.
1716 (strlen_dom_walker::after_dom_children): Use evrp member.
1717 (printf_strlen_execute): New function.
1718 (pass_strlen::gate): Update to handle printf calls.
1719 (dump_strlen_info): New function.
1720 (pass_data_warn_printf): New variable.
1721 (pass_warn_printf): New class.
1722 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
1723 (handle_printf_call): Same.
1724 * tree-vrp.c (value_range_base::type): Adjust assertion.
1725 * vr-values.c (vr_values::update_value_range): Use type of the first
1726 argument rather than the second.
1728 2019-08-26 Richard Biener <rguenther@suse.de>
1730 * config/i386/i386-features.c (general_remove_non_convertible_regs):
1732 (convert_scalars_to_vector): Do not call it.
1734 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
1735 Uros Bizjak <ubizjak@gmail.com>
1737 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
1738 CASE_MATHFN_FLOATN for roundeven.
1739 * config/i386/i386.c (ix86_i387_mode_needed): Add case
1741 (ix86_mode_needed): Likewise.
1742 (ix86_mode_after): Likewise.
1743 (ix86_mode_entry): Likewise.
1744 (ix86_mode_exit): Likewise.
1745 (ix86_emit_mode_set): Likewise.
1746 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
1747 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
1748 (ix86_entity): Add I387_ROUNDEVEN.
1749 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
1750 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
1751 (define_int_iterator): Likewise.
1752 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
1753 (define_constant): Define ROUND_ROUNDEVEN mode.
1754 (define_attr): Add roundeven mode for i387_cw.
1755 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
1756 * internal-fn.def (ROUNDEVEN): New builtin function.
1757 * optabs.def (roundeven_optab): New optab.
1759 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
1761 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
1763 * builtins.def: Added function definitions for roundeven function
1765 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
1766 function call. Adjust condition for floor, ceil, trunc and round.
1767 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
1768 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
1769 (integer_valued_real_call_p): Added case for roundeven function.
1770 * real.c (is_even): New function. Returns true if real number is even,
1771 otherwise returns false.
1772 (is_halfway_below): New function. Returns true if real number is
1773 halfway between two integers, else return false.
1774 (real_roundeven): New function. Round real number to nearest integer,
1775 rounding halfway cases towards even.
1776 * real.h (real_value): Added descriptive comments. Added function
1777 declaration for roundeven function.
1778 * doc/extend.texi (Other Builtins): List roundeven variants among
1779 functions which can be handled as builtins.
1781 2019-08-26 Richard Biener <rguenther@suse.de>
1785 * config/i386/i386-features.h (general_scalar_chain::defs_map):
1787 (general_scalar_chain::replace_with_subreg): Remove.
1788 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
1789 (general_scalar_chain::convert_reg): Adjust signature.
1790 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
1791 iterate over all defs of a reg.
1792 (general_scalar_chain::replace_with_subreg): Remove.
1793 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
1794 (general_scalar_chain::make_vector_copies): Populate defs_map,
1795 place copy only after defs that are used as vectors in the chain.
1796 (general_scalar_chain::convert_reg): Emit a copy for a specific
1797 def in a specific instruction.
1798 (general_scalar_chain::convert_op): All reg uses are converted here.
1799 (general_scalar_chain::convert_insn): Emit copies for scalar
1800 uses of defs here. Replace uses with the copies we created.
1801 Replace and convert the def. Adjust REG_DEAD notes, remove
1802 REG_EQUIV/EQUAL notes.
1803 (general_scalar_chain::convert_registers): Only handle copies
1804 into the chain here.
1806 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
1808 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
1810 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
1812 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
1813 Add nop_convert case.
1814 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
1815 Fold all statements if requested.
1816 * tree-ssa-propagate.h (class substitute_and_fold_engine):
1817 Allow to fold all statements.
1818 * tree-vrp.c (class vrp_folder):
1819 Let substitute_and_fold_engine fold all statements.
1821 2019-08-26 Richard Biener <rguenther@suse.de>
1823 PR tree-optimization/91526
1824 * passes.def: Note that after late FRE we do TODO_update_address_taken.
1825 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
1826 TODO_update_address_taken.
1828 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
1830 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
1833 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
1835 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
1836 machine mode for unspec_volatile operand.
1838 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
1840 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
1841 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
1842 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
1843 (prefer_neon_for_64bits): Remove.
1844 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
1845 (tune_params): Remove PREF_NEON_64_FALSE uses.
1846 (arm_option_override): Remove prefer_neon selection code.
1847 (arm_print_tune_info): Remove prefer_neon_for_64bits.
1848 * gcc/config/arm/arm-protos.h (tune_params): Remove
1849 prefer_neon_for_64bits.
1850 (prefer_neon_for_64bits): Remove.
1852 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
1855 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
1856 and issue any diagnostics needed before collecting the pre-PCH
1859 2019-08-23 Jakub Jelinek <jakub@redhat.com>
1862 * common.opt (fexcess-precision=): Add Optimization flag. Use
1863 flag_excess_precision variable instead of
1864 flag_excess_precision_cmdline.
1865 * flags.h (class target_flag_state): Remove x_flag_excess_precision
1867 (flag_excess_precision): Don't define.
1868 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
1869 flag_excess_precision_cmdline. Remove comment.
1870 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
1871 and x_flag_excess_precision instead of
1872 frontend_set_flag_excess_precision_cmdline and
1873 x_flag_excess_precision_cmdline.
1874 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
1875 x_flag_excess_precision_cmdline.
1876 * toplev.c (init_excess_precision): Remove.
1877 (lang_dependent_init_target): Don't call it.
1879 2019-08-23 Martin Liska <mliska@suse.cz>
1881 * lto-wrapper.c (run_gcc): When setting jobserver
1882 set also parallel to 1. This was done so before r273908.
1884 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
1886 * config/arm/arm-cpus.in (cortex-m35p): New entry.
1887 (cortex-a76ae): Likewise.
1888 (cortex-a77): Likewise
1889 * config/arm/arm-tables.opt: Regenerate.
1890 * config/arm/arm-tune.md: Likewise.
1891 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
1892 cortex-a77 CPU options.
1894 2019-08-23 Martin Liska <mliska@suse.cz>
1896 * profile.c (instrument_values): Do not set
1898 * tree-profile.c (gimple_gen_interval_profiler): Remove
1900 (gimple_gen_pow2_profiler): Likewise.
1901 (gimple_gen_topn_values_profiler): Likewise.
1902 (gimple_gen_ic_profiler): Likewise.
1903 (gimple_gen_time_profiler): Likewise.
1904 (gimple_gen_average_profiler): Likewise.
1905 (gimple_gen_ior_profiler): Likewise.
1906 * value-prof.c (dump_histogram_value): Use default
1907 in switch statement instead of HIST_TYPE_MAX.
1908 (stream_in_histogram_value): Likewise.
1909 (gimple_duplicate_stmt_histograms): Do not
1910 use NULL for implicitly set arguments.
1911 (gimple_divmod_values_to_profile): Do not use
1913 (gimple_indirect_call_to_profile): Likewise.
1914 (gimple_find_values_to_profile): Use implicit
1915 function call arguments.
1916 * value-prof.h (gimple_alloc_histogram_value):
1918 (gimple_gen_interval_profiler): Remove last argument.
1919 (gimple_gen_pow2_profiler): Likewise.
1920 (gimple_gen_topn_values_profiler): Likewise.
1921 (gimple_gen_ic_profiler): Likewise.
1922 (gimple_gen_time_profiler): Likewise.
1923 (gimple_gen_average_profiler): Likewise.
1924 (gimple_gen_ior_profiler): Likewise.
1926 2019-08-22 Martin Sebor <msebor@redhat.com>
1929 * builtins.c (c_strlen): Rename argument and introduce new local.
1930 Set no-warning bit on original argument.
1931 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
1932 Fold empty and zero constructors into empty strings.
1933 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
1934 for missing initializers.
1935 * tree.c (build_string_literal): Handle optional argument.
1936 * tree.h (build_string_literal): Add defaulted argument.
1937 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
1938 no-warning bit on original expression.
1940 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
1943 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
1944 and UNSPEC_DARN_RAW.
1945 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
1947 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
1948 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
1949 (darn): Use an unspec_volatile, and UNSPECV_DARN.
1951 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
1953 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
1954 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
1955 * config/rs6000/rs6000.md (unspec): ... here.
1956 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
1957 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
1958 cmpeqb, *cmpeqb_internal): Delete, move to...
1959 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
1960 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
1961 cmpeqb, *cmpeqb_internal): ... here.
1963 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1965 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
1966 intrinsics if __ARM_FP.
1967 Use __ARM_FEATURE_CRC32 ifdef guard.
1969 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
1971 * config/arm/arm.md (neon_for_64bits): Remove.
1972 (avoid_neon_for_64bits): Remove.
1973 (arm_adddi3): Always split early.
1974 (arm_subdi3): Always split early.
1975 (negdi2): Remove Neon expansion.
1976 (split zero_extend): Split before reload.
1977 (split sign_extend): Split before reload.
1979 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
1981 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
1982 (qhs_extenddi_cstr): Likewise.
1983 * config/arm/arm.md (ashldi3): Always expand early.
1984 (ashlsi3): Likewise.
1985 (ashrsi3): Likewise.
1986 (zero_extend<mode>di2): Remove Neon variants.
1987 (extend<mode>di2): Likewise.
1988 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
1989 (signed_shift_di3_neon): Likewise.
1990 (unsigned_shift_di3_neon): Likewise.
1991 (ashrdi3_neon_imm_noclobber): Likewise.
1992 (lshrdi3_neon_imm_noclobber): Likewise.
1993 (<shift>di3_neon): Likewise.
1994 (split extend): Remove DI extend split patterns.
1996 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
1998 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
1999 (split not): Add DImode not splitter.
2000 (anddi3): Remove pattern.
2001 (anddi3_insn): Likewise.
2002 (anddi_zesidi_di): Likewise.
2003 (anddi_sesdi_di): Likewise.
2004 (anddi_notdi_di): Likewise.
2005 (anddi_notzesidi_di): Likewise.
2006 (anddi_notsesidi_di): Likewise.
2008 (iordi3_insn): Likewise.
2009 (iordi_zesidi_di): Likewise.
2010 (iordi_sesidi_di): Likewise.
2012 (xordi3_insn): Likewise.
2013 (xordi_sesidi_di): Likewise.
2014 (xordi_zesidi_di): Likewise.
2015 (one_cmpldi2): Likewise.
2016 (one_cmpldi2_insn): Likewise.
2017 * config/arm/constraints.md: Remove De, Df, Dg constraints.
2018 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
2020 (iwmmxt_xordi3): Likewise.
2021 (iwmmxt_anddi3): Likewise.
2022 * config/arm/neon.md (orndi3_neon): Remove pattern.
2023 (anddi_notdi_di): Likewise.
2024 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
2025 (arm_iordi_operand_neon): Likewise.
2026 (arm_xordi_operand_neon): Likewise.
2027 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
2028 (iordi_notzesidi_di): Likewise.
2029 (iordi_notdi_zesidi): Likewise.
2030 (iordi_notsesidi_di): Likewise.
2032 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
2034 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
2036 (iorsi3_compare0_scratch): Likewise.
2038 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
2040 * config/aarch64/aarch64-simd-builtins.def:
2043 * config/aarch64/aarch64-simd.md:
2044 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
2045 (aarch64_st1x4<VALLDIF:mode>): Likewise.
2046 (aarch64_ld1_x4_<mode>): Likewise.
2047 (aarch64_st1_x4_<mode>): Likewise.
2048 * config/aarch64/arm_neon.h:
2049 (vld1_s8_x4): New function.
2050 (vld1q_s8_x4): Likewise.
2051 (vld1_s16_x4): Likewise.
2052 (vld1q_s16_x4): Likewise.
2053 (vld1_s32_x4): Likewise.
2054 (vld1q_s32_x4): Likewise.
2055 (vld1_u8_x4): Likewise.
2056 (vld1q_u8_x4): Likewise.
2057 (vld1_u16_x4): Likewise.
2058 (vld1q_u16_x4): Likewise.
2059 (vld1_u32_x4): Likewise.
2060 (vld1q_u32_x4): Likewise.
2061 (vld1_f16_x4): Likewise.
2062 (vld1q_f16_x4): Likewise.
2063 (vld1_f32_x4): Likewise.
2064 (vld1q_f32_x4): Likewise.
2065 (vld1_p8_x4): Likewise.
2066 (vld1q_p8_x4): Likewise.
2067 (vld1_p16_x4): Likewise.
2068 (vld1q_p16_x4): Likewise.
2069 (vld1_s64_x4): Likewise.
2070 (vld1_u64_x4): Likewise.
2071 (vld1_p64_x4): Likewise.
2072 (vld1q_s64_x4): Likewise.
2073 (vld1q_u64_x4): Likewise.
2074 (vld1q_p64_x4): Likewise.
2075 (vld1_f64_x4): Likewise.
2076 (vld1q_f64_x4): Likewise.
2077 (vst1_s8_x4): Likewise.
2078 (vst1q_s8_x4): Likewise.
2079 (vst1_s16_x4): Likewise.
2080 (vst1q_s16_x4): Likewise.
2081 (vst1_s32_x4): Likewise.
2082 (vst1q_s32_x4): Likewise.
2083 (vst1_u8_x4): Likewise.
2084 (vst1q_u8_x4): Likewise.
2085 (vst1_u16_x4): Likewise.
2086 (vst1q_u16_x4): Likewise.
2087 (vst1_u32_x4): Likewise.
2088 (vst1q_u32_x4): Likewise.
2089 (vst1_f16_x4): Likewise.
2090 (vst1q_f16_x4): Likewise.
2091 (vst1_f32_x4): Likewise.
2092 (vst1q_f32_x4): Likewise.
2093 (vst1_p8_x4): Likewise.
2094 (vst1q_p8_x4): Likewise.
2095 (vst1_p16_x4): Likewise.
2096 (vst1q_p16_x4): Likewise.
2097 (vst1_s64_x4): Likewise.
2098 (vst1_u64_x4): Likewise.
2099 (vst1_p64_x4): Likewise.
2100 (vst1q_s64_x4): Likewise.
2101 (vst1q_u64_x4): Likewise.
2102 (vst1q_p64_x4): Likewise.
2103 (vst1_f64_x4): Likewise.
2104 (vst1q_f64_x4): Likewise.
2106 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2108 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
2110 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2111 Richard Sandiford <richard.sandiford@arm.com>
2114 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
2115 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
2117 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2120 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
2121 in reg if it fails aarch64_plus_operand predicate.
2123 2019-08-21 Richard Biener <rguenther@suse.de>
2125 PR tree-optimization/91482
2126 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
2127 BUILT_IN_ASSUME_ALIGNED calls.
2129 2019-08-21 Richard Biener <rguenther@suse.de>
2133 * config/i386/i386-features.c
2134 (general_scalar_chain::make_vector_copies): Copy stack temporary
2135 rtx when using it multiple times.
2136 (general_scalar_chain::convert_reg): Likewise.
2138 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
2140 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
2142 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
2144 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
2145 catch more redundant zero initialization cases.
2146 (dse_dom_walker::dse_optimize_stmt): Likewise.
2148 2019-08-20 Richard Biener <rguenther@suse.de>
2151 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
2152 by collect2 when targetm.have_ctors_dtors which avoids dragging
2153 in temporary filenames from LTO input objects.
2155 2019-08-20 Richard Biener <rguenther@suse.de>
2157 PR tree-optimization/37242
2158 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
2159 to (T)a + (T)b if we know that a + b does not overflow.
2161 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
2163 PR rtl-optimization/91347
2164 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
2165 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
2167 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2169 * calls.h (function_arg_info): Add a pass_by_reference field,
2170 defaulting to false.
2171 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
2172 when applying pass-by-reference semantics.
2173 (initialize_argument_information): Likewise.
2174 (emit_library_call_value_1): Likewise.
2175 * function.c (assign_parm_data_one): Remove passed_pointer field.
2176 (assign_parm_find_data_types): Don't set it.
2177 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
2178 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
2179 arg.pass_by_reference instead of passed_pointer.
2181 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2183 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
2184 into a single function_arg_info, updating its fields when we
2185 apply pass-by-reference and promotion semantics. Use the
2186 function_arg_info to track the mode rather than keeping it in
2187 a separate local variable.
2188 (initialize_argument_information): Likewise. Base the final
2189 arg_to_skip on this new function_arg_info rather than creating
2190 a new one from scratch.
2192 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2194 * function.c (assign_parm_data_one): Replace passed_type,
2195 promoted_mode and named_arg with a function_arg_info field.
2196 (assign_parm_find_data_types): Remove local variables and
2197 assign directly to "data". Make data->passed_mode shadow
2198 data->arg.mode until promotion, then assign the promoted
2199 mode to data->arg.mode.
2200 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
2201 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
2202 (assign_parm_remove_parallels, assign_parm_setup_block_p)
2203 (assign_parm_setup_block, assign_parm_setup_reg)
2204 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
2205 arg.mode instead of promoted_mode, arg.type instead of passed_type
2206 and arg.named instead of named_arg. Use data->arg for
2207 function_arg_info structures that had the field values passed_type,
2208 promoted_mode and named_arg. Base other function_arg_infos on
2209 data->arg, changing the necessary properties.
2211 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2213 * calls.h (apply_pass_by_reference_rules): Declare.
2214 * calls.c (apply_pass_by_reference_rules): New function.
2215 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
2216 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
2217 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2218 * function.c (assign_parm_find_data_types): Likewise.
2219 * var-tracking.c (prepare_call_arguments): Likewise.
2221 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2223 * target.def (must_pass_in_stack): Take a function_arg_info instead
2224 of a mode and a type.
2225 * doc/tm.texi: Regenerate.
2226 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
2227 instead of a mode and a type.
2228 (must_pass_in_stack_var_size_or_pad): Likewise.
2229 * calls.c (must_pass_in_stack_var_size): Likewise.
2230 (must_pass_in_stack_var_size_or_pad): Likewise.
2231 (initialize_argument_information): Update call to
2232 targetm.calls.must_pass_in_stack.
2233 (must_pass_va_arg_on_stack): Likewise.
2234 * function.c (assign_parm_find_entry_rtl): Likewise.
2235 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
2236 * config/alpha/alpha.c (alpha_function_arg): Likewise.
2237 (alpha_function_arg_advance): Likewise.
2238 * config/cr16/cr16.c (cr16_function_arg): Likewise.
2239 (cr16_function_arg_advance): Likewise.
2240 * config/cris/cris.c (cris_pass_by_reference): Likewise.
2241 (cris_arg_partial_bytes): Likewise.
2242 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
2243 * config/lm32/lm32.c (lm32_function_arg): Likewise.
2244 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
2245 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
2246 * config/mips/mips.c (mips_pass_by_reference): Likewise.
2247 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
2248 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
2249 * config/sh/sh.c (sh_pass_by_reference): Likewise.
2250 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
2251 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
2252 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
2253 instead of a mode and a type.
2254 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
2255 (fr30_num_arg_regs): Likewise.
2256 (fr30_setup_incoming_varargs): Update calls accordingly.
2257 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
2258 (fr30_function_arg_advance): Likewise.
2259 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
2260 instead of a mode and a type.
2261 * config/gcn/gcn.c (num_arg_regs): Likewise.
2262 (gcn_function_arg, gcn_function_arg_advance): Update calls to
2263 num_arg_regs and targetm.calls.must_pass_in_stack.
2264 (gcn_arg_partial_bytes): Likewise.
2265 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
2266 function_arg_info instead of a mode and a type.
2267 (classify_argument): Update call accordingly.
2268 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
2269 function_arg_info instead of a mode and a type.
2270 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
2272 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
2273 (rs6000_parm_needs_stack): Update call accordingly.
2274 (setup_incoming_varargs): Likewise.
2276 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2278 * target.def (callee_copies): Take a function_arg_info instead
2279 of a mode, type and named flag.
2280 * doc/tm.texi: Regenerate.
2281 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
2282 instead of a mode, type and named flag.
2283 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
2284 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2285 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
2286 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
2287 instead of a mode, type and named flag.
2288 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
2289 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2290 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
2291 * calls.h (reference_callee_copied): Take a function_arg_info
2292 instead of a mode, type and named flag.
2293 * calls.c (reference_callee_copied): Likewise.
2294 (initialize_argument_information): Update call accordingly.
2295 (emit_library_call_value_1): Likewise.
2296 * function.c (gimplify_parameters): Likewise.
2297 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
2298 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
2299 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
2300 * config/c6x/c6x.c (c6x_callee_copies): Delete.
2301 (TARGET_CALLEE_COPIES): Define to
2302 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
2303 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
2304 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
2305 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
2306 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
2307 instead of a mode, type and named flag.
2308 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
2309 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
2310 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
2311 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
2312 * config/msp430/msp430.c (msp430_callee_copies): Delete.
2313 (TARGET_CALLEE_COPIES): Define to
2314 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
2315 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
2316 instead of a mode, type and named flag.
2317 * config/sh/sh.c (sh_callee_copies): Likewise.
2318 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
2319 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
2320 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
2322 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2324 * target.def (function_arg_advance): Take a function_arg_info instead
2325 of a mode, type and named flag.
2326 * doc/tm.texi: Regenerate.
2327 * targhooks.h (default_function_arg_advance): Take a function_arg_info
2328 instead of a mode, type and named flag.
2329 * targhooks.c (default_function_arg_advance): Likewise.
2330 * calls.c (initialize_argument_information): Update call to
2331 targetm.calls.function_arg_advance.
2332 (emit_library_call_value_1): Likewise.
2333 * dse.c (get_call_args): Likewise.
2334 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2335 * function.c (assign_parms, gimplify_parameters): Likewise.
2336 * var-tracking.c (prepare_call_arguments): Likewise.
2337 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
2338 function_arg_info instead of a mode, type and named flag.
2339 (aarch64_setup_incoming_varargs): Update call accordingly.
2340 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
2341 function_arg_info instead of a mode, type and named flag.
2342 (alpha_setup_incoming_varargs): Update call accordingly.
2343 * config/arc/arc.c (arc_function_arg_advance): Take a
2344 function_arg_info instead of a mode, type and named flag.
2345 (arc_setup_incoming_varargs): Update call accordingly.
2346 * config/arm/arm.c (arm_function_arg_advance): Take a
2347 function_arg_info instead of a mode, type and named flag.
2348 (cmse_func_args_or_return_in_stack): Update call accordingly.
2349 (arm_function_ok_for_sibcall): Likewise.
2350 (cmse_nonsecure_call_clear_caller_saved): Likewise.
2351 * config/avr/avr.c (avr_function_arg_advance): Take a
2352 function_arg_info instead of a mode, type and named flag.
2353 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
2354 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
2355 (c6x_call_saved_register_used): Update call accordingly.
2356 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
2357 function_arg_info instead of a mode, type and named flag.
2358 * config/cris/cris.c (cris_function_arg_advance): Likewise.
2359 * config/csky/csky.c (csky_function_arg_advance): Likewise.
2360 (csky_setup_incoming_varargs): Update call accordingly.
2361 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
2362 function_arg_info instead of a mode, type and named flag.
2363 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
2364 * config/frv/frv.c (frv_function_arg_advance): Likewise.
2365 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
2366 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
2367 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
2368 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
2369 (ix86_setup_incoming_varargs): Update call accordingly.
2370 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
2371 function_arg_info instead of a mode, type and named flag.
2372 (ia64_setup_incoming_varargs): Update call accordingly.
2373 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
2374 function_arg_info instead of a mode, type and named flag.
2375 (iq2000_expand_prologue): Update call accordingly.
2376 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
2377 function_arg_info instead of a mode, type and named flag.
2378 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
2379 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
2380 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
2381 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
2382 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
2384 (microblaze_expand_prologue): Update call accordingly.
2385 * config/mips/mips.c (mips_function_arg_advance): Take a
2386 function_arg_info instead of a mode, type and named flag.
2387 (mips_setup_incoming_varargs): Update call accordingly.
2388 (mips_output_args_xfer): Likewise.
2389 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
2390 function_arg_info instead of a mode, type and named flag.
2391 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
2392 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
2393 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
2394 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
2395 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
2396 (nios2_setup_incoming_varargs): Update call accordingly.
2397 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
2398 function_arg_info instead of a mode, type and named flag.
2399 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
2400 * config/pa/pa.c (pa_function_arg_advance): Likewise.
2401 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
2402 * config/pru/pru.c (pru_function_arg_advance): Likewise.
2403 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
2404 (riscv_setup_incoming_varargs): Update call accordingly.
2405 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
2406 function_arg_info instead of a mode, type and named flag.
2407 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
2409 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
2410 (rs6000_parm_needs_stack): Update call accordingly.
2411 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
2412 instead of a mode, type and named flag.
2413 * config/s390/s390.c (s390_function_arg_advance): Likewise.
2414 (s390_call_saved_register_used): Update call accordingly.
2415 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
2416 instead of a mode, type and named flag.
2417 (sh_output_mi_thunk): Update call accordingly.
2418 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
2419 function_arg_info instead of a mode, type and named flag.
2420 * config/spu/spu.c (spu_function_arg_advance): Likewise.
2421 (spu_setup_incoming_varargs): Update call accordingly.
2422 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
2423 function_arg_info instead of a mode, type and named flag.
2424 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
2425 (tilegx_setup_incoming_varargs): Update call accordingly.
2426 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
2427 function_arg_info instead of a mode, type and named flag.
2428 (tilegx_setup_incoming_varargs): Update call accordingly.
2429 * config/v850/v850.c (v850_function_arg_advance): Take a
2430 function_arg_info instead of a mode, type and named flag.
2431 * config/vax/vax.c (vax_function_arg_advance): Likewise.
2432 * config/visium/visium.c (visium_function_arg_advance): Likewise.
2433 (visium_setup_incoming_varargs): Update call accordingly.
2434 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
2435 function_arg_info instead of a mode, type and named flag.
2437 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2439 * target.def (function_arg, function_incoming_arg): Take a
2440 function_arg_info instead of a mode, tree and named flag.
2441 * doc/tm.texi: Regenerate.
2442 * targhooks.h (default_function_arg): Take a function_arg_info
2443 instead of a mode, tree and named flag.
2444 (default_function_incoming_arg): Likewise.
2445 * targhooks.c (default_function_arg): Likewise.
2446 (default_function_incoming_arg): Likewise.
2447 * calls.h (function_arg_info::end_marker_p): New function.
2448 (function_arg_info::end_marker): Likewise.
2449 * calls.c (prepare_call_address, initialize_argument_information)
2450 (expand_call, emit_library_call_value_1): Update calls to
2451 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
2452 * dse.c: Include calls.h.
2453 (get_call_args): Update call to targetm.calls.function_arg.
2454 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2455 * var-tracking.c (prepare_call_arguments): Likewise.
2456 * function.c (assign_parm_find_entry_rtl): Update call to
2457 targetm.calls.function_incoming_arg.
2458 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
2459 function_arg_info instead of a mode, tree and named flag.
2460 * config/alpha/alpha.c (alpha_function_arg): Likewise.
2461 * config/arc/arc.c (arc_function_arg): Likewise.
2462 * config/arm/arm.c (arm_function_arg): Likewise.
2463 (cmse_func_args_or_return_in_stack): Update call accordingly.
2464 (arm_function_ok_for_sibcall): Likewise.
2465 (cmse_nonsecure_call_clear_caller_saved): Likewise.
2466 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
2467 instead of a mode, tree and named flag.
2468 * config/bfin/bfin.c (bfin_function_arg): Likewise.
2469 * config/c6x/c6x.c (c6x_function_arg): Likewise.
2470 (c6x_call_saved_register_used): Update call accordingly.
2471 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
2472 instead of a mode, tree and named flag.
2473 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
2474 (cris_function_arg_1): Likewise.
2475 * config/csky/csky.c (csky_function_arg): Likewise.
2476 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
2477 * config/fr30/fr30.c (fr30_function_arg): Likewise.
2478 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
2479 (frv_function_arg_1): Likewise.
2480 * config/ft32/ft32.c (ft32_function_arg): Likewise.
2481 * config/gcn/gcn.c (gcn_function_arg): Likewise.
2482 * config/h8300/h8300.c (h8300_function_arg): Likewise.
2483 * config/i386/i386.c (ix86_function_arg): Likewise.
2484 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
2485 (ia64_function_arg_1): Likewise.
2486 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
2487 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
2489 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
2490 instead of a mode, tree and named flag.
2491 * config/m32c/m32c.c (m32c_function_arg): Likewise.
2492 * config/m32r/m32r.c (m32r_function_arg): Likewise.
2493 * config/m68k/m68k.c (m68k_function_arg): Likewise.
2494 * config/mcore/mcore.c (mcore_function_arg): Likewise.
2495 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
2496 (microblaze_expand_prologue): Update call accordingly.
2497 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
2498 instead of a mode, tree and named flag.
2499 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
2500 (mmix_function_arg_1): Likewise.
2501 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
2502 * config/moxie/moxie.c (moxie_function_arg): Likewise.
2503 * config/msp430/msp430.c (msp430_function_arg): Likewise.
2504 * config/nds32/nds32.c (nds32_function_arg): Likewise.
2505 * config/nios2/nios2.c (nios2_function_arg): Likewise.
2506 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
2507 (nvptx_function_incoming_arg): Likewise.
2508 * config/or1k/or1k.c (or1k_function_arg): Likewise.
2509 * config/pa/pa.c (pa_function_arg): Likewise.
2510 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
2511 * config/pru/pru.c (pru_function_arg): Likewise.
2512 * config/riscv/riscv.c (riscv_function_arg): Likewise.
2513 * config/rl78/rl78.c (rl78_function_arg): Likewise.
2514 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
2515 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
2516 (rs6000_parm_needs_stack): Update call accordingly.
2517 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
2518 instead of a mode, tree and named flag.
2519 * config/s390/s390.c (s390_function_arg): Likewise.
2520 (s390_call_saved_register_used): Update call accordingly.
2521 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
2522 instead of a mode, tree and named flag.
2523 (sh_output_mi_thunk): Update call accordingly.
2524 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
2525 (sparc_function_incoming_arg): Take a function_arg_info instead of
2526 a mode, tree and named flag.
2527 * config/spu/spu.c (spu_function_arg): Likewise.
2528 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
2529 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
2530 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
2531 * config/v850/v850.c (v850_function_arg): Likewise.
2532 * config/vax/vax.c (vax_function_arg): Likewise.
2533 * config/visium/visium.c (visium_function_arg): Likewise.
2534 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
2535 (xtensa_function_incoming_arg): Likewise.
2537 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2539 * target.def (setup_incoming_varargs): Take a function_arg_info
2540 instead of a mode and tree.
2541 * doc/tm.texi: Regenerate.
2542 * targhooks.h (default_setup_incoming_varargs): Take a
2543 function_arg_info instead of a mode and tree.
2544 * targhooks.c (default_setup_incoming_varargs): Likewise.
2545 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
2546 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
2547 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
2548 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
2549 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
2550 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
2551 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
2552 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
2554 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
2555 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
2556 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
2557 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
2558 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
2559 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
2560 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
2561 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
2562 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
2563 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
2564 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
2565 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
2566 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
2567 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
2568 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
2569 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
2570 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
2571 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
2572 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
2573 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
2574 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
2575 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
2576 * function.c (assign_parms_setup_varargs): Update call to
2577 targetm.calls.setup_incoming_varargs.
2579 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2581 * target.def (pass_by_reference): Take a function_arg_info instead
2582 of a mode, type and named flag.
2583 * doc/tm.texi: Regenerate.
2584 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
2586 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
2587 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
2588 function_arg_info instead of a mode, type and named flag.
2589 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
2590 * calls.h (pass_by_reference): Take a function_arg_info instead of a
2591 mode, type and named flag.
2592 * calls.c (pass_by_reference): Likewise.
2593 (pass_va_arg_by_reference): Update call accordingly.
2594 (initialize_argument_information): Likewise.
2595 (emit_library_call_value_1): Likewise.
2596 * function.c (assign_parm_find_data_types): Likewise.
2597 * var-tracking.c (prepare_call_arguments): Likewise.
2598 * stor-layout.c: Include calls.h.
2599 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
2600 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
2601 function_arg_info instead of a mode, type and named flag.
2602 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
2603 * config/arc/arc.c (arc_pass_by_reference): Likewise.
2604 * config/arm/arm.c (arm_pass_by_reference): Likewise.
2605 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
2606 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
2607 (c6x_call_saved_register_used): Update call to pass_by_reference.
2608 * config/cris/cris.c (cris_pass_by_reference): Take a
2609 function_arg_info instead of a mode, type and named flag.
2610 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
2611 function_arg_info instead of a mode, type and named flag.
2612 (epiphany_arg_partial_bytes): Update call accordingly.
2613 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
2614 function_arg_info instead of a mode, type and named flag.
2615 (ft32_arg_partial_bytes): Update call accordingly.
2616 * config/i386/i386.c (ix86_pass_by_reference): Take a
2617 function_arg_info instead of a mode, type and named flag.
2618 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
2619 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
2620 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
2621 (m32r_return_in_memory): Update call accordingly.
2622 * config/mips/mips.c (mips_pass_by_reference): Take a
2623 function_arg_info instead of a mode, type and named flag.
2624 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
2625 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
2626 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
2627 (moxie_arg_partial_bytes): Update call accordingly.
2628 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
2629 function_arg_info instead of a mode, type and named flag.
2630 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
2631 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
2632 * config/pa/pa.c (pa_pass_by_reference): Likewise.
2633 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
2634 (riscv_return_in_memory): Update call accordingly.
2635 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
2636 function_arg_info instead of a mode, type and named flag.
2637 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
2638 (rs6000_parm_needs_stack): Update call to pass_by_reference.
2639 * config/s390/s390.c (s390_pass_by_reference): Take a
2640 function_arg_info instead of a mode, type and named flag.
2641 (s390_call_saved_register_used): Update call accordingly.
2642 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
2643 instead of a mode, type and named flag.
2644 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
2645 * config/spu/spu.c (spu_pass_by_reference): Likewise.
2646 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
2647 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
2648 * config/v850/v850.c (v850_pass_by_reference): Likewise.
2649 * config/visium/visium.c (visium_pass_by_reference): Likewise.
2651 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2653 * target.def (arg_partial_bytes): Take a function_arg_info instead
2654 of a mode, type and named flag.
2655 * doc/tm.texi: Regenerate.
2656 * target.h (function_arg_info): Declare.
2657 * calls.h (function_arg_info): New class.
2658 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
2659 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
2660 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
2661 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
2662 * calls.c (initialize_argument_information): Update call to
2663 targetm.calls.partial_bytes.
2664 (emit_library_call_value_1): Likewise.
2665 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2666 * function.c (assign_parm_find_entry_rtl): Likewise.
2667 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
2668 function_arg_info instead of a mode, type and named flag.
2669 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
2670 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
2671 (cmse_func_args_or_return_in_stack): Update accordingly.
2672 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
2673 function_arg_info instead of a mode, type and named flag.
2674 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
2675 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
2676 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
2677 * config/fr30/fr30.c: Include calls.h.
2678 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
2679 type and named flag.
2680 * config/frv/frv.c: Include calls.h.
2681 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
2682 type and named flag.
2683 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
2684 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
2685 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
2686 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
2687 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
2688 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
2689 * config/microblaze/microblaze.c (function_arg_partial_bytes):
2691 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
2692 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
2693 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
2694 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
2695 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
2696 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
2697 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
2698 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
2699 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
2700 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
2701 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
2702 (rs6000_parm_needs_stack): Update call accordingly.
2703 * config/sh/sh.c (sh_arg_partial_bytes): Take a
2704 function_arg_info instead of a mode, type and named flag.
2705 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
2706 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
2708 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2710 * calls.h (must_pass_va_arg_in_stack): Declare.
2711 * calls.c (must_pass_va_arg_in_stack): New function.
2712 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
2713 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
2714 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
2716 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2718 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2720 * calls.h (pass_va_arg_by_reference): Declare.
2721 * calls.c (pass_va_arg_by_reference): New function.
2722 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
2723 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
2724 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
2725 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2726 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2727 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
2728 (mips_gimplify_va_arg_expr): Likewise.
2729 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
2730 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2731 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
2732 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
2733 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
2734 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
2735 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
2736 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
2737 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
2738 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2739 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
2741 2019-08-20 Richard Biener <rguenther@suse.de>
2744 * config/i386/i386-features.c (general_scalar_chain::convert_op):
2745 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
2746 (convert_scalars_to_vector): Add timode_p parameter and use it
2747 to guard TImode-only operation.
2748 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
2749 (pass_stv::execute): Pass down timode_p.
2751 2019-08-20 Lili Cui <lili.cui@intel.com>
2753 * common/config/i386/i386-common.c
2754 (processor_names): Add tigerlake and cooperlake.
2755 (processor_alias_table): Add tigerlake and cooperlake.
2756 * config.gcc: Add -march=tigerlake and cooperlake.
2757 * config/i386/driver-i386.c
2758 (host_detect_local_cpu): Detect tigerlake and cooperlake.
2759 Add "has_avx" to classify processor.
2760 * config/i386/i386-builtins.c (processor_model) :
2761 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
2762 (arch_names_table): Add tigerlake and cooperlake.
2763 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
2764 and PROCESSOR_COOPERLAKE.
2765 * config/i386/i386-c.c
2766 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
2767 * config/i386/i386-options.c
2768 (m_TIGERLAKE) : Define.
2769 (m_COOPERLAKE) : Ditto.
2770 (m_CORE_AVX512): Ditto.
2771 (processor_cost_table): Add cascadelake.
2772 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
2773 * config/i386/i386.h
2774 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
2775 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
2776 (PTA_MOVDIRI): Ditto.
2777 (PTA_MOVDIR64B): Ditto.
2778 (PTA_COOPERLAKE) : Ditto.
2779 (PTA_TIGERLAKE) : Ditto.
2780 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
2781 * doc/extend.texi: Add tigerlake and cooperlake.
2782 * doc/invoke.texi: Add tigerlake and cooperlake.
2784 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
2786 * doc/install.texi (Specific, alpha): Remove note to use
2787 binutils 2.11.2 or later.
2789 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
2792 * function.c (assign_parm_find_stack_rtl): Use larger alignment
2795 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
2797 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
2798 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
2799 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
2800 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
2801 * config/aarch64/constraints.md (Dt): New constraint
2802 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
2804 2019-08-19 Richard Biener <rguenther@suse.de>
2806 PR tree-optimization/91403
2807 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
2808 cases we can handle with tail-recursion...
2809 (follow_ssa_edge_expr): ... here. Do so.
2811 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
2814 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
2815 implemented for -fsanitize=kernel-address, and merge check logic
2816 with -fsanitize=address.
2818 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
2820 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
2821 for cpu and machine. Factor 64/32b builtins.
2823 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
2825 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
2826 gone, point to sourceforge.net.
2828 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
2830 * doc/ux.texi (User Experience Guidelines): Update reference.
2832 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
2834 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
2837 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
2839 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
2840 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
2842 2019-08-16 Martin Sebor <msebor@redhat.com>
2844 * tree.def (TYPE_SIZE): Clarify.
2845 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
2847 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2849 PR tree-optimization/91109
2850 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
2851 * lra.c (lra): Use lra_need_for_scratch_reg_p.
2852 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
2854 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
2856 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
2857 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
2858 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
2859 (uavg<mode>3_ceil): New expander.
2860 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
2861 mode iterator when creating CONST1_RTX.
2862 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
2863 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
2864 mode iterator for const1_operand predicate.
2866 2019-08-16 Richard Biener <rguenther@suse.de>
2868 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
2869 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
2871 (follow_ssa_edge_in_condition_phi_branch): Likewise.
2872 (analyze_evolution_in_loop): Likewise.
2873 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
2874 (follow_ssa_edge_expr): ... here. Refactor code.
2876 2019-08-16 Richard Biener <rguenther@suse.de>
2879 * config/i386/i386-features.c
2880 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
2882 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2885 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
2886 only if subst_name matches curr_attr string.
2888 2019-08-16 Richard Biener <rguenther@suse.de>
2890 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
2891 stmt at gsi_p, instead replace it with a NOP removed later.
2892 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
2893 that became dead because of that.
2895 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
2897 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
2898 for which we can't represent a range.
2899 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
2901 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
2902 Set VR_UNDEFINED if type is not supported.
2903 * tree-ssanames.c (get_range_info): Pass type to set_varying.
2904 * tree-vrp.c (value_range_base::check): Assert that a varying has
2906 (value_range_base::equal_p): Early bail for undefines.
2907 (value_range_base::set_varying): Accept a type.
2908 (value_range::set_varying): Same.
2909 (value_range_base::type): VARYING can have a type, while UNDEFINE
2911 (value_range_base::dump): Print type for VARYING nodes.
2912 (value_range_base::set): Add type to VARYING.
2913 (extract_range_from_multiplicative_op): Pass type to set_varying.
2914 (extract_range_from_binary_expr): Same.
2915 (value_range_base::intersect_helper): Same.
2916 (value_range_base::union_helper): Same.
2917 (value_range_base::normalize_symbolics): Same.
2918 (determine_value_range_1): Same.
2919 * tree-vrp.h (class value_range_base): Add type to set_varying.
2920 Add prototype for dump(void).
2921 Add prototype for supports_type_p.
2922 (class value_range): Add type to set_varying.
2923 Add prototype for dump(void).
2924 * vr-values.c (set_value_range_to_truthvalue): Pass type to
2926 (vr_values::get_lattice_entry): Set varying even if propagation
2928 Pass type to set_varying.
2929 (vr_values::get_value_range): Remove vr_const_varying.
2930 Reallocate the lattice if needed.
2931 (vr_values::update_value_range): Pass type to set_varying.
2932 (vr_values::extract_range_for_var_from_comparison_expr): Same.
2933 (vr_values::extract_range_from_binary_expr): Same.
2934 (vr_values::extract_range_from_unary_expr): Same.
2935 (vr_values::extract_range_from_cond_expr): Same.
2936 (vr_values::check_for_binary_op_overflow): Same.
2937 (vr_values::extract_range_basic): Same.
2938 (vr_values::extract_range_from_assignment): Same.
2939 (vr_values::vr_values): Increase size of num_vr_values.
2940 (vr_values::extract_range_from_phi_node): Pass type to
2943 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
2946 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
2947 for costs of hard register moves.
2948 (ix86_register_move_cost): Likewise.
2949 * config/i386/i386.h (processor_costs): Move costs of hard
2950 register moves to hard_register. Add int_load, int_store,
2951 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
2952 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
2953 for costs of RTL expressions.
2954 * config/i386/x86-tune-costs.h: Move costs of hard register
2955 moves to hard_register. Duplicate int_load, int_store,
2956 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
2957 sse_load, sse_store for costs of RTL expressions.
2959 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2961 * target.def (setup_incoming_vararg_bounds): Remove.
2962 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
2963 * doc/tm.texi: Regenerate.
2964 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
2965 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
2966 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
2967 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
2969 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2971 MSP430: Fix lines over 80 characters long in
2972 config/msp430/*.{c,h} files
2974 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
2975 specifier in string.
2976 (msp430_select_hwmult_lib): Split line more than 80 characters long.
2977 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
2978 redundant old comment.
2979 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
2980 Split line more than 80 characters long.
2981 * config/msp430/msp430.c (msp430_option_override): Likewise.
2982 (msp430_return_in_memory): Likewise.
2983 (msp430_gimplify_va_arg_expr): Likewise.
2984 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
2985 (msp430_legitimate_constant): Likewise.
2986 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
2987 (msp430_attr): Likewise.
2988 (msp430_data_attr): Likewise.
2989 (msp430_start_function): Likewise.
2990 (gen_prefix): Likewise.
2991 (msp430_init_sections): Likewise.
2992 (msp430_select_section): Likewise.
2993 (msp430_function_section): Likewise.
2994 (msp430_unique_section): Likewise.
2995 (msp430_output_aligned_decl_common): Likewise.
2996 (msp430_do_not_relax_short_jumps): Likewise.
2997 (msp430_init_builtins): Likewise.
2998 (msp430_expand_delay_cycles): Likewise.
2999 (msp430_expand_prologue): Likewise.
3000 (msp430_expand_epilogue): Likewise.
3001 (msp430_expand_helper): Likewise.
3002 (msp430_split_movsi): Likewise.
3003 (msp430_print_operand): Likewise.
3004 (msp430_return_addr_rtx): Likewise.
3005 (msp430x_extendhisi): Likewise.
3006 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
3007 (ASM_SPEC): Likewise.
3008 Remove very obvious comments.
3009 (LIB_SPEC): Split line more than 80 characters long.
3010 (EH_RETURN_HANDLER_RTX): Likewise.
3011 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
3013 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3015 MSP430: Fix whitespace errors and incorrect indentation in
3016 config/msp430/*.{c,h} files
3018 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
3019 (msp430_select_hwmult_lib): Likewise.
3020 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
3021 (msp430_extract_mcu_data): Likewise.
3022 (struct t_msp430_mcu_data): Likewise.
3023 * config/msp430/msp430.c (struct machine_function): Remove whitespace
3024 before left square bracket.
3025 (msp430_option_override): Fix indentation.
3026 (msp430_hard_regno_nregs_with_padding): Likewise.
3027 (msp430_initial_elimination_offset): Likewise.
3028 (msp430_special_register_convention_p): Remove whitespace before left
3029 square bracket and after exclamation mark.
3030 (msp430_evaluate_arg): Likewise.
3031 (msp430_callee_copies): Fix indentation.
3032 (msp430_gimplify_va_arg_expr): Likewise.
3033 (msp430_function_arg_advance): Remove whitespace before left square
3035 (reg_ok_for_addr): Likewise.
3036 (msp430_preserve_reg_p): Likewise.
3037 (msp430_compute_frame_info): Likewise.
3038 (msp430_asm_output_addr_const_extra): Add space between function name
3039 and open parenthesis.
3040 (has_section_name): Fix indentation.
3041 (msp430_attr): Remove trailing whitespace.
3042 (msp430_section_attr): Likewise.
3043 (msp430_data_attr): Likewise.
3044 (struct msp430_attribute_table): Fix comment and whitespace.
3045 (msp430_start_function): Remove whitespace before left square bracket.
3046 Add space between function name and open parenthesis.
3047 (msp430_select_section): Remove trailing whitespace.
3048 (msp430_section_type_flags): Remove trailing whitespace.
3049 (msp430_unique_section): Remove space before closing parenthesis.
3050 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
3051 (msp430_builtins): Remove whitespace before left square bracket.
3052 (msp430_init_builtins): Fix indentation.
3053 (msp430_expand_prologue): Remove whitespace before left square bracket.
3054 Remove space before closing parenthesis.
3055 (msp430_expand_epilogue): Remove whitespace before left square bracket.
3056 (msp430_split_movsi): Remove space before closing parenthesis.
3057 (helper_function_name_mappings): Fix indentation.
3058 (msp430_use_f5_series_hwmult): Fix whitespace.
3059 (use_32bit_hwmult): Likewise.
3060 (msp430_no_hwmult): Likewise.
3061 (msp430_output_labelref): Remove whitespace before left square bracket.
3062 (msp430_print_operand_raw): Likewise.
3063 (msp430_print_operand_addr): Likewise.
3064 (msp430_print_operand): Add two spaces after '.' in comment.
3065 Fix trailing whitespace.
3066 (msp430x_extendhisi): Fix indentation.
3067 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
3069 (PC_REGNUM): Likewise.
3070 (STACK_POINTER_REGNUM): Likewise.
3071 (CC_REGNUM): Likewise.
3073 2019-08-15 Richard Biener <rguenther@suse.de>
3076 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
3078 (general_scalar_chain::make_vector_copies): Use it.
3080 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
3082 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
3084 2019-08-15 Martin Liska <mliska@suse.cz>
3086 * tree-ssa-dce.c (propagate_necessity): We can't reach now
3087 operators with no arguments.
3088 (eliminate_unnecessary_stmts): Likewise here.
3090 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
3092 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
3093 <case COMPARE>: Revert 2019-08-14 change.
3094 (convertible_comparison_p): Revert 2019-08-14 change. Return false
3095 for (TARGET_64BIT || mode != DImode).
3097 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
3099 * tree-vrp.c (value_range_base::set): Merge in code from
3100 value_range_base::set_and_canonicalize.
3101 Enforce canonicalization at set time.
3102 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
3103 (value_range_base::set_undefined): Inline call to set().
3104 (value_range_base::set_varying): Same.
3105 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
3106 (vrp_val_max): New argument handle_pointers.
3107 (vrp_val_min): Same.
3108 (ranges_from_anti_range): Same.
3109 (extract_range_into_wide_ints): Use tree argument instead of sign
3111 (extract_range_from_multiplicative_op): Take in tree type instead
3112 of precision and sign. Adapt function for canonicalized ranges.
3113 (extract_range_from_binary_expr): Pass type to
3114 extract_range_from_multiplicative_op.
3115 Adapt for canonicalized ranges.
3116 (extract_range_from_unary_expr): Same.
3117 (value_range_base::intersect_helper): Adjust for canonicalized
3119 (value_range_base::union_helper): Same.
3120 (value_range_base::normalize_symbolics): New.
3121 * tree-vrp.h (class value_range_base): Remove
3122 set_and_canonicalize.
3123 New prototype for normalize_symbolics.
3124 (class value_range): Remove set_and_canonicalize.
3125 (vrp_val_min): Adjust prototype.
3126 (vrp_val_max): Same.
3128 (vr_values::extract_range_for_var_from_comparison_expr): Call set
3129 instead of set_and_canonicalize.
3131 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3134 * tree-vect-stmts.c (vectorizable_call): Check that the function
3135 is a BUILT_IN_MD function before passing it to
3136 targetm.vectorize.builtin_md_vectorized_function.
3138 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3140 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
3141 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
3142 (aarch64_select_early_remat_modes): Use it.
3144 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3146 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
3147 16 for SVE predicates even if they are fixed-length.
3149 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3151 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
3152 operand order match the MOV /Z alias.
3154 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3156 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
3157 the vector pattern as an aarch64_svpattern argument. Update the
3158 overloaded caller accordingly.
3159 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
3160 (aarch64_output_sve_vector_inc_dec): Likewise.
3162 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3164 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
3165 multiplication case, try to compute VG * (lowest set bit) directly
3166 rather than always basing the multiplication on VG. Use
3167 expand_mult for the multiplication if we can.
3169 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3171 * config/aarch64/aarch64-protos.h
3172 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
3173 (aarch64_sve_inc_dec_immediate_p): Rename to...
3174 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
3175 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
3176 (aarch64_output_sve_scalar_inc_dec): Declare.
3177 (aarch64_output_sve_inc_dec_immediate): Rename to...
3178 (aarch64_output_sve_vector_inc_dec): ...this.
3179 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
3180 (aarch64_output_sve_scalar_inc_dec): New functions.
3181 (aarch64_output_sve_addvl_addpl): Remove the base and offset
3182 arguments. Only handle true ADDVL and ADDPL instructions;
3183 don't emit an INC or DEC.
3184 (aarch64_sve_inc_dec_immediate_p): Rename to...
3185 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
3186 (aarch64_output_sve_inc_dec_immediate): Rename to...
3187 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
3188 aarch64_sve_vector_inc_dec_immediate_p.
3189 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
3190 (aarch64_sve_plus_immediate): New predicates.
3191 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
3192 rather than aarch64_sve_addvl_addpl_immediate.
3193 (aarch64_sve_inc_dec_immediate): Rename to...
3194 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
3195 aarch64_sve_vector_inc_dec_immediate_p.
3196 (aarch64_sve_add_operand): Update accordingly.
3197 * config/aarch64/constraints.md (Uai): New constraint.
3198 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
3199 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
3200 operand into a register if it satisfies aarch64_sve_plus_immediate.
3201 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
3202 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
3203 * config/aarch64/aarch64-sve.md (add<mode>3): Call
3204 aarch64_output_sve_vector_inc_dec instead of
3205 aarch64_output_sve_inc_dec_immediate.
3207 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3209 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
3210 (UNSPEC_REVW): New constants.
3211 (elem_bits): New mode attribute.
3212 (SVE_INT_UNARY): New int iterator.
3213 (optab): Handle UNSPEC_REV[BHW].
3214 (sve_int_op): New int attribute.
3215 (min_elem_bits): Handle VNx16QI and the predicate modes.
3216 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
3217 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
3218 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
3219 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
3220 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
3221 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
3222 unspecs based on the total width of the reversed data.
3223 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
3224 reinterpret followed by a subreg on big-endian targets.
3226 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3227 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3229 * config/aarch64/aarch64-sve.md
3230 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
3231 alternatives in which one of the inputs is in the same register
3234 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3236 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
3237 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
3239 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3241 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
3242 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
3244 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3245 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3247 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
3248 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
3249 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
3251 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3252 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3254 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
3255 Add an alternative that uses reversed shifts.
3257 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3259 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
3262 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3264 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
3265 a commutativity marker.
3267 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3268 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3270 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
3271 (aarch64_prepare_sve_cond_int_fma): Declare.
3272 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
3273 (aarch64_prepare_sve_int_fma): New functions.
3274 (aarch64_prepare_sve_cond_int_fma): Likewise.
3275 * config/aarch64/aarch64-sve.md
3276 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
3277 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
3278 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
3279 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
3280 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
3281 (*madd<mode>): Rename to...
3282 (*fma<mode>4): ...this.
3283 (*msub<mode>): Rename to...
3284 (*fnma<mode>4): ...this.
3286 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3287 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3289 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
3290 Print 2.0 naturally.
3291 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
3292 * config/aarch64/predicates.md
3293 (aarch64_sve_float_negated_arith_immediate): New predicate,
3294 renamed from aarch64_sve_float_arith_with_sub_immediate.
3295 (aarch64_sve_float_arith_with_sub_immediate): Test for both
3296 positive and negative constants.
3297 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
3298 or an aarch64_sve_float_arith_with_sub_immediate.
3299 * config/aarch64/constraints.md (vsN): Use
3300 aarch64_sve_float_negated_arith_immediate.
3301 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
3303 (sve_pred_fp_rhs2_immediate): New int attribute.
3304 * config/aarch64/aarch64-sve.md
3305 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
3306 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
3307 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
3308 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
3309 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
3310 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
3312 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3313 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3315 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
3316 (*aarch64_cond_abd<SVE_F:mode>_3)
3317 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
3319 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3320 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3322 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
3323 (*aarch64_cond_<su>abd<mode>_any): New patterns.
3325 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3326 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3328 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
3329 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
3330 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
3331 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
3333 * optabs.h (create_convert_operand_from): Expand comment.
3334 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
3335 when mapping scalar rtxes to vector operands.
3336 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
3337 ashiftrt and lshiftrt.
3338 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
3339 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
3340 (*cond_<optab><mode>_any_const): New patterns.
3342 2019-08-15 Martin Liska <mliska@suse.cz>
3345 * cgraph.c (cgraph_node::remove): When setting
3346 n->origin = NULL for all nested functions, reset
3349 2019-08-15 Martin Liska <mliska@suse.cz>
3351 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
3354 2019-08-15 Martin Liska <mliska@suse.cz>
3357 * passes.c (order): Remove.
3358 (uid_hash_t): Likewise).
3359 (remove_cgraph_node_from_order): Remove from set
3360 of pointers (cgraph_node *).
3361 (insert_cgraph_node_to_order): New.
3362 (duplicate_cgraph_node_to_order): New.
3363 (do_per_function_toporder): Register all 3 cgraph hooks.
3364 Skip removed_nodes now as we know about all of them.
3366 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
3368 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
3369 <case E_V8QImode>: Use vector_set path for
3370 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
3371 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
3372 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
3374 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3376 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
3378 2019-08-14 Martin Sebor <msebor@redhat.com>
3380 PR tree-optimization/91294
3381 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
3382 source length as exact.
3384 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
3386 * doc/extend.texi: Add "noinit" attribute documentation.
3387 * doc/sourcebuild.texi: Add noinit effective target documentation.
3388 * varasm.c (default_section_type_flags): Add support for "noinit"
3390 (default_elf_select_section): Add support for "noinit" attribute.
3391 * config/msp430/msp430.c (msp430_attribute_table): Remove
3394 2019-08-14 Richard Biener <rguenther@suse.de>
3395 Uroš Bizjak <ubizjak@gmail.com>
3398 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
3400 (scalar_chain::smode): New member.
3401 (scalar_chain::vmode): Likewise.
3402 (dimode_scalar_chain): Rename to...
3403 (general_scalar_chain): ... this.
3404 (general_scalar_chain::general_scalar_chain): Take mode arguments.
3405 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
3406 base with TImode and V1TImode.
3407 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
3408 (general_scalar_chain::vector_const_cost): Adjust for SImode
3410 (general_scalar_chain::compute_convert_gain): Likewise. Add
3411 {S,U}{MIN,MAX} support.
3412 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
3413 (general_scalar_chain::make_vector_copies): Likewise. Handle
3414 non-DImode chains appropriately.
3415 (general_scalar_chain::convert_reg): Likewise.
3416 (general_scalar_chain::convert_op): Likewise.
3417 (general_scalar_chain::convert_insn): Likewise. Add
3418 fatal_insn_not_found if the result is not recognized.
3419 (convertible_comparison_p): Pass in the scalar mode and use that.
3420 (general_scalar_to_vector_candidate_p): Likewise. Rename from
3421 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
3422 (scalar_to_vector_candidate_p): Remove by inlining into single
3424 (general_remove_non_convertible_regs): Rename from
3425 dimode_remove_non_convertible_regs.
3426 (remove_non_convertible_regs): Remove by inlining into single caller.
3427 (convert_scalars_to_vector): Handle SImode and DImode chains
3428 in addition to TImode chains.
3429 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
3430 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
3431 (*<maxmin>di3_doubleword): Likewise.
3433 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3434 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3436 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
3437 (*cond_bic<mode>_any): New patterns.
3439 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3441 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
3442 take the equivalent mask, as well as a bit count.
3443 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
3444 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
3445 (aarch64_sve_pred_and_operand): New predicates.
3446 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
3448 * config/aarch64/aarch64-sve.md
3449 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
3450 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
3452 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3454 * config/aarch64/aarch64-sve.md
3455 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
3456 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
3459 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3460 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3462 * config/aarch64/aarch64-sve.md
3463 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
3464 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
3466 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3467 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3469 * config/aarch64/aarch64-sve.md
3470 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
3471 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
3473 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3475 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
3476 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
3479 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3480 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3482 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
3484 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3485 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3487 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
3488 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
3489 (aarch64_print_operand): Add support for %I.
3490 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
3491 Bitcast floating-point constants to the corresponding integer constant.
3492 (aarch64_float_const_representable_p): Handle vectors as well
3494 (aarch64_expand_sve_vcond): Make sure that the operands are valid
3495 for the new vcond_mask_<mode><vpred> expander.
3496 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
3497 test aarch64_float_const_representable_p.
3498 (aarch64_sve_reg_or_dup_imm): New predicate.
3499 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
3500 gen_vcond_mask_<mode><vpred> instead of
3501 gen_aarch64_sve_dup<mode>_const.
3502 (vcond_mask_<mode><vpred>): Turn into a define_expand that
3503 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
3504 for operands 1 and 2 respectively. Force operand 2 into a
3505 register if operand 1 is a register. Fold old define_insn...
3506 (aarch64_sve_dup<mode>_const): ...and this define_insn...
3507 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
3508 floating-point constants that can be moved as integers. Add
3509 alternatives for MOV /M and FMOV /M.
3510 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
3511 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
3512 1 and 2 respectively.
3513 * config/aarch64/constraints.md (Ufc): Handle vectors as well
3515 (vss): New constraint.
3517 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3519 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
3520 (aarch64_sve_float_maxmin_operand): New predicates.
3521 * config/aarch64/constraints.md (vsB): New constraint.
3523 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
3524 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
3526 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
3527 Use aarch64_sve_float_maxmin_operand for operand 2.
3528 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
3529 Add alternatives for the constant forms.
3531 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3533 * config/aarch64/constraints.md (vsb): New constraint.
3534 (vsm): Generalize description.
3535 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
3537 (sve_imm_con): Handle smax, smin, umax and umin.
3538 (sve_imm_prefix): New code attribute.
3539 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
3540 (aarch64_sve_vsb_operand): New predicates.
3541 (aarch64_sve_mul_immediate): Rename to...
3542 (aarch64_sve_vsm_immediate): ...this.
3543 (aarch64_sve_mul_operand): Rename to...
3544 (aarch64_sve_vsm_operand): ...this.
3545 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
3546 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
3547 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
3548 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
3549 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
3550 add movprfx support for the immediate alternatives.
3551 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
3553 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
3556 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3558 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
3559 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
3560 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
3562 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3564 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
3565 (optab, sve_int_op): Handle them.
3566 * config/aarch64/aarch64-sve.md: Expand comment.
3568 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3570 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
3571 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
3572 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
3574 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3576 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
3577 (aarch64_expand_sve_const_pred_trn): New functions.
3578 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
3579 use the above functions when the parameter is true.
3580 (aarch64_expand_sve_const_pred): Update call accordingly.
3581 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
3583 (@aarch64_sve_<perm_insn><mode>): ...this.
3585 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3587 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
3589 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
3590 (aarch64_sve_emit_int_cmp): New functions.
3591 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
3592 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
3593 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
3594 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
3595 (UNSPEC_PRED_Z): New unspec.
3596 (set_clobber_cc_nzc): Delete.
3597 * config/aarch64/aarch64-sve.md: Add a block comment about
3599 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
3600 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
3601 the old pattern with that name. Use UNSPEC_PRED_Z instead of
3603 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
3604 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
3605 check for compatible predicates.
3606 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
3607 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
3608 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
3611 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3613 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
3614 * config/aarch64/aarch64-sve.md: Add a section describing it.
3615 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
3616 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
3617 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
3618 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
3619 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
3620 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
3621 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
3622 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
3623 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
3624 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
3625 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
3626 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
3627 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
3628 (aarch64_evpc_rev_local): Update accordingly.
3630 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3632 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
3634 (SVE_BHSI, SVE_SDI): Tweak comment.
3635 (SVE_HSDI): Likewise. Fix definition.
3636 (SVE_SDF): New mode iterator.
3637 (elem_bits): New mode attribute.
3638 (SVE_COND_FCVT): New int iterator.
3639 * config/aarch64/aarch64-sve.md
3640 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
3641 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
3642 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
3643 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
3644 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
3645 ...these new patterns.
3646 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
3647 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
3648 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
3650 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
3651 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
3652 ...these new patterns.
3653 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
3654 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
3655 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
3656 ...this new pattern.
3657 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
3658 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
3659 ...this new pattern.
3660 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
3662 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3664 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
3665 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
3666 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
3668 (optab, su): Handle them.
3669 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
3670 * config/aarch64/aarch64-sve.md
3671 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
3672 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
3673 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
3674 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
3675 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
3676 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
3677 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
3678 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
3679 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
3681 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
3682 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
3683 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
3684 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
3685 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
3686 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
3687 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
3688 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
3689 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
3690 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
3691 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
3692 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
3693 of UNSPEC_FLOAT_CONVERT.
3694 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
3695 aarch64_sve_extend<mode><Vwide>2.
3697 2019-08-14 Richard Biener <rguenther@suse.de>
3700 * config/i386/i386-features.c
3701 (dimode_scalar_chain::compute_convert_gain): Compute and dump
3702 individual instruction gain. Fix reg-reg copy GRP cost. Use
3703 ix86_cost->sse_op for vector instruction costs.
3705 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3707 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
3708 (cmp_op): Handle it.
3709 (SVE_COND_FP_CMP): Rename to...
3710 (SVE_COND_FP_CMP_I0): ...this.
3711 (SVE_FP_CMP): Remove.
3712 * config/aarch64/aarch64-sve.md
3713 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
3714 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
3715 using unspecs to represent the comparison.
3716 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
3717 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
3719 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
3720 (aarch64_unspec_cond_code): Move after integer code. Handle
3722 (aarch64_emit_sve_predicated_cond): Replace with...
3723 (aarch64_emit_sve_fp_cond): ...this new function.
3724 (aarch64_emit_sve_or_conds): Replace with...
3725 (aarch64_emit_sve_or_fp_conds): ...this new function.
3726 (aarch64_emit_sve_inverted_cond): Replace with...
3727 (aarch64_emit_sve_invert_fp_cond): ...this new function.
3728 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
3730 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3732 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
3733 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
3734 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
3735 SVE_HSD instead of SVE_SD.
3737 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3738 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3740 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
3742 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
3744 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
3745 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
3746 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
3747 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
3748 (*div<SVE_F:mode>3): Generalize to...
3749 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
3751 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3752 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3754 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
3756 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
3758 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
3760 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
3762 * config/aarch64/aarch64-sve.md: Add a block comment about the
3763 handling of predicated FP operations.
3764 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
3765 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
3766 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
3767 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
3768 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
3770 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
3771 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
3773 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
3774 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
3775 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
3776 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
3777 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
3778 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
3779 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
3780 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
3781 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
3782 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
3783 strictness operands. Use aarch64_sve_pred_dominates_p to check
3784 whether the predicate on the conditional operation is suitable
3785 for merging. Split patterns into the canonical equal-predicate form.
3786 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
3787 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
3789 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3790 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3792 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
3793 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
3794 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
3796 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
3797 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
3800 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3801 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3803 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
3804 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
3805 actually has, rather than relying on REG_EQUAL notes.
3806 Make the insn operand order match the SVE operand order.
3807 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
3808 the SVE operand order.
3810 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3812 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
3813 (aarch64_emit_set_immediate): Likewise.
3814 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
3815 (aarch64_pfalse_reg): Likewise.
3816 (aarch64_convert_sve_data_to_pred): New function.
3817 (aarch64_sve_move_pred_via_while): Take an optional target register
3818 and the required register mode.
3819 (aarch64_expand_sve_const_pred_1): New function.
3820 (aarch64_expand_sve_const_pred): Likewise.
3821 (aarch64_expand_mov_immediate): Build an all-true predicate
3822 if the significant bits of the immediate are all true. Use
3823 aarch64_expand_sve_const_pred for all compile-time predicate constants.
3824 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
3825 before register allocation.
3826 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
3827 a VNx16BI PTRUE when splitting the memory alternative.
3828 (vec_duplicate<mode>): Update accordingly.
3829 (*pred_cmp<cmp_op><mode>): Rename to...
3830 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
3832 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3834 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
3835 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
3836 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
3837 (UNSPEC_PTEST): New unspec.
3838 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
3839 * config/aarch64/iterators.md (data_bytes): New mode attribute.
3840 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
3841 * config/aarch64/aarch64-sve.md: Add a new section describing the
3842 handling of UNSPEC_PTEST.
3843 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
3844 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
3845 (ptest_ptrue<mode>): Replace with...
3846 (aarch64_ptest<mode>): ...this new pattern.
3847 (cbranch<mode>4): Update after above changes.
3848 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
3850 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
3851 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
3852 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
3854 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
3857 * builtins.c (builtin_with_linkage_p): New function.
3858 * builtins.h (builtin_with_linkage_p): New function.
3859 * symtab.c (write_symbol): Remove redundant assert.
3860 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
3861 Remove FIXME and use builtin_with_linkage_p.
3863 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3866 * tree-core.h (function_decl::function_code): Change type to
3868 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
3869 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
3870 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
3871 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
3873 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
3874 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
3875 (fndecl_built_in_p): Change the type of the "name" argument to
3877 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
3878 after check for DECL_BUILT_IN_CLASS.
3879 * cgraphclones.c (build_function_decl_skip_args): Use
3880 set_decl_built_in_function.
3881 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
3882 * ipa-split.c (split_function): Likewise.
3883 * langhooks.c (add_builtin_function_common): Likewise.
3884 * omp-simd-clone.c (simd_clone_create): Likewise.
3885 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
3886 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
3887 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
3889 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
3890 instead of DECL_FUNCTION_CODE.
3891 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
3892 instead of DECL_FUNCTION_CODE.
3893 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
3894 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
3895 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
3896 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
3897 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
3898 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
3899 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
3900 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
3901 (alpha_gimple_fold_builtin): Likewise.
3902 * config/arc/arc.c (arc_expand_builtin): Likewise.
3903 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
3904 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
3905 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
3906 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
3907 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
3908 * config/frv/frv.c (frv_expand_builtin): Likewise.
3909 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
3910 (gcn_expand_builtin): Likewise.
3911 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
3912 (fold_builtin_cpu): Likewise.
3913 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
3914 * config/i386/i386.c (ix86_fold_builtin): Likewise.
3915 (ix86_gimple_fold_builtin): Likewise.
3916 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
3917 (ia64_expand_builtin): Likewise.
3918 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
3919 * config/mips/mips.c (mips_expand_builtin): Likewise.
3920 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
3921 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
3922 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
3923 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
3924 * config/pa/pa.c (pa_expand_builtin): Likewise.
3925 * config/pru/pru.c (pru_expand_builtin): Likewise.
3926 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
3927 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3929 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
3930 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
3931 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
3932 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
3933 (rs6000_builtin_reciprocal): Likewise.
3934 * config/rx/rx.c (rx_expand_builtin): Likewise.
3935 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
3936 * config/s390/s390.c (s390_expand_builtin): Likewise.
3937 * config/sh/sh.c (sh_expand_builtin): Likewise.
3938 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
3939 (sparc_fold_builtin): Likewise.
3940 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
3941 * config/spu/spu.c (spu_expand_builtin): Likewise.
3942 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
3943 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
3944 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
3945 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
3946 (xtensa_expand_builtin): Likewise.
3948 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3951 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
3952 before the DECL_FUNCTION_CODE.
3953 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
3954 to check for a BUILT_IN_ALLOCA call.
3955 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
3956 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
3957 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
3958 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3959 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
3960 for BUILT_IN_NORMAL functions.
3961 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
3962 test for BUILT_IN_TM_ABORT.
3963 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
3964 to check for a BUILT_IN_STACK_RESTORE call.
3965 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
3966 * tree-ssa-threadedge.c
3967 (record_temporary_equivalences_from_stmts_at_dest): Check for a
3968 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
3969 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
3970 test for a BUILT_IN_NORMAL call instead of a negative test for
3971 an internal function call.
3973 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3975 * tree.h (build_vector_a_then_b): Declare.
3976 * tree.c (build_vector_a_then_b): New function.
3977 * fold-const-call.c (fold_while_ult): Likewise.
3978 (fold_const_call): Use it to handle IFN_WHILE_ULT.
3979 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
3980 (aarch64_svpattern): New enum.
3981 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
3982 constants through aarch64_expand_mov_immediate.
3983 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
3984 than general_operand as the predicate for operand 1.
3985 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
3986 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
3988 (simd_immediate_info::simd_immediate_info): New overload that
3989 takes a scalar_int_mode and an svpattern.
3990 (simd_immediate_info::u): Add a "pattern" field.
3991 (svpattern_token): New function.
3992 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
3993 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
3994 (aarch64_sve_move_pred_via_while): New functions.
3995 (aarch64_expand_mov_immediate): Try using
3996 aarch64_sve_move_pred_via_while for predicates that contain N ones
3997 followed by M zeros but that do not correspond to a VLnnn pattern.
3998 (aarch64_sve_pred_valid_immediate): New function.
3999 (aarch64_simd_valid_immediate): Use it instead of dealing directly
4000 with PTRUE and PFALSE.
4001 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
4004 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
4006 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
4008 (darwin_override_options): Likewise.
4009 * config/darwin.h: Likewise.
4010 * config/darwin.opt: Likewise.
4011 * config/i386/i386.c (output_pic_addr_const): Likewise.
4012 * config/rs6000/darwin.h: Likewise.
4013 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
4014 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
4015 ... this TARGET_MACHO_SYMBOL_STUBS.
4016 (FUNCTION_PROFILER):Likewise.
4017 * config/i386/i386.h: Likewise.
4019 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
4021 * config/i386/i386-expand.c (ix86_expand_vector_extract)
4022 <case E_V2SImode>: Use vec_extr path for
4023 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
4024 <case E_V8QImode>: Ditto.
4025 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
4026 Use SWI48 mode iterator. Use %k to output operand 0.
4027 (*mmx_pextrw): New insn pattern.
4028 (*mmx_pextrb): Ditto.
4029 (*mmx_pextrb_zext): Ditto.
4031 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
4033 * target.def (libc_has_function, libc_has_fast_function): Improve
4034 documentation strings.
4035 * doc/tm.texi: Regenerate.
4037 2019-08-13 Caroline Tice <cmtice@google.com>
4040 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
4041 vtv_end.o or vtv_end_preinit.o files if !static.
4043 2019-08-13 Olivier Hainque <hainque@adacore.com>
4045 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
4047 2019-08-13 Olivier Hainque <hainque@adacore.com>
4049 * rtlanal.c (tablejump_casesi_pattern): New function, to
4050 determine if a tablejump insn is a casesi dispatcher. Extracted
4051 from patch_jump_insn.
4052 * rtl.h (tablejump_casesi_pattern): Declare.
4053 * cfgrtl.c (patch_jump_insn): Use it.
4054 * dwarf2cfi.c (create_trace_edges): Use it.
4056 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
4059 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
4060 operand is larger than a long int.
4062 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
4064 * machmode.h (opt_mode::else_mode): New function.
4065 (opt_mode::else_blk): Use it.
4066 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
4067 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
4068 (aarch64_gen_stepped_int_parallel): Likewise.
4069 (aarch64_stepped_int_parallel_p): Likewise.
4070 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
4072 * config/aarch64/aarch64.c
4073 (aarch64_expand_sve_widened_duplicate): Delete.
4074 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
4075 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
4076 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
4077 argument. Use early returns in the !CONST_INT_P handling.
4078 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
4079 than handling some inline.
4080 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
4082 (aarch64_simd_container_mode): ...here.
4083 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
4084 (aarch64_sve_ld1rq_operand_p): New functions.
4085 * config/aarch64/predicates.md (descending_int_parallel)
4086 (aarch64_sve_ld1rq_operand): New predicates.
4087 * config/aarch64/constraints.md (UtQ): New constraint.
4088 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
4089 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
4090 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
4091 (@aarch64_sve_reinterpret<mode>): New expander.
4092 (*aarch64_sve_reinterpret<mode>): New pattern.
4093 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
4094 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
4095 (*sve_ld1rq<Vesize>): Replace with...
4096 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
4098 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
4100 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
4103 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4105 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
4106 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
4107 (msp430_check_path_for_devices): New.
4108 (parse_devices_csv_1): New.
4109 (parse_devices_csv): New.
4110 (msp430_extract_mcu_data): Try to find devices.csv and search for the
4111 MCU data in devices.csv before using the hard-coded data.
4112 Warn if devices.csv isn't found and the MCU wasn't found in the
4113 hard-coded data either.
4114 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
4115 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
4116 Search for devices.csv on -I and -L paths.
4117 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
4118 msp430_set_driver_var.
4119 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
4121 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
4122 searched for devices.csv.
4123 (mwarn-devices-csv): Document option.
4125 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
4127 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
4128 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
4129 Use a single Dn alternative instead of separate Dz and Dm
4130 alternatives. Use aarch64_output_sve_move_immediate.
4131 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
4133 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
4135 (aarch64_output_sve_mov_immediate): Handle predicate modes.
4136 (aarch64_output_ptrue): Delete.
4138 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
4140 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
4142 (simd_immediate_info::value, simd_immediate_info::step)
4143 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
4145 (simd_immediate_info::u): ...this new union.
4146 (simd_immediate_info::simd_immediate_info): Update accordingly.
4147 (aarch64_output_simd_mov_immediate): Likewise.
4148 (aarch64_output_sve_mov_immediate): Likewise.
4150 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4152 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
4154 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
4155 (msp430_select_cpu): New spec function.
4156 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
4158 * config/msp430/msp430-devices.c: New file.
4159 * config/msp430/msp430-devices.h: New file.
4160 * config/msp430/msp430.c: Remove msp430_mcu_data.
4161 (msp430_option_override): Use msp430_extract_mcu_data to extract
4163 (msp430_use_f5_series_hwmult): Likewise.
4164 (use_32bit_hwmult): Likewise.
4165 (msp430_no_hwmult): Likewise.
4166 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
4168 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
4170 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
4171 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
4172 Remove hard-coded MCU multilib data.
4174 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
4176 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
4177 based on the mode instead of testing properties of it.
4179 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
4181 * doc/md.texi: Document the x and y constraints for AArch64.
4182 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
4183 (FP_LO8_REGS): New reg_class.
4184 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
4185 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
4186 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
4187 * config/aarch64/predicates.md (aarch64_simd_register): Use
4188 FP_REGNUM_P instead of checking the classes manually.
4189 * config/aarch64/constraints.md (y): New constraint.
4191 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
4193 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
4194 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
4195 * config/aarch64/aarch64-simd.md
4196 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
4197 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
4198 from the asm template.
4199 * config/aarch64/aarch64-sve.md
4200 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
4201 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
4202 from the asm template.
4203 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
4204 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
4205 from the asm template.
4206 * config/aarch64/aarch64-simd-builtins.def: Update comment.
4208 2019-08-13 Martin Liska <mliska@suse.cz>
4210 * value-prof.c (gimple_ic_transform): Add new line.
4211 Print details with MSG_NOTE.
4213 2019-08-13 Martin Liska <mliska@suse.cz>
4215 * doc/invoke.texi: Document automatic detection of jobserver.
4216 * lto-wrapper.c (run_gcc): Detect jobserver always.
4218 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
4220 * config/i386/i386-expand.c (ix86_expand_vector_set)
4221 <case E_V2SImode>: Use vec_merge path for
4222 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
4223 <case E_V8QImode>: Ditto.
4224 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
4225 (*mmx_pinsrb): Ditto.
4227 2019-08-12 Jakub Jelinek <jakub@redhat.com>
4231 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
4232 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
4233 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
4234 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
4235 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
4237 2019-08-12 Richard Biener <rguenther@suse.de>
4240 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
4243 2019-08-12 Richard Biener <rguenther@suse.de>
4246 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
4247 lang_mask option, always use CL_DRIVER.
4248 (get_options_from_collect_gcc_options): Adjust.
4249 (find_and_merge_options): Likewise.
4250 (run_gcc): Likewise.
4252 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4254 * ipa-predicate.c (add_condition): Restore inverted test.
4256 2019-08-10 Jakub Jelinek <jakub@redhat.com>
4258 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
4259 (enum omp_clause_device_type_kind): New enum.
4260 (struct tree_omp_clause): Add subcode.device_type_kind.
4261 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
4262 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
4263 for device_type clause.
4264 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
4265 * tree-pretty-print.c (dump_omp_clause): Likewise.
4268 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
4271 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
4273 * reload1.c (finish_spills): Do not check ira_conflicts_p when
4274 handling spilled pseudos.
4276 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
4279 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
4280 to preserve the contents of the original insns.
4282 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
4284 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
4285 (addsi3_compare_op2): Likewise.
4287 2019-08-09 Martin Liska <mliska@suse.cz>
4289 * alias.c (alias_ptr_types_compatible_p): Strengten
4290 type comparison in LTO mode.
4292 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
4295 * tree-tailcall.c (find_tail_calls): Reject calls that might
4296 read from an escaped RESULT_DECL.
4298 2019-08-09 Martin Liska <mliska@suse.cz>
4300 * doc/invoke.texi: Document the option value.
4301 * lto-wrapper.c (run_gcc): Set auto_parallel
4302 only with -flto=auto.
4304 2019-08-09 Martin Liska <mliska@suse.cz>
4306 * opts.c (common_handle_option): Error for an invalid argument
4309 2019-08-09 Martin Liska <mliska@suse.cz>
4311 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
4312 use dump_printf to report optimization.
4313 (sem_variable::merge): Likwise.
4314 (sem_item_optimizer::merge_classes): Use dump_printf to report
4317 2019-08-09 Martin Liska <mliska@suse.cz>
4319 * value-prof.c (gimple_divmod_fixed_value_transform):
4320 Use dump_printf_loc.
4321 (gimple_mod_pow2_value_transform): Likewise.
4322 (gimple_mod_subtract_transform): Likewise.
4323 (init_node_map): Likewise.
4324 (gimple_ic_transform): Likewise.
4325 (gimple_stringops_transform): Likewise.
4327 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
4329 * doc/extend.texi: Add const qualifier to ld intrinsics.
4331 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
4333 * config/rs6000/dfp.md (D64_D128): Rename to ...
4334 (DDTD): ... this, throughout.
4335 (dfp_suffix): Rename to ...
4336 (q): ... this, throughout.
4338 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
4340 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
4341 (dfp_suffix): Ditto.
4342 (adddd3, addtd3): Merge to ...
4343 (add<mode>3 for D64_D128): ... this.
4344 (subdd3, subtd3): Merge to ...
4345 (sub<mode>3 for D64_D128): ... this.
4346 (muldd3, multd3): Merge to ...
4347 (mul<mode>3 for D64_D128): ... this.
4348 (divdd3, divtd3): Merge to ...
4349 (div<mode>3 for D64_D128): ... this.
4350 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
4351 (*cmp<mode>_internal1 for D64_D128): ... this.
4352 (ftruncdd2, ftrunctd2): Merge to ...
4353 (ftrunc<mode>2 for D64_D128): ... this.
4354 (fixdddi2, fixtddi2): Merge to ...
4355 (fix<mode>di2 for D64_D128): ... this.
4357 2019-08-08 Jim Wilson <jimw@sifive.com>
4360 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
4361 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
4362 Pass into recursive call.
4363 (riscv_flatten_aggregate_argument): New arg. Pass to
4364 riscv_flatten_aggregate_field.
4365 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
4366 riscv_flatten_aggregate_argument twice, with false and true as last
4367 arg. Process result twice. Compare results and warn if different.
4368 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
4370 2019-08-08 Martin Liska <mliska@suse.cz>
4373 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
4374 * lto-wrapper.c (jobserver_active_p): Likewise.
4376 2019-08-08 Martin Liska <mliska@suse.cz>
4378 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
4379 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
4380 (create_version_clone_with_body): Likewise.
4382 2019-08-08 Jakub Jelinek <jakub@redhat.com>
4384 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
4385 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
4386 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
4387 GOVD_EXPLICIT flags.
4388 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
4389 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
4390 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
4391 call install_var_field with mask 11 instead of 3.
4392 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
4393 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
4395 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4397 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
4398 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
4400 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4402 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
4403 MOVPRFX alternatives. Make the GPR alternatives more expensive
4406 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4408 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
4409 Disparage the GPR alternative relative to the FPR one.
4410 Fix handling of 8-bit and 16-bit FPR values.
4412 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4414 * config/aarch64/iterators.md (BITWISEV): Delete.
4415 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
4416 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
4417 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
4418 UNSPEC_FMINNMV, UNSPEC_FMINV.
4419 (bit_reduc_op): Delete.
4420 (sve_int_op): New int attribute.
4421 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
4422 UNSPEC_FMINNMV, UNSPEC_FMINV.
4423 * config/aarch64/aarch64-sve.md
4424 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
4425 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
4426 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
4427 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
4428 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
4429 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
4431 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
4432 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
4433 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
4434 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
4435 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
4438 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4440 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
4441 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
4442 (fms<mode>4, *fms<mode>4): Replace with...
4443 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
4444 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
4445 Use unspecs instead of rtx codes.
4446 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
4447 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
4449 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4451 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
4453 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
4454 * config/aarch64/aarch64-sve.md
4455 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
4456 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
4457 use a single unspec for the rhs.
4458 (*<su><maxmin><mode>3): Delete.
4459 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
4461 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4463 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
4464 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
4465 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
4466 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
4467 (optab, sve_fp_op): Handle them.
4468 (SVE_FP_UNARY): Delete.
4469 (optab): Remove sqrt entry.
4470 (sve_fp_op): Remove neg, abs and sqrt entries.
4471 (SVE_COND_FP_UNARY): New int iterator.
4472 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
4473 (*<frint_pattern><mode>2): Delete.
4474 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
4475 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
4476 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
4477 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
4479 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4481 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
4483 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4485 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
4486 (UNSPEC_COND_FADD): ...this.
4487 (UNSPEC_COND_SUB): Rename to...
4488 (UNSPEC_COND_FSUB): ...this.
4489 (UNSPEC_COND_MUL): Rename to...
4490 (UNSPEC_COND_FMUL): ...this.
4491 (UNSPEC_COND_DIV): Rename to...
4492 (UNSPEC_COND_FDIV): ...this.
4493 (UNSPEC_COND_MAX): Rename to...
4494 (UNSPEC_COND_FMAXNM): ...this.
4495 (UNSPEC_COND_MIN): Rename to...
4496 (UNSPEC_COND_FMINNM): ...this.
4497 (UNSPEC_COND_LT): Rename to...
4498 (UNSPEC_COND_FCMLT): ...this.
4499 (UNSPEC_COND_LE): Rename to...
4500 (UNSPEC_COND_FCMLE): ...this.
4501 (UNSPEC_COND_EQ): Rename to...
4502 (UNSPEC_COND_FCMEQ): ...this.
4503 (UNSPEC_COND_NE): Rename to...
4504 (UNSPEC_COND_FCMNE): ...this.
4505 (UNSPEC_COND_GE): Rename to...
4506 (UNSPEC_COND_FCMGE): ...this.
4507 (UNSPEC_COND_GT): Rename to...
4508 (UNSPEC_COND_FCMGT): ...this.
4509 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
4510 (sve_fp_op_rev): Update accordingly.
4511 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
4513 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4515 * config/aarch64/aarch64-sve.md: Reorganize contents and add
4517 * config/aarch64/check-sve-md.awk: New file.
4518 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
4519 (insn-conditions.md): Depend on it.
4521 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
4524 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
4525 (*negsi2_cmpz_zext): Ditto.
4527 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4529 * config/aarch64/iterators.md (commutative): Remove.
4531 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
4534 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
4535 processing COLLECT_GCC_OPTIONS.
4536 (run_gcc): Likewise.
4538 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
4540 PR tree-optimization/91109
4541 * lra-remat.c (update_scratch_ops): Remove assignment of the
4544 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4546 * data-streamer.h (streamer_write_poly_uint64): Declare.
4547 (streamer_read_poly_uint64): Likewise.
4548 * data-streamer-in.c (streamer_read_poly_uint64): New function.
4549 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
4550 * ipa-predicate.h (condition::size): Turn into a poly_int64.
4551 (add_condition): Take a poly_int64 size.
4552 * ipa-predicate.c (add_condition): Likewise.
4553 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
4554 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
4555 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
4556 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
4557 condition::size as a poly_int64.
4558 (unmodified_parm_1): Take a poly_int64 size pointer.
4559 (unmodified_parm): Likewise.
4560 (unmodified_parm_or_parm_agg_item): Likewise.
4561 (set_cond_stmt_execution_predicate): Update accordingly.
4562 (set_switch_stmt_execution_predicate): Likewise.
4563 (will_be_nonconstant_expr_predicate): Likewise.
4564 (will_be_nonconstant_predicate): Likewise.
4565 (inline_read_section): Stream condition::size as a poly_int.
4566 (ipa_fn_summary_write): Likewise.
4568 2019-08-07 Martin Liska <mliska@suse.cz>
4570 * fold-const.c (twoval_comparison_p): Replace int
4571 with bool as a return type.
4572 (simple_operand_p): Likewise.
4573 (operand_equal_p): Replace int with bool as a return type.
4574 * fold-const.h (operand_equal_p): Likewise.
4576 2019-08-07 Jakub Jelinek <jakub@redhat.com>
4578 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
4579 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
4580 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
4581 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
4582 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
4583 * tree-pretty-print.c (dump_omp_clause): Likewise.
4584 * tree-nested.c (convert_nonlocal_omp_clauses,
4585 convert_local_omp_clauses): Likewise.
4586 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
4588 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
4589 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
4590 clause with array or reference to array types, no matter what type
4591 except for reference it has.
4593 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
4595 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
4597 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
4599 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
4600 (arch_canonicalize): Support rv32g and rv64g and fix error
4603 2019-08-06 Martin Liska <mliska@suse.cz>
4605 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
4606 and DECL_IS_OPERATOR_DELETE_P.
4608 2019-08-06 Jakub Jelinek <jakub@redhat.com>
4610 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
4611 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
4612 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
4613 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
4614 (gimplify_omp_for): Don't do C++ random access iterator clause
4615 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
4616 don't predetermine the artificial iterator in case of C++ random
4617 access iterators as lastprivate, but private. For OMP_LOOP, force
4618 bind expr around simd body and force for_pre_body before the
4619 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
4620 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
4621 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
4622 diff var of C++ random access iterators. Handle
4623 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
4624 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
4625 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
4626 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
4627 * omp-low.c (lower_rec_input_clauses): For
4628 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
4629 variables instead of default constructing them.
4630 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
4631 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
4632 is_taskloop_ctx check from the assert to the guarding condition.
4634 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
4636 * config/riscv/multilib-generator: (canonical_order): New.
4637 (arch_canonicalize): Dito.
4638 Apply arch_canonicalize for alts.
4640 2019-08-05 Martin Sebor <msebor@redhat.com>
4642 * doc/extend.texi (Common Variable Attributes): Document alias
4645 2019-08-05 Marek Polacek <polacek@redhat.com>
4647 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
4648 * doc/invoke.texi: Document -Wcomma-subscript.
4650 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
4652 * tree-core.h (tree_function_decl): Make function_code an
4653 independent field. Group the remaining bitfields into bytes
4654 and move decl_type so that it contines to be at a byte boundary.
4655 Leave 12 bits for future expansion.
4657 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
4659 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
4660 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
4661 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
4664 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
4666 * gimple.h (gimple_move_vops): Declare.
4667 * gimple.c (gimple_move_vops): New function
4668 * gimple-fold.c (replace_call_with_call_and_fold)
4669 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
4670 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
4671 (gimple_fold_call): Use it.
4672 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
4673 * tree-call-cdce.c (use_internal_fn): Likewise.
4674 * tree-if-conv.c (predicate_load_or_store): Likewise.
4675 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4676 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4677 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
4678 (update_call_from_tree): Likewise.
4679 * tree-vect-stmts.c (vectorizable_load): Likewise.
4680 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
4682 2019-08-05 Martin Liska <mliska@suse.cz>
4685 * tree-ssa-dce.c (propagate_necessity): Handle new operators
4687 (eliminate_unnecessary_stmts): Likewise.
4689 2019-08-05 Richard Biener <rguenther@suse.de>
4692 * fold-const.c (get_array_ctor_element_at_index): Create
4693 offset_ints according to the sign of the index type and treat
4694 that as signed if it is obviously so.
4696 2019-08-05 Jakub Jelinek <jakub@redhat.com>
4699 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
4700 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
4701 _mm256_storeu2_m128i): New function.
4703 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
4705 * config/riscv/riscv.c (riscv_promote_function_mode): New.
4706 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
4708 2019-08-05 Alan Modra <amodra@gmail.com>
4711 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
4712 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
4714 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
4716 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
4717 bug that was fixed in Tcl 8.6.1.
4719 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
4721 * config/rs6000/future.md: New file.
4722 * config/rs6000/rs6000.md: Include future.md.
4723 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
4725 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4727 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
4728 check to use targetm.slow_unaligned_access instead.
4730 * function.c (assign_param_data_one): Remove unused data members.
4732 2019-08-02 Steve Ellcey <sellcey@marvell.com>
4734 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
4735 build_distinct_type_copy.
4736 (simd_clone_adjust_argument_types): Ditto.
4737 (simd_clone_adjust): Call build_distinct_type_copy here.
4738 (expand_simd_clones): Ditto.
4740 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
4743 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
4745 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
4747 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
4748 from 'const void *'.
4749 (sort_locs_in_loop_postorder_cmp): Likewise.
4751 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
4753 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
4754 (hot-bb-count-ws-permille): Likewise.
4755 (hot-bb-frequency-fraction): Likewise.
4756 (unlikely-bb-count-fraction): Likewise.
4757 * params.def (hot-bb-count-fraction): Rework description.
4758 (hot-bb-count-ws-permille): Likewise.
4759 (hot-bb-frequency-fraction): Likewise.
4760 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
4761 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
4763 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
4766 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
4769 2019-08-02 Richard Biener <rguenther@suse.de>
4771 * vec.h (vec::sort): Add gcc_qsort_r support.
4772 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
4773 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
4774 to gcc_qsort_r style callback.
4775 (sort_locs_in_loop_postorder_cmp): Likewise.
4776 (analyze_memory_references): Use gcc_sort_r interfaces.
4777 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
4779 2019-08-02 Martin Liska <mliska@suse.cz>
4782 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
4783 to detect working job server.
4784 (driver::detect_jobserver): Test whether jobserver
4785 is active from GCC driver. That will prevent situation where
4786 GCC is invoked from a LD plugin and the linker already uses
4787 file descriptors suggested by make. That leads to a wrong
4789 * gcc.h (driver): Add detect_jobserver.
4790 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
4791 not scanning for --jobserver-auth prefix.
4793 2019-08-02 Jakub Jelinek <jakub@redhat.com>
4795 PR tree-optimization/91201
4796 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
4797 V16QImode extraction without sse4.1 try to use V4SImode lowpart
4800 2019-08-01 Martin Sebor <msebor@redhat.com>
4803 * tree.c (type_initializer_zero_p): Define.
4804 * tree.h (type_initializer_zero_p): New function.
4806 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
4808 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
4810 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
4812 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
4813 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
4814 * predict.c (maybe_hot_count_p): Likewise.
4815 (maybe_hot_bb_p): Tweak comment.
4816 (maybe_hot_edge_p): Likewise.
4817 (probably_never_executed): Likewise. Minor tweak.
4818 (probably_never_executed_bb_p): Likewise.
4819 (unlikely_executed_edge_p): Likewise.
4820 (probably_never_executed_edge_p): Likewise.
4821 (optimize_function_for_size_p): Likewise.
4822 (optimize_function_for_speed_p): Likewise.
4823 (function_optimization_type): Likewise.
4824 (optimize_bb_for_size_p): Likewise.
4825 (optimize_bb_for_speed_p): Likewise.
4826 (bb_optimization_type): Likewise.
4827 (optimize_edge_for_size_p): Likewise.
4828 (optimize_edge_for_speed_p): Likewise.
4829 (optimize_insn_for_size_p): Likewise.
4830 (optimize_insn_for_speed_p): Likewise.
4831 (optimize_loop_for_size_p): Likewise.
4832 (optimize_loop_for_speed_p): Likewise.
4833 (optimize_loop_nest_for_speed_p): Likewise.
4834 (optimize_loop_nest_for_size_p): Likewise.
4835 (predictable_edge_p): Likewise.
4836 (handle_missing_profiles): Minor tweak.
4838 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
4840 * config/rs6000/predicates.md (pcrel_external_address): Update
4843 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
4846 * config/i386/mmx.md (usadv8qi): New expander.
4848 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
4851 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
4852 with reserved names that are in a system header.
4854 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
4856 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
4857 (*vec_extractv2si_0_zext_sse4): New insn pattern.
4858 (*vec_extractv2si_0_zext): Ditto.
4859 (*vec_extractv2si_1): Add (rm,x) alternative.
4860 (*vec_extractv2si_1_zext): New insn pattern.
4861 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
4864 2019-08-01 Richard Biener <rguenther@suse.de>
4866 * domwalk.c (bb_postorder): Remove static variable.
4867 (cmp_bb_postorder): Adjust.
4868 (sort_bbs_postorder): Adjust and use gcc_sort_r.
4869 (dom_walker::walk): Adjust.
4871 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
4873 * sort.cc (sort_r_ctx): New struct.
4874 (reorder23): Make templated on context type.
4876 (cmp1): Ditto. Adjust signature.
4879 [CHECKING_P] (cmp2to3): New static function. Use it...
4880 (gcc_qsort) [CHECKING_P]: ...here.
4881 (gcc_sort_r): New function.
4882 * system.h (sort_r_cmp_fn): New function typedef.
4883 (qsort_chk): Adjust signature.
4884 (gcc_sort_r): Declare.
4885 * vec.c (qsort_chk_error): Adjust.
4886 (qsort_chk): Adjust.
4888 2019-08-01 Richard Biener <rguenther@suse.de>
4890 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
4891 (compute_antic): Localize it here.
4893 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
4895 * common/config/riscv/riscv-common.c: Check -march string ends
4898 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
4900 * ipa-devirt.c (type_warning_cmp): Make static.
4901 (decl_warning_cmp): Ditto.
4903 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
4906 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
4907 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4908 use of deleted rs6000_dejagnu_cpu_index variable.
4909 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
4910 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
4911 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
4912 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
4913 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
4914 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
4916 2019-07-31 Richard Biener <rguenther@suse.de>
4918 PR tree-optimization/91280
4919 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4920 Decompose MEM_REF manually for offset handling.
4922 2019-07-31 Richard Biener <rguenther@suse.de>
4924 PR tree-optimization/91293
4925 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
4928 2019-07-31 Matt Thomas <matt@3am-software.com>
4929 Nick Hudson <nick@nthcliff.demon.co.uk>
4930 Matthew Green <mrg@eterna.com.au>
4931 Maya Rashish <coypu@sdf.org>
4933 * config.gcc (hppa*-*-netbsd*): New target.
4934 * config/pa/pa-netbsd.h: New file.
4935 * config/pa/pa32-netbsd.h: New file.
4937 2019-07-31 Jakub Jelinek <jakub@redhat.com>
4939 PR tree-optimization/91201
4940 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
4942 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
4944 * config/gcn/gcn-valu.md
4945 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
4946 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
4947 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
4948 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
4949 struct ilist. Add nops for delayeduse insns.
4950 * config/gcn/gcn.md (delayeduse): New attribute.
4951 (*movbi): Remove s_waitcnt from stores.
4952 (*mov<mode>_insn): Likewise.
4953 (*movti_insn): Likewise. Add delayeduse attribute.
4954 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
4955 (atomic_store<mode>): Remove or adjust s_waitcnt.
4957 2019-07-31 Richard Biener <rguenther@suse.de>
4959 * vr-values.h (vr_values::swap_vr_value): New.
4960 (vr_values::free_value_range): likewise.
4961 * vr-values.c (vr_values::swap_vr_value): Implement.
4962 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
4963 Do not return a range or take a var.
4964 (evrp_range_analyzer::stack): Change back to recording a non-const
4966 * gimple-ssa-evrp-analyze.c
4967 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
4969 (evrp_range_analyzer::pop_to_marker): Adjust.
4970 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
4971 (evrp_range_analyzer::pop_value_range): Likewise. Free the
4972 no longer needed value-range.
4974 2019-07-31 Martin Liska <mliska@suse.cz>
4976 * tree-ssa-dce.c (propagate_necessity): Delete operator can
4977 have size and (or) alignment as 2nd and later arguments.
4978 Mark all of them as necessary.
4980 2019-07-31 Richard Biener <rguenther@suse.de>
4982 PR tree-optimization/91178
4983 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
4986 2019-07-31 Jakub Jelinek <jakub@redhat.com>
4988 PR tree-optimization/91201
4989 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
4990 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
4992 (reduc_plus_scal_<mode>): Improve formatting by introducing
4995 2019-07-31 Sudakshina Das <sudi.das@arm.com>
4997 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
4998 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
4999 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
5000 (aarch64_init_tme_builtins): New.
5001 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
5002 (aarch64_expand_builtin_tme): New.
5003 (aarch64_expand_builtin): Handle TME builtins.
5004 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5005 __ARM_FEATURE_TME when enabled.
5006 * config/aarch64/aarch64-option-extensions.def: Add "tme".
5007 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
5009 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
5010 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
5012 (tstart, ttest, tcommit, tcancel): New instructions.
5013 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
5014 (__tcancel, __ttest): New.
5015 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
5016 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
5017 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
5018 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
5019 * config/arm/types.md: Add new tme type attr.
5020 * doc/invoke.texi: Document "tme".
5022 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
5024 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
5025 warn_unused_result attribute.
5026 (cmse_check_address_range): Add warn_unused_result attribute.
5028 2019-07-31 Richard Biener <rguenther@suse.de>
5030 PR tree-optimization/91257
5031 * tree-vrp.c (union_ranges): Unify equality and less tests
5032 by using compare_values. Re-order cheap tests first.
5034 2019-07-31 Jakub Jelinek <jakub@redhat.com>
5037 * gimplify.c (gimplify_omp_for): If for class iterator on
5038 distribute parallel for there is no data sharing clause
5039 on inner_for_stmt, look for private clause on combined
5040 parallel too and if found, move it to inner_for_stmt.
5042 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
5044 * lra-int.h (lra_operand_data): Remove early_clobber field.
5045 (lra_insn_reg): Likewise.
5046 * lra.c (debug_operand_data): Update accordingly.
5047 (setup_operand_alternative): Likewise.
5048 (new_insn_reg): Likewise. Remove early_clobber parameter.
5049 (collect_non_operand_hard_regs): Update call accordingly.
5050 Don't assign to lra_insn_reg::early_clobber.
5051 (add_regs_to_insn_regno_info): Remove early_clobber parameter
5052 and update calls to new_insn_reg.
5053 (lra_update_insn_regno_info): Update calls accordingly.
5054 * lra-constraints.c (update_and_check_small_class_inputs): Take the
5055 alternative number as a parameter and test whether the operand
5056 is earlyclobbered in that particular alternative.
5057 (process_alt_operands): Update call accordingly. Use per-alternative
5058 checks for earyclobber here too.
5059 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
5060 against zero for IRA_UNKNOWN_ALT.
5062 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
5064 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
5066 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
5068 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
5069 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
5071 2019-07-30 Martin Liska <mliska@suse.cz>
5074 * cgraph.c (cgraph_edge::make_direct): Use
5075 edge->indirect_unknown_callee as edge->resolve_speculation can
5076 deallocate edge which is this pointer.
5078 2019-07-30 Richard Biener <rguenther@suse.de>
5080 PR tree-optimization/91257
5081 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
5083 2019-07-30 Martin Liska <mliska@suse.cz>
5085 * doc/invoke.texi: Document new behavior.
5086 * lto-wrapper.c (cpuset_popcount): New function
5087 is a copy of libgomp/config/linux/proc.c.
5088 (init_num_threads): Likewise.
5089 (run_gcc): Automatically detect core count for -flto.
5090 (jobserver_active_p): New function.
5092 2019-07-30 Richard Biener <rguenther@suse.de>
5094 PR tree-optimization/91257
5095 * bitmap.h (bitmap_ior_into_and_free): Declare.
5096 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
5097 whether to add the unliked element to the freelist.
5098 (bitmap_list_insert_element_after): Add defaulted param for
5099 an already allocated element.
5100 (bitmap_ior_into_and_free): New function.
5101 * tree-ssa-structalias.c (condense_visit): Reduce the
5102 ponts-to and edge bitmaps of the SCC members in a
5103 logarithmic fashion rather than all to one.
5105 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
5107 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
5108 parameter. When nonnull, make sure that the addition or subtraction
5109 has the same condition.
5110 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
5111 for CFN_COND_MUL too.
5113 2019-07-30 Richard Biener <rguenther@suse.de>
5115 PR tree-optimization/91291
5116 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
5119 2019-07-30 Jakub Jelinek <jakub@redhat.com>
5122 * omp-low.c (global_nonaddressable_vars): New variable.
5123 (use_pointer_for_field): For global decls, if they are non-addressable,
5124 remember it in the global_nonaddressable_vars bitmap, if they are
5125 addressable and in the global_nonaddressable_vars bitmap, ignore their
5126 TREE_ADDRESSABLE bit.
5127 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
5128 vars in global_nonaddressable_vars bitmap.
5129 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
5132 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
5133 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
5134 comparison to unsigned HOST_WIDE_INT before shifting it left.
5136 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
5138 * config/i386/i386.md (movstrict<mode>): Use register_operand
5139 predicate for operand 0. Add expander condition. Assert that
5140 operand 0 is a SUBREG RTX.
5141 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
5142 Update operand constraints and insn condition.
5143 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
5144 (zero_extendqihi2_and): Do not call gen_movstrictqi.
5145 (*setcc_qi_slp): Use register_operand predicate for operand 0.
5146 Update operand 0 constraints.
5147 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
5149 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5151 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
5152 when -m{code,data}-region are used without -mlarge.
5153 * config/msp430/msp430.c (msp430_option_override): Error when a
5154 non-default code or data region is used without -mlarge.
5155 (msp430_section_attr): Emit a warning and do not add upper/lower/either
5156 attributes when they are used without -mlarge.
5158 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5161 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
5163 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
5166 * wide-int.h (generic_wide_int::sext_elt): New function.
5167 * inchash.h (hash::add_wide_int): Use it instead of elt.
5169 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5171 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
5173 * config/arm/arm.md (<crc_variant>): Rename to...
5174 (arm_<crc_variant>): ... This.
5175 (<cdp>): Rename to...
5176 (arm_<cdp>): ... This.
5177 (<ldc>): Rename to...
5178 (arm_<ldc>): ... This.
5179 (<stc>): Rename to...
5180 (arm_<stc>): ... This.
5181 (<mcr>): Rename to...
5182 (arm_<mcr>): ... This.
5183 (<mrc>): Rename to...
5184 (arm_<mrc>): ... This.
5185 (<mcrr>): Rename to...
5186 (arm_<mcrr>): ... This.
5187 (<mrrc>): Rename to...
5188 (arm_<mrrc>): ... This.
5190 2019-07-29 Richard Biener <rguenther@suse.de>
5192 PR tree-optimization/91257
5193 * tree-ssa-sccvn.h (struct vn_avail): New.
5194 (struct vn_ssa_aux): Add avail member.
5195 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
5196 member, add m_avail_freelist one.
5197 (rpo_elim::~rpo_elim): Remove.
5198 (rpo_elim::eliminate_avail): Adjust to new avail tracking
5200 (rpo_elim::eliminate_push_avail): Likewise.
5201 (do_unwind): Likewise.
5202 (do_rpo_vn): Likewise.
5204 2019-07-29 Richard Biener <rguenther@suse.de>
5206 PR tree-optimization/91257
5207 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
5208 most cases, instead call compare_values which handles the
5209 symbolic ranges we handle specially.
5210 (compare_values_warnv): Do not call operand_less_p but open-code
5211 the effective fold calls. Avoid converting so much.
5213 2019-07-29 Martin Liska <mliska@suse.cz>
5215 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
5216 remove LHS of operator new call. It's handled latter.
5218 2019-07-29 Richard Biener <rguenther@suse.de>
5220 PR tree-optimization/91267
5221 * vr-values.c (vr_values::update_value_range): Add early return
5222 for effectively VARYING lattice entry.
5224 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
5227 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
5228 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
5229 necessary if keep_all_vdefs_p is true.
5230 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
5231 that keep_all_vdefs_p is false.
5232 (mark_all_reaching_defs_necessary): Likewise.
5233 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
5235 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
5237 * common.opt (Og): Change the initial value of flag_dse to 0.
5238 * opts.c (default_options_table): Move OPT_ftree_dse from
5239 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
5240 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
5241 entry before the OPT_ftree_sra entry.
5242 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
5243 of flags disabled by Og.
5245 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
5247 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
5250 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
5252 * doc/sourcebuild.texi (check-function-bodies): Document.
5254 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
5256 * simplify-rtx.c (simplify_const_unary_operation): Fold a
5257 VEC_DUPLICATE of a fixed-length vector even if the result
5258 is variable-length. Likewise fold a duplicate of a
5259 variable-length vector if the variable-length vector is
5260 itself a duplicate of a fixed-length sequence.
5261 (test_vector_ops_duplicate): Test more cases.
5263 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
5265 * vector-builder.h (vector_builder): Add a shape template parameter.
5266 (vector_builder::new_unary_operation): New function, generalizing
5267 the old tree_vector_builder function.
5268 (vector_builder::new_binary_operation): Likewise.
5269 (vector_builder::binary_encoded_nelts): Likewise.
5270 * int-vector-builder.h (int_vector_builder): Update template
5271 parameters to vector_builder.
5272 (int_vector_builder::shape_nelts): New function.
5273 * rtx-vector-builder.h (rtx_vector_builder): Update template
5274 parameters to vector_builder.
5275 (rtx_vector_builder::shape_nelts): New function.
5276 (rtx_vector_builder::nelts_of): Likewise.
5277 (rtx_vector_builder::npatterns_of): Likewise.
5278 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
5279 * tree-vector-builder.h (tree_vector_builder): Update template
5280 parameters to vector_builder.
5281 (tree_vector_builder::shape_nelts): New function.
5282 (tree_vector_builder::nelts_of): Likewise.
5283 (tree_vector_builder::npatterns_of): Likewise.
5284 (tree_vector_builder::nelts_per_pattern_of): Likewise.
5285 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
5286 (tree_vector_builder::new_binary_operation): Delete.
5287 (tree_vector_builder::binary_encoded_nelts): Likewise.
5288 * simplify-rtx.c: Include rtx-vector-builder.h.
5289 (distributes_over_addition_p): New function.
5290 (simplify_const_unary_operation)
5291 (simplify_const_binary_operation): Generalize handling of vector
5292 constants to include variable-length vectors.
5293 (test_vector_ops_series): Add more tests.
5295 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
5298 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
5299 than INDENTIFIER_POINTER.
5301 2019-07-28 Martin Liska <mliska@suse.cz>
5304 * cgraph.c (symbol_table::create_edge): Always allocate
5306 (symbol_table::free_edge): Store summary_id to
5307 edge_released_summary_ids if != -1;
5308 * cgraph.h (NEXT_FREE_NODE): Remove.
5309 (SET_NEXT_FREE_NODE): Likewise.
5310 (NEXT_FREE_EDGE): Likewise.
5311 (symbol_table::release_symbol): Store summary_id to
5312 cgraph_released_summary_ids if != -1;
5313 (symbol_table::allocate_cgraph_symbol): Always allocate
5316 2019-07-28 Alan Modra <amodra@gmail.com>
5318 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
5321 2019-07-28 Alan Modra <amodra@gmail.com>
5324 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
5326 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
5327 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
5328 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
5330 2019-07-28 Alan Modra <amodra@gmail.com>
5333 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
5334 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
5335 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
5336 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
5337 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
5338 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
5339 in asm_default spec.
5340 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
5341 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
5343 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
5345 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
5347 2019-07-26 Tamar Christina <tamar.christina@arm.com>
5350 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
5351 * config/aarch64/aarch64-option-extensions.def: Add new comments
5352 and restore easier to read options.
5354 2019-07-26 Tamar Christina <tamar.christina@arm.com>
5356 * convert.c (convert_to_real_1): Move part of conversion code...
5357 * match.pd: ...To here.
5359 2019-07-26 Martin Jambor <mjambor@suse.cz>
5362 * ipa-inline-transform.c (check_speculations_1): New function.
5363 (push_all_edges_in_set_to_vec): Likewise.
5364 (check_speculations): Use check_speculations_1, new parameter
5366 (inline_call): Pass new_edges to check_speculations.
5367 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
5369 (speculation_useful_p): Early return true if edge is inlined, remove
5370 later checks for inline_failed.
5372 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
5374 PR rtl-optimization/91223
5375 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
5376 matching with INOUT operand.
5378 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
5380 * stmt.c (expand_case): Try to narrow the index type if it's larger
5381 than a word. Tidy up.
5383 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
5385 * cif-code.def (NEVER_CALL): New code.
5386 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
5387 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
5389 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
5391 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
5392 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
5394 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
5396 * ipa-devirt.c (add_type_duplicate): Fix return value.
5398 2019-07-25 Richard Biener <rguenther@suse.de>
5400 * tree-vrp.c (extract_range_from_multiplicative_op): Add
5401 type parameter and use it instead of guessing expression
5402 type from the first operand.
5403 (extract_range_from_binary_expr): Pass expr_type down.
5405 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5407 * config/arm/arm.md (SATrev): Change to code attribute.
5408 (*satsi_<SAT:code>): Adjust for the above.
5409 (*satsi_<SAT:code>_shift): Likewise.
5411 2019-07-25 Richard Biener <rguenther@suse.de>
5413 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
5414 Make value_range * temporary const.
5415 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
5417 (evrp_range_analyzer::record_ranges_from_): Likewise.
5418 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
5419 deal with having recorded a const one.
5420 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
5421 Return a const value_range *.
5422 (evrp_range_analyzer::pop_value_range): Likewise.
5423 (evrp_range_analyzer::stack): Record const value_range *s.
5424 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
5426 * gimple-ssa-sprintf.c (get_int_range): Likewise.
5427 (format_integer): Likewise.
5428 (sprintf_dom_walker::handle_gimple_call): Likewise.
5429 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
5430 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
5431 (vrp_prop::get_value_range): Adjust.
5432 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
5433 modifying the lattice in-place.
5434 (vrp_prop::visit_stmt): Likewise.
5435 * vr-values.c (vr_values::get_lattice_entry): New private method.
5436 (vr_values::get_value_range): Wrap it and return a const
5438 (vr_values::set_def_to_varying): New.
5439 (vr_values::set_defs_to_varying): Use it.
5440 (vr_values::update_value_range): Likewise.
5441 (vr_values::vrp_stmt_computes_nonzero): Adjust.
5442 (values::op_with_constant_singleton_va): Likewise.
5443 (vr_values::extract_range_for_var_from_co): Likewise.
5444 (vr_values::extract_range_from_ssa_name): Likewise.
5445 (vr_values::extract_range_from_cond_expr): Likewise.
5446 (vr_values::extract_range_basic): Likewise.
5447 (compare_ranges): Take const value_range *, adjust.
5448 (compare_range_with_value): Likewise.
5449 (vrp_valueize): Adjust.
5450 (vrp_valueize_1): Likewise.
5451 (vr_values::get_vr_for_comparison): Return a const value_range *.
5452 (vr_values::compare_name_with_value): Adjust.
5453 (vr_values::compare_names): Likewise.
5454 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
5456 (vr_values::vrp_evaluate_conditional): Likewise.
5457 (find_case_label_ranges): Take a const value_range *.
5458 (vr_values::vrp_visit_switch_stmt): Adjust.
5459 (vr_values::extract_range_from_phi_node): Likewise.
5460 (vr_values::simplify_div_or_mod_using_ran): Likewise.
5461 (vr_values::simplify_abs_using_ranges): Likewise.
5462 (test_for_singularity): Take a const value_range *.
5463 (range_fits_type_p): Likewise.
5464 (vr_values::simplify_cond_using_ranges_1): Adjust.
5465 (vr_values::simplify_cond_using_ranges_2): Likewise.
5466 (vr_values::simplify_switch_using_ranges): Likewise.
5467 (vr_values::simplify_float_conversion_usi): Likewise.
5468 (vr_values::two_valued_val_range_p): Likewise.
5469 * vr-values.h (vr_values::get_value_range): Return a const
5471 (vr_values::set_def_to_varying): New.
5472 (vr_values::get_lattice_entry): New private method.
5473 (vr_values::get_vr_for_comparison): Return a const value_range *.
5475 2019-07-25 Martin Liska <mliska@suse.cz>
5476 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
5479 * common.opt: Add -fallocation-dce
5480 * gimple.c (gimple_call_operator_delete_p): New.
5481 * gimple.h (gimple_call_operator_delete_p): Likewise.
5482 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
5483 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
5484 DECL_IS_OPERATOR_DELETE_P.
5485 (mark_all_reaching_defs_necessary_1): Likewise.
5486 (propagate_necessity): Likewise.
5487 (eliminate_unnecessary_stmts): Handle
5488 gimple_call_operator_delete_p.
5489 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
5490 Add packing of OPERATOR_DELETE.
5491 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
5493 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
5494 (DECL_SET_IS_OPERATOR_DELETE): New.
5495 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
5497 2019-07-25 Martin Liska <mliska@suse.cz>
5499 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
5500 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
5501 * coverage.c (coverage_begin_function): Likewise.
5502 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
5503 * gimple.c (gimple_call_nonnull_result_p): Likewise.
5504 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
5505 (sem_item::hash_referenced_symbol_properties): Likewise.
5506 * lto-streamer-out.c (hash_tree): Likewise.
5507 * predict.c (expr_expected_value_1): Likewise.
5508 * tree-inline.c (expand_call_inline): Likewise.
5509 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
5510 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
5511 * tree-core.h (enum function_decl_type): New enum.
5512 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
5513 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
5514 (set_function_decl_type): Likewise.
5515 (DECL_IS_OPERATOR_NEW_P): New.
5516 (DECL_SET_IS_OPERATOR_NEW): Likewise.
5517 (DECL_LAMBDA_FUNCTION): Likewise.
5518 (DECL_LAMBDA_FUNCTION_P): Likewise.
5519 (DECL_IS_OPERATOR_NEW): Remove.
5520 (DECL_SET_LAMBDA_FUNCTION): Likewise.
5522 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
5524 * ipa-profile.c (get_most_common_single_value): Use
5525 get_nth_most_common_value.
5526 * profile.c (sort_hist_value): New function.
5527 (compute_value_histograms): Call sort_hist_value to sort the
5528 values after loading from disk.
5529 * value-prof.c (get_most_common_single_value): Rename to ...
5530 get_nth_most_common_value. Add input params n, return
5531 the n_th value and count.
5532 (gimple_divmod_fixed_value_transform): Use
5533 get_nth_most_common_value.
5534 (gimple_ic_transform): Likewise.
5535 (gimple_stringops_transform): Likewise.
5536 * value-prof.h (get_most_common_single_value): Add input params
5539 2019-07-25 Richard Biener <rguenther@suse.de>
5541 PR tree-optimization/91236
5542 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
5543 size of CONSTRUCTOR write. Fix buffer size we pass to
5546 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5548 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
5549 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
5552 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5554 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
5555 explicitly disabled with --disable-initfini-array.
5557 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5559 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
5562 2019-07-24 Martin Sebor <msebor@redhat.com>
5564 PR tree-optimization/91183
5565 PR tree-optimization/86688
5566 * builtins.c (compute_objsize): Handle MEM_REF.
5567 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
5568 (get_min_string_length): Remove.
5569 (count_nonzero_bytes): New function.
5570 (handle_char_store): Rename...
5571 (handle_store): to this. Handle multibyte stores via integer types.
5572 (strlen_check_and_optimize_stmt): Adjust conditional and the called
5575 2019-07-24 Martin Sebor <msebor@redhat.com>
5578 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
5579 (diagnostic_report_diagnostic): Same.
5580 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
5581 (diagnostic_context::lang_mask): New data member.
5582 * ipa-pure-const.c (suggest_attribute): Use
5583 lang_hooks.option_lang_mask ().
5584 * opts-common.c (option_enabled): Handle new argument.
5585 (get_option_state): Pass an additional argument.
5586 * opts.c (print_filtered_help): Print supported languages for
5587 unsupported options. Adjust printing of current state.
5588 * opts.h (option_enabled): Add argument.
5589 * toplev.c (print_switch_values): Use lang_mask.
5590 (general_init): Set global_dc->lang_mask.
5592 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
5595 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
5597 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
5599 * cgraphunit.c (symbol_table::compile): Start and stop
5600 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
5601 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
5603 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
5605 * gimplify.c (flag_instrument_functions_exclude_p): Include
5606 namespace/class information in the printable name.
5607 * opts.c (add_comma_separated_to_vector): Add NUL terminator
5608 to tokens entered into the vector.
5610 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
5612 * tree-nested.c (build_simple_mem_ref_notrap): New function.
5613 (get_static_chain): Call it instead of build_simple_mem_ref.
5614 (get_frame_field): Likewise.
5615 (get_nonlocal_debug_decl): Likewise.
5616 (convert_nonlocal_reference_op): Likewise.
5618 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
5620 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
5622 (arc_compute_frame_size): Millicode is disabled when compiling
5624 (arc_return_address_register): Likewise.
5625 (arc_compute_function_type): Likewise.
5626 (arc_compute_frame_size): Likewise.
5627 (secondary_reload_info): Likewise.
5628 (arc_get_unalign): Likewise.
5629 (arc_can_use_return_insn): Declare.
5630 * config/arc/arc.c (AUX_LP_START): Define
5631 (AUX_LP_END): Likewise.
5632 (arc_frame_info): Update gmask member to 64-bit datum.
5633 (GMASK_LEN): Update.
5634 (arc_compute_function_type): Make it static, move it forward.
5635 (arc_must_save_register): Update, consider the extra regs.
5636 (arc_compute_millicode_save_restore_regs): Update to use the 64
5638 (arc_compute_frame_size): Likewise.
5639 (arc_enter_leave_p): Likewise.
5640 (arc_save_callee_saves): Likewise.
5641 (arc_restore_callee_saves): Likewise.
5642 (arc_save_callee_enter): Likewise.
5643 (arc_restore_callee_leave): Likewise.
5644 (arc_save_callee_milli): Likewise.
5645 (arc_restore_callee_milli): Likewise.
5646 (arc_expand_prologue): Add new interrupt handling.
5647 (arc_return_address_register): Make it static, move it forward.
5648 (arc_expand_epilogue): Add new interrupt handling.
5649 (arc_get_unalign): Delete.
5650 (arc_epilogue_uses): Make sure we do not remove the extra
5651 saved/restored registers when interrupt.
5652 (arc_can_use_return_insn): New function.
5653 (push_reg): Likewise.
5654 (pop_reg): Likewise.
5655 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
5657 (arc_restore_callee_saves): Likewise, but restoring.
5658 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
5659 (R33_REG): Likewise.
5660 (R34_REG): Likewise.
5661 (R35_REG): Likewise.
5662 (R36_REG): Likewise.
5663 (R37_REG): Likewise.
5664 (R38_REG): Likewise.
5665 (R39_REG): Likewise.
5666 (R45_REG): Likewise.
5667 (R46_REG): Likewise.
5668 (R47_REG): Likewise.
5669 (R48_REG): Likewise.
5670 (R49_REG): Likewise.
5671 (R50_REG): Likewise.
5672 (R51_REG): Likewise.
5673 (R52_REG): Likewise.
5674 (R53_REG): Likewise.
5675 (R54_REG): Likewise.
5676 (R55_REG): Likewise.
5677 (R56_REG): Likewise.
5678 (R58_REG): Likewise.
5679 (type): Add rtie attribute.
5680 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
5681 (movsi_insn): Accept moves to lp_count.
5682 (rtie): Update pattern.
5683 (simple_return): Simplify it, don't use this pattern as a return
5685 (arc600_rtie): New pattern.
5686 (p_return_i): Clean up.
5688 * config/arc/builtins.def (rtie): Only available for non ARC6xx
5690 * config/arc/predicates.md (move_src_operand): Consider lp_count
5693 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
5695 * config/s390/predicates.md (addv_const_operand): New predicate.
5696 * config/s390/s390-modes.def (CCO): New condition code mode.
5697 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
5698 (s390_branch_condition_mask): Likewise.
5699 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
5700 ("mulv<mode>4"): New expanders.
5701 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
5702 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
5703 pattern definitions.
5705 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5708 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
5709 (define_predicates): Add entry for uniform_vector_p.
5710 (vec_same_elem_p): New match pattern.
5712 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
5715 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
5716 * config/i386/darwin32-biarch.h .. to here.
5717 * config/i386/darwin64-biarch.h: Adjust comments.
5718 * config/rs6000/darwin32-biarch.h: Likewise.
5719 * config/rs6000/darwin64-biarch.h: Likewise.
5720 * config.gcc: Missed commit from r273746
5721 (*-*-darwin*): Don't include CPU t-darwin here.
5722 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
5723 an error message if i686-darwin configuration is attempted for
5726 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
5729 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
5730 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
5731 an error message if i686-darwin configuration is attempted for
5733 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
5734 (powerpc-*-darwin*): Use biarch files where needed.
5735 (powerpc64-*-darwin*): Likewise.
5736 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
5737 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
5739 * config/i386/darwin32-biarch.h: New.
5740 * config/i386/darwin64.h: Rename.
5741 * config/i386/darwin64-biarch.h: To this.
5742 * config/i386/t-darwin: Rename.
5743 * config/i386/t-darwin32-biarch: To this.
5744 * config/i386/t-darwin64: Rename.
5745 * config/i386/t-darwin64-biarch: To this.
5746 * config/rs6000/darwin32-biarch.h: New.
5747 * config/rs6000/darwin64.h: Rename.
5748 * config/rs6000/darwin64-biarch.h: To this.
5749 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
5751 * config/rs6000/t-darwin8: Rename.
5752 * config/rs6000/t-darwin32-biarch: To this.
5753 * config/rs6000/t-darwin64 Rename.
5754 * config/rs6000/t-darwin64-biarch: To this.
5756 2019-07-23 Martin Sebor <msebor@redhat.com>
5758 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
5760 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
5762 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
5763 (rh): New alias for it.
5765 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
5767 * gdbhooks.py: Pass replace=True to
5768 gdb.printing.register_pretty_printer.
5770 2019-07-23 Richard Biener <rguenther@suse.de>
5773 * lto-streamer-in.c (input_function): Drop inline-entry markers
5774 that ended up with an unknown location block.
5776 2019-07-23 Richard Biener <rguenther@suse.de>
5778 PR tree-optimization/83518
5779 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
5780 init from a constant even when partial defs are already recorded.
5782 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
5784 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
5785 * config/i386/znver1.md: Enable patterns for znver2 and add store
5786 variants which use extra AGU unit.
5788 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
5790 * config/i386/i386-options.c (ix86_option_override_internal): Default
5791 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
5792 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
5795 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
5797 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
5798 (znver2_costs): Update 256 bit SSE costs and multiplication.
5800 2019-07-23 Jan Beulich <jbeulich@suse.com>
5802 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
5803 Require only AVX512F.
5804 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
5805 alternative expanding to vpternlog.
5807 2019-07-23 Martin Liska <mliska@suse.cz>
5809 * dwarf2out.c (gen_producer_string): Canonize -flto=N
5810 to -flto in dwarf producer string.
5812 2019-07-23 Richard Biener <rguenther@suse.de>
5814 * tree-cfg.c (label_for_bb): Remove global var.
5815 (main_block_label): Take label_for_bb as argument.
5816 (cleanup_dead_labels_eh): Likewise, adjust.
5817 (cleanup_dead_labels): Adjust.
5819 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
5821 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
5822 Configurations): Add documentation for __builtin_mtfsf.
5824 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
5826 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
5827 * config/riscv/riscv.c (riscv_constant_alignment): Use
5828 riscv_align_data_type.
5829 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
5830 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
5831 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
5832 * config/riscv/riscv.opt (malign-data): New.
5833 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
5835 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
5837 * cgraph.c (dump_graphviz): New function.
5838 * cgraph.h (dump_graphviz): New function.
5839 * symtab.c (dump_graphviz): New function.
5841 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
5843 * config/aarch64/aarch64-simd.md
5844 (*aarch64_simd_sra<mode>): New.
5845 * config/aarch64/iterators.md
5846 (SHIFTRT): New iterator.
5847 (sra_op): New attribute.
5849 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5851 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
5852 callee-saved regs R4->R10 in an interrupt function that calls another
5855 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
5857 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
5858 (_mm_blendv_epi8): New.
5860 2019-07-22 Richard Biener <rguenther@suse.de>
5862 PR tree-optimization/91221
5863 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
5864 restrict partial-def handling of empty constructors and
5865 memset to refs with known offset.
5867 2019-07-22 Jan Beulich <jbeulich@suse.com>
5869 * config/i386/sse.md (ternlogsuffix): New.
5870 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
5872 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
5874 2019-07-22 Martin Liska <mliska@suse.cz>
5876 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
5878 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
5880 2019-07-22 Martin Liska <mliska@suse.cz>
5882 * lto-section-in.c (lto_get_section_data):
5883 Use new function get_compression.
5884 * lto-streamer-out.c (produce_lto_section): Use
5885 set_compression to encode compression algorithm.
5886 * lto-streamer.h (struct lto_section): Do not
5887 use bitfields in the format.
5889 2019-07-22 Martin Liska <mliska@suse.cz>
5892 * opts-common.c (decode_cmdline_option): Decode
5893 argument of -Werror and check it for a wrong language.
5894 * opts-global.c (complain_wrong_lang): Remove such case.
5896 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
5898 * config/arc/arc.c (prepare_move_operands): Always use an
5899 intermediate register when storing a TLS symbols.
5901 2019-07-22 Stafford Horne <shorne@gmail.com>
5903 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
5906 2019-07-22 Stafford Horne <shorne@gmail.com>
5908 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
5909 and munordered-float validations.
5910 * config/or1k/constraints.md (d): New register constraint.
5911 * config/or1k/predicates.md (fp_comparison_operator): New.
5912 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
5914 (or1k_expand_compare): Normalize unordered comparisons.
5915 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
5916 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
5917 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
5918 * config/or1k/or1k.md (type): Add fpu.
5919 (fpu): New instruction reservation.
5920 (F, f, fr, fi, FI, FOP, fop): New.
5921 (<fop><F:mode>3): New ALU instruction definition.
5922 (float<fi><F:mode>2): New conversion instruction definition.
5923 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
5924 (fpcmpcc): New code iterator.
5925 (*sf_fp_insn): New instruction definition.
5926 (cstore<F:mode>4): New expand definition.
5927 (cbranch<F:mode>4): New expand definition.
5928 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
5929 munordered-float): New options.
5930 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
5933 2019-07-22 Stafford Horne <shorne@gmail.com>
5935 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
5936 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
5937 documenation to be more clear.
5938 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
5940 * config/or1k/or1k.opt (mrori): New option.
5941 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
5942 msfimm, mshftimm): Rewrite documentation to be more clear.
5943 * config/or1k/or1k.md (insn_support): Add ror and rori.
5944 (enabled): Add conditions for ror and rori.
5945 (rotrsi3): Replace condition for shftimm with ror and rori.
5947 2019-07-22 Stafford Horne <shorne@gmail.com>
5950 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
5951 (extend<mode>si2): Update predicate.
5952 * config/or1k/predicates.md (volatile_mem_operand): New.
5953 (reg_or_mem_operand): New.
5955 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
5957 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
5958 * config/rs6000/rs6000-call.c: ... to here.
5960 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
5962 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
5965 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
5967 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
5969 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
5971 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
5973 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
5975 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
5976 (any_memory_operand): New predicate.
5977 (reg_or_mem_operand): Use it.
5979 2019-07-20 Jakub Jelinek <jakub@redhat.com>
5982 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
5984 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
5986 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
5987 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
5989 2019-07-20 Jakub Jelinek <jakub@redhat.com>
5991 * tree.def (OMP_LOOP): New tree code.
5992 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
5993 (enum omp_clause_bind_kind): New enum.
5994 (struct tree_omp_clause): Add subcode.bind_kind.
5995 * tree.h (OMP_LOOP_CHECK): Rename to ...
5996 (OMP_LOOPING_CHECK): ... this.
5997 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
5998 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
5999 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
6000 (OMP_CLAUSE_BIND_KIND): Define.
6001 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
6002 bind clause entries.
6003 (walk_tree_1): Handle OMP_CLAUSE_BIND.
6004 * tree-pretty-print.c (dump_omp_clause): Likewise.
6005 (dump_generic_node): Handle OMP_LOOP.
6006 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
6007 (in_omp_construct): New variable.
6008 (is_gimple_stmt): Handle OMP_LOOP.
6009 (gimplify_scan_omp_clauses): For lastprivate don't set
6010 check_non_private if code == OMP_LOOP. For reduction clause
6011 on OMP_LOOP combined with parallel or teams propagate as shared
6012 on the combined construct. Handle OMP_CLAUSE_BIND.
6013 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
6014 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
6015 for constructs from a loop construct to gimplify_scan_omp_clauses.
6016 Don't predetermine iterator linear on OMP_SIMD from loop construct.
6017 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
6018 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
6019 to match the implicit ORT_TARGET construct around whole body.
6020 Temporarily clear in_omp_construct when processing body.
6021 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
6022 etc. temporarily set in_omp_construct when processing body.
6023 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
6024 * omp-low.c (struct omp_context): Add loop_p.
6025 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
6026 in that the original var might be private.
6027 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
6028 (check_omp_nesting_restrictions): Adjust nesting restrictions for
6029 addition of loop construct.
6030 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
6032 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
6033 lastprivate non-addressable iterator of a collapse(1) simd.
6035 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
6037 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
6040 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
6042 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
6043 refer to default conditions. Warn for the 'y' spec which is ignored
6046 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
6048 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
6049 cpu_supports_info, builtin_hash_struct, builtin_hasher,
6050 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
6051 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
6052 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
6053 init_cumulative_args, rs6000_promote_function_mode,
6054 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
6055 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
6056 rs6000_function_arg_boundary, rs6000_parm_offset,
6057 rs6000_parm_start, rs6000_arg_size,
6058 rs6000_darwin64_record_arg_advance_flush,
6059 rs6000_darwin64_record_arg_advance_recurse,
6060 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
6061 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
6062 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
6063 rs6000_mixed_function_arg, rs6000_psave_function_arg,
6064 rs6000_finish_function_arg, rs6000_function_arg,
6065 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
6066 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
6067 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
6068 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
6069 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
6070 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
6071 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
6072 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
6073 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
6074 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
6075 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
6076 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
6077 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
6078 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
6079 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
6080 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
6081 get_element_number, altivec_expand_vec_set_builtin,
6082 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
6083 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
6084 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
6085 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
6086 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
6087 rs6000_expand_builtin, rs6000_vector_type,
6088 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
6089 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
6090 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
6092 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
6093 cpu_supports_info, builtin_hash_struct, builtin_hasher,
6094 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
6095 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
6096 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
6097 init_cumulative_args, rs6000_promote_function_mode,
6098 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
6099 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
6100 rs6000_function_arg_boundary, rs6000_parm_offset,
6101 rs6000_parm_start, rs6000_arg_size,
6102 rs6000_darwin64_record_arg_advance_flush,
6103 rs6000_darwin64_record_arg_advance_recurse,
6104 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
6105 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
6106 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
6107 rs6000_mixed_function_arg, rs6000_psave_function_arg,
6108 rs6000_finish_function_arg, rs6000_function_arg,
6109 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
6110 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
6111 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
6112 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
6113 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
6114 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
6115 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
6116 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
6117 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
6118 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
6119 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
6120 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
6121 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
6122 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
6123 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
6124 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
6125 get_element_number, altivec_expand_vec_set_builtin,
6126 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
6127 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
6128 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
6129 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
6130 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
6131 rs6000_expand_builtin, rs6000_vector_type,
6132 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
6133 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
6134 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
6135 to here from rs6000.c.
6136 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
6137 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
6138 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
6139 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
6140 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
6141 rs6000_return_in_memory, rs6000_return_in_msb,
6142 rs6000_pass_by_reference, setup_incoming_varargs,
6143 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
6144 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
6145 rs6000_function_arg_padding, rs6000_function_arg,
6146 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
6147 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
6148 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
6149 rs6000_passes_long_double, rs6000_passes_vector,
6150 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
6151 altivec_builtin_mask_for_load) Add declarations.
6152 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
6153 * config/config.gcc: Add new source file rs6000-call.c to garbage
6154 collector and extra_objs.
6156 2019-07-19 Jeff Law <law@redhat.com>
6158 PR tree-optimization/86061
6159 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
6160 strncpy. Drop some trivial dead code.
6161 (maybe_trim_memstar_call): Handle strncpy.
6163 2019-07-19 Richard Biener <rguenther@suse.de>
6165 PR tree-optimization/91211
6166 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
6167 memset encoding size.
6169 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
6172 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
6174 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
6177 * ipa-inline.c (recursive_inlining): Fix limits check.
6179 2019-07-19 Richard Biener <rguenther@suse.de>
6181 PR tree-optimization/91200
6182 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
6183 no PHI nodes in middle-bb.
6185 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
6187 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
6189 * config/aarch64/aarch64-option-extensions.def: Likewise.
6191 2019-07-19 Jakub Jelinek <jakub@redhat.com>
6194 * function.c (insert_temp_slot_address): Store into the hash table
6195 a copy of address to avoid RTL sharing issues.
6197 2019-07-19 Richard Biener <rguenther@suse.de>
6199 PR tree-optimization/91207
6201 2019-07-17 Richard Biener <rguenther@suse.de>
6203 PR tree-optimization/91178
6204 * tree-vect-stmts.c (get_group_load_store_type): For SLP
6205 loads with a gap larger than the vector size always use
6207 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
6208 avoid loading vectors that are only contained in the gap
6209 and thus are not needed.
6211 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
6213 * config/i386/i386.md (*addqi_2_slp): Remove.
6214 (*<code>qi_2_slp): Ditto.
6216 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
6218 * config/rs6000/predicates.md (prefixed_mem_operand): Call
6219 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
6220 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
6221 Rename function from rs6000_prefixed_address.
6222 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
6224 (TARGET_TOC): Likewise.
6225 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
6227 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
6229 (TARGET_TOC): Likewise.
6230 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
6232 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
6234 (TARGET_TOC): Likewise.
6235 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6236 check to require -mcmodel=medium for pc-relative addressing.
6237 (create_TOC_reference): Add assertion for TARGET_TOC.
6238 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
6240 (rs6000_emit_move): Likewise.
6241 (TOC_alias_set): Rename TOC alias set static variable from 'set'
6243 (get_TOC_alias_set): Likewise.
6244 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
6246 (rs6000_can_eliminate): Likewise.
6247 (rs6000_prefixed_address_mode_p): Rename function from
6248 rs6000_prefixed_address.
6249 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
6250 TARGET_HAS_TOC and not pc-relative.
6251 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
6252 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
6254 (TARGET_TOC): Likewise.
6255 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
6258 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
6261 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
6262 for operand 0. Do not use (match_dup) to match operand 1 with
6263 operand 0. Add check in insn constraint that either input operand
6264 matches operand 0. Use SWI12 mode iterator to also handle
6266 (*and<mode>_1_slp): Ditto.
6267 (*<code>qi_1_slp): Ditto.
6268 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
6269 Do not use (match_dup) to match operand 1 with operand 0. Add
6270 check in insn constraint that operand 1 matches operand 0.
6271 Use SWI12 mode iterator to also handle HImode operands.
6272 (*ashl<mode>3_1_slp): Ditto.
6273 (*<shift_insn><mode>3_1_slp): Ditto.
6274 (*<rotate_insn><mode>3_1_slp): Ditto.
6276 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
6278 * config/arm/arm-builtins.c
6279 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
6280 (arm_expand_unop_builtin): Likewise.
6281 * config/arm/crypto.md
6282 (crypto_sha1h): Convert from define_insn to define_expand.
6283 (crypto_<crypto_pattern>): Likewise.
6284 (crypto_sha1h_lb): New define_insn.
6285 (crypto_<crypto_pattern>_lb): Likewise.
6287 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
6290 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
6291 (vsha1cq_u32): Likewise.
6292 (vsha1pq_u32): Likewise.
6293 (vsha1mq_u32): Likewise.
6294 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
6296 (crypto_sha1c): Correct vec select.
6297 (crypto_sha1m): Likewise.
6298 (crypto_sha1p): Likewise.
6300 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
6302 * config/arm/predicates.md (arm_borrow_operation): New predicate.
6303 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
6304 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
6305 (subdi_zesidi_zesidi): Likewise.
6306 (negdi2_compare, negdi2_insn): Likewise.
6307 (negdi_extensidi): Likewise.
6308 (negdi_zero_extendsidi): Likewise.
6309 (arm_cmpdi_insn): Likewise.
6310 (subsi3_carryin): Use arm_borrow_operation.
6311 (subsi3_carryin_const): Likewise.
6312 (subsi3_carryin_const0): Likewise.
6313 (subsi3_carryin_compare): Likewise.
6314 (subsi3_carryin_compare_const): Likewise.
6315 (subsi3_carryin_compare_const0): Likewise.
6316 (subsi3_carryin_shift): Likewise.
6317 (rsbsi3_carryin_shift): Likewise.
6318 (negsi2_carryin_compare): Likewise.
6320 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
6322 PR tree-optimization/91137
6323 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
6324 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
6325 Init, use and fini the above new field.
6326 (determine_base_object_1): New function.
6327 (determine_base_object): Reimplement using walk_tree.
6329 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
6331 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
6332 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
6333 CLEANUP_FORCE_FAST_DCE is set.
6334 * ifcvt.c (rest_of_handle_if_conversion): Pass
6335 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
6336 if-conversion succeeded.
6338 2019-07-18 Richard Biener <rguenther@suse.de>
6340 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
6341 branches to make code less indented.
6343 2019-07-17 Alexandre Oliva <oliva@adacore.com>
6346 * attribs.c (decls_mismatched_attributes): Simplify the logic
6347 that avoids duplicates and false positives.
6349 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
6351 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
6352 data into data section when generating PIC code.
6353 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
6354 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
6355 generating code for SOM targets earlier than HP-UX 11. Otherwise,
6356 return 2 for SOM and 0 for other targets.
6358 2019-07-17 Jeff Law <law@redhat.com>
6360 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
6361 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
6362 avoid unexpected switch statement fallthru.
6364 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
6366 * config/i386/i386.md (*add<dwi>3_doubleword):
6367 Remove redundant constraints.
6368 (*add<mode>_1): Ditto.
6371 (*addqi_1_slp): Ditto.
6372 (*add<mode>_2): Ditto.
6373 (*addv<mode>4): Ditto.
6374 (*sub<dwi>3_doubleword): Ditto.
6375 (*sub<mode>_1): Ditto.
6376 (*subqi_1_slp): Ditto.
6377 (*sub<mode>_2): Ditto.
6378 (*subv<mode>4): Ditto.
6379 (*sub<mode>_3): Ditto.
6380 (@add<mode>3_carry): Ditto.
6381 (@sub<mode>3_carry): Ditto.
6382 (*add<mode>3_cc_overflow_1): Ditto.
6383 (*add<mode>3_zext_cc_overflow_2): Ditto.
6385 (*and<mode>_1): Ditto.
6387 (*andqi_1_slp): Ditto.
6389 (*andqi_2_maybe_si): Ditto.
6390 (*and<mode>_2): Ditto.
6391 (*andqi_2_slp): Ditto.
6392 (*<code><mode>_1): Ditto.
6393 (*<code>qi_1): Ditto.
6394 (*<code>qi_1_slp): Ditto.
6395 (*<code><mode>_2): Ditto.
6396 (*<code>qi_2_slp): Ditto.
6398 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
6400 * alias.c (record_component_aliases): Do not simplify pointed-to
6403 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
6405 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
6406 partial reg stall on alternative 2.
6408 2019-07-17 Richard Biener <rguenther@suse.de>
6410 PR tree-optimization/91178
6411 * tree-ssa.c (release_defs_bitset): Iterate from higher to
6412 lower SSA names to avoid quadratic behavior in the common case.
6413 * tree-data-ref.c (split_constant_offset): Add limit argument
6414 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
6415 (split_constant_offset_1): Add limit argument and use it to
6416 limit SSA def walking. Optimize the common plus/minus case.
6418 2019-07-17 Richard Biener <rguenther@suse.de>
6420 PR tree-optimization/91178
6421 * tree-vect-stmts.c (get_group_load_store_type): For SLP
6422 loads with a gap larger than the vector size always use
6424 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
6425 avoid loading vectors that are only contained in the gap
6426 and thus are not needed.
6428 2019-07-17 Richard Biener <rguenther@suse.de>
6430 PR tree-optimization/91180
6431 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
6432 computation for memset partial defs.
6434 2019-07-17 Jakub Jelinek <jakub@redhat.com>
6436 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
6437 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
6438 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
6439 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
6440 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
6441 * omp-grid.c (grid_process_grid_body,
6442 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
6443 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
6444 == GF_OMP_FOR_KIND_SIMD.
6445 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
6446 check_omp_nesting_restrictions, scan_omp_1_stmt,
6447 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
6448 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
6449 omp_find_scan): Likewise.
6450 * omp-expand.c (expand_omp_for): Likewise.
6451 * omp-general.c (omp_extract_for_data): Likewise.
6453 PR tree-optimization/91157
6454 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
6455 a vector boolean with scalar mode.
6456 (expand_vector_condition): Handle first operand being a vector boolean
6458 (expand_vector_operations_1): For comparisons, don't bail out early
6459 if the return type is vector boolean with scalar mode, but comparison
6460 operand type is not.
6462 2019-07-17 Richard Biener <rguenther@suse.de>
6464 PR tree-optimization/91181
6465 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
6468 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
6470 * config/i386/i386.md (*testdi_1): Match CCZmode for
6471 constants that might have the SImode sign bit set.
6472 (*testqi_1_maybe_si): Remove "!" constraint modifier.
6473 Use correct constraints for pentium pairing.
6474 (*test<mode>_1): Ditto.
6476 2019-07-16 Jeff Law <law@redhat.com>
6478 PR rtl-optimization/91173
6479 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
6480 SSA_NAME with a constant value, fold its value into the offset
6481 and clear the base before calling gen_addr_rtx.
6483 2019-07-16 Jakub Jelinek <jakub@redhat.com>
6485 PR rtl-optimization/91164
6486 * dse.c (rest_of_handle_dse): If dead edges have been purged,
6487 invalidate dominance info.
6489 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
6491 * read-md.h (md_reader::record_potential_iterator_use): Add a
6492 file_location parameter.
6493 * read-rtl.c (attribute_use::loc): New field.
6494 (map_attr_string): Take a file_location parameter. Report cases
6495 in which attributes map to multiple distinct values.
6496 (apply_attribute_uses): Update call accordingly.
6497 (md_reader::handle_overloaded_name): Likewise.
6498 (md_reader::apply_iterator_to_string): Likewise. Skip empty
6500 (record_attribute_use): Take a file_location parameter.
6501 Initialize attribute_use::loc.
6502 (md_reader::record_potential_iterator_use): Take a file_location
6503 parameter. Update call to record_attribute_use.
6504 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
6505 (rtx_reader::read_rtx_code): Likewise.
6506 (rtx_reader::read_rtx_operand): Likewise. Record a location
6507 for implicitly-expanded empty strings.
6509 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
6511 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
6512 Use file_location instead of separate fields.
6513 (md_reader::set_md_ptr_loc): Take a file_location instead of a
6514 separate filename and line number.
6515 * read-md.c (ptr_loc): As above.
6516 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
6517 (md_reader::fprint_md_ptr_loc): Likewise.
6518 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
6519 instead of a separate filename and line number.
6520 (md_reader::read_string): Update call accordingly.
6522 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
6524 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
6525 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
6526 leaving the choice between SFDF and P implicit.
6527 (*mov<mode>_update2): Likewise.
6528 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
6529 rather than leaving the choice betweem IBM128 and GPR implicit.
6530 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
6531 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
6533 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
6534 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
6535 * config/rs6000/vsx.md
6536 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
6537 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
6538 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
6539 and VSX_EXTRACT_I implicit.
6541 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
6543 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
6544 Explicitly use <MOVEP1:MODE> for the mode attribute.
6546 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
6549 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
6551 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
6554 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
6557 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
6559 * config/i386/i386.md (@test<mode>_ccno_1):
6560 Rename from test<mode>_ccno_1.
6561 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
6562 (*testqi_1_maybe_si): Remove modrm attribute.
6563 (*test<mode>_1): Ditto.
6564 * config/i386/i386-expand.c (ix86_split_idivmod): Use
6565 gen_test_ccno_1 and gen_extend_insn.
6567 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
6569 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
6572 2019-07-15 Richard Biener <rguenther@suse.de>
6575 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
6576 node make sure to replace all uses with something valid.
6578 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
6580 PR tree-optimization/88497
6581 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
6582 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
6583 function undistribute_bitref_for_vector.
6584 (undistribute_bitref_for_vector): New function.
6585 (cleanup_vinfo_map): Likewise.
6586 (sort_by_mach_mode): Likewise.
6588 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
6590 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
6591 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
6592 and testdi_ccno_1 using SWI48 mode attribute.
6593 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
6594 x86_64_szext_general_operand.
6595 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
6596 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
6597 instead of genera_operand mode attribute.
6599 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
6601 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
6602 fopen and fclose to their respective types.
6603 (DotFn.invoke): Ditto.
6605 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
6607 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
6608 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
6609 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
6610 (array_index_predicate): Remove.
6611 (analyze_function_body): Account cost for variable ofsetted array
6613 (estimate_node_size_and_time): Do not compute array index hint.
6614 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
6615 (inline_read_section): Do not read array index hint.
6616 (ipa_fn_summary_write): Do not write array index hint.
6617 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
6618 * ipa-cp.c (hint_time_bonus): Remove.
6619 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
6620 (ipa_fnsummary): Remove array_index.
6621 * ipa-inline.c (want_inline_small_function_p): Do not use
6623 (edge_badness): Likewise.
6624 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
6626 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
6629 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
6630 superfluous "builtin function" phrasing.
6632 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
6634 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
6636 (aliasing_component_refs_walk): Break out from ...
6637 (aliasing_component_refs_p): ... here.
6639 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
6642 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
6643 "builtin function" phrasing.
6645 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6648 * recog.h (temporary_volatile_ok): New class.
6649 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
6650 volatile_ok temporarily to true using temporary_volatile_ok.
6651 * expr.c (emit_block_move_via_cpymem): Likewise.
6652 * optabs.c (maybe_legitimize_operand): Likewise.
6654 2019-07-13 Jakub Jelinek <jakub@redhat.com>
6656 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
6657 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
6658 uses inside of order(concurrent) constructs.
6659 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
6660 OMP_CLAUSE_ORDER is seen.
6661 * omp-low.c (struct omp_context): Add order_concurrent member.
6662 (scan_sharing_clauses): Set ctx->order_concurrent if
6663 OMP_CLAUSE_ORDER is seen.
6664 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
6665 of simd order(concurrent). Diagnose constructs not allowed inside of
6666 for order(concurrent).
6667 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
6668 complaining about static double setjmp (double); or class static
6669 methods or non-global namespace setjmps.
6670 (omp_runtime_api_call): New function.
6671 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
6672 order(concurrent) loops.
6674 2019-07-12 Martin Sebor <msebor@redhat.com>
6676 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
6677 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
6678 * tree-vrp.c (vrp_prop::check_mem_ref): Use
6679 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
6681 2019-07-12 Jan Hubicka <jh@suse.cz>
6683 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
6684 (indirect_refs_may_alias_p): ... here.
6685 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
6686 mem refs in the access paths.
6688 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
6690 PR tree-optimization/89430
6691 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
6692 store elimination for local variable without address escape.
6694 2019-07-12 Jeff Law <law@redhat.com>
6696 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
6697 for the ".far" section.
6699 2019-07-12 Richard Biener <rguenther@suse.de>
6701 PR tree-optimization/91145
6702 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
6705 2019-07-12 Alexandre Oliva <oliva@adacore.com>
6707 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
6708 rather than this_state as the lowering context for the ELSE
6709 seq in a GIMPLE_EH_ELSE.
6711 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
6713 * vector-builder.h (vector_builder::elt): Allow already-supplied
6714 elements to be read back before building is complete.
6716 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
6718 PR rtl-optimization/91136
6719 * df-core.c (ACCESSING REFS): Fix typos in comment.
6720 * resource.c (mark_target_live_reg): Add artificial defs that occur at
6721 the beginning of the block to the initial set of live registers.
6723 2019-07-12 Richard Biener <rguenther@suse.de>
6725 * fold-const.h (get_array_ctor_element_at_index): Adjust.
6726 * fold-const.c (get_array_ctor_element_at_index): Add
6727 ctor_idx output parameter informing the caller where in
6728 the constructor the element was (not) found. Add early exit
6729 for when the ctor is sorted.
6730 * gimple-fold.c (fold_array_ctor_reference): Support constant
6731 folding across multiple array elements.
6733 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
6735 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
6736 doesn't have location, set the current location to the function's end.
6738 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
6740 * config/aarch64/aarch64.md (*compare_condjump<mode>)
6741 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
6742 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
6743 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
6744 * config/aarch64/aarch64-simd.md
6745 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
6746 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
6747 * config/aarch64/aarch64-sve.md
6748 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
6749 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
6751 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
6753 * doc/md.texi: Document that @ patterns can have different
6754 numbers of operands.
6755 * genemit.c (handle_overloaded_gen): Handle this case.
6756 * genopinit.c (handle_overloaded_gen): Likewise.
6757 * gensupport.c (replace_operands_with_dups): Iterate over
6758 the new rtx's format rather than the old one's.
6760 2019-07-12 Jakub Jelinek <jakub@redhat.com>
6762 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
6763 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
6764 order clause entries.
6765 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
6766 * tree-pretty-print.c (dump_omp_clause): Likewise.
6767 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
6769 * omp-low.c (scan_sharing_clauses): Likewise.
6770 * tree-nested.c (convert_nonlocal_omp_clauses,
6771 convert_local_omp_clauses): Likewise.
6773 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
6775 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
6776 fallthrough target of current basic block isn't the placed
6779 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
6782 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
6783 (_mm512_storeu_epi64): Likewise.
6784 (_mm512_loadu_epi32): Likewise.
6785 (_mm512_storeu_epi32): Likewise.
6786 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
6787 (_mm_storeu_epi64): Likewise.
6788 (_mm256_storeu_epi32): Likewise.
6789 (_mm_storeu_epi32): Likewise.
6791 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
6793 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
6795 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
6797 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
6800 2019-07-11 Jakub Jelinek <jakub@redhat.com>
6803 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
6804 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
6805 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
6806 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
6807 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
6808 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
6810 (ufix_truncv2dfv2si2<mask_name>): Change into ...
6811 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
6812 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
6814 (sse2_cvttpd2dq<mask_name>): Change into ...
6815 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
6816 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
6817 (*sse2_cvtpd2dq<mask_name>): Change into ...
6818 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
6819 Add "C" constraint to const0_operand.
6820 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
6821 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
6825 * config/i386/i386-builtin-types.def
6826 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
6827 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
6828 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
6829 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
6830 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
6831 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
6832 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
6833 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
6834 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
6835 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
6836 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
6837 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
6838 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
6839 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
6840 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
6841 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
6842 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
6843 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
6844 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
6845 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
6846 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
6847 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
6848 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
6849 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
6850 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
6851 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
6852 __builtin_ia32_vpdpbusd_v4si_maskz,
6853 __builtin_ia32_vpdpbusds_v16si_mask,
6854 __builtin_ia32_vpdpbusds_v16si_maskz,
6855 __builtin_ia32_vpdpbusds_v8si_mask,
6856 __builtin_ia32_vpdpbusds_v8si_maskz,
6857 __builtin_ia32_vpdpbusds_v4si_mask,
6858 __builtin_ia32_vpdpbusds_v4si_maskz,
6859 __builtin_ia32_vpdpwssd_v16si_mask,
6860 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
6861 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
6862 __builtin_ia32_vpdpwssd_v4si_maskz,
6863 __builtin_ia32_vpdpwssds_v16si_mask,
6864 __builtin_ia32_vpdpwssds_v16si_maskz,
6865 __builtin_ia32_vpdpwssds_v8si_mask,
6866 __builtin_ia32_vpdpwssds_v8si_maskz,
6867 __builtin_ia32_vpdpwssds_v4si_mask,
6868 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
6869 suffixed types rather than *_INT.
6870 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
6871 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
6872 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
6873 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
6874 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
6875 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
6877 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
6879 * tree-vrp.c (intersect_ranges): If we know the intersection is
6880 empty, there is no need to conservatively add anything else to
6883 2019-07-11 Richard Biener <rguenther@suse.de>
6886 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
6887 when the object is volatile and we have not cleared it even though
6888 there are no nonzero elements.
6890 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
6892 * config/rs6000/predicates.md (cint34_operand): Update
6893 SIGNED_34BIT_OFFSET_P call.
6894 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
6895 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
6896 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
6897 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
6898 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
6900 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
6901 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
6902 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
6903 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
6904 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
6906 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
6908 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
6909 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
6910 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
6911 (DEF_MIN_OSX_VERSION): New.
6913 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
6915 * fold-const.c (fold_relational_const): Fix folding of
6916 vector-to-scalar NE_EXPRs.
6917 (test_vector_folding): Add more tests.
6919 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
6922 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
6923 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
6924 (vec_setv2di_internal): Reexpress as...
6925 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
6926 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
6927 rather than gen_neon_vset_lane<mode>.
6929 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
6932 * lra-constraints.c (process_alt_operands): Don't match user
6933 defined regs only if they are early clobbers.
6935 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
6937 * wide-int.h (wi::lshift): Reject negative values for the fast path.
6939 2019-07-10 Richard Biener <rguenther@suse.de>
6941 PR tree-optimization/91126
6942 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
6943 native encoding offset for BYTES_BIG_ENDIAN.
6944 (vn_reference_lookup_3): Likewise.
6946 2019-07-10 Richard Biener <rguenther@suse.de>
6948 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
6949 LHS whenever possible.
6951 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
6953 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
6954 from ...; work also on duplicated types.
6955 (nonoverlapping_component_refs_since_match): ... here
6956 (ncr_type_uid): Break out from ...
6957 (ncr_compar): ... here; look for TYPE_UID of canonical type if
6959 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
6960 the types and nonoverlapping_component_refs_p_1 to disambiguate.
6962 2019-07-09 Martin Sebor <msebor@redhat.com>
6964 PR tree-optimization/90989
6965 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
6966 optimization to just single character stores.
6968 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
6970 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
6971 Swap operands only once.
6973 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
6975 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
6976 for both call instructions.
6978 2019-07-09 John Darrington <john@darrington.wattle.id.au>
6980 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
6981 rather than GET_MODE_BITSIZE to better handle partial integer modes.
6983 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
6985 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
6986 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
6987 function from rs6000-logue.c back to rs6000.c.
6988 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
6990 2019-07-09 Martin Sebor <msebor@redhat.com>
6993 * auto-profile.c: Change class-key of PODs to struct and others
6995 * basic-block.h: Same.
6996 * bitmap.c (bitmap_alloc): Same.
6998 * builtins.c (expand_builtin_prefetch): Same.
6999 (expand_builtin_interclass_mathfn): Same.
7000 (expand_builtin_strlen): Same.
7001 (expand_builtin_mempcpy_args): Same.
7002 (expand_cmpstr): Same.
7003 (expand_builtin___clear_cache): Same.
7004 (expand_ifn_atomic_bit_test_and): Same.
7005 (expand_builtin_thread_pointer): Same.
7006 (expand_builtin_set_thread_pointer): Same.
7007 * caller-save.c (setup_save_areas): Same.
7008 (replace_reg_with_saved_mem): Same.
7009 (insert_restore): Same.
7010 (insert_save): Same.
7011 (add_used_regs): Same.
7012 * cfg.c (get_bb_copy): Same.
7013 (set_loop_copy): Same.
7016 * cfgexpand.c (alloc_stack_frame_space): Same.
7017 (add_stack_var): Same.
7018 (add_stack_var_conflict): Same.
7019 (add_scope_conflicts_1): Same.
7020 (update_alias_info_with_stack_vars): Same.
7021 (expand_used_vars): Same.
7022 * cfghooks.c (redirect_edge_and_branch_force): Same.
7023 (delete_basic_block): Same.
7025 (make_forwarder_block): Same.
7026 (force_nonfallthru): Same.
7027 (duplicate_block): Same.
7028 (lv_flush_pending_stmts): Same.
7030 * cfgloop.c (flow_loops_cfg_dump): Same.
7031 (flow_loop_nested_p): Same.
7032 (superloop_at_depth): Same.
7033 (get_loop_latch_edges): Same.
7034 (flow_loop_dump): Same.
7035 (flow_loops_dump): Same.
7036 (flow_loops_free): Same.
7037 (flow_loop_nodes_find): Same.
7038 (establish_preds): Same.
7039 (flow_loop_tree_node_add): Same.
7040 (flow_loop_tree_node_remove): Same.
7041 (flow_loops_find): Same.
7042 (find_subloop_latch_edge_by_profile): Same.
7043 (find_subloop_latch_edge_by_ivs): Same.
7044 (mfb_redirect_edges_in_set): Same.
7045 (form_subloop): Same.
7046 (merge_latch_edges): Same.
7047 (disambiguate_multiple_latches): Same.
7048 (disambiguate_loops_with_multiple_latches): Same.
7049 (flow_bb_inside_loop_p): Same.
7051 (get_loop_body_with_size): Same.
7052 (get_loop_body): Same.
7053 (fill_sons_in_loop): Same.
7054 (get_loop_body_in_dom_order): Same.
7055 (get_loop_body_in_custom_order): Same.
7056 (release_recorded_exits): Same.
7057 (get_loop_exit_edges): Same.
7058 (num_loop_branches): Same.
7059 (remove_bb_from_loops): Same.
7060 (find_common_loop): Same.
7061 (delete_loop): Same.
7062 (cancel_loop): Same.
7063 (verify_loop_structure): Same.
7064 (loop_preheader_edge): Same.
7065 (loop_exit_edge_p): Same.
7066 (single_exit): Same.
7067 (loop_exits_to_bb_p): Same.
7068 (loop_exits_from_bb_p): Same.
7069 (get_loop_location): Same.
7070 (record_niter_bound): Same.
7071 (get_estimated_loop_iterations_int): Same.
7072 (max_stmt_executions_int): Same.
7073 (likely_max_stmt_executions_int): Same.
7074 (get_estimated_loop_iterations): Same.
7075 (get_max_loop_iterations): Same.
7076 (get_max_loop_iterations_int): Same.
7077 (get_likely_max_loop_iterations): Same.
7078 * cfgloop.h (simple_loop_desc): Same.
7082 (loop_iterator::next): Same.
7083 (loop_outermost): Same.
7084 * cfgloopanal.c (mark_irreducible_loops): Same.
7085 (num_loop_insns): Same.
7086 (average_num_loop_insns): Same.
7087 (expected_loop_iterations_unbounded): Same.
7088 (expected_loop_iterations): Same.
7089 (mark_loop_exit_edges): Same.
7090 (single_likely_exit): Same.
7091 * cfgloopmanip.c (fix_bb_placement): Same.
7092 (fix_bb_placements): Same.
7093 (remove_path): Same.
7094 (place_new_loop): Same.
7096 (scale_loop_frequencies): Same.
7097 (scale_loop_profile): Same.
7098 (create_empty_if_region_on_edge): Same.
7099 (create_empty_loop_on_edge): Same.
7102 (fix_loop_placements): Same.
7103 (copy_loop_info): Same.
7104 (duplicate_loop): Same.
7105 (duplicate_subloops): Same.
7106 (loop_redirect_edge): Same.
7107 (can_duplicate_loop_p): Same.
7108 (duplicate_loop_to_header_edge): Same.
7109 (mfb_keep_just): Same.
7110 (has_preds_from_loop): Same.
7111 (create_preheader): Same.
7112 (create_preheaders): Same.
7113 (lv_adjust_loop_entry_edge): Same.
7114 (loop_version): Same.
7115 * cfgloopmanip.h: Same.
7117 * cgraphbuild.c: Same.
7118 * combine.c (make_extraction): Same.
7119 * config/i386/i386-features.c: Same.
7120 * config/i386/i386-features.h: Same.
7121 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
7122 (ix86_emit_outlined_ms2sysv_restore): Same.
7123 (ix86_noce_conversion_profitable_p): Same.
7124 (ix86_init_cost): Same.
7125 (ix86_simd_clone_usable): Same.
7126 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
7128 * coretypes.h: Same.
7129 * data-streamer-in.c (string_for_index): Change class-key of PODs
7130 to struct and others to class.
7131 (streamer_read_indexed_string): Same.
7132 (streamer_read_string): Same.
7133 (bp_unpack_indexed_string): Same.
7134 (bp_unpack_string): Same.
7135 (streamer_read_uhwi): Same.
7136 (streamer_read_hwi): Same.
7137 (streamer_read_gcov_count): Same.
7138 (streamer_read_wide_int): Same.
7139 * data-streamer.h (streamer_write_bitpack): Same.
7140 (bp_unpack_value): Same.
7141 (streamer_write_char_stream): Same.
7142 (streamer_write_hwi_in_range): Same.
7143 (streamer_write_record_start): Same.
7144 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
7145 (add_cross_iteration_register_deps): Same.
7146 (build_intra_loop_deps): Same.
7147 * df-core.c (df_analyze): Same.
7148 (loop_post_order_compute): Same.
7149 (loop_inverted_post_order_compute): Same.
7150 * df-problems.c (df_rd_alloc): Same.
7151 (df_rd_simulate_one_insn): Same.
7152 (df_rd_local_compute): Same.
7153 (df_rd_init_solution): Same.
7154 (df_rd_confluence_n): Same.
7155 (df_rd_transfer_function): Same.
7157 (df_rd_dump_defs_set): Same.
7158 (df_rd_top_dump): Same.
7159 (df_lr_alloc): Same.
7160 (df_lr_reset): Same.
7161 (df_lr_local_compute): Same.
7163 (df_lr_confluence_n): Same.
7165 (df_lr_top_dump): Same.
7166 (df_lr_verify_transfer_functions): Same.
7167 (df_live_alloc): Same.
7168 (df_live_reset): Same.
7169 (df_live_init): Same.
7170 (df_live_confluence_n): Same.
7171 (df_live_finalize): Same.
7172 (df_live_free): Same.
7173 (df_live_top_dump): Same.
7174 (df_live_verify_transfer_functions): Same.
7175 (df_mir_alloc): Same.
7176 (df_mir_reset): Same.
7177 (df_mir_init): Same.
7178 (df_mir_confluence_n): Same.
7179 (df_mir_free): Same.
7180 (df_mir_top_dump): Same.
7181 (df_word_lr_alloc): Same.
7182 (df_word_lr_reset): Same.
7183 (df_word_lr_init): Same.
7184 (df_word_lr_confluence_n): Same.
7185 (df_word_lr_free): Same.
7186 (df_word_lr_top_dump): Same.
7187 (df_md_alloc): Same.
7188 (df_md_simulate_one_insn): Same.
7189 (df_md_reset): Same.
7192 (df_md_top_dump): Same.
7193 * df-scan.c (df_insn_delete): Same.
7194 (df_insn_rescan): Same.
7195 (df_notes_rescan): Same.
7196 (df_sort_and_compress_mws): Same.
7197 (df_install_mws): Same.
7198 (df_refs_add_to_chains): Same.
7199 (df_ref_create_structure): Same.
7200 (df_ref_record): Same.
7201 (df_def_record_1): Same.
7202 (df_find_hard_reg_defs): Same.
7203 (df_uses_record): Same.
7204 (df_get_conditional_uses): Same.
7205 (df_get_call_refs): Same.
7206 (df_recompute_luids): Same.
7207 (df_get_entry_block_def_set): Same.
7208 (df_entry_block_defs_collect): Same.
7209 (df_get_exit_block_use_set): Same.
7210 (df_exit_block_uses_collect): Same.
7211 (df_mws_verify): Same.
7212 (df_bb_verify): Same.
7213 * df.h (df_scan_get_bb_info): Same.
7214 * doc/tm.texi: Same.
7215 * dse.c (record_store): Same.
7217 * emit-rtl.c (const_fixed_hasher::equal): Same.
7218 (set_mem_attributes_minus_bitpos): Same.
7219 (change_address): Same.
7220 (adjust_address_1): Same.
7221 (offset_address): Same.
7223 * except.c (dw2_build_landing_pads): Same.
7224 (sjlj_emit_dispatch_table): Same.
7225 * explow.c (allocate_dynamic_stack_space): Same.
7226 (emit_stack_probe): Same.
7227 (probe_stack_range): Same.
7228 * expmed.c (store_bit_field_using_insv): Same.
7229 (store_bit_field_1): Same.
7230 (store_integral_bit_field): Same.
7231 (extract_bit_field_using_extv): Same.
7232 (extract_bit_field_1): Same.
7233 (emit_cstore): Same.
7234 * expr.c (emit_block_move_via_cpymem): Same.
7235 (expand_cmpstrn_or_cmpmem): Same.
7236 (set_storage_via_setmem): Same.
7237 (emit_single_push_insn_1): Same.
7238 (expand_assignment): Same.
7239 (store_constructor): Same.
7240 (expand_expr_real_2): Same.
7241 (expand_expr_real_1): Same.
7244 * function.c (try_fit_stack_local): Same.
7245 (assign_stack_local_1): Same.
7246 (assign_stack_local): Same.
7247 (cut_slot_from_list): Same.
7248 (insert_slot_to_list): Same.
7249 (max_slot_level): Same.
7250 (move_slot_to_level): Same.
7251 (temp_address_hasher::equal): Same.
7252 (remove_unused_temp_slot_addresses): Same.
7253 (assign_temp): Same.
7254 (combine_temp_slots): Same.
7255 (update_temp_slot_address): Same.
7256 (preserve_temp_slots): Same.
7259 * gcc-rich-location.h: Same.
7261 * genattrtab.c (check_attr_test): Same.
7262 (check_attr_value): Same.
7263 (convert_set_attr_alternative): Same.
7264 (convert_set_attr): Same.
7266 (copy_boolean): Same.
7267 (get_attr_value): Same.
7268 (expand_delays): Same.
7269 (make_length_attrs): Same.
7271 (make_alternative_compare): Same.
7272 (simplify_test_exp): Same.
7273 (tests_attr_p): Same.
7274 (get_attr_order): Same.
7275 (clear_struct_flag): Same.
7277 (compares_alternatives_p): Same.
7280 (find_attrs_to_cache): Same.
7281 (write_test_expr): Same.
7282 (walk_attr_value): Same.
7283 (write_attr_get): Same.
7284 (eliminate_known_true): Same.
7285 (write_insn_cases): Same.
7286 (write_attr_case): Same.
7287 (write_attr_valueq): Same.
7288 (write_attr_value): Same.
7289 (write_dummy_eligible_delay): Same.
7290 (next_comma_elt): Same.
7292 (make_internal_attr): Same.
7293 (copy_rtx_unchanging): Same.
7294 (gen_insn_reserv): Same.
7295 (check_tune_attr): Same.
7296 (make_automaton_attrs): Same.
7298 * genextract.c (gen_insn): Same.
7299 (VEC_char_to_string): Same.
7300 * genmatch.c (print_operand): Same.
7302 (parser::parse_operation): Same.
7303 (parser::parse_capture): Same.
7304 (parser::parse_c_expr): Same.
7305 (parser::parse_simplify): Same.
7307 * genoutput.c (output_operand_data): Same.
7308 (output_get_insn_name): Same.
7309 (compare_operands): Same.
7310 (place_operands): Same.
7311 (process_template): Same.
7312 (validate_insn_alternatives): Same.
7313 (validate_insn_operands): Same.
7315 (note_constraint): Same.
7316 * genpreds.c (write_one_predicate_function): Same.
7317 (add_constraint): Same.
7318 (process_define_register_constraint): Same.
7319 (write_lookup_constraint_1): Same.
7320 (write_lookup_constraint_array): Same.
7321 (write_insn_constraint_len): Same.
7322 (write_reg_class_for_constraint_1): Same.
7323 (write_constraint_satisfied_p_array): Same.
7324 * genrecog.c (optimize_subroutine_group): Same.
7325 * gensupport.c (process_define_predicate): Same.
7326 (queue_pattern): Same.
7327 (remove_from_queue): Same.
7328 (process_rtx): Same.
7329 (is_predicable): Same.
7330 (change_subst_attribute): Same.
7331 (subst_pattern_match): Same.
7332 (alter_constraints): Same.
7333 (alter_attrs_for_insn): Same.
7334 (shift_output_template): Same.
7335 (alter_output_for_subst_insn): Same.
7336 (process_one_cond_exec): Same.
7338 (process_define_cond_exec): Same.
7339 (mnemonic_htab_callback): Same.
7340 (gen_mnemonic_attr): Same.
7341 (read_md_rtx): Same.
7343 * gimple-loop-interchange.cc (dump_reduction): Same.
7344 (dump_induction): Same.
7345 (loop_cand::~loop_cand): Same.
7346 (free_data_refs_with_aux): Same.
7347 (tree_loop_interchange::interchange_loops): Same.
7348 (tree_loop_interchange::map_inductions_to_loop): Same.
7349 (tree_loop_interchange::move_code_to_inner_loop): Same.
7350 (compute_access_stride): Same.
7351 (compute_access_strides): Same.
7352 (proper_loop_form_for_interchange): Same.
7353 (tree_loop_interchange_compute_ddrs): Same.
7354 (prune_datarefs_not_in_loop): Same.
7355 (prepare_data_references): Same.
7356 (pass_linterchange::execute): Same.
7357 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
7358 (unroll_jam_possible_p): Same.
7360 (adjust_unroll_factor): Same.
7361 (tree_loop_unroll_and_jam): Same.
7362 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
7363 (loop_versioning::expensive_stmt_p): Same.
7364 (loop_versioning::version_for_unity): Same.
7365 (loop_versioning::dump_inner_likelihood): Same.
7366 (loop_versioning::find_per_loop_multiplication): Same.
7367 (loop_versioning::analyze_term_using_scevs): Same.
7368 (loop_versioning::record_address_fragment): Same.
7369 (loop_versioning::analyze_expr): Same.
7370 (loop_versioning::analyze_blocks): Same.
7371 (loop_versioning::prune_conditions): Same.
7372 (loop_versioning::merge_loop_info): Same.
7373 (loop_versioning::add_loop_to_queue): Same.
7374 (loop_versioning::decide_whether_loop_is_versionable): Same.
7375 (loop_versioning::make_versioning_decisions): Same.
7376 (loop_versioning::implement_versioning_decisions): Same.
7377 * gimple-ssa-evrp-analyze.c
7378 (evrp_range_analyzer::record_ranges_from_phis): Same.
7379 * gimple-ssa-store-merging.c (split_store::split_store): Same.
7380 (count_multiple_uses): Same.
7381 (split_group): Same.
7382 (imm_store_chain_info::output_merged_store): Same.
7383 (pass_store_merging::process_store): Same.
7384 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
7385 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
7387 (alloca_call_type): Same.
7388 (pass_walloca::execute): Same.
7389 * gimple-streamer-in.c (input_phi): Same.
7390 (input_gimple_stmt): Same.
7391 * gimple-streamer.h: Same.
7392 * godump.c (go_force_record_alignment): Same.
7393 (go_format_type): Same.
7394 (go_output_type): Same.
7395 (go_output_fndecl): Same.
7396 (go_output_typedef): Same.
7397 (keyword_hash_init): Same.
7398 (find_dummy_types): Same.
7399 * graph.c (draw_cfg_nodes_no_loops): Same.
7400 (draw_cfg_nodes_for_loop): Same.
7401 * hard-reg-set.h (hard_reg_set_iter_next): Same.
7403 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
7404 * hsa-dump.c (dump_hsa_cfun): Same.
7405 * hsa-gen.c (gen_function_def_parameters): Same.
7406 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
7407 * input.c (dump_line_table_statistics): Same.
7410 * internal-fn.c (get_multi_vector_move): Same.
7411 (expand_load_lanes_optab_fn): Same.
7412 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
7413 (expand_GOMP_SIMT_EXIT): Same.
7414 (expand_GOMP_SIMT_LAST_LANE): Same.
7415 (expand_GOMP_SIMT_ORDERED_PRED): Same.
7416 (expand_GOMP_SIMT_VOTE_ANY): Same.
7417 (expand_GOMP_SIMT_XCHG_BFLY): Same.
7418 (expand_GOMP_SIMT_XCHG_IDX): Same.
7419 (expand_addsub_overflow): Same.
7420 (expand_neg_overflow): Same.
7421 (expand_mul_overflow): Same.
7422 (expand_call_mem_ref): Same.
7423 (expand_mask_load_optab_fn): Same.
7424 (expand_scatter_store_optab_fn): Same.
7425 (expand_gather_load_optab_fn): Same.
7426 * ipa-cp.c (ipa_get_parm_lattices): Same.
7427 (print_all_lattices): Same.
7428 (ignore_edge_p): Same.
7429 (build_toporder_info): Same.
7430 (free_toporder_info): Same.
7431 (push_node_to_stack): Same.
7432 (ipcp_lattice<valtype>::set_contains_variable): Same.
7433 (set_agg_lats_to_bottom): Same.
7434 (ipcp_bits_lattice::meet_with): Same.
7435 (set_single_call_flag): Same.
7436 (initialize_node_lattices): Same.
7437 (ipa_get_jf_ancestor_result): Same.
7438 (ipcp_verify_propagated_values): Same.
7439 (propagate_scalar_across_jump_function): Same.
7440 (propagate_context_across_jump_function): Same.
7441 (propagate_bits_across_jump_function): Same.
7442 (ipa_vr_operation_and_type_effects): Same.
7443 (propagate_vr_across_jump_function): Same.
7444 (set_check_aggs_by_ref): Same.
7445 (set_chain_of_aglats_contains_variable): Same.
7446 (merge_aggregate_lattices): Same.
7447 (agg_pass_through_permissible_p): Same.
7448 (propagate_aggs_across_jump_function): Same.
7449 (call_passes_through_thunk_p): Same.
7450 (propagate_constants_across_call): Same.
7451 (devirtualization_time_bonus): Same.
7452 (good_cloning_opportunity_p): Same.
7453 (context_independent_aggregate_values): Same.
7454 (gather_context_independent_values): Same.
7455 (perform_estimation_of_a_value): Same.
7456 (estimate_local_effects): Same.
7457 (value_topo_info<valtype>::add_val): Same.
7458 (add_all_node_vals_to_toposort): Same.
7459 (value_topo_info<valtype>::propagate_effects): Same.
7460 (ipcp_propagate_stage): Same.
7461 (ipcp_discover_new_direct_edges): Same.
7462 (same_node_or_its_all_contexts_clone_p): Same.
7463 (cgraph_edge_brings_value_p): Same.
7464 (gather_edges_for_value): Same.
7465 (create_specialized_node): Same.
7466 (find_more_scalar_values_for_callers_subset): Same.
7467 (find_more_contexts_for_caller_subset): Same.
7468 (copy_plats_to_inter): Same.
7469 (intersect_aggregates_with_edge): Same.
7470 (find_aggregate_values_for_callers_subset): Same.
7471 (cgraph_edge_brings_all_agg_vals_for_node): Same.
7472 (decide_about_value): Same.
7473 (decide_whether_version_node): Same.
7474 (spread_undeadness): Same.
7475 (identify_dead_nodes): Same.
7476 (ipcp_store_vr_results): Same.
7477 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
7478 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
7479 (redirect_to_unreachable): Same.
7480 (edge_set_predicate): Same.
7481 (evaluate_conditions_for_known_args): Same.
7482 (evaluate_properties_for_edge): Same.
7483 (ipa_fn_summary_t::duplicate): Same.
7484 (ipa_call_summary_t::duplicate): Same.
7485 (dump_ipa_call_summary): Same.
7486 (ipa_dump_fn_summary): Same.
7487 (eliminated_by_inlining_prob): Same.
7488 (set_cond_stmt_execution_predicate): Same.
7489 (set_switch_stmt_execution_predicate): Same.
7490 (compute_bb_predicates): Same.
7491 (will_be_nonconstant_expr_predicate): Same.
7492 (phi_result_unknown_predicate): Same.
7493 (analyze_function_body): Same.
7494 (compute_fn_summary): Same.
7495 (estimate_edge_devirt_benefit): Same.
7496 (estimate_edge_size_and_time): Same.
7497 (estimate_calls_size_and_time): Same.
7498 (estimate_node_size_and_time): Same.
7499 (remap_edge_change_prob): Same.
7500 (remap_edge_summaries): Same.
7501 (ipa_merge_fn_summary_after_inlining): Same.
7502 (ipa_fn_summary_generate): Same.
7503 (inline_read_section): Same.
7504 (ipa_fn_summary_read): Same.
7505 (ipa_fn_summary_write): Same.
7506 * ipa-fnsummary.h: Same.
7507 * ipa-hsa.c (ipa_hsa_read_section): Same.
7508 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
7509 * ipa-icf.c (sem_function::param_used_p): Same.
7510 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
7511 * ipa-inline.c (edge_badness): Same.
7512 (inline_small_functions): Same.
7513 * ipa-polymorphic-call.c
7514 (ipa_polymorphic_call_context::stream_out): Same.
7515 * ipa-predicate.c (predicate::remap_after_duplication): Same.
7516 (predicate::remap_after_inlining): Same.
7517 (predicate::stream_out): Same.
7518 * ipa-predicate.h: Same.
7519 * ipa-profile.c (ipa_profile_read_summary): Same.
7520 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
7521 (count_formal_params): Same.
7522 (ipa_dump_param): Same.
7523 (ipa_alloc_node_params): Same.
7524 (ipa_print_node_jump_functions_for_edge): Same.
7525 (ipa_print_node_jump_functions): Same.
7526 (ipa_load_from_parm_agg): Same.
7527 (get_ancestor_addr_info): Same.
7528 (ipa_compute_jump_functions_for_edge): Same.
7529 (ipa_analyze_virtual_call_uses): Same.
7530 (ipa_analyze_stmt_uses): Same.
7531 (ipa_analyze_params_uses_in_bb): Same.
7532 (update_jump_functions_after_inlining): Same.
7533 (try_decrement_rdesc_refcount): Same.
7534 (ipa_impossible_devirt_target): Same.
7535 (update_indirect_edges_after_inlining): Same.
7536 (combine_controlled_uses_counters): Same.
7537 (ipa_edge_args_sum_t::duplicate): Same.
7538 (ipa_write_jump_function): Same.
7539 (ipa_write_indirect_edge_info): Same.
7540 (ipa_write_node_info): Same.
7541 (ipa_read_edge_info): Same.
7542 (ipa_prop_read_section): Same.
7543 (read_replacements_section): Same.
7544 * ipa-prop.h (ipa_get_param_count): Same.
7545 (ipa_get_param): Same.
7546 (ipa_get_type): Same.
7547 (ipa_get_param_move_cost): Same.
7548 (ipa_set_param_used): Same.
7549 (ipa_get_controlled_uses): Same.
7550 (ipa_set_controlled_uses): Same.
7551 (ipa_get_cs_argument_count): Same.
7552 * ipa-pure-const.c (analyze_function): Same.
7553 (pure_const_read_summary): Same.
7555 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
7556 * ipa-split.c (test_nonssa_use): Same.
7557 (dump_split_point): Same.
7558 (dominated_by_forbidden): Same.
7559 (split_part_set_ssa_name_p): Same.
7560 (find_split_points): Same.
7561 * ira-build.c (finish_loop_tree_nodes): Same.
7562 (low_pressure_loop_node_p): Same.
7563 * ira-color.c (ira_reuse_stack_slot): Same.
7565 * ira.c (setup_reg_equiv): Same.
7566 (print_insn_chain): Same.
7568 * loop-doloop.c (doloop_condition_get): Same.
7570 (record_reg_sets): Same.
7571 (doloop_optimize): Same.
7572 * loop-init.c (loop_optimizer_init): Same.
7573 (fix_loop_structure): Same.
7574 * loop-invariant.c (merge_identical_invariants): Same.
7575 (compute_always_reached): Same.
7577 (may_assign_reg_p): Same.
7578 (find_invariants_bb): Same.
7579 (find_invariants_body): Same.
7580 (replace_uses): Same.
7581 (can_move_invariant_reg): Same.
7582 (free_inv_motion_data): Same.
7583 (move_single_loop_invariants): Same.
7584 (change_pressure): Same.
7585 (mark_ref_regs): Same.
7586 (calculate_loop_reg_pressure): Same.
7587 * loop-iv.c (biv_entry_hasher::equal): Same.
7588 (iv_extend_to_rtx_code): Same.
7589 (check_iv_ref_table_size): Same.
7590 (clear_iv_info): Same.
7591 (latch_dominating_def): Same.
7592 (iv_get_reaching_def): Same.
7593 (iv_constant): Same.
7599 (get_biv_step): Same.
7601 (analyzed_for_bivness_p): Same.
7603 (iv_analyze_biv): Same.
7604 (iv_analyze_expr): Same.
7605 (iv_analyze_def): Same.
7606 (iv_analyze_op): Same.
7608 (iv_analyze_result): Same.
7610 (eliminate_implied_conditions): Same.
7611 (simplify_using_initial_values): Same.
7612 (shorten_into_mode): Same.
7613 (canonicalize_iv_subregs): Same.
7614 (determine_max_iter): Same.
7615 (check_simple_exit): Same.
7616 (find_simple_exit): Same.
7617 (get_simple_loop_desc): Same.
7618 * loop-unroll.c (report_unroll): Same.
7619 (decide_unrolling): Same.
7620 (unroll_loops): Same.
7621 (loop_exit_at_end_p): Same.
7622 (decide_unroll_constant_iterations): Same.
7623 (unroll_loop_constant_iterations): Same.
7624 (compare_and_jump_seq): Same.
7625 (unroll_loop_runtime_iterations): Same.
7626 (decide_unroll_stupid): Same.
7627 (unroll_loop_stupid): Same.
7628 (referenced_in_one_insn_in_loop_p): Same.
7629 (reset_debug_uses_in_loop): Same.
7630 (analyze_iv_to_split_insn): Same.
7631 * lra-eliminations.c (lra_debug_elim_table): Same.
7632 (setup_can_eliminate): Same.
7634 (lra_get_elimination_hard_regno): Same.
7635 (lra_eliminate_regs_1): Same.
7636 (eliminate_regs_in_insn): Same.
7637 (update_reg_eliminate): Same.
7638 (init_elimination): Same.
7639 (lra_eliminate): Same.
7641 * lra-lives.c (initiate_live_solver): Same.
7642 * lra-remat.c (create_remat_bb_data): Same.
7643 * lra-spills.c (lra_spill): Same.
7644 * lra.c (lra_set_insn_recog_data): Same.
7645 (lra_set_used_insn_alternative_by_uid): Same.
7646 (init_reg_info): Same.
7647 (expand_reg_info): Same.
7648 * lto-cgraph.c (output_symtab): Same.
7649 (read_identifier): Same.
7650 (get_alias_symbol): Same.
7652 (input_varpool_node): Same.
7655 (input_cgraph_1): Same.
7657 (input_symtab): Same.
7658 (input_offload_tables): Same.
7659 (output_cgraph_opt_summary): Same.
7660 (input_edge_opt_summary): Same.
7661 (input_cgraph_opt_section): Same.
7662 * lto-section-in.c (lto_free_raw_section_data): Same.
7663 (lto_create_simple_input_block): Same.
7664 (lto_free_function_in_decl_state_for_node): Same.
7665 * lto-streamer-in.c (lto_tag_check_set): Same.
7666 (lto_location_cache::revert_location_cache): Same.
7667 (lto_location_cache::input_location): Same.
7668 (lto_input_location): Same.
7669 (stream_input_location_now): Same.
7670 (lto_input_tree_ref): Same.
7671 (lto_input_eh_catch_list): Same.
7672 (input_eh_region): Same.
7673 (lto_init_eh): Same.
7674 (make_new_block): Same.
7676 (fixup_call_stmt_edges): Same.
7677 (input_struct_function_base): Same.
7678 (input_function): Same.
7679 (lto_read_body_or_constructor): Same.
7680 (lto_read_tree_1): Same.
7681 (lto_read_tree): Same.
7682 (lto_input_scc): Same.
7683 (lto_input_tree_1): Same.
7684 (lto_input_toplevel_asms): Same.
7685 (lto_input_mode_table): Same.
7686 (lto_reader_init): Same.
7687 (lto_data_in_create): Same.
7688 * lto-streamer-out.c (output_cfg): Same.
7689 * lto-streamer.h: Same.
7690 * modulo-sched.c (duplicate_insns_of_cycles): Same.
7691 (generate_prolog_epilog): Same.
7692 (mark_loop_unsched): Same.
7693 (dump_insn_location): Same.
7694 (loop_canon_p): Same.
7695 (sms_schedule): Same.
7696 * omp-expand.c (expand_omp_for_ordered_loops): Same.
7697 (expand_omp_for_generic): Same.
7698 (expand_omp_for_static_nochunk): Same.
7699 (expand_omp_for_static_chunk): Same.
7700 (expand_omp_simd): Same.
7701 (expand_omp_taskloop_for_inner): Same.
7702 (expand_oacc_for): Same.
7703 (expand_omp_atomic_pipeline): Same.
7704 (mark_loops_in_oacc_kernels_region): Same.
7705 * omp-offload.c (oacc_xform_loop): Same.
7706 * omp-simd-clone.c (simd_clone_adjust): Same.
7707 * optabs-query.c (get_traditional_extraction_insn): Same.
7708 * optabs.c (expand_vector_broadcast): Same.
7709 (expand_binop_directly): Same.
7710 (expand_twoval_unop): Same.
7711 (expand_twoval_binop): Same.
7712 (expand_unop_direct): Same.
7713 (emit_indirect_jump): Same.
7714 (emit_conditional_move): Same.
7715 (emit_conditional_neg_or_complement): Same.
7716 (emit_conditional_add): Same.
7717 (vector_compare_rtx): Same.
7718 (expand_vec_perm_1): Same.
7719 (expand_vec_perm_const): Same.
7720 (expand_vec_cond_expr): Same.
7721 (expand_vec_series_expr): Same.
7722 (maybe_emit_atomic_exchange): Same.
7723 (maybe_emit_sync_lock_test_and_set): Same.
7724 (expand_atomic_compare_and_swap): Same.
7725 (expand_atomic_load): Same.
7726 (expand_atomic_store): Same.
7727 (maybe_emit_op): Same.
7728 (valid_multiword_target_p): Same.
7729 (create_integer_operand): Same.
7730 (maybe_legitimize_operand_same_code): Same.
7731 (maybe_legitimize_operand): Same.
7732 (create_convert_operand_from_type): Same.
7733 (can_reuse_operands_p): Same.
7734 (maybe_legitimize_operands): Same.
7735 (maybe_gen_insn): Same.
7736 (maybe_expand_insn): Same.
7737 (maybe_expand_jump_insn): Same.
7738 (expand_insn): Same.
7739 * optabs.h (create_expand_operand): Same.
7740 (create_fixed_operand): Same.
7741 (create_output_operand): Same.
7742 (create_input_operand): Same.
7743 (create_convert_operand_to): Same.
7744 (create_convert_operand_from): Same.
7747 * predict.c (optimize_insn_for_speed_p): Same.
7748 (optimize_loop_for_size_p): Same.
7749 (optimize_loop_for_speed_p): Same.
7750 (optimize_loop_nest_for_speed_p): Same.
7751 (get_base_value): Same.
7752 (predicted_by_loop_heuristics_p): Same.
7753 (predict_extra_loop_exits): Same.
7754 (predict_loops): Same.
7755 (predict_paths_for_bb): Same.
7756 (predict_paths_leading_to): Same.
7757 (propagate_freq): Same.
7758 (pass_profile::execute): Same.
7760 * profile-count.c (profile_count::differs_from_p): Same.
7761 (profile_probability::differs_lot_from_p): Same.
7762 * profile-count.h: Same.
7763 * profile.c (branch_prob): Same.
7764 * regrename.c (free_chain_data): Same.
7765 (mark_conflict): Same.
7766 (create_new_chain): Same.
7767 (merge_overlapping_regs): Same.
7768 (init_rename_info): Same.
7769 (merge_chains): Same.
7770 (regrename_analyze): Same.
7771 (regrename_do_replace): Same.
7772 (scan_rtx_reg): Same.
7773 (record_out_operands): Same.
7774 (build_def_use): Same.
7775 * regrename.h: Same.
7777 * reload1.c (init_reload): Same.
7778 (maybe_fix_stack_asms): Same.
7779 (copy_reloads): Same.
7780 (count_pseudo): Same.
7781 (count_spilled_pseudo): Same.
7783 (find_reload_regs): Same.
7784 (select_reload_regs): Same.
7785 (spill_hard_reg): Same.
7786 (fixup_eh_region_note): Same.
7787 (set_reload_reg): Same.
7788 (allocate_reload_reg): Same.
7789 (compute_reload_subreg_offset): Same.
7790 (reload_adjust_reg_for_icode): Same.
7791 (emit_input_reload_insns): Same.
7792 (emit_output_reload_insns): Same.
7793 (do_input_reload): Same.
7794 (inherit_piecemeal_p): Same.
7796 * sanopt.c (maybe_get_dominating_check): Same.
7797 (maybe_optimize_ubsan_ptr_ifn): Same.
7798 (can_remove_asan_check): Same.
7799 (maybe_optimize_asan_check_ifn): Same.
7800 (sanopt_optimize_walker): Same.
7801 * sched-deps.c (add_dependence_list): Same.
7802 (chain_to_prev_insn): Same.
7803 (add_insn_mem_dependence): Same.
7804 (create_insn_reg_set): Same.
7805 (maybe_extend_reg_info_p): Same.
7806 (sched_analyze_reg): Same.
7807 (sched_analyze_1): Same.
7808 (get_implicit_reg_pending_clobbers): Same.
7809 (chain_to_prev_insn_p): Same.
7810 (deps_analyze_insn): Same.
7811 (deps_start_bb): Same.
7812 (sched_free_deps): Same.
7814 (init_deps_reg_last): Same.
7816 * sched-ebb.c: Same.
7817 * sched-int.h: Same.
7818 * sched-rgn.c (add_branch_dependences): Same.
7819 (concat_insn_mem_list): Same.
7821 (sched_rgn_compute_dependencies): Same.
7822 * sel-sched-ir.c (reset_target_context): Same.
7823 (copy_deps_context): Same.
7824 (init_id_from_df): Same.
7825 (has_dependence_p): Same.
7826 (change_loops_latches): Same.
7827 (bb_top_order_comparator): Same.
7828 (make_region_from_loop_preheader): Same.
7829 (sel_init_pipelining): Same.
7830 (get_loop_nest_for_rgn): Same.
7831 (make_regions_from_the_rest): Same.
7832 (sel_is_loop_preheader_p): Same.
7833 * sel-sched-ir.h (inner_loop_header_p): Same.
7834 (get_all_loop_exits): Same.
7836 * sese.c (sese_build_liveouts): Same.
7837 (sese_insert_phis_for_liveouts): Same.
7838 * sese.h (defined_in_sese_p): Same.
7839 * sreal.c (sreal::stream_out): Same.
7841 * streamer-hooks.h: Same.
7842 * target-globals.c (save_target_globals): Same.
7843 * target-globals.h: Same.
7846 * targhooks.c (default_has_ifunc_p): Same.
7847 (default_empty_mask_is_expensive): Same.
7848 (default_init_cost): Same.
7849 * targhooks.h: Same.
7851 * tree-affine.c (aff_combination_mult): Same.
7852 (aff_combination_expand): Same.
7853 (aff_combination_constant_multiple_p): Same.
7854 * tree-affine.h: Same.
7855 * tree-cfg.c (build_gimple_cfg): Same.
7856 (replace_loop_annotate_in_block): Same.
7857 (replace_uses_by): Same.
7859 (dump_cfg_stats): Same.
7860 (gimple_duplicate_sese_region): Same.
7861 (gimple_duplicate_sese_tail): Same.
7862 (move_block_to_fn): Same.
7863 (replace_block_vars_by_duplicates): Same.
7864 (move_sese_region_to_fn): Same.
7865 (print_loops_bb): Same.
7867 (print_loops): Same.
7869 (debug_loops): Same.
7871 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
7872 (chrec_fold_multiply_poly_poly): Same.
7873 (chrec_evaluate): Same.
7874 (chrec_component_in_loop_num): Same.
7875 (reset_evolution_in_loop): Same.
7876 (is_multivariate_chrec): Same.
7877 (chrec_contains_symbols): Same.
7878 (nb_vars_in_chrec): Same.
7879 (chrec_convert_1): Same.
7880 (chrec_convert_aggressive): Same.
7881 * tree-chrec.h: Same.
7882 * tree-core.h: Same.
7883 * tree-data-ref.c (dump_data_dependence_relation): Same.
7884 (canonicalize_base_object_address): Same.
7885 (data_ref_compare_tree): Same.
7886 (prune_runtime_alias_test_list): Same.
7887 (get_segment_min_max): Same.
7888 (create_intersect_range_checks): Same.
7889 (conflict_fn_no_dependence): Same.
7890 (object_address_invariant_in_loop_p): Same.
7891 (analyze_ziv_subscript): Same.
7892 (analyze_siv_subscript_cst_affine): Same.
7893 (analyze_miv_subscript): Same.
7894 (analyze_overlapping_iterations): Same.
7895 (build_classic_dist_vector_1): Same.
7896 (add_other_self_distances): Same.
7897 (same_access_functions): Same.
7898 (build_classic_dir_vector): Same.
7899 (subscript_dependence_tester_1): Same.
7900 (subscript_dependence_tester): Same.
7901 (access_functions_are_affine_or_constant_p): Same.
7902 (get_references_in_stmt): Same.
7903 (loop_nest_has_data_refs): Same.
7904 (graphite_find_data_references_in_stmt): Same.
7905 (find_data_references_in_bb): Same.
7906 (get_base_for_alignment): Same.
7907 (find_loop_nest_1): Same.
7908 (find_loop_nest): Same.
7909 * tree-data-ref.h (dr_alignment): Same.
7910 (ddr_dependence_level): Same.
7911 * tree-if-conv.c (fold_build_cond_expr): Same.
7912 (add_to_predicate_list): Same.
7913 (add_to_dst_predicate_list): Same.
7914 (phi_convertible_by_degenerating_args): Same.
7915 (idx_within_array_bound): Same.
7916 (all_preds_critical_p): Same.
7917 (pred_blocks_visited_p): Same.
7918 (predicate_bbs): Same.
7919 (build_region): Same.
7920 (if_convertible_loop_p_1): Same.
7921 (is_cond_scalar_reduction): Same.
7922 (predicate_scalar_phi): Same.
7923 (remove_conditions_and_labels): Same.
7924 (combine_blocks): Same.
7925 (version_loop_for_if_conversion): Same.
7926 (versionable_outer_loop_p): Same.
7927 (ifcvt_local_dce): Same.
7928 (tree_if_conversion): Same.
7929 (pass_if_conversion::gate): Same.
7930 * tree-if-conv.h: Same.
7931 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
7932 * tree-loop-distribution.c (bb_top_order_cmp): Same.
7934 (stmt_has_scalar_dependences_outside_loop): Same.
7935 (copy_loop_before): Same.
7936 (create_bb_after_loop): Same.
7937 (const_with_all_bytes_same): Same.
7938 (generate_memset_builtin): Same.
7939 (generate_memcpy_builtin): Same.
7940 (destroy_loop): Same.
7941 (build_rdg_partition_for_vertex): Same.
7942 (compute_access_range): Same.
7943 (data_ref_segment_size): Same.
7944 (latch_dominated_by_data_ref): Same.
7945 (compute_alias_check_pairs): Same.
7946 (fuse_memset_builtins): Same.
7947 (finalize_partitions): Same.
7948 (find_seed_stmts_for_distribution): Same.
7949 (prepare_perfect_loop_nest): Same.
7950 * tree-parloops.c (lambda_transform_legal_p): Same.
7951 (loop_parallel_p): Same.
7952 (reduc_stmt_res): Same.
7953 (add_field_for_name): Same.
7954 (create_call_for_reduction_1): Same.
7955 (replace_uses_in_bb_by): Same.
7956 (transform_to_exit_first_loop_alt): Same.
7957 (try_transform_to_exit_first_loop_alt): Same.
7958 (transform_to_exit_first_loop): Same.
7960 (gen_parallel_loop): Same.
7961 (gather_scalar_reductions): Same.
7962 (get_omp_data_i_param): Same.
7963 (try_create_reduction_list): Same.
7964 (oacc_entry_exit_single_gang): Same.
7965 (parallelize_loops): Same.
7966 * tree-pass.h: Same.
7967 * tree-predcom.c (determine_offset): Same.
7968 (last_always_executed_block): Same.
7969 (split_data_refs_to_components): Same.
7970 (suitable_component_p): Same.
7971 (valid_initializer_p): Same.
7972 (find_looparound_phi): Same.
7973 (insert_looparound_copy): Same.
7974 (add_looparound_copies): Same.
7975 (determine_roots_comp): Same.
7976 (predcom_tmp_var): Same.
7977 (initialize_root_vars): Same.
7978 (initialize_root_vars_store_elim_1): Same.
7979 (initialize_root_vars_store_elim_2): Same.
7980 (finalize_eliminated_stores): Same.
7981 (initialize_root_vars_lm): Same.
7982 (remove_stmt): Same.
7983 (determine_unroll_factor): Same.
7984 (execute_pred_commoning_cbck): Same.
7985 (base_names_in_chain_on): Same.
7986 (combine_chains): Same.
7987 (pcom_stmt_dominates_stmt_p): Same.
7988 (try_combine_chains): Same.
7989 (prepare_initializers_chain_store_elim): Same.
7990 (prepare_initializers_chain): Same.
7991 (prepare_initializers): Same.
7992 (prepare_finalizers_chain): Same.
7993 (prepare_finalizers): Same.
7994 (insert_init_seqs): Same.
7995 * tree-scalar-evolution.c (loop_phi_node_p): Same.
7996 (compute_overall_effect_of_inner_loop): Same.
7997 (add_to_evolution_1): Same.
7998 (add_to_evolution): Same.
7999 (follow_ssa_edge_binary): Same.
8000 (follow_ssa_edge_expr): Same.
8001 (backedge_phi_arg_p): Same.
8002 (follow_ssa_edge_in_condition_phi_branch): Same.
8003 (follow_ssa_edge_in_condition_phi): Same.
8004 (follow_ssa_edge_inner_loop_phi): Same.
8005 (follow_ssa_edge): Same.
8006 (analyze_evolution_in_loop): Same.
8007 (analyze_initial_condition): Same.
8008 (interpret_loop_phi): Same.
8009 (interpret_condition_phi): Same.
8010 (interpret_rhs_expr): Same.
8011 (interpret_expr): Same.
8012 (interpret_gimple_assign): Same.
8013 (analyze_scalar_evolution_1): Same.
8014 (analyze_scalar_evolution): Same.
8015 (analyze_scalar_evolution_for_address_of): Same.
8016 (get_instantiated_value_entry): Same.
8017 (loop_closed_phi_def): Same.
8018 (instantiate_scev_name): Same.
8019 (instantiate_scev_poly): Same.
8020 (instantiate_scev_binary): Same.
8021 (instantiate_scev_convert): Same.
8022 (instantiate_scev_not): Same.
8023 (instantiate_scev_r): Same.
8024 (instantiate_scev): Same.
8025 (resolve_mixers): Same.
8026 (initialize_scalar_evolutions_analyzer): Same.
8027 (scev_reset_htab): Same.
8029 (derive_simple_iv_with_niters): Same.
8030 (simple_iv_with_niters): Same.
8031 (expression_expensive_p): Same.
8032 (final_value_replacement_loop): Same.
8033 * tree-scalar-evolution.h (block_before_loop): Same.
8034 * tree-ssa-address.h: Same.
8035 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
8036 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
8037 (record_edge_info): Same.
8038 * tree-ssa-live.c (var_map_base_fini): Same.
8039 (remove_unused_locals): Same.
8040 * tree-ssa-live.h: Same.
8041 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
8042 (pass_ch_vect::execute): Same.
8043 (pass_ch::process_loop_p): Same.
8044 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
8045 (movement_possibility): Same.
8046 (outermost_invariant_loop): Same.
8048 (determine_max_movement): Same.
8049 (invariantness_dom_walker::before_dom_children): Same.
8050 (move_computations): Same.
8051 (may_move_till): Same.
8052 (force_move_till_op): Same.
8053 (force_move_till): Same.
8054 (memref_free): Same.
8055 (record_mem_ref_loc): Same.
8056 (set_ref_stored_in_loop): Same.
8057 (mark_ref_stored): Same.
8058 (sort_bbs_in_loop_postorder_cmp): Same.
8059 (sort_locs_in_loop_postorder_cmp): Same.
8060 (analyze_memory_references): Same.
8061 (mem_refs_may_alias_p): Same.
8062 (find_ref_loc_in_loop_cmp): Same.
8063 (rewrite_mem_ref_loc::operator): Same.
8064 (first_mem_ref_loc_1::operator): Same.
8065 (sm_set_flag_if_changed::operator): Same.
8066 (execute_sm_if_changed_flag_set): Same.
8068 (hoist_memory_references): Same.
8069 (ref_always_accessed::operator): Same.
8070 (refs_independent_p): Same.
8071 (record_dep_loop): Same.
8072 (ref_indep_loop_p_1): Same.
8073 (ref_indep_loop_p): Same.
8074 (can_sm_ref_p): Same.
8075 (find_refs_for_sm): Same.
8076 (loop_suitable_for_sm): Same.
8077 (store_motion_loop): Same.
8078 (store_motion): Same.
8079 (fill_always_executed_in): Same.
8080 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
8081 (estimated_unrolled_size): Same.
8082 (loop_edge_to_cancel): Same.
8083 (remove_exits_and_undefined_stmts): Same.
8084 (remove_redundant_iv_tests): Same.
8085 (unloop_loops): Same.
8086 (estimated_peeled_sequence_size): Same.
8087 (try_peel_loop): Same.
8088 (canonicalize_loop_induction_variables): Same.
8089 (canonicalize_induction_variables): Same.
8090 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
8092 (stmt_after_inc_pos): Same.
8093 (contains_abnormal_ssa_name_p): Same.
8094 (niter_for_exit): Same.
8097 (find_givs_in_bb): Same.
8098 (find_induction_variables): Same.
8099 (find_interesting_uses_cond): Same.
8100 (outermost_invariant_loop_for_expr): Same.
8101 (idx_find_step): Same.
8102 (add_candidate_1): Same.
8103 (add_iv_candidate_derived_from_uses): Same.
8104 (alloc_use_cost_map): Same.
8105 (prepare_decl_rtl): Same.
8106 (generic_predict_doloop_p): Same.
8107 (computation_cost): Same.
8108 (determine_common_wider_type): Same.
8109 (get_computation_aff_1): Same.
8110 (get_use_type): Same.
8111 (determine_group_iv_cost_address): Same.
8113 (difference_cannot_overflow_p): Same.
8114 (may_eliminate_iv): Same.
8115 (determine_set_costs): Same.
8116 (cheaper_cost_pair): Same.
8117 (compare_cost_pair): Same.
8118 (iv_ca_cand_for_group): Same.
8119 (iv_ca_recount_cost): Same.
8120 (iv_ca_set_remove_invs): Same.
8121 (iv_ca_set_no_cp): Same.
8122 (iv_ca_set_add_invs): Same.
8123 (iv_ca_set_cp): Same.
8124 (iv_ca_add_group): Same.
8126 (iv_ca_compare_deps): Same.
8127 (iv_ca_delta_reverse): Same.
8128 (iv_ca_delta_commit): Same.
8129 (iv_ca_cand_used_p): Same.
8130 (iv_ca_delta_free): Same.
8134 (iv_ca_extend): Same.
8135 (iv_ca_narrow): Same.
8136 (iv_ca_prune): Same.
8137 (cheaper_cost_with_cand): Same.
8138 (iv_ca_replace): Same.
8139 (try_add_cand_for): Same.
8140 (get_initial_solution): Same.
8141 (try_improve_iv_set): Same.
8142 (find_optimal_iv_set_1): Same.
8143 (create_new_iv): Same.
8144 (rewrite_use_compare): Same.
8145 (remove_unused_ivs): Same.
8146 (determine_scaling_factor): Same.
8147 * tree-ssa-loop-ivopts.h: Same.
8148 * tree-ssa-loop-manip.c (create_iv): Same.
8149 (compute_live_loop_exits): Same.
8150 (add_exit_phi): Same.
8151 (add_exit_phis): Same.
8152 (find_uses_to_rename_use): Same.
8153 (find_uses_to_rename_def): Same.
8154 (find_uses_to_rename_in_loop): Same.
8155 (rewrite_into_loop_closed_ssa): Same.
8156 (check_loop_closed_ssa_bb): Same.
8157 (split_loop_exit_edge): Same.
8159 (ip_normal_pos): Same.
8160 (copy_phi_node_args): Same.
8161 (gimple_duplicate_loop_to_header_edge): Same.
8162 (can_unroll_loop_p): Same.
8163 (determine_exit_conditions): Same.
8164 (scale_dominated_blocks_in_loop): Same.
8165 (niter_for_unrolled_loop): Same.
8166 (tree_transform_and_unroll_loop): Same.
8167 (rewrite_all_phi_nodes_with_iv): Same.
8168 * tree-ssa-loop-manip.h: Same.
8169 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
8170 (number_of_iterations_ne): Same.
8171 (assert_no_overflow_lt): Same.
8172 (assert_loop_rolls_lt): Same.
8173 (number_of_iterations_lt): Same.
8174 (adjust_cond_for_loop_until_wrap): Same.
8175 (tree_simplify_using_condition): Same.
8176 (simplify_using_initial_conditions): Same.
8177 (simplify_using_outer_evolutions): Same.
8178 (loop_only_exit_p): Same.
8179 (ssa_defined_by_minus_one_stmt_p): Same.
8180 (number_of_iterations_popcount): Same.
8181 (number_of_iterations_exit): Same.
8182 (find_loop_niter): Same.
8183 (finite_loop_p): Same.
8184 (chain_of_csts_start): Same.
8185 (get_val_for): Same.
8186 (loop_niter_by_eval): Same.
8187 (derive_constant_upper_bound_ops): Same.
8188 (do_warn_aggressive_loop_optimizations): Same.
8189 (record_estimate): Same.
8190 (get_cst_init_from_scev): Same.
8191 (record_nonwrapping_iv): Same.
8192 (idx_infer_loop_bounds): Same.
8193 (infer_loop_bounds_from_ref): Same.
8194 (infer_loop_bounds_from_array): Same.
8195 (infer_loop_bounds_from_pointer_arith): Same.
8196 (infer_loop_bounds_from_signedness): Same.
8197 (bound_index): Same.
8198 (discover_iteration_bound_by_body_walk): Same.
8199 (maybe_lower_iteration_bound): Same.
8200 (estimate_numbers_of_iterations): Same.
8201 (estimated_loop_iterations): Same.
8202 (estimated_loop_iterations_int): Same.
8203 (max_loop_iterations): Same.
8204 (max_loop_iterations_int): Same.
8205 (likely_max_loop_iterations): Same.
8206 (likely_max_loop_iterations_int): Same.
8207 (estimated_stmt_executions_int): Same.
8208 (max_stmt_executions): Same.
8209 (likely_max_stmt_executions): Same.
8210 (estimated_stmt_executions): Same.
8211 (stmt_dominates_stmt_p): Same.
8212 (nowrap_type_p): Same.
8213 (loop_exits_before_overflow): Same.
8214 (scev_var_range_cant_overflow): Same.
8215 (scev_probably_wraps_p): Same.
8216 (free_numbers_of_iterations_estimates): Same.
8217 * tree-ssa-loop-niter.h: Same.
8218 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
8219 (idx_analyze_ref): Same.
8220 (analyze_ref): Same.
8221 (gather_memory_references_ref): Same.
8222 (mark_nontemporal_store): Same.
8223 (emit_mfence_after_loop): Same.
8224 (may_use_storent_in_loop_p): Same.
8225 (mark_nontemporal_stores): Same.
8226 (should_unroll_loop_p): Same.
8227 (volume_of_dist_vector): Same.
8228 (add_subscript_strides): Same.
8229 (self_reuse_distance): Same.
8230 (insn_to_prefetch_ratio_too_small_p): Same.
8231 * tree-ssa-loop-split.c (split_at_bb_p): Same.
8232 (patch_loop_exit): Same.
8233 (find_or_create_guard_phi): Same.
8234 (easy_exit_values): Same.
8235 (connect_loop_phis): Same.
8236 (connect_loops): Same.
8237 (compute_new_first_bound): Same.
8239 (tree_ssa_split_loops): Same.
8240 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
8241 (is_maybe_undefined): Same.
8242 (tree_may_unswitch_on): Same.
8243 (simplify_using_entry_checks): Same.
8244 (tree_unswitch_single_loop): Same.
8245 (tree_unswitch_loop): Same.
8246 (tree_unswitch_outer_loop): Same.
8247 (empty_bb_without_guard_p): Same.
8248 (used_outside_loop_p): Same.
8249 (get_vop_from_header): Same.
8250 (hoist_guard): Same.
8251 * tree-ssa-loop.c (gate_oacc_kernels): Same.
8252 (get_lsm_tmp_name): Same.
8253 * tree-ssa-loop.h: Same.
8254 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
8255 (build_and_add_sum): Same.
8256 (no_side_effect_bb): Same.
8258 (linearize_expr): Same.
8259 (should_break_up_subtract): Same.
8260 (linearize_expr_tree): Same.
8261 * tree-ssa-scopedtables.c: Same.
8262 * tree-ssa-scopedtables.h: Same.
8263 * tree-ssa-structalias.c (condense_visit): Same.
8264 (label_visit): Same.
8265 (dump_pred_graph): Same.
8266 (perform_var_substitution): Same.
8267 (move_complex_constraints): Same.
8268 (remove_preds_and_fake_succs): Same.
8269 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
8270 (determine_bb_domination_status): Same.
8271 (duplicate_thread_path): Same.
8272 (thread_through_all_blocks): Same.
8273 * tree-ssa-threadupdate.h: Same.
8274 * tree-streamer-in.c (streamer_read_string_cst): Same.
8275 (input_identifier): Same.
8276 (unpack_ts_type_common_value_fields): Same.
8277 (unpack_ts_block_value_fields): Same.
8278 (unpack_ts_translation_unit_decl_value_fields): Same.
8279 (unpack_ts_omp_clause_value_fields): Same.
8280 (streamer_read_tree_bitfields): Same.
8281 (streamer_alloc_tree): Same.
8282 (lto_input_ts_common_tree_pointers): Same.
8283 (lto_input_ts_vector_tree_pointers): Same.
8284 (lto_input_ts_poly_tree_pointers): Same.
8285 (lto_input_ts_complex_tree_pointers): Same.
8286 (lto_input_ts_decl_minimal_tree_pointers): Same.
8287 (lto_input_ts_decl_common_tree_pointers): Same.
8288 (lto_input_ts_decl_non_common_tree_pointers): Same.
8289 (lto_input_ts_decl_with_vis_tree_pointers): Same.
8290 (lto_input_ts_field_decl_tree_pointers): Same.
8291 (lto_input_ts_function_decl_tree_pointers): Same.
8292 (lto_input_ts_type_common_tree_pointers): Same.
8293 (lto_input_ts_type_non_common_tree_pointers): Same.
8294 (lto_input_ts_list_tree_pointers): Same.
8295 (lto_input_ts_vec_tree_pointers): Same.
8296 (lto_input_ts_exp_tree_pointers): Same.
8297 (lto_input_ts_block_tree_pointers): Same.
8298 (lto_input_ts_binfo_tree_pointers): Same.
8299 (lto_input_ts_constructor_tree_pointers): Same.
8300 (lto_input_ts_omp_clause_tree_pointers): Same.
8301 (streamer_read_tree_body): Same.
8302 * tree-streamer.h: Same.
8303 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
8304 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
8305 (vect_analyze_possibly_independent_ddr): Same.
8306 (vect_analyze_data_ref_dependence): Same.
8307 (vect_compute_data_ref_alignment): Same.
8308 (vect_enhance_data_refs_alignment): Same.
8309 (vect_analyze_data_ref_access): Same.
8310 (vect_check_gather_scatter): Same.
8311 (vect_find_stmt_data_reference): Same.
8312 (vect_create_addr_base_for_vector_ref): Same.
8313 (vect_setup_realignment): Same.
8314 (vect_supportable_dr_alignment): Same.
8315 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
8316 (adjust_phi_and_debug_stmts): Same.
8317 (vect_set_loop_mask): Same.
8318 (add_preheader_seq): Same.
8319 (vect_maybe_permute_loop_masks): Same.
8320 (vect_set_loop_masks_directly): Same.
8321 (vect_set_loop_condition_masked): Same.
8322 (vect_set_loop_condition_unmasked): Same.
8323 (slpeel_duplicate_current_defs_from_edges): Same.
8324 (slpeel_add_loop_guard): Same.
8325 (slpeel_can_duplicate_loop_p): Same.
8326 (create_lcssa_for_virtual_phi): Same.
8328 (vect_update_ivs_after_vectorizer): Same.
8329 (vect_gen_vector_loop_niters_mult_vf): Same.
8330 (slpeel_update_phi_nodes_for_loops): Same.
8331 (slpeel_update_phi_nodes_for_guard1): Same.
8332 (find_guard_arg): Same.
8333 (slpeel_update_phi_nodes_for_guard2): Same.
8334 (slpeel_update_phi_nodes_for_lcssa): Same.
8335 (vect_do_peeling): Same.
8336 (vect_create_cond_for_alias_checks): Same.
8337 (vect_loop_versioning): Same.
8338 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
8339 (vect_inner_phi_in_double_reduction_p): Same.
8340 (vect_analyze_scalar_cycles_1): Same.
8341 (vect_fixup_scalar_cycles_with_patterns): Same.
8342 (vect_get_loop_niters): Same.
8343 (bb_in_loop_p): Same.
8344 (vect_get_max_nscalars_per_iter): Same.
8345 (vect_verify_full_masking): Same.
8346 (vect_compute_single_scalar_iteration_cost): Same.
8347 (vect_analyze_loop_form_1): Same.
8348 (vect_analyze_loop_form): Same.
8349 (vect_active_double_reduction_p): Same.
8350 (vect_analyze_loop_operations): Same.
8351 (neutral_op_for_slp_reduction): Same.
8352 (vect_is_simple_reduction): Same.
8353 (vect_model_reduction_cost): Same.
8354 (get_initial_def_for_reduction): Same.
8355 (get_initial_defs_for_reduction): Same.
8356 (vect_create_epilog_for_reduction): Same.
8357 (vectorize_fold_left_reduction): Same.
8358 (vectorizable_reduction): Same.
8359 (vectorizable_induction): Same.
8360 (vectorizable_live_operation): Same.
8361 (loop_niters_no_overflow): Same.
8362 (vect_get_loop_mask): Same.
8363 (vect_transform_loop_stmt): Same.
8364 (vect_transform_loop): Same.
8365 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
8366 (vect_determine_precisions): Same.
8367 (vect_pattern_recog_1): Same.
8368 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
8369 * tree-vect-stmts.c (stmt_vectype): Same.
8370 (process_use): Same.
8371 (vect_init_vector_1): Same.
8372 (vect_truncate_gather_scatter_offset): Same.
8373 (get_group_load_store_type): Same.
8374 (vect_build_gather_load_calls): Same.
8375 (vect_get_strided_load_store_ops): Same.
8376 (vectorizable_simd_clone_call): Same.
8377 (vectorizable_store): Same.
8378 (permute_vec_elements): Same.
8379 (vectorizable_load): Same.
8380 (vect_transform_stmt): Same.
8381 (supportable_widening_operation): Same.
8382 * tree-vectorizer.c (vec_info::replace_stmt): Same.
8383 (vec_info::free_stmt_vec_info): Same.
8384 (vect_free_loop_info_assumptions): Same.
8385 (vect_loop_vectorized_call): Same.
8386 (set_uid_loop_bbs): Same.
8387 (vectorize_loops): Same.
8388 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
8389 * tree.c (add_tree_to_fld_list): Same.
8390 (fld_type_variant_equal_p): Same.
8391 (fld_decl_context): Same.
8392 (fld_incomplete_type_of): Same.
8393 (free_lang_data_in_binfo): Same.
8394 (need_assembler_name_p): Same.
8395 (find_decls_types_r): Same.
8396 (get_eh_types_for_runtime): Same.
8397 (find_decls_types_in_eh_region): Same.
8398 (find_decls_types_in_node): Same.
8399 (assign_assembler_name_if_needed): Same.
8400 * value-prof.c (stream_out_histogram_value): Same.
8401 * value-prof.h: Same.
8402 * var-tracking.c (use_narrower_mode): Same.
8403 (prepare_call_arguments): Same.
8404 (vt_expand_loc_callback): Same.
8405 (resolve_expansions_pending_recursion): Same.
8406 (vt_expand_loc): Same.
8407 * varasm.c (const_hash_1): Same.
8408 (compare_constant): Same.
8409 (tree_output_constant_def): Same.
8410 (simplify_subtraction): Same.
8411 (get_pool_constant): Same.
8412 (output_constant_pool_2): Same.
8413 (output_constant_pool_1): Same.
8414 (mark_constants_in_pattern): Same.
8415 (mark_constant_pool): Same.
8416 (get_section_anchor): Same.
8417 * vr-values.c (compare_range_with_value): Same.
8418 (vr_values::extract_range_from_phi_node): Same.
8419 * vr-values.h: Same.
8420 * web.c (unionfind_union): Same.
8423 2019-07-09 Martin Sebor <msebor@redhat.com>
8426 * align.h: Change class-key from class to struct and vice versa
8427 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
8428 * alloc-pool.h: Same.
8429 * asan.c (shadow_mem_size): Same.
8430 * auto-profile.c: Same.
8431 * basic-block.h: Same.
8433 * cfgexpand.c (set_rtl): Same.
8434 (expand_one_stack_var_at): Same.
8438 * config/i386/i386.h: Same.
8439 * df-problems.c (df_print_bb_index): Same.
8441 * df.h (df_single_use): Same.
8442 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
8443 (layout::annotation_line_showed_range_p): Same.
8444 (get_printed_columns): Same.
8445 (correction::ensure_terminated): Same.
8446 (line_corrections::~line_corrections): Same.
8449 * dump-context.h: Same.
8451 * dwarf2out.c: Same.
8452 * edit-context.c: Same.
8453 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
8455 * function.c (assign_stack_local): Same.
8458 * gcov.c (block_info::block_info): Same.
8459 * genattrtab.c: Same.
8460 * genextract.c: Same.
8461 * genmatch.c (comparison_code_p): Same.
8462 (id_base::id_base): Same.
8463 (decision_tree::print): Same.
8464 * genoutput.c: Same.
8465 * genpreds.c (write_one_predicate_function): Same.
8466 * genrecog.c (validate_pattern): Same.
8467 (find_operand_positions): Same.
8468 (optimize_subroutine_group): Same.
8469 (merge_pattern_transition::merge_pattern_transition): Same.
8470 (merge_pattern_info::merge_pattern_info): Same.
8471 (merge_state_result::merge_state_result): Same.
8472 (merge_into_state): Same.
8473 * gensupport.c: Same.
8474 * gensupport.h: Same.
8475 * ggc-common.c (init_ggc_heuristics): Same.
8476 * ggc-tests.c (test_union): Same.
8477 * gimple-loop-interchange.cc (dump_induction): Same.
8478 * gimple-loop-versioning.cc: Same.
8479 * gimple-match.h (gimple_match_cond::any_else): Same.
8480 * gimple-ssa-backprop.c: Same.
8481 * gimple-ssa-sprintf.c: Same.
8482 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
8484 (store_immediate_info::store_immediate_info): Same.
8485 (merged_store_group::apply_stores): Same.
8486 (get_location_for_stmts): Same.
8487 * gimple-ssa-strength-reduction.c: Same.
8488 * gimple-ssa-warn-alloca.c: Same.
8489 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
8490 * godump.c (go_type_decl): Same.
8491 * hash-map-tests.c (test_map_of_strings_to_int): Same.
8493 * hash-set-tests.c (test_set_of_strings): Same.
8495 * hsa-common.h: Same.
8496 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
8497 * input.c (assert_loceq): Same.
8500 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
8501 * ipa-fnsummary.h: Same.
8502 * ipa-inline.h: Same.
8504 * ipa-split.c (visit_bb): Same.
8505 * ira-int.h (minmax_set_iter_next): Same.
8506 * loop-invariant.c: Same.
8508 * lra-eliminations.c: Same.
8510 * lra-lives.c (mark_regno_dead): Same.
8511 * lra-remat.c: Same.
8512 * lra-spills.c: Same.
8513 * lto-streamer.h: Same.
8514 * mem-stats.h: Same.
8515 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
8516 * omp-low.c (omp_clause_aligned_alignment): Same.
8517 * optabs-query.h (get_vcond_eq_icode): Same.
8519 * opts.c (wrap_help): Same.
8521 * predict.c (predict_paths_leading_to_edge): Same.
8522 * pretty-print.h: Same.
8523 * profile-count.h: Same.
8525 * read-rtl-function.c: Same.
8528 * regrename.c: Same.
8529 * regrename.h: Same.
8532 * rtl.h (costs_add_n_insns): Same.
8534 * sched-int.h: Same.
8535 * sel-sched-ir.h: Same.
8537 * sese.h (vec_find): Same.
8539 * target-globals.h: Same.
8540 * tree-affine.c (aff_combination_find_elt): Same.
8541 * tree-affine.h: Same.
8542 * tree-data-ref.h: Same.
8543 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
8544 * tree-predcom.c: Same.
8545 * tree-scalar-evolution.c (find_var_scev_info): Same.
8546 * tree-ssa-alias.h: Same.
8547 * tree-ssa-ccp.c: Same.
8548 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
8549 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
8550 (rewrite_mem_refs): Same.
8551 (execute_sm_if_changed): Same.
8552 (hoist_memory_references): Same.
8553 * tree-ssa-loop-ivopts.c (operator<=): Same.
8554 * tree-ssa-loop.h: Same.
8555 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
8556 * tree-ssa-structalias.c: Same.
8557 * tree-switch-conversion.h (cluster::cluster): Same.
8558 (simple_cluster::simple_cluster): Same.
8559 * tree-vect-patterns.c (type_conversion_p): Same.
8560 * tree-vectorizer.c (dump_stmt_cost): Same.
8561 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
8562 * tree.c (protected_set_expr_location): Same.
8563 * tree.h (desired_pro_or_demotion_p): Same.
8564 (fndecl_built_in_p): Same.
8565 * unique-ptr-tests.cc: Same.
8566 * var-tracking.c (delete_variable_part): Same.
8567 * varasm.c (assemble_real): Same.
8568 (tree_output_constant_def): Same.
8570 * wide-int-bitmask.h: Same.
8571 * wide-int.h (decompose): Same.
8573 2019-07-09 Richard Biener <rguenther@suse.de>
8575 PR tree-optimization/91114
8576 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
8577 find a vector type isn't fatal.
8579 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
8581 * config/aarch64/aarch64-simd.md
8582 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
8583 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
8584 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
8585 (*aarch64_crypto_aese_fused,
8586 *aarch64_crypto_aesd_fused): Update to new definition.
8587 * config/aarch64/aarch64.c
8588 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
8590 2019-07-09 Richard Biener <rguenther@suse.de>
8592 * gimple-match.h (gimple_match_op::resimplify): New.
8593 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
8594 gimple_resimplify4, gimple_resimplify5): Remove.
8595 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
8596 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
8598 (gimple_match_op::resimplify): New.
8599 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
8600 according to availability. Use gimple_match_op::resimplify.
8602 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
8604 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
8606 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
8608 * config/arm/crypto.md:
8609 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
8610 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
8611 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
8612 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
8614 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
8615 * config/arm/aarch-common-protos.h
8616 (aarch_crypto_can_dual_issue): Remove.
8617 * config/arm/aarch-common.c
8618 (aarch_crypto_can_dual_issue): Likewise.
8619 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
8620 * config/arm/cortex-a53.md: Likewise.
8621 * config/arm/cortex-a57.md: Likewise.
8622 * config/arm/iterators.md:
8623 (CRYPTO_BINARY): Redefine.
8624 (CRYPTO_UNARY): Removed.
8625 (CRYPTO_AES, CRYPTO_AESMC): New.
8627 2019-07-09 Richard Biener <rguenther@suse.de>
8629 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
8630 (vn_reference_lookup_3): If the main ref has no access path recorded
8631 but orig_ref has use it to do access-path based disambiguation.
8632 (vn_reference_lookup_pieces): Adjust.
8633 (vn_reference_lookup): Pass down original ref if we valueized.
8635 2019-07-09 Martin Liska <mliska@suse.cz>
8637 * doc/extend.texi: Document influence on loop
8640 2019-07-09 Martin Liska <mliska@suse.cz>
8642 * lto-compress.c (lto_normalized_zstd_level): Do not use
8643 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
8644 of libzstd. One can use 0 as a default compression level.
8646 2019-07-09 Martin Liska <mliska@suse.cz>
8648 * doc/invoke.texi: Add link from -fprofile-dir option.
8649 Use better wording for 'gcno filename'.
8651 2019-07-08 Martin Sebor <msebor@redhat.com>
8655 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
8657 (args_loc_t): New type.
8658 (args_loc_t, locmap_t): same.
8659 (diag_returned_locals): New function.
8660 (is_addr_local): Same.
8661 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
8662 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
8663 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
8665 2019-07-08 Jakub Jelinek <jakub@redhat.com>
8667 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
8668 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
8669 and casts in offset when different, both through gimple stmts
8670 and through trees. Rewritten using loops to minimize code duplication
8673 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
8675 * emit-rtl.c (set_insn_locations): New function moved from...
8676 * function.c (set_insn_locations): ...here.
8677 * ira-emit.c (emit_moves): Propagate location of the first instruction
8678 to the inserted move instructions.
8679 * reg-stack.c (compensate_edge): Set the location if the sequence is
8680 inserted on the edge.
8681 * rtl.h (set_insn_locations): Declare.
8683 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
8685 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
8686 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
8689 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
8691 PR rtl-optimization/88233
8692 * common.opt (fsplit-wide-types-early): New option.
8693 * common/config/rs6000/rs6000-common.c
8694 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
8696 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
8697 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
8698 flag_split_wide_types_early.
8699 (pass_data_lower_subreg3): New.
8700 (pass_lower_subreg3): New.
8701 (make_pass_lower_subreg3): New.
8702 * passes.def (pass_lower_subreg2): Move after the loop passes.
8703 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
8704 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
8705 the pass pipeline; its previous place is taken by ...
8706 (make_pass_lower_subreg3): ... this.
8708 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
8710 * config/s390/s390.c (s390_shift_truncation_mask): Define.
8711 (TARGET_SHIFT_TRUNCATION_MASK): Define.
8713 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
8715 * config/s390/constraints.md: Add new jsc constraint.
8716 * config/s390/predicates.md: New predicates.
8717 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
8718 * config/s390/s390.c (s390_valid_shift_count): New function.
8719 (print_shift_count_operand): Use s390_valid_shift_count.
8720 (print_operand): Likewise.
8721 * config/s390/s390.md: Use new predicate.
8722 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
8723 * config/s390/vector.md: Use new predicate.
8725 2019-07-08 Andrew Waterman <andrew@sifive.com>
8726 Jim Wilson <jimw@sifive.com>
8728 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
8729 bitsize instead of BITS_PER_WORD.
8731 2019-07-08 Martin Liska <mliska@suse.cz>
8733 * collect2.c (defined): Revert to before r254460.
8734 (scan_prog_file): Revert to before r254460.
8736 2019-07-08 Richard Biener <rguenther@suse.de>
8738 PR tree-optimization/83518
8739 * tree-ssa-sccvn.c: Include splay-tree.h.
8740 (struct pd_range, struct pd_data): New.
8741 (struct vn_walk_cb_data): Add data to track partial definitions.
8742 (vn_walk_cb_data::~vn_walk_cb_data): New.
8743 (vn_walk_cb_data::push_partial_def): New.
8744 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
8745 (vn_reference_lookup_2): When partial defs are registered give up.
8746 (vn_reference_lookup_3): Track partial defs for memset and
8747 constructor zeroing and for defs from constants.
8749 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
8751 * doc/install.texi (bootstrap-Og): Document.
8753 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
8755 * config/riscv/pic.md (*local_pic_load_s<mode>)
8756 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
8757 referenced by <mode>, giving...
8758 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
8759 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
8760 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
8761 use <X:MODE> for the mode attribute.
8763 2019-07-07 Jeff Law <law@redhat.com>
8765 PR tree-optimization/91090
8766 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
8767 in handling of ranges to simplify switch statements.
8769 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
8771 * config/darwin.c (darwin_override_options): Make a final check on PIC
8774 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
8776 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
8779 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
8782 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
8783 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
8784 instead of matching them to "l" output operands.
8786 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
8788 * config/mips/mips.c (mips_split_move): Zero-initialize addr
8789 and check whether addr.reg is nonnull before using it.
8791 2019-07-06 Jakub Jelinek <jakub@redhat.com>
8793 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
8794 ctx->for_simd_scan_phase simd copy the outer var to the privatized
8795 variable(s). For conditional lastprivate look through outer
8796 GIMPLE_OMP_SCAN context.
8797 (lower_omp_1): For conditional lastprivate look through outer
8798 GIMPLE_OMP_SCAN context.
8800 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
8801 member to combined_into_simd_safelen1.
8802 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
8803 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
8804 clauses if ctx->combined_into_simd_safelen1 put statements after the
8805 predicate conditionalized block rather than into it.
8807 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8809 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
8811 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
8812 Make the choice of <mode> explicit, giving...
8813 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
8815 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8817 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
8818 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
8820 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
8821 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
8822 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
8823 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
8824 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
8825 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
8826 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
8827 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
8828 (*avx512f_scatterdi<mode>): Likewise.
8829 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
8831 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8833 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
8834 specify the mode iterator referenced by <mode>, giving...
8835 (*push1_h8300hs_<QHI:mode>): ...this.
8837 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8839 * config/gcn/gcn-valu.md
8840 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
8841 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
8842 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
8843 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
8844 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
8845 but using the _exec comparison patterns.
8846 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
8847 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
8848 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
8849 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
8850 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
8851 but using the _exec comparison patterns.
8853 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8855 * config/arm/sync.md
8856 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
8857 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
8858 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
8859 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
8862 2019-07-06 Jakub Jelinek <jakub@redhat.com>
8864 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
8865 (maybe_lookup_ctx): Add forward declaration.
8866 (omp_find_scan): Likewise. Walk into body of simd if composited
8867 with worksharing loop.
8868 (scan_omp_simd_scan): New function.
8869 (scan_omp_1_stmt): Call it.
8870 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
8871 ctx->for_simd_scan_phase.
8872 (lower_rec_input_clauses): Do much less work for inscan reductions
8873 in ctx->for_simd_scan_phase is_simd regions.
8874 (lower_omp_scan): Set is_simd also on simd constructs composited
8875 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
8876 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
8877 emit their body after in simd constructs composited with worksharing
8879 (lower_omp_for_scan): Handle worksharing loop composited with simd.
8881 * omp-low.c (omp_find_scan): Make static.
8882 (lower_omp_for_scan): Fix order of merge arguments in input phase of
8883 the second loop, var2 represents the first partial sum and so needs
8884 to go before rprivb[ivar].
8886 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
8888 * config/rs6000/rs6000-logue.c: Remove unused code.
8890 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
8892 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
8894 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
8897 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
8898 check with a frame laid out check.
8900 2019-07-05 Richard Biener <rguenther@suse.de>
8902 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
8903 when comparing against a store with possibly the same value.
8905 2019-07-05 Richard Biener <rguenther@suse.de>
8907 PR tree-optimization/91091
8908 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
8909 (walk_non_aliased_vuses): Likewise.
8910 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
8911 (get_continuation_for_phi): New tbaa_p parameter and pass
8913 (walk_non_aliased_vuses): Likewise.
8914 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
8915 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
8916 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
8918 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
8919 (adjust_offsets_for_equal_base_address): New function.
8920 (vn_reference_lookup_3): Use it to catch more base equivalences.
8921 Handle and pass down tbaa_p flag.
8922 (vn_reference_lookup_pieces): Adjust.
8923 (vn_reference_lookup): Remove alias-set altering, instead pass
8924 down false as tbaa_p.
8926 2019-07-05 Richard Biener <rguenther@suse.de>
8928 PR tree-optimization/91091
8929 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
8930 accesses can happen with -fno-strict-aliasing.
8932 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
8934 * tree-ssa-alias.c (alias_stats): Add
8935 nonoverlapping_component_refs_since_match_p_must_overlap.
8936 (dump_alias_stats): Print it.
8937 (nonoverlapping_component_refs_since_match_p): Add early exit.
8938 (nonoverlapping_component_refs_p): Do not account early exit.
8940 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
8942 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
8943 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
8944 (emit_eh_dispatch): Delete.
8945 (lower_catch): Emit the eh_dispatch manually and set the location of
8946 the first catch statement onto it.
8947 (lower_eh_filter): Emit the eh_dispatch manually and set location.
8948 (lower_eh_dispatch): Propagate location.
8949 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
8950 (eliminate_build): Likewise.
8952 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
8954 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
8955 phi nodes if possible.
8956 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
8957 location info on the newly created statement.
8958 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
8959 newly created increment if needed.
8961 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8964 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
8965 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
8966 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
8967 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
8968 ctx->add_safelen1 is set.
8970 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
8971 GOMP_loop_start at the start of second worksharing loop in a scan.
8972 For nowait, don't emit GOMP_loop_end_nowait at the end of first
8973 worksharing loop in a scan even if there are conditional lastprivates,
8974 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
8976 2019-07-04 Jan Hubicka <jh@suse.cz>
8978 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
8979 Fix check for match in the ref walk.
8981 2019-07-04 Martin Liska <mliska@suse.cz>
8983 * tree-ssa-loop-niter.c
8984 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
8985 (estimate_numbers_of_iterations):
8986 Support __builtin_expect_with_probability for analysis
8987 of # of loop iterations.
8989 2019-07-04 Alexandre Oliva <oliva@adacore.com>
8991 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
8992 * except.c: Likewise.
8993 * expr.c (expand_expr_real_1): Reject it.
8994 * gimplify.c (gimplify_expr): Gimplify it, within
8996 * tree-dump.c (dequeue_and_dump): Dump it.
8997 * tree-pretty-print.c (dump_generic_node): Likewise.
8998 * tree.c (block_may_fallthru): Handle it.
8999 * tree.def (EH_ELSE_EXPR): Introduce it.
9000 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
9001 with GIMPLE_EH_ELSE as try/finally/else.
9003 2019-07-04 Richard Biener <rguenther@suse.de>
9006 * tree-pass.h (execute_all_ipa_transforms): Add a flag
9007 parameter whether to disable GC collection.
9008 * passes.c (execute_one_ipa_transform_pass): Likewise, and
9010 (execute_all_ipa_transforms): Likewise and pass it down.
9011 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
9012 collection from applying IPA transforms.
9013 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
9014 from applying IPA transforms.
9016 2019-07-04 Richard Biener <rguenther@suse.de>
9018 PR tree-optimization/90911
9019 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
9020 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
9021 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
9022 scalar_loop_scaling.
9023 (vect_transform_loop): Scale scalar loop profile if needed.
9024 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
9025 the loop copy from if-conversion adjust edge probabilities
9026 and scale the vectorized loop body profile, queue the scalar
9027 profile for updating after peeling.
9029 2019-07-04 Jan Hubicka <jh@suse.cz>
9031 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
9032 parameters; return early for must-alias.
9033 (indirect_ref_may_alias_decl_p): Likewise; when establishing
9034 outer types match, try nonoverlapping_component_refs
9035 if must-alias is not obvious.
9036 (indirect_refs_may_alias_p): Likewise.
9037 (refs_may_alias_p_2): Likewise.
9039 2019-07-04 Richard Biener <rguenther@suse.de>
9041 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
9043 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
9045 (struct vn_walk_cb_data): New callback data struct.
9046 (vn_reference_lookup_2): Adjust.
9047 (vn_reference_lookup_3): Likewise.
9048 (vn_reference_lookup_pieces): Likewise.
9049 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
9050 (visit_reference_op_load): Adjust.
9052 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9054 PR tree-optimization/91063
9055 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
9056 stmt from stmts sequence before calling vect_init_vector_1.
9059 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9062 * fwprop.c (reg_single_def_p): New function.
9063 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
9064 (forward_propagate_into): New parameter reg_prop_only
9065 with default value false.
9066 Propagate def's src into loop only if SET_SRC and SET_DEST
9067 of def_set have single definitions.
9068 Likewise if reg_prop_only is set to true.
9069 (fwprop): New param fwprop_addr_p.
9070 Integrate fwprop_addr into fwprop.
9071 (fwprop_addr): Remove.
9072 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
9074 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
9075 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
9076 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
9078 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9080 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
9081 in worksharing loop scans.
9083 PR tree-optimization/91074
9084 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
9087 PR rtl-optimization/90756
9088 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
9091 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
9093 * config/aarch64/aarch64.md: Remove redundant constraints from
9094 define_expand but keep some patterns untouched if they are
9095 specially selected by TARGET_SECONDARY_RELOAD hook.
9096 * config/aarch64/aarch64-sve.md: Likewise.
9097 * config/aarch64/atomics.md: Remove redundant constraints from
9099 * config/aarch64/aarch64-simd.md: Likewise.
9101 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
9103 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
9104 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
9105 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
9107 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
9110 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
9112 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
9113 (STARTFILE_SPEC): Split crt3 into a separate spec.
9114 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
9115 (DARWIN_CRT2_SPEC): New.
9116 (DARWIN_CRT3_SPEC): New.
9117 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
9118 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
9119 (DARWIN_CRT3_SPEC): New.
9121 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
9123 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
9124 Change the RTL attribute "length" from "4" to "*" to allow the
9125 length attribute to be adjusted automatically for prefixed load,
9126 store, and add immediate instructions.
9127 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
9129 (extendsi<mode>2, EXTSI iterator): Likewise.
9130 (movsi_internal1): Likewise.
9131 (movsi_from_sf): Likewise.
9132 (movdi_from_sf_zero_ext): Likewise.
9133 (mov<mode>_internal): Likewise.
9134 (movcc_internal1, QHI iterator): Likewise.
9135 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
9136 (movsf_from_si): Likewise.
9137 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
9138 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
9139 (mov<mode>, FMOVE128 iterator): Likewise.
9140 (movdi_internal64): Likewise.
9141 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
9143 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
9144 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
9145 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
9146 (vsx_splat_v4sf): Likewise.
9148 2019-07-03 Mark Wielaard <mark@klomp.org>
9151 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
9152 DW_AT_addr_base if there is actually a .debug_addr section with
9154 (output_addr_table): Add DWARF5 table header generation here after
9155 checking there are actually any addresses from...
9156 (dwarf2out_finish): ...here.
9158 2019-07-03 Richard Biener <rguenther@suse.de>
9161 * match.pd (vec_perm -> bit_insert): Fix element read from
9164 2019-07-03 Martin Liska <mliska@suse.cz>
9166 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
9167 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
9169 * generic-match-head.c: Include dbgcnt.h.
9170 * gimple-match-head.c: Likewise.
9172 2019-07-03 Martin Liska <mliska@suse.cz>
9174 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
9175 (GCOV_COUNTER_V_TOPN): New.
9176 (GCOV_COUNTER_V_INDIR): Use _topn.
9177 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
9178 (GCOV_TOPN_VALUES): New.
9179 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
9180 (GCOV_TOPN_VALUES_COUNTERS): New.
9181 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
9183 (gimple_init_gcov_profiler): Rename variables from one_value
9185 (gimple_gen_one_value_profiler): Remove.
9186 (gimple_gen_topn_values_profiler): New function.
9187 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
9188 names instead of SINGLE_VALUE.
9189 (stream_out_histogram_value): Likewise.
9190 (stream_in_histogram_value): Likewise.
9191 (get_most_common_single_value): Likewise.
9192 (gimple_divmod_fixed_value_transform): Likewise.
9193 (gimple_stringops_transform): Likewise.
9194 (gimple_divmod_values_to_profile): Likewise.
9195 (gimple_stringops_values_to_profile): Likewise.
9196 (gimple_find_values_to_profile): Likewise.
9197 * value-prof.h (enum hist_type): Rename to TOPN.
9198 (gimple_gen_one_value_profiler): Remove.
9199 (gimple_gen_topn_values_profiler): New.
9201 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
9203 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
9204 if it has the DW_AT_data_member_location attribute.
9206 2019-07-03 Richard Biener <rguenther@suse.de>
9208 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
9211 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
9213 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
9214 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
9215 (tlsdesc_small_sve_<mode>): Likewise.
9217 2019-07-03 Martin Liska <mliska@suse.cz>
9219 * Makefile.in: Define ZSTD_LIB.
9220 * common.opt: Adjust compression level
9221 to support also zstd levels.
9222 * config.in: Regenerate.
9223 * configure: Likewise.
9224 * configure.ac: Add --with-zstd and --with-zstd-include options
9226 * doc/install.texi: Mention zstd dependency.
9227 * gcc.c: Print supported LTO compression algorithms.
9228 * lto-compress.c (lto_normalized_zstd_level): Likewise.
9229 (lto_compression_zstd): Likewise.
9230 (lto_uncompression_zstd): Likewise.
9231 (lto_end_compression): Dispatch in between zlib and zstd.
9232 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
9233 (lto_uncompression_zlib): Make it static.
9234 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
9235 * lto-section-in.c (lto_get_section_data): Pass info
9236 about used compression.
9237 * lto-streamer-out.c: By default use zstd when possible.
9238 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
9239 (TV_IPA_LTO_COMPRESS): Likewise for compression.
9241 2019-07-03 Martin Liska <mliska@suse.cz>
9243 * lto-section-in.c (lto_get_section_data): Add "lto" section.
9244 * lto-section-out.c (lto_destroy_simple_output_block): Never
9245 compress LTO_section_lto section.
9246 * lto-streamer-out.c (produce_asm): Do not set major_version
9248 (lto_output_toplevel_asms): Likewise.
9249 (produce_lto_section): New function.
9250 (lto_output): Call produce_lto_section.
9251 (lto_write_mode_table): Do not set major_version and
9253 (produce_asm_for_decls): Likewise.
9254 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
9256 (struct lto_header): Remove.
9257 (struct lto_section): New struct.
9258 (struct lto_simple_header): Do not inherit from lto_header.
9259 (struct lto_file_decl_data): Add lto_section_header field.
9261 2019-07-03 Martin Liska <mliska@suse.cz>
9263 * lra-eliminations.c (eliminate_regs_in_insn): Remove
9265 * reg-stack.c (check_asm_stack_operands): Likewise.
9266 * tree-ssa-structalias.c (create_function_info_for): Likewise.
9267 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
9268 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
9271 2019-07-03 Martin Liska <mliska@suse.cz>
9273 PR tree-optimization/90892
9274 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
9275 in string constants.
9277 2019-07-03 Martin Liska <mliska@suse.cz>
9280 * multiple_target.c (create_dispatcher_calls): Add to comdat
9281 group only if set for ifunc.
9283 2019-07-03 Martin Liska <mliska@suse.cz>
9286 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
9287 Define local_object_name in outer scope in order to handle
9288 use-after-scope issue.
9290 2019-07-03 Martin Liska <mliska@suse.cz>
9292 * common.opt: Add fprofile-note.
9293 * coverage.c (coverage_init): Append the option
9295 * doc/invoke.texi: Document -fprofile-note.
9297 2019-07-03 Jakub Jelinek <jakub@redhat.com>
9299 PR tree-optimization/91033
9300 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
9301 vect_analyze_data_refs): Add bool * arguments.
9302 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
9303 if failure is due to scatter/gather, set *fatal to false if non-NULL.
9304 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9305 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
9306 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
9307 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
9308 vect_analyze_data_refs caller.
9310 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
9312 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
9313 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
9314 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
9315 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9316 OMP_CLAUSE__SCANTEMP_ entry.
9317 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
9318 * tree-pretty-print.c (dump_omp_clause): Likewise.
9319 * tree-nested.c (convert_nonlocal_omp_clauses,
9320 convert_local_omp_clauses): Likewise.
9321 * omp-general.h (struct omp_for_data): Add have_scantemp and
9322 have_nonctrl_scantemp members.
9323 * omp-general.c (omp_extract_for_data): Initialize them.
9324 * omp-low.c (struct omp_context): Add scan_exclusive member.
9325 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
9326 result again with GF_OMP_FOR_KIND_MASK. Initialize also
9327 ctx->scan_exclusive.
9328 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
9329 of !ctx->scan_inclusive.
9330 (lower_rec_input_clauses): Simplify gimplification of dtors using
9331 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
9332 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
9333 loops. Don't add barrier for reduction_omp_orig_ref if
9334 ctx->scan_??xclusive.
9335 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
9336 (lower_omp_scan): Use ctx->scan_exclusive instead
9337 of !ctx->scan_inclusive. Handle worksharing loops with inscan
9338 reductions. Use new_vard != new_var instead of repeated
9339 omp_is_reference calls.
9340 (omp_find_scan, lower_omp_for_scan): New functions.
9341 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
9343 * omp-expand.c (expand_omp_scantemp_alloc): New function.
9344 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
9345 and fd->have_scantemp.
9347 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
9348 on worksharing loop propagate it as shared clause to containing
9351 * omp-expand.c (expand_omp_for_static_nochunk,
9352 expand_omp_for_static_chunk): For nowait worksharing loop with
9353 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
9356 2019-07-02 qing zhao <qing.zhao@oracle.com>
9358 PR preprocessor/90581
9359 * doc/cppopts.texi: Add document for -fmax-include-depth.
9360 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
9362 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
9364 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
9365 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
9366 (mmx_packssdw): Ditto.
9367 (mmx_punpckhbw): Ditto.
9368 (mmx_punpcklbw): Ditto.
9369 (mmx_punpckhwd): Ditto.
9370 (mmx_punpcklwd): Ditto.
9371 (mmx_punpckhdq): Ditto.
9372 (mmx_punpckldq): Ditto.
9373 (*vec_dupv4hi): Ditto.
9374 (*vec_dupv2si): Ditto.
9375 (mmx_pmovmskb): Ditto.
9376 * config/i386/sse.md (sse_cvtpi2ps): Use
9377 TARGET_SSE2 && SSE_REG_P in split condition.
9378 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
9379 TARGET_SSSE3 && SSE_REGNO_P in split condition.
9380 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
9381 (ssse3_pshufbv8qi3): Ditto.
9382 (ssse3_palignrdi): Ditto.
9384 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
9386 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
9387 with inlined save and restore.
9389 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
9391 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
9392 to be inserted on single successor edge of the entry block. Then call
9393 commit_edge_insertions instead of inserting the instructions manually.
9394 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
9395 RTL expansion and rebuild jump labels chain.
9397 2019-07-02 Richard Biener <rguenther@suse.de>
9399 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
9401 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
9403 * tree.c (build_common_tree_nodes): Initialize them.
9404 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
9405 Make declarations comments.
9406 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
9407 chrec_known): Remove definitions.
9408 (initialize_scalar_evolutions_analyzer): Remove.
9409 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
9410 * tree-streamer.c (preload_common_nodes): Do not preload
9411 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
9413 2019-07-02 Jan Hubicka <jh@suse.cz>
9415 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
9418 2019-07-02 Jan Hubicka <jh@suse.cz>
9420 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
9422 (nonoverlapping_component_refs_since_match_p): ... this one;
9423 handle also non-decl bases; return -1 if search gave up.
9424 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
9425 nonoverlapping_component_refs_of_decl_p_no_alias to
9426 nonoverlapping_component_refs_since_match_p_may_alias,
9427 nonoverlapping_component_refs_since_match_p_no_alias.
9428 (dump_alias_stats): Update dumping.
9429 (aliasing_matching_component_refs_p): Break out from ...;
9430 dispatch to nonoverlapping_component_refs_for_decl_p
9431 and nonoverlapping_component_refs_since_match_p.
9432 (aliasing_component_refs_p): ... here; call
9433 nonoverlapping_component_refs_p in scenarios where we can not
9434 precisely determine base match.
9435 (decl_refs_may_alias_p): Use
9436 nonoverlapping_component_refs_since_match_p.
9437 (indirect_ref_may_alias_decl_p): Do not call
9438 nonoverlapping_component_refs_p.
9439 (indirect_refs_may_alias_p): Likewise.
9441 2019-07-02 Jan Hubicka <jh@suse.cz>
9443 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
9444 to clobber of return value.
9446 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9448 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
9449 for is_neon_type instructions that have not already been categorized.
9451 2019-07-02 Richard Biener <rguenther@suse.de>
9453 PR tree-optimization/58483
9454 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
9455 for MEM_REF base hashing.
9456 (equal_mem_array_ref_p): Likewise for base comparison.
9458 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9460 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
9462 (signbit<mode>2): Use that name. Simplify.
9464 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
9467 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
9468 Tune heuristic from PR71016 to allow MIN / MAX.
9470 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9472 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
9474 (abs<mode>2): Use that name. Simplify.
9476 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9478 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
9480 (neg<mode>2): Use that name. Simplify.
9482 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9484 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
9486 (abs<mode>2): Use that name. Simplify.
9488 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9490 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
9492 (neg<mode>2): Use that name. Simplify.
9494 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
9496 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
9497 ("enabled" attribute): Handle sse_noavx isa attribute.
9498 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
9499 Use TARGET_SSE && SSE_REGNO_P in split condition.
9500 (*vec_dupv2sf): Ditto.
9502 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9504 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
9506 (floatsi<mode>2): Use that name. Simplify.
9508 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9510 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
9512 (extenddf<mode>2_vsx): Make this a parameterized name.
9513 (extenddf<mode>2): Use those names. Simplify.
9515 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9517 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
9519 (eh_return): Use that name. Simplify.
9521 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9523 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
9524 (doloop_end): Use that name. Simplify.
9526 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9528 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
9530 (indirect_jump): Use that name. Simplify.
9532 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9534 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
9536 (abs<mode>2): Use that name. Simplify.
9538 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9540 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
9542 (fix_trunc<mode>si2): Use that name. Simplify.
9544 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9546 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
9547 (allocate_stack): Use that name. Simplify.
9549 2019-07-01 Martin Sebor <msebor@redhat.com>
9552 * hash-map.h (hash_map::put): On insertion invoke element ctor.
9553 (hash_map::get_or_insert): Same. Reformat comment.
9554 * hash-set.h (hash_set::add): On insertion invoke element ctor.
9555 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
9556 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
9557 * hash-table.h (hash_table::operator=): Prevent copy assignment.
9558 (hash_table::hash_table (const hash_table&)): Use copy ctor
9559 instead of assignment to copy elements.
9561 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
9562 John David Anglin <danglin@gcc.gnu.org>
9565 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
9566 using saved frame pointer.
9568 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
9571 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
9572 Add frame clobber and schedule blockage.
9574 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
9576 * doc/invoke.texi (Link Options): Further editorial changes to
9577 -flinker-output docs.
9579 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9581 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
9582 Load both operands of a PLUS into registers separately.
9584 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
9586 * config/s390/vector.md: Fix shift count operand printing.
9588 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
9590 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
9592 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
9594 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
9595 Use recog_data to test for an output operand.
9597 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
9599 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
9600 exclude any others that are disparaged or that are bound to need
9602 (ira_get_dup_out_num): Expand comment.
9604 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
9606 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
9607 constraint string for each operand/alternative combo. Only handle
9608 '%' at the start of constraint strings, and look for it outside
9611 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
9613 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
9614 alternative_mask instead of HARD_REG_SET to represent a
9615 bitmask of alternatives.
9616 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
9617 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
9619 2019-07-01 Martin Liska <mliska@suse.cz>
9621 * edit-context.c (test_applying_fixits_unreadable_file): Do not
9622 use () for a constructor call.
9623 (test_applying_fixits_line_out_of_range): Likewise.
9624 * ggc-page.c (alloc_page): Use (void *) for %p printf format
9626 (free_page): Likewise.
9628 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
9630 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
9631 parameter names to match usage (no functional change).
9632 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
9634 2019-07-01 Richard Biener <rguenther@suse.de>
9636 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
9638 (pass_fre::execute): Honor it.
9639 * passes.def: Adjust pass_fre invocations to allow iterating,
9640 add non-iterating pass_fre before late threading/dom.
9642 2019-07-01 Richard Biener <rguenther@suse.de>
9644 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
9645 TARGET_MEM_REF handling to also handle address-taken ones.
9647 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
9649 * doc/sourcebuild.texi (Effective-Target Keywords, Other
9650 hardware attributes): Document avx512vp2intersect.
9652 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
9654 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
9655 (abs<mode>2): New expander.
9656 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
9657 Use CODE_FOR_ssse3_absv8qi2.
9658 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
9659 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
9661 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
9663 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
9664 to sse, sse_noavx and avx. Update all uses.
9666 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
9668 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
9669 (*mmx_<plusminus_insn><mode>3): Ditto.
9670 (*mmx_mulv4hi3"): Ditto.
9671 (*mmx_smulv4hi3_highpart): Ditto.
9672 (*mmx_umulv4hi3_highpart): Ditto.
9673 (*mmx_pmaddwd): Ditto.
9674 (*sse2_umulv1siv1di3): Ditto.
9675 (*mmx_<code>v4hi3): Ditto.
9676 (*mmx_<code>v8qi3): Ditto.
9677 (mmx_ashr<mode>3): Ditto.
9678 ("mmx_<shift_insn><mode>3): Ditto.
9679 (*mmx_eq<mode>3): Ditto.
9680 (mmx_gt<mode>3): Ditto.
9681 (mmx_andnot<mode>3): Ditto.
9682 (*mmx_<code><mode>3): Ditto.
9683 (*mmx_pinsrw): Ditto.
9684 (*mmx_pextrw): Ditto.
9685 (mmx_pshufw_1): Ditto.
9686 (*mmx_uavgv8qi3): Ditto.
9687 (*mmx_uavgv4hi3): Ditto.
9688 ("mmx_psadbw): Ditto.
9689 * config/i386/sse.md (sse_cvtps2pi): Ditto.
9690 (sse_cvttps2pi): Ditto.
9691 (ssse3_pmaddubsw): Ditto.
9692 (*ssse3_pmulhrswv4hi3): Ditto.
9693 (ssse3_psign<mode>3): Ditto.
9695 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
9697 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
9698 adjustment for bit-fields to all aggregate types.
9700 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
9702 * config/rs6000/predicates.md (pcrel_address): Use
9703 SYMBOL_REF_LOCAL_P to determine if a label is local.
9704 (pcrel_external_address): New predicate.
9705 (non_prefixed_mem_operand): Delete, predicate not used.
9706 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
9707 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
9709 (SYMBOL_REF_PCREL_P): Likewise.
9712 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
9714 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
9715 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
9716 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
9718 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
9720 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
9721 override on extra_headers.
9723 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
9725 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
9726 * config/darwin-driver.c (darwin_default_min_version): Remove newline
9728 (darwin_driver_init): Likewise.
9730 2019-06-28 Jan Beulich <jbeulich@suse.com>
9732 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
9733 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
9734 Eliminate redundant alternative.
9736 2019-06-28 Jan Beulich <jbeulich@suse.com>
9738 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
9739 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
9742 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
9744 * config/arc/arc.c (arc_rtx_costs): All short instructions are
9745 having a lower cost regardless of the speed option.
9747 2019-06-28 Jan Beulich <jbeulich@suse.com>
9749 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
9750 vector_operand plus, on both alternatives, "Bm" constraint.
9752 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
9754 * config/arm/arm.md: Remove redundant constraints from
9755 define_expand but leave reload_inm and reload_outm patterns
9756 untouched since they need special constraints to work.
9757 * config/arm/arm-fixed.md: Remove redundant constraints from
9759 * config/arm/iwmmxt.md: Likewise.
9760 * config/arm/neon.md: Likewise.
9761 * config/arm/sync.md: Likewise.
9762 * config/arm/thumb1.md: Likewise.
9763 * config/arm/vec-common.md: Likewise.
9765 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
9767 * doc/install.texi: Document --disable-tm-clone-registry.
9769 2019-06-27 Jakub Jelinek <jakub@redhat.com>
9772 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
9775 PR tree-optimization/91010
9776 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
9777 return true. Otherwise, don't call operand_equal_p if offset1 or
9778 offset2 is NULL and just return false.
9780 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
9782 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
9783 user-specified float mode choice for kernel mode code.
9785 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
9787 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
9790 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
9792 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
9793 use longcall for 64b code.
9795 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
9797 * builtins.c (get_memory_rtx): Fix comment.
9798 * optabs.def (movmem_optab): Change to cpymem_optab.
9799 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
9800 (emit_block_move_hints): Change movmem to cpymem.
9801 * defaults.h: Change movmem to cpymem.
9802 * targhooks.c (get_move_ratio): Change movmem to cpymem.
9803 (default_use_by_pieces_infrastructure_p): Ditto.
9804 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
9805 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
9807 * config/aarch64/aarch64.h: Change movmem to cpymem.
9808 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
9809 * config/alpha/alpha.h: Change movmem to cpymem in comment.
9810 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
9812 * config/arc/arc-protos.h: Change movmem to cpymem.
9813 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
9814 * config/arc/arc.h: Change movmem to cpymem in comment.
9815 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
9816 * config/arm/arm-protos.h: Change movmem to cpymem in names.
9817 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
9818 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
9819 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
9820 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
9821 * config/avr/avr-protos.h: Change movmem to cpymem.
9822 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
9823 avr_out_movmem): Change movmem to cpymem.
9824 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
9825 Change movmem to cpymem.
9826 * config/bfin/bfin-protos.h: Change movmem to cpymem.
9827 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
9828 Change movmem to cpymem.
9829 * config/bfin/bfin.h: Change movmem to cpymem in comment.
9830 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
9831 * config/c6x/c6x-protos.h: Change movmem to cpymem.
9832 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
9833 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
9834 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
9835 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
9836 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
9837 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
9838 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
9839 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
9840 expand_small_cpymem_or_setmem,
9841 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
9842 expand_set_or_cpymem_constant_prologue,
9843 ix86_expand_set_or_cpymem): Change movmem to cpymem.
9844 * config/i386/i386-protos.h: Change movmem to cpymem.
9845 * config/i386/i386.h: Change movmem to cpymem in comment.
9846 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
9847 (setmem<mode>): Change expansion function name.
9848 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
9849 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
9850 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
9851 * config/m32c/m32c-protos.h: Change movmem to cpymem.
9852 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
9853 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
9854 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
9856 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
9857 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
9858 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
9859 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
9860 Change movmem to cpymem.
9861 * config/mips/mips.h: Change movmem to cpymem.
9862 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
9863 * config/nds32/nds32-memory-manipulation.c
9864 (nds32_expand_movmemsi_loop_unknown_size,
9865 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
9866 nds32_expand_movmemsi_unroll,
9867 nds32_expand_movmemsi): Change movmem to cpymem.
9868 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
9869 * config/nds32/nds32-protos.h: Change movmem to cpymem.
9870 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
9871 (pa_adjust_insn_length): Change call to compute_movmem_length.
9872 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
9873 movmemdi, movmemdi_prereload,
9874 movmemdi_postreload): Change movmem to cpymem.
9875 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
9876 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
9877 * config/riscv/riscv.c: Change movmem to cpymem in comment.
9878 * config/riscv/riscv.h: Change movmem to cpymem.
9879 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
9880 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
9881 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
9883 * config/s390/s390-protos.h: Change movmem to cpymem.
9884 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
9885 s390_expand_insv): Change movmem to cpymem.
9886 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
9887 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
9888 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
9889 * config/sparc/sparc.h: Change movmem to cpymem in comment.
9890 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
9891 for nonexistent function.
9892 * config/vax/vax.h: Change movmem to cpymem in comment.
9893 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
9894 * config/visium/visium.h: Change movmem to cpymem in comment.
9895 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
9896 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
9897 * doc/md.texi: Change movmem to cpymem and update description to match.
9898 * doc/rtl.texi: Change movmem to cpymem.
9899 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
9900 * doc/tm.texi: Regenerate.
9902 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
9904 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
9905 -fvariable-expansion-in-unroller by default.
9906 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
9909 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
9912 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
9913 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
9915 * config.gcc(rs6000-*-*): Define target_gtfiles.
9917 2019-06-27 Jan Hubicka <jh@suse.cz>
9919 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
9920 (add_type_duplicate): When odr hash is not allocated, to nothing.
9921 (odr_based_tbaa_p): New function.
9922 (set_type_canonical_for_odr_type): New function.
9923 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
9924 set_type_canonical_for_odr_type): New.
9925 * tree.c (gimple_canonical_types_compatible_p): ODR types with
9926 ODR based TBAA are not equivalent to non-ODR types.
9928 2019-06-27 Martin Liska <mliska@suse.cz>
9930 PR tree-optimization/90974
9931 PR rtl-optimization/90975
9932 PR rtl-optimization/90976
9934 PR tree-optimization/91017
9935 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
9937 * lra.c (lra_set_insn_recog_data): Remove a leftover from
9938 initial commit of IRA.
9939 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
9941 * tree-vect-loop.c (vect_create_epilog_for_reduction):
9942 Remove unused mode1.
9943 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
9946 2019-06-27 Jakub Jelinek <jakub@redhat.com>
9949 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
9950 instead of register_operand for operands[1], add m to its constraints
9951 if operands[2] uses "C" constraint. Ensure in condition that if
9952 operands[2] is not 0, then operands[1] is not a MEM. For last two
9953 alternatives, use unaligned loads instead of aligned if operands[1] is
9956 2019-06-27 Martin Liska <mliska@suse.cz>
9958 * asan.c (asan_emit_allocas_unpoison): Remove obviously
9960 * bt-load.c (move_btr_def): Likewise.
9961 * builtins.c (expand_builtin_apply_args_1): Likewise.
9962 (expand_builtin_apply): Likewise.
9963 * cfgexpand.c (expand_asm_stmt): Likewise.
9964 (construct_init_block): Likewise.
9965 * cfghooks.c (verify_flow_info): Likewise.
9966 * cfgloopmanip.c (remove_path): Likewise.
9967 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
9968 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
9969 * combine.c (simplify_if_then_else): Likewise.
9970 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
9971 (choose_basereg): Likewise.
9972 (ix86_expand_prologue): Likewise.
9973 (ix86_preferred_output_reload_class): Likewise.
9974 * cselib.c (cselib_record_sets): Likewise.
9975 * df-scan.c (df_scan_alloc): Likewise.
9976 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
9977 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
9978 * emit-rtl.c (try_split): Likewise.
9979 * graphite-scop-detection.c (assign_parameter_index_in_region):
9981 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
9982 * ira-color.c (setup_profitable_hard_regs): Likewise.
9983 * ira.c (rtx_moveable_p): Likewise.
9984 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9985 * read-rtl.c (read_subst_mapping): Likewise.
9986 * regrename.c (scan_rtx): Likewise.
9987 * reorg.c (fill_slots_from_thread): Likewise.
9988 * tree-inline.c (tree_function_versioning): Likewise.
9989 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
9990 * tree-ssa-sink.c (statement_sink_location): Likewise.
9991 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
9992 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
9993 (vect_create_epilog_for_reduction): Likewise.
9994 * tree.c (build_nonstandard_integer_type): Likewise.
9996 2019-06-27 Richard Biener <rguenther@suse.de>
9998 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
10000 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
10002 PR tree-optimization/89772
10003 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
10004 out-of-bound accesses checking.
10006 2019-06-27 Martin Liska <mliska@suse.cz>
10008 PR tree-optimization/91014
10009 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
10010 when LHS is NULL_TREE.
10012 2019-06-27 Martin Liska <mliska@suse.cz>
10014 * symbol-summary.h (traverse): Pass
10015 argument a to the call of callback.
10016 (gt_ggc_mx): Mark arguments as unused.
10017 (gt_pch_nx): Likewise.
10019 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
10022 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
10025 2019-06-26 Jeff Law <law@redhat.com>
10027 PR tree-optimization/90883
10028 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
10029 (delete_dead_or_redundant_assignment): Likewise.
10031 PR tree-optimization/90883
10032 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
10033 * tree-ssa-dse.c: Update various comments to distinguish between
10034 dead and redundant stores.
10035 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
10036 (dse_optimize_redundant_stores): New function.
10037 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
10038 Distinguish between dead and redundant calls in dump output. All
10040 (delete_dead_or_redundant_assignment): Similarly for assignments.
10041 (dse_optimize_stmt): Handle _CHK variants. For statements which
10042 store 0 into multiple memory locations, try to prove a subsequent
10043 store is redundant.
10045 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
10048 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
10049 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
10051 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
10053 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
10054 (branch_islands): New extern.
10055 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
10056 * config/rs6000/rs6000.c: .. here.
10058 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
10060 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
10061 (powerpc*-*-*) ... to here.
10063 2019-06-26 Jeff Law <law@redhat.com>
10065 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
10066 memcpy, memmove and memset builtins.
10067 (maybe_trim_memstar_call): Likewise.
10069 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
10071 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
10073 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
10075 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
10077 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
10079 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
10081 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
10083 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
10086 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
10088 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
10090 2019-06-26 Richard Biener <rguenther@suse.de>
10093 * tree-inline.c (remap_ssa_name): Copy SSA range info.
10095 2019-06-26 Richard Biener <rguenther@suse.de>
10097 * lto-streamer.h (lto_bitmap_alloc): Remove.
10098 (lto_bitmap_free): Likewise.
10099 * lto-streamer.c (lto_bitmap_alloc): Remove.
10100 (lto_bitmap_free): Likewise.
10101 (lto_obstack): Likewise.
10102 (lto_obstack_initialized): Likewise.
10103 * lto-streamer-out.c (lto_output): Use own obstack for local
10104 bitmap, free it consistently.
10106 2019-06-26 Jakub Jelinek <jakub@redhat.com>
10109 * config/i386/sse.md
10110 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
10111 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
10112 insns if operands[2] is misaligned_operand.
10114 2019-06-26 Li Jia He <helijia@linux.ibm.com>
10116 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
10118 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
10121 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
10123 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
10125 2019-06-26 Martin Liska <mliska@suse.cz>
10127 PR tree-optimization/90973
10128 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
10129 epilogue_cost_vec instead of prologue_cost_vec for
10132 2019-06-26 Martin Liska <mliska@suse.cz>
10134 * bb-reorder.c (connect_better_edge_p): Add missing else
10135 statement in the middle of if-else statements.
10137 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
10138 H.J. Lu <hongjiu.lu@intel.com>
10139 Olga Makhotina <olga.makhotina@intel.com>
10141 * common/config/i386/i386-common.c
10142 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
10143 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
10144 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
10145 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
10146 (ix86_handle_option): Handle -mavx512vp2intersect.
10147 * config/i386/avx512vp2intersectintrin.h: New.
10148 * config/i386/avx512vp2intersectvlintrin.h: New.
10149 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
10150 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10151 AVX512VP2INTERSECT.
10152 * config/i386/i386-builtin-types.def: Add new types.
10153 * config/i386/i386-builtin.def: Add new builtins.
10154 * config/i386/i386-builtins.c: (enum processor_features): Add
10155 F_AVX512VP2INTERSECT.
10156 (static const _isa_names_table isa_names_table): Ditto.
10157 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10158 __AVX512VP2INTERSECT__.
10159 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
10160 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
10161 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
10162 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
10163 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
10164 * config/i386/i386-options.c (ix86_target_string): Add
10165 -mavx512vp2intersect.
10166 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
10167 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
10168 P2HImode and P2QImode.
10169 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
10170 number for P2QImode and P2HImode.
10171 (ix86_regmode_natural_size): New function.
10172 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
10173 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
10174 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
10175 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
10176 * config/i386/i386.opt: Add -mavx512vp2intersect.
10177 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
10178 avx512vp2intersectvlintrin.h.
10179 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
10180 (define_mode_iterator VI48_AVX512VP2VL): New.
10181 (avx512vp2intersect_2intersect<mode>,
10182 avx512vp2intersect_2intersectv16si): New define_insn patterns.
10183 * config.gcc: Add avx512vp2intersectvlintrin.h and
10184 avx512vp2intersectintrin.h to extra_headers.
10185 * doc/invoke.texi: Document -mavx512vp2intersect.
10187 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
10189 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
10191 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
10193 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
10194 savres_routine_syms, savres_routine_name, morestack_ref,
10195 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
10196 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
10197 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
10198 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
10199 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
10200 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
10201 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
10202 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
10203 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
10204 get_stack_clash_protection_probe_interval,
10205 get_stack_clash_protection_guard_size,
10206 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
10207 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
10208 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
10209 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
10210 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
10211 gen_frame_mem_offset, rs6000_savres_routine_name,
10212 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
10213 ptr_regno_for_savres, rs6000_emit_savres_rtx,
10214 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
10215 rs6000_global_entry_point_prologue_needed_p,
10216 rs6000_get_separate_components, rs6000_components_for_bb,
10217 rs6000_disqualify_components, rs6000_emit_prologue_components,
10218 rs6000_emit_epilogue_components, rs6000_set_handled_components,
10219 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
10220 rs6000_output_savres_externs, rs6000_output_function_prologue,
10221 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
10222 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
10223 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
10224 rs6000_output_function_epilogue, gen_add3_const,
10225 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
10226 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
10228 (machine_function): Moved to rs6000.h.
10229 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
10231 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
10232 savres_routine_syms, savres_routine_name, morestack_ref,
10233 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
10234 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
10235 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
10236 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
10237 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
10238 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
10239 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
10240 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
10241 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
10242 get_stack_clash_protection_probe_interval,
10243 get_stack_clash_protection_guard_size,
10244 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
10245 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
10246 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
10247 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
10248 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
10249 gen_frame_mem_offset, rs6000_savres_routine_name,
10250 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
10251 ptr_regno_for_savres, rs6000_emit_savres_rtx,
10252 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
10253 rs6000_global_entry_point_prologue_needed_p,
10254 rs6000_get_separate_components, rs6000_components_for_bb,
10255 rs6000_disqualify_components, rs6000_emit_prologue_components,
10256 rs6000_emit_epilogue_components, rs6000_set_handled_components,
10257 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
10258 rs6000_output_savres_externs, rs6000_output_function_prologue,
10259 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
10260 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
10261 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
10262 rs6000_output_function_epilogue, gen_add3_const,
10263 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
10264 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
10265 to here from rs6000.c.
10266 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
10267 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
10268 quad_address_offset_p) Moved to here from rs6000.c.
10269 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
10270 * config/config.gcc: Add new source file rs6000-logue.c to garbage
10273 2019-06-25 Martin Liska <mliska@suse.cz>
10275 * hash-table.c (hashtab_chk_error): Move here from ...
10276 * hash-table.h (hashtab_chk_error): ... here.
10278 2019-06-25 Martin Liska <mliska@suse.cz>
10280 PR tree-optimization/90978
10281 * df-scan.c (df_update_entry_block_defs): Remove dead else
10283 (df_update_exit_block_uses): Likewise.
10285 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
10286 Andrew Stubbs <ams@codesourcery.com>
10288 * config.gcc (thread_file): Set to gcn for AMD GCN.
10289 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
10290 (TARGET_EMUTLS_VAR_INIT): New hook.
10292 2019-06-25 Martin Jambor <mjambor@suse.cz>
10295 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
10297 2019-06-25 Richard Biener <rguenther@suse.de>
10299 PR tree-optimization/90930
10300 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
10301 into parallel form in the last pass instance.
10303 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
10305 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
10306 (arc_legitimize_pic_address): Simplify and cleanup the function.
10307 (SYMBOLIC_CONST): Remove.
10308 (prepare_pic_move): Likewise.
10309 (prepare_move_operands): Handle complex mov cases here.
10310 (arc_legitimize_address_0): Remove call to
10311 arc_legitimize_pic_address.
10312 (arc_legitimize_address): Remove call to
10313 arc_legitimize_tls_address.
10314 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
10315 (movhi_insn): Likewise.
10317 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10319 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
10321 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
10322 format of "__intN" types for UINTMAX_TYPE.
10323 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
10324 format of "__intN" types for SIZETYPE.
10325 * tree.c (build_common_tree_nodes): Accept "__intN__"
10326 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
10327 * doc/invoke.texi: Document that __intN__ disables pedantic
10330 2019-06-25 Jan Hubicka <jh@suse.cz>
10332 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
10333 base2_alias_set is non-zero before doing TBAA based disambiguation.
10335 2019-06-25 Martin Liska <mliska@suse.cz>
10337 PR tree-optimization/90973
10338 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
10339 of prologue and epilogue.
10341 2019-06-24 Jan Hubicka <jh@suse.cz>
10343 * ipa-utils.h (type_with_linkage_p): Verify that type is
10345 (odr_type_p): Remove extra return.
10346 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
10347 hash STRING_FLAG only for arrays and integers.
10348 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
10349 Update analogously.
10350 * tree-streamer-out.c (pack_ts_type_common_value_fields):
10352 * print-tree.c (print_node): Print cxx-odr-p
10354 * tree.c (need_assembler_name_p): Also check that type
10356 (verify_type_variant): Update verification of SRING_FLAG;
10357 also check CXX_ODR_P.
10358 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
10359 (TYPE_STRING_FLAG): Use it.
10360 (TYPE_CXX_ODR_P): New macro.
10361 * dwarf2out.c (gen_array_type_die): First check that type
10362 is an array and then test string flag.
10364 2019-06-24 Richard Biener <rguenther@suse.de>
10366 PR tree-optimization/90972
10367 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
10368 in common code, dealing with STRING_CST properly.
10370 2019-06-24 Richard Biener <rguenther@suse.de>
10372 PR tree-optimization/90930
10373 PR tree-optimization/90316
10374 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
10375 decrement of limit.
10377 2019-06-24 Martin Sebor <msebor@redhat.com>
10379 * tree-pretty-print.h: Remove unnecessary punctuation characters
10381 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
10383 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
10385 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
10386 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
10387 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
10389 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
10391 * config/rs6000/darwin.h: Handle GCC target pragma.
10393 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
10395 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
10397 2019-06-22 Jeff Law <law@redhat.com>
10399 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10401 2019-06-22 Jan Hubicka <jh@suse.cz>
10403 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
10404 give up on bitfields; continue searching for different refs
10407 2019-06-21 Jakub Jelinek <jakub@redhat.com>
10409 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
10410 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
10411 containing the offset as possible simd lane access. Look through
10412 widening conversion. Move the
10413 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
10415 2019-06-21 Richard Biener <rguenther@suse.de>
10417 PR tree-optimization/90930
10418 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
10419 flag on new stmts to avoid re-processing them.
10421 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
10423 PR c++/90875 - added -Wswitch-outside-range option
10424 * doc/invoke.texi (Wswitch-outside-range): Document.
10426 2019-06-21 Jeff Law <law@redhat.com>
10428 PR tree-optimization/90949
10429 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
10430 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
10432 2019-06-21 Richard Biener <rguenther@suse.de>
10435 * dwarf2out.c (prune_unused_types_walk): Always consider
10436 function-local extern declarations as used.
10438 2019-06-21 Richard Biener <rguenther@suse.de>
10440 PR tree-optimization/90913
10441 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
10442 the scalar variant of if-conversion versioning.
10444 2019-06-21 Jakub Jelinek <jakub@redhat.com>
10446 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
10447 create another "omp scan inscan exclusive" array if
10448 !ctx->scan_inclusive.
10449 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
10450 (lower_omp_scan): Likewise.
10451 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
10452 2-bit bitfield for simd_lane_access_p member.
10453 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
10454 aux == (void *)-4 as simd lane access.
10455 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
10456 comment with permutations to show the canonical permutation order.
10457 (vectorizable_scan_store): Handle exclusive scan.
10458 (vectorizable_store): Call vectorizable_scan_store even for
10459 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
10461 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
10462 "omp simd array" arrays with one byte elements.
10464 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
10466 * config/alpha/alpha.md (@unaligned_store<mode>):
10467 Rename from unaligned_store<mode>.
10468 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
10469 * config/alpha/sync.md (@load_locked_<mode>): Rename
10470 from load_locked_<mode>.
10471 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
10472 (@atomic_compare_and_swap<mode>_1): Rename
10473 from atomic_compare_and_swap<mode>_1.
10474 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
10475 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
10476 Use gen_reload_in_aligned and gen_unaligned_store.
10477 (emit_load_locked): Remove.
10478 (emit_store_conditional): Ditto.
10479 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
10480 (alpha_split_compare_and_swap): Ditto.
10481 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
10482 (alpha_split_compare_and_swap_12): Use gen_load_locked
10483 and gen_store_conditional.
10484 (alpha_split_atomic_exchange): Ditto.
10485 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
10486 (alpha_split_atomic_exchange_12): Use gen_load_locked
10487 and gen_store_conditional.
10489 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
10491 * config/aarch64/aarch64-errata.h: New file.
10492 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
10493 (CA53_ERR_843419_SPEC): Delete.
10494 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
10495 * config/aarch64/aarch64-linux.h: Likewise.
10496 * config/aarch64/aarch64-netbsd.h: Likewise.
10497 * config/aarch64/aarch64-freebsd.h: Likewise.
10499 2019-06-20 Marek Polacek <polacek@redhat.com>
10501 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
10503 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
10505 * config/rs6000/rs6000.md (isa attribute): Add support for
10506 for a future processor.
10508 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
10511 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
10512 standard scalar operation pattern for V2DF.
10513 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
10514 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
10515 (*ieee_<ieee_maxmin><mode>3): Likewise.
10516 (vec_setv2df_0): Likewise.
10518 2019-06-20 Jan Hubicka <jh@suse.cz>
10520 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
10521 parameter; it has no use in gimple memory model.
10522 (indirect_ref_may_alias_decl_p): Update.
10524 2019-06-20 Martin Liska <mliska@suse.cz>
10526 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
10529 2019-06-20 Jakub Jelinek <jakub@redhat.com>
10531 * tree-vect-stmts.c (enum scan_store_kind): New type.
10532 (scan_store_can_perm_p): Change last argument from int * to
10533 vec<enum scan_store_kind> *, record precisely which permutations
10534 need whole vector left shift or that plus VEC_COND_EXPR.
10535 (vectorizable_scan_store): Adjust caller, use whole vector left shift
10536 and additional VEC_COND_EXPR only for those iterations that need it.
10538 2019-06-20 Alexandre Oliva <oliva@adacore.com>
10540 * config.gcc: Fix ARM --with-fpu checking and error message.
10542 2019-06-19 Marek Polacek <polacek@redhat.com>
10544 PR c++/60364 - noreturn after first decl not diagnosed.
10545 * attribs.c (get_attribute_namespace): No longer static.
10546 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
10548 (attr_noreturn_exclusions): Make it extern.
10549 * attribs.h (get_attribute_namespace): Declare.
10550 * tree-inline.c (function_attribute_inlinable_p): Use
10551 get_attribute_name.
10553 2019-06-19 Martin Sebor <msebor@redhat.com>
10555 PR tree-optimization/90626
10556 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
10558 PR tree-optimization/90626
10559 * tree-ssa-strlen.c (strxcmp_unequal): New function.
10560 (handle_builtin_string_cmp): Call it.
10562 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
10564 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
10565 and DARWIN_NOPIE_SPEC.
10566 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
10567 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
10568 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
10569 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
10570 (DARWIN_EXPORT_DYNAMIC): Delete.
10571 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
10572 and pie options processing to darwin.h.
10573 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
10575 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
10577 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
10578 in computing the number of options to be moved.
10580 2019-06-19 Maya Rashish <coypu@sdf.org>
10582 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
10583 (CLEAR_INSN_CACHE) Use it.
10585 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
10587 * config/i386/i386.md (cmpstrnsi): Remove dead code.
10589 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
10591 PR middle-end/84521
10592 * builtins.c (expand_builtin_setjmp_setup): Save
10593 hard_frame_pointer_rtx.
10594 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
10596 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
10598 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
10600 (remove_reg_equal_offset_note): Remove unused function.
10601 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
10603 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10604 (arc_builtin_setjmp_frame_value): Remove function.
10605 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10606 (avr_builtin_setjmp_frame_value): Remove function.
10607 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10608 (ix86_builtin_setjmp_frame_value): Remove function.
10609 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
10610 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10611 (sparc_builtin_setjmp_frame_value): Remove function.
10612 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10613 (vax_builtin_setjmp_frame_value): Remove function.
10614 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
10615 pointer if has_nonlocal_label.
10617 2019-06-19 Jakub Jelinek <jakub@redhat.com>
10619 * doc/md.texi: Document vec_shl_<mode> pattern.
10620 * optabs.def (vec_shl_optab): New optab.
10621 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
10622 argument, if == vec_shl_optab, check for left whole vector shift
10623 pattern rather than right shift.
10624 (expand_vec_perm_const): Add vec_shl_optab support.
10625 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
10627 * tree-vect-generic.c (lower_vec_perm): Support permutations which
10628 can be handled by vec_shl_optab.
10629 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
10630 (check_scan_store): Use it.
10631 (vectorizable_scan_store): If target can't do normal permutations,
10632 try to use whole vector left shifts and if needed a VEC_COND_EXPR
10634 * config/i386/sse.md (vec_shl_<mode>): New expander.
10636 * omp-low.c (lower_rec_input_clauses): Handle references properly
10638 (lower_omp_scan): Likewise.
10640 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10642 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
10643 mem_mode is BLKmode.
10645 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
10648 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
10649 pointer adjustment for the case of no callee-saved registers and
10650 stack frame bigger than 128 bytes.
10652 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
10654 PR middle-end/90862
10655 * omp-low.c (check_omp_nesting_restrictions): Handle
10656 GF_OMP_TARGET_KIND_OACC_DECLARE.
10658 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
10660 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
10661 (@add<mode>3_carry): Rename from add<mode>3_carry.
10662 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
10663 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
10664 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
10665 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
10666 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
10667 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
10668 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
10669 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
10670 (cmpstrnsi): Use gen_cmp_1.
10671 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
10672 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
10673 (@umonitor_<mode>): Rename from umonitor_<mode>.
10674 * config/i386/i386-expand.c (ix86_expand_copysign):
10675 Use gen_copysign3_const and gen_copysign3_var.
10676 (ix86_expand_xorsign): Use gen_xorsign3_1.
10677 (ix86_expand_branch): Use gen_sub3_carry_ccc,
10678 gen_sub3_carry_ccgz and gen_cmp1.
10679 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
10680 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
10681 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
10682 (ix86_split_lshr): Ditto.
10683 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
10685 2019-06-18 Jason Merrill <jason@redhat.com>
10687 * tree.c (build_constructor): Add MEM_STAT_DECL.
10689 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10691 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
10692 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
10693 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
10694 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
10695 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
10696 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
10697 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
10698 Use CC_NZC instead of CC.
10699 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
10700 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
10701 (aarch64_print_operand): Handle E_CC_NZCmode.
10702 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
10703 of gen_set_clobber_cc.
10705 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10707 * config/aarch64/aarch64-sve.md: Tabify file.
10709 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10711 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
10712 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
10713 * config/aarch64/aarch64-sve.md: Use it.
10715 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10717 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
10718 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
10719 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
10720 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
10721 (aarch64_expand_sve_vec_cmp_int): Use it.
10722 (aarch64_expand_sve_vec_cmp_float): Likewise.
10723 * config/aarch64/aarch64-sve.md: Likewise throughout.
10725 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10726 Kugan Vivekanandarajah <kuganv@linaro.org>
10728 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
10729 (*cond_<optab><mode>_z): Fold into...
10730 (*cond_<optab><mode>_any): ...here. Also handle cases in which
10731 operand 4 can be tied to operand 0 (either inherently or via RA).
10733 2019-06-18 Richard Biener <rguenther@suse.de>
10736 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
10737 as if optimized away.
10739 2019-06-18 Tom de Vries <tdevries@suse.de>
10741 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
10742 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
10743 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
10745 (define_insn "@set_softstack_<mode>"): ... this.
10746 (define_insn "omp_simt_enter_<mode>"): Rename to ...
10747 (define_insn "@omp_simt_enter_<mode>"): ... this.
10748 (define_insn "omp_simt_exit_<mode>"): Rename to ...
10749 (define_insn "@omp_simt_exit_<mode>"): ... this.
10751 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10753 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
10754 vf parameter. Restore the previous iv step of nscalars_step,
10755 but give it iv_type rather than compare_type. Tweak code order
10756 to match the comments.
10757 (vect_set_loop_condition_masked): Update accordingly.
10758 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
10759 for iv_precision. Tweak comment formatting.
10761 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
10763 * config/darwin.c: Strip trailing whitespace.
10765 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
10767 * config/darwin.c (darwin_emit_unwind_label): New default to false.
10768 (darwin_override_options): Set darwin_emit_unwind_label as needed.
10770 2019-06-18 Martin Jambor <mjambor@suse.cz>
10773 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
10774 caller does not have flag_ipa_cp set.
10776 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10778 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
10779 from "*fold_left_plus_<mode>", updated operands order.
10780 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
10781 * internal-fn.c (mask_fold_left_direct): New define.
10782 (expand_mask_fold_left_optab_fn): Likewise.
10783 (direct_mask_fold_left_optab_supported_p): Likewise.
10784 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
10785 * optabs.def (mask_fold_left_plus_optab): New optab.
10786 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
10787 masked internal_fn for a reduction ifn.
10788 (vectorize_fold_left_reduction): Add support for masking reductions.
10790 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
10792 PR middle-end/80791
10793 * target.def (predict_doloop_p): New hook.
10794 * targhooks.h (default_predict_doloop_p): New declaration.
10795 * targhooks.c (default_predict_doloop_p): New function.
10796 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
10797 * doc/tm.texi: Regenerate.
10798 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
10799 (TARGET_PREDICT_DOLOOP_P): New macro.
10800 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
10802 2019-06-17 Jakub Jelinek <jakub@redhat.com>
10804 * omp-low.c (struct omp_context): Add scan_inclusive field.
10805 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
10807 (struct omplow_simd_context): Add lastlane member.
10808 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
10809 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
10811 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
10812 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
10813 (lower_omp_scan): New function.
10814 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
10815 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
10816 check 3rd argument if present rather than 2nd.
10817 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
10818 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
10820 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
10821 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
10823 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
10824 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
10825 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
10827 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
10828 IFN_GOMP_SIMD_LANE argument.
10829 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
10830 encoded ->aux value.
10831 * tree-vect-stmts.c: Include attribs.h.
10832 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
10833 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
10835 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
10836 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
10838 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
10841 * config/i386/i386.md (*nabstf2_1): New insn pattern.
10842 (*nabs<mode>2_1): Ditto.
10843 (nabs sse-reg splitter): New splitter.
10844 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
10846 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
10848 PR bootstrap/90873.
10849 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
10852 2019-06-17 Tom de Vries <tdevries@suse.de>
10854 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
10855 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
10856 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
10858 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
10860 (define_insn "omp_simt_enter_insn"): Rename to ...
10861 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
10862 match_operand 0, 1 and 2, as well as the unspec_volatile result.
10863 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
10864 gen_omp_simt_enter_si.
10865 (define_expand "omp_simt_exit"): New.
10866 (define_insn "omp_simt_exit"): Rename to ...
10867 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
10870 2019-06-17 Matthew Green <mrg@eterna.com.au>
10871 Maya Rashish <coypu@sdf.org>
10873 * config.gcc (aarch64*-*-netbsd*): New target.
10874 * config/aarch64/aarch64-netbsd.h: New file.
10875 * config/aarch64/t-aarch64-netbsd: Likewise.
10877 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
10879 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
10880 the access path from base to first VIEW_CONVERT_EXPR or
10883 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
10885 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
10886 access path on BIT_FIELD_REFs.
10888 2019-06-17 Martin Liska <mliska@suse.cz>
10891 * ipa-utils.h (odr_type_p): Remove dead code.
10893 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10895 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
10896 alternative Solaris 11.4 format.
10897 * configure: Regenerate.
10899 2019-06-17 Tom de Vries <tdevries@suse.de>
10901 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
10902 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
10904 (define_insn "call_value_insn"): Rename to ...
10905 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
10907 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
10910 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
10912 PR middle-end/64242
10913 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
10914 frame clobbers and schedule block.
10915 (builtin_longjmp): Likewise.
10917 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10919 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
10920 describe how to perform MSPABI compliant 64-bit shift.
10921 * config/msp430/msp430.md (ashldi3): New define_expand.
10922 (ashrdi3): New define_expand.
10923 (lshrdi3): New define_expand.
10925 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10927 * doc/sourcebuild.texi: Document new effective target keyword
10930 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
10932 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
10933 indirect_refs_may_alias_p): Revert accidental commits.
10935 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
10936 at the end of structures.
10938 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
10940 * config/darwin.c (machopic_indirect_call_target): Use renamed
10941 darwin_picsymbol_stubs to decide on output.
10942 (darwin_override_options): Handle darwin_picsymbol_stubs.
10943 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
10944 (LD64_VERSION): Revise default.
10945 * config/darwin.opt: (mpic-symbol-stubs): New option.
10946 (darwin_picsymbol_stubs): New variable.
10947 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
10948 rename to TARGET_MACHO_PICSYM_STUBS.
10949 * config/i386/i386.c (output_pic_addr_const): Likewise.
10950 * config/i386/i386.h Likewise.
10951 * config/rs6000/darwin.h: Likewise.
10952 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
10953 darwin_picsymbol_stubs.
10955 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
10957 * config/darwin.opt (prebind, noprebind, seglinkedit,
10958 noseglinkedit): Add RejectNegative.
10960 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
10962 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
10963 in my previous patch.
10965 2019-06-16 Tom de Vries <tdevries@suse.de>
10967 PR tree-optimization/89376
10968 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
10970 2019-06-15 Maya Rashish <coypu@sdf.org>
10972 * doc/invoke.texi (Spec Files): Update location of the
10975 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
10977 * doc/extend.texi (Common Function Attributes): Clarify
10978 no_sanitize. Fix grammar.
10980 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
10982 * tree-ssa-alias.c (alias_stats): Add
10983 nonoverlapping_component_refs_p_may_alias,
10984 nonoverlapping_component_refs_p_no_alias,
10985 nonoverlapping_component_refs_of_decl_p_may_alias,
10986 nonoverlapping_component_refs_of_decl_p_no_alias.
10987 (dump_alias_stats): Dump them.
10988 (nonoverlapping_component_refs_of_decl_p): Add stats.
10989 (nonoverlapping_component_refs_p): Add stats; do not stop on first
10992 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
10994 * config/i386/i386.md (and<mode>3): Generate zero-extends for
10995 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
10997 (*anddi3_doubleword): Split before reload. Merge with
10998 anddi->zext pre-reload splitter.
10999 (*andndi3_doubleword): Split before reload.
11000 (*<code>di3_doubleword): Ditto.
11001 (*one_cmpldi2_doubleword): Ditto.
11003 2019-06-15 Jakub Jelinek <jakub@redhat.com>
11005 PR middle-end/90779
11006 * gimplify.c: Include omp-offload.h and context.h.
11007 (gimplify_bind_expr): Add "omp declare target" attributes
11008 to static block scope variables inside of target region or target
11011 2019-06-15 Tom de Vries <tdevries@suse.de>
11013 PR tree-optimization/90009
11014 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
11015 Return NULL if bb contains IFN_UNIQUE.
11017 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
11019 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
11020 (un): New define_mode_attr.
11021 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
11022 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
11023 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
11025 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
11027 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
11029 * config/darwin.opt: Add RejectNegative where needed, reorder
11030 and add minimal functional descriptions.
11032 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
11034 PR rtl-optimization/90765
11035 * calls.c (update_stack_alignment_for_call): New function.
11036 (expand_call): Call update_stack_alignment_for_call when
11037 outgoing parameter is passed in the stack.
11038 (emit_library_call_value_1): Likewise.
11039 * function.c (locate_and_pad_parm): Don't update
11040 stack_alignment_needed and preferred_stack_boundary.
11042 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
11045 * config/i386/i386-features.c
11046 (dimode_scalar_chain::compute_convert_gain): Replace
11047 mmxsse_to_integer with sse_to_integer.
11048 * config/i386/i386.c (ix86_register_move_cost): Verify that
11049 moves between MMX and non-MMX units require secondary memory.
11050 Correct costs of moves between SSE and integer units.
11051 * config/i386/i386.h (processor_costs): Rename cost of moving
11052 SSE register to integer to sse_to_integer. Rename cost of
11054 2019-06-14 Matt Thomas <matt@3am-software.com>
11055 Matthew Green <mrg@eterna.com.au>
11056 Nick Hudson <skrll@netbsd.org>
11057 Maya Rashish <coypu@sdf.org>
11058 Richard Earnshaw <rearnsha@arm.com>
11060 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
11061 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
11062 * config/arm/netbsd-eabi.h: New file.
11063 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
11065 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
11066 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
11067 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
11068 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
11070 2019-06-14 Richard Biener <rguenther@suse.de>
11072 * tree-loop-distribution.c (classify_partition): Return
11073 whether a reduction appeared in all partitions and do not
11074 stop builtin detection because of this.
11075 (distribute_loop): Sort a non-builtin partition last if
11076 there's a reduction in all partitions and make sure the
11077 partition prevailing as last is not a builtin.
11079 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
11082 * ipa-prop.c (add_to_agg_contents_list): New function.
11083 (clobber_by_agg_contents_list_p): Likewise.
11084 (extract_mem_content): Likewise.
11085 (get_place_in_agg_contents_list): Delete.
11086 (determine_known_aggregate_parts): Renamed from
11087 determine_locally_known_aggregate_parts. New parameter
11090 2019-06-13 Martin Sebor <msebor@redhat.com>
11092 PR tree-optimization/90662
11093 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
11096 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
11099 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
11100 dbase is not TARGET_MEM_REF.
11102 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
11104 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
11106 (and<mode>3): Use gen_extend_insn instead of indirect functions.
11107 Do not generate DImode extends for 32bit targets.
11108 (and->zext post-reload splitter): Use gen_extend_insn
11109 instead of indirect functions.
11110 (anddi->zext pre-reload splitter): New.
11111 (*zext<mode>_doubleword_and): Remove.
11112 (*zext<mode>_doubleword): Ditto.
11113 (*zextsi_doubleword): Dittto.
11115 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
11117 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
11118 Use gen_sub3_insn instead of indirect function.
11119 (ix86_expand_ashl_const): Use gen_add2_insn instead of
11121 (ix86_adjust_counter): Ditto.
11123 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
11124 Lijia He <helijia@linux.ibm.com>
11126 PR tree-optimization/77820
11127 * tree-ssa-threadedge.c
11128 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
11130 (thread_across_edge): Add call to
11131 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
11133 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
11135 * config/darwin-driver.c (validate_macosx_version_min): New.
11136 (darwin_default_min_version): Cleanup and validate supplied version.
11137 (darwin_driver_init): Likewise and push cleaned version into opts.
11139 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
11141 PR tree-optimization/90869
11142 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
11143 converts in MEM_REF referencing decl rather than view converts
11144 from decl type to MEM_REF type.
11146 2019-06-13 Richard Biener <rguenther@suse.de>
11148 PR tree-optimization/90856
11149 * tree-sra.c (build_ref_for_model): Only use
11150 build_reconstructed_reference when address-spaces are the same.
11152 2019-06-13 Jakub Jelinek <jakub@redhat.com>
11154 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
11155 wrap ei variable name in the declaration in ()s.
11156 (nvptx_single): Actually use mode_label variable. Formatting fix.
11158 2019-06-13 Richard Biener <rguenther@suse.de>
11160 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
11161 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
11162 also return the condition stmt.
11163 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
11164 loop we can version and version that, reusing the loop version
11165 created by if-conversion instead of versioning again.
11167 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
11169 * gimple-loop-versioning.cc (prune_loop_conditions): Use
11171 * tree-vrp (value_range_base::may_contain_p): Call into
11172 value_inside_range.
11173 (value_inside_range): Make private inside value_range_base class.
11174 Take min/max from *this.
11175 (range_includes_p): Remove.
11176 * tree-vrp.h (value_range_base): Add value_inside_range.
11177 (range_includes_p): Remove.
11178 (range_includes_zero_p): Call may_contain_p.
11179 * vr-values.c (compare_range_with_value): Same.
11181 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
11183 * doc/extend.texi (ARC Function Attributes): Update info.
11185 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
11187 PR tree-optimization/89713
11188 * doc/invoke.texi (-ffinite-loops): Document new option.
11189 * common.opt (-ffinite-loops): New option.
11190 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
11191 IFN_GOACC_LOOP calls as necessary.
11192 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
11194 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
11195 IFN_GOACC_LOOP call is not used.
11196 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
11198 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
11201 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
11202 compare_type is not with Pmode size, we will create an IV with
11203 Pmode size with truncated use (i.e. converted to the correct type).
11204 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
11205 (vect_iv_limit_for_full_masking): New. Factored out of
11206 vect_set_loop_condition_masked.
11207 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
11208 (vect_iv_limit_for_full_masking): Declare.
11210 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
11213 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
11214 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
11215 (get_alias_ptr_type_for_ptr_address): Likewise.
11216 (add_iv_candidate_for_use): Add scaled index candidate if useful.
11217 * tree-ssa-address.c (preferred_mem_scale_factor): New.
11218 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
11221 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
11223 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
11225 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
11227 * common/config/pru/pru-common.c: New file.
11228 * config.gcc: Add PRU target.
11229 * config/pru/alu-zext.md: New file.
11230 * config/pru/constraints.md: New file.
11231 * config/pru/predicates.md: New file.
11232 * config/pru/pru-opts.h: New file.
11233 * config/pru/pru-passes.c: New file.
11234 * config/pru/pru-pragma.c: New file.
11235 * config/pru/pru-protos.h: New file.
11236 * config/pru/pru.c: New file.
11237 * config/pru/pru.h: New file.
11238 * config/pru/pru.md: New file.
11239 * config/pru/pru.opt: New file.
11240 * config/pru/t-pru: New file.
11241 * doc/extend.texi: Document PRU pragmas.
11242 * doc/invoke.texi: Document PRU-specific options.
11243 * doc/md.texi: Document PRU asm constraints.
11245 2019-06-12 Martin Sebor <msebor@redhat.com>
11247 PR middle-end/90676
11248 * tree-pretty-print.c (dump_mem_ref): New function. Include
11249 MEM_REF type in output when different size than operand.
11250 (dump_generic_node): Move code to dump_mem_ref and call it.
11252 2019-06-12 Martin Sebor <msebor@redhat.com>
11254 PR tree-optimization/90662
11255 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
11258 2019-06-12 Tom de Vries <tdevries@suse.de>
11260 PR tree-optimization/90009
11261 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
11263 2019-06-12 Martin Liska <mliska@suse.cz>
11265 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
11267 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
11268 * mem-stats.h (mem_alloc_description::mem_alloc_description):
11269 Do not sanitize created maps.
11271 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
11273 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
11274 value_range::singleton_p.
11275 * tree-vrp.c (value_range_constant_singleton): Remove.
11276 * tree-vrp.h (value_range_constant_singleton): Remove.
11277 * vr-values.c (vr_values::singleton): Use
11278 value_range::singleton_p.
11280 2019-06-12 Jakub Jelinek <jakub@redhat.com>
11283 * cfgexpand.c (align_local_variable): Add really_expand argument,
11284 don't SET_DECL_ALIGN if it is false.
11285 (add_stack_var): Add really_expand argument, pass it through to
11286 align_local_variable.
11287 (expand_one_stack_var_1): Pass true as really_expand to
11288 align_local_variable.
11289 (expand_one_ssa_partition): Pass true as really_expand to
11291 (expand_one_var): Pass really_expand through to add_stack_var.
11293 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
11295 * config/arm/iterators.md (VABAL): New int iterator.
11296 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
11297 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
11298 UNSPEC_VABAL_U values.
11300 2019-06-12 Martin Liska <mliska@suse.cz>
11302 * value-prof.c (stream_out_histogram_value): Only first value
11305 2019-06-12 Jakub Jelinek <jakub@redhat.com>
11308 * symtab.c (symtab_node::set_section): Allow being called on aliases
11309 as long as they aren't analyzed yet.
11311 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
11313 * config/mips/mips.c (mips_final_postscan_insn): Modify call
11314 to `mips_set_text_contents_type' to indicate whether a
11315 non-debug insn follows.
11317 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
11319 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
11320 enabling -mpcrel by default.
11321 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
11322 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
11323 that the test against -mcpu=future is done first. Then test if
11324 -mprefixed-addr is on for -mpcrel.
11325 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
11327 2019-06-11 Jakub Jelinek <jakub@redhat.com>
11330 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
11331 instead of and.u%d.
11333 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
11335 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
11337 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
11339 PR c++/90449 - add -Winaccessible-base option.
11340 * doc/invoke.texi (Winaccessible-base): Document.
11342 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
11344 PR tree-optimization/62041
11345 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
11347 2019-06-11 Jason Merrill <jason@redhat.com>
11349 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
11350 * tree.c (get_tree_code_name): Likewise.
11351 * print-tree.c (print_node): Only briefly print a node with an
11354 2019-06-11 Jakub Jelinek <jakub@redhat.com>
11357 * trans-mem.c (tm_memopt_compute_available): Add assertion
11358 that blocks is not empty. Formatting fix.
11360 2019-06-11 Martin Liska <mliska@suse.cz>
11363 * hash-table.h: Extend create_gcc, add one parameter
11364 that is passed into hash_table::hash_table.
11366 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
11368 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
11370 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
11371 Emit clobber also for non-sse operations.
11372 (ix86_split_fp_absneg_operator): New function.
11373 * config/i386/i386.md (SSEMODEF): New mode iterator.
11374 (ssevecmodef): New mode attribute.
11375 (<code>tf2): Use absneg code iterator.
11376 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
11377 Add three-operand AVX alternatives.
11378 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
11379 Use absneg code iterator and X87MODEF mode iterator.
11380 (absneg fp_reg non-sse splitter): Call absneg code iterator
11381 and X87MODEF mode iterator.
11382 (absneg general_reg non-sse splitter): Use absneg code iterator
11383 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
11384 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
11385 code iterator. Add three-operand AVX alternative.
11386 (absneg sse_reg splitter): Use absneg code iterator
11387 and SSEMODEF mode iterator. Handle AVX operands.
11388 (absneg fp_reg splitter): Use absneg code iterator
11389 and MODEF mode iterator.
11390 (absneg general_reg splitter): Merge splitters using MODEF mode
11391 iterator. Use absneg code iterator. Call
11392 ix86_split_fp_absneg_operator.
11393 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
11394 Do not enable for non-sse modes before reload.
11395 (CSGNMODE): Remove.
11396 (CSGNVMODE): Ditto.
11397 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
11398 ssevecmodef mode attribute instaed of CSGNVMODE.
11399 (copysign<mode>3_const): Ditto.
11400 (copysign<mode>3_var): Ditto.
11401 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
11402 Use absneg code iterator. Simplify code using std::swap.
11403 * config/i386/predicates.md (absneg_operator): Remove.
11405 2019-06-10 Martin Sebor <msebor@redhat.com>
11407 * gimple-fold.c (get_range_strlen): Update comment that didn't
11408 make it into r267503 or related commits.
11410 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
11412 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
11413 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
11415 2019-06-10 Jakub Jelinek <jakub@redhat.com>
11417 * tree.def (OMP_SCAN): New tree code.
11418 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
11419 OMP_CLAUSE_EXCLUSIVE.
11420 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
11421 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
11422 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
11423 OMP_CLAUSE_{IN,EX}CLUSIVE.
11424 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
11425 * tree-nested.c (convert_nonlocal_reference_stmt,
11426 convert_local_reference_stmt, convert_gimple_call): Handle
11428 * tree-pretty-print.c (dump_omp_clause): Handle
11429 OMP_CLAUSE_{IN,EX}CLUSIVE.
11430 (dump_generic_node): Handle OMP_SCAN.
11431 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
11432 * gimple.h (gomp_scan): New type.
11433 (is_a_helper <gomp_scan *>::test,
11434 is_a_helper <const gomp_scan *>::test): New templates.
11435 (gimple_build_omp_scan): Declare.
11436 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
11437 gimple_omp_scan_set_clauses): New inline functions.
11438 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
11439 * gimple.c (gimple_build_omp_scan): New function.
11440 (gimple_copy): Handle GIMPLE_OMP_SCAN.
11441 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
11442 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
11443 GIMPLE_OMP_TASKGROUP.
11444 (dump_gimple_omp_scan): New function.
11445 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
11446 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
11447 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
11448 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
11449 (is_gimple_stmt): Handle OMP_SCAN.
11450 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
11451 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
11452 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
11453 mentioned in nested #pragma omp scan. Handle
11454 OMP_CLAUSE_{IN,EX}CLUSIVE.
11455 (gimplify_expr): Handle OMP_SCAN.
11456 * omp-low.c (check_omp_nesting_restrictions): For parent context,
11457 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
11459 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
11462 2019-06-10 Martin Liska <mliska@suse.cz>
11464 * ipa-cp.c (ignore_edge_p): New function.
11465 (build_toporder_info): Use it.
11466 * ipa-inline.c (ignore_edge_p): New function.
11467 (inline_small_functions): Use it.
11468 * ipa-pure-const.c (ignore_edge_for_nothrow):
11469 Verify opt_for_fn for caller and callee.
11470 (ignore_edge_for_pure_const): Likewise.
11471 * ipa-reference.c (ignore_edge_p): Extend to check
11473 * ipa-utils.c (searchc): Refactor.
11474 * ipa-utils.h: Fix coding style.
11476 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
11478 * config/arc/arc.c (arc_rtx_costs): Update costs.
11480 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
11482 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
11483 (arc_split_ior): Likewise.
11484 (arc_check_mov_const): Likewise.
11485 (arc_split_mov_const): Likewise.
11486 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
11487 (arc_rtx_costs): Replace check Crr with Cax constraint.
11488 (prepare_move_operands): Cleanup, remove unused code.
11489 (arc_split_ior): New function.
11490 (arc_check_ior_const): Likewise.
11491 (arc_split_mov_const): Likewise.
11492 (arc_check_mov_const): Likewise.
11493 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
11494 in define_insn_and_split pattern.
11495 (iorsi3): Likewise.
11496 (mulsi3_v2): Add new matching variant.
11497 (andsi3_i): Cleanup pattern.
11498 (rotrsi3_cnt1): Update pattern.
11499 (rotrsi3_cnt8): New pattern.
11500 (ashlsi2_cnt8): Likewise.
11501 (ashlsi2_cnt16): Likewise.
11502 * config/arc/constraints.md (C0p): Update constraint.
11504 (C0x): New pattern.
11505 (Cax): New pattern.
11507 2019-06-10 Martin Liska <mliska@suse.cz>
11509 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
11510 Update coding style.
11511 (sem_item_optimizer::dump_cong_classes):
11512 Print how many items are in a non-singular class. Improve
11515 2019-06-10 Martin Liska <mliska@suse.cz>
11517 * value-prof.c (dump_histogram_value): Change dump format.
11518 (gimple_mod_subtract_transform): Remove legacy comment.
11520 2019-06-10 Martin Liska <mliska@suse.cz>
11522 * value-prof.c (dump_histogram_value): Print histogram values
11525 2019-06-10 Martin Liska <mliska@suse.cz>
11527 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
11528 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
11529 * ipa-profile.c (ipa_profile_generate_summary):
11530 Use get_most_common_single_value.
11531 * tree-profile.c (gimple_init_gcov_profiler):
11532 Instrument with __gcov_one_value_profiler_v2
11533 and __gcov_indirect_call_profiler_v4.
11534 * value-prof.c (dump_histogram_value):
11535 Print all values for HIST_TYPE_SINGLE_VALUE.
11536 (stream_out_histogram_value): Update assert for
11538 (stream_in_histogram_value): Set number of
11539 counters for HIST_TYPE_SINGLE_VALUE.
11540 (get_most_common_single_value): New.
11541 (gimple_divmod_fixed_value_transform):
11542 Use get_most_common_single_value.
11543 (gimple_ic_transform): Likewise.
11544 (gimple_stringops_transform): Likewise.
11545 (gimple_find_values_to_profile): Set number
11546 of counters for HIST_TYPE_SINGLE_VALUE.
11547 * value-prof.h (get_most_common_single_value): New.
11549 2019-06-10 Martin Liska <mliska@suse.cz>
11551 * hash-map.h: Pass default value to hash_table ctor.
11552 * hash-table.h: Add default value to call of a ctor.
11554 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
11556 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
11557 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
11559 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
11562 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
11563 Call pa_output_function_label.
11564 (TARGET_ASM_FUNCTION_PROLOGUE): define.
11565 * config/pa/pa-protos.h (pa_output_function_label): Declare.
11566 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
11568 (pa_linux_output_function_prologue): Declare.
11569 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
11570 (pa_output_function_label): New.
11571 (pa_output_function_prologue): Revise to use pa_output_function_label.
11572 (pa_linux_output_function_prologue): New.
11573 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
11575 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
11577 * tree-vrp.h (value_range_base::intersect): New.
11578 (value_range::intersect_helper): Move from here...
11579 (value_range_base::intersect_helper): ...to here.
11580 * tree-vrp.c (value_range::intersect_helper): Rename to...
11581 (value_range_base::intersect_helper): ...this, and rewrite to
11582 return a value instead of modifying THIS in place.
11583 Also, move equivalence handling...
11584 (value_range::intersect): ...here, while calling intersect_helper.
11585 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
11587 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
11589 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
11591 2019-06-07 Jakub Jelinek <jakub@redhat.com>
11593 * Makefile.in (genprogerr): Add condmd.
11594 (genprog): Remove it here.
11596 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
11598 * doc/invoke.texi (AMD GCN Options): Add gfx906.
11600 2019-06-07 Richard Biener <rguenther@suse.de>
11603 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
11604 that appear after user labels.
11606 2019-06-07 Martin Liska <mliska@suse.cz>
11608 * cselib.c (cselib_init): Disable hash table
11610 * hash-set.h: Pass new default argument to m_table.
11611 * hash-table.c: Add global variable with hash table
11612 sanitization limit.
11613 * hash-table.h (Allocator>::hash_table): Add new argument
11615 (hashtab_chk_error): New.
11616 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
11617 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
11618 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
11620 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
11622 * common.opt (flto-odr-type-merging): Ignore.
11623 * invoke.texi (-flto-odr-type-merging): Remove.
11624 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
11625 (can_be_vtable_hashed_p): Remove.
11626 (hash_odr_vtable): Remove.
11627 (odr_vtable_hasher::hash): Remove.
11628 (types_same_for_odr): Remove.
11629 (types_odr_comparable): Remove.
11630 (odr_vtable_hasher::equal): Remove.
11631 (odr_vtable_hash_type, odr_vtable_hash): Remove.
11632 (add_type_duplicate): Do not synchronize vtable and name hashtables.
11633 (get_odr_type): Do not use vtable hash.
11634 (dump_odr_type): Remove commented out code.
11635 (build_type_inheritance_graph): Do not allocate vtable hash.
11636 (rebuild_type_inheritance_graph): Do not delete vtable hash.
11637 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
11638 (odr_type_p): Likewise.
11639 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
11642 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
11644 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
11645 immediately after same_types_for_tbaa_p returns -1 and continue
11646 looking for possible exact match; if matching types are arrays
11647 watch for partial overlaps.
11648 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
11649 (indirect_refs_may_alias_p): Do type based disambiguation first;
11652 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
11654 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
11656 2019-06-07 Martin Liska <mliska@suse.cz>
11658 * doc/invoke.texi: Remove param.
11659 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
11661 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
11662 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
11663 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
11664 * profile.c (instrument_values): Remove
11665 HIST_TYPE_INDIR_CALL_TOPN.
11666 * tree-profile.c (init_ic_make_global_vars):
11667 Always build __gcov_indirect_call only.
11668 (gimple_init_gcov_profiler): Remove usage
11669 of PARAM_INDIR_CALL_TOPN_PROFILE.
11670 (gimple_gen_ic_profiler): Likewise.
11671 * value-prof.c (dump_histogram_value): Likewise.
11672 (stream_in_histogram_value): Likewise.
11673 (gimple_indirect_call_to_profile): Likewise.
11674 (gimple_find_values_to_profile): Likewise.
11675 * value-prof.h (enum hist_type): Likewise.
11677 2019-06-07 Martin Liska <mliska@suse.cz>
11679 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
11682 2019-06-07 Martin Liska <mliska@suse.cz>
11684 PR tree-optimization/78902
11685 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
11686 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
11687 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
11688 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
11689 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
11690 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
11691 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
11692 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
11693 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
11694 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
11695 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
11696 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
11697 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
11699 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
11700 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
11701 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
11702 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
11703 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
11704 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
11705 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
11706 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
11707 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
11708 warn_unused_result attribute.
11709 (BUILT_IN_STRDUP): Likewise.
11710 (BUILT_IN_STRNDUP): Likewise.
11711 (BUILT_IN_ALLOCA): Likewise.
11712 (BUILT_IN_CALLOC): Likewise.
11713 (BUILT_IN_MALLOC): Likewise.
11714 (BUILT_IN_REALLOC): Likewise.
11716 2019-06-06 Jim Wilson <jimw@sifive.com>
11719 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
11720 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
11721 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
11723 2019-06-06 Martin Sebor <msebor@redhat.com>
11725 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
11726 (handle_builtin_malloc): Remove trailing spaces.
11727 (handle_builtin_memset): Same.
11728 (handle_builtin_memcmp): Same.
11729 (compute_string_length): Same.
11730 (determine_min_objsize): Same.
11731 (handle_builtin_string_cmp): Same.
11732 (handle_char_store): Same. Break up excessively long line.
11734 2019-06-06 Martin Jambor <mjambor@suse.cz>
11736 * tree-sra.c (build_reconstructed_reference): Drop the alignment
11739 2019-06-06 Martin Jambor <mjambor@suse.cz>
11741 * tree-sra.c (struct access): New field grp_same_access_path.
11742 (dump_access): Dump it.
11743 (build_reconstructed_reference): New function.
11744 (build_ref_for_model): Use it if possible.
11745 (path_comparable_for_same_access): New function.
11746 (same_access_path_p): Likewise.
11747 (sort_and_splice_var_accesses): Set the new flag.
11748 (analyze_access_subtree): Likewise.
11749 (propagate_subaccesses_across_link): Propagate zero value of the new
11750 flag down the access tree.
11752 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
11754 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
11755 * config/gcn/gcn.opt (gpu_type): Add gfx906.
11756 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
11757 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
11760 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11762 PR tree-optimization/90332
11763 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
11764 Handle VALS containing two vectors.
11765 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
11767 (@aarch64_combinez<mode>): ... This.
11768 (*aarch64_combinez_be<mode>): Rename to...
11769 (@aarch64_combinez_be<mode>): ... This.
11770 (vec_init<mode><Vhalf>): New define_expand.
11771 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
11773 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11775 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
11776 library functions only when not optimizing for size.
11777 (ashlsi3): Likewise.
11778 (ashrhi3): Likewise.
11779 (ashrsi3): Likewise.
11780 (lshrhi3): Likewise.
11781 (lshrsi3): Likewise.
11783 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
11785 PR rtl-optimization/88751
11786 * ira.c (ira): Use the number of the actually referenced registers
11787 when calculating the threshold.
11789 2019-06-06 Jakub Jelinek <jakub@redhat.com>
11791 * configure: Regenerate.
11793 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11795 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
11796 register if it is in memory, so the shift can be emulated with a rotate
11798 (ashrhi3): Likewise.
11799 (lshrhi3): Likewise.
11801 2019-06-06 Martin Liska <mliska@suse.cz>
11803 PR tree-optimization/87954
11804 * match.pd: Simplify mult where both arguments are 0 or 1.
11806 2019-06-06 Richard Biener <rguenther@suse.de>
11808 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
11809 put equivalences on UNDEFINED ranges.
11810 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
11811 Make sure to drop defs of stmts added during simplification
11814 2019-06-06 Richard Biener <rguenther@suse.de>
11816 * tree-ssa-structalias.c: Include tree-cfg.h.
11817 (make_heapvar): Do not make heap vars artificial.
11818 (find_func_aliases_for_builtin_call): Handle stack allocation
11820 (find_func_aliases): Delay processing of simple enough returns
11822 (set_uids_in_ptset): Adjust.
11823 (find_what_var_points_to): Likewise.
11824 (solve_constraints): Do not dump points-to sets here.
11825 (compute_points_to_sets): Post-process return statements,
11826 amending the escaped solution. Dump points-to sets afterwards.
11827 (ipa_pta_execute): Dump points-to sets.
11829 2019-06-06 Martin Liska <mliska@suse.cz>
11832 * doc/install.texi: Fix HTML headers and
11833 titles for 'Installing GCC' pages.
11835 2019-06-06 Martin Liska <mliska@suse.cz>
11837 * ipa-icf-gimple.h (dump_message_1): Remove.
11838 (dump_message): Likewise.
11839 (return_false_with_message_1): Print also file.
11840 (return_false_with_msg): Likewise.
11841 (return_with_result): Likewise.
11842 (return_with_debug): Likewise.
11843 * ipa-icf.c (sem_function::equals_private): Remove call
11846 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
11848 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
11849 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
11850 memory operand for it.
11851 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
11853 2019-06-05 Martin Sebor <msebor@redhat.com>
11855 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
11856 Adjust quoting and hyphenation.
11857 * convert.c (convert_to_real_1): Same.
11858 * gcc.c (driver_wrong_lang_callback): Same.
11859 (driver::handle_unrecognized_options): Same.
11860 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
11861 * opts-common.c (cmdline_handle_error): Same.
11862 (read_cmdline_option): Same.
11863 * opts-global.c (complain_wrong_lang): Same.
11864 (print_ignored_options): Same.
11865 (handle_common_deferred_options): Same.
11866 * pretty-print.h: Same.
11867 * print-rtl.c (debug_bb_n_slim): Same.
11868 * sched-rgn.c (make_pass_sched_fusion): Same.
11869 * tree-cfg.c (verify_gimple_assign_unary): Same.
11870 (verify_gimple_label): Same.
11871 * tree-ssa-operands.c (verify_ssa_operands): Same.
11872 * varasm.c (do_assemble_alias): Same.
11873 (assemble_alias): Same.
11875 2019-06-05 Richard Henderson <rth@twiddle.net>
11877 * config/alpha/alpha.c (direct_return): Move down after
11878 struct machine_function definition; use saved frame_size;
11880 (struct machine_function): Add sa_mask, sa_size, frame_size.
11881 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
11882 (alpha_compute_frame_layout): ... new function.
11883 (TARGET_COMPUTE_FRAME_LAYOUT): New.
11884 (alpha_initial_elimination_offset): Use saved sa_size.
11885 (alpha_vms_initial_elimination_offset): Likewise.
11886 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
11887 (alpha_expand_prologue): Use saved frame data. Merge integer
11888 and fp register save loops.
11889 (alpha_expand_epilogue): Likewise.
11890 (alpha_start_function): Use saved frame data.
11891 * config/alpha/alpha-protos.h (direct_return): Update.
11892 (alpha_sa_size): Remove.
11894 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
11896 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
11897 multiplication by a power-of-two value.
11898 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
11899 and turn the modulo operation into a masking operation.
11901 2019-06-05 Jakub Jelinek <jakub@redhat.com>
11904 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
11905 with VOIDmode inner operands.
11907 2019-06-05 Richard Biener <rguenther@suse.de>
11909 PR middle-end/90726
11910 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11911 turn an expression graph into a tree.
11913 2019-06-05 Jakub Jelinek <jakub@redhat.com>
11915 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
11917 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
11918 treat it like explicit monotonic schedule modifier.
11919 (expand_omp_for): Initialize has_lastprivate_conditional.
11920 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
11923 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
11924 references, lookup in in hash map MEM_REF operand instead of the
11926 (lower_omp_1): When looking for lastprivate conditional assignments,
11927 handle MEM_REFs with REFERENCE_TYPE operands.
11929 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
11930 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
11931 and references a VLA. Handle references to non-VLAs if is_simd
11932 all privatization clauses like reductions.
11933 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
11934 If omp_is_reference, use always omp simd arrays and set
11935 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
11936 fails, emit reference initialization.
11938 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
11941 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
11942 _mm_mask_fpclass_sd_mask): New intrinsics.
11943 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
11944 * config/i386/i386-builtin.def
11945 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
11947 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
11948 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
11949 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
11950 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
11951 case QI_FTYPE_V2SF_INT): Ditto.
11952 * config/i386/sse.md
11953 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
11954 Extended to insnstructions with mask operands.
11956 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11958 * config/rs6000/constraints.md (define_register_constraint "wp"):
11960 (define_register_constraint "wq"): Delete.
11961 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11962 (rs6000_init_hard_regno_mode_ok): Adjust.
11963 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11964 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
11965 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
11966 (define_mode_attr VSa): Delete.
11967 (define_mode_attr VSisa): New.
11968 (rest of file): Adjust.
11969 * doc/md.texi (Machine Constraints): Adjust.
11971 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11973 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
11974 (define_attr "enabled"): Handle those new isa values.
11976 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11978 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
11979 (define_mode_attr VSr5): Delete.
11980 (define_mode_attr VStype_sqrt): Delete.
11981 (define_mode_iterator VSX_SPDP): Delete.
11982 (define_mode_attr VS_spdp_res): Delete.
11983 (define_mode_attr VS_spdp_insn): Delete.
11984 (define_mode_attr VS_spdp_type): Delete.
11985 (*vsx_sqrt<mode>2): Adjust.
11986 (vsx_<VS_spdp_insn>): Delete, split to...
11987 (vsx_xscvdpsp): ... this. New. And...
11988 (vsx_xvcvspdp): ... this. New. And...
11989 (vsx_xvcvdpsp): ... this. New.
11991 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11993 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
11995 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
11996 (rest of file): Adjust.
11998 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12000 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
12001 (vsx_extract_<mode>_var): Ditto.
12003 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12005 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
12008 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12010 * config/rs6000/constraints.md (define_register_constraint "ww"):
12012 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12013 (rs6000_init_hard_regno_mode_ok): Adjust.
12014 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12015 RS6000_CONSTRAINT_ww.
12016 * config/rs6000/rs6000.md: Adjust.
12017 * config/rs6000/vsx.md: Adjust.
12018 * doc/md.texi (Machine Constraints): Adjust.
12020 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12022 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
12023 (define_mode_attr sd): New.
12024 (define_mode_attr s): New.
12025 (define_mode_attr Ftrad): Delete.
12026 (define_mode_attr Fvsx): Delete.
12027 (define_mode_attr Fs): Delete.
12028 (rest of file): Use the new mode attributes.
12029 * config.rs6000/vsx.md: Use the new mode attributes.
12031 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12033 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
12036 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12038 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
12039 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
12040 used with VSX_B, VSX_D, or VSX_F, with just "wa".
12042 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
12045 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
12046 C++ with strict ANSI requirements.
12048 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
12050 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
12051 computations when step is 1.
12053 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12055 * config/rs6000/constraints.md (define_register_constraint "wf"):
12057 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12058 (rs6000_init_hard_regno_mode_ok): Adjust.
12059 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12060 RS6000_CONSTRAINT_wf.
12061 * config/rs6000/rs6000.md: Adjust.
12062 * config/rs6000/vsx.md: Adjust.
12063 * doc/md.texi (Machine Constraints): Adjust.
12065 2019-06-04 Andrew Pinski <apinski@marvell.com>
12067 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
12070 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12072 * config/rs6000/constraints.md (define_register_constraint "wd"):
12074 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12075 (rs6000_init_hard_regno_mode_ok): Adjust.
12076 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12077 RS6000_CONSTRAINT_wd.
12078 * config/rs6000/rs6000.md: Adjust.
12079 * config/rs6000/vsx.md: Adjust.
12080 * doc/md.texi (Machine Constraints): Adjust.
12082 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12084 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
12085 (rest of file): Adjust.
12087 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12089 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
12090 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
12091 (vsx_splat_<mode>_reg): Adjust.
12093 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12095 * config/rs6000/constraints.md (define_register_constraint "ws"):
12097 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12098 (rs6000_init_hard_regno_mode_ok): Adjust.
12099 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12100 RS6000_CONSTRAINT_ws.
12101 * config/rs6000/rs6000.md: Adjust.
12102 * config/rs6000/vsx.md: Adjust.
12103 * doc/md.texi (Machine Constraints): Adjust.
12105 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12107 * config/rs6000/constraints.md (define_register_constraint "wv"):
12109 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12110 (rs6000_init_hard_regno_mode_ok): Adjust.
12111 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12112 RS6000_CONSTRAINT_wv.
12113 * config/rs6000/rs6000.md: Adjust.
12114 * config/rs6000/vsx.md: Adjust.
12115 * doc/md.texi (Machine Constraints): Adjust.
12117 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12119 * config/rs6000/constraints.md (define_register_constraint "wi"):
12121 (define_register_constraint "wt"): Delete.
12122 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12123 (rs6000_init_hard_regno_mode_ok): Adjust.
12124 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12125 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
12126 * config/rs6000/rs6000.md: Adjust.
12127 * config/rs6000/vsx.md: Adjust.
12128 * doc/md.texi (Machine Constraints): Adjust.
12130 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
12132 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
12134 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
12135 default_elf_asm_output_external.
12137 2019-06-04 Martin Liska <mliska@suse.cz>
12139 * ipa-icf.c (INCLUDE_LIST): Remove.
12140 (sem_item_optimizer::execute): Remove call to init_wpa.
12141 * ipa-icf.h (init_wpa): Remove.
12143 2019-06-04 Jakub Jelinek <jakub@redhat.com>
12145 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
12146 conditional on combined for simd.
12147 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
12149 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
12150 constructs, don't remove lastprivate_conditional_map, but instead set
12151 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
12152 to parent construct temporaries.
12153 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
12154 like !ctx->lastprivate_conditional_map.
12155 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
12156 use up->outer context instead of up.
12157 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
12158 gimple_omp_for_combined_p.
12159 (expand_omp_for_static_nochunk): Likewise.
12160 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
12161 probably moved over into expand_omp_for_generic rather than being copied
12164 2019-06-04 Martin Liska <mliska@suse.cz>
12166 * value-prof.c (dump_histogram_value): Fix typo.
12167 (gimple_mod_subtract_transform): Likewise.
12169 2019-06-04 Richard Biener <rguenther@suse.de>
12171 PR middle-end/90726
12172 * tree-chrec.c (chrec_contains_symbols): Add to visited.
12173 (tree_contains_chrecs): Likewise.
12174 (chrec_contains_symbols_defined_in_loop): Move here and avoid
12175 exponential behaivor from ...
12176 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12178 (expression_expensive_p): Avoid exponential behavior and compute
12179 expanded size, rejecting any expansion.
12180 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
12181 (idx_contains_abnormal_ssa_name_p): Likewise.
12182 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
12183 (contains_abnormal_ssa_name_p): Simplify and use
12184 walk_tree_without_duplicates.
12186 2019-06-04 Richard Biener <rguenther@suse.de>
12188 PR tree-optimization/90738
12190 2019-06-03 Richard Biener <rguenther@suse.de>
12192 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
12193 full reference tree and record in ref->ref.
12194 (vn_reference_lookup_3): Pass in original ref to
12195 ao_ref_init_from_vn_reference.
12196 (vn_reference_lookup): Likewise.
12197 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
12198 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12199 Handle non-decl bases in the original reference.
12201 2019-06-04 Martin Liska <mliska@suse.cz>
12203 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
12204 number of references.
12205 (sem_item_optimizer::do_congruence_step):
12206 (sem_item_optimizer::worklist_push): Dump how references
12208 (sem_item_optimizer::worklist_pop): Use heap.
12209 (sem_item_optimizer::process_cong_reduction): Likewise.
12210 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
12212 2019-06-04 Martin Liska <mliska@suse.cz>
12214 * ipa-icf.h (struct sem_usage_pair_hash): New.
12215 (sem_usage_pair_hash::hash): Likewise.
12216 (sem_usage_pair_hash::equal): Likewise.
12217 (struct sem_usage_hash): Likewise.
12218 * ipa-icf.c (sem_item::sem_item): Initialize
12219 referenced_by_count.
12220 (sem_item::add_reference): Register a reference
12221 in ref_map and not in target->usages.
12222 (sem_item::setup): Remove initialization of
12224 (sem_item::~sem_item): Remove usage of dead vectors.
12225 (sem_item::dump): Remove dump of references.
12226 (sem_item_optimizer::sem_item_optimizer): Initialize
12228 (sem_item_optimizer::read_section): Remove useless
12230 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
12231 (sem_item_optimizer::build_graph): Pass m_references
12232 to ::add_reference.
12233 (sem_item_optimizer::verify_classes): Remove usage of dead
12235 (sem_item_optimizer::traverse_congruence_split): Return true
12236 when a class is split.
12237 (sem_item_optimizer::do_congruence_step_for_index): Use
12238 hash_map for look up of (sem_item *, index). That brings
12239 significant speed up.
12240 (sem_item_optimizer::do_congruence_step): Return true
12241 when a split is done.
12242 (congruence_class::is_class_used): Use referenced_by_count.
12244 2019-06-04 Alan Modra <amodra@gmail.com>
12247 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
12250 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
12252 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
12253 * config/rs6000/rs6000.c (direct_move_p): Adjust.
12254 (rs6000_secondary_reload_simple_move): Adjust.
12255 (rs6000_opt_masks): Neuter the "mfpgpr" option.
12256 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
12257 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
12260 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
12261 (floatunssi<mode>2_lfiwzx): Adjust.
12262 (fix_trunc<mode>si2_stfiwx): Adjust.
12263 (fixuns_trunc<mode>si2_stfiwx): Adjust.
12264 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
12265 (mfpgpr): Mark as deprecated.
12266 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
12267 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
12268 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
12270 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
12272 * config/rs6000/constraints.md (define_register_constraint "wg"):
12274 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12275 RS6000_CONSTRAINT_wg.
12276 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12277 (rs6000_init_hard_regno_mode_ok): Adjust.
12278 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
12279 Delete "wg" alternatives.
12280 * doc/md.texi (Machine Constraints): Adjust.
12282 2019-06-03 Alan Modra <amodra@gmail.com>
12284 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
12285 (get_uncond_jump_length): Assert length less than INT_MAX and
12288 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
12290 PR middle-end/64242
12291 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
12293 (expand_builtin_nonlocal_goto): Likewise.
12295 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
12297 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
12298 (aarch64_asm_output_external): Declare.
12299 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
12300 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
12301 (aarch64_asm_output_alias): New.
12302 (aarch64_asm_output_external): New.
12303 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
12304 (ASM_OUTPUT_EXTERNAL): Define.
12306 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
12307 * tree-vrp.h (value_range_base::nonzero_p): New.
12308 (value_range_base::set_nonnull): Rename to...
12309 (value_range_base::set_nonzero): ...this.
12310 (value_range_base::set_null): Rename to...
12311 (value_range_base::set_zero): ...this.
12312 (value_range::set_nonnull): Remove.
12313 (value_range::set_null): Remove.
12314 * tree-vrp.c (range_is_null): Remove.
12315 (range_is_nonnull): Remove.
12316 (extract_range_from_binary_expr): Use value_range_base::*zero_p
12317 instead of range_is_*null.
12318 (extract_range_from_unary_expr): Same.
12319 (value_range_base::set_nonnull): Rename to...
12320 (value_range_base::set_nonzero): ...this.
12321 (value_range::set_nonnull): Remove.
12322 (value_range_base::set_null): Rename to...
12323 (value_range_base::set_zero): ...this.
12324 (value_range::set_null): Remove.
12325 (extract_range_from_binary_expr): Rename set_*null uses to
12327 (extract_range_from_unary_expr): Same.
12328 (union_helper): Same.
12329 * vr-values.c (get_value_range): Use set_*zero instead of
12331 (vr_values::extract_range_from_binary_expr): Same.
12332 (vr_values::extract_range_basic): Same.
12334 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
12337 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
12339 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12341 * config/aarch64/iterators.md (MAX_OPP): New code attr.
12342 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
12344 (aarch64_<su>abd<mode>_3): ... This.
12345 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
12347 2019-06-03 Richard Biener <rguenther@suse.de>
12349 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
12350 full reference tree and record in ref->ref.
12351 (vn_reference_lookup_3): Pass in original ref to
12352 ao_ref_init_from_vn_reference.
12353 (vn_reference_lookup): Likewise.
12354 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
12355 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12356 Handle non-decl bases in the original reference.
12358 2019-06-03 Martin Liska <mliska@suse.cz>
12360 * doc/generic.texi: Remove Java Trees.
12362 2019-06-03 Martin Liska <mliska@suse.cz>
12364 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
12365 returns 0 when operands are equal.
12367 2019-06-03 Richard Biener <rguenther@suse.de>
12369 PR tree-optimization/90716
12370 * tree-loop-distribution.c (destroy_loop): Process blocks in
12373 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12376 * vector-builder.h (vector_builder::count_dups): New method.
12377 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
12379 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
12380 (vec_init<mode><Vel>): New pattern.
12381 * config/aarch64/aarch64.c (emit_insr): New function.
12382 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
12383 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
12384 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
12385 (aarch64_sve_expand_vector_init): Define two overloaded functions.
12387 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12389 PR tree-optimization/90681
12390 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
12391 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
12392 special case for SLP, but fail on non-groupped loads.
12394 2019-06-03 Martin Liska <mliska@suse.cz>
12396 * cfg.c (debug): Use TDF_DETAILS for debug and
12397 print edge info only once.
12399 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
12402 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
12404 2019-06-01 Martin Sebor <msebor@redhat.com>
12406 PR middle-end/90694
12407 * tree-pretty-print.c (dump_generic_node): Add parentheses.
12409 2019-05-31 Jan Hubicka <jh@suse.cz>
12411 * alias.c: Include ipa-utils.h.
12412 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
12413 * ipa-devirt.c (prevailing_odr_type): New.
12414 * ipa-utils.h (previaling_odr_type): Declare.
12416 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
12417 Hongtao Liu <hongtao.liu@intel.com>
12420 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
12421 NOTE_INSN_DELETED_LABEL check.
12423 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
12424 Robert Suchanek <robert.suchanek@mips.com>
12426 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
12427 and 3rd operands of the fmadd/fmsub/maddv builtin.
12429 2019-05-31 Jakub Jelinek <jakub@redhat.com>
12431 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
12432 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
12433 on OMP_SIMD if not nested inside of worksharing loop that also has
12434 lastprivate conditional clause for the same decl.
12435 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
12436 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
12438 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
12440 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
12442 (lower_lastprivate_clauses): Likewise.
12443 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
12444 calling lower_rec_input_clauses.
12445 (lower_omp_for): Likewise.
12446 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
12447 clause on simd construct.
12448 * omp-expand.c (expand_omp_simd): Initialize cond_var if
12449 OMP_CLAUSE__CONDTEMP_ clause is present.
12451 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
12454 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
12457 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
12458 TEX_D32, TEX_D64 or TEX_D128.
12460 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
12462 * match.pd (~(vec?cst1:cst2)): New transformation.
12464 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
12466 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
12467 ((size_t)(A /[ex] B) CMP C): New transformation.
12469 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
12471 * doc/md.texi: Document define_insn_and_rewrite.
12472 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
12473 * gensupport.c (queue_elem): Update comment.
12474 (replace_operands_with_dups): New function.
12475 (gen_rewrite_sequence): Likewise.
12476 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
12477 * read-rtl.c (apply_subst_iterator): Likewise.
12478 (add_condition_to_rtx, named_rtx_p): Likewise.
12479 (rtx_reader::read_rtx_operand): Likewise.
12480 * config/aarch64/aarch64-sve.md
12481 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
12482 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
12483 define_insn_and_rewrite.
12484 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
12485 Remove separate define_split.
12487 2019-05-31 Jan Hubicka <jh@suse.cz>
12489 * tree-ssa-alias.c (type_has_components_p): New function.
12490 (aliasing_component_refs_p): Use it.
12492 2019-05-31 Martin Liska <mliska@suse.cz>
12494 * gdbhooks.py: Add const_tree to TreePrinter.
12496 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
12499 * common.opt (feliminate-unused-debug-symbols): Enable by default.
12500 * doc/invoke.texi (Debugging Options): Document new default of
12501 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
12503 2019-05-31 Jakub Jelinek <jakub@redhat.com>
12505 PR tree-optimization/90671
12506 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
12507 template_block used to be empty on the first call, don't use
12508 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
12509 seq with bb_seq and set it with set_bb_seq.
12511 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
12513 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
12515 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
12516 Michael Meissner <meissner@linux.ibm.com>
12518 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
12519 (prefixed_mem_operand): Likewise.
12520 (non_prefixed_mem_operand): Likewise.
12521 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
12523 * config/rs6000/rs6000.c (print_operand_address): Handle
12524 PC-relative addresses.
12525 (mode_supports_prefixed_address_p): New function.
12526 (rs6000_prefixed_address): New function.
12527 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
12528 (SYMBOL_REF_PCREL_P): Likewise.
12530 2019-05-30 Jakub Jelinek <jakub@redhat.com>
12532 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
12533 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
12534 (gimplify_omp_for): If worksharing loop with lastprivate conditional
12535 is nested inside of parallel region, add _condtemp_ clause to both.
12536 * tree-nested.c (convert_nonlocal_omp_clauses,
12537 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
12539 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
12541 * omp-general.c (omp_extract_for_data): Compute it.
12542 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
12543 (lower_rec_input_clauses): Likewise.
12544 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
12545 clause is already present, just add one further one after it.
12546 (lower_lastprivate_clauses): Handle cond_ptr with array type.
12547 (lower_send_shared_vars): Clear _condtemp_ vars.
12548 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
12549 or section or taskgroup.
12550 * omp-expand.c (determine_parallel_type): Disallow combining only if
12551 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
12552 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
12553 (expand_omp_for_generic, expand_omp_for_static_nochunk,
12554 expand_omp_for_static_chunk, expand_omp_for): Use
12555 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
12556 determine if a special set of API routines are needed and if condtemp
12557 needs to be initialized, while always initialize cond_var if
12558 fd->lastprivate_conditional is non-zero.
12560 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
12561 Michael Meissner <meissner@linux.ibm.com>
12563 * config/rs6000/constraints.md (eI): New constraint.
12564 * config/rs6000/predicates.md (cint34_operand): New predicate.
12565 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
12566 (SIGNED_34BIT_OFFSET_P): Likewise.
12567 * doc/md.texi (eI): Document constraint.
12569 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
12571 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
12573 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
12574 Michael Meissner <meissner@linux.ibm.com>
12576 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
12577 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
12578 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
12579 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
12580 (OTHER_FUTURE_MASKS): Likewise.
12581 (POWERPC_MASKS): Likewise.
12582 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
12583 specified without -mprefixed-addr or -mcpu=future. Error if
12584 -mprefixed-addr is specified without -mcpu=future.
12585 (rs6000_opt_masks): Add entry for prefixed-addr.
12586 * rs6000.opt (mprefixed-addr): New option.
12588 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
12590 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
12591 cfun->is_thunk check.
12593 2019-05-30 Jakub Jelinek <jakub@redhat.com>
12595 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
12598 2019-05-30 Martin Liska <mliska@suse.cz>
12600 * gdbinit.in: Fix 'ptc' command. Add trt
12601 that prints TREE_TYPE($).
12603 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
12604 Alan Modra <amodra@gmail.com>
12606 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
12608 (rs6000_indirect_call_template_1): ...and here.
12609 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
12610 plt16_ha, plt16_lo, mtctr indirect calls. Use
12611 rs6000_pltseq_enum.
12612 (rs6000_decl_ok_for_sibcall): New function.
12613 (rs6000_function_ok_for_sibcall): Refactor.
12614 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
12615 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
12616 when pcrel. Reorganize.
12617 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
12618 * rs6000.h (rs6000_pltseq_enum): New enum.
12619 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
12620 (*pltseq_tocsave): Use rs6000_pltseq_enum.
12621 (*pltseq_plt16_ha): Likewise.
12622 (*pltseq_plt16_lo): Likewise.
12623 (*pltseq_mtctr): Likewise.
12624 (*pltseq_plt_pcrel): New insn.
12625 (*call_local_aix): Handle @notoc calls.
12626 (*call_value_local_aix): Likewise.
12627 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
12628 (*call_value_nonlocal_aix): Likewise.
12629 (*call_indirect_pcrel): New insn.
12630 (*call_value_indirect_pcrel): Likewise.
12632 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
12634 * config/i386/sse.md (*save_multiple<mode>): Rename from
12635 save_multiple<mode>.
12636 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
12637 (*restore_multiple_and_return<mode>): Rename from
12638 restore_multiple_and_return<mode>.
12639 (*restore_multiple_leave_return<mode>): Rename from
12640 restore_multiple_leave_return<mode>.
12642 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
12644 * config.gcc (rx-*-linux*): New target.
12645 * config/rx/elf.opt: New file.
12646 * config/rx/linux.h: Likewise.
12647 * config/rx/t-linux: Likewise.
12648 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
12650 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
12651 (ASM_APP_OFF): Likewise.
12652 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
12655 2019-05-29 Jan Hubicka <jh@suse.cz>
12657 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
12658 variants are pointer equivalent.
12660 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12662 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
12663 * config/aarch64/aarch64-sve2.md: New file.
12664 (<u>avg<mode>3_floor): New pattern.
12665 (<u>avg<mode>3_ceil): Likewise.
12666 (*<sur>h<addsub><mode>): Likewise.
12667 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
12668 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
12670 2019-05-29 Jakub Jelinek <jakub@redhat.com>
12673 * optc-save-gen.awk: In cl_optimization_print, use correct condition
12674 for var_opt_string printing. In cl_optimization_print_diff, print
12675 (null) instead of invoking undefined behavior if one of the
12676 var_opt_string pointers is NULL and use && instead of first || in the
12677 guarding condition. For var_target_other options, handle const char *
12678 target variables similarly to const char * optimize node variables.
12680 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
12682 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
12683 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
12684 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
12685 Add autib1716 and pacib1716 initialisation.
12686 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
12687 for autib1716 and pacib1716.
12688 * config/aarch64/aarch64-protos.h (aarch64_key_type,
12689 aarch64_post_cfi_startproc): Define.
12690 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
12691 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
12692 aarch64_handle_pac_ret_protection): Set default sign key to A.
12693 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
12694 aarch64_expand_prologue): Add check for b-key.
12695 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
12696 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
12697 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
12698 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
12699 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
12700 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
12701 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
12702 * config/aarch64/aarch64.md (do_return): Add check for b-key.
12703 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
12704 pauth_hint_num_a with pauth_hint_num.
12705 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
12706 pauth_hint_num_a with pauth_hint_num.
12707 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
12708 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
12709 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
12710 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
12711 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
12712 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
12713 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
12714 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
12715 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
12716 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
12717 UNSPEC_AUTIA1716 respectively.
12718 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
12719 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
12720 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
12721 * doc/invoke.texi (-mbranch-protection): Add b-key type.
12722 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
12723 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
12725 2019-05-29 Jakub Jelinek <jakub@redhat.com>
12727 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
12728 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
12729 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
12730 explicit clause on combined parallel into implicit shared clause.
12731 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
12732 and firstprivate if the decl has one too from combined parallel to
12733 the worksharing construct.
12735 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
12736 Michael Meissner <meissner@linux.ibm.com>
12738 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
12740 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
12742 * rtl.h (LABEL_REF_P): New #define.
12744 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
12746 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
12748 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12750 * internal-fn.c: Marked mask_load_direct as vectorizable.
12751 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
12752 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
12753 combined even if masks different with allow_slp_p param.
12754 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
12755 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
12756 dissolve SLP-only vectorizable groups when SLP has been discarded.
12757 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
12758 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
12760 (vect_build_slp_tree_1): Fixed comment typo.
12761 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
12762 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
12763 loads for SLP only.
12764 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
12766 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
12768 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12770 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
12771 Remove obsolete use_thunk reference.
12772 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
12773 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12774 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
12775 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
12776 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12777 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12778 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12779 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
12780 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
12782 2019-05-28 Nathan Sidwell <nathan@acm.org>
12784 * tree.h (IDENTIFIER_ANON_P): New.
12785 (anon_aggrname_format, anon_aggname_p): Don't declare.
12786 (make_anon_name): Declare.
12787 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
12788 (hash_tree): Likewise.
12789 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
12790 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
12791 (anon_cnt, make_anon_name): New.
12793 2019-05-28 Martin Liska <mliska@suse.cz>
12796 * opts-global.c (decode_options): Print help for all
12797 help_option_arguments.
12798 * opts.c (print_help): Add new argument.
12799 (common_handle_option): Remember all values into
12800 help_option_arguments.
12801 * opts.h (print_help): Add new argument.
12803 2019-05-28 Martin Liska <mliska@suse.cz>
12806 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
12807 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
12808 (func_checker::compare_bb): Call compare_loops.
12810 2019-05-27 Jakub Jelinek <jakub@redhat.com>
12812 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
12813 on sections construct.
12814 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
12816 (lower_omp_sections): Handle lastprivate conditional.
12817 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
12818 lastprivate_conditional_map.
12819 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
12821 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
12822 critical, taskgroup and section regions when looking for a region
12823 with non-NULL lastprivate_conditional_map.
12825 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
12827 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
12828 (*ix86_gen_sub3): Ditto.
12829 (*ix86_gen_sub3_carry): Ditto.
12830 (*ix86_gen_one_cmpl2): Ditto.
12831 (*ix86_gen_andsp): Ditto.
12832 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
12833 (gen_and2_insn): New static function.
12834 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
12835 Use gen_add3_insn instead of ix86_gen_add3.
12836 (ix86_expand_split_stack_prologue): Use gen_add2_insn
12837 instead of ix86_gen_add3.
12838 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
12839 Use gen_sub3_insn instead of ix86_gen_sub3.
12840 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
12841 instead of ix86_gen_add3.
12842 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
12843 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
12844 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
12845 * config/i386/i386-options.c (ix86_option_override_internal):
12846 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
12847 ix86_gen_one_cmpl2 and ix86_gen_andsp.
12849 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
12851 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
12852 and DW_OP_GNU_const_index opcodes.
12854 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
12856 * config/i386/i386.h (STACK_SIZE_MODE): Define.
12858 2019-05-27 Richard Biener <rguenther@suse.de>
12860 PR tree-optimization/90637
12861 * tree-ssa-sink.c (statement_sink_location): Honor the
12862 computed sink location for single-uses.
12864 2019-05-27 Richard Biener <rguenther@suse.de>
12866 PR middle-end/90610
12867 * match.pd (vec_perm): Avoid clobbering op0 when not generating
12870 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
12872 * config/i386/i386.md (@sub<mode>3_carry): Rename
12873 from sub<mode>3_carry.
12874 (@leave_<mode>): New expander.
12875 (*leave): Rename from leave.
12876 (*leave_rex64): Rename from leave_rex64.
12877 (@monitorx_<mode>): Rename from monitorx_<mode>.
12878 (@clzero_<mode>): Rename from clzero_<mode>.
12879 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
12880 from sse3_monitor_<mode>.
12881 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
12882 (*ix86_gen_leave): Ditto.
12883 (*ix86_gen_monitor): Ditto.
12884 (*ix86_gen_monitorx): Ditto.
12885 (*ix86_gen_clzero): Ditto.
12886 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
12887 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
12888 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
12889 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
12890 Use gen_sse3_monitor instead of ix86_gen_monitor.
12891 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
12892 instead of ix86_gen_monitorx.
12893 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
12894 instead of ix86_gen_clzero.
12895 * config/i386/i386-options.c (ix86_option_override_internal):
12896 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
12897 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
12899 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
12901 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
12902 Rename from tls_global_dynamic_64_<mode>.
12903 (@tls_local_dynamic_base_64_<mode>): Rename from
12904 tls_local_dynamic_base_64_<mode>.
12905 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
12906 Remove indirect function.
12907 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
12908 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
12909 instead of ix86_gen_tls_global_dynamic_64.
12910 Use gen_tls_local_dynamic_base_64 instead of
12911 ix86_gen_tls_local_dynamic_base_64.
12912 * config/i386/i386-options.c (ix86_option_override_internal):
12913 Do not initialize ix86_gen_tls_global_dynamic_64 and
12914 ix86_gen_tls_local_dynamic_base_64.
12916 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
12918 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
12919 Rename from pro_epilogue_adjust_stack_<mode>_add.
12920 (@pro_epilogue_adjust_stack_sub_<mode>)
12921 Rename from pro_epilogue_adjust_stack_<mode>_sub.
12922 (@allocate_stack_worker_probe_<mode>):
12923 Rename from allocate_stack_worker_probe_<mode>.
12924 (allocate_stack): Use gen_allocate_stack_worker_probe.
12925 (probe_stack): Use gen_probe_stack_1.
12926 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
12927 (@adjust_stack_and_probe_<mode>): Rename from
12928 adjust_stack_and_probe<mode>.
12929 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
12930 (stack_protect_set): Use gen_stack_protect_set_1.
12931 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
12932 (stack_protect_test): Use gen_stack_protect_test_1.
12933 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
12934 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
12935 Remove indirect function.
12936 (*ix86_gen_adjust_stack_and_probe): Ditto.
12937 (*ix86_gen_probe_stack_range): Ditto.
12938 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
12939 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
12940 (ix86_adjust_stack_and_probe_stack_clash): Use
12941 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
12942 (ix86_adjust_stack_and_probe): Ditto.
12943 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
12944 of ix86_gen_probe_stack_range.
12945 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
12946 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
12947 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
12948 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
12949 CODE_FOR_stack_protect_test_{si,di}.
12950 * config/i386/i386-options.c (ix86_option_override_internal):
12951 Do not initialize ix86_gen_allocate_stack_worker,
12952 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
12954 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
12956 * doc/invoke.texi (Link Options): Many editorial changes around
12959 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12961 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
12962 pre-Solaris 11 referene and most Studio compiler details.
12964 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
12967 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
12968 DImode to SImode in floating-point registers on 64-bit target.
12969 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
12970 register_operand in xmpyu patterns.
12972 2019-05-24 Jakub Jelinek <jakub@redhat.com>
12974 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
12975 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
12976 OMP_CLAUSE__REDUCTEMP_.
12977 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
12978 OMP_CLAUSE__CONDTEMP_.
12979 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
12980 * tree-pretty-print.c (dump_omp_clause): Likewise.
12981 * tree-nested.c (convert_nonlocal_omp_clauses,
12982 convert_local_omp_clauses): Likewise.
12983 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
12984 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
12985 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
12987 (gimplify_omp_for): Warn and disable conditional modifier from
12988 lastprivate on loop iterators.
12989 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
12991 * omp-general.c (omp_extract_for_data): Initialize it.
12992 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
12994 (delete_omp_context): Delete it.
12995 (lower_lastprivate_conditional_clauses): New function.
12996 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
12997 handle lastprivate conditional clauses.
12998 (lower_reduction_clauses): Add CLIST argument, emit it into
12999 the critical section if any.
13000 (lower_omp_sections): Adjust lower_lastprivate_clauses and
13001 lower_reduction_clauses callers.
13002 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
13003 to lower_lastprivate_clauses.
13004 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
13005 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
13006 clist into a critical section if not emitted there already by
13007 lower_reduction_clauses.
13008 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
13010 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
13011 conditional variables.
13012 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
13014 (expand_omp_for_generic, expand_omp_for_static_nochunk,
13015 expand_omp_for_static_chunk): Handle lastprivate conditional.
13016 (expand_omp_for): Handle fd.lastprivate_conditional like
13019 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
13021 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
13022 kernel does not exit cleanly.
13023 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
13025 2019-05-24 Jason Merrill <jason@redhat.com>
13028 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
13030 2019-05-24 Richard Biener <rguenther@suse.de>
13033 * tree-loop-distribution.c (struct partition): Add location
13035 (partition_alloc): Initialize all fields.
13036 (generate_memset_builtin): Use the location recorded in the
13037 partition for the generated call.
13038 (generate_memcpy_builtin): Likewise.
13039 (classify_partition): Record the location of a single store
13040 as location for the partition.
13042 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
13044 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
13047 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
13050 * common/config/aarch64/aarch64-common.c
13051 (aarch64_rewrite_selected_cpu): Change local temporary variable
13052 type from unsigned long to uint64_t.
13053 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
13054 aarch64_get_extension_string_for_isa_flags): Change declaration to
13055 match new definition by replacing unsigned long with uint64_t.
13057 2019-05-24 Jakub Jelinek <jakub@redhat.com>
13060 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
13061 gen_attr_type just once instead of 4-7 times. Formatting fixes.
13062 Handle stack_protect_test_<mode> codegen similarly to corresponding
13065 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
13067 * config/i386/darwin.h: Reject -mfentry*.
13068 * doc/sourcebuild.texi: Document mfentry target support.
13070 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
13072 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
13073 Rename to rs6000_global_entry_point_prologue_needed_p. Return
13074 false for PC-relative functions.
13075 (rs6000_output_function_prologue): Change called function name to
13076 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
13077 name,1" for PC-relative functions.
13078 (rs6000_elf_declare_function_name): Change called function name to
13079 rs6000_global_entry_point_prologue_needed_p.
13081 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
13084 * config/i386/i386.c (gen_rtx_cost):
13085 Use ix86_tune_cost instead of ix86_cost.
13087 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
13088 Michael Meissner <meissner@linux.ibm.com>
13089 Segher Boessenkool <segher@kernel.crashing.org>
13091 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
13093 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
13094 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
13095 (rs6000_fndecl_pcrel_p): Likewise.
13096 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
13097 error if -mpcrel is requested without -mcpu=future.
13098 (rs6000_opt_masks): Add entry for pcrel.
13099 (rs6000_fndecl_pcrel_p): New function.
13100 (rs6000_pcrel_p): Likewise.
13101 * config/rs6000/rs6000.opt (mpcrel): New option.
13102 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
13104 2019-05-23 Jan Hubicka <jh@suse.cz>
13105 Martin Liska <mliska@suse.cz>
13107 PR tree-optimization/90576
13108 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
13110 (aliasing_component_refs_p): Fix three way size compare conditional;
13111 give up earlier in case we can not decide on equivalence.
13113 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
13114 Michael Meissner <meissner@linux.ibm.com>
13115 Segher Boessenkool <segher@kernel.crashing.org>
13117 * config.gcc: Add future cpu.
13118 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
13119 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
13121 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
13122 (RS6000_CPU): New instantiation for future cpu.
13123 * config/rs6000/rs6000-opts.h (enum processor_type): Add
13125 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
13126 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
13127 * config/rs6000/rs6000-tables.opt: Regenerate.
13128 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
13129 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
13130 (rs6000_machine_from_flags): Handle future cpu.
13131 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
13132 PROCESSOR_POWER9 for now.
13133 (rs6000_adjust_cost): Likewise.
13134 (rs6000_issue_rate): Likewise.
13135 (rs6000_register_move_cost): Likewise.
13136 (rs6000_opt_masks): Add entry for future.
13137 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
13138 (MASK_FUTURE): New #define.
13139 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
13140 * config/rs6000/rs6000.opt (mfuture): New target option.
13141 * doc/invoke.texi (mcpu): Add future cpu.
13143 2019-05-23 Martin Liska <mliska@suse.cz>
13146 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
13147 operation points to a temporary (pointed via tree_to_wide_ref)
13148 that is out of scope after the &.
13150 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
13153 * doc/extend.texi (Function Names): Add missing word.
13155 2019-05-23 Richard Biener <rguenther@suse.de>
13157 PR tree-optimization/88440
13158 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
13160 * tree-loop-distribution.c (generate_memset_builtin): Fold the
13162 (generate_memcpy_builtin): Likewise.
13163 (distribute_loop): Pass in whether to only distribute patterns.
13164 (prepare_perfect_loop_nest): Also allow size optimization.
13165 (pass_loop_distribution::execute): When optimizing a loop
13166 nest for size allow pattern replacement.
13168 2019-05-23 Jakub Jelinek <jakub@redhat.com>
13171 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
13174 2019-05-23 Martin Liska <mliska@suse.cz>
13177 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
13178 expression similarly to gimplify_decl_expr.
13180 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13182 * cse.c (cse_dump_path): s/dump_file/f.
13184 2019-05-22 David Malcolm <dmalcolm@redhat.com>
13187 * diagnostic-format-json.cc: Include "selftest.h".
13188 (json_from_expanded_location): Only add "file" key for non-NULL
13190 (json_from_location_range): Don't add "start" and "finish"
13191 children if they are UNKNOWN_LOCATION.
13192 (selftest::test_unknown_location): New selftest.
13193 (selftest::test_bad_endpoints): New selftest.
13194 (selftest::diagnostic_format_json_cc_tests): New function.
13195 * json.cc (json::object::get): New function.
13196 (selftest::test_object_get): New selftest.
13197 (selftest::json_cc_tests): Call it.
13198 * json.h (json::object::get): New decl.
13199 * selftest-run-tests.c (selftest::run_tests): Call
13200 selftest::diagnostic_format_json_cc_tests.
13201 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
13204 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13205 Andrew Stubbs <amd@codesourcery.com>
13207 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
13208 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
13209 (kernel): Rename to...
13210 (main_kernel): ... this.
13211 (load_image): Load _init_array and _fini_array kernels.
13212 (run): Add argument for kernel to run.
13213 (main): Run init_array_kernel before main_kernel, and
13214 fini_array_kernel after.
13215 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
13216 amdgpu_hsa_kernel attribute on functions.
13217 (gcn_disable_constructors): Delete.
13218 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
13219 * config/gcn/crt0.c (size_t): Define.
13220 (_init_array, _fini_array): New.
13221 (__preinit_array_start, __preinit_array_end,
13222 __init_array_start, __init_array_end,
13223 __fini_array_start, __fini_array_end): Declare weak references.
13225 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
13227 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
13229 2019-05-22 Jason Merrill <jason@redhat.com>
13231 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
13233 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
13236 * config/i386/i386-options.c (ix86_init_machine_status): Set
13237 stack_frame_required to true.
13238 * config/i386/i386.c (ix86_get_frame_size): New function.
13239 (ix86_frame_pointer_required): Replace get_frame_size with
13240 ix86_get_frame_size.
13241 (ix86_compute_frame_layout): Likewise.
13242 (ix86_find_max_used_stack_alignment): Changed to void. Set
13243 stack_frame_required.
13244 (ix86_finalize_stack_frame_flags): Always call
13245 ix86_find_max_used_stack_alignment. Replace get_frame_size with
13246 ix86_get_frame_size.
13247 * config/i386/i386.h (machine_function): Add stack_frame_required.
13249 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
13251 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
13253 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
13255 * common/config/aarch64/aarch64-common.c
13256 (struct aarch64_option_extension, struct processor_name_to_arch,
13257 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
13258 aarch64_contains_opt,
13259 aarch64_get_extension_string_for_isa_flags): Change type of
13260 variables storing flags to uint64_t.
13261 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
13262 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
13263 * config/aarch64/aarch64.c (struct processor,
13264 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
13265 aarch64_validate_march, aarch64_override_options,
13266 aarch64_option_print, aarch64_handle_attr_isa_flags,
13267 aarch64_declare_function_name, aarch64_start_file): Make flag
13268 variables uint64_t.
13269 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
13270 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
13271 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
13272 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
13273 * config/aarch64/driver-aarch64.c
13274 (struct aarch64_arch_extension, struct aarch64_core_data,
13275 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
13276 flag variables uint64_t.
13277 * doc/invoke.texi: Add documentation for new arguments.
13279 2019-05-22 Richard Biener <rguenther@suse.de>
13281 * alias.c (ao_ref_from_mem): Move stack-slot sharing
13283 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
13285 2019-05-22 Martin Liska <mliska@suse.cz>
13288 * doc/extend.texi: Document the change.
13290 2019-05-22 Richard Biener <rguenther@suse.de>
13292 PR tree-optimization/90450
13293 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
13294 (mem_ref_hasher::equal): Check it.
13295 (mem_ref_alloc): Initialize it.
13296 (gather_mem_refs_stmt): Set it.
13298 2019-05-22 Richard Biener <rguenther@suse.de>
13300 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
13302 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
13305 2019-05-22 Alan Modra <amodra@gmail.com>
13307 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
13308 (ASM_CPU_SPEC): Conditionally add -many.
13309 * config/rs6000/rs6000.c (rs6000_machine): New static var.
13310 (rs6000_machine_from_flags, emit_asm_machine): New functions..
13311 (rs6000_file_start): ..extracted from here, and modified to
13313 (rs6000_output_function_prologue): Emit .machine as necessary.
13315 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
13317 PR middle-end/90553
13318 * ira-lives.c (process_bb_node_lives): Consider defs
13319 for a call insn to be die before the call, not after.
13321 * function.c (assign_parm_setup_block): Raise alignment of
13322 stacked parameter only for STRICT_ALIGNMENT targets.
13324 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
13326 * config/rs6000/constraints.md (define_register_constraint "wz"):
13328 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13329 RS6000_CONSTRAINT_wz.
13330 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13331 (rs6000_init_hard_regno_mode_ok): Adjust.
13332 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
13333 * doc/md.texi (Machine Constraints): Adjust.
13335 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
13337 * config/rs6000/constraints.md (define_register_constraint "wl"):
13339 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13340 RS6000_CONSTRAINT_wl.
13341 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13342 (rs6000_init_hard_regno_mode_ok): Adjust.
13343 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
13344 * doc/md.texi (Machine Constraints): Adjust.
13346 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
13348 * config/rs6000/constraints.md (define_register_constraint "wm"):
13350 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13351 RS6000_CONSTRAINT_wm.
13352 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13353 (rs6000_init_hard_regno_mode_ok): Adjust.
13354 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
13355 * doc/md.texi (Machine Constraints): Adjust.
13357 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
13359 * config/rs6000/constraints.md (define_register_constraint "wk"):
13361 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13362 RS6000_CONSTRAINT_wk.
13363 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13364 (rs6000_init_hard_regno_mode_ok): Adjust.
13365 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
13366 * doc/md.texi (Machine Constraints): Adjust.
13368 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
13370 * config/rs6000/constraints.md (define_register_constraint "wj"):
13372 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13373 RS6000_CONSTRAINT_wj.
13374 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13375 (rs6000_init_hard_regno_mode_ok): Adjust.
13376 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
13378 * config/rs6000/vsx.md: Ditto.
13379 * doc/md.texi (Machine Constraints): Adjust.
13381 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
13383 * config/rs6000/constraints.md (define_register_constraint "wh"):
13385 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13386 RS6000_CONSTRAINT_wh.
13387 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13388 (rs6000_init_hard_regno_mode_ok): Adjust.
13389 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
13390 * doc/md.texi (Machine Constraints): Adjust.
13392 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
13395 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
13396 Avoid calling gen_lowpart with CONST operand.
13398 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
13400 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
13401 field template_last_to_copy.
13402 (ssa_create_duplicates): Set it, and use it. Attempt to
13403 preserve more debug stmts.
13405 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
13407 * config/i386/sse.md (VF1_AVX2): New mode iterator.
13408 (signbit<mode>2): New expander
13410 2019-05-21 James Clarke <jrtc27@jrtc27.com>
13413 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
13414 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
13416 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
13418 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
13419 %ebx and %ecx bafore calling cpuid with leaf 1 or
13420 non-constant leaf argument.
13422 2019-05-21 Alan Modra <amodra@gmail.com>
13425 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
13426 power9 direct move cost.
13428 2019-05-21 Richard Biener <rguenther@suse.de>
13430 PR middle-end/90510
13431 * fold-const.c (fold_read_from_vector): New function.
13432 * fold-const.h (fold_read_from_vector): Declare.
13433 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
13434 single-element insert permutations. Canonicalize selector
13435 further and fix issue with last commit.
13437 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
13439 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
13440 parameter with default value false to declaration.
13441 (split_edges_for_insertion): New inline function. Wrapper for
13442 split_critical_edges with for_edge_insertion_p = true.
13443 * tree-cfg.c (split_critical_edges): Don't split non-critical
13444 edges if for_edge_insertion_p is false. Fix whitespace.
13445 * tree-ssa-pre.c (pass_pre::execute): Call
13446 split_edges_for_insertion instead of split_critical_edges.
13447 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
13448 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
13449 (pass_data_sink_code): Update function name in the comment.
13451 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
13453 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
13454 around is_value_included_in that knows how to handle BIT_AND_EXPR.
13455 (is_pred_expr_subset_of): Use the new function. Handle more cases where
13456 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
13459 2019-05-21 Martin Liska <mliska@suse.cz>
13461 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
13463 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
13464 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
13466 * config/rs6000/rs6000.c (rs6000_option_override_internal):
13468 (rs6000_function_arg): Likewise.
13469 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
13470 (rs6000_expand_ternop_builtin): Use interval syntax.
13471 (get_element_number): Likewise.
13472 (altivec_expand_builtin): Likewise.
13473 (rs6000_get_function_versions_dispatcher): Quote target_clones.
13475 2019-05-20 Jakub Jelinek <jakub@redhat.com>
13479 * function.h (struct function): Add calls_eh_return member.
13480 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
13481 gimplifying __builtin_eh_return call.
13482 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
13484 (expand_call_inline): Or in src_cfun->calls_eh_return into
13485 dst_cfun->calls_eh_return.
13486 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
13487 cfun->calls_eh_return.
13488 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
13489 * lto-streamer-out.c (output_struct_function_base): Write
13492 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
13494 PR rtl-optimization/43147
13495 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
13496 IX86_BUILTIN_SHUFPD.
13498 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
13500 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
13501 (refs_may_alias_p_1): ... here; update stats.
13502 (refs_may_alias_p): Do not update stats here.
13504 2019-05-20 Richard Biener <rguenther@suse.de>
13506 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
13507 doesn't produce pointers.
13508 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
13509 the first operand points to.
13511 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
13513 * tree-ssa-alias.c (compare_sizes): New function.
13514 (sompare_type_sizes): New function
13515 (aliasing_component_refs_p): Use it.
13516 (indirect_ref_may_alias_decl_p): Likewise.
13518 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13520 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
13522 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13524 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
13525 (LIBLSAN_EARLY_SPEC): Likewise.
13526 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
13528 2019-05-20 Martin Liska <mliska@suse.cz>
13530 * config/i386/i386.c (ix86_libc_has_fast_function):
13531 Add ATTRIBUTE_UNUSED for the argument.
13533 2019-05-20 Richard Biener <rguenther@suse.de>
13535 * gimple-match-head.c: Include vec-perm-indices.h.
13536 * generic-match-head.c: Likewise.
13537 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
13539 * fold-const.c (fold_vec_perm): Export.
13540 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
13541 (match.pd): ...here.
13543 2019-05-20 Jakub Jelinek <jakub@redhat.com>
13545 * cfgloop.h (struct loop): Add simdlen member.
13546 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
13547 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
13548 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
13549 as new argument to autovectorize_vector_sizes target hook. If
13550 loop->simdlen, pick up vector size where the vectorization factor
13551 is equal to loop->simd, and if there is none, fall back to the first
13553 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
13555 * omp-low.c (omp_clause_aligned_alignment): Likewise.
13556 * omp-general.c (omp_max_vf): Likewise.
13557 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
13558 * tree-vect-slp.c (vect_slp_bb): Likewise.
13559 * target.def (autovectorize_vector_sizes): Add ALL argument and
13561 * doc/tm.texi: Adjust documentation.
13562 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
13563 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
13564 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
13566 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
13567 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
13568 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
13569 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
13570 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
13571 preferred vector size is not 512-bit or 256-bit, just put those
13572 unpreferred ones last.
13574 2019-05-20 Martin Liska <mliska@suse.cz>
13576 * targhooks.c (default_libc_has_fast_function): New function.
13577 * targhooks.h (default_libc_has_fast_function): Likewise.
13579 2019-05-20 Martin Liska <mliska@suse.cz>
13581 PR middle-end/90263
13582 * builtins.c (expand_builtin_memory_copy_args): When having a
13583 target with fast mempcpy implementation do now use memcpy.
13584 * config/i386/i386.c (ix86_libc_has_fast_function): New.
13585 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
13586 * doc/tm.texi: Likewise.
13587 * doc/tm.texi.in: Likewise.
13589 * expr.c (emit_block_move_hints): Add 2 new arguments.
13590 * expr.h (emit_block_move_hints): Bail out when libcall
13591 to memcpy would be used.
13593 2019-05-20 Martin Liska <mliska@suse.cz>
13595 * profile-count.c: Add vertical spacing in order
13596 to separate functions.
13597 * profile-count.h: Likewise.
13599 2019-05-20 Martin Liska <mliska@suse.cz>
13601 * profile-count.h: Do not use full qualified
13603 * profile-count.c (profile_count::to_frequency): Likewise.
13605 2019-05-20 Martin Liska <mliska@suse.cz>
13607 * profile-count.h (enum profile_quality): Use capital letters
13608 for enum value names. Use the adjusted names.
13609 * profile-count.c: Use the adjusted names.
13611 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13613 * config/rs6000/constraints.md (define_register_constraint "wH"):
13615 (define_register_constraint "wI"): Delete.
13616 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13617 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
13618 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13619 (rs6000_init_hard_regno_mode_ok): Adjust.
13620 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
13621 resp. "d", or with "wa" as appropriate, all with "p8v".
13622 * config/rs6000/vsx.md: Ditto.
13623 * doc/md.texi (Machine Constraints): Adjust.
13625 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13627 * config/rs6000/constraints.md (define_register_constraint "wy"):
13629 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13630 RS6000_CONSTRAINT_wy.
13631 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13632 (rs6000_init_hard_regno_mode_ok): Adjust.
13633 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
13634 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
13635 (define_mode_attr Fisa): New.
13636 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
13637 * doc/md.texi (Machine Constraints): Adjust.
13639 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13641 * config/rs6000/constraints.md (define_register_constraint "wu"):
13643 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13644 RS6000_CONSTRAINT_wu.
13645 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13646 (rs6000_init_hard_regno_mode_ok): Adjust.
13647 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
13649 (define_mode_attr Fa): Delete.
13650 * config/rs6000/vsx.md: Ditto.
13651 * doc/md.texi (Machine Constraints): Adjust.
13653 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13655 * config/rs6000/constraints.md (define_register_constraint "wJ"):
13657 (define_register_constraint "wK"): Delete.
13658 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13659 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
13660 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13661 (rs6000_init_hard_regno_mode_ok): Adjust.
13662 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
13663 Replace "wK" constraint by "wH" with "p9v".
13664 * config/rs6000/vsx.md: Ditto.
13665 * doc/md.texi (Machine Constraints): Adjust.
13667 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13669 * config/rs6000/constraints.md (define_register_constraint "wb"):
13671 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13672 RS6000_CONSTRAINT_wb.
13673 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13674 (rs6000_init_hard_regno_mode_ok): Adjust.
13675 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
13676 * config/rs6000/vsx.md: Ditto.
13677 * doc/md.texi (Machine Constraints): Adjust.
13679 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13681 * config/rs6000/constraints.md (define_register_constraint "wo"):
13683 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13684 RS6000_CONSTRAINT_wo.
13685 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13686 (rs6000_init_hard_regno_mode_ok): Adjust.
13687 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
13688 * config/rs6000/altivec.md: Ditto.
13689 * doc/md.texi (Machine Constraints): Adjust.
13691 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
13693 * config/darwin-c.c (darwin_register_objc_includes): Do not
13694 prepend the sysroot when building gnu-runtime header search
13697 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
13699 * config/darwin.c (darwin_file_end): Use switch_to_section ()
13700 instead of direct output of the asm.
13702 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
13704 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
13705 argument to be type bool (was int before).
13706 (rs6000_emit_epilogue): Simplify some code. Declare some variables
13707 at first use. Use type bool for some variables. Fix a theoretical
13708 eh_return bug for svr4.
13710 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
13712 * config/rs6000/rs6000.md (isa): New attribute.
13713 (enabled): New attribute.
13715 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
13717 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
13718 assemble_start_function and assemble_end_function.
13720 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
13722 PR middle-end/89433
13723 * omp-general.c (oacc_verify_routine_clauses): Change formal
13724 parameters. Add checking if already marked with an OpenACC
13725 'routine' directive. Adjust all users.
13727 PR middle-end/89433
13728 * omp-general.c (oacc_build_routine_dims): Move some of its
13730 (oacc_verify_routine_clauses): ... this new function.
13731 * omp-general.h (oacc_verify_routine_clauses): New prototype.
13733 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
13735 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
13736 formating of picbase labels to match other ports.
13738 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
13740 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
13741 in the generated code.
13743 2019-05-16 Martin Sebor <msebor@redhat.com>
13745 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
13746 identifiers, keywords, operators, and types in diagnostics. Correct
13747 quoting, spelling, and sentence capitalization issues.
13748 (expand_builtin_atomic_is_lock_free): Same.
13749 (fold_builtin_next_arg): Same.
13750 * cfgexpand.c (expand_one_var): Same.
13751 (tree_conflicts_with_clobbers_p): Same.
13752 (expand_asm_stmt): Same.
13753 (verify_loop_structure): Same.
13754 * cgraphunit.c (process_function_and_variable_attributes): Same.
13755 * collect-utils.c (collect_execute): Same.
13756 * collect2.c (maybe_run_lto_and_relink): Same.
13757 (is_lto_object_file): Same.
13758 (scan_prog_file): Same.
13759 * convert.c (convert_to_real_1): Same.
13760 * dwarf2out.c (dwarf2out_begin_prologue): Same.
13761 * except.c (verify_eh_tree): Same.
13762 * gcc.c (execute): Same.
13763 (eval_spec_function): Same.
13764 (run_attempt): Same.
13765 (driver::set_up_specs): Same.
13766 (compare_debug_auxbase_opt_spec_function): Same.
13767 * gcov-tool.c (unlink_gcda_file): Same.
13769 (do_rewrite): Same.
13770 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
13771 * gimplify.c (gimplify_asm_expr): Same.
13772 (gimplify_adjust_omp_clauses): Same.
13773 * hsa-gen.c (gen_hsa_addr_insns): Same.
13774 (gen_hsa_insns_for_load): Same.
13775 (gen_hsa_cmp_insn_from_gimple): Same.
13776 (gen_hsa_insns_for_operation_assignment): Same.
13777 (gen_get_level): Same.
13778 (gen_hsa_alloca): Same.
13779 (omp_simple_builtin::generate): Same.
13780 (gen_hsa_atomic_for_builtin): Same.
13781 (gen_hsa_insns_for_call): Same.
13782 * input.c (dump_location_info): Same.
13783 * ipa-devirt.c (compare_virtual_tables): Same.
13784 * ira.c (ira_setup_eliminable_regset): Same.
13785 * lra-assigns.c (lra_assign): Same.
13786 * lra-constraints.c (lra_constraints): Same.
13787 * lto-streamer-in.c (lto_input_mode_table): Same.
13788 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
13789 (merge_and_complain): Same.
13790 (compile_offload_image): Same.
13791 (compile_images_for_offload_targets): Same.
13792 (debug_objcopy): Same.
13795 * opts.c (print_specific_help): Same.
13796 (parse_no_sanitize_attribute): Same.
13797 (print_help): Same.
13798 (handle_param): Same.
13799 * plugin.c (add_new_plugin): Same.
13800 (parse_plugin_arg_opt): Same.
13801 (try_init_one_plugin): Same.
13802 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
13803 operators, and types in diagnostics. Correct quoting and spelling
13805 * read-rtl-function.c (parse_edge_flag_token): Same.
13806 (function_reader::parse_enum_value): Same.
13807 * reg-stack.c (check_asm_stack_operands): Same.
13808 * regcprop.c (validate_value_data): Same.
13809 * sched-rgn.c (make_pass_sched_fusion): Same.
13810 * stmt.c (check_unique_operand_names): Same.
13811 * targhooks.c (default_target_option_pragma_parse): Same.
13812 * tlink.c (recompile_files): Same.
13813 * toplev.c (process_options): Same.
13814 (do_compile): Same.
13815 * trans-mem.c (diagnose_tm_1): Same.
13816 (ipa_tm_scan_irr_block): Same.
13817 (ipa_tm_diagnose_transaction): Same.
13818 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
13819 format a tree code name in a diagnostic.
13820 (verify_types_in_gimple_min_lval): Same.
13821 (verify_types_in_gimple_reference): Same.
13822 (verify_gimple_call): Same.
13823 (verify_gimple_assign_unary): Same.
13824 (verify_gimple_assign_binary): Same.
13825 (verify_gimple_assign_ternary): Same.
13826 (verify_gimple_assign_single): Same.
13827 (verify_gimple_switch): Same.
13828 (verify_gimple_label): Same.
13829 (verify_gimple_phi): Same.
13830 (verify_gimple_in_seq): Same.
13831 (verify_eh_throw_stmt_node): Same.
13832 (collect_subblocks): Same.
13833 (gimple_verify_flow_info): Same.
13834 (do_warn_unused_result): Same.
13835 * tree-inline.c (expand_call_inline): Same.
13836 * tree-into-ssa.c (update_ssa): Same.
13837 * tree.c (tree_int_cst_elt_check_failed): Same.
13838 (tree_vec_elt_check_failed): Same.
13839 (omp_clause_operand_check_failed): Same.
13840 (verify_type_variant): Same.
13841 (verify_type): Same.
13842 * value-prof.c (verify_histograms): Same.
13843 * varasm.c (assemble_start_function): Same.
13845 2019-05-16 Martin Sebor <msebor@redhat.com>
13847 * config/i386/i386-expand.c (get_element_number): Quote keywords
13848 and other internal names in diagnostics. Adjust other diagnostic
13849 formatting issues noted by -Wformat-diag.
13850 * config/i386/i386-features.c
13851 (ix86_mangle_function_version_assembler_name): Same.
13852 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
13853 * config/i386/i386.c (ix86_function_type_abi): Same.
13854 (ix86_function_ms_hook_prologue): Same.
13855 (classify_argument): Same.
13856 (ix86_expand_prologue): Same.
13857 (ix86_md_asm_adjust): Same.
13858 (ix86_memmodel_check): Same.
13860 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
13862 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
13863 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
13866 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
13869 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
13870 intrinsics without SSE/SSE2/SSSE3.
13871 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
13873 (*mmx_uavgv8qi3): Likewise.
13875 2019-05-17 Richard Biener <rguenther@suse.de>
13877 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
13878 VEC_PERM_EXPR as __VEC_PERM with -gimple.
13880 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
13882 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
13883 vec_sldw insn pattern.
13885 2019-05-17 Richard Biener <rguenther@suse.de>
13887 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
13889 2019-05-17 Martin Liska <mliska@suse.cz>
13892 * toplev.c (output_stack_usage): With LTO and sanitizer it
13893 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
13894 has no file location.
13896 2019-05-16 Jakub Jelinek <jakub@redhat.com>
13899 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
13900 sz0 is equal to sz1, instead return false in that case.
13902 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
13903 has non-constant expression, force sctx.lane and use two
13904 argument IFN_GOMP_SIMD_LANE instead of single argument.
13905 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
13906 two argument IFN_GOMP_SIMD_LANE without lhs.
13907 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
13909 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
13911 (LOOP_REQUIRES_VERSIONING): Or in
13912 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
13913 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13915 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
13916 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
13917 from simd if clause if needed.
13919 2019-05-16 Richard Biener <rguenther@suse.de>
13921 * tree-affine.c (expr_to_aff_combination): New function split
13923 (tree_to_aff_combination): ... here.
13924 (aff_combination_expand): Avoid building a GENERIC tree.
13926 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
13928 * cgraphunit.c (cgraph_node::expand_thunk): Remove
13929 assemble_start_function and assemble_end_function calls.
13930 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
13931 assemble_start_function and assemble_end_function.
13932 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
13933 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
13934 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
13935 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
13936 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
13937 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
13938 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
13939 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
13940 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
13941 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
13942 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
13943 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
13945 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
13946 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
13947 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
13948 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
13949 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
13950 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
13951 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
13952 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
13953 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
13954 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
13955 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13956 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
13957 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
13958 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
13960 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
13961 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
13962 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
13964 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
13966 * tree-ssa-alias.c (alias_stats): Add
13967 aliasing_component_refs_p_may_alias and
13968 aliasing_component_refs_p_no_alias.
13969 (dump_alias_stats): Print aliasing_component_refs_p stats.
13970 (aliasing_component_refs_p): Update stats.
13972 2019-05-16 Martin Liska <mliska@suse.cz>
13975 * multiple_target.c (expand_target_clones): Do not allow
13976 target_clones being used with a symbol that is an alias.
13978 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
13980 PR tree-optimization/90394
13981 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
13982 positives rather than ICE for cases where (code2 == NE_EXPR
13983 && code1 == BIT_AND_EXPR).
13985 2019-05-16 Jakub Jelinek <jakub@redhat.com>
13988 * tree-core.h (struct tree_decl_common): Document
13989 decl_nonshareable_flag for PARM_DECLs.
13990 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
13991 * calls.c (expand_call): Don't try tail call if caller
13992 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
13993 passed on the stack and callee needs to pass any arguments on the
13995 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
13996 else if instead of series of mutually exclusive ifs. Handle
13997 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
13998 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
14000 * lto-streamer.h (LTO_major_version): Bump to 9.
14002 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
14004 PR tree-optimization/90106
14005 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
14006 new parameter as new internal function call, also move it to new
14008 (use_internal_fn): Pass internal function call to
14009 shrink_wrap_one_built_in_call_with_conds.
14011 2019-05-15 Jakub Jelinek <jakub@redhat.com>
14013 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
14015 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
14016 safelen_int and set loop->dont_vectorize.
14018 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14021 * config/i386/i386-builtin.def: Enable MMX intrinsics with
14023 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
14025 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
14026 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
14027 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
14030 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14033 * config/i386/mmx.md (*vec_dupv2sf): Changed to
14034 define_insn_and_split to support SSE emulation.
14035 (*vec_extractv2sf_0): Likewise.
14036 (*vec_extractv2sf_1): Likewise.
14037 (*vec_extractv2si_0): Likewise.
14038 (*vec_extractv2si_1): Likewise.
14039 (*vec_extractv2si_zext_mem): Likewise.
14040 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
14041 (vec_extractv2sf_1 splitter): Likewise.
14042 (vec_extractv2sfsf): Likewise.
14043 (vec_setv2si): Likewise.
14044 (vec_extractv2si_1 splitter): Likewise.
14045 (vec_extractv2sisi): Likewise.
14046 (vec_setv4hi): Likewise.
14047 (vec_extractv4hihi): Likewise.
14048 (vec_setv8qi): Likewise.
14049 (vec_extractv8qiqi): Likewise.
14050 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
14051 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
14052 (vec_extractv2sisi): Likewise.
14053 (vec_extractv4hihi): Likewise.
14054 (vec_extractv8qiqi): Likewise.
14055 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
14056 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
14057 (vec_initv2sisi): Likewise.
14058 (vec_initv4hihi): Likewise.
14059 (vec_initv8qiqi): Likewise.
14060 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
14061 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
14062 (vec_setv4hi): Likewise.
14063 (vec_setv8qi): Likewise.
14065 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14068 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
14069 TARGET_MMX_WITH_SSE.
14070 (MMXMODE:*mov<mode>_internal): Likewise.
14071 (MMXMODE:movmisalign<mode>): Likewise.
14073 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
14076 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
14077 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
14078 (sse2_cvtpd2pi): Ditto.
14079 (sse2_cvttpd2pi): Ditto.
14080 (*vec_concatv2sf_sse4_1): Ditto.
14081 (*vec_concatv2sf_sse): Ditto.
14082 (*vec_concatv2si_sse4_1): Ditto.
14083 (*vec_concatv2si): Ditto.
14084 (*vec_concatv4si_0): Ditto.
14085 (*vec_concatv2di_0): Ditto.
14087 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14090 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
14092 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14095 * config/i386/sse.md (ssse3_palignrdi): Changed to
14096 define_insn_and_split to support SSE emulation.
14098 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14101 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
14103 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14106 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
14107 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
14110 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14113 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
14114 or TARGET_MMX_WITH_SSE.
14115 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
14117 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14120 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
14122 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14125 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
14126 Changed to define_insn_and_split to support SSE emulation.
14128 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14131 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
14132 Changed to define_insn_and_split to support SSE emulation.
14134 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14137 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
14138 (*mmx_<emms>): This.
14139 (mmx_<emms>): New expander.
14141 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14144 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
14146 (*sse2_umulv1siv1di3): Add SSE2 emulation.
14148 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14151 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
14153 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14156 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
14158 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14161 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
14162 TARGET_MMX_WITH_SSE.
14163 (*mmx_uavgv4hi3): Add SSE emulation.
14165 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14168 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
14169 and TARGET_MMX_WITH_SSE.
14170 (*mmx_uavgv8qi3): Add SSE emulation.
14172 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14175 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
14176 maskmovdqu for __MMX_WITH_SSE__.
14178 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14181 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
14182 TARGET_MMX and TARGET_MMX_WITH_SSE.
14183 (*mmx_umulv4hi3_highpart): Add SSE emulation.
14185 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14188 * config/i386/mmx.md (mmx_pmovmskb): Changed to
14189 define_insn_and_split to support SSE emulation.
14191 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14194 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
14195 and TARGET_MMX_WITH_SSE.
14196 (mmx_<code>v8qi3): Likewise.
14197 (smaxmin:<code>v4hi3): New.
14198 (umaxmin:<code>v8qi3): Likewise.
14199 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
14200 (umaxmin:*mmx_<code>v8qi3): Likewise.
14202 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14205 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
14206 TARGET_MMX_WITH_SSE.
14207 (*mmx_pinsrw): Add SSE emulation.
14209 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14212 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
14214 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14217 * config/i386/sse.md (sse_cvtpi2ps): Changed to
14218 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
14221 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14224 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
14225 (sse_cvttps2pi): Likewise.
14227 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14230 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
14231 TARGET_MMX_WITH_SSE.
14232 (mmx_pshufw_1): Add SSE emulation.
14233 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
14234 TARGET_MMX_WITH_SSE to support SSE emulation.
14236 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14239 * config/i386/constraints.md (Yw): New constraint.
14240 * config/i386/mmx.md (*vec_dupv2si): Changed to
14241 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
14242 support SSE emulation.
14244 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14247 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
14248 TARGET_MMX_WITH_SSE.
14249 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
14251 (mmx_gt<mode>3): Likewise.
14253 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14256 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
14257 TARGET_MMX_WITH_SSE. Add SSE support.
14259 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14262 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
14263 TARGET_MMX_WITH_SSE.
14264 (any_logic:<code><mode>3): New.
14265 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
14268 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14271 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
14272 TARGET_MMX_WITH_SSE. Add SSE emulation.
14273 (mmx_<shift_insn><mode>3): Likewise.
14274 (ashr<mode>3): New.
14275 (<shift_insn><mode>3): Likewise.
14277 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14280 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
14281 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
14283 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14286 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
14287 TARGET_MMX_WITH_SSE.
14288 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
14291 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14294 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
14295 TARGET_MMX_WITH_SSE.
14297 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
14300 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14303 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
14304 (plusminus:mmx_<plusminus_insn><mode>3): Check
14305 TARGET_MMX_WITH_SSE.
14306 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
14307 (<plusminus_insn><mode>3): New.
14308 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
14309 (*mmx_<plusminus_insn><mode>3): Likewise.
14311 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14314 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
14315 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
14317 * config/i386/mmx.m (mmx_punpckhbw): Changed to
14318 define_insn_and_split to support SSE emulation.
14319 (mmx_punpcklbw): Likewise.
14320 (mmx_punpckhwd): Likewise.
14321 (mmx_punpcklwd): Likewise.
14322 (mmx_punpckhdq): Likewise.
14323 (mmx_punpckldq): Likewise.
14325 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14326 Uros Bizjak <ubizjak@gmail.com>
14329 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
14331 (ix86_split_mmx_pack): Likewise.
14332 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
14334 (ix86_split_mmx_pack): Likewise.
14335 * config/i386/i386.md (mmx_isa): New.
14336 (enabled): Also check mmx_isa.
14337 * config/i386/mmx.md (any_s_truncate): New code iterator.
14338 (s_trunsuffix): New code attr.
14339 (mmx_packsswb): Removed.
14340 (mmx_packssdw): Likewise.
14341 (mmx_packuswb): Likewise.
14342 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
14343 MMX packsswb/packuswb with SSE2.
14344 (mmx_packssdw): Likewise.
14345 * config/i386/predicates.md (register_mmxmem_operand): New.
14347 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14350 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14351 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
14352 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
14353 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
14354 (ix86_vector_mode_supported_p): Likewise.
14355 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
14357 2019-05-15 Martin Liska <mliska@suse.cz>
14359 PR middle-end/90478
14360 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
14361 Check for overflow.
14363 2019-05-15 Richard Biener <rguenther@suse.de>
14365 * tree-into-ssa.c (pass_build_ssa::execute): Run
14366 update_address_taken before going into SSA.
14368 2019-05-15 Richard Biener <rguenther@suse.de>
14370 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
14371 as __BIT_FIELD_REF with type with -gimple.
14373 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
14375 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
14376 semantically equivalent branches (left over after prior refactorings).
14378 2019-05-15 Richard Biener <rguenther@suse.de>
14380 PR tree-optimization/88828
14381 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
14384 2019-05-14 Richard Biener <rguenther@suse.de>
14386 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
14387 as __VIEW_CONVERT with -gimple.
14389 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
14392 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
14395 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
14397 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
14398 define_split to become a define_insn_and_split.
14400 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
14402 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
14404 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
14405 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
14406 (sibcall_epilogue): Adjust.
14407 (epilogue): Adjust.
14409 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14411 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
14412 to unsupported ones.
14413 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
14414 * config.host: Likewise.
14415 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
14416 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
14417 __svr4__]: Remove "brand" fallback.
14418 [!KSTAT_DATA_STRING]: Remove.
14419 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
14421 (comdat_group): Likewise.
14422 (set_have_as_tls): Likewise.
14423 (gcc_cv_target_dl_iterate_phdr): Likewise.
14424 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
14425 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
14426 * configure: Regenerate.
14427 * doc/install.texi: Simplify Solaris target triplets.
14428 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
14429 (Specific, *-*-solaris2*): Document Solaris 10 removal.
14430 Remove Solaris 10 references.
14431 Remove obsolete Solaris bug reference.
14432 (Specific, sparc-sun-solaris2.10): Remove.
14434 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
14436 * config/i386/i386.md (any_div): New code iterator.
14437 (paired_mod): New code attribute.
14438 (sgnprefix): Handle DIV and UDIV RTXes.
14440 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
14441 and udivmod<mode>4 patterns using any_div code iterator.
14442 (divmod splitters): Macroize splitters using any_div code iterator.
14443 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
14444 (*udivmodsi4_pow2_zext_2): Ditto.
14445 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
14446 and *udivmod<mode>4_noext patterns using any_div code iterator.
14447 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
14448 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
14449 patterns using any_div code iterator.
14450 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
14451 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
14452 patterns using any_div code iterator.
14453 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
14454 udivmodhiqi3 patterns using any_extend code iterator.
14456 2019-05-14 Richard Biener <rguenther@suse.de>
14457 H.J. Lu <hongjiu.lu@intel.com>
14459 PR tree-optimization/88828
14460 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
14461 permuting in a single non-constant element not extracted
14464 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
14466 * internal-fn.def (SIGNBIT): New.
14467 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
14469 (signbitv4sf2): Likewise.
14471 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
14474 * config/mips/mips.c (mips_split_move): Skip forward SRC into
14475 next insn when the SRC reg is dead.
14477 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
14479 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
14480 (alloc_cand_and_find_basis): Ditto.
14481 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
14482 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
14483 (create_add_imm_cand, slsr_process_cast): Ditto.
14484 (slsr_process_copy, replace_mult_candidate): Ditto.
14485 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
14486 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
14487 (pass_strength_reduction::execute): Init the first NULL element.
14489 2019-05-13 Nathan Sidwell <nathan@acm.org>
14491 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
14492 (run_attempt): Reformat line break.
14494 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
14497 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
14498 data registers in sibcall epilogues.
14499 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
14501 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
14504 * configure.ac (--enable-frame-pointer):
14505 Disable by default for cygwin and mingw.
14506 * configure: Regenerate.
14508 2019-05-13 Nathan Sidwell <nathan@acm.org>
14510 * dwarf2out.c (breakout_comdat_types): Move comment to correct
14512 (const_ok_for_output_1): Balance parens around #if/#else/#endif
14513 (gen_member_die): Move abstract origin check earlier. Only VARs
14514 can be static_inline_p. Simplify splicing control flow.
14516 2019-05-13 Richard Biener <rguenther@suse.de>
14518 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
14520 (vect_build_slp_tree_1): Likewise.
14522 2019-05-13 Richard Biener <rguenther@suse.de>
14524 PR tree-optimization/90402
14525 * tree-if-conv.c (tree_if_conversion): Value number only
14526 the loop body by making the latch an exit of the region
14528 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
14530 (do_rpo_vn): Deal with multiple edges into the entry block
14531 that are not backedges inside the region by skipping PHIs
14532 of the entry block.
14534 2019-05-13 Richard Biener <rguenther@suse.de>
14536 PR tree-optimization/90316
14537 * tree-ssa-pre.c (insert_aux): Fold into ...
14538 (insert): ... this function. Use a RPO walk to reduce the
14539 number of required iterations.
14541 2019-05-13 Martin Liska <mliska@suse.cz>
14543 PR tree-optimization/90416
14544 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
14545 string instead of passing the second part as va_arg argument.
14547 2019-05-13 Martin Liska <mliska@suse.cz>
14549 PR gcov-profile/90380
14550 * gcov.c (handle_cycle): Do not support zero cycle count,
14551 it should not be possible.
14552 (path_contains_zero_cycle_arc): New function.
14553 (circuit): Ignore zero cycle arc counts.
14555 2019-05-13 Martin Liska <mliska@suse.cz>
14557 PR gcov-profile/90380
14558 * gcov.c (enum loop_type): Remove the enum and
14560 (handle_cycle): Assert that we should not reach
14562 (circuit): Use loop_found instead of a tri-state loop_type.
14563 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
14566 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
14569 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
14570 (ix86_output_indirect_branch_via_reg): Use output mechanism
14571 accounting for __USER_LABEL_PREFIX__.
14572 (ix86_output_indirect_branch_via_push): Likewise.
14573 (ix86_output_function_return): Likewise.
14574 (ix86_output_indirect_function_return): Likewise.
14576 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
14578 * doc/md.texi: Document use of code attributes in rtx patterns.
14579 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
14580 * read-rtl.c (find_code): Split out search loops into...
14581 (maybe_find_code): ...this new function.
14582 (check_code_iterator): Make the error message more informative.
14583 (check_code_attribute): New function.
14584 (rtx_reader::rtx_alloc_for_name): Likewise.
14585 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
14586 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
14587 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
14588 <max_opp> directly as an rtx code instead of via a match_operator.
14589 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
14590 (<su>abd<mode>_3): Update accordingly.
14592 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
14594 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
14595 is given, print the state of the EH "save world" computation for
14598 2019-05-11 Jakub Jelinek <jakub@redhat.com>
14601 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
14602 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
14604 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
14606 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
14607 Use pinsrd for TARGET_SSE4_1.
14608 * config/i386/sse.md (movdi_to_sse): Ditto.
14610 2019-05-10 Richard Biener <rguenther@suse.de>
14612 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
14613 (do_rpo_vn): Initialize next_value_id.
14615 2019-05-10 Martin Liska <mliska@suse.cz>
14617 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
14620 2019-05-10 Jakub Jelinek <jakub@redhat.com>
14622 PR tree-optimization/90385
14623 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
14624 arguments of the exit phis.
14627 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
14628 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
14630 (copy_tree_body_r): Likewise.
14631 (copy_fn): Set id.do_not_fold to true.
14633 2019-05-10 Martin Liska <mliska@suse.cz>
14635 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
14636 Reapply changes from r269790.
14638 2019-05-10 Martin Liska <mliska@suse.cz>
14640 PR middle-end/90340
14641 * doc/invoke.texi: New params.
14642 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
14643 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
14644 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
14646 * tree-switch-conversion.h (struct jump_table_cluster):
14649 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
14651 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
14653 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
14655 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
14657 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
14659 PR rtl-optimization/88879
14660 * sel-sched.c (sel_target_adjust_priority): Remove assert.
14662 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
14665 * config/arm/arm.c (callee_saved_reg_p): Move before
14666 thumb_find_work_register.
14667 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
14668 thumb_find_work_register. Only call df_get_live_out once.
14669 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
14670 (thumb_find_work_register): Use
14671 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
14672 algorithms to locate a spare call clobbered reg.
14674 2019-05-09 Martin Liska <mliska@suse.cz>
14676 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
14677 and MAX_EXPR in GIMPLE FE format.
14679 2019-05-09 Martin Liska <mliska@suse.cz>
14681 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
14682 * gimple-pretty-print.c (dump_gimple_bb_header):
14684 (pp_cfg_jump): Dump edge probability.
14685 * profile-count.c (profile_quality_as_string): Simplify
14686 with a static array.
14687 (parse_profile_quality): New function.
14688 (profile_count::dump): Simplify with a static array.
14689 (profile_count::from_gcov_type): Add new argument.
14690 * profile-count.h (parse_profile_quality): Likewise.
14691 * predict.h (set_hot_bb_threshold): New.
14692 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
14694 * predict.c (get_hot_bb_threshold): Set from the new param.
14695 (set_hot_bb_threshold): New.
14697 2019-05-09 Richard Biener <rguenther@suse.de>
14699 PR tree-optimization/90395
14700 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
14701 rewrite vector stores that throw internally.
14703 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
14705 * cif-code.def (CHKP): Remove.
14708 * configure.ac (--enable-frame-pointer): Disable by default for
14710 * configure: Regenerate.
14712 2019-05-09 Alan Modra <amodra@gmail.com>
14715 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
14716 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
14717 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
14718 cost for general <-> vsx when direct moves are available.
14719 Cost union classes at minimal cost for any reg in the class.
14720 Correct calculation for moves between vsx, float, and altivec.
14721 Don't return a low cost for moves between special regs. Don't
14722 use hard coded register numbers.
14723 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
14724 (rs6000_ira_change_pseudo_allocno_class): New function.
14725 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
14726 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
14728 (movsi_internal1): Don't disparage vector alternatives.
14729 (mov<mode>_internal): Likewise, excepting alternative that
14731 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
14732 we <- b alternative.
14734 2019-05-08 Jakub Jelinek <jakub@redhat.com>
14737 PR tree-optimization/89060
14738 * tree-ssa-live.h (live_vars_map): New typedef.
14739 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
14740 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
14741 (struct compute_live_vars_data): New type.
14742 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
14743 live_vars_at_stmt, destroy_live_vars): New functions.
14744 * tree-tailcall.c: Include tree-ssa-live.h.
14745 (live_vars, live_vars_vec): New global variables.
14746 (find_tail_calls): Perform variable life analysis before punting.
14747 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
14748 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
14750 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
14751 Perform variable life analysis to select variables that really need
14753 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
14754 instead set id->eh_landing_pad_dest and assert it is the same.
14755 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
14757 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
14758 Richard Earnshaw <rearnsha@arm.com>
14761 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
14763 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
14764 (thumb1_compute_save_core_reg_mask): Don't force a spare work
14765 register if both the epilogue and prologue can use call-clobbered
14767 (thumb1_unexpanded_epilogue): Use
14768 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
14769 picking temporaries for restoring high regs to match that of the
14770 prologue where possible.
14771 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
14772 the list of work registers. Detect if the return address is still live
14773 at the end of the prologue and avoid using it for a work register if so.
14774 If the return address is not live, add LR to the list of pushable regs
14775 after the first pass.
14777 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
14779 PR tree-optimization/90078
14780 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
14781 (INFTY): Increase the value for infinite cost.
14782 (struct comp_cost): Promote type of members to int64_t.
14783 (infinite_cost): Don't set complexity in initialization.
14784 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
14785 overflows to infinite_cost.
14786 (adjust_setup_cost): Promote type of parameter and cost computation
14788 (struct ainc_cost_data, struct iv_ca): Promote type of member to
14790 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
14791 cost computation to int64_t.
14792 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
14793 int64_t's format specifier in dump.
14795 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
14797 PR tree-optimization/90240
14798 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
14799 with respect to scaling factor pre-computed for each basic block.
14800 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
14801 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
14802 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
14803 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
14804 live range for array of loop's basic blocks. Cleanup aux field of
14805 loop's basic blocks.
14807 2019-05-08 Jakub Jelinek <jakub@redhat.com>
14809 PR tree-optimization/90356
14810 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
14812 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
14814 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
14815 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
14816 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
14817 (ix86_handle_option): Handle -mavx512bf16.
14818 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
14820 * config/i386/avx512bf16vlintrin.h: New.
14821 * config/i386/avx512bf16intrin.h: New.
14822 * config/i386/cpuid.h (bit_AVX512BF16): New.
14823 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
14824 * config/i386/i386-builtin-types.def: Add new types.
14825 * config/i386/i386-builtin.def: Add new builtins.
14826 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14828 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
14829 (ix86_option_override_internal): Handle BF16.
14830 (ix86_valid_target_attribute_inner_p): Ditto.
14831 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
14832 * config/i386/i386-builtin.c (enum processor_features): Add
14834 (static const _isa_names_table isa_names_table): Ditto.
14835 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
14836 (PTA_AVX512BF16): Ditto.
14837 * config/i386/i386.opt: Add -mavx512bf16.
14838 * config/i386/immintrin.h: Include avx512bf16intrin.h
14839 and avx512bf16vlintrin.h.
14840 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
14841 avx512f_cvtneps2bf16_<mode><mask_name>,
14842 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
14843 * config/i386/subst.md (mask_half): Add new subst.
14844 * doc/invoke.texi: Document -mavx512bf16.
14846 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
14848 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
14849 Delete declaration.
14850 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
14851 (rs6000_debug_legitimize_reload_address): Delete.
14852 (rs6000_legitimize_reload_address_ptr): Delete.
14853 (rs6000_option_override_internal): Adjust.
14854 (mem_operand_gpr): Adjust comment.
14855 (legitimate_lo_sum_address_p): Ditto.
14856 (rs6000_legitimize_reload_address): Delete.
14857 (rs6000_debug_legitimize_reload_address): Delete.
14858 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
14860 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
14863 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14864 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
14865 to compute vector element selector for both constant and variable
14868 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
14870 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
14871 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
14872 ashrdi3_cvt using SWI48 mode iterator.
14874 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14876 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
14877 (aarch64_<su>abd<mode>_3): Likewise.
14878 (*aarch64_<su>abd<mode>_3): New define_insn.
14879 (<sur>sad<vsi2qi>): New define_expand.
14880 * config/aarch64/iterators.md: Added MAX_OPP attribute.
14881 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
14882 (build_vect_cond_expr): Likewise.
14884 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
14886 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
14887 clobbers outside of accessible_reg_set.
14888 * config/i386/i386.c (ix86_conditional_register_usage):
14889 Disable register sets by clearing corresponding bits in
14890 accessible_reg_set. Do not set corresponding bits in fixed_regs,
14891 call_used_regs and don't clear corresponding reg_names array members.
14893 2019-05-07 Richard Biener <rguenther@suse.de>
14895 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
14896 not specified still compute a comp_vectype for invariant
14899 2019-05-07 Richard Biener <rguenther@suse.de>
14901 PR tree-optimization/90316
14902 * tree-ssa-pre.c (translate_vuse_through_block): When
14903 same_valid is NULL do not bother to search for a virtual
14905 (phi_translate_1): When operands changed we cannot keep
14906 the same value-number so do not bother to ask whether
14907 that's possible from translate_vuse_through_block.
14909 2019-05-07 Martin Liska <mliska@suse.cz>
14911 * bitmap.c (bitmap_register): Come up with
14912 alloc_descriptor_max_uid and assign it for
14914 (register_overhead): Use get_descriptor as
14916 (release_overhead): New.
14917 (bitmap_elem_to_freelist): Call it.
14918 (bitmap_elt_clear_from): Likewise.
14919 (bitmap_obstack_free): Likewise.
14920 (bitmap_move): Sensitively release memory.
14921 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
14922 (bitmap_initialize): Initialize alloc_descriptor to zero.
14923 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
14925 2019-05-07 Richard Biener <rguenther@suse.de>
14927 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
14928 we build a SLP node. Remove max_size and limiting.
14929 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
14931 2019-05-07 Richard Biener <rguenther@suse.de>
14933 PR tree-optimization/90316
14934 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
14935 limit by reference.
14936 (walk_non_aliased_vuses): Take walking limit argument.
14937 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
14938 walking if it is reached instead of just counting.
14939 (get_continuation_for_phi): Likewise.
14940 (walk_non_aliased_vuses): Likewise, instead of leaving counter
14941 limiting to the callback.
14942 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
14943 (vn_reference_lookup_3): Likewise.
14944 (vn_reference_lookup_pieces): Likewise.
14945 (vn_reference_lookup): Likewise.
14946 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
14947 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
14948 (avail_exprs_stack::lookup_avail_expr): Likewise.
14950 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
14952 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
14953 for comparaible types in the second direction even if first one
14954 hits incomparable type.
14956 2019-05-07 Richard Biener <rguenther@suse.de>
14959 * lto-wrapper.c (debug_objcopy): Use the original filename
14960 including archive offset for the filename used for -save-temps.
14962 2019-05-07 Li Jia He <helijia@linux.ibm.com>
14964 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
14967 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
14968 Hongtao Liu <hongtao.liu@intel.com>
14972 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
14973 Modified, original implementation isn't correct.
14975 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14977 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
14978 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
14979 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
14980 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
14981 (FRAME_POINTER_REGNUM): Change numbering.
14982 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
14983 (alt_reg_names): Adjust.
14984 (rs6000_conditional_register_usage): Don't mark hard register 64 as
14986 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
14987 (DWARF_FRAME_REGISTERS): Delete.
14988 (DWARF2_FRAME_REG_OUT): Fix whitespace.
14989 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
14991 (REG_ALLOC_ORDER): Adjust.
14992 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
14993 (REG_CLASS_CONTENTS): Adjust.
14994 (RETURN_ADDR_RTX): Change comment.
14995 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
14997 (REGISTER_NAMES): Adjust.
14998 (ADDITIONAL_REGISTER_NAMES): Adjust.
14999 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
15001 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
15003 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
15005 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
15006 (DWARF_FRAME_REGISTERS): Adjust.
15007 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
15009 (REG_ALLOC_ORDER): Adjust.
15010 (enum reg_class): Delete SPR_REGS.
15011 (REG_CLASS_NAMES): Delete SPR_REGS.
15012 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
15013 (REGISTER_NAMES): Adjust.
15014 (ADDITIONAL_REGISTER_NAMES): Adjust.
15015 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
15016 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
15017 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
15018 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
15019 (htm_spr_regno): Delete.
15020 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
15022 (rs6000_dbx_register_number): Adjust.
15024 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
15026 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
15028 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
15030 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
15031 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
15033 2019-05-06 Jakub Jelinek <jakub@redhat.com>
15035 PR tree-optimization/88709
15036 PR tree-optimization/90271
15037 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
15038 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
15039 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
15041 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
15042 of the store merging group is larger than
15043 PARAM_STORE_MERGING_MAX_SIZE parameter.
15044 (split_group): Add bzero_first argument. If set, always emit first
15045 the first store which must be = {} of the whole area and then for the
15046 rest of the stores consider all zero bytes as paddings.
15047 (imm_store_chain_info::output_merged_store): Check if first store
15048 is = {} of the whole area and if yes, determine which setting of
15049 bzero_first for split_group gives smaller number of stores. Adjust
15050 split_group callers.
15051 (lhs_valid_for_store_merging_p): Allow decls.
15052 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
15054 (pass_store_merging::process_store): Likewise.
15056 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
15059 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15060 handling of V1TImode.
15062 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
15065 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
15066 and enable_frame_pointer ...
15067 * configure.ac: ... here. Update help strings for
15068 --enable-frame-pointer.
15069 * configure: Regenerate.
15070 * config/i386/i386-options.c (ix86_option_override_internal): Remove
15071 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
15072 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
15073 (USE_X86_64_FRAME_POINTER): Ditto.
15075 2019-05-06 Martin Liska <mliska@suse.cz>
15077 * config.gcc: Append to target_gtfiles and fix indentation.
15079 2019-05-06 Richard Biener <rguenther@suse.de>
15081 PR tree-optimization/90358
15082 * tree-vect-stmts.c (get_group_load_store_type): Properly
15083 detect unused upper half of load.
15084 (vectorizable_load): Likewise.
15086 2019-05-06 Richard Biener <rguenther@suse.de>
15088 PR tree-optimization/88828
15089 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
15090 (simplify_vector_constructor): ...here. Handle constants in
15093 2019-05-06 Richard Biener <rguenther@suse.de>
15095 PR tree-optimization/90328
15096 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
15097 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
15098 is valid in the loop nest before using it.
15099 (initialize_data_dependence_relation): Adjust.
15100 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
15101 loop as loop-nest to dr_may_alias_p.
15103 2019-05-06 Richard Biener <rguenther@suse.de>
15105 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
15107 2019-05-06 Richard Biener <rguenther@suse.de>
15109 PR tree-optimization/90316
15110 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
15111 compute target on demand.
15112 (get_continuation_for_phi): Remove code walking stmts to
15113 get to a target virtual operand which could end up being
15116 2019-05-06 Martin Liska <mliska@suse.cz>
15119 * config/i386/i386-options.c (ix86_option_override_internal): Error only
15120 when -mabi is selected to a non-default version.
15122 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
15123 Martin Liska <mliska@suse.cz>
15125 * Makefile.in: Add lto-dump.texi.
15126 * cgraph.h: Add new functions get_visibility_string and
15127 get_symtab_type_string.
15128 * doc/gcc.texi: Include lto-dump section.
15129 * doc/lto-dump.texi: New file.
15130 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
15131 (parse_dump_option): Factor out this function.
15132 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
15133 (parse_dump_option): Export the function.
15134 * symtab.c (symtab_node::get_visibility_string): New function.
15135 (symtab_node::get_symtab_type_string): Likewise.
15137 2019-05-06 Martin Liska <mliska@suse.cz>
15139 * config/i386/i386-builtins.c: New file.
15140 * config/i386/i386-builtins.h: New file.
15141 * config/i386/i386-expand.c: New file.
15142 * config/i386/i386-expand.h: New file.
15143 * config/i386/i386-features.c: New file.
15144 * config/i386/i386-features.h: New file.
15145 * config/i386/i386-options.c: New file.
15146 * config/i386/i386-options.h: New file.
15147 * config.gcc: Add new files into extra_objs and
15149 * config/i386/i386.c: Split content of the file
15150 into newly introduced files.
15151 * config/i386/i386.h: Declare common variables
15153 * config/i386/t-i386: Define dependencies for new files.
15155 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
15158 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
15159 Restrict 'all' variant to 32-bit configurations.
15160 (unaligned_loadhiu): Likewise.
15161 (unaligned_storehi): Likewise.
15162 (unaligned_storesi): Likewise.
15163 (unaligned_loadhis): Disable when compiling for thumb1.
15165 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
15167 PR tree-optimization/90269
15168 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
15171 2019-05-03 Martin Liska <mliska@suse.cz>
15173 * hash-map.h: Add is_empty function.
15174 * hash-set.h: Likewise.
15175 * hash-table.h: Likewise.
15176 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
15177 elements () == 0 (and similar usages).
15178 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
15179 * gimplify.c (gimplify_bind_expr): Likewise.
15180 (gimplify_switch_expr): Likewise.
15181 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
15182 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
15183 * postreload-gcse.c (dump_hash_table): Likewise.
15184 (gcse_after_reload_main): Likewise.
15185 * predict.c (combine_predictions_for_bb): Likewise.
15186 * tree-parloops.c (reduction_phi): Likewise.
15187 (separate_decls_in_region): Likewise.
15188 (transform_to_exit_first_loop): Likewise.
15189 (gen_parallel_loop): Likewise.
15190 (gather_scalar_reductions): Likewise.
15191 (try_create_reduction_list): Likewise.
15192 * var-tracking.c (dump_vars): Likewise.
15193 (emit_notes_for_changes): Likewise.
15194 (vt_emit_notes): Likewise.
15196 2019-05-03 Richard Biener <rguenther@suse.de>
15198 PR tree-optimization/90316
15199 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
15202 2019-05-03 Richard Biener <rguenther@suse.de>
15204 * tree-vect-stmts.c (get_group_load_store_type): Avoid
15205 peeling for gaps by loading only lower halves of vectors
15207 (vectorizable_load): Likewise.
15209 2019-05-03 Richard Biener <rguenther@suse.de>
15211 PR middle-end/89518
15212 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
15214 2019-05-03 Richard Biener <rguenther@suse.de>
15216 PR middle-end/87314
15217 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
15218 Handle STRING_CST vs DECL or STRING_CST.
15220 2019-05-03 Richard Biener <rguenther@suse.de>
15222 PR tree-optimization/88963
15223 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
15224 vector loads feeding only BIT_FIELD_REFs to component
15225 loads. Rewrite stores fed by CONSTRUCTORs to component
15228 2019-05-03 Jakub Jelinek <jakub@redhat.com>
15230 * opts.h (finish_options): Remove lang_mask argument.
15231 (print_help, help_option_argument): Declare.
15232 * opts.c (print_help): Remove forward declaration, no longer static.
15233 (finish_options): Remove lang_mask argument, don't call print_help
15235 * opts-global.c (decode_options): Adjust finish_option caller, call
15238 PR tree-optimization/90303
15239 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
15240 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
15242 2019-05-03 Richard Biener <rguenther@suse.de>
15244 PR tree-optimization/89698
15245 * gimple-fold.c (canonicalize_constructor_val): Early out
15246 for constants, handle unfolded INTEGER_CSTs as they appear in
15247 C++ virtual table ctors.
15249 2019-05-03 Richard Biener <rguenther@suse.de>
15251 * passes.c (execute_function_todo): Remove dead code.
15253 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
15255 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
15256 the internal register number, for any "real" register.
15258 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
15260 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
15261 correct numbers for TFHAR, TFIAR, TEXASR.
15263 2019-05-02 Richard Biener <rguenther@suse.de>
15265 PR tree-optimization/89653
15266 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
15267 update-address-taken before the pass.
15268 * passes.def (pass_tree_loop_init): Put comment before it.
15270 2019-05-02 Richard Biener <rguenther@suse.de>
15272 PR tree-optimization/89509
15273 * tree-ssa-structalias.c (compute_dependence_clique): Look
15274 at the first subvar when determining whether it is restrict.
15276 2019-05-02 Richard Biener <rguenther@suse.de>
15278 PR tree-optimization/90273
15279 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
15280 useless debug stmts.
15282 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15284 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
15286 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
15288 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
15289 VEC_COND_EXPR be inserted to emulate a conditional internal function.
15290 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
15291 (vectorizable_reduction): Use the functions above to vectorize in a
15292 fully masked loop codes that don't have a conditional internal
15295 2019-05-02 Martin Liska <mliska@suse.cz>
15297 * cgraphclones.c: Call valid_attribute_p with 1 for
15299 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
15300 it's for target attribute.
15301 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
15302 Add new boolean argument.
15303 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
15305 (ix86_valid_target_attribute_tree): Pass target_clone_attr
15306 to ix86_valid_target_attribute_inner_p.
15307 (ix86_valid_target_attribute_p): Pass flags argument to
15308 ix86_valid_target_attribute_inner_p.
15309 (get_builtin_code_for_version): Use 0 as it's target attribute.
15311 2019-05-02 Martin Liska <mliska@suse.cz>
15313 * gcc.c (process_command): Add dummy file only
15315 * opts-global.c (decode_options): Pass lang_mask.
15316 * opts.c (print_help): New function.
15317 (finish_options): Print --help if help_option_argument
15319 (common_handle_option): Factor out content of OPT__help_
15321 * opts.h (finish_options): Add new argument.
15323 2019-05-02 Martin Liska <mliska@suse.cz>
15326 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
15327 With -minline-all-stringops use inline expansion using 4B loop.
15328 * doc/invoke.texi: Document the change of
15329 -minline-all-stringops.
15331 2019-05-01 Jeff Law <law@redhat.com>
15333 PR tree-optimization/88797
15334 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
15335 PHI feeds a conditional on the RHS of an assignment.
15337 2019-04-30 Andrew Waterman <andrew@sifive.com>
15338 Jim Wilson <jimw@sifive.com>
15340 * config/riscv/constraints.md (L): New.
15341 * config/riscv/predicates.md (lui_operand): New.
15342 (sfb_alu_operand): New.
15343 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
15344 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
15345 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
15346 * config/riscv/risc.md (type): Add sfb_alu.
15347 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
15348 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
15349 (branch_zero<mode>): Delete.
15350 (mov<mode>cc): New.
15351 (mov<GPR:mode><X:mode>cc): Likewise.
15352 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
15354 2019-04-30 Nathan Sidwell <nathan@acm.org>
15356 * tree.h (MARK_TS_EXP): New.
15358 2019-04-30 Martin Liska <mliska@suse.cz>
15360 * opts.c (enable_warning_as_error): Provide hints
15361 for unknown options.
15363 2019-04-30 Martin Liska <mliska@suse.cz>
15366 * doc/invoke.texi: Add missing dash for gas-locview-support
15367 and gno-as-locview-support.
15369 2019-04-30 Jakub Jelinek <jakub@redhat.com>
15372 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
15373 whitespace at the start of target attribute string.
15375 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15378 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
15379 Define __ARM_FEATURE_ATOMICS.
15381 2019-04-30 Martin Liska <mliska@suse.cz>
15383 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
15384 into built_in_function enum. Remove code for endp == 2 and
15385 use BUILT_IN_* constants.
15386 (gimple_fold_builtin): Call the function with fcode.
15388 2019-04-30 Martin Liska <mliska@suse.cz>
15390 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
15391 DECL_FUNCTION_CODE into ix86_builtins enum before
15392 the switch statement.
15394 2019-04-30 Jakub Jelinek <jakub@redhat.com>
15396 PR tree-optimization/89475
15397 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
15400 2019-04-30 Martin Liska <mliska@suse.cz>
15402 PR translation/90274
15403 * opts.c (print_filtered_help): Wrap string in _(...).
15405 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
15407 PR tree-optimization/90240
15409 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
15411 PR tree-optimization/90078
15412 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
15413 checks for infinite_cost overflow.
15415 2019-04-29 Jeff Law <law@redhat.com>
15417 * passes.def: Move -Wrestrict pass after copy propagation.
15419 2019-04-29 Maya Rashish <coypu@sdf.org>
15421 * config.gcc (default_gnu_indirect_function): Default to yes
15422 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
15423 sparc*-*-netbsd*, x86_64-*-netbsd*.
15425 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
15427 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
15428 where cond2 is NE_EXPR.
15429 (is_value_included_in): Update comment.
15431 2019-04-29 Richard Biener <rguenther@suse.de>
15433 PR tree-optimization/90278
15434 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
15435 EH on comparison simplification.
15437 2019-04-29 Jason Merrill <jason@redhat.com>
15439 PR c++/82081 - tail call optimization breaks noexcept
15440 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
15441 nothrow function to a might-throw function into a tail call.
15443 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
15445 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
15446 (DDR_INNER_LOOP): Likewise.
15447 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
15448 (initialize_data_dependence_relation): Likewise.
15449 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
15451 2019-04-29 Jakub Jelinek <jakub@redhat.com>
15453 PR rtl-optimization/90257
15454 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
15458 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
15462 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
15465 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
15468 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
15470 * lra-spills.c (lra_final_code_change): Remove useless move insns.
15472 2019-04-29 Richard Biener <rguenther@suse.de>
15474 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
15477 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
15479 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
15480 varasm.h, and netbsd-protos.h.
15482 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
15485 * config/i386/i386-protos.h (ix86_data_alignment): Change
15486 the second argument type to unsigned int.
15487 * config/i386/i386.c (ix86_data_alignment): Change "align"
15488 argument type to unsigned int.
15490 2019-04-27 Martin Liska <mliska@suse.cz>
15492 PR middle-end/90258
15493 * opt-suggestions.c (option_proposer::build_option_suggestions):
15494 When get_valid_option_values returns empty values, add the
15495 misspelling candidate.
15497 2019-04-26 Jim Wilson <jimw@sifive.com>
15499 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
15501 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
15502 Pass orig_mode to riscv_build_integer.
15503 (riscv_split_integer): Pass mode to riscv_move_integer.
15504 (riscv_legitimize_const_move): Likewise.
15505 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
15506 promoted_mode. Replace force_reg call with code to load constant into
15507 promoted reg and then subreg it for the store.
15508 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
15509 riscv_move_integer.
15511 2018-04-26 Eugene Sharygin <eush@ispras.ru>
15513 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
15516 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
15518 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
15519 commentary about the encoding of precision.
15521 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
15523 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
15524 * config/i386/t-freebsd64: New file.
15525 * config.gcc: Add the t-freebsd64 for multilib support.
15527 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
15529 * doc/extend.texi (vector_size): Add missing comma after @xref.
15531 2019-04-25 Jakub Jelinek <jakub@redhat.com>
15533 * BASE-VER: Set to 10.0.0.
15535 2019-04-25 Richard Biener <rguenther@suse.de>
15537 PR middle-end/89765
15538 * gimplify.c (gimplify_expr): Avoid turning a lvalue
15539 VIEW_CONVERT_EXPR into one operating on an rvalue.
15541 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
15544 * config/i386/i386.c (feature_priority): Moved to file scope.
15545 (processor_features): Likewise.
15546 (processor_model): Likewise.
15547 (_arch_names_table): Likewise.
15548 (arch_names_table): Likewise.
15549 (_feature_list): Removed.
15550 (feature_list): Likewise.
15551 (_isa_names_table): Moved to file scope. Add priority.
15552 (isa_names_table): Likewise.
15553 (get_builtin_code_for_version): Replace feature_list with
15554 isa_names_table. Update error message for P_ZERO priority.
15556 2019-04-25 Richard Biener <rguenther@suse.de>
15558 * tree-pass.h (make_pass_phi_only_cprop): Remove.
15559 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
15561 2019-04-24 Jeff Law <law@redhat.com>
15563 PR tree-optimization/90037
15564 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
15565 * passes.def: Replace all instance of phi-only cprop with the
15566 lattice propagator. Move propagation pass from after erroneous
15567 path isolation to before erroneous path isolation.
15568 * tree-ssa-phionlycprop.c: Remove.
15570 2019-04-24 Richard Biener <rguenther@suse.de>
15572 PR middle-end/90213
15573 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
15574 by size and BITS_PER_UNIT on poly-wide-ints.
15576 2019-04-25 Richard Biener <rguenther@suse.de>
15578 PR middle-end/90194
15579 * match.pd: Add pattern to simplify view-conversion of an
15582 2019-04-24 Clement Chigot <clement.chigot@atos.net>
15584 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
15585 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
15586 for Go on 32 bit AIX.
15587 * config/rs6000/aix72.h: Likewise.
15589 2019-04-24 Jakub Jelinek <jakub@redhat.com>
15592 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
15593 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
15595 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
15598 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
15599 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
15600 for restored hard frame pointer.
15601 (s390_sched_dependencies_evaluation): Implement new target hook.
15602 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
15604 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
15606 * config/arc/arc-options.def: Fix typos and spelling mistakes.
15607 * config/arc/arc.c (arc_init): Cleanup warning message.
15608 (arc_override_options): Likewise.
15610 2019-04-24 Jakub Jelinek <jakub@redhat.com>
15613 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
15614 a register if both if_true and if_false are MEMs.
15616 PR tree-optimization/90208
15617 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
15618 after labels of new_bb, not before them.
15620 PR tree-optimization/90211
15621 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
15622 which are not SSA_NAMEs.
15624 2018-04-23 Sudakshina Das <sudi.das@arm.com>
15626 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
15628 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
15630 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
15632 PR rtl-optimization/87979
15633 * modulo-sched.c (sms_schedule): Start ii value "mii" should
15636 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
15638 PR rtl-optimization/84032
15639 * modulo-sched.c (ps_insn_find_column): Change condition so that
15640 branch will always be the last insn in a row inside partial
15643 2019-04-23 Richard Biener <rguenther@suse.de>
15646 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
15647 dest_single_pred_p argument.
15648 (remove_forwarder_block): Adjust.
15649 (remove_forwarder_block_with_phi): Likewise.
15651 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15652 Bernd Edlinger <bernd.edlinger@hotmail.de>
15653 Jakub Jelinek <jakub@redhat.com>
15656 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
15657 if used with general-regs-only.
15658 (arm_conditional_register_usage): Don't add non-general regs if
15660 (arm_valid_target_attribute_rec): Handle general-regs-only.
15661 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
15663 (TARGET_HARD_FLOAT_SUB): Define.
15664 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
15665 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
15666 (TARGET_REALLY_IWMMXT2): Likewise.
15667 * config/arm/arm.opt: Add -mgeneral-regs-only.
15668 * doc/extend.texi: Document ARM general-regs-only target.
15669 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
15671 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
15673 PR tree-optimization/90078
15674 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
15675 checks for infinite_cost overflow.
15677 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
15679 PR tree-optimization/90021
15680 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
15681 and check univariate against it.
15682 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
15683 * tree-data-ref.c (add_other_self_distances): Pass new argument.
15685 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
15689 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
15692 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
15695 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
15697 * lra-spills.c (lra_final_code_change): Remove useless move insns.
15699 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
15701 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
15702 names using operand format, rather than hard-wired.
15703 (speculation_barrier): Likewise.
15705 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
15707 PR tree-optimization/88055
15708 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
15709 (gen_one_condition): Use it if !HONOR_NANS.
15711 2019-04-19 Jakub Jelinek <jakub@redhat.com>
15713 PR middle-end/90139
15714 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
15715 assign_temp instead of gen_reg_rtx.
15717 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
15719 PR translation/90118
15720 * config/aarch64/aarch64.c (aarch64_override_options_internal):
15721 Add missing space before %<.
15723 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
15725 PR rtl-optimization/87871
15726 * ira-lives.c (make_object_dead): Don't add conflicts to
15727 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
15729 2019-04-18 Martin Sebor <msebor@redhat.com>
15731 PR middle-end/89797
15732 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
15733 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
15734 assuming type size fits in SHWI.
15736 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
15739 * ipa-inline.c (flatten_function): New parameter UPDATE.
15740 (ipa_inline, early_inliner): Use it.
15742 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
15744 * fold-const.c (int_const_binop): Return early on failure.
15746 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
15748 PR middle-end/85164
15749 * combine.c (force_int_to_mode): Cast the argument rather than
15750 the result of known_alignment.
15751 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
15753 2019-04-18 Richard Biener <rguenther@suse.de>
15756 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
15758 (remove_forwarder_block): ... here.
15759 (remove_forwarder_block_with_phi): Also move debug stmts here.
15761 2019-04-18 Jakub Jelinek <jakub@redhat.com>
15763 PR translation/79183
15764 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
15765 inform where appropriate.
15767 2019-04-18 Richard Biener <rguenther@suse.de>
15769 * tree.c (get_qualified_type): Put found type variants at the
15770 head of the variant list.
15772 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
15774 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
15776 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
15779 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
15780 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
15781 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
15782 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
15783 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
15785 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
15787 * ira-conflicts.c (print_allocno_conflicts): Always print something,
15788 even for allocno's with no conflicts.
15789 (print_conflicts): Print an extra newline.
15791 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
15793 * auto-inc-dec.c (attempt_change): Set the alignment of the
15794 temporary memory to that of the original.
15796 2019-04-17 Joao Moreira <jmoreira@suse.de>
15798 * targhooks.c (default_print_patchable_function_entry): Emit
15799 __patchable_function_entries section with writable flags to allow
15800 relocation resolution.
15802 2019-04-17 Jonny Grant <jg@jguk.org>
15804 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
15806 2019-04-17 Jakub Jelinek <jakub@redhat.com>
15808 PR middle-end/90095
15809 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
15810 on lowpart SUBREGs.
15812 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
15814 * config/arc/arc.c (arc_init): Format diagnostic string.
15815 (arc_override_options): Likewise.
15816 (check_if_valid_regno_const): Likewise.
15817 (arc_reorg): Likewise.
15819 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
15822 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
15824 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
15826 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
15827 (*movdi_update1): Use Pmode.
15828 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
15829 (movdi_<mode>_update_stack): Rename to ...
15830 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
15832 (*movsi_update1): Use Pmode.
15833 (*movsi_update2): Use Pmode.
15834 (movsi_update): Rename to ...
15835 (movsi_<mode>_update): ... this. Use Pmode.
15836 (movsi_update_stack): Fix condition.
15837 (*movhi_update1): Use Pmode. Fix argument to
15838 avoiding_indexed_address_p.
15839 (*movhi_update2): Ditto.
15840 (*movhi_update3): Ditto.
15841 (*movhi_update4): Ditto.
15842 (*movqi_update1): Ditto.
15843 (*movqi_update2): Ditto.
15844 (*movqi_update3): Ditto.
15845 (*movsf_update1, *movdf_update1): Merge, rename to...
15846 (*mov<mode>_update1): This. Use Pmode. Fix argument to
15847 avoiding_indexed_address_p. Add "size" attribute.
15848 (*movsf_update2, *movdf_update2): Merge, rename to...
15849 (*mov<mode>_update2): This. Ditto.
15850 (*movsf_update3): Use Pmode. Fix argument to
15851 avoiding_indexed_address_p.
15852 (*movsf_update4): Ditto.
15853 (allocate_stack): Simplify condition. Adjust pattern names.
15855 2019-04-17 Jakub Jelinek <jakub@redhat.com>
15858 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
15859 whitespace at the start of target attribute string.
15861 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
15864 * config/rs6000/power9.md: Add store forwarding bypass.
15866 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
15869 * valtrack.c (dead_debug_insert_temp): Reset debug references
15870 to the return value of a call being removed.
15872 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
15874 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
15875 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
15876 implement target hook.
15877 (arc_memory_move_cost): New function.
15878 (TARGET_REGISTER_MOVE_COST): Define.
15879 (TARGET_MEMORY_MOVE_COST): Likewise.
15880 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
15881 (MEMORY_MOVE_COST): Likewise.
15883 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
15885 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
15886 (sibcall_value_insn): Likewise.
15887 * config/arc/constraints.md (Rs5): Remove.
15889 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
15891 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
15892 for last two fake registers.
15893 (arc_conditional_register_usage): Make sure fake frame and arg
15894 pointer regs are in general regs class.
15895 (FRAME_POINTER_MASK): Remove.
15896 (RETURN_ADDR_MASK): Remove.
15897 (arc_must_save_register): Use hard frame regnum.
15898 (frame_restore_reg): Use hard_frame_pointer_rtx.
15899 (arc_save_callee_saves): Likewise.
15900 (arc_restore_callee_saves): Likewise.
15901 (arc_save_callee_enter): Likewise.
15902 (arc_restore_callee_leave): Likewise.
15903 (arc_save_callee_milli): Likewise.
15904 (arc_eh_return_address_location): Likewise.
15905 (arc_check_multi): Use hard frame regnum.
15906 (arc_can_eliminate): Likewise.
15907 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
15908 for register allocator.
15909 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
15910 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
15911 (FRAME_POINTER_REGNUM): Change it to a fake register.
15912 (HARD_FRAME_POINTER_REGNUM): Defined.
15913 (ARG_POINTER_REGNUM): Change it to a new fake register.
15914 (ELIMINABLE_REGS): Update.
15915 (REGISTER_NAMES): Update names.
15916 * config/arc/arc.md (LP_START): Remove.
15917 (LP_END): Likewise.
15918 (shift_si3_loop): Update pattern.
15920 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
15922 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
15923 to avoid delay slot scheduling.
15924 (arc_must_save_register): Don't save SP.
15925 * config/arc/arc.md (stack_tie): Remove.
15926 (UNSPEC_ARC_STKTIE): Likewise.
15928 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
15929 Shiva Chen <shiva0217@gmail.com>
15931 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
15932 code gen with large shift amount.
15934 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
15936 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
15939 2019-04-16 Jakub Jelinek <jakub@redhat.com>
15942 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
15943 print -m64/-mx32/-m32 if it is true.
15944 (ix86_debug_options, ix86_function_specific_print): Pass true as
15945 ADD_ABI_P to ix86_target_string.
15946 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
15947 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
15948 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
15950 PR rtl-optimization/90082
15951 * dce.c (can_delete_call): New function.
15952 (deletable_insn_p, mark_insn): Use it.
15954 PR tree-optimization/90090
15955 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
15957 (is_division_by_square): Likewise. Formatting fix.
15959 2019-04-16 Richard Biener <rguenther@suse.de>
15961 PR tree-optimization/56049
15962 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
15963 equality check if alias-set zero will prevail.
15965 2019-04-15 Jeff Law <law@redhat.com>
15967 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
15968 size and alignment as unsigned.
15970 2019-04-15 Richard Biener <rguenther@suse.de>
15973 * tree-loop-distribution.c (destroy_loop): Preserve correct
15976 2019-04-15 Richard Biener <rguenther@suse.de>
15978 PR tree-optimization/90071
15979 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
15980 abnormal operands from def stmts.
15982 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
15984 PR rtl-optimization/89794
15985 * combine.c (count_auto_inc): New function.
15986 (try_combine): Count how many auto_inc expressions there were in the
15987 original instructions. Ensure we have the same number in the new
15988 instructions. Remove the code that tried to ensure auto_inc side
15989 effects on i1 and i0 are not lost.
15991 2019-04-15 Richard Biener <rguenther@suse.de>
15994 * tree.h (auto_var_p): Declare.
15995 * tree.c (auto_var_p): New function, split out from ...
15996 (auto_var_in_fn_p): ... here.
15997 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
15999 (new_var_info): Initialize it.
16000 (set_uids_in_ptset): Also set the shadow variable uid if required.
16001 (ipa_pta_execute): Postprocess points-to solutions assigning
16002 shadow variable uids for locals that may reach their containing
16003 function recursively.
16004 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
16005 assert but instead check whether the points-to solution is
16008 2019-04-15 Martin Jambor <mjambor@suse.cz>
16011 * cgraph.c (clone_of_p): Loop over clone chain for each step in
16014 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
16016 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
16018 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
16019 Kito Cheng <kito.cheng@gmail.com>
16020 Shiva Chen <shiva0217@gmail.com>
16022 * config/nds32/nds32-md-auxiliary.c
16023 (nds32_legitimize_pic_address): Use new PIC pattern.
16024 (nds32_legitimize_tls_address): Use new TLS pattern.
16025 (nds32_output_symrel): New.
16026 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
16027 (nds32_alloc_relax_group_id): Ditto.
16028 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
16029 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
16031 (nds32_group_tls_insn): Ditto.
16032 (nds32_group_float_insns): Ditto.
16033 * config/nds32/nds32.md (tls_le): New.
16036 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
16038 * configure: Add nds32 target for dwarf2 debug_line checking.
16039 * configure.ac: Regenerated.
16041 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
16044 * ipa-devirt.c (skip_in_fields_list_p): New.
16045 (odr_types_equivalent_p): Use it.
16047 2019-04-13 Jakub Jelinek <jakub@redhat.com>
16050 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
16051 instead of strncmp when checking for thumb and arm. Formatting fixes.
16053 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
16055 * doc/install.texi: Document --with-target-system-zlib.
16057 2019-04-12 Martin Sebor <msebor@redhat.com>
16063 * targhooks.c (default_vector_alignment): Avoid assuming
16064 argument fits in SHWI.
16065 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
16066 a shift expression.
16067 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
16069 2019-04-12 Jakub Jelinek <jakub@redhat.com>
16071 PR rtl-optimization/89965
16072 * dce.c: Include rtl-iter.h.
16073 (struct check_argument_load_data): New type.
16074 (check_argument_load): New function.
16075 (find_call_stack_args): Check for loads from stack slots still tracked
16076 in sp_bytes and punt if any is found.
16078 * config/mips/loongson-mmiintrin.h: Fix up #error message.
16080 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
16082 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
16083 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
16085 2019-04-12 Martin Liska <mliska@suse.cz>
16087 PR middle-end/89970
16088 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
16090 (separate_attrs): Handle multiple 'default's.
16091 (expand_target_clones): Rework error handling code.
16093 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
16096 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
16097 mode of vector rather than mode of destination for move instruction.
16098 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
16099 Use QI inner mode with V16QI vector mode.
16101 2019-04-12 Jakub Jelinek <jakub@redhat.com>
16104 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
16105 "invalid %%t operand" in output_operand_lossage message.
16107 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
16109 * config/s390/predicates.md (permute_pattern_operand): New
16111 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
16112 operand for the permute pattern.
16113 ("*vec_perm<mode>"): New insn definition.
16114 ("bswap<mode>"): Generate the permute pattern operand in the
16115 expander and perform the operand reloads for pre arch13 level
16117 ("*bswap<mode>_emu"): Rename to ...
16118 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
16119 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
16120 Add the USE operand for the permute pattern.
16121 ("*vec_set_bswap_vec<mode>"): Likewise.
16123 2019-04-12 Jakub Jelinek <jakub@redhat.com>
16126 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
16127 and gcc_unreachable if it fails, just call tree_to_uhwi which
16128 verifies that too. Test TREE_CHAIN instead of list_length > 1.
16129 Start warning message with a lower-case letter. Formatting fixes.
16131 PR rtl-optimization/90026
16132 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
16133 successors, look for BARRIERs inside of the whole BB_FOOTER chain
16134 rather than just at the start of it. If e->src BB_FOOTER is not NULL
16135 in cfglayout mode, use emit_barrier_after_bb.
16137 2018-04-11 Steve Ellcey <sellcey@marvell.com>
16139 PR rtl-optimization/87763
16140 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
16143 2019-04-11 Tom de Vries <tdevries@suse.de>
16145 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
16146 max macro using statement expression.
16148 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
16150 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
16151 * xcoffout.c (xcoff_private_rodata_section_name): Define.
16152 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
16153 read_only_private_data_section using xcoff_private_rodata_section_name.
16154 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
16156 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
16159 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
16161 2019-04-11 Jakub Jelinek <jakub@redhat.com>
16163 PR rtl-optimization/89965
16164 * dce.c (sp_based_mem_offset): New function.
16165 (find_call_stack_args): Use sp_based_mem_offset.
16167 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
16169 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
16171 2019-04-11 Richard Biener <rguenther@suse.de>
16173 PR tree-optimization/90020
16174 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
16175 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
16176 * tree-ssa-pre.c (compute_avail): Use it to not put
16177 possibly trapping references after a call that might not
16178 return into EXP_GEN.
16179 * gcse.c (compute_hash_table_work): Do not elide
16180 marking a block containing a call if the call might not
16183 2019-04-11 Richard Biener <rguenther@suse.de>
16185 PR tree-optimization/90018
16186 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
16187 Test both SLP and interleaving variants.
16189 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
16191 * config/s390/8561.md: New file.
16192 * config/s390/driver-native.c (s390_host_detect_local_cpu):
16193 Add arch13 cpu model.
16194 * config/s390/s390-opts.h (enum processor_type): Likewise.
16195 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
16196 (s390_get_unit_mask): Likewise.
16197 (s390_is_fpd): Likewise.
16198 (s390_is_fxd): Likewise.
16199 * config/s390/s390.h (s390_tune_attr): Likewise.
16200 * config/s390/s390.md: Include arch13 pipeline description.
16201 * config/s390/s390.opt: Add arch13.
16203 2018-04-10 Steve Ellcey <sellcey@marvell.com>
16205 PR rtl-optimization/87763
16206 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
16208 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
16210 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
16212 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
16213 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
16214 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
16215 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
16217 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
16219 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
16220 "Although" in -fipa-icf documentation.
16222 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
16223 of using multiple -g options.
16225 2019-04-10 Martin Liska <mliska@suse.cz>
16227 PR gcov-profile/89959
16228 * doc/gcov.texi: Make documentation of -x option
16231 2019-04-10 Richard Biener <rguenther@suse.de>
16233 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
16235 (DR_GROUP_SAME_DR_STMT): Remove.
16236 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
16237 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
16238 replace with assert.
16239 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
16240 (vect_record_grouped_load_vectors): Remove unreachable code.
16242 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
16245 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
16246 obsolete reference to N.
16248 2019-04-10 Jakub Jelinek <jakub@redhat.com>
16250 PR middle-end/90025
16251 * expr.c (store_expr): Set properly size on the MEM passed to
16255 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
16256 with strlen in between hostsz-3 and hostsz-1 inclusive when no
16257 translation is needed, and when translation is needed, only append
16258 ... if the string length is hostsz or more bytes long. Avoid using
16261 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
16264 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
16265 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
16267 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
16268 differences directly.
16269 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
16271 2019-04-09 Jakub Jelinek <jakub@redhat.com>
16273 PR translation/90011
16274 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
16276 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
16278 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
16279 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
16280 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
16281 trailing space from -gsplit-dwarf diagnostics.
16283 PR tree-optimization/89998
16284 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
16285 instead of integer_type_node if possible, don't add ranges if return
16286 type is not compatible with int.
16287 * gimple-fold.c (gimple_fold_builtin_sprintf,
16288 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
16291 2019-04-09 Martin Liska <mliska@suse.cz>
16293 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
16294 * doc/install.texi: Document the new config.
16296 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
16298 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
16299 use gimple_expr_type for load and store calls. Skip over the
16300 condition argument in a conditional internal function.
16301 Protect use of TREE_INT_CST_LOW.
16303 2019-04-09 Jakub Jelinek <jakub@redhat.com>
16306 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
16307 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
16308 trailing period from it too.
16310 2019-04-08 wu yuan <wuyuan5@huawei.com>
16312 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
16313 * config/aarch64/aarch64.md : Add "tsv110.md"
16314 * config/aarch64/tsv110.md: New file.
16316 2019-04-08 Richard Biener <rguenther@suse.de>
16318 PR tree-optimization/90006
16319 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
16322 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
16325 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
16327 (fma_root_node): Likewise.
16328 (func_fma_steering): Likewise.
16330 2019-04-08 Jakub Jelinek <jakub@redhat.com>
16332 PR rtl-optimization/89865
16333 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
16335 PR rtl-optimization/89865
16336 * config/i386/i386.md
16337 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
16338 numbers not to clash with the additional operands[4].
16339 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
16340 with extra register copy in the middle.
16342 2019-04-08 Martin Liska <mliska@suse.cz>
16344 PR gcov-profile/89961
16345 * doc/gcov.texi: Document data_file.
16346 * gcov.c (generate_results): Add data_info into JSON output.
16348 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
16350 PR tree-optimization/89725
16351 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
16352 loop's chrec as invariant symbol.
16353 * tree-chrec.h (chrec_contains_symbols): New parameter.
16354 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
16355 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
16356 function of loops not in DDR's loop_nest.
16357 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
16359 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
16362 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
16365 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
16368 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
16369 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
16371 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
16373 * sched-deps.c (sched_macro_fuse_insns): Check return value of
16374 targetm.fixed_condition_code_regs.
16376 2019-04-05 Richard Biener <rguenther@suse.de>
16380 * tree-cfgcleanup.c (remove_forwarder_block): Always move
16381 debug bind stmts but reset them if they are not valid at the
16384 2019-04-05 Martin Liska <mliska@suse.cz>
16386 PR translation/89936
16387 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
16388 order to wrap keywords or arguments.
16389 * collect2.c (main): Likewise.
16390 (scan_prog_file): Likewise.
16391 (scan_libraries): Likewise.
16392 * common/config/riscv/riscv-common.c
16393 (riscv_subset_list::parsing_subset_version): Likewise.
16394 (riscv_subset_list::parse_std_ext): Likewise.
16395 * config/aarch64/aarch64.c (aarch64_override_options_internal):
16397 * config/arm/arm.c (arm_option_override): Likewise.
16398 * config/cris/cris.c (cris_print_operand): Likewise.
16399 * config/darwin-c.c (darwin_pragma_options): Likewise.
16400 (darwin_pragma_unused): Likewise.
16401 (darwin_pragma_ms_struct): Likewise.
16402 * config/ft32/ft32.c (ft32_print_operand): Likewise.
16403 * config/i386/i386.c (print_reg): Likewise.
16404 (ix86_print_operand): Likewise.
16405 * config/i386/xm-djgpp.h: Likewise.
16406 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
16407 * config/m32c/m32c.c (m32c_option_override): Likewise.
16408 * config/msp430/msp430.c (msp430_option_override): Likewise.
16409 * config/nds32/nds32.c (nds32_option_override): Likewise.
16410 * config/nvptx/mkoffload.c (main): Likewise.
16411 * config/rx/rx.c (rx_print_operand): Likewise.
16412 (valid_psw_flag): Likewise.
16413 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
16414 (vms_pragma_nomember_alignment): Likewise.
16415 (vms_pragma_extern_model): Likewise.
16416 * lto-wrapper.c (compile_offload_image): Likewise.
16417 * omp-offload.c (oacc_parse_default_dims): Likewise.
16418 * symtab.c (symtab_node::verify_base): Likewise.
16419 * tlink.c (recompile_files): Likewise.
16420 (start_tweaking): Likewise.
16421 * tree-profile.c (parse_profile_filter): Likewise.
16423 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
16425 PR tree-optimization/89956
16426 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
16427 multiple negates of the same value.
16429 2019-04-04 Martin Sebor <msebor@redhat.com>
16431 PR middle-end/89957
16432 PR middle-end/89911
16433 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
16434 have the same precision since the function crashes otherwise.
16435 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
16436 has non-zero arguments.
16438 2019-04-04 Martin Sebor <msebor@redhat.com>
16440 PR middle-end/89934
16441 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
16442 out if the number of arguments is less than expected.
16444 2019-04-04 Jeff Law <law@redhat.com>
16446 PR rtl-optimization/89399
16447 * ree.c (combine_set_extension): Use single_set rather than
16448 digging into PATTERN for items on the candidate list.
16449 (combine_reaching_defs): Likewise.
16451 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
16453 PR rtl-optimization/46590
16454 * loop-invariant.c (find_defs): Move df_remove_problem and
16455 df_process_deferred_rescans to move_invariants.
16456 Move df_live_add_problem and df_live_set_all_dirty calls
16457 to move_invariants.
16458 (move_invariants): Likewise.
16459 (move_loop_invariants): Likewise, making the df_live calls
16460 conditional on -O. Remove the problem again if we added it
16463 2019-04-03 qing zhao <qing.zhao@oracle.com>
16465 PR tree-optimization/89730
16466 * ipa-inline.c (can_inline_edge_p): Delete the checking for
16467 -flive-patching=inline-only-static.
16468 (can_inline_edge_by_limits_p): Add the checking for
16469 -flive-patching=inline-only-static and grant always_inline
16470 even when -flive-patching=inline-only-static is specified.
16472 2019-04-03 Jeff Law <law@redhat.com>
16474 PR rtl-optimization/81025
16475 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
16477 2019-04-03 Richard Biener <rguenther@suse.de>
16479 PR tree-optimization/84101
16480 * tree-vect-stmts.c: Include explow.h for hard_function_value,
16481 regs.h for hard_regno_nregs.
16482 (cfun_returns): New helper.
16483 (vect_model_store_cost): When vectorizing a store to a decl
16484 we return and the function ABI returns in a multi-reg location
16485 account for the possible spilling that will happen.
16487 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
16489 * config/s390/s390.c (s390_legitimate_address_p): Reject long
16490 displacement addresses for vector mode operands.
16492 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
16494 * config/arc/arc.c (GMASK_LEN): Define.
16495 (arc_restore_callee_saves): Restore first blink when
16498 2019-04-03 Sudakshina Das <sudi.das@arm.com>
16500 * doc/extend.texi: Add deprecated comment on sign-return-address
16501 function attribute and add mbranch-protection.
16502 * doc/invoke.texi: Add bti to the options for mbranch-protection.
16504 2019-04-03 Richard Biener <rguenther@suse.de>
16507 * lto-wrapper.c (run_gcc): Avoid implicit rules making
16508 the all target phony.
16510 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
16514 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
16515 Return false for variable DImode shifts.
16516 (dimode_scalar_chain::compute_convert_gain): Do not handle
16517 register count operand in variable DImode shifts.
16518 (dimode_scalar_chain::make_vector_copies): Remove support to copy
16519 count argument of a variable shift instruction to a vector register.
16520 (dimode_scalar_chain::convert_reg): Remove support to convert
16521 count argument of a variable shift instruction.
16523 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
16525 PR rtl-optimization/84206
16526 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
16527 iterating over loop headers.
16529 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
16531 PR rtl-optimization/85876
16532 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
16533 beyond the original fence.
16535 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
16537 * config.gcc: Mark spu* targets as deprecated/obsolete.
16539 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16541 * config/s390/s390-builtin-types.def: New builtin function type
16542 definitions. Remove unused types.
16543 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
16544 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
16545 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
16546 overloaded builtins.
16547 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
16548 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
16549 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
16550 (vec_double, vec_signed, vec_unsigned): Define to use the new
16551 overloaded builtins.
16552 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
16555 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16557 * config/s390/s390-builtin-types.def: New builtin function type
16559 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
16560 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
16561 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
16562 (s390_vstrszh, s390_vstrszf): New low-level builtins.
16563 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
16564 constant definitions.
16565 * config/s390/vecintrin.h (vec_search_string_cc)
16566 (vec_search_string_until_zero_cc): New builtin name definitions.
16567 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
16569 ("vec_vstrs<mode>"): New insn definition.
16571 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16573 * config/s390/s390-builtin-types.def: Add new builtin function
16575 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
16576 New overloaded builtins.
16577 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
16579 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
16580 (UNSPEC_VEC_SLDBYTE): ... this.
16581 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
16582 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
16584 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
16585 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
16586 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
16588 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16590 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
16591 New insn definition.
16592 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
16593 * config/s390/vector.md (V_HW_HSD): ... here.
16595 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16597 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
16598 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
16599 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
16600 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
16601 New insn definitions.
16603 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16605 * config/s390/s390-builtin-types.def: Add new builtin function type.
16606 * config/s390/s390-builtins.def: Add overloaded builtin
16607 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
16608 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
16609 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
16610 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
16611 ("eltswap<mode>"): New expander.
16612 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
16615 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16617 * config/s390/s390-builtin-types.def: Add new builtin function types.
16618 * config/s390/s390-builtins.def: Add overloaded builtin
16619 s390_vec_revb. Add low-level builtins for vlbr and vstbr
16621 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
16622 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
16623 ("bswap<mode>"): New expander.
16624 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
16626 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16628 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
16629 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
16630 vector builtin version number in __VEC__.
16632 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16634 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
16636 (SFSI): New mode attribute.
16637 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
16638 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
16640 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
16641 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
16642 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
16643 ("floatsi<mode>2"): Add wcefb instruction.
16645 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16647 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
16648 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
16650 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
16651 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
16652 support 32 bit fp-int conversions. Rename to ...
16653 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
16654 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
16655 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
16656 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
16659 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16661 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
16662 if-then-else constructs if we can use the select instruction.
16663 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
16665 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16667 * config/s390/s390.md ("*popcountdi_arch13_cc")
16668 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
16670 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
16671 Append _z196 to make it ...
16672 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
16673 ("popcounthi2_z196"): ... this.
16674 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
16675 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
16677 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16679 * config/s390/s390.c (s390_canonicalize_comparison): Convert
16680 certain compares for arch13 in order to make use of the condition
16681 code result produced by the new instructions.
16682 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
16683 nxrk, and nxgrk instruction patterns.
16684 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
16685 (inv_no): Add new code iterator together with some attributes.
16686 ("*andc_split_<mode>"): Disable splitter for arch13.
16687 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
16688 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
16689 ("*<ANDOR:bitops_name>c<GPR:mode>")
16690 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
16691 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
16692 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
16693 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
16695 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16697 * common/config/s390/s390-common.c (processor_flags_table): New
16699 * config.gcc: Support arch13 with the --with-arch= configure flag.
16700 * config/s390/driver-native.c (s390_host_detect_local_cpu):
16701 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
16702 * config/s390/s390.c (s390_get_sched_attrmask)
16703 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
16704 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
16705 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
16706 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
16707 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
16709 * config/s390/s390.opt: Support arch13 as processor type in
16710 command line options.
16712 2019-04-02 Martin Liska <mliska@suse.cz>
16714 PR translation/89912
16715 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
16716 Fix param description of graphite-max-arrays-per-scop.
16718 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
16720 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
16721 (ASAN_CC1_SPEC): Use it in 64-bit mode.
16722 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
16724 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
16726 PR rtl-optimization/85412
16727 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
16728 sel_sched_region_1, not after.
16730 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
16732 PR rtl-optimization/86928
16733 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
16734 compute_live if necessary.
16735 (sel_redirect_edge_and_branch): Likewise.
16737 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
16739 PR rtl-optimization/89865
16740 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
16741 register if it is a part of small class.
16743 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
16745 PR rtl-optimization/87273
16746 * sel-sched-ir.c (merge_fences): Remove assert.
16748 2019-04-01 Richard Biener <rguenther@suse.de>
16750 PR tree-optimization/46590
16751 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
16752 (dom_walker::m_reachability): Add in place of...
16753 (dom_walker::m_skip_unreachable_blocks): ...this.
16754 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
16755 Move complex initialization ...
16756 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
16757 lazily and initialize edge flags on each invocation.
16758 (dom_walker::bb_reachable): Use m_reachability.
16760 2019-04-01 Martin Liska <mliska@suse.cz>
16763 * opt-suggestions.c (option_proposer::build_option_suggestions):
16764 Add variant without any argument in order to provide better
16767 2019-04-01 Richard Biener <rguenther@suse.de>
16770 * gimple.c: Include langhooks.h.
16771 (gimple_get_alias_set): Treat enumeral types as the underlying
16774 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16775 Eric Botcazou <ebotcazou@adacore.com>
16777 PR rtl-optimization/89862
16778 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
16779 that operates on the full registers for WORD_REGISTER_OPERATIONS
16782 2019-03-29 Jim Wilson <jimw@sifive.com>
16784 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
16785 Clear MASK_RVC and then set if C subset supported.
16787 2019-03-29 Jakub Jelinek <jakub@redhat.com>
16790 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
16791 non-addressable complit into its initializer if it is volatile.
16793 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
16795 * opts-common.c (integral_argument): Set errno properly in one case.
16797 2019-03-29 Martin Liska <mliska@suse.cz>
16799 * doc/invoke.texi: Remove -Wchkp from documentation.
16801 2019-03-29 Martin Liska <mliska@suse.cz>
16803 * dbgcnt.c (print_limit_reach): New function.
16806 2019-03-29 Martin Liska <mliska@suse.cz>
16808 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
16809 (dbg_cnt_process_opt): Parse first tokens aas
16810 dbg_cnt_process_single_pair is also using strtok.
16812 2019-03-29 Jakub Jelinek <jakub@redhat.com>
16814 PR rtl-optimization/87485
16815 * function.c (expand_function_end): Move stack_protect_epilogue
16816 before loading of return value into hard register(s).
16818 2019-03-28 Jakub Jelinek <jakub@redhat.com>
16820 PR middle-end/89621
16821 * tree-inline.h (struct copy_body_data): Add
16822 dont_remap_vla_if_no_change flag.
16823 * tree-inline.c (remap_type_3, remap_type_2): New functions.
16824 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
16825 and remap_type_2 returns false.
16826 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
16827 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
16828 only from where it is copied to nested contexts.
16830 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
16833 * config/i386/i386.md (RMW operation with LEA peephole):
16834 Use LEAMODE mode attribute instead of SWI mode iterator for
16837 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
16840 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
16841 Also process XEXP (src, 0) of a shift insn.
16843 2019-03-28 David Malcolm <dmalcolm@redhat.com>
16845 PR middle-end/89725
16846 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
16847 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
16849 2019-03-28 Jakub Jelinek <jakub@redhat.com>
16851 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
16853 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
16854 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
16855 immediately after first one with df_analyze in between, but rather
16856 process all bbs, queueing ones that need second pass in a worklist,
16857 df_analyze, process queued debug insn changes and if second pass is
16858 needed, process bbs from worklist, df_analyze, process queued debug
16861 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
16862 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
16863 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
16865 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
16868 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
16871 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
16874 * config/i386/i386.c (ix86_function_value_1): Call the newly added
16875 function for 32-bit MS_ABI.
16876 (function_value_ms_32): New function.
16878 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
16880 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
16881 (movdi): Call gen_movdi_symbol_save_scc.
16882 (gen_movdi_symbol_save_scc): New insn and split.
16884 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
16886 PR rtl-optimization/89313
16887 * function.c (matching_constraint_num): New static function.
16888 (match_asm_constraints_1): Use it. Fixup white space and comment.
16889 Don't replace inputs with non-matching constraints which conflict
16890 with early clobber outputs.
16892 2019-03-27 Jeff Law <law@redhat.com>
16894 PR rtl-optimization/87761
16895 PR rtl-optimization/89826
16896 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
16898 (pass_cprop_hardreg::execute): Call df_analyze after adding the
16899 note problem to get REG_DEAD/REG_UNUSED notes updated.
16901 2019-03-27 Richard Biener <rguenther@suse.de>
16903 PR tree-optimization/89463
16904 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
16905 queue edges to remove.
16906 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
16907 dead stmts. Delay edge removal until PHIs are removed to
16908 make debug-stmt creation not confused by seemingly degenerate
16911 2019-03-27 Alan Modra <amodra@gmail.com>
16913 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
16915 * config/rs6000/darwin.h: Likewise.
16916 * config/rs6000/rs6000.c: Likewise.
16918 2019-03-27 Alan Modra <amodra@gmail.com>
16920 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
16921 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
16923 2019-03-26 Andrew Waterman <andrew@sifive.com>
16924 Jim Wilson <jimw@sifive.com>
16926 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
16927 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
16928 (generic_idivdi, generic_fmul_single, generic_fmul_double)
16929 (generic_fdiv, generic_fsqrt): Add check for generic tune.
16930 (generic_alu): Add auipc to type list.
16931 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
16932 (riscv_microarchitecture): Declare.
16933 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
16934 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
16936 (riscv_microarchitecture): New.
16937 (sifive_7_tune_info): New.
16938 (riscv_cpu_info_table): Add microarchitecture value for rocket and
16939 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
16941 (riscv_store_data_bypass_p): New.
16942 (riscv_option_override): Set riscv_microarchitecture from
16943 cpu->microarchitecture.
16944 * config/riscv/riscv.md: Include sifive-7.md.
16947 (auipc<mode>): Change type to auipc.
16948 (restore_stack_nonlocal): New.
16949 * config/riscv/sifive-7.md: New.
16950 * doc/invoke.texi (RISC-V Options): Update mtune docs.
16952 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
16955 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
16956 Also process XEXP (src, 0) of a shift insn.
16958 2019-03-26 Richard Biener <rguenther@suse.de>
16960 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
16961 (copy_debug_stmt): Likewise.
16962 (expand_call_inline): Likewise.
16963 (copy_bb): Avoid redundant lookup & set of gimple_block.
16964 * gimple-low.c (lower_gimple_return): Likewise.
16965 (lower_builtin_setjmp): Likewise.
16967 2019-03-26 Jakub Jelinek <jakub@redhat.com>
16969 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
16970 is constant 0, turn into static const data member initialized to false.
16971 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
16972 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
16974 2019-03-26 Jason Merrill <jason@redhat.com>
16975 Jakub Jelinek <jakub@redhat.com>
16977 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
16979 (mem_alloc_description::release_object_overhead): Fix comment typos.
16980 * hash-table.h (hash_table::~hash_table): Call
16981 release_instance_overhead only if m_entries is non-NULL, otherwise
16982 call unregister_descriptor.
16984 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
16986 PR tree-optimization/81740
16987 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16988 In case of outer loop vectorization, check for backward dependence
16989 at the inner loop if outer loop dependence is reversed.
16991 2019-03-26 Alan Modra <amodra@gmail.com>
16993 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
16994 rs6000_vector_mem init. Correct wI and wJ comment.
16996 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
16998 PR rtl-optimization/88347
16999 PR rtl-optimization/88423
17000 * sched-deps.c (sched_analyze_insn): Take into account that for
17001 tablejumps the barrier appears after a label and a jump_table_data.
17003 2019-03-25 Martin Sebor <msebor@redhat.com>
17006 * c-common.c (check_user_alignment): Rename local. Correct maximum
17007 alignment in diagnostic. Avoid assuming argument fits in SHWI,
17008 convert it to UHWI when it fits.
17010 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
17013 * dwarf2out.c (premark_used_variables): New function.
17014 (prune_unused_types_walk): Do not mark not premarked external
17016 (prune_unused_types): Call premark_used_variables.
17018 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
17020 PR rtl-optimization/89676
17021 * lra-constraints.c (curr_insn_transform): Do match reload for
17022 early clobbers when the match was successful only for different
17025 2019-03-25 Martin Sebor <msebor@redhat.com>
17027 * doc/extend.texi (Common Type Attributes): Document vector_size.
17028 (Common Variable Attributes): Mention size constraint. Correct
17030 (Vector Extensions): Use @dfn when defining bas type. Clarify
17031 base type and size constraints.
17033 2019-03-25 Richard Biener <rguenther@suse.de>
17035 PR tree-optimization/89789
17036 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
17037 changes from non-undefined back to undefined.
17039 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
17041 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
17042 heap string and a gc string, but since this variable is unknown to
17043 ggc the gc string might get reused and corrupted. Fixed by always
17044 using a heap string.
17046 2019-03-25 Richard Biener <rguenther@suse.de>
17048 PR tree-optimization/89779
17049 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
17050 to remove IV defs, delay actual removal.
17051 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
17052 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
17053 very end, properly also reset loop control IV information.
17055 2019-03-25 Richard Biener <rguenther@suse.de>
17057 PR tree-optimization/89802
17058 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
17059 move EH data to folded stmt.
17061 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
17063 * config/s390/s390-builtin-types.def: Remove few unused types and
17064 fix sort order for others.
17066 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
17068 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
17069 expected and found types with -mdebug during builtin matching.
17071 2019-03-25 Richard Biener <rguenther@suse.de>
17073 PR middle-end/89790
17074 * fold-const.c (operand_equal_p): Revert last change with
17077 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
17079 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
17080 notes for the result of the __tls_get_addr calls.
17081 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
17083 2019-03-24 Jeff Law <law@redhat.com>
17085 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
17087 PR rtl-optimization/87761
17088 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
17089 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
17091 (pass_cprop_hardreg::execute): Add df note problem and defer insn
17092 rescans. Reprocess blocks as needed, calling df_analyze before
17093 reprocessing. Always call df_analyze before fixing up debug bind
17096 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
17098 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
17101 2019-03-22 Andrew Pinski <apinski@marvell.com>
17103 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
17104 attrribute for uxtw.
17106 2019-03-26 Jeff Law <law@redhat.com>
17108 PR rtl-optimization/87761
17109 * config/mips/mips-protos.h (mips_split_move): Add new argument.
17110 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
17111 (mips_split_move): Accept new INSN argument. Try to forward SRC
17112 into the next instruction.
17113 (mips_split_move_insn): Pass INSN through to mips_split_move.
17115 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
17117 PR rtl-optimization/89676
17118 * lra-constraints.c (curr_insn_transform): Do match reload for
17119 early clobbers even if the match was successful.
17121 2019-03-22 Jakub Jelinek <jakub@redhat.com>
17124 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
17126 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
17128 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
17130 2019-03-22 Jakub Jelinek <jakub@redhat.com>
17132 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
17133 <avx512>_fmsub_<mode>_mask3<round_name>,
17134 <avx512>_fnmadd_<mode>_mask3<round_name>,
17135 <avx512>_fnmsub_<mode>_mask3<round_name>,
17136 avx512f_vmfmadd_<mode>_mask3<round_name>,
17137 avx512f_vmfmsub_<mode>_mask3<round_name>,
17138 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
17139 instead of register_operand and %v instead of v for match_operand 1.
17140 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
17141 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
17142 <round_nimm_predicate> instead of register_operand and %v instead of v
17143 for match_operand 1.
17145 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
17146 <avx512>_fmadd_<mode>_mask3<round_name>,
17147 <avx512>_fmsub_<mode>_mask<round_name>,
17148 <avx512>_fmsub_<mode>_mask3<round_name>,
17149 <avx512>_fnmadd_<mode>_mask<round_name>,
17150 <avx512>_fnmadd_<mode>_mask3<round_name>,
17151 <avx512>_fnmsub_<mode>_mask<round_name>,
17152 <avx512>_fnmsub_<mode>_mask3<round_name>,
17153 <avx512>_fmaddsub_<mode>_mask<round_name>,
17154 <avx512>_fmaddsub_<mode>_mask3<round_name>,
17155 <avx512>_fmsubadd_<mode>_mask<round_name>,
17156 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
17157 <round_nimm_predicate> instead of nonimmediate_operand.
17158 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
17159 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
17160 Use register_operand instead of <round_nimm_predicate> for the
17161 operand that needs to match output.
17162 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
17163 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
17164 Likewise. Formatting fixes.
17167 * config/i386/i386.c (enum ix86_builtins): Remove
17168 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
17169 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
17170 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
17171 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
17172 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
17173 __builtin_ia32_vfmsubss3_mask3): New builtins.
17174 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
17175 avx512f_vmfmadd_<mode>_mask3<round_name>,
17176 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
17177 *avx512f_vmfmsub_<mode>_mask<round_name>,
17178 avx512f_vmfmsub_<mode>_mask3<round_name>,
17179 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
17180 *avx512f_vmfnmadd_<mode>_mask<round_name>,
17181 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
17182 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
17183 *avx512f_vmfnmsub_<mode>_mask<round_name>,
17184 avx512f_vmfnmsub_<mode>_mask3<round_name>,
17185 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
17186 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
17187 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
17188 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
17189 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
17190 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
17191 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
17192 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
17193 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
17194 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
17195 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
17196 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
17197 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
17198 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
17199 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
17200 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
17201 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
17202 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
17203 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
17204 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
17205 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
17206 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
17208 2019-03-21 Martin Sebor <msebor@redhat.com>
17210 PR tree-optimization/89350
17211 * builtins.c (compute_objsize): Also ignore offsets whose upper
17213 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
17214 (builtin_memref::builtin_memref): Initialize new member.
17215 Allow EXPR to be null.
17216 (builtin_memref::extend_offset_range): Replace local with a member.
17217 Avoid assuming pointer offsets are unsigned.
17218 (builtin_memref::set_base_and_offset): Determine base object
17219 before computing offset range.
17220 (builtin_access::builtin_access): Handle memset.
17221 (builtin_access::generic_overlap): Replace local with a member.
17222 (builtin_access::strcat_overlap): Same.
17223 (builtin_access::overlap): Same.
17224 (maybe_diag_overlap): Same.
17225 (maybe_diag_access_bounds): Same.
17226 (wrestrict_dom_walker::check_call): Handle memset.
17227 (check_bounds_or_overlap): Same.
17229 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
17230 Jakub Jelinek <jakub@redhat.com>
17233 * tree.c (fld_type_variant, fld_incomplete_type_of,
17234 fld_process_array_type): Call fld->pset.add and don't call
17235 add_tree_to_fld_list if it returns true.
17236 (free_lang_data_in_type): Similarly with self-recursive call. Purge
17237 non-marked types from TYPE_NEXT_VARIANT list.
17238 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
17240 2019-03-21 Jakub Jelinek <jakub@redhat.com>
17242 * hash-table.h (hash_table): Add Lazy template parameter defaulted
17243 to false, if true, don't alloc_entries during construction, but defer
17244 it to the first method that needs m_entries allocated.
17245 (hash_table::hash_table, hash_table::~hash_table,
17246 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
17247 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
17248 hash_table::clear_slot, hash_table::traverse_noresize,
17249 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
17250 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
17252 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
17253 NO_INSERT instead of find_with_hash.
17254 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
17255 hash_set::m_table): Add Lazy to template params of hash_table.
17256 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
17257 * attribs.c (test_attribute_exclusions): Likewise.
17258 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
17259 hash_set. Add tests for hash_set with Lazy = true.
17261 2019-03-21 Richard Biener <rguenther@suse.de>
17263 PR tree-optimization/89779
17264 * tree.c (tree_nop_conversion): Consolidate and fix defensive
17265 checks with respect to released SSA names now having error_mark_node
17267 * fold-const.c (operand_equal_p): Likewise.
17269 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
17272 * config/s390/s390.c (global_not_special_regno_p): Move to make it
17274 (s390_optimize_register_info): Use global_not_special_regno_p to
17275 check for global regs.
17277 2019-03-20 Jakub Jelinek <jakub@redhat.com>
17280 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
17281 update this_alternative nor this_alternative_set.
17283 2019-03-19 Jim Wilson <jimw@sifive.com>
17286 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
17287 align, size, offset. Use them to handle a BLKmode reference. Update
17289 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
17291 2019-03-19 Jakub Jelinek <jakub@redhat.com>
17293 PR rtl-optimization/89768
17294 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
17295 instead of GEN_INT.
17296 (unroll_loop_runtime_iterations): Likewise.
17298 2019-03-19 Martin Sebor <msebor@redhat.com>
17300 PR tree-optimization/89644
17301 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
17302 rather than endptr as an indicator of nul-termination.
17304 PR tree-optimization/89644
17305 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
17306 arrays in determining sequence sizes in strncpy and stpncpy.
17308 2019-03-19 Martin Liska <mliska@suse.cz>
17310 PR middle-end/89737
17311 * predict.c (combine_predictions_for_bb): Empty likely_edges and
17312 unlikely_edges if there's an edge that belongs to both these sets.
17314 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
17317 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
17318 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
17319 go via a stack temporary.
17321 2019-03-19 Jakub Jelinek <jakub@redhat.com>
17324 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
17325 instead of gen_rtx_SUBREG.
17326 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
17328 2019-03-19 Richard Biener <rguenther@suse.de>
17331 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
17333 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
17337 * tree.c (free_lang_data_in_decl): Do not free context of C++
17340 2019-03-19 Jakub Jelinek <jakub@redhat.com>
17343 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
17344 subs for the first alternative except when operands[3] is 1.
17347 * gimplify.c (gimplify_asm_expr): For output argument with
17348 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
17351 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
17353 PR rtl-optimization/89753
17354 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
17355 explicit unrolling factor even more robust.
17357 2019-03-19 Jakub Jelinek <jakub@redhat.com>
17360 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
17361 compensation use x2 += 1 instead of x2 -= -1 and when honoring
17362 signed zeros, do another copysign after the compensation.
17364 2019-03-18 Martin Sebor <msebor@redhat.com>
17366 PR tree-optimization/89720
17367 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
17368 more conservatively, the same as anti-range.
17370 2019-03-18 Richard Biener <rguenther@suse.de>
17372 PR middle-end/88945
17373 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
17374 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
17375 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
17376 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
17378 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
17380 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
17381 Extend queue to 1024 entries.
17382 Add "consumed" field.
17383 (gomp_print_output): Remove print_index parameter.
17384 Add final parameter.
17385 Change limit to unsigned.
17386 Use consumed field to implement circular buffer.
17387 Detect interrupted print in final pass.
17388 Flush output at the end.
17389 (run): Update gomp_print_output usage.
17390 (main): Initialize kernargs->output_data.consumed.
17392 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
17394 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
17395 calculation of the minimum number of scalar iterations for
17396 fully-predicated loops.
17398 2019-03-18 Martin Jambor <mjambor@suse.cz>
17400 PR tree-optimization/89546
17401 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
17402 any propagation to its children took place.
17404 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
17407 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
17408 parameter, and make use of it.
17409 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
17411 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
17413 * config/arc/arc.opt (mcode-density-frame): Get the inital value
17414 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
17415 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
17416 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
17417 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
17418 match what the ops is doing.
17419 (push_multi_fp_blink): Likewise.
17420 * config/arc/arc.c (arc_override_options): Enable enter/leave when
17421 compiling for size and elf target.
17422 (arc_save_callee_enter): Adjust note to match what enter/leave
17425 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
17427 * config/arc/arc.md (tst_movb): Fix constraint.
17429 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
17431 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
17433 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
17435 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
17436 * config/arc/arc.c (arc_conditional_register_usage): Remove all
17437 reg_alloc_order references.
17438 (size_alloc_order): Define.
17439 (arc_adjust_reg_alloc_order): New function.
17440 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
17442 (ADJUST_REG_ALLOC_ORDER): Define.
17443 (HONOR_REG_ALLOC_ORDER): Likewise.
17445 2019-03-18 Richard Biener <rguenther@suse.de>
17448 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
17449 loads and stores a bit more.
17451 2019-03-18 Richard Biener <rguenther@suse.de>
17454 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
17455 load pessimization to stores as well.
17457 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
17459 PR middle-end/86979
17460 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
17461 successor, use NULL as its av set.
17463 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
17465 PR rtl-optimization/89721
17466 * lra-constraints (invariant_p): Return false if side_effects_p holds.
17468 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
17471 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17472 When handling vec_extract, use modular arithmetic to allow
17473 constant selectors greater than vector length.
17474 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
17475 V1TImode vectors to have constant selector values greater than 0.
17476 Use modular arithmetic to compute vector index.
17477 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
17478 index for in-memory vectors. Correct code generation for
17479 in-register vectors.
17480 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
17483 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
17487 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
17490 2019-03-15 Jakub Jelinek <jakub@redhat.com>
17493 * tree.c (inchash::add_expr): Strip any location wrappers.
17494 * fold-const.c (operand_equal_p): Move stripping of location wrapper
17495 after hash verification.
17498 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
17499 SIGN_EXTEND and ZERO_EXTEND.
17501 2019-03-14 Jason Merrill <jason@redhat.com>
17502 Jakub Jelinek <jakub@redhat.com>
17504 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
17505 than if is_empty (*slot).
17506 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
17507 existing elt and for elt removal.
17508 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
17509 of already removed elt.
17511 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
17514 * config/i386/i386.c (remove_partial_avx_dependency): Handle
17515 REG_EH_REGION note.
17517 2019-03-14 Martin Liska <mliska@suse.cz>
17520 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
17522 2019-03-14 Richard Biener <rguenther@suse.de>
17525 * config/i386/i386.c (make_resolver_func): Properly set
17526 DECL_CONTEXT on the RESULT_DECL.
17527 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
17529 2019-03-14 Richard Biener <rguenther@suse.de>
17531 * gimple-pretty-print.c: Include cfgloop.h.
17532 (dump_gimple_phi): Adjust.
17533 (dump_gimple_bb_header): Dump loop header for GIMPLE.
17534 (pp_cfg_jump): Adjust.
17535 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
17536 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
17537 (lower_phi_internal_fn): Remove.
17538 (verify_gimple_call): Remove IFN_PHI special-casing.
17539 (dump_function_to_file): Dump IL state.
17540 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
17541 done to deal with PHI nodes being present in non-SSA state.
17543 2019-03-14 Jakub Jelinek <jakub@redhat.com>
17546 * multiple_target.c (create_dispatcher_calls): Change
17547 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
17548 In the node->iterate_referring loop, push *ref rather than ref, call
17549 ref->remove_reference () and always pass 0 to iterate_referring.
17551 PR rtl-optimization/89679
17552 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
17553 would contain a paradoxical SUBREG.
17555 2019-03-14 Richard Biener <rguenther@suse.de>
17557 PR tree-optimization/89710
17558 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
17561 2019-03-14 Martin Liska <mliska@suse.cz>
17563 * coverage.c (coverage_begin_function): Stream also
17565 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
17566 documentation about function declaration location.
17567 * gcov-dump.c (tag_function): Print whole range
17568 of function declaration.
17569 * gcov.c (struct function_info): Add end_column field.
17570 (function_info::function_info): Initialize it.
17571 (output_json_intermediate_file): Output {start,end}_column
17573 (read_graph_file): Read end_column.
17575 2019-03-14 Richard Biener <rguenther@suse.de>
17577 PR middle-end/89698
17578 * fold-const.c (operand_equal_p): For INDIRECT_REF check
17579 that the access types are similar.
17581 2019-03-14 Jakub Jelinek <jakub@redhat.com>
17583 PR tree-optimization/89703
17584 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
17585 aren't compatible also with builtin_decl_explicit. Check pure
17586 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
17587 and BUILT_IN_STPNCPY{,_CHK}.
17589 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
17592 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
17593 addr32 prefix to VSIB address for X32.
17594 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
17596 (*avx512pf_gatherpf<mode>df_mask): Likewise.
17597 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
17598 (*avx512pf_scatterpf<mode>df_mask): Likewise.
17599 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
17600 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
17601 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
17602 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
17603 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
17604 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
17605 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
17606 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
17607 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
17608 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
17609 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
17610 (*avx512f_scatterdi<mode>): Likewise.
17612 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
17615 * lra-constraints.c (inherit_in_ebb): Update
17616 potential_reload_hard_regs along with live_hard_regs.
17618 2019-03-13 Jakub Jelinek <jakub@redhat.com>
17621 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
17623 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
17625 2019-03-13 Martin Sebor <msebor@redhat.com>
17627 PR tree-optimization/89662
17628 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
17631 2019-03-13 Richard Biener <rguenther@suse.de>
17633 PR middle-end/89677
17634 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
17635 throw FP expressions at tree-affine.
17637 2019-03-14 Richard Biener <rguenther@suse.de>
17639 * tree-pretty-print.c (dump_generic_node): For -gimple properly
17640 dump negative integer constants using _Literal (type) -num.
17642 2019-03-13 Jakub Jelinek <jakub@redhat.com>
17644 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
17645 nonlocal_value member.
17647 PR middle-end/88588
17648 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
17649 (ipa_simd_modify_function_body): Handle PHIs.
17651 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
17653 * config/s390/s390.c (s390_option_override_internal): Use more
17654 aggressive inlining parameters.
17656 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
17658 * config/s390/3906.md: New file.
17659 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
17660 (LONGRUNNING_THRESHOLD): Remove.
17661 (MAX_SCHED_MIX_SCORE): Decrease.
17662 (MAX_SCHED_MIX_DISTANCE): Decrease.
17663 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
17664 (struct s390_sched_state): New struct to hold scheduling state.
17665 (S390_SCHED_STATE_NORMAL): Remove.
17666 (S390_SCHED_STATE_CRACKED): Remove.
17667 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
17668 (s390_get_sched_attrmask): Use new attribute.
17669 (s390_get_unit_mask): Use new units.
17670 (s390_is_fpd): New function.
17671 (s390_is_fxd): New function.
17672 (s390_is_longrunning): New function.
17673 (s390_sched_score): Use new functions.
17674 (s390_sched_reorder): Likewise.
17675 (s390_sched_variable_issue): Rework and use new functions.
17676 (s390_sched_init): Use new functions.
17677 * config/s390/s390.h (s390_tune_attr): Add z14.
17678 * config/s390/s390.md: Add z14.
17680 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
17682 * config/s390/2964.md: Update pipeline description.
17683 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
17684 (LONGRUNNING_THRESHOLD): Remove.
17685 (LATENCY_FACTOR): Remove.
17686 (s390_get_unit_mask): Add unit.
17687 (s390_sched_score): Use fxd/fpd.
17688 (s390_sched_variable_issue): Use fxd/fpd.
17690 2019-03-12 Martin Liska <mliska@suse.cz>
17692 * config/i386/i386.c: Reword an error message.
17694 2019-03-12 Martin Jambor <mjambor@suse.cz>
17696 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
17697 terminate with newline.
17699 2019-03-12 Jakub Jelinek <jakub@redhat.com>
17702 * config/s390/s390.md (tabort): Use %wd instead of
17703 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
17704 letters and periods.
17705 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
17706 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
17709 PR middle-end/89663
17710 * builtins.c (expand_builtin_int_roundingfn,
17711 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
17712 gcc_unreachable if validate_arglist fails.
17714 2019-03-12 Richard Biener <rguenther@suse.de>
17716 PR tree-optimization/89664
17717 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
17718 free the occurance tree after the early out.
17720 2019-03-11 Jakub Jelinek <jakub@redhat.com>
17722 PR middle-end/89655
17724 * vr-values.c (vr_values::update_value_range): If
17725 old_vr->varying_p (), don't update it, make new_vr also VARYING
17728 2019-03-11 Martin Liska <mliska@suse.cz>
17730 * config/aarch64/aarch64.c (aarch64_override_options_internal):
17731 Fix double string quoting.
17733 2019-03-11 Martin Liska <mliska@suse.cz>
17735 * collect-utils.c (collect_wait): Wrap apostrophes
17736 in gcc internal format with %'.
17737 * collect2.c (main): Likewise.
17738 (scan_prog_file): Likewise.
17739 (scan_libraries): Likewise.
17740 * config/i386/i386.c (ix86_expand_call): Likewise.
17741 (ix86_handle_interrupt_attribute): Likewise.
17742 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17743 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17744 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
17745 * lto-wrapper.c (find_crtoffloadtable): Likewise.
17746 * symtab.c (symtab_node::verify_base): Likewise.
17747 * tree-cfg.c (verify_gimple_label): Likewise.
17748 * tree.c (verify_type_variant): Likewise.
17750 2019-03-11 Martin Liska <mliska@suse.cz>
17752 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
17753 in a string format message and fix GNU coding style.
17754 (expand_builtin_set_thread_pointer): Likewise.
17755 * common/config/aarch64/aarch64-common.c
17756 (aarch64_rewrite_selected_cpu): Likewise.
17757 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
17758 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
17759 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
17760 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
17761 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
17762 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
17763 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
17764 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
17765 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
17766 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
17768 * common/config/riscv/riscv-common.c
17769 (riscv_subset_list::parsing_subset_version): Likewise.
17770 (riscv_subset_list::parse_std_ext): Likewise.
17771 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
17772 (riscv_subset_list::parse): Likewise.
17773 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
17774 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
17775 (aarch64_override_options_internal): Likewise.
17776 (aarch64_validate_mcpu): Likewise.
17777 (aarch64_validate_march): Likewise.
17778 (aarch64_validate_mtune): Likewise.
17779 (aarch64_override_options): Likewise.
17780 * config/alpha/alpha.c (alpha_option_override): Likewise.
17781 * config/arc/arc.c (arc_init): Likewise.
17782 (parse_mrgf_banked_regs_option): Likewise.
17783 (arc_override_options): Likewise.
17784 (arc_expand_builtin_aligned): Likewise.
17785 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
17786 (arm_expand_builtin): Likewise.
17787 * config/arm/arm.c (arm_option_check_internal): Likewise.
17788 (arm_configure_build_target): Likewise.
17789 (arm_option_override): Likewise.
17790 (arm_options_perform_arch_sanity_checks): Likewise.
17791 (arm_handle_cmse_nonsecure_entry): Likewise.
17792 (arm_handle_cmse_nonsecure_call): Likewise.
17793 (arm_tls_referenced_p): Likewise.
17794 (thumb1_expand_prologue): Likewise.
17795 * config/avr/avr.c (avr_option_override): Likewise.
17796 * config/bfin/bfin.c (bfin_option_override): Likewise.
17797 * config/c6x/c6x.c (c6x_option_override): Likewise.
17798 * config/cr16/cr16.c (cr16_override_options): Likewise.
17799 * config/cris/cris.c (cris_option_override): Likewise.
17800 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
17801 * config/darwin-c.c (macosx_version_as_macro): Likewise.
17802 * config/darwin.c (darwin_override_options): Likewise.
17803 * config/frv/frv.c (frv_expand_builtin): Likewise.
17804 * config/h8300/h8300.c (h8300_option_override): Likewise.
17805 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
17806 (ix86_option_override_internal): Likewise.
17807 (warn_once_call_ms2sysv_xlogues): Likewise.
17808 (ix86_expand_prologue): Likewise.
17809 (split_stack_prologue_scratch_regno): Likewise.
17810 (ix86_warn_parameter_passing_abi): Likewise.
17811 * config/ia64/ia64.c (fix_range): Likewise.
17812 * config/m68k/m68k.c (m68k_option_override): Likewise.
17813 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
17814 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
17815 (mips_set_compression_mode): Likewise.
17816 * config/mmix/mmix.c (mmix_option_override): Likewise.
17817 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
17818 * config/msp430/msp430.c (msp430_option_override): Likewise.
17819 * config/nds32/nds32.c (nds32_option_override): Likewise.
17820 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
17821 (nios2_option_override): Likewise.
17822 (nios2_expand_custom_builtin): Likewise.
17823 * config/nvptx/mkoffload.c (main): Likewise.
17824 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
17825 * config/pa/pa.c (fix_range): Likewise.
17826 (pa_option_override): Likewise.
17827 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
17828 (riscv_option_override): Likewise.
17829 * config/rl78/rl78.c (rl78_option_override): Likewise.
17830 * config/rs6000/aix61.h: Likewise.
17831 * config/rs6000/aix71.h: Likewise.
17832 * config/rs6000/aix72.h: Likewise.
17833 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
17834 * config/rs6000/freebsd64.h: Likewise.
17835 * config/rs6000/linux64.h: Likewise.
17836 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
17837 (rs6000_expand_zeroop_builtin): Likewise.
17838 (rs6000_expand_mtfsb_builtin): Likewise.
17839 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
17840 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
17841 (rs6000_invalid_builtin): Likewise.
17842 (rs6000_expand_split_stack_prologue): Likewise.
17843 * config/rs6000/rtems.h: Likewise.
17844 * config/rx/rx.c (valid_psw_flag): Likewise.
17845 (rx_expand_builtin): Likewise.
17846 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17847 * config/s390/s390.c (s390_expand_builtin): Likewise.
17848 (s390_function_profiler): Likewise.
17849 (s390_option_override_internal): Likewise.
17850 (s390_option_override): Likewise.
17851 * config/sh/sh.c (sh_option_override): Likewise.
17852 (sh_builtin_saveregs): Likewise.
17853 (sh_fix_range): Likewise.
17854 * config/sh/vxworks.h: Likewise.
17855 * config/sparc/sparc.c (sparc_option_override): Likewise.
17856 * config/spu/spu.c (spu_option_override): Likewise.
17857 (fix_range): Likewise.
17858 * config/visium/visium.c (visium_option_override): Likewise.
17859 (visium_handle_interrupt_attr): Likewise.
17860 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
17861 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
17862 (dbg_cnt_process_opt): Likewise.
17863 * dwarf2out.c (output_dwarf_version): Likewise.
17864 * except.c (expand_eh_return): Likewise.
17865 * gcc.c (defined): Likewise.
17866 (driver_handle_option): Likewise.
17867 (process_command): Likewise.
17868 (compare_files): Likewise.
17869 (driver::prepare_infiles): Likewise.
17870 (driver::do_spec_on_infiles): Likewise.
17871 (driver::maybe_run_linker): Likewise.
17872 * omp-offload.c (oacc_parse_default_dims): Likewise.
17873 * opts-global.c (handle_common_deferred_options): Likewise.
17874 * opts.c (parse_sanitizer_options): Likewise.
17875 (common_handle_option): Likewise.
17876 (enable_warning_as_error): Likewise.
17877 * passes.c (enable_disable_pass): Likewise.
17878 * plugin.c (parse_plugin_arg_opt): Likewise.
17879 (default_plugin_dir_name): Likewise.
17880 * targhooks.c (default_expand_builtin_saveregs): Likewise.
17881 (default_pch_valid_p): Likewise.
17882 * toplev.c (init_asm_output): Likewise.
17883 (process_options): Likewise.
17884 (toplev::run_self_tests): Likewise.
17885 * tree-cfg.c (verify_gimple_call): Likewise.
17886 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
17887 (tree_inlinable_function_p): Likewise.
17888 * var-tracking.c (vt_find_locations): Likewise.
17890 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
17892 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
17893 only on the else branch.
17895 2019-03-11 Martin Liska <mliska@suse.cz>
17897 * gcov.c (output_intermediate_json_line): Print function
17899 (output_json_intermediate_file): Add new argument.
17900 * doc/gcov.texi: Document the change.
17902 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
17904 PR rtl-optimization/89588
17905 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
17906 explicit unrolling factor more robust.
17908 2019-03-11 Richard Biener <rguenther@suse.de>
17910 PR tree-optimization/89649
17911 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
17912 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
17913 on the prolog and epilog loops.
17914 (vect_loop_versioning): Return copy of loop.
17915 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
17916 on the non-vectorized version of the loop.
17918 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
17921 * config/i386/sse.md (*vec_extractv2di_0_sse):
17922 Add (=r,x) alternative and corresponding splitter.
17924 2019-03-10 Martin Jambor <mjambor@suse.cz>
17926 PR tree-optimization/85762
17927 PR tree-optimization/87008
17928 PR tree-optimization/85459
17929 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
17930 it points to if there is a type changing MEM_REF. Adjust all callers.
17931 (build_accesses_from_assign): Disable total scalarization if
17932 contains_vce_or_bfcref_p returns true through the new parameter, for
17935 2019-03-09 Jakub Jelinek <jakub@redhat.com>
17938 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
17939 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
17942 * common.opt (fdiagnostics-show-labels,
17943 fdiagnostics-show-line-numbers, fdiagnostics-format=,
17944 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
17945 gas-locview-support, ginline-points, ginternal-reset-location-views):
17946 Terminate description text with a dot.
17947 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
17948 * config/mcore/mcore.opt (m210, m340): Likewise.
17949 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
17950 mnops=): Start description text with a capital letter.
17951 * config/arc/arc.opt (msize-level=): Likewise.
17952 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
17953 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
17954 mnewlib): Likewise.
17955 * config/ft32/ft32.opt (msim): Likewise.
17956 (mft32b, mcompress): Likewise. Terminate description text with a dot.
17957 (mnodiv, mnopm): Terminate description text with a dot.
17958 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
17960 * config/i386/i386.opt (prefer_vector_width, instrument_return):
17962 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
17965 PR rtl-optimization/89634
17966 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
17967 are modified in BB_END (e->src) instruction.
17969 2019-03-08 David Malcolm <dmalcolm@redhat.com>
17972 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
17973 messages more amenable to translation, and improve wording.
17975 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
17977 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
17978 ud- and du-chains between phases.
17980 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
17983 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
17984 instead of POLY_INT_CST.
17986 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
17988 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
17991 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
17996 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
17997 (_mm_storeu_si64): Ditto.
17999 2019-03-08 Martin Liska <mliska@suse.cz>
18002 * config/i386/i386.c (ix86_option_override_internal): Disable
18003 jump tables when retpolines are used.
18005 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
18008 * ipa-split.c (execute_split_functions): Do not split
18009 'noinline' or 'section' function.
18011 2019-03-08 Jakub Jelinek <jakub@redhat.com>
18014 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
18015 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
18016 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
18019 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
18020 from diagnostics. Formatting fixes.
18023 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
18024 warn_odr diagnostics.
18027 * lra-constraints.c (process_alt_operands): Avoid one space before
18028 " at the end of line and another after " on another line in a string
18030 * attribs.c (handle_dll_attribute): Likewise.
18031 * config/avr/avr-devices.c (avr_texinfo): Likewise.
18033 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
18034 warning_at or inform messages in G_() if there is no ?:.
18036 PR tree-optimization/89550
18037 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
18038 returned true. Formatting fixes.
18039 (expand_builtin_strnlen): Formatting fixes.
18040 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
18041 if warning_at returned true.
18042 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
18044 2019-03-08 Richard Biener <rguenther@suse.de>
18046 PR middle-end/89578
18047 * cfgloop.h (struct loop): Add owned_clique field.
18048 * cfgloopmanip.c (copy_loop_info): Copy it.
18049 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
18051 * tree-inline.c (copy_loops): Remap owned_clique.
18052 * lto-streamer-in.c (input_cfg): Stream owned_clique.
18053 * lto-streamer-out.c (output_cfg): Likewise.
18055 2019-03-08 Jakub Jelinek <jakub@redhat.com>
18058 * config/darwin.c: Include intl.h.
18059 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
18060 composing the message out of two separate parts.
18062 2019-03-07 Jakub Jelinek <jakub@redhat.com>
18065 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
18066 doesn't start with a capital letter and doesn't end with a dot.
18067 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
18068 with a capital letter.
18069 (ix86_mangle_function_version_assembler_name): Likewise.
18070 (ix86_generate_version_dispatcher_body): Likewise.
18071 (fold_builtin_cpu): Likewise.
18072 (get_builtin_code_for_version): Likewise. Remove extraneous space.
18073 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
18074 translators, wrap full type name in %qs.
18076 PR translation/79999
18077 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
18078 depend clause with source (or sink) modifier.
18079 * omp-expand.c (expand_omp_ordered_sink): Likewise.
18082 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
18083 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
18084 (avx512f_load<mode>_mask): New define_expand.
18085 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
18086 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
18087 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
18088 __builtin_ia32_movess_mask): New builtins.
18089 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
18090 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
18091 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
18092 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
18094 2019-03-07 Martin Jambor <mjambor@suse.cz>
18097 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
18098 for extern inline functions.
18100 2019-03-07 Martin Jambor <mjambor@suse.cz>
18103 * cgraph.h (cgraph_node): New inline method former_thunk_p.
18104 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
18105 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
18106 have multiple callees. At the end check if declarations match as
18107 opposed to cgraph_nodes.
18109 2019-03-07 Martin Liska <mliska@suse.cz>
18111 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
18112 which is equivalent to searching for this in clones chain.
18113 * symtab.c (symtab_node::verify_base): Similarly compare ASM
18114 names with a neighbour and special case first node in a chain.
18116 2019-01-25 Jason Merrill <jason@redhat.com>
18118 PR c++/80916 - spurious "static but not defined" warning.
18119 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
18120 for an internal symbol with DECL_EXTERNAL.
18122 2019-04-07 Richard Biener <rguenther@suse.de>
18124 PR middle-end/89618
18125 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
18126 * tree-inline.c (copy_loops): Simplify.
18128 2019-03-07 Martin Liska <mliska@suse.cz>
18130 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
18132 2019-03-07 Richard Biener <rguenther@suse.de>
18134 PR tree-optimization/89595
18135 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
18136 stmt iterator as reference, take boolean output parameter to
18137 indicate whether the stmt was removed and thus the iterator
18139 (dom_opt_dom_walker::before_dom_children): Re-iterate over
18140 stmts created by folding.
18142 2019-03-07 Jakub Jelinek <jakub@redhat.com>
18145 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
18148 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
18150 PR rtl-optimization/88845
18151 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
18153 * lra.c (remove_scratches_1): New function.
18154 (remove_scratches): Use it.
18155 (lra_emit_move): Likewise.
18157 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
18159 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
18160 unaligned_access variable.
18161 * config/arc/arc.c (arc_override_options): Set unaligned access
18162 default on for HS CPUs.
18163 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
18165 2019-03-06 Martin Liska <mliska@suse.cz>
18167 PR gcov-profile/89577
18168 * doc/gcov.texi: Prefer to use --coverage.
18169 * doc/sourcebuild.texi: Likewise.
18171 2019-03-02 Jason Merrill <jason@redhat.com>
18173 PR c++/86485 - -Wmaybe-unused with empty class ?:
18174 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
18176 2019-03-05 Jakub Jelinek <jakub@redhat.com>
18179 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
18182 PR middle-end/89590
18183 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
18184 exactly one argument.
18186 2019-03-05 Jakub Jelinek <jakub@redhat.com>
18187 Richard Sandiford <richard.sandiford@arm.com>
18189 PR tree-optimization/89570
18190 * match.pd (vec_cond into cond_op simplification): Don't use
18191 get_conditional_internal_fn, use as_internal_fn (cond_op).
18193 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
18196 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
18197 to decide when to split off a non-zero offset from a symbol.
18198 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
18199 in function symbols.
18201 2019-03-05 Richard Biener <rguenther@suse.de>
18203 PR tree-optimization/89594
18204 * tree-if-conv.c (pass_if_conversion::execute): Handle
18205 case where .LOOP_VECTORIZED_FUNCTION was removed.
18207 2019-03-05 Jakub Jelinek <jakub@redhat.com>
18210 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
18211 instead alloca it only when needed with the needed size.
18213 PR tree-optimization/89570
18214 * match.pd (vec_cond into cond_op simplification): Guard with
18215 vectorized_internal_fn_supported_p test and #if GIMPLE.
18217 PR tree-optimization/89566
18218 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
18219 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
18220 Punt if get_user_idx_format succeeds, but idx_format argument is
18221 not provided or doesn't have pointer type, or if idx_args is above
18222 number of provided arguments.
18224 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
18226 PR tree-optimization/89437
18227 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
18229 2019-03-04 Richard Biener <rguenther@suse.de>
18231 PR middle-end/89572
18232 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
18235 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
18237 PR tree-optimization/89487
18238 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
18239 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
18240 (distribute_loop): Don't do runtime alias check if there is non-
18241 addressable data reference.
18242 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
18243 is a register variable.
18245 2019-03-02 Jakub Jelinek <jakub@redhat.com>
18248 * config/arm/arm.md (cmpsi2_addneg): Use
18249 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
18250 If operands[2] is 0 or INT_MIN, force use of subs.
18251 (*compare_scc splitter): Use gen_int_mode.
18252 (*negscc): Likewise.
18253 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
18255 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
18256 Monk Chiang <sh.chiang04@gmail.com>
18258 * common/config/riscv/riscv-common.c: Include sstream.
18259 (riscv_subset_list::to_string): New.
18260 (riscv_arch_str): Likewise.
18261 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
18262 * config.in: Regen.
18263 * config/riscv/riscv-protos.h (riscv_arch_str): New.
18264 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
18265 (riscv_emit_attribute): New.
18266 (riscv_file_start): Emit attribute if needed.
18267 (riscv_option_override): Init riscv_emit_attribute_p.
18268 * config/riscv/riscv.opt (mriscv-attribute): New option.
18269 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
18270 * configure: Regen.
18271 * doc/install.texi: Document --with-riscv-attribute.
18272 * doc/invoke.texi: Document -mriscv-attribute.
18274 * common/config/riscv/riscv-common.c:
18275 Include config/riscv/riscv-protos.h.
18276 (INCLUDE_STRING): Defined.
18277 (RISCV_DONT_CARE_VERSION): Defined.
18278 (riscv_subset_t): Declare.
18279 (riscv_subset_t::riscv_subset_t): New.
18280 (riscv_subset_list): Declare.
18281 (riscv_subset_list::riscv_subset_list): New.
18282 (riscv_subset_list::~riscv_subset_list): Likewise.
18283 (riscv_subset_list::parsing_subset_version): Likewise.
18284 (riscv_subset_list::parse_std_ext): Likewise.
18285 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
18286 (riscv_subset_list::add): Likewise.
18287 (riscv_subset_list::lookup): Likewise.
18288 (riscv_subset_list::xlen): Likewise.
18289 (riscv_subset_list::parse): Likewise.
18290 (riscv_supported_std_ext): Likewise.
18291 (current_subset_list): Likewise.
18292 (riscv_parse_arch_string): Using riscv_subset_list::parse to
18295 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
18297 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18298 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
18299 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
18301 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
18303 PR rtl-optimization/85899
18304 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
18305 fallthru edges leading to the exit block.
18307 2019-03-01 Tamar Christina <tamar.christina@arm.com>
18310 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
18311 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
18313 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
18315 PR tree-optimization/89535
18316 * tree-vect-stmts.c (vectorizable_call): Record the vector types
18317 for each operand. Calculate the fallback choice for mask operands
18318 and pass it to vect_get_vec_def_for_operand.
18320 2019-03-01 Richard Biener <rguenther@suse.de>
18322 PR middle-end/89541
18323 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
18324 get virtual operands.
18325 (get_expr_operands): Handle CONST_DECL like other decls.
18327 2019-03-01 Jakub Jelinek <jakub@redhat.com>
18329 PR middle-end/89503
18330 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
18331 on DECL_P and EXPR_P.
18333 2019-03-01 Richard Biener <rguenther@suse.de>
18335 PR middle-end/89497
18336 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
18337 argument, defaulted to zero.
18338 * passes.c (execute_function_todo): Pass down SSA update flags
18339 to cleanup_tree_cfg.
18340 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
18341 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
18343 (cleanup_tree_cfg): Get and pass down SSA update flags.
18345 2019-03-01 Jakub Jelinek <jakub@redhat.com>
18348 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
18349 early_lto_debug argument.
18351 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
18353 PR tree-optimization/89536
18354 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
18355 only whether bit #0 of the value is 0 instead of the entire value.
18357 2019-02-28 Marek Polacek <polacek@redhat.com>
18359 PR c++/87068 - missing diagnostic with fallthrough statement.
18360 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
18361 at the end of a seq, save its location to walk_stmt_info.
18362 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
18365 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
18368 * tree.c (find_atomic_core_type): Move ahead in file.
18369 (check_base_type): Correctly compare alignments of atomic types.
18371 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
18374 * config/i386/i386.c (get_builtin_code_for_version): Identify
18375 Westmere from PCLMUL, instead of AES.
18377 2019-02-28 Jakub Jelinek <jakub@redhat.com>
18380 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
18381 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
18384 2019-02-28 Tamar Christina <tamar.christina@arm.com>
18387 * config/aarch64/aarch64-option-extensions.def: Document it.
18388 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
18391 2019-02-28 Jakub Jelinek <jakub@redhat.com>
18394 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
18395 builtins if they don't have a single scalar floating point argument.
18398 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
18400 PR rtl-optimization/89490
18401 * varasm.c (get_block_for_section): Bail out for mergeable sections.
18402 (default_use_anchors_for_symbol_p, output_object_block): Assert the
18403 block section is not mergeable.
18405 2019-02-27 Jakub Jelinek <jakub@redhat.com>
18408 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
18409 old define_insn to ...
18410 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
18411 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
18412 Rename old define_insn to ...
18413 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
18414 (thumb2_casesi_internal_pic): New define_expand. Rename old
18416 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
18417 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
18418 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
18420 2019-02-27 Richard Biener <rguenther@suse.de>
18423 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
18425 2019-02-27 Richard Biener <rguenther@suse.de>
18427 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
18430 2019-02-27 Richard Biener <rguenther@suse.de>
18433 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
18434 parameter, prefix section name with .gnu.debuglto_ if true.
18435 (dwarf2out_finish): Pass false to output_comdat_type_unit.
18436 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
18438 2019-02-27 Richard Biener <rguenther@suse.de>
18441 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
18442 rather than on use_debug_types, doing what output_die does.
18443 (value_format): Likewise.
18445 2019-02-27 Martin Jambor <mjambor@suse.cz>
18446 Martin Sebor <msebor@redhat.com>
18448 * doc/invoke.texi (Warning Options): Reword description of
18449 -Wno-absolute-value.
18451 2019-02-27 Jakub Jelinek <jakub@redhat.com>
18453 PR tree-optimization/89280
18454 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
18455 builtin_setjmp_setup_bb): New functions.
18456 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
18457 When visiting __builtin_setjmp_setup block, queue in special
18458 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
18459 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
18460 from visited after the loop if they don't have any visited successor
18463 2018-02-26 Steve Ellcey <sellcey@marvell.com>
18465 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
18467 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
18469 2019-02-26 Jakub Jelinek <jakub@redhat.com>
18472 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
18473 with types other than sizetype/ssizetype.
18475 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
18477 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
18478 (enum sparc_processor_type): ...this.
18479 (enum sparc_code_model_type): New enumeration type.
18480 (enum sparc_memory_model_type): Tweak comments.
18481 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
18483 (mcmodel): Use sparc_code_model enumeration and variable.
18484 (sparc_code_model): New enumeration.
18485 (mdebug): Add Undocumented marker.
18486 * config/sparc/sparc.h (enum cmodel): Delete.
18487 (sparc_cmodel): Likewise.
18488 (TARGET_CM_MEDLOW): Adjust to above renaming.
18489 (TARGET_CM_MEDMID): Likewise.
18490 (TARGET_CM_MEDANY): Likewise.
18491 (TARGET_CM_EMBMEDANY): Likewise.
18492 * config/sparc/sparc.c (sparc_cmodel): Delete.
18493 (sparc_option_override): Remove string/value mapping support for the
18494 code model. Move code and memory model support to after the handling
18495 of target flags. Do private machine setup last.
18496 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
18497 (sparc_legitimize_reload_address): Likewise.
18498 (sparc_output_mi_thunk): Likewise.
18499 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
18501 2019-02-26 Jakub Jelinek <jakub@redhat.com>
18503 PR tree-optimization/89500
18504 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
18505 (handle_builtin_strlen): Remove noncst_bound variable. Always
18506 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
18507 cst if the first cst bytes starting at x are known to be non-zero,
18508 even if the string is not zero terminated. Don't try to modify
18509 *si for strnlen. Update strlen_to_stridx only for strlen or if
18510 we can prove strnlen returns the same value as strlen would.
18512 2019-02-26 Martin Liska <mliska@suse.cz>
18514 * alloc-pool.h (struct pool_usage): Remove extra
18516 * bitmap.h (struct bitmap_usage): Likewise.
18517 * ggc-common.c (struct ggc_usage): Likewise.
18518 * mem-stats.h (struct mem_usage): Likewise.
18519 (mem_alloc_description::dump): Print dash lines
18520 here and repeat header at the end of a table report.
18521 It's then more readable.
18522 * tree-phinodes.c (phinodes_print_statistics): Make
18523 horizontal alignment.
18524 * tree-ssanames.c (ssanames_print_statistics): Likewise.
18525 * vec.c (struct vec_usage): Remove extra print_dash_line.
18526 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
18528 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
18530 * doc/extend.texi (__builtin_object_size):
18531 Use @pxref instead of @xref inside parenthesis.
18532 (__builtin_has_attribute): Add missing comma after @xref.
18533 (__builtin_object_size): Ditto.
18534 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
18536 2019-02-26 Jeff Law <law@redhat.com>
18538 PR rtl-optimization/87761
18539 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
18540 detect obviously dead insns and delete them.
18542 2019-02-26 Richard Biener <rguenther@suse.de>
18544 PR tree-optimization/89505
18545 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
18546 to handle restrict pointed-to vars with multiple subvars
18549 2019-02-26 Richard Biener <rguenther@suse.de>
18551 PR tree-optimization/89489
18552 * tree-parloops.c (create_loop_fn): Copy over last_clique.
18554 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
18556 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
18557 and move around comment.
18558 <BIT_AND_EXPR>: Likewise.
18559 <BIT_NOT_EXPR>: Add specific handling for boolean types.
18561 2019-02-26 Jakub Jelinek <jakub@redhat.com>
18564 * config/i386/i386.c (remove_partial_avx_dependency): Call
18565 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
18566 after changing possibly many instructions to use that pseudo. Fix up
18567 insertion of v4sf_const0 setter at the start of bb.
18569 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
18572 * doc/extend.texi (Variadic Pointer Args): New section.
18574 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
18575 Martin Sebor <msebor@gmail.com>
18577 * common.opt (Wattribute-alias): Likewise.
18578 * doc/invoke.texi (Option Summary): List general form of
18579 -Wattribute-alias=. List positive form of -Wmissing-attributes.
18580 (-Wmissing-attributes): Invert entry, rewrite and correct default.
18581 Add cross-references.
18582 (-Wattribute-alias): Rewrite and correct default. Mention
18583 considered attributes (same as for -Wmissing-attributes).
18585 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
18587 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
18588 (_mm_cvtpd_ps): Likewise.
18589 (_mm_cvttpd_epi32): Likewise.
18592 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
18593 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
18596 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
18598 2019-02-25 Tamar Christina <tamar.christina@arm.com>
18601 * common/config/aarch64/aarch64-common.c
18602 (struct aarch64_option_extension): Add is_synthetic.
18603 (all_extensions): Use it.
18604 (TARGET_OPTION_INIT_STRUCT): Define hook.
18605 (struct gcc_targetm_common): Moved to end.
18606 (all_extensions_by_on): New.
18607 (opt_ext_cmp, typedef opt_ext): New.
18608 (aarch64_option_init_struct): New.
18609 (aarch64_contains_opt): New.
18610 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
18611 * config/aarch64/aarch64-option-extensions.def
18612 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
18613 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
18614 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
18615 Set is_synthetic to false.
18616 (crypto): Set is_synthetic to true.
18617 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
18620 2019-02-25 Tamar Christina <tamar.christina@arm.com>
18622 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
18623 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
18624 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
18625 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
18626 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
18627 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
18628 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
18629 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
18631 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
18632 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
18633 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
18634 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
18635 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
18636 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
18637 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
18638 vfmlsl_laneq_high_f16): ... To this.
18639 * config/arm/neon.md: Update comments.
18641 2019-02-25 Tamar Christina <tamar.christina@arm.com>
18643 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
18644 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
18645 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
18646 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
18647 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
18648 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
18649 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
18650 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
18652 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
18653 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
18654 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
18655 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
18656 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
18657 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
18658 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
18659 vfmlslq_laneq_high_f16): ... To this.
18661 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
18663 PR rtl-optimization/86096
18664 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
18665 comparing mw_order values.
18667 2019-02-25 Jakub Jelinek <jakub@redhat.com>
18670 * config/arm/arm.md (*subsi3_carryin_const): Use
18671 arm_neg_immediate_operand predicate instead of
18672 arm_not_immediate_operand, "L" constraint instead of "K" and
18673 print it using %n2 instead of %B2.
18674 (*subsi3_carryin_const0): New define_insn.
18675 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
18676 instead of arm_not_operand and "I" constraint instead of "K" and
18677 print it using %n3 instead of %B2. Instead of using match_dup 2 add
18678 another match_operand and in the condition check that it is negation
18680 (*subsi3_carryin_compare_const0): New define_ins.
18681 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
18682 *subsi3_carryin_const.
18683 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
18684 split into *subsi3_carryin_compare_const0 if the highpart is zero.
18687 * config/arm.vfp.md (*negdf2_vfp): Use
18688 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
18689 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
18691 2019-02-24 Jakub Jelinek <jakub@redhat.com>
18693 PR rtl-optimization/89445
18694 * simplify-rtx.c (simplify_ternary_operation): Don't use
18695 simplify_merge_mask on operands that may trap.
18696 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
18697 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
18698 second operand is CONST_VECTOR, check if any element could be zero.
18699 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
18700 their operands can trap.
18702 2019-02-23 Martin Sebor <msebor@redhat.com>
18704 * gimple-ssa-sprintf.c (target_strtol): Rename...
18705 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
18706 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
18707 check for range error.
18709 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
18712 * opts-common.c (prune_options): Also prune joined switches
18713 with Negative and RejectNegative.
18714 * config/i386/i386.opt (march=): Add Negative(march=).
18715 (mtune=): Add Negative(mtune=).
18716 * doc/options.texi: Document Negative used together with Joined
18717 and RejectNegative.
18719 2019-02-22 Martin Sebor <msebor@redhat.com>
18721 * doc/extend.texi (Other Builtins): Add
18722 __builtin_is_constant_evaluated.
18724 2019-02-22 Richard Biener <rguenther@suse.de>
18726 PR tree-optimization/87609
18727 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
18729 2019-02-22 Jeff Law <law@redhat.com>
18731 PR rtl-optimization/87761
18732 * config/mips/mips.md: Add new combiner pattern to recognize
18733 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
18735 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
18738 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
18739 destination register in peepholes generating patterns for ADDS/SUBS.
18740 (add<mode>3_compare0,
18741 *addsi3_compare0_uxtw, add<mode>3_compareC,
18742 add<mode>3_compareV_imm, add<mode>3_compareV,
18743 *adds_<optab><ALLX:mode>_<GPI:mode>,
18744 *subs_<optab><ALLX:mode>_<GPI:mode>,
18745 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
18746 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
18747 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
18748 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
18749 sub<mode>3_compare1): Allow stack pointer for source register.
18750 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
18752 2019-02-22 Martin Sebor <msebor@redhat.com>
18754 PR tree-optimization/88993
18755 PR tree-optimization/88853
18756 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
18758 (sprintf_dom_walker::call_info::is_string_func): New helper.
18759 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
18760 for formatted string functions.
18761 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
18763 2019-02-22 Martin Sebor <msebor@redhat.com>
18766 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
18767 unreachable subexpressions.
18769 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
18770 Hongtao Liu <hongtao.liu@intel.com>
18771 Sunil K Pandey <sunil.k.pandey@intel.com>
18774 * config/i386/i386-passes.def: Add
18775 pass_remove_partial_avx_dependency.
18776 * config/i386/i386-protos.h
18777 (make_pass_remove_partial_avx_dependency): New.
18778 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
18780 (pass_data_remove_partial_avx_dependency): New.
18781 (pass_remove_partial_avx_dependency): Likewise.
18782 (make_pass_remove_partial_avx_dependency): Likewise.
18783 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
18784 (*extendsfdf2): Add avx_partial_xmm_update.
18785 (truncdfsf2): Likewise.
18786 (*float<SWI48:mode><MODEF:mode>2): Likewise.
18787 (SF/DF conversion splitters): Disabled for TARGET_AVX.
18789 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
18791 PR middle-end/85598
18792 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
18795 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
18798 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
18799 (PTA_SKYLAKE): Add PTA_AES.
18800 (PTA_GOLDMONT): Likewise.
18802 2019-02-22 Sudakshina Das <sudi.das@arm.com>
18804 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
18805 instruction if enabled.
18806 (aarch64_override_options): Remove reference to return address key.
18808 2019-02-22 Richard Biener <rguenther@suse.de>
18810 PR tree-optimization/89440
18811 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
18812 not necessary assert.
18814 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
18817 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
18818 (oacc_replace_fn_attrib_attr): ... this new function.
18819 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
18820 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
18822 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18824 * config/arm/arm-cpus.in (ares): Rename to...
18825 (neoverse-n1): ... This. Add ares as alias.
18826 * config/arm/arm-tables.opt: Regenerate.
18827 * config/arm/arm-tune.md: Likewise.
18828 * doc/invoke.txt (ARM Options): Document neoverse-n1.
18830 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18832 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
18833 * config/aarch64/aarch64-tune.md: Regenerate.
18834 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
18836 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18838 * config/aarch64/aarch64.c (ares_tunings): Rename to...
18839 (neoversen1_tunings): ... This.
18840 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
18841 (neoverse-n1): New CPU.
18842 * config/aarch64/aarch64-tune.md: Regenerate.
18843 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
18845 2019-02-22 Richard Biener <rguenther@suse.de>
18847 PR middle-end/87609
18848 * cfghooks.h (dependence_hash): New typedef.
18849 (struct copy_bb_data): New type.
18850 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
18851 (duplicate_block): Likewise.
18852 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
18853 (copy_bbs): Create and pass down copy_bb_data.
18854 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
18855 (rtl_duplicate_bb): Likewise.
18856 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
18857 remap dependence info.
18859 2019-02-22 Richard Biener <rguenther@suse.de>
18861 PR tree-optimization/87609
18862 * tree-core.h (tree_base): Document special clique values.
18863 * tree-inline.c (remap_dependence_clique): Do not use the
18864 special clique value of one.
18865 (maybe_set_dependence_info): Use clique one.
18866 (clear_dependence_clique): New callback.
18867 (compute_dependence_clique): Clear clique one from all refs
18868 before assigning it (again).
18870 2019-02-21 Martin Sebor <msebor@redhat.com>
18872 * doc/extend.texi (__clear_cache): Correct signature.
18874 2019-02-21 Ian Lance Taylor <iant@golang.org>
18877 * varasm.c (decode_addr_const): Call lookup_constant_def rather
18878 than output_constant_def.
18879 (add_constant_to_table): New static function.
18880 (output_constant_def): Call add_constant_to_table.
18881 (tree_output_constant_def): Likewise.
18883 2019-02-21 Jakub Jelinek <jakub@redhat.com>
18886 * builtins.c (fold_builtin_arith_overflow): If first two args are
18887 INTEGER_CSTs, set intres and ovfres to constants rather than calls
18890 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
18893 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
18894 error for -mindirect-branch/-mfunction-return with incompatible
18897 2019-02-21 Jakub Jelinek <jakub@redhat.com>
18900 * constraints.md (q): Remove.
18901 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
18904 2019-02-21 Martin Jambor <mjambor@suse.cz>
18907 * omp-general.c (omp_extract_for_data): Removed a duplicate call
18908 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
18909 (omp_adjust_for_condition): ...here. Added necessary parameters.
18910 * omp-general.h (omp_adjust_for_condition): Updated declaration.
18911 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
18912 proper values to new parameters of omp_adjust_for_condition.
18914 2019-02-20 Jakub Jelinek <jakub@redhat.com>
18916 PR middle-end/89412
18917 * expr.c (expand_assignment): If result is a MEM, use change_address
18918 instead of simplify_gen_subreg.
18920 2019-02-20 Jakub Jelinek <jakub@redhat.com>
18921 David Malcolm <dmalcolm@redhat.com>
18923 PR middle-end/89091
18924 * fold-const.c (decode_field_reference): Return NULL_TREE if
18925 lang_hooks.types.type_for_size returns NULL. Check it before
18926 overwriting *exp_. Use return NULL_TREE instead of return 0.
18928 2019-02-20 Jakub Jelinek <jakub@redhat.com>
18930 PR middle-end/88074
18931 PR middle-end/89415
18932 * toplev.c (do_compile): Double the emin/emax exponents to workaround
18935 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
18938 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
18939 TARGET_SSE in addition to TARGET_SSE_MATH.
18941 (ix86_excess_precision): Ditto.
18942 (ix86_float_exceptions_rounding_supported_p): Ditto.
18943 (use_rsqrt_p): Ditto.
18944 * config/i386/sse.md (rsqrt<mode>2): Ditto.
18946 2019-02-20 David Malcolm <dmalcolm@redhat.com>
18949 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
18950 linenum_arith_t when determining if two adjacent line spans are
18951 close enough to merge.
18952 (diagnostic_show_locus): Use linenum_arith_t when iterating over
18953 lines within each line_span.
18955 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
18958 * lra-constraints.c(uses_hard_regs_p): Fix handling of
18959 paradoxical SUBREGS.
18961 2019-02-20 Li Jia He <helijia@linux.ibm.com>
18964 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
18965 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
18966 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
18969 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
18971 * config/gcn/gcn.c (print_operand): Fix typo.
18973 2019-02-19 Richard Biener <rguenther@suse.de>
18975 PR middle-end/88074
18976 * toplev.c (do_compile): Initialize mpfr's exponent range
18977 based on available float modes.
18979 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
18981 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
18982 as long as the epilogue isn't completed.
18984 2019-02-18 Martin Sebor <msebor@redhat.com>
18986 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
18987 __has_cpp_attribute, and __has_include.
18989 2019-02-18 Martin Sebor <msebor@redhat.com>
18991 * doc/invoke.texi (-Wreturn-type): Correct and expand.
18993 2019-02-18 Martin Sebor <msebor@redhat.com>
18995 PR middle-end/89294
18996 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
18998 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
19000 2019-02-18 Richard Biener <rguenther@suse.de>
19002 PR tree-optimization/89296
19003 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
19004 of no-warning flag to cases that might emit the bogus warning.
19006 2019-02-18 Jakub Jelinek <jakub@redhat.com>
19009 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
19011 * config/arm/vfp.md (*movdi_vfp): Likewise.
19012 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
19013 "q" constraint for operands[0].
19016 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
19017 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
19018 pattern in a temporary buffer.
19019 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
19020 than 64-operands[2].
19023 * config/s390/s390.c (s390_indirect_branch_attrvalue,
19024 s390_indirect_branch_settings): Define unconditionally.
19025 (s390_set_current_function): Likewise, but guard the whole body except
19026 the s390_indirect_branch_settings call with
19027 #if S390_USE_TARGET_ATTRIBUTE.
19028 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
19030 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
19031 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
19032 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
19033 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
19034 HOST_WIDE_INT_1U instead of 1ULL.
19035 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
19036 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
19037 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
19038 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
19040 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
19043 2019-02-18 Martin Jambor <mjambor@suse.cz>
19045 PR tree-optimization/89209
19046 * tree-sra.c (create_access_replacement): New optional parameter
19047 reg_tree. Use it as a type if non-NULL and access type is not of
19049 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
19050 to create_access_replacement.
19051 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
19052 Check lacc is non-NULL before attempting to re-create it on the RHS.
19054 2019-02-18 Martin Liska <mliska@suse.cz>
19057 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
19059 (symbol_table::free_edge): Recycle m_summary_id.
19060 * cgraph.h (get_summary_id): New.
19061 (symbol_table::release_symbol): Set m_summary_id to -1
19063 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
19064 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
19065 function_summary to fast_function_summary.
19066 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
19067 * ipa-pure-const.c (class funct_state_summary_t):
19068 Switch from function_summary to fast_function_summary.
19069 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
19070 (class ipa_ref_opt_summary_t): Switch from function_summary
19071 to fast_function_summary.
19072 * symbol-summary.h (class function_summary_base): New class
19073 that is created from base of former function_summary.
19074 (function_summary_base::unregister_hooks): New.
19075 (class function_summary): Inherit from function_summary_base.
19076 (class call_summary_base): New class
19077 that is created from base of former call_summary.
19078 (class call_summary): Inherit from call_summary_base.
19079 (struct is_same): New.
19080 (class fast_function_summary): New summary class.
19081 (class fast_call_summary): New summary class.
19082 * vec.h (vec_safe_grow_cleared): New function.
19084 2019-02-18 Martin Liska <mliska@suse.cz>
19086 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
19087 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
19088 * doc/tm.texi: Document new target hook.
19089 * doc/tm.texi.in: Likewise.
19090 * target.def: Add new target macro.
19091 * gcc.c (find_fortran_preinclude_file): Do not search multilib
19094 2019-02-17 Alan Modra <amodra@gmail.com>
19097 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
19098 output reg on add insn.
19099 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
19101 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
19104 * config/i386/sse.md (ssedoublemode): Remove V4HI.
19105 (PMULHRSW): Likewise.
19106 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
19108 (ssse3_pmulhrswv4hi3): New expander.
19110 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
19112 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
19113 MMX. Add isa attribute.
19115 2019-02-16 Jakub Jelinek <jakub@redhat.com>
19117 PR rtl-optimization/66152
19118 * builtins.h (c_readstr): Declare.
19119 * builtins.c (c_readstr): Remove forward declaration. Add
19120 null_terminated_p argument, if false, read all bytes from the
19121 string instead of stopping after '\0'.
19122 * expr.c (string_cst_read_str): New function.
19123 (store_expr): Use string_cst_read_str instead of
19124 builtin_strncpy_read_str. Try to store by pieces the whole
19125 exp_len first, and only if that fails, split it up into
19126 store by pieces followed by clear_storage. Formatting fix.
19128 * config/i386/i386.md (*movqi_internal): Remove static from
19129 buf variable. Use output_asm_insn (buf, operands); return "";
19130 instead of return buf;.
19131 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
19132 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
19133 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
19135 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
19137 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
19138 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
19139 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
19140 (CC1_SPEC): Likewise.
19141 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
19143 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
19145 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
19146 the base address on 64-bit strict-alignment platforms.
19148 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
19150 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
19152 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
19154 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
19156 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
19158 PR rtl-optimization/88308
19159 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
19160 on copied instruction.
19162 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
19164 * final.c (insn_current_reference_address): Replace test on JUMP_P
19165 with test on jump_to_label_p.
19166 * config/visium/visium-passes.def: New file.
19167 * config/visium/t-visium (PASSES_EXTRA): Define.
19168 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
19169 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
19170 (TRAMPOLINE_ALIGNMENT): Define.
19171 * config/visium/visium.c (visium_option_override): Do not register
19172 the machine-specific reorg pass here.
19173 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
19175 (output_branch): Adjust threshold for long branch instruction.
19176 * config/visium/visium.md (cpu): Move around.
19177 (length): Adjust for the GR6.
19179 2019-02-15 Richard Biener <rguenther@suse.de>
19180 Jakub Jelinek <jakub@redhat.com>
19182 PR tree-optimization/89278
19183 * tree-loop-distribution.c: Include tree-eh.h.
19184 (generate_memset_builtin, generate_memcpy_builtin): Call
19185 rewrite_to_non_trapping_overflow on builtin->size before passing it
19186 to force_gimple_operand_gsi.
19188 2019-02-15 Jakub Jelinek <jakub@redhat.com>
19191 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
19193 * opth-gen.awk: Likewise.
19195 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
19197 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
19198 Enable MMX, SSE and SSE2 by default.
19199 * config/i386/i386.c (ix86_option_override_internal): Do not
19200 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
19202 2019-02-14 Jakub Jelinek <jakub@redhat.com>
19204 PR rtl-optimization/89354
19205 * combine.c (make_extraction): Punt if extraction_mode is narrower
19208 2019-02-14 Maya Rashish <coypu@sdf.org>
19210 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
19211 * config/netbsd-d.c: New file.
19212 * config/t-netbsd: Add netbsd-d.o
19214 2018-02-14 Steve Ellcey <sellcey@marvell.com>
19216 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
19217 affects_type_identity to true for aarch64_vector_pcs.
19218 (aarch64_comp_type_attributes): New function.
19219 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
19221 2019-02-14 Tamar Christina <tamar.christina@arm.com>
19224 * config/arm/iterators.md (ANY64): Add V4HF.
19226 2019-02-14 Martin Liska <mliska@suse.cz>
19228 PR rtl-optimization/89242
19229 * dce.c (delete_unmarked_insns): Call free_dominance_info we
19230 process a transformation.
19232 2019-02-14 Jakub Jelinek <jakub@redhat.com>
19234 PR tree-optimization/89314
19235 * fold-const.c (fold_binary_loc): Cast strlen argument to
19236 const char * before dereferencing it. Formatting fixes.
19238 PR middle-end/89284
19239 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
19241 2019-02-13 Ian Lance Taylor <iant@golang.org>
19243 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
19244 and set current index for other optimizations.
19246 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
19248 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
19249 nonimmediate_operand as operand 2 predicate.
19250 (vec_set<VF2_512_256:mode>_0): Ditto.
19251 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
19252 (*vec_concatv2si): Remove alternative 2.
19253 (*vec_concatv4si_0): Use vm constraint for alternative 0.
19254 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
19255 (vec_concatv2di): Split alternatives 4,5,6 to ...
19256 (*vec_concatv2di_0) ... new pattern.
19258 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
19261 * config/arm/arm.c (ldm_stm_operation_p) Set
19262 addr_reg_in_reglist correctly for first register.
19263 (load_multiple_sequence): Remove dead base check.
19264 (gen_ldm_seq): Correctly set write_back for Thumb-1.
19266 2019-02-13 Tamar Christina <tamar.christina@arm.com>
19269 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
19270 Expose as @aarch64_pred_mov.
19271 * config/aarch64/aarch64.c (aarch64_classify_address):
19272 Use expand_insn which legitimizes operands.
19274 2019-02-13 Martin Liska <mliska@suse.cz>
19276 * builtins.h (expand_builtin_with_bounds): Remove declaration.
19277 * calls.c (struct arg_data): Remove special_slot, pointer_arg
19278 and pointer_offset fields.
19279 (initialize_argument_information): Remove usage of dead
19281 * cgraph.h (struct cgraph_thunk_info): Remove
19282 add_pointer_bounds_args.
19283 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
19285 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
19287 * config/i386/i386.c (ix86_function_arg_advance): Remove
19289 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
19290 (def_builtin): Remove usage of dead fields.
19291 (ix86_add_new_builtins): Likewise.
19292 * ipa-fnsummary.c (compute_fn_summary): Likewise.
19293 * ipa-icf.c (sem_function::equals_wpa): Likewise.
19294 (sem_function::init): Likewise.
19295 (sem_variable::merge): Likewise.
19296 * ipa-visibility.c (function_and_variable_visibility): Likewise.
19297 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
19298 * lto-cgraph.c (lto_output_node): Likewise.
19299 (lto_output_varpool_node): Likewise.
19300 (input_node): Likewise.
19301 (input_varpool_node): Likewise.
19302 * lto-streamer-out.c (lto_output): Likewise.
19303 * tree-inline.c (expand_call_inline): Remove usage of
19305 * tree-inline.h (struct copy_body_data): Likewise.
19306 * varpool.c (varpool_node::dump): Likewise.
19308 2019-02-13 Jakub Jelinek <jakub@redhat.com>
19310 PR middle-end/89303
19311 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
19312 into pt->vars_contains_escaped_heap instead of setting
19313 pt->vars_contains_escaped_heap to it.
19315 PR middle-end/89281
19316 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
19317 INTVAL (size), compare it to GET_MODE_MASK instead of
19318 1 << GET_MODE_BITSIZE.
19321 * config/i386/predicates.md (x86_64_immediate_operand): Allow
19322 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
19325 2019-02-13 Martin Liska <mliska@suse.cz>
19328 * cfgrtl.c (remove_barriers_from_footer): New function.
19329 (try_redirect_by_replacing_jump): Use it.
19330 (cfg_layout_redirect_edge_and_branch): Likewise.
19332 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
19334 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
19335 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
19336 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
19337 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
19338 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
19339 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
19341 * config/rs6000/rs6000.c (builtin_function_type)
19342 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
19343 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
19344 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
19345 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
19346 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
19348 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
19350 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
19351 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
19353 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
19356 * config/i386/i386.md (*movoi_internal_avx): Revert revision
19357 268678 and revision 268657.
19358 (*movti_internal): Likewise.
19360 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
19363 * config/s390/s390.c (s390_decompose_address): Update comment.
19364 (s390_check_qrst_address): Reject invalid address forms after
19367 2019-02-12 Martin Liska <mliska@suse.cz>
19370 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
19371 we need default values of funct_state for a function that
19374 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
19376 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
19377 the object to pick the size of stores on strict-alignment platforms.
19379 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
19380 (*movdi_insn_sp32): Likewise.
19381 (*movdi_insn_sp64): Likewise.
19383 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
19386 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
19387 types that needs constructiong.
19388 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
19390 2019-02-12 Richard Biener <rguenther@suse.de>
19392 PR tree-optimization/89253
19393 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
19394 duplicate the loop.
19396 2019-02-11 David Malcolm <dmalcolm@redhat.com>
19399 * input.c (selftest::test_line_offset_overflow): New selftest.
19400 (selftest::input_c_tests): Call it.
19402 2019-02-11 Martin Sebor <msebor@redhat.com>
19404 PR tree-optimization/88771
19405 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
19406 when -Wstringop-overflow is set.
19407 (builtin_memref::builtin_memref): Adjust excessive upper bound
19408 only when lower bound is not excessive.
19409 (maybe_diag_overlap): Detect and diagnose excessive bounds via
19410 -Wstringop-ovefflow.
19411 (maybe_diag_offset_bounds): Rename...
19412 (maybe_diag_access_bounds): ...to this.
19413 (check_bounds_or_overlap): Adjust for name change above.
19415 2019-02-11 Martin Sebor <msebor@redhat.com>
19418 * builtins.c (max_object_size): Move from here...
19419 * builtins.h (max_object_size): ...and here...
19420 * tree.c (max_object_size): ...to here...
19421 * tree.h (max_object_size): ...and here.
19423 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
19425 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
19426 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
19427 for correct semantics.
19429 2019-02-11 Alan Modra <amodra@gmail.com>
19431 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
19432 -mlongcall and -mpltseq.
19433 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
19434 (RS/6000 and PowerPC Options <-mpltseq>): Document.
19435 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
19436 * config/rs6000/sysv4.opt (mpltseq): New option.
19437 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
19438 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
19439 support is lacking. Don't allow -mpltseq with -mbss-plt.
19440 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
19441 -mpltseq given for ELFv1.
19442 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
19443 Only use UNSPEC_PLTSEQ for inline PLT calls.
19444 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
19445 use UNSPEC_PLTSEQ for inline PLT calls.
19446 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
19447 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
19448 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
19449 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
19450 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
19451 (pltseq_mtctr_<mode>): Likewise.
19453 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19455 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
19457 * configure: Regenerate.
19459 2019-02-11 Jakub Jelinek <jakub@redhat.com>
19462 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
19465 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
19467 * function.c (assign_parm_setup_block): Use the stored
19468 size, not the passed size, when allocating stack-space,
19469 also for a parameter with alignment larger than
19470 MAX_SUPPORTED_STACK_ALIGNMENT.
19472 2019-02-11 Martin Liska <mliska@suse.cz>
19475 * ipa-cp.c (build_toporder_info): Remove usage of a param.
19476 * ipa-inline.c (inline_small_functions): Likewise.
19477 * ipa-pure-const.c (propagate_pure_const): Likewise.
19478 (propagate_nothrow): Likewise.
19479 * ipa-reference.c (propagate): Likewise.
19480 * ipa-utils.c (struct searchc_env): Remove unused field.
19481 (searchc): Always search across AVAIL_INTERPOSABLE.
19482 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
19483 the only called IPA pure const can properly not propagate
19484 across interposable boundary.
19485 * ipa-utils.h (ipa_reduced_postorder): Remove param.
19487 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
19489 * config/nds32/nds32.md (call_internal, call_value_internal,
19490 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
19492 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
19494 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
19497 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
19499 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
19502 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
19504 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
19506 2019-02-10 Jakub Jelinek <jakub@redhat.com>
19508 PR tree-optimization/89268
19509 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
19510 if preds is non-NULL.
19512 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
19515 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
19518 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
19520 * config/nds32/nds32.md (trap): New pattern.
19522 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
19524 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
19527 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
19529 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
19532 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
19534 * ipa-visibility.c (localize_node): Also do not localize
19535 LDPR_PREVAILING_DEF_IRONLY_EXP.
19537 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
19540 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
19541 instead of type_with_linkage.
19543 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
19546 * params.def (uninlined-function-insns, uninlined-function-time,
19547 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
19548 bound so we don't get overflows.
19550 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
19552 * config/rs6000/rs6000-string.c (expand_compare_loop,
19553 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
19556 2019-02-09 Jakub Jelinek <jakub@redhat.com>
19558 PR middle-end/89246
19559 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19560 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
19561 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
19563 2019-02-09 Alan Modra <amodra@gmail.com>
19566 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
19567 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
19570 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
19572 PR middle-end/88560
19573 * lra-constraints.c (process_alt_operands): Don't increase reject
19574 for memory when offset memory is required.
19576 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
19578 * config/s390/vector.md: Implement vector copysign.
19580 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
19582 * expr.c (expand_constructor): Correct indentations.
19584 2019-02-08 Richard Biener <rguenther@suse.de>
19586 PR tree-optimization/89247
19587 * tree-if-conv.c: Include tree-cfgcleanup.h.
19588 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
19589 (tree_if_conversion): Pass through predicate vector.
19590 (pass_if_conversion::execute): Do CFG cleanup and SSA update
19591 inline, see if any if-converted loops we refrece in
19592 LOOP_VECTORIZED calls vanished and fixup.
19593 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
19595 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
19597 * config/s390/constraints.md (jdd): New constraint.
19599 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
19602 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
19603 upper 16 vector registers without TARGET_AVX512VL.
19604 (*movti_internal): Likewise.
19606 2019-02-08 Jakub Jelinek <jakub@redhat.com>
19608 PR rtl-optimization/89234
19609 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
19610 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
19611 (copy_reg_eh_region_note_backward): Likewise.
19613 2019-02-08 Richard Biener <rguenther@suse.de>
19615 PR middle-end/89223
19616 * tree-data-ref.c (initialize_matrix_A): Fail if constant
19617 doesn't fit in HWI.
19618 (analyze_subscript_affine_affine): Handle failure from
19619 initialize_matrix_A.
19621 2019-02-08 Jakub Jelinek <jakub@redhat.com>
19623 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
19626 2019-02-07 David Malcolm <dmalcolm@redhat.com>
19628 PR tree-optimization/86637
19629 PR tree-optimization/89235
19630 * tree-vect-loop.c (optimize_mask_stores): Add an
19631 auto_purge_vect_location sentinel to ensure that vect_location is
19633 * tree-vectorizer.c
19634 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
19635 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
19636 to ensure that vect_location is purged on exit.
19637 (pass_slp_vectorize::execute): Likewise, replacing the manual
19639 * tree-vectorizer.h (class auto_purge_vect_location): New class.
19641 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19643 * config/aarch64/iterators.md (max_opp): New code_attr.
19644 (USMAX): New code iterator.
19645 * config/aarch64/predicates.md (aarch64_smin): New predicate.
19646 (aarch64_smax): Likewise.
19647 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
19648 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
19651 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
19654 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
19655 for TARGET_AVX512VL.
19656 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
19658 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
19660 * config/s390/s390-builtin-types.def: Add new types.
19661 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
19662 (s390_vec_xlw4): Make the memory operand into a const pointer.
19663 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
19665 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
19666 a new vector type with the alignment of the scalar memory operand.
19668 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
19669 Jakub Jelinek <jakub@redhat.com>
19672 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
19673 arm_count_ldrdstrd_insns): New declarations.
19674 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
19676 (valid_operands_ldrd_strd): New function.
19677 (arm_count_ldrdstrd_insns): New function.
19678 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
19679 sets instead of single DImode set and define new insns to match this.
19681 2019-02-07 Tamar Christina <tamar.christina@arm.com>
19683 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
19684 Make it a C initializer.
19686 2019-02-07 Tamar Christina <tamar.christina@arm.com>
19689 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
19691 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19693 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
19694 Use neon_dot<q> for type.
19695 (neon_<sup>dot_lane<vsi2qi>): Likewise.
19697 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19699 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
19700 Use neon_dot<q> for type.
19701 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
19702 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
19704 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
19706 PR rtl-optimization/89225
19707 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
19710 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
19712 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
19713 after restoring registers saved to allocate the frame on Windows.
19715 2019-02-06 Richard Biener <rguenther@suse.de>
19717 PR tree-optimization/89182
19718 * graphite.h (cached_scalar_evolution_in_region): Declare.
19719 * graphite.c (struct seir_cache_key): New.
19720 (struct sese_scev_hash): Likewise.
19721 (seir_cache): New global.
19722 (cached_scalar_evolution_in_region): New function.
19723 (graphite_transform_loops): Allocate and release seir_cache.
19724 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
19725 cached_scalar_evolution_in_region.
19726 * graphite-scop-detection.c (scop_detection::can_represent_loop):
19728 (scop_detection::graphite_can_represent_expr: Use
19729 cached_scalar_evolution_in_region.
19730 (scop_detection::stmt_simple_for_scop_p): Likewise.
19731 (find_params_in_bb): Likewise.
19732 (gather_bbs::before_dom_children): Likewise.
19733 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
19734 (add_loop_constraints): Likewise.
19736 2019-02-06 Jakub Jelinek <jakub@redhat.com>
19738 PR middle-end/89210
19739 * fold-const-call.c (fold_const_vec_convert): Pass true as last
19740 operand to new_unary_operation only if both element types are integral
19741 and it isn't a widening conversion. Return NULL_TREE if
19742 new_unary_operation failed.
19744 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
19747 * config/s390/s390.md: Remove load and test FP splitter.
19749 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
19752 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
19753 expand_compare_loop, expand_block_compare_gpr,
19754 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
19755 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
19756 #include "profile-count.h" and "predict.h" for types and functions
19757 needed to work with REG_BR_PROB notes.
19759 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
19762 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
19763 for the long branch case.
19765 2019-02-05 Jakub Jelinek <jakub@redhat.com>
19768 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
19769 can throw, non-call exceptions are enabled and we can't delete
19770 dead exceptions or alter cfg. Set must_clean if
19771 delete_insn_and_edges returns true, don't set it blindly for calls.
19772 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
19774 PR rtl-optimization/89195
19775 * combine.c (make_extraction): For MEMs, don't extract bytes outside
19776 of the original MEM.
19778 2019-02-05 Martin Liska <mliska@suse.cz>
19780 PR gcov-profile/89000
19781 * gcov.c (function_summary): Remove argument.
19782 (file_summary): New function.
19783 (print_usage): Replace tabs with spaces.
19784 (generate_results): Use new function file_summary.
19786 2019-02-05 Jakub Jelinek <jakub@redhat.com>
19789 * optabs.c (prepare_cmp_insn): Pass x and y to
19790 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
19792 2019-02-05 Richard Biener <rguenther@suse.de>
19794 PR middle-end/89150
19795 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
19796 (struct bitmap_element): Drop chain_prev so we properly recurse on
19797 the prev member, supporting tree views.
19798 (struct bitmap_head): GTY skip the obstack member.
19800 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
19803 * doc/extend.texi (Vector Extensions): Add an example of using vector
19804 types together with x86 intrinsics.
19806 2019-02-04 Alan Modra <amodra@gmail.com>
19808 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
19809 str[] size to 160, and comment.
19811 2019-02-04 Alan Modra <amodra@gmail.com>
19813 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
19814 (rs6000_pltseq_template): Guard output of TLS markers with
19815 TARGET_TLS_MARKERS.
19816 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
19817 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
19818 to use inline PLT sequences.
19819 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
19820 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
19821 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
19823 2019-02-04 Martin Liska <mliska@suse.cz>
19826 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
19827 out when ipa_fn_summaries does not contain entry for callee.
19829 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
19831 * config/sparc/sparc.h: Remove superfluous blank lines.
19832 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
19833 (got_register_rtx): ...this.
19834 (sparc_got): Adjust to above renaming.
19835 (sparc_tls_got): Likewise.
19836 (sparc_delegitimize_address): Likewise.
19837 (sparc_output_mi_thunk): Likewise.
19838 (sparc_init_pic_reg): Likewise.
19839 (save_local_or_in_reg_p): Fix test on the GOT register.
19840 (USE_HIDDEN_LINKONCE): Move around.
19841 (get_pc_thunk_name): Likewise.
19842 (gen_load_pcrel_sym): Likewise.
19843 (load_got_register): Likewise.
19845 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
19847 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
19848 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
19850 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
19852 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
19853 into consideration.
19855 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
19857 * config.gcc (with_nds32_lib, glibc):
19858 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
19859 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
19860 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
19862 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
19865 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
19866 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
19867 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
19868 (*rcpsf2_sse): Ditto.
19869 (*rsqrtsf2_sse): Ditto.
19870 (sse4_1_round<mode<2): Ditto.
19872 2019-02-03 Richard Biener <rguenther@suse.de>
19875 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
19878 2019-02-02 Jakub Jelinek <jakub@redhat.com>
19880 PR middle-end/87887
19881 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19882 Punt with warning on aggregate return or argument types. Ignore
19883 type/mode checking for uniform arguments.
19885 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
19887 * combine.c (try_combine): Do not print "Can't combine" messages unless
19888 printing failed combination attempts.
19890 2019-02-01 Martin Jambor <mjambor@suse.cz>
19893 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
19894 segment and global segment variables before making them static.
19896 2019-02-01 Martin Jambor <mjambor@suse.cz>
19898 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
19899 missed optimization dump with dump_enabled_p.
19901 2019-02-01 Richard Biener <rguenther@suse.de>
19903 PR middle-end/88597
19904 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
19905 the instantiate cache.
19906 (instantiate_scev_binary): Elide second operand procesing
19907 if equal to the first.
19908 * tree-chrec.c (chrec_contains_symbols): Add visited set.
19909 (chrec_contains_undetermined): Likewise.
19910 (tree_contains_chrecs): Likewise.
19912 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
19914 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
19916 2019-02-01 Jakub Jelinek <jakub@redhat.com>
19918 PR tree-optimization/89143
19919 * wide-int-range.h (wide_int_range_absu): Declare.
19920 * wide-int-range.cc (wide_int_range_absu): New function.
19921 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
19923 PR tree-optimization/88107
19924 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
19925 instead of assertion that eh_region_outermost is non-NULL, if it
19926 is NULL, set *ALL to true and return NULL.
19927 (move_sese_region_to_fn): Adjust caller, if all is set, call
19928 duplicate_eh_regions with NULL region.
19930 2019-02-01 Richard Biener <rguenth@suse.de>
19932 PR rtl-optimization/88593
19933 * mode-switching.c (optimize_mode_switching): Free dominators before
19934 calling cleanup_cfg.
19936 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
19938 PR tree-optimization/88932
19939 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
19941 2019-01-31 Jakub Jelinek <jakub@redhat.com>
19943 PR middle-end/89137
19944 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
19945 bogus clang warning.
19947 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
19950 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
19951 alternative to avoid partial SSE register stall for TARGET_AVX.
19952 (truncdfsf2): Ditto.
19953 (sse4_1_round<mode>2): Ditto.
19955 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
19957 PR tree-optimization/89008
19958 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
19959 process anything of the form X * 0.
19961 2019-01-31 Richard Biener <rguenther@suse.de>
19963 PR tree-optimization/89135
19964 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
19965 with abnormal preds.
19967 2019-01-31 Jakub Jelinek <jakub@redhat.com>
19970 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
19971 always_inline callees into no_sanitize_address callers.
19973 2019-01-31 Richard Biener <rguenther@suse.de>
19975 PR rtl-optimization/89115
19976 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
19978 2019-01-30 Martin Sebor <msebor@redhat.com>
19981 * doc/extend.texi (cast to a union): Correct and expand.
19983 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
19985 PR rtl-optimization/87246
19986 * lra-constraints.c (simplify_operand_subreg): Reload memory
19987 in subreg if the address became invalid.
19989 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
19992 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
19993 Disable for little-endian.
19995 2019-01-30 Richard Biener <rguenther@suse.de>
19997 PR rtl-optimization/89115
19998 * opts.c (default_options_optimization): Reduce
19999 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
20000 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
20003 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
20005 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
20006 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
20007 type of vector element when vec_extract is implemented by direct
20010 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
20012 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
20014 2019-01-30 Richard Biener <rguenther@suse.de>
20016 PR tree-optimization/89111
20017 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
20018 canonicalization to appropriately sized access types.
20020 2019-01-30 Jakub Jelinek <jakub@redhat.com>
20023 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
20024 for arguments to functions that are TU-local and shouldn't be
20025 referenced by assembly.
20027 2019-01-30 Ulrich Drepper <drepper@redhat.com>
20029 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
20032 2019-01-29 Martin Sebor <msebor@redhat.com>
20035 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
20037 2019-01-29 Jakub Jelinek <jakub@redhat.com>
20041 * omp-simd-clone.c (simd_clone_clauses_extract)
20042 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
20043 OMP_CLAUSE_ALIGNED_ALIGNMENT.
20045 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
20047 * config.gcc: Force .init_array for ARC.
20049 2019-01-29 Richard Biener <rguenther@suse.de>
20052 * dwarf2out.c (collect_skeleton_dies): New helper.
20053 (copy_decls_for_unworthy_types): Call it.
20054 (build_abbrev_table): Assert we do not try to replace
20055 DW_AT_signature refs with local refs.
20057 2019-01-28 Jakub Jelinek <jakub@redhat.com>
20059 PR middle-end/89002
20060 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
20061 for lastprivate/linear IV, push gimplify context around gimplify_assign
20062 and, if it needed any temporaries, pop it into a gimple bind around the
20065 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
20067 * common.opt (-Wattribute-alias): Remove "no-" from name.
20068 Make -Wattribute-alias command line option and
20069 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
20071 2019-01-28 Jakub Jelinek <jakub@redhat.com>
20074 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
20075 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
20077 (bmi2): Add missing @opindex.
20078 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
20079 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
20080 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
20081 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
20082 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
20083 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
20084 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
20085 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
20086 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
20087 xsavec, xsaveopt and xsaves options.
20089 2019-01-28 Richard Biener <rguenther@suse.de>
20092 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
20095 2019-01-28 Richard Biener <rguenther@suse.de>
20097 PR tree-optimization/88739
20098 * tree-cfg.c (verify_types_in_gimple_reference): Verify
20099 BIT_FIELD_REFs only are applied to mode-precision operands
20100 when they are integral.
20101 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
20102 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
20103 BIT_FIELD_REFs of non-mode-precision integral operands.
20105 2019-01-27 Jakub Jelinek <jakub@redhat.com>
20108 * config/i386/sse.md
20109 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
20110 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
20111 first constants in pairs are multiples of 2. Formatting fixes.
20112 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
20113 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
20114 first constants in each quadruple are multiples of 4. Formatting fixes.
20116 2019-01-26 Martin Jambor <mjambor@suse.cz>
20119 * tree-inline.c: Include tree-cfgcleanup.h.
20120 (delete_unreachable_blocks_update_callgraph): Move...
20121 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
20122 ...here, make externally visible, make second argument bool, adjust
20124 * tree-cfgcleanup.c: Include cgraph.h.
20125 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
20127 * ipa-prop.c: Include tree-cfgcleanup.h.
20128 (ipcp_transform_function): Call
20129 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
20131 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
20133 PR rtl-optimization/88846
20134 * ira.c (process_set_for_memref_referenced_p): New.
20135 (memref_referenced_p): Add new param. Use
20136 process_set_for_memref_referenced_p. Add new switch cases.
20137 (memref_used_between_p): Pass new arg to memref_referenced_p.
20139 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
20142 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
20143 argument ABI_BREAK. Set to true if the calculated alignment has
20144 changed in gcc-9. Check bit-fields for their base type alignment.
20145 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
20146 (aarch64_function_arg_boundary): Likewise.
20147 (aarch64_gimplify_va_arg_expr): Likewise.
20149 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
20151 PR middle-end/89037
20152 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
20153 instead of accessing TREE_INT_CST_ELT directly.
20155 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
20157 * doc/sourcebuild.texi (Environment attributes): Add fenv and
20158 fenv_exceptions description.
20160 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
20162 PR rtl-optimization/87763
20163 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
20164 Allow SUBREG when matching CC_NZmode compare.
20166 2019-01-25 Richard Biener <rguenther@suse.de>
20168 PR tree-optimization/89049
20169 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
20170 Look at the pattern stmt to determine if the stmt is vectorized.
20172 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
20174 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
20175 (pred_mov<mode>): Handle all-register forms using both a new
20176 alternative and a split.
20178 2019-01-25 Richard Biener <rguenther@suse.de>
20180 PR tree-optimization/86865
20181 * graphite-scop-detection.c (scop_detection::can_represent_loop):
20182 Reject non-do-while loops.
20184 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
20186 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
20187 * config/rs6000/constraints.md (Q constraint): Use REG_P.
20188 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
20189 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
20190 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
20191 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
20192 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
20193 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
20194 vlogical_operand, gpc_reg_operand, int_reg_operand,
20195 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
20196 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
20197 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
20198 (save_world_operation, restore_world_operation, lmw_operation,
20199 stmw_operation): Use MEM_P and REG_P.
20200 (tie_operand): Use MEM_P.
20201 (vrsave_operation, crsave_operation): Use REG_P.
20202 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
20203 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
20204 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
20205 (call_operand): Use HARD_REGISTER_P.
20206 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
20208 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
20209 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
20210 quad_aligned_load_p, replace_swapped_aligned_store,
20211 recombine_lvx_pattern, replace_swapped_aligned_load,
20212 recombine_stvx_pattern): Use MEM_P.
20213 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
20214 Use MEM_P and SYMBOL_REF_P.
20215 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
20216 (insn_is_swappable_p): Use REG_P and MEM_P.
20217 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
20218 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
20220 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
20221 Use CONST_DOUBLE_P.
20222 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
20224 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
20225 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
20226 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
20227 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
20229 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
20230 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
20231 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
20232 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
20233 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
20234 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
20235 rs6000_split_logical_di): Use CONST_INT_P.
20236 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
20237 REG_P and SYMBOL_REF_P.
20238 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
20239 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
20240 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
20241 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
20242 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
20243 (small_data_operand, print_operand_address): Use CONST_INT_P and
20245 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
20246 (rs6000_init_hard_regno_mode_ok, direct_move_p):
20247 Use HARD_REGISTER_NUM_P.
20248 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
20249 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
20250 SUBREG_P and SYMBOL_REF_P.
20251 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
20252 and HARD_REGISTER_NUM_P.
20253 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
20255 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
20256 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
20258 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
20259 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
20260 find_addr_reg): Use REG_P.
20261 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
20262 (rs6000_emit_le_vsx_move): Use SUBREG_P.
20263 (offsettable_ok_by_alignment, constant_pool_expr_p,
20264 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
20265 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
20266 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
20267 rs6000_assemble_integer, create_TOC_reference,
20268 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
20269 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
20270 (rs6000_split_vec_extract_var): Use reg_or_subregno.
20271 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
20272 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
20273 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
20274 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
20275 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
20276 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
20277 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
20278 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
20279 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
20280 and cbranch<mode>4): Use CONST_INT_P.
20281 (multiple define_splits): Use REG_P and SUBREG_P.
20282 (define_expands call, call_value): Use MEM_P.
20283 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
20284 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
20285 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
20286 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
20287 and HARD_REGISTER_NUM_P.
20288 (multiple define_splits): Use HARD_REGISTER_NUM_P.
20290 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
20292 PR rtl-optimization/88948
20293 * rtl.h (prepare_copy_insn): New prototype.
20294 * gcse.c (prepare_copy_insn): New function, split out from
20295 process_insert_insn.
20296 (process_insert_insn): Use prepare_copy_insn.
20297 * store-motion.c (replace_store_insn): Use prepare_copy_insn
20298 instead of gen_move_insn.
20300 2019-01-24 Jakub Jelinek <jakub@redhat.com>
20303 * config/i386/i386.c (ix86_pic_register_p): Return true for
20304 UNSPEC_SET_GOT too.
20306 PR tree-optimization/88964
20307 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
20308 punt if HONOR_SNANS (chrec).
20310 PR middle-end/89015
20311 * tree-nested.c (convert_nonlocal_reference_stmt,
20312 convert_local_reference_stmt, convert_tramp_reference_stmt,
20313 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
20314 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
20315 or GIMPLE_OMP_TASK.
20317 PR tree-optimization/89027
20318 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
20319 for "omp simd array" variables.
20321 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
20324 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
20325 force the alignment of m_val.
20327 2019-01-24 Richard Biener <rguenther@suse.de>
20330 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
20331 When in "legacy" debug mode make sure to reset self-origins.
20333 2019-01-24 Martin Liska <mliska@suse.cz>
20335 PR gcov-profile/88994
20336 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
20337 result will be always smaller or equal to the original.
20338 * gcov.c (mangle_name): Fix else branch where we should
20339 also copy to PTR and shift the pointer.
20341 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
20343 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
20344 * vr-values.c (find_case_label_ranges): Fix a comment typo.
20346 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
20348 * common/config/i386/i386-common.c
20349 (OPTION_MASK_ISA_ENQCMD_SET,
20350 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
20351 (ix86_handle_option): Handle -menqcmd.
20352 * config.gcc (enqcmdintrin.h): New header file.
20353 * config/i386/cpuid.h (bit_ENQCMD): New bit.
20354 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20356 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
20358 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
20359 __builtin_ia32_enqcmds): New builtins.
20360 * config/i386/i386-c.c (__ENQCMD__): New macro.
20361 * config/i386/i386-option.c (ix86_target_string): Add
20363 (ix86_valid_target_attribute_inner_p): Likewise.
20364 * config/i386/i386-expand.c
20365 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
20366 IX86_BUILTIN_ENQCMDS.
20367 * config/i386/i386.h (TARGET_ENQCMD): New.
20368 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
20369 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
20370 (movdir64b_<mode>): Parameterize to enable share expansion code
20371 with ENQCMD in function ix86_expand_builtin.
20372 * config/i386/i386.opt: Add -menqcmd.
20373 * config/i386/immintrin.h: Include enqcmdintrin.h.
20374 * config/i386/enqcmdintrin.h: New intrinsic file.
20375 * doc/invoke.texi: Add -menqcmd.
20377 2019-01-23 Bin Cheng <bin.cheng@arm.com>
20378 Steve Ellcey <sellcey@marvell.com>
20381 * recog.c (address_operand): Return false on wrong mode for address.
20382 (constrain_operands): Check for mode with 'p' constraint.
20384 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
20387 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
20388 Disparage MMX alternative.
20389 (sse2_cvtpd2pi): Ditto.
20390 (sse2_cvttpd2pi): Ditto.
20392 2019-01-23 David Malcolm <dmalcolm@redhat.com>
20395 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
20396 use-after-free of the result of
20397 aarch64_get_extension_string_for_isa_flags.
20399 2019-01-23 Jakub Jelinek <jakub@redhat.com>
20402 * doc/extend.texi: Document break and continue behavior in
20403 statement expressions.
20405 2019-01-23 Richard Biener <rguenther@suse.de>
20407 PR tree-optimization/89008
20408 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
20409 not leave another stray operand.
20411 2019-01-23 Jakub Jelinek <jakub@redhat.com>
20413 * BASE-VER: Bump to 9.0.1.
20415 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
20417 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
20418 thunk that returns by reference, use the type of the return object
20419 of the thunk instead of that of the alias to build the dereference.
20421 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
20423 * config/arc/atomic.md: Add operand to DMB instruction.
20425 2019-01-23 Jakub Jelinek <jakub@redhat.com>
20427 PR tree-optimization/88964
20428 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
20429 build_zero_cst instead of build_int_cst. Return false for loop
20430 invariants which honor signed zeros.
20432 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
20434 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
20436 2019-01-22 Jakub Jelinek <jakub@redhat.com>
20439 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
20440 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
20441 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
20443 PR middle-end/88968
20444 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
20445 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
20448 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
20449 Disable for little endian.
20451 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
20454 * config/arm/arm.c (arm_needs_double_word_align): Check
20455 DECL_BIT_FIELD_TYPE.
20457 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
20458 H.J. Lu <hongjiu.lu@intel.com>
20461 * config/i386/i386-builtin.def: Add mask2 to all builtin
20462 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
20464 * config/i386/i386.c (BDESC): Add mask2 to the definition.
20465 (BDESC_FIRST): Likewise.
20466 (define_builtin): Add an argument for mask2. Updated to handle
20467 both ix86_isa_flags and ix86_isa_flags2.
20468 (define_builtin_const): Likewise.
20469 (define_builtin_pure): Likewise.
20470 (define_builtin2): Deleted.
20471 (define_builtin_const2): Likewise.
20472 (builtin_description): Add a member, mask2.
20473 (bdesc_*): Add mask2 to builtin initializations.
20474 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
20475 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
20477 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
20479 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
20482 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
20485 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
20488 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
20489 alignment is dominated by a bitfield with 64-bit aligned base type.
20490 (arm_function_arg): Emit a warning if the alignment has changed since
20491 earlier GCC releases.
20492 (arm_function_arg_boundary): Likewise.
20493 (arm_setup_incoming_varargs): Likewise.
20495 2019-01-22 Richard Biener <rguenther@suse.de>
20497 PR tree-optimization/88862
20498 * graphite-scop-detection.c
20499 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
20501 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
20503 * doc/extend.tex (AMD GCN Function Attributes): New section.
20504 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
20505 * doc/invoke.texi (AMD GCN Options): New section.
20506 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
20508 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
20510 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
20511 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
20513 2019-01-22 Jakub Jelinek <jakub@redhat.com>
20515 PR tree-optimization/88044
20516 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
20517 is false in the first iteration, but !every_iteration, return false
20518 instead of true with niter->niter zero.
20520 PR rtl-optimization/88904
20521 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
20522 any nonequal registers before processing BB_END (b).
20525 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
20527 (expand_binop_directly, expand_doubleword_clz,
20528 expand_doubleword_popcount, expand_ctz, expand_ffs,
20529 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
20531 PR rtl-optimization/49429
20533 PR rtl-optimization/86334
20535 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
20536 addressable from here...
20537 (emit_block_op_via_libcall): ... to here.
20539 2019-01-22 Richard Biener <rguenther@suse.de>
20541 * tree-vect-loop.c (vect_analyze_loop_operations): Use
20542 auto_vec for cost vector to fix memleak.
20543 (vectorize_fold_left_reduction): Properly gather SLP defs.
20544 (vectorizable_comparison): Do not swap operands to properly
20547 2019-01-22 Alan Modra <amodra@gmail.com>
20550 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
20551 stays a reg. Allow a const_int.
20552 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
20553 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
20554 (IS_NOMARK_TLSGETADDR): Define.
20555 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
20556 (rs6000_output_tlsargs): New function.
20557 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
20558 __tls_get_addr call takes an arg.
20559 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
20560 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
20562 (call_value_nonlocal_sysv): ..or here, delete split.
20563 (tls_gdld_nomark): Delete.
20564 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
20565 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
20566 (call_value_nonlocal_sysv): Likewise.
20567 (call_value_nonlocal_sysv_secure): Likewise.
20568 (call_value_nonlocal_aix): Likewise.
20569 (call_value_indirect_aix): Likewise.
20570 (call_value_indirect_elfv2): Likewise.
20571 (call_value_local32, call_value_local64): Disable for no-mark tls.
20572 (call_value_local_aix): Likewise.
20574 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
20577 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
20578 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
20580 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
20582 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
20583 string contents as hash_map keys.
20585 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
20588 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
20589 for rvalue context. Handle rvalues correctly. Use min_align_of_type
20590 instead of TYPE_ALIGN.
20591 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
20592 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
20593 pointer from TYPE_STUB_DECL.
20595 2019-01-21 Richard Biener <rguenther@suse.de>
20597 PR tree-optimization/88934
20598 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
20599 at the possibly non-constant operand.
20600 (vect_get_constant_vectors): Adjust.
20602 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
20605 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
20606 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
20607 instead of _X86INTRIN_H_INCLUDED.
20608 * onfig/i386/clwbintrin.h: Likewise.
20609 * config/i386/pkuintrin.h: Likewise.
20610 * config/i386/prfchwintrin.h: Likewise.
20611 * config/i386/rdseedintrin.h: Likewise.
20612 * config/i386/wbnoinvdintrin.h: Likewise.
20613 * config/i386/xsavecintrin.h: Likewise.
20614 * config/i386/xsavesintrin.h: Likewise.
20615 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
20616 * config/i386/xsaveintrin.h: Likewise.
20617 * config/i386/xsaveoptintrin.h: Likewise.
20618 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
20619 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
20620 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
20621 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
20622 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
20623 * config/i386/immintrin.h: Here.
20625 2019-01-20 Martin Jambor <mjambor@suse.cz>
20628 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
20629 with aa_walk_budget.
20630 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
20631 aa_walk_budget_p parameter.
20632 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
20633 walk. Updated all callers.
20634 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
20635 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
20637 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
20638 parameter info. Extract info from fbi. Pass fbi to recursive calls
20639 and to unmodified_parm.
20640 (phi_result_unknown_predicate): New parameter fbi, removed parameter
20641 info, updated call to will_be_nonconstant_expr_predicate.
20642 (param_change_prob): New parameter fbi, limit AA walking.
20643 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
20644 calls to various above functions.
20645 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
20646 parameter. Use it to limit AA walking.
20647 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
20648 fbi, limit AA walk.
20649 (detect_type_change): New parameter fbi, pass it on to
20650 detect_type_change_from_memory_writes.
20651 (detect_type_change_ssa): Likewise.
20652 (aa_overwalked): Removed.
20653 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
20654 accordingly, adjust to the neew AA limiting scheme.
20655 (parm_ref_data_preserved_p): Likewise.
20656 (ipa_compute_jump_functions_for_edge): Adjust call to
20658 (ipa_analyze_call_uses): Likewise.
20659 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
20660 (ipa_analyze_node): Initialize aa_walk_budget.
20661 (ipcp_transform_function): Likewise.
20662 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
20663 to get_dynamic_type.
20665 2019-01-19 Jakub Jelinek <jakub@redhat.com>
20667 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
20668 outside of #if CHECKING_P code.
20670 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
20672 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
20673 New function, split out from...
20674 (loop_versioning::analyze_stride): ...here.
20675 (loop_versioning::find_per_loop_multiplication): Use gassign.
20676 (loop_versioning::analyze_term_using_scevs): Return a success code.
20677 (loop_versioning::analyze_arbitrary_term): New function.
20678 (loop_versioning::analyze_address_fragment): Use
20679 analyze_arbitrary_term if all else fails.
20681 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
20684 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
20687 2019-01-18 Richard Biener <rguenther@suse.de>
20689 PR tree-optimization/88903
20690 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
20691 scalar stmts a SLP shift amount is composed of when detecting
20694 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
20697 * config/arm/arm-cpus.in (mp): New feature.
20698 (sec): New feature.
20699 (fgroup ARMv7ve): Add mp and sec features.
20700 (arch armv7-a): Add options to allow mp and sec extensions.
20701 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
20702 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
20703 extenstions to the base architecture.
20704 (cpu cortex-a8): Add sec extension to the base architecture.
20705 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
20706 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
20707 variants down to the base v7-a varaint.
20708 * config/arm/t-multilib (v7_a_arch_variants): New variable.
20709 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
20710 of permitted extensions for -march=armv7-a and for
20711 -mcpu=generic-armv7-a.
20713 2019-01-18 Martin Liska <mliska@suse.cz>
20715 * params.def: Fix comment.
20716 * tree-profile.c (gimple_init_gcov_profiler): Bump function
20718 (gimple_gen_ic_func_profiler): Likewise.
20720 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20722 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
20723 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
20724 and put in error checks for stack protector guard options.
20725 (aarch64_stack_protect_guard): New.
20726 (TARGET_STACK_PROTECT_GUARD): Define.
20727 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
20728 (reg_stack_protect_address<mode>): New.
20729 (stack_protect_set): Adjust for SSP_GLOBAL.
20730 (stack_protect_test): Likewise.
20731 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
20732 (-mstack-protector-guard): Likewise.
20733 (-mstack-protector-guard-offset): Likewise.
20735 2019-01-18 Jakub Jelinek <jakub@redhat.com>
20737 PR tree-optimization/86214
20738 * tree-inline.h (struct copy_body_data): Add
20739 add_clobbers_to_eh_landing_pads member.
20740 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
20741 (copy_edges_for_bb): Call it if EH edge destination is <
20742 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
20743 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
20744 if flag_stack_reuse != SR_NONE and clear it afterwards.
20746 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
20749 * doc/install.texi (with-multilib-list): Document for aarch64.
20751 2019-01-18 Jakub Jelinek <jakub@redhat.com>
20754 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
20755 (("..."))) with ("...").
20757 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
20759 * doc/extend.texi (Built-in Functions for Memory Model Aware
20760 Atomic Operations): Document atomic fetch and nand.
20762 2019-01-18 Martin Liska <mliska@suse.cz>
20763 Richard Biener <rguenther@suse.de>
20765 PR middle-end/88587
20766 * cgraph.h (create_version_clone_with_body): Add new argument
20768 * cgraphclones.c (cgraph_node::create_version_clone): Add
20769 DECL_ATTRIBUTES to a newly created decl. And call
20770 valid_attribute_p so that proper cl_target_optimization_node
20771 is set for the newly created declaration.
20772 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
20774 (expand_target_clones): Do not call valid_attribute_p, it must
20776 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
20779 2019-01-17 Jakub Jelinek <jakub@redhat.com>
20782 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
20783 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
20784 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
20786 2019-01-17 Martin Sebor <msebor@redhat.com>
20788 PR middle-end/88273
20789 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
20790 Handle anti-ranges the same as no range at all.
20792 2018-01-17 Steve Ellcey <sellcey@cavium.com>
20794 * config/aarch64/aarch64.c (cgraph.h): New include.
20795 (intl.h): New include.
20796 (supported_simd_type): New function.
20797 (currently_supported_simd_type): Ditto.
20798 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
20799 (aarch64_simd_clone_adjust): Ditto.
20800 (aarch64_simd_clone_usable): Ditto.
20801 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
20802 (TARGET_SIMD_CLONE_ADJUST): Ditto.
20803 (TARGET_SIMD_CLONE_USABLE): Ditto.
20804 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
20805 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
20808 2019-01-17 Martin Sebor <msebor@redhat.com>
20810 PR tree-optimization/88800
20811 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
20812 NO_WARNING bit here. Avoid folding out-of-bounds calls.
20813 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
20814 redundant argument. Add new argument and issue diagnostics under
20815 its control. Detect out-of-bounds access even with warnings
20817 (check_bounds_or_overlap): Change return type. Add argument.
20818 (wrestrict_dom_walker::check_call): Adjust.
20819 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
20820 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
20821 check_bounds_or_overlap's return value.
20822 (handle_builtin_stxncpy): Same.
20823 (handle_builtin_strcat): Same.
20825 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20826 Kwok Cheung Yeung <kcy@codesourcery.com>
20827 Julian Brown <julian@codesourcery.com>
20828 Tom de Vries <tom@codesourcery.com>
20830 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
20832 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20834 * doc/sourcebuild.texi: Document dg-require-effective-target
20835 llvm_binutils and offload_gcn.
20837 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20838 Kwok Cheung Yeung <kcy@codesourcery.com>
20839 Julian Brown <julian@codesourcery.com>
20840 Tom de Vries <tom@codesourcery.com>
20842 * doc/sourcebuild.texi: Document dg-required-effective-target
20845 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20846 Kwok Cheung Yeung <kcy@codesourcery.com>
20847 Julian Brown <julian@codesourcery.com>
20848 Tom de Vries <tom@codesourcery.com>
20849 Jan Hubicka <hubicka@ucw.cz>
20850 Martin Jambor <mjambor@suse.cz>
20852 * config.gcc: Add amdgcn*-*-amdhsa configuration.
20853 * configure.ac: Check for dlopen.
20854 * configure: Regenerate.
20856 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20857 Kwok Cheung Yeung <kcy@codesourcery.com>
20858 Julian Brown <julian@codesourcery.com>
20859 Tom de Vries <tom@codesourcery.com>
20860 Jan Hubicka <hubicka@ucw.cz>
20861 Martin Jambor <mjambor@suse.cz>
20863 * common/config/gcn/gcn-common.c: New file.
20864 * config/gcn/driver-gcn.c: New file.
20865 * config/gcn/gcn-builtins.def: New file.
20866 * config/gcn/gcn-hsa.h: New file.
20867 * config/gcn/gcn-modes.def: New file.
20868 * config/gcn/gcn-opts.h: New file.
20869 * config/gcn/gcn-passes.def: New file.
20870 * config/gcn/gcn-protos.h: New file.
20871 * config/gcn/gcn-run.c: New file.
20872 * config/gcn/gcn-tree.c: New file.
20873 * config/gcn/gcn.c: New file.
20874 * config/gcn/gcn.h: New file.
20875 * config/gcn/gcn.opt: New file.
20876 * config/gcn/t-gcn-hsa: New file.
20878 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20879 Kwok Cheung Yeung <kcy@codesourcery.com>
20880 Julian Brown <julian@codesourcery.com>
20881 Tom de Vries <tom@codesourcery.com>
20882 Jan Hubicka <hubicka@ucw.cz>
20883 Martin Jambor <mjambor@suse.cz>
20885 * config/gcn/constraints.md: New file.
20886 * config/gcn/gcn-valu.md: New file.
20887 * config/gcn/gcn.md: New file.
20888 * config/gcn/predicates.md: New file.
20890 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
20892 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
20893 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
20894 (stmt_uses_0_or_null_in_undefined_way): Likewise.
20895 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
20897 2019-01-17 Tamar Christina <tamar.christina@arm.com>
20900 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
20901 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
20902 it and document registers.
20904 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20906 * config/aarch64/aarch64.c (ares_tunings): Define.
20907 * config/aarch64/aarch64-cores.def (ares): Use the above.
20909 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
20913 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
20915 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
20916 (_mm512_fixupimm_round_pd): Update parameters and builtin.
20917 (_mm512_maskz_fixupimm_round_pd): Ditto.
20918 (_mm512_fixupimm_round_ps): Ditto.
20919 (_mm512_maskz_fixupimm_round_ps): Ditto.
20920 (_mm_fixupimm_round_sd): Ditto.
20921 (_mm_maskz_fixupimm_round_sd): Ditto.
20922 (_mm_fixupimm_round_ss): Ditto.
20923 (_mm_maskz_fixupimm_round_ss): Ditto.
20924 (_mm512_fixupimm_pd): Ditto.
20925 (_mm512_maskz_fixupimm_pd): Ditto.
20926 (_mm512_fixupimm_ps): Ditto.
20927 (_mm512_maskz_fixupimm_ps): Ditto.
20928 (_mm_fixupimm_sd): Ditto.
20929 (_mm_maskz_fixupimm_sd): Ditto.
20930 (_mm_fixupimm_ss): Ditto.
20931 (_mm_maskz_fixupimm_ss): Ditto.
20932 (_mm512_mask_fixupimm_round_pd): Update builtin.
20933 (_mm512_mask_fixupimm_round_ps): Ditto.
20934 (_mm_mask_fixupimm_round_sd): Ditto.
20935 (_mm_mask_fixupimm_round_ss): Ditto.
20936 (_mm512_mask_fixupimm_pd): Ditto.
20937 (_mm512_mask_fixupimm_ps): Ditto.
20938 (_mm_mask_fixupimm_sd): Ditto.
20939 (_mm_mask_fixupimm_ss): Ditto.
20940 * config/i386/avx512vlintrin.h:
20941 (_mm256_fixupimm_pd): Update parameters and builtin.
20942 (_mm256_maskz_fixupimm_pd): Ditto.
20943 (_mm256_fixupimm_ps): Ditto.
20944 (_mm256_maskz_fixupimm_ps): Ditto.
20945 (_mm_fixupimm_pd): Ditto.
20946 (_mm_maskz_fixupimm_pd): Ditto.
20947 (_mm_fixupimm_ps): Ditto.
20948 (_mm_maskz_fixupimm_ps): Ditto.
20949 (_mm256_mask_fixupimm_pd): Update builtin.
20950 (_mm256_mask_fixupimm_ps): Ditto.
20951 (_mm_mask_fixupimm_pd): Ditto.
20952 (_mm_mask_fixupimm_ps): Ditto.
20953 * config/i386/i386-builtin-types.def: Add new types and remove
20955 * config/i386/i386-builtin.def: Update builtin definitions.
20956 * config/i386/i386.c: Handle new builtin types and remove useless ones.
20957 * config/i386/sse.md: Update VFIXUPIMM* patterns.
20958 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
20959 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
20960 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
20961 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
20962 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
20963 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
20964 * config/i386/subst.md:
20965 (round_saeonly_sd_mask_operand4): Add new subst_attr.
20966 (round_saeonly_sd_mask_op4): Ditto.
20967 (round_saeonly_expand_operand5): Ditto.
20968 (round_saeonly_expand): Update.
20970 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
20974 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
20976 * config/i386/sse.md: Combine VFIXUPIMM* patterns
20977 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
20978 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
20979 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
20980 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
20981 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
20982 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
20984 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
20988 2018-12-15 Jakub Jelinek <jakub@redhat.com>
20991 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
20992 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
20993 instead of UNSPEC_FIXUPIMM.
20995 2019-01-17 Richard Biener <rguenther@suse.de>
20998 * dwarf2out.c (want_pubnames): Never generate pubnames sections
20999 and friends for the LTO part of debug info.
21001 2019-01-17 Jakub Jelinek <jakub@redhat.com>
21003 PR tree-optimization/86214
21004 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
21007 PR rtl-optimization/88870
21008 * dce.c (deletable_insn_p): Never delete const/pure calls that can
21009 throw if we can't alter the cfg or delete dead exceptions.
21010 (mark_insn): Don't call find_call_stack_args for such calls.
21012 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
21014 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
21015 prototypes for vec_st.
21016 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
21017 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
21018 mainly on signed/unsigned long long and double.
21020 2019-01-16 David Malcolm <dmalcolm@redhat.com>
21023 * combine.c (delete_noop_moves): Convert to "bool" return,
21024 returning true if any edges are eliminated.
21025 (combine_instructions): Also return true if delete_noop_moves
21028 2019-01-16 Tamar Christina <tamar.christina@arm.com>
21030 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
21031 correct max nunits for endian swap.
21032 (aarch64_expand_fcmla_builtin): Correct subreg code.
21033 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
21034 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
21037 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
21039 * config/alpha/alpha.c (alpha_gimplify_va_arg):
21040 Handle split indirect COMPLEX_TYPE arguments.
21042 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
21045 * config/aarch64/aarch64-modes.def: Add comment about how the carry
21046 bit is set by add and compare.
21047 (CC_ADC): New CC_MODE.
21048 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
21049 to cache the code and mode of X. Adjust the shape of a CC_Cmode
21050 comparison. Add detection for CC_ADCmode.
21051 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
21053 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
21054 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
21055 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
21056 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
21057 to eliminate the need for zero-extending the operands.
21058 (add<mode>3_compareC_imm): Delete. Merge into ...
21059 (add<mode>3_compareC): ... this. Restructure the comparison to
21060 eliminate the need for zero-extending the operands.
21061 (add<mode>3_carryin): Use LTU for the overflow detection.
21062 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
21063 Reexpress comparison for overflow.
21064 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
21065 (add<mode>3_carryinC): Likewise.
21066 (add<mode>3_carryinV): Use LTU for carry between partials.
21067 * config/aarch64/predicates.md (aarch64_carry_operation): Update
21068 handling of CC_Cmode and add CC_ADCmode.
21069 (aarch64_borrow_operation): Likewise.
21071 2019-01-16 Tamar Christina <tamar.christina@arm.com>
21073 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
21074 Remove patternmode.
21075 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
21076 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
21077 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
21078 Remove endianness conversion.
21080 2019-01-16 Martin Liska <mliska@suse.cz>
21082 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
21084 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
21086 * gcc.c (add_sysrooted_hdrs_prefix): New function.
21087 (path_prefix_reset): Move up in the source file.
21088 (find_fortran_preinclude_file): Make complex search for the
21089 fortran header files.
21091 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
21093 * godump.c (go_output_typedef): When outputting a typedef, refer
21094 to the underlying type by its name and not its structure.
21096 2019-01-15 David Malcolm <dmalcolm@redhat.com>
21099 * tree.c (build_function_type): Assert that arg_types is not
21102 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
21104 PR inline-asm/52813
21105 * doc/extend.texi: Document that listing the stack pointer in the
21106 clobber list of an asm is a deprecated feature.
21107 * common.opt (Wdeprecated): Moved from c-family/c.opt.
21108 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
21109 warning instead of an error for clobbers of the stack pointer.
21110 Add a note explaining why.
21112 2019-01-15 Richard Biener <rguenther@suse.de>
21115 * dwarf2out.c (gen_member_die): Do not generate inheritance
21118 2019-01-15 Richard Biener <rguenther@suse.de>
21120 PR tree-optimization/88855
21121 * tree-if-conv.c (combine_blocks): Collect
21122 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
21124 2019-01-15 Tom de Vries <tdevries@suse.de>
21127 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
21128 lhs == NULL_TREE for gang-level reduction.
21130 2019-01-15 Richard Biener <rguenther@suse.de>
21131 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21134 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
21135 return true if SSA_NAME is already marked in visited bitmap.
21136 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
21138 2019-01-15 Jakub Jelinek <jakub@redhat.com>
21140 PR tree-optimization/88775
21141 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
21142 equal == 0 equality pointer comparisons some more if compared in
21143 integral types and either one points to an automatic var and the
21144 other to a global, or we can prove at least one points to the middle
21145 or both point to start or both point to end.
21147 2019-01-14 Andi Kleen <ak@linux.intel.com>
21149 * Makefile.in: Lower autofdo sampling rate by 10x.
21150 * Makefile.tpl: Dito.
21152 2019-01-14 Tom Honermann <tom@honermann.net>
21154 * defaults.h: Define CHAR8_TYPE.
21156 2019-01-14 Martin Sebor <msebor@redhat.com>
21159 * doc/extend.texi (Darwin Format Checks): Clarify.
21161 2019-01-14 Richard Biener <rguenther@suse.de>
21163 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
21164 whether we are in (simplify ...) or (match ...) context.
21166 2019-01-14 Jakub Jelinek <jakub@redhat.com>
21168 PR rtl-optimization/88796
21169 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
21170 * cfgexpand.c (stack_protect_prologue): Initialize
21171 crtl->stack_protect_guard_decl.
21172 * function.c (stack_protect_epilogue): Use it instead of calling
21173 targetm.stack_protect_guard again.
21174 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
21175 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
21176 crtl->stack_protect_guard_decl.
21177 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
21178 on the returned MEM_EXPR.
21180 2019-01-12 Tom de Vries <tdevries@suse.de>
21182 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
21183 vector length using -fopenacc-dim.
21185 2019-01-12 Tom de Vries <tdevries@suse.de>
21187 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
21188 lengths into account.
21190 2019-01-12 Svante Signell <svante.signell@gmail.com>
21192 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
21193 (TARGET_CAN_SPLIT_STACK): Define.
21194 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
21196 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21198 * params.def (inline-unit-growth): Set to 40.
21200 2019-01-12 Jakub Jelinek <jakub@redhat.com>
21202 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
21204 2019-01-12 Tom de Vries <tdevries@suse.de>
21206 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
21207 region calling vector-partitionable routine, set default_vector_length
21210 2019-01-12 Tom de Vries <tdevries@suse.de>
21212 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
21213 variable default_vector_length.
21215 2019-01-12 Tom de Vries <tdevries@suse.de>
21217 PR middle-end/88703
21218 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
21219 from oacc_default_dims, as oacc_validate_dims would do it, and apply
21222 2019-01-12 Tom de Vries <tdevries@suse.de>
21224 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
21225 (nvptx_goacc_validate_dims): Add used parameter.
21226 * doc/tm.texi: Regenerate.
21227 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
21228 argument to call to targetm.goacc.validate_dims.
21229 (default_goacc_validate_dims): Add used
21231 * target.def (validate_dims): Add used parameter in DEFHOOK.
21232 * targhooks.h (default_goacc_validate_dims): Add used parameter.
21234 2019-01-11 Jakub Jelinek <jakub@redhat.com>
21236 PR middle-end/85956
21238 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
21240 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
21241 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
21242 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
21243 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
21245 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
21247 PR rtl-optimization/87305
21249 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
21250 for little endian pseudos used as paradoxical subreg.
21252 2019-01-11 Jakub Jelinek <jakub@redhat.com>
21254 PR tree-optimization/88693
21255 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
21256 for STRING_CSTs that don't contain any NUL characters in the first
21257 TREE_STRING_LENGTH bytes.
21259 2019-01-11 Alan Modra <amodra@gmail.com>
21263 * genattrtab.c (min_fn): Don't translate values.
21264 (min_attr_value): Return INT_MAX when the value can't be calculated.
21265 Return minimum among any values that can be calculated.
21266 (max_attr_value): Adjust.
21268 2019-01-11 Jakub Jelinek <jakub@redhat.com>
21270 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
21272 2019-01-11 Steve Ellcey <sellcey@marvell.com>
21274 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
21275 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
21276 (aarch64_return_call_with_max_clobbers): New function.
21277 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
21278 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
21280 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
21281 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
21282 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
21283 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
21284 * cselib.c (cselib_process_insn): Add argument to
21285 targetm.hard_regno_call_part_clobbered call.
21286 * ira-conflicts.c (ira_build_conflicts): Ditto.
21287 * ira-costs.c (ira_tune_allocno_costs): Ditto.
21288 * lra-constraints.c (inherit_reload_reg): Ditto.
21289 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
21290 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
21291 argument. Call targetm.return_call_with_max_clobbers.
21292 Add argument to targetm.hard_regno_call_part_clobbered call.
21293 (calls_have_same_clobbers_p): New function.
21294 (process_bb_lives): Add call_insn and last_call_insn variables.
21295 Pass call_insn to check_pseudos_live_through_calls.
21296 Modify if stmt to check targetm.return_call_with_max_clobbers.
21297 Update setting of flush variable.
21298 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
21300 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
21301 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
21302 targetm.hard_regno_call_part_clobbered call.
21303 * reginfo.c (choose_hard_reg_mode): Ditto.
21304 * regrename.c (check_new_reg_p): Ditto.
21305 * reload.c (find_equiv_reg): Ditto.
21306 * reload1.c (emit_reload_insns): Ditto.
21307 * sched-deps.c (deps_analyze_insn): Ditto.
21308 * sel-sched.c (init_regs_for_mode): Ditto.
21309 (mark_unavailable_hard_regs): Ditto.
21310 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
21311 * target.def (hard_regno_call_part_clobbered): Add insn argument.
21312 (return_call_with_max_clobbers): New target function.
21313 * doc/tm.texi: Regenerate.
21314 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
21315 * hooks.c (hook_bool_uint_mode_false): Change to
21316 hook_bool_insn_uint_mode_false.
21317 * hooks.h (hook_bool_uint_mode_false): Ditto.
21319 2019-01-11 Steve Ellcey <sellcey@marvell.com>
21321 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
21322 (aarch64_remove_extra_call_preserved_regs): New function.
21323 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
21324 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
21325 * doc/tm.texi: Regenerate.
21326 * final.c (get_call_reg_set_usage): Call new hook.
21327 * target.def (remove_extra_call_preserved_regs): New hook.
21328 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
21329 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
21331 2019-01-11 Jakub Jelinek <jakub@redhat.com>
21334 * passes.c (finish_optimization_passes): Call print_combine_total_stats
21335 inside of pass_combine_1 dump rather than pass_profile_1.
21337 2019-01-11 Tom de Vries <tdevries@suse.de>
21339 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
21340 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
21341 (PTX_NUM_PER_WORKER_BARRIERS): Define.
21342 (nvptx_apply_dim_limits): Prevent vector_length 64 and
21345 2019-01-11 Tom de Vries <tdevries@suse.de>
21347 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
21349 2019-01-11 Jan Beulich <jbeulich@suse.com>
21351 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
21352 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
21353 sse2_cvtsi2sd): Add {l}.
21354 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
21357 2019-01-10 Jakub Jelinek <jakub@redhat.com>
21360 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
21362 (*float<floatunssuffix>v2div2sf2): New define_insn.
21363 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
21364 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
21365 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
21366 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
21367 match_operands with "const0_operand" "C".
21369 2019-01-10 Tamar Christina <tamar.christina@arm.com>
21371 * config/aarch64/aarch64-builtins.c
21372 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
21373 (aarch64_init_simd_builtins): ...Here
21375 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
21377 PR rtl-optimization/87305
21379 (setup_live_pseudos_and_spill_after_risky_transforms): Check
21380 allocation for big endian pseudos used as paradoxical subregs and
21381 spill them if it is wrong.
21382 * lra-constraints.c (lra_constraints): Add a comment.
21384 2019-01-10 Richard Biener <rguenther@suse.de>
21386 PR tree-optimization/88792
21387 * tree-ssa-pre.c (get_representative_for): Do not return a
21390 2019-01-10 Jakub Jelinek <jakub@redhat.com>
21392 PR middle-end/84877
21394 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
21395 (assign_parm_setup_block): Do the argument slot realignment here
21398 2019-01-10 Stefan Agner <stefan@agner.ch>
21401 * config/arm/arm.c (arm_option_override_internal): Force
21402 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
21404 2019-01-10 Jakub Jelinek <jakub@redhat.com>
21407 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
21410 2019-01-10 Tamar Christina <tamar.christina@arm.com>
21412 * config/arm/arm-builtins.c
21413 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
21414 (MAC_LANE_PAIR_QUALIFIERS): New.
21415 (arm_expand_builtin_args): Use it.
21416 (arm_expand_builtin_1): Likewise.
21417 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
21418 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
21419 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
21420 * config/arm/arm_neon.h:
21421 (vcadd_rot90_f16): New.
21422 (vcaddq_rot90_f16): New.
21423 (vcadd_rot270_f16): New.
21424 (vcaddq_rot270_f16): New.
21427 (vcmla_lane_f16): New.
21428 (vcmla_laneq_f16): New.
21429 (vcmlaq_lane_f16): New.
21430 (vcmlaq_laneq_f16): New.
21431 (vcmla_rot90_f16): New.
21432 (vcmlaq_rot90_f16): New.
21433 (vcmla_rot90_lane_f16): New.
21434 (vcmla_rot90_laneq_f16): New.
21435 (vcmlaq_rot90_lane_f16): New.
21436 (vcmlaq_rot90_laneq_f16): New.
21437 (vcmla_rot180_f16): New.
21438 (vcmlaq_rot180_f16): New.
21439 (vcmla_rot180_lane_f16): New.
21440 (vcmla_rot180_laneq_f16): New.
21441 (vcmlaq_rot180_lane_f16): New.
21442 (vcmlaq_rot180_laneq_f16): New.
21443 (vcmla_rot270_f16): New.
21444 (vcmlaq_rot270_f16): New.
21445 (vcmla_rot270_lane_f16): New.
21446 (vcmla_rot270_laneq_f16): New.
21447 (vcmlaq_rot270_lane_f16): New.
21448 (vcmlaq_rot270_laneq_f16): New.
21449 (vcadd_rot90_f32): New.
21450 (vcaddq_rot90_f32): New.
21451 (vcadd_rot270_f32): New.
21452 (vcaddq_rot270_f32): New.
21455 (vcmla_lane_f32): New.
21456 (vcmla_laneq_f32): New.
21457 (vcmlaq_lane_f32): New.
21458 (vcmlaq_laneq_f32): New.
21459 (vcmla_rot90_f32): New.
21460 (vcmlaq_rot90_f32): New.
21461 (vcmla_rot90_lane_f32): New.
21462 (vcmla_rot90_laneq_f32): New.
21463 (vcmlaq_rot90_lane_f32): New.
21464 (vcmlaq_rot90_laneq_f32): New.
21465 (vcmla_rot180_f32): New.
21466 (vcmlaq_rot180_f32): New.
21467 (vcmla_rot180_lane_f32): New.
21468 (vcmla_rot180_laneq_f32): New.
21469 (vcmlaq_rot180_lane_f32): New.
21470 (vcmlaq_rot180_laneq_f32): New.
21471 (vcmla_rot270_f32): New.
21472 (vcmlaq_rot270_f32): New.
21473 (vcmla_rot270_lane_f32): New.
21474 (vcmla_rot270_laneq_f32): New.
21475 (vcmlaq_rot270_lane_f32): New.
21476 (vcmlaq_rot270_laneq_f32): New.
21477 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
21478 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
21479 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
21480 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
21481 vcmlaq_lane270): New.
21482 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
21483 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
21484 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
21485 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
21486 (arm_option_reconfigure_globals): Use them.
21487 * config/arm/iterators.md (VDF, VQ_HSF): New.
21488 (VCADD, VCMLA): New.
21489 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
21490 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
21492 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
21493 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
21495 2019-01-10 Tamar Christina <tamar.christina@arm.com>
21497 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
21498 Add qualifier_lane_pair_index.
21499 (emit-rtl.h): Include.
21500 (TYPES_QUADOP_LANE_PAIR): New.
21501 (aarch64_simd_expand_args): Use it.
21502 (aarch64_simd_expand_builtin): Likewise.
21503 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
21505 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
21506 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
21507 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
21508 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
21509 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
21510 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
21511 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
21512 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
21513 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
21514 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
21515 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
21516 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
21517 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
21518 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
21519 Add __ARM_FEATURE_COMPLEX.
21520 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
21521 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
21522 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
21523 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
21524 fcmlaq_lane270): New.
21525 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
21526 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
21527 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
21528 * config/aarch64/arm_neon.h:
21529 (vcadd_rot90_f16): New.
21530 (vcaddq_rot90_f16): New.
21531 (vcadd_rot270_f16): New.
21532 (vcaddq_rot270_f16): New.
21535 (vcmla_lane_f16): New.
21536 (vcmla_laneq_f16): New.
21537 (vcmlaq_lane_f16): New.
21538 (vcmlaq_rot90_lane_f16): New.
21539 (vcmla_rot90_laneq_f16): New.
21540 (vcmla_rot90_lane_f16): New.
21541 (vcmlaq_rot90_f16): New.
21542 (vcmla_rot90_f16): New.
21543 (vcmlaq_laneq_f16): New.
21544 (vcmla_rot180_laneq_f16): New.
21545 (vcmla_rot180_lane_f16): New.
21546 (vcmlaq_rot180_f16): New.
21547 (vcmla_rot180_f16): New.
21548 (vcmlaq_rot90_laneq_f16): New.
21549 (vcmlaq_rot270_laneq_f16): New.
21550 (vcmlaq_rot270_lane_f16): New.
21551 (vcmla_rot270_laneq_f16): New.
21552 (vcmlaq_rot270_f16): New.
21553 (vcmla_rot270_f16): New.
21554 (vcmlaq_rot180_laneq_f16): New.
21555 (vcmlaq_rot180_lane_f16): New.
21556 (vcmla_rot270_lane_f16): New.
21557 (vcadd_rot90_f32): New.
21558 (vcaddq_rot90_f32): New.
21559 (vcaddq_rot90_f64): New.
21560 (vcadd_rot270_f32): New.
21561 (vcaddq_rot270_f32): New.
21562 (vcaddq_rot270_f64): New.
21566 (vcmla_lane_f32): New.
21567 (vcmla_laneq_f32): New.
21568 (vcmlaq_lane_f32): New.
21569 (vcmlaq_laneq_f32): New.
21570 (vcmla_rot90_f32): New.
21571 (vcmlaq_rot90_f32): New.
21572 (vcmlaq_rot90_f64): New.
21573 (vcmla_rot90_lane_f32): New.
21574 (vcmla_rot90_laneq_f32): New.
21575 (vcmlaq_rot90_lane_f32): New.
21576 (vcmlaq_rot90_laneq_f32): New.
21577 (vcmla_rot180_f32): New.
21578 (vcmlaq_rot180_f32): New.
21579 (vcmlaq_rot180_f64): New.
21580 (vcmla_rot180_lane_f32): New.
21581 (vcmla_rot180_laneq_f32): New.
21582 (vcmlaq_rot180_lane_f32): New.
21583 (vcmlaq_rot180_laneq_f32): New.
21584 (vcmla_rot270_f32): New.
21585 (vcmlaq_rot270_f32): New.
21586 (vcmlaq_rot270_f64): New.
21587 (vcmla_rot270_lane_f32): New.
21588 (vcmla_rot270_laneq_f32): New.
21589 (vcmlaq_rot270_lane_f32): New.
21590 (vcmlaq_rot270_laneq_f32): New.
21591 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
21592 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
21593 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
21594 (FCADD, FCMLA): New.
21596 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
21598 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
21602 * config/pa/pa.c: Change "can not" to "cannot".
21603 * gimple-ssa-evrp-analyze.c: Likewise.
21604 * ipa-icf.c: Likewise.
21605 * ipa-polymorphic-call.c: Likewise.
21606 * ipa-pure-const.c: Likewise.
21607 * lra-constraints.c: Likewise.
21608 * lra-remat.c: Likewise.
21609 * reload1.c: Likewise.
21610 * reorg.c: Likewise.
21611 * tree-ssa-uninit.c: Likewise.
21613 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
21617 * Makefile.in: Mechanically replace "can not" with "cannot".
21618 * alias.c: Likewise.
21619 * builtins.c: Likewise.
21620 * calls.c: Likewise.
21621 * cgraph.c: Likewise.
21622 * cgraph.h: Likewise.
21623 * cgraphclones.c: Likewise.
21624 * cgraphunit.c: Likewise.
21625 * combine-stack-adj.c: Likewise.
21626 * combine.c: Likewise.
21627 * common/config/i386/i386-common.c: Likewise.
21628 * config/aarch64/aarch64.c: Likewise.
21629 * config/alpha/sync.md: Likewise.
21630 * config/arc/arc.c: Likewise.
21631 * config/arc/predicates.md: Likewise.
21632 * config/arm/arm-c.c: Likewise.
21633 * config/arm/arm.c: Likewise.
21634 * config/arm/arm.h: Likewise.
21635 * config/arm/arm.md: Likewise.
21636 * config/arm/cortex-r4f.md: Likewise.
21637 * config/csky/csky.c: Likewise.
21638 * config/csky/csky.h: Likewise.
21639 * config/darwin-f.c: Likewise.
21640 * config/epiphany/epiphany.md: Likewise.
21641 * config/i386/i386.c: Likewise.
21642 * config/i386/sol2.h: Likewise.
21643 * config/m68k/m68k.c: Likewise.
21644 * config/mcore/mcore.h: Likewise.
21645 * config/microblaze/microblaze.md: Likewise.
21646 * config/mips/20kc.md: Likewise.
21647 * config/mips/sb1.md: Likewise.
21648 * config/nds32/nds32.c: Likewise.
21649 * config/nds32/predicates.md: Likewise.
21650 * config/pa/pa.c: Likewise.
21651 * config/rs6000/e300c2c3.md: Likewise.
21652 * config/rs6000/rs6000.c: Likewise.
21653 * config/s390/s390.h: Likewise.
21654 * config/sh/sh.c: Likewise.
21655 * config/sh/sh.md: Likewise.
21656 * config/spu/vmx2spu.h: Likewise.
21657 * cprop.c: Likewise.
21658 * dbxout.c: Likewise.
21659 * df-scan.c: Likewise.
21660 * doc/cfg.texi: Likewise.
21661 * doc/extend.texi: Likewise.
21662 * doc/fragments.texi: Likewise.
21663 * doc/gty.texi: Likewise.
21664 * doc/invoke.texi: Likewise.
21665 * doc/lto.texi: Likewise.
21666 * doc/md.texi: Likewise.
21667 * doc/objc.texi: Likewise.
21668 * doc/rtl.texi: Likewise.
21669 * doc/tm.texi: Likewise.
21671 * emit-rtl.c: Likewise.
21672 * emit-rtl.h: Likewise.
21673 * except.c: Likewise.
21674 * expmed.c: Likewise.
21675 * expr.c: Likewise.
21676 * fold-const.c: Likewise.
21677 * genautomata.c: Likewise.
21678 * gimple-fold.c: Likewise.
21679 * hard-reg-set.h: Likewise.
21680 * ifcvt.c: Likewise.
21681 * ipa-comdats.c: Likewise.
21682 * ipa-cp.c: Likewise.
21683 * ipa-devirt.c: Likewise.
21684 * ipa-fnsummary.c: Likewise.
21685 * ipa-icf.c: Likewise.
21686 * ipa-inline-transform.c: Likewise.
21687 * ipa-inline.c: Likewise.
21688 * ipa-polymorphic-call.c: Likewise.
21689 * ipa-profile.c: Likewise.
21690 * ipa-prop.c: Likewise.
21691 * ipa-pure-const.c: Likewise.
21692 * ipa-reference.c: Likewise.
21693 * ipa-split.c: Likewise.
21694 * ipa-visibility.c: Likewise.
21696 * ira-build.c: Likewise.
21697 * ira-color.c: Likewise.
21698 * ira-conflicts.c: Likewise.
21699 * ira-costs.c: Likewise.
21700 * ira-int.h: Likewise.
21701 * ira-lives.c: Likewise.
21704 * loop-invariant.c: Likewise.
21705 * loop-unroll.c: Likewise.
21706 * lower-subreg.c: Likewise.
21707 * lra-assigns.c: Likewise.
21708 * lra-constraints.c: Likewise.
21709 * lra-eliminations.c: Likewise.
21710 * lra-lives.c: Likewise.
21711 * lra-remat.c: Likewise.
21712 * lra-spills.c: Likewise.
21714 * lto-cgraph.c: Likewise.
21715 * lto-streamer-out.c: Likewise.
21716 * postreload-gcse.c: Likewise.
21717 * predict.c: Likewise.
21718 * profile-count.h: Likewise.
21719 * profile.c: Likewise.
21720 * recog.c: Likewise.
21722 * reload.c: Likewise.
21723 * reload1.c: Likewise.
21724 * reorg.c: Likewise.
21725 * resource.c: Likewise.
21726 * rtl.def: Likewise.
21728 * rtlanal.c: Likewise.
21729 * sched-deps.c: Likewise.
21730 * sched-ebb.c: Likewise.
21731 * sched-rgn.c: Likewise.
21732 * sel-sched-ir.c: Likewise.
21733 * sel-sched.c: Likewise.
21734 * shrink-wrap.c: Likewise.
21735 * simplify-rtx.c: Likewise.
21736 * symtab.c: Likewise.
21737 * target.def: Likewise.
21738 * toplev.c: Likewise.
21739 * tree-call-cdce.c: Likewise.
21740 * tree-cfg.c: Likewise.
21741 * tree-complex.c: Likewise.
21742 * tree-core.h: Likewise.
21743 * tree-eh.c: Likewise.
21744 * tree-inline.c: Likewise.
21745 * tree-loop-distribution.c: Likewise.
21746 * tree-nrv.c: Likewise.
21747 * tree-profile.c: Likewise.
21748 * tree-sra.c: Likewise.
21749 * tree-ssa-alias.c: Likewise.
21750 * tree-ssa-dce.c: Likewise.
21751 * tree-ssa-dom.c: Likewise.
21752 * tree-ssa-forwprop.c: Likewise.
21753 * tree-ssa-loop-im.c: Likewise.
21754 * tree-ssa-loop-ivcanon.c: Likewise.
21755 * tree-ssa-loop-ivopts.c: Likewise.
21756 * tree-ssa-loop-niter.c: Likewise.
21757 * tree-ssa-phionlycprop.c: Likewise.
21758 * tree-ssa-phiopt.c: Likewise.
21759 * tree-ssa-propagate.c: Likewise.
21760 * tree-ssa-threadedge.c: Likewise.
21761 * tree-ssa-threadupdate.c: Likewise.
21762 * tree-ssa-uninit.c: Likewise.
21763 * tree-ssanames.c: Likewise.
21764 * tree-streamer-out.c: Likewise.
21765 * tree.c: Likewise.
21766 * tree.h: Likewise.
21767 * vr-values.c: Likewise.
21769 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
21771 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
21772 (ix86_split_xorsign): Ditto.
21773 * config/i386/i386.c (ix86_expand_xorsign): New function.
21774 (ix86_split_xorsign): Ditto.
21775 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
21776 (xorsign<mode>3): New expander.
21777 (xorsign<mode>3_1): New insn_and_split pattern.
21778 * config/i386/sse.md (xorsign<mode>3): New expander.
21780 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
21782 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
21783 (*tablejump_sp64): Likewise.
21784 (*tablejump<P:mode>): ...this.
21785 (*call_address_sp32): Merge into...
21786 (*call_address_sp64): Likewise.
21787 (*call_address<P:mode>): ...this.
21788 (*call_symbolic_sp32): Merge into...
21789 (*call_symbolic_sp64): Likewise.
21790 (*call_symbolic<P:mode>): ...this.
21791 (call_value): Remove constraint and add predicate.
21792 (*call_value_address_sp32): Merge into...
21793 (*call_value_address_sp64): Likewise.
21794 (*call_value_address<P:mode>): ...this.
21795 (*call_value_symbolic_sp32): Merge into...
21796 (*call_value_symbolic_sp64): Likewise.
21797 (*call_value_symbolic<P:mode>): ...this.
21798 (*sibcall_symbolic_sp32): Merge into...
21799 (*sibcall_symbolic_sp64): Likewise.
21800 (*sibcall_symbolic<P:mode>): ...this.
21801 (sibcall_value): Remove constraint and add predicate.
21802 (*sibcall_value_symbolic_sp32): Merge into...
21803 (*sibcall_value_symbolic_sp64): Likewise.
21804 (*sibcall_value_symbolic<P:mode>): ...this.
21805 (window_save): Minor tweak.
21806 (*branch_sp32): Merge into...
21807 (*branch_sp64): Likewise.
21808 (*branch<P:mode>): ...this.
21810 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
21811 James Clarke <jrtc27@jrtc27.com>
21814 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
21815 consistently in TLS address generation and adjust code to the renaming
21816 of patterns. Mark calls to __tls_get_addr as const.
21817 * config/sparc/sparc.md (tgd_hi22): Turn into...
21818 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
21819 (tgd_lo10): Turn into...
21820 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
21821 (tgd_add32): Merge into...
21822 (tgd_add64): Likewise.
21823 (tgd_add<P:mode>): ...this and use Pmode throughout.
21824 (tldm_hi22): Turn into...
21825 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
21826 (tldm_lo10): Turn into...
21827 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
21828 (tldm_add32): Merge into...
21829 (tldm_add64): Likewise.
21830 (tldm_add<P:mode>): ...this and use Pmode throughout.
21831 (tldm_call32): Merge into...
21832 (tldm_call64): Likewise.
21833 (tldm_call<P:mode>): ...this and use Pmode throughout.
21834 (tldo_hix22): Turn into...
21835 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
21836 (tldo_lox10): Turn into...
21837 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
21838 (tldo_add32): Merge into...
21839 (tldo_add64): Likewise.
21840 (tldo_add<P:mode>): ...this and use Pmode throughout.
21841 (tie_hi22): Turn into...
21842 (tie_hi22<P:mode>): ...this and use Pmode throughout.
21843 (tie_lo10): Turn into...
21844 (tie_lo10<P:mode>): ...this and use Pmode throughout.
21845 (tie_ld64): Use DImode throughout.
21846 (tie_add32): Merge into...
21847 (tie_add64): Likewise.
21848 (tie_add<P:mode>): ...this and use Pmode throughout.
21849 (tle_hix22_sp32): Merge into...
21850 (tle_hix22_sp64): Likewise.
21851 (tle_hix22<P:mode>): ...this and use Pmode throughout.
21852 (tle_lox22_sp32): Merge into...
21853 (tle_lox22_sp64): Likewise.
21854 (tle_lox22<P:mode>): ...this and use Pmode throughout.
21855 (*tldo_ldub_sp32): Merge into...
21856 (*tldo_ldub_sp64): Likewise.
21857 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
21858 (*tldo_ldub1_sp32): Merge into...
21859 (*tldo_ldub1_sp64): Likewise.
21860 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
21861 (*tldo_ldub2_sp32): Merge into...
21862 (*tldo_ldub2_sp64): Likewise.
21863 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
21864 (*tldo_ldsb1_sp32): Merge into...
21865 (*tldo_ldsb1_sp64): Likewise.
21866 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
21867 (*tldo_ldsb2_sp32): Merge into...
21868 (*tldo_ldsb2_sp64): Likewise.
21869 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
21870 (*tldo_ldub3_sp64): Use DImode throughout.
21871 (*tldo_ldsb3_sp64): Likewise.
21872 (*tldo_lduh_sp32): Merge into...
21873 (*tldo_lduh_sp64): Likewise.
21874 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
21875 (*tldo_lduh1_sp32): Merge into...
21876 (*tldo_lduh1_sp64): Likewise.
21877 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
21878 (*tldo_ldsh1_sp32): Merge into...
21879 (*tldo_ldsh1_sp64): Likewise.
21880 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
21881 (*tldo_lduh2_sp64): Use DImode throughout.
21882 (*tldo_ldsh2_sp64): Likewise.
21883 (*tldo_lduw_sp32): Merge into...
21884 (*tldo_lduw_sp64): Likewise.
21885 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
21886 (*tldo_lduw1_sp64): Use DImode throughout.
21887 (*tldo_ldsw1_sp64): Likewise.
21888 (*tldo_ldx_sp64): Likewise.
21889 (*tldo_stb_sp32): Merge into...
21890 (*tldo_stb_sp64): Likewise.
21891 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
21892 (*tldo_sth_sp32): Merge into...
21893 (*tldo_sth_sp64): Likewise.
21894 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
21895 (*tldo_stw_sp32): Merge into...
21896 (*tldo_stw_sp64): Likewise.
21897 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
21898 (*tldo_stx_sp64): Use DImode throughout.
21900 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21902 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
21903 check configure option to set BTI and Return Address Signing.
21904 * configure.ac: Add --enable-standard-branch-protection and
21905 --disable-standard-branch-protection.
21906 * configure: Regenerated.
21907 * doc/install.texi: Document the same.
21909 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21910 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21912 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
21913 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
21914 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
21916 * config/aarch64/aarch64-bti-insert.c: New file.
21917 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
21919 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
21921 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
21922 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
21923 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
21924 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
21926 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21928 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
21929 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
21930 Disable bti for -mbranch-protection=none.
21931 (aarch64_handle_standard_branch_protection): Enable bti for
21932 -mbranch-protection=standard.
21933 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
21934 -mbranch-protection.
21935 (aarch64_bti_enabled): Check if bti is enabled.
21936 * config/aarch64/aarch64.opt: Declare target variable.
21937 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
21939 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21941 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
21942 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
21943 (aarch64_expand_epilogue): Likewise.
21944 (aarch64_output_mi_thunk): Likewise.
21945 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
21946 TAILCALL_ADDR_REGS to x16 and x17.
21947 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
21949 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21951 * config/aarch64/aarch64-option-extensions.def: Define
21952 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
21953 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
21954 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
21955 (AARCH64_FL_PREDRES): New.
21956 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
21957 AARCH64_FL_PREDRES by default.
21958 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
21960 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21962 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
21964 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
21965 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
21966 * doc/invoke.texi: Document ARMv8.5-A.
21968 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21970 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
21971 (xorsign<mode>3): Likewise.
21973 2019-01-09 Jelinek <jakub@redhat.com>
21975 PR middle-end/88758
21976 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
21977 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
21979 PR rtl-optimization/88331
21980 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
21981 not currently_expanding_to_rtl.
21983 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
21985 * doc/invoke.texi (-Os): Remove trailing spaces.
21986 (-finline-functions): Remove reference to -O2.
21988 2019-01-08 Jakub Jelinek <jakub@redhat.com>
21990 PR rtl-optimization/79593
21991 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
21993 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
21994 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
21996 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
21999 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
22003 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
22004 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
22006 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
22009 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
22010 ix86_avx_u128_mode_entry.
22012 2019-01-08 Martin Liska <mliska@suse.cz>
22014 PR tree-optimization/88753
22015 * tree-switch-conversion.c (switch_conversion::build_one_array):
22016 Come up with local variable constructor. Convert first to
22017 type of constructor values.
22019 2019-01-08 Richard Biener <rguenther@suse.de>
22021 PR tree-optimization/86554
22022 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
22023 rpo_avail): Move earlier.
22024 (visit_nary_op): When value-numbering to expressions
22025 with different overflow behavior make sure there's an
22026 available expression on the path.
22028 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
22030 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
22031 aarch64_parse_branch_protection,
22032 struct aarch64_branch_protect_type,
22033 aarch64_handle_no_branch_protection,
22034 aarch64_handle_standard_branch_protection,
22035 aarch64_validate_mbranch_protection,
22036 aarch64_handle_pac_ret_protection,
22037 aarch64_handle_attr_branch_protection,
22038 accepted_branch_protection_string,
22039 aarch64_pac_ret_subtypes,
22040 aarch64_branch_protect_types,
22041 aarch64_handle_pac_ret_leaf): Define.
22042 (aarch64_override_options_after_change_1, aarch64_override_options):
22043 Add check for accepted_branch_protection_string.
22044 (aarch64_option_save): Save accepted_branch_protection_string.
22045 (aarch64_option_restore): Save accepted_branch_protection_string.
22046 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
22047 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
22048 msign-return-address.
22049 * doc/invoke.texi: Add mbranch-protection.
22051 2019-01-08 Alan Modra <amodra@gmail.com>
22054 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
22055 Delete "unknownp" parameter. Adjust callers. Handle
22056 CONST_INT, PLUS, MINUS, and MULT.
22057 (attr_value_aligned): Renamed from or_attr_value.
22058 (min_attr_value): Return INT_MIN for unhandled rtl case..
22059 (min_fn): ..and translate to INT_MAX here.
22060 (write_length_unit_log): Modify to cope without "unknown".
22061 (write_attr_value): Handle IF_THEN_ELSE.
22063 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
22065 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
22066 optimization for masked stores.
22068 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
22070 PR middle-end/88567
22071 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
22072 output vector directly to duplicate_and_interleave instead of
22073 going through a temporary. Postpone insertion of ctor_seq to
22074 the end of the loop.
22076 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
22079 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
22080 unsigned_p. Handle signed and unsigned overflow correction as
22082 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
22084 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
22086 (add<mode>3_compareV_imm): Make this callable for expanding.
22087 (subv<GPI:mode>4): Use register_operand for operand 1. Use
22088 aarch64_plus_operand for operand 2.
22089 (subv<GPI:mode>_insn): New insn pattern.
22090 (subv<GPI:mode>_imm): Likewise.
22091 (negv<GPI:mode>3): New expand pattern.
22092 (negv<GPI:mode>_insn): New insn pattern.
22093 (negv<GPI:mode>_cmp_only): Likewise.
22094 (cmpv<GPI:mode>_insn): Likewise.
22095 (subvti4): Use register_operand for operand 1. Update call to
22096 aarch64_expand_subvti.
22097 (usubvti4): Likewise.
22098 (negvti3): New expand pattern.
22099 (negdi_carryout): New insn pattern.
22100 (negvdi_carryinV): New insn pattern.
22101 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
22102 version the named version.
22103 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
22105 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
22107 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
22109 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
22110 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
22111 (sub<mode>3_carryinCV): Delete.
22112 (sub<GPI:mode>3_carryinV): New expand pattern.
22113 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
22115 2019-01-07 Richard Biener <rguenther@suse.de>
22117 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
22118 of tree_operand_hash.
22120 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
22122 PR tree-optimization/88598
22123 * tree.h (single_nonzero_element): Declare.
22124 * tree.c (single_nonzero_element): New function.
22125 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
22126 if I is the only nonzero element of CST.
22128 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
22130 PR tree-optimization/88598
22131 * tree.h (initializer_each_zero_or_onep): Declare.
22132 * tree.c (initializer_each_zero_or_onep): New function.
22133 (signed_or_unsigned_type_for): Handle float types too.
22134 (unsigned_type_for, signed_type_for): Update comments accordingly.
22135 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
22136 x & { 0 or -1, 0 or -1, ... }.
22138 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
22140 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
22141 with x86_64-pc-linux-gnu.
22143 2019-01-07 Tom de Vries <tdevries@suse.de>
22146 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
22148 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
22151 2019-01-07 Jakub Jelinek <jakub@redhat.com>
22153 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
22154 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
22155 TARGET_AVX512F as condition.
22158 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
22159 const_not_ok_for_debug_p target hook.
22160 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
22161 on UNSPEC and subexpressions thereof if all subexpressions of the
22162 UNSPEC are CONSTANT_P.
22164 PR tree-optimization/88676
22165 * tree-ssa-phiopt.c (two_value_replacement): New function.
22166 (tree_ssa_phiopt_worker): Call it.
22169 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
22170 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
22173 * tree-vect-generic.c: Include insn-config.h and recog.h.
22174 (expand_vector_piecewise): Add defaulted ret_type argument,
22175 if non-NULL, use that in preference to type for the result type.
22176 (expand_vector_parallel): Formatting fix.
22177 (do_vec_conversion, do_vec_narrowing_conversion,
22178 expand_vector_conversion): New functions.
22179 (expand_vector_operations_1): Call expand_vector_conversion
22180 for VEC_CONVERT ifn calls.
22181 * internal-fn.def (VEC_CONVERT): New internal function.
22182 * internal-fn.c (expand_VEC_CONVERT): New function.
22183 * fold-const-call.c (fold_const_vec_convert): New function.
22184 (fold_const_call): Use it for CFN_VEC_CONVERT.
22185 * doc/extend.texi (__builtin_convertvector): Document.
22187 2019-01-07 Tom de Vries <tdevries@suse.de>
22189 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
22190 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
22191 vector_red_partition, vector_red_sym): New global variables.
22192 (nvptx_option_override): Initialize vector_red_sym.
22193 (nvptx_declare_function_name): Restore red_partition register.
22194 (nvptx_file_end): Emit code to declare the vector reduction variables.
22195 (nvptx_output_red_partition): New function.
22196 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
22197 large vector reductions.
22198 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
22199 (nvptx_init_builtins): Add VECTOR_ADDR.
22200 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
22201 Handle nvptx_expand_shared_addr.
22202 (nvptx_get_shared_red_addr): Add vector argument and handle large
22204 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
22206 (nvptx_goacc_reduction_init): Likewise.
22207 (nvptx_goacc_reduction_fini): Likewise.
22208 (nvptx_goacc_reduction_teardown): Likewise.
22209 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
22210 init,fini,teardown}.
22211 (nvptx_init_axis_predicate): Initialize vector_red_partition.
22212 (nvptx_set_current_function): Init vector_red_partition.
22213 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
22214 (nvptx_red_partition): New insn.
22215 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
22217 2019-01-07 Tom de Vries <tdevries@suse.de>
22220 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
22223 2019-01-07 Tom de Vries <tdevries@suse.de>
22225 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
22226 (nvptx_option_override): Init oacc_bcast_partition.
22227 (nvptx_init_oacc_workers): New function.
22228 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
22229 (nvptx_needs_shared_bcast): New function.
22230 (nvptx_find_par): Generalize to enable vectors to use shared-memory
22231 to propagate state.
22232 (nvptx_shared_propagate): Initialize vector bcast partition and
22233 synchronization state.
22234 (nvptx_single): Generalize to enable vectors to use shared-memory
22235 to propagate state.
22236 (nvptx_process_pars): Likewise.
22237 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
22238 * config/nvptx/nvptx.h (struct machine_function): Add
22239 bcast_partition and sync_bar members.
22241 2019-01-07 Tom de Vries <tdevries@suse.de>
22243 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
22244 (nvptx_apply_dim_limits): New function.
22245 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
22248 2019-01-07 Tom de Vries <tdevries@suse.de>
22250 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
22251 as late as possible.
22253 2019-01-07 Tom de Vries <tdevries@suse.de>
22255 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
22256 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
22257 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
22258 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
22259 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
22261 2019-01-07 Tom de Vries <tdevries@suse.de>
22263 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
22265 2019-01-07 Tom de Vries <tdevries@suse.de>
22267 * omp-offload.c (oacc_get_min_dim): New function.
22268 * omp-offload.h (oacc_get_min_dim): Declare.
22270 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
22273 * config/i386/i386.c (function_value_ms_64): Return small sturct in
22274 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
22276 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
22280 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
22282 * ipa-inline.c (edge_badness): Use inlined_time instead of
22283 inline_summaries->get.
22285 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
22287 * opts.c (enable_fdo_optimizations): Enable
22288 version-loops-for-strides, loop-interchange, unrol-and-jam
22289 and tree-loop-distribution.
22290 * invoke.texi: Document newly enabled options.
22292 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
22294 * doc/invoke.texi (max-inline-insns-small): New parameters.
22295 * ipa-inline.c (want_early_inline_function_p): simplify.
22296 (want_inline_small_function_p): Fix pasto from previous patch;
22297 use max-inline-insns-small bound.
22298 * params.def (max-inline-insns-small): New param.
22299 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
22300 variables correctly.
22302 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
22304 * doc/invoke.texi: Document max-inline-insns-size,
22305 uninlined-function-insns, uninlined-function-time,
22306 uninlined-thunk-insns and uninlined-thunk-time.
22307 * params.def: Add max-inline-insns-size,
22308 uninlined-function-insns, uninlined-function-time,
22309 uninlined-thunk-insns and uninlined-thunk-time.
22310 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
22312 * ipa-inline.c (can_inline_edge_by_limits_p,
22313 want_inline_small_function_p): Use new parameters.
22315 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
22317 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
22319 2019-01-05 Jakub Jelinek <jakub@redhat.com>
22321 PR middle-end/82564
22323 * expr.c (expand_assignment): For calls returning VLA structures
22324 if to_rtx is not a MEM, force it into a stack temporary.
22327 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
22328 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
22329 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
22330 subexpressions of both operands.
22331 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
22332 subrtxes are CONSTANT_P.
22333 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
22334 2018-11-09 changes.
22336 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
22338 * params.def (hot-bb-count-ws-permille): Set to 990.
22340 2019-01-04 Martin Sebor <msebor@redhat.com>
22343 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
22346 2019-01-04 Martin Sebor <msebor@redhat.com>
22349 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
22351 2019-01-04 Jakub Jelinek <jakub@redhat.com>
22353 * gdbinit.in: Turn off pagination for the skip commands, restore
22354 it to previous state afterwards.
22356 2019-01-04 Jakub Jelinek <jakub@redhat.com>
22359 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
22360 of GET_MODE (opN) as modes of the libcall arguments.
22362 2019-01-04 Jan Beulich <jbeulich@suse.com>
22364 * config/i386/sse.md
22365 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
22366 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
22367 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
22368 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
22369 avx512f_vmcmp<mode>3<round_saeonly_name>,
22370 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
22371 avx512f_maskcmp<mode>3,
22372 <avx512>_cvt<ssemodesuffix>2mask<mode>,
22373 <avx512>_cvt<ssemodesuffix>2mask<mode>,
22374 *<avx512>_cvtmask2<ssemodesuffix><mode>,
22375 *<avx512>_cvtmask2<ssemodesuffix><mode>,
22376 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
22377 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
22378 <avx512>_gt<mode>3<mask_scalar_merge_name>,
22379 <avx512>_gt<mode>3<mask_scalar_merge_name>,
22380 <avx512>_testm<mode>3<mask_scalar_merge_name>,
22381 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
22382 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
22383 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
22384 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
22385 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
22386 avx512cd_maskb_vec_dup<mode>,
22387 avx512cd_maskw_vec_dup<mode>,
22388 avx512dq_fpclass<mode><mask_scalar_merge_name>,
22389 avx512dq_vmfpclass<mode>,
22390 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
22393 2019-01-03 Martin Sebor <msebor@redhat.com>
22395 PR tree-optimization/88659
22396 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
22398 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
22400 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
22401 unaligned vsx and avoid lxvd2x/stxvd2x.
22402 (gen_lvx_v4si_move): New function.
22404 2019-01-03 Tom de Vries <tdevries@suse.de>
22406 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
22407 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
22409 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
22411 2019-01-03 Tom de Vries <tdevries@suse.de>
22413 * config/nvptx/nvptx.c (struct offload_attrs): New.
22414 (populate_offload_attrs): New function. Factor mask extraction out of
22415 nvptx_reorg. Add extraction of dimensions.
22416 (nvptx_reorg): Use populate_offload_attrs.
22418 2019-01-03 Tom de Vries <tdevries@suse.de>
22420 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
22421 cases for oacc_min_dims_p and routine_p. Add asserts for
22422 oacc_default_dims_p and offload_region_p.
22424 2019-01-03 Tom de Vries <tdevries@suse.de>
22426 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
22427 factored out of ...
22428 (nvptx_goacc_validate_dims): ... here.
22430 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
22432 PR tree-optimization/85574
22433 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
22435 (struct ssa_equip_hash_traits): Declare.
22436 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
22438 2019-01-03 Jakub Jelinek <jakub@redhat.com>
22441 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
22442 change it to qualified_type.
22444 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
22446 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
22447 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
22449 2019-01-02 Martin Sebor <msebor@redhat.com>
22450 Jeff Law <law@redhat.com>
22452 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
22453 (get_range_strlen_tree): Update appropriately.
22455 * gimple-fold.h (get_range_strlen): Drop unused last argument.
22457 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
22458 rather than set_range_info.
22459 * tree-ssa-strlen.c (set_strlen_range): Extracted from
22460 maybe_set_strlen_range. Handle potentially boundary crossing
22461 cases more conservatively.
22462 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
22463 Call set_strlen_range.
22464 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
22466 PR middle-end/88663
22467 * gimple-fold.c (get_range_strlen): Update prototype to no longer
22468 need the flexp argument.
22469 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
22470 from calls to get_range_strlen. Update comments. Just update
22471 VAL for an unterminated const char array and let the reset of the
22472 code handle it normally. No longer try to set *flexp. Adjust
22474 (get_range_strlen): Update for the new get_range_strlen API.
22475 (get_maxval_strlen): Similarly.
22476 (gimple_fold_builtin_strlen): Handle update meaning of return value
22477 from get_range_strlen.
22478 * gimple-ssa-sprintf.c (get_string_length): Update for the new
22479 get_range_strlen API.
22481 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
22484 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
22485 false at WPA time when body was removed.
22487 2019-01-02 Martin Liska <mliska@suse.cz>
22489 PR tree-optimization/88650
22490 * predict.c (set_even_probabilities): Calculate probability
22491 remainer only when really used.
22493 2019-01-02 Richard Biener <rguenther@suse.de>
22495 PR middle-end/88651
22496 * tree-data-ref.c (analyze_subscript_affine_affine): Use
22497 widest_ints when mangling max_stmt_execution results.
22499 2019-01-02 Richard Biener <rguenther@suse.de>
22501 PR tree-optimization/88621
22502 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
22503 bitfields when canoncalizing.
22505 2019-01-02 Richard Biener <rguenther@suse.de>
22508 * config/i386/x86-tune-costs.h (intel_cost): Adjust
22509 cost of cheap SSE instruction.
22511 2019-01-02 Richard Biener <rguenther@suse.de>
22514 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
22515 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
22517 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
22518 set after UIDs before splitting them.
22520 2019-01-01 Martin Sebor <msebor@redhat.com>
22521 Jeff Law <law@redhat.com>
22523 * gimple-fold.c (get_range_strlen_tree): Record if the computed
22524 length is optimistic. If it is, then arrange to compute the
22525 conservative length as well.
22527 * gimple-fold.h (get_range_strlen): Update prototype.
22528 * builtins.c (check_access): Update call to get_range_strlen to use
22529 c_strlen_data pointer. Change various variable accesses to instead
22530 pull data from the c_strlen_data structure.
22531 (check_strncat_sizes, expand_builtin_strncat): Likewise.
22532 * calls.c (maybe_warn_nonstring_arg): Likewise.
22533 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
22534 minimum length if maximum lengh is unknown.
22535 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
22536 that used c_strlen, it's no longer needed. Restructure slightly.
22537 (format_string): Set unlikely range appropriately.
22538 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
22540 (get_range_strlen): Accept c_strlen_data pointer for external
22541 call sites as well. Pass through to call to internal get_range_strlen.
22542 Adjust minlen, maxlen and maxbound as needed.
22543 (get_maxval_strlen): Update comments.
22544 (gimple_fold_builtin_strlen): Update call to get_range_strlen
22545 to use c_strlen_data pointer. Change variable accesses to instead
22546 use c_strlen_data data members.
22548 * gimple-fold.c (get_range_strlen): Update prototype.
22549 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
22550 local variables. Use pdata to return information to caller.
22551 Update calls to get_range_strlen. Update pdata->maxbound.
22552 (get_range_strlen -- static version): Similarly.
22553 (get_range_strlen -- extern version): Update for internal
22554 get_range_strlen API change. Convert to external data format.
22555 (get_maxval_strlen): Similarly.
22557 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
22559 * coverage.c (get_coverage_counts): Use current_function_decl.
22560 * profile.c (read_thunk_profile): New function.
22561 (branch_prob): Add THUNK parameter.
22562 * tree-profile.c (tree_profiling): Handle thunks.
22563 * value-prof.c (init_node_map): Handle thunks.
22564 * value-prof.h (branch_prob): Upate prototype.
22565 (read_thunk_profile): Declare.
22567 2019-01-01 Jakub Jelinek <jakub@redhat.com>
22569 Update copyright years.
22571 * gcc.c (process_command): Update copyright notice dates.
22572 * gcov-dump.c (print_version): Ditto.
22573 * gcov.c (print_version): Ditto.
22574 * gcov-tool.c (print_version): Ditto.
22575 * gengtype.c (create_file): Ditto.
22576 * doc/cpp.texi: Bump @copying's copyright year.
22577 * doc/cppinternals.texi: Ditto.
22578 * doc/gcc.texi: Ditto.
22579 * doc/gccint.texi: Ditto.
22580 * doc/gcov.texi: Ditto.
22581 * doc/install.texi: Ditto.
22582 * doc/invoke.texi: Ditto.
22584 Copyright (C) 2019 Free Software Foundation, Inc.
22586 Copying and distribution of this file, with or without modification,
22587 are permitted in any medium without royalty provided the copyright
22588 notice and this notice are preserved.