1 2019-09-17 Richard Biener <rguenther@suse.de>
3 PR tree-optimization/91790
4 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
5 use the correct DR for setting up realignment.
7 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
10 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
11 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
15 2019-09-16 Jason Merrill <jason@redhat.com>
17 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
19 2019-09-16 Martin Liska <mliska@suse.cz>
21 * gimple-fold.c (or_comparisons_1): Remove rules moved
25 2019-09-16 Martin Liska <mliska@suse.cz>
27 * gimple-fold.c (or_comparisons_1): Remove rules
31 2019-09-16 Martin Liska <mliska@suse.cz>
33 * genmatch.c (dt_node::append_simplify): Do not print
34 warning when we have duplicate patterns belonging
35 to a same simplify rule.
36 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
37 (maybe_fold_comparisons_from_match_pd): Handle
38 tcc_comparison as a results.
39 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
41 2019-09-16 Li Jia He <helijia@linux.ibm.com>
42 Qi Feng <ffengqi@linux.ibm.com>
45 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
46 (x > y && x == XXX_MIN): Optimize into 'false'.
47 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
48 (x < y && x != XXX_MAX): Optimize into 'x < y'.
49 (x < y && x == XXX_MAX): Optimize into 'false'.
50 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
51 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
52 (x <= y || x != XXX_MIN): Optimize into 'true'.
53 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
54 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
55 (x >= y || x != XXX_MAX): Optimize into 'true'.
56 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
58 2019-09-16 Li Jia He <helijia@linux.ibm.com>
59 Martin Liska <mliska@suse.cz>
61 * gimple-fold.c (and_comparisons_1): Add type as first
63 (and_var_with_comparison): Likewise.
64 (and_var_with_comparison_1): Likewise.
65 (or_comparisons_1): Likewise.
66 (or_var_with_comparison): Likewise.
67 (or_var_with_comparison_1): Likewise.
68 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
69 (maybe_fold_or_comparisons): Likewise.
70 (maybe_fold_comparisons_from_match_pd): New.
71 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
72 (maybe_fold_or_comparisons): Likewise.
73 * gimple.c (gimple_size): Make it public and add num_ops argument.
74 (gimple_init): New function.
75 (gimple_alloc): Call gimple_init.
76 * gimple.h (gimple_size): New.
77 (gimple_init): Likewise.
78 * tree-if-conv.c (fold_or_predicates): Pass type.
79 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
80 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
81 (optimize_vec_cond_expr): Likewise.
82 (ovce_extract_ops): Return type of conditional expression.
83 * tree-ssanames.c (init_ssa_name_imm_use): New.
84 (make_ssa_name_fn): Use init_ssa_name_imm_use.
85 * tree-ssanames.h (init_ssa_name_imm_use): New.
87 2019-09-16 Richard Biener <rguenther@suse.de>
89 PR tree-optimization/91756
90 PR tree-optimization/87132
91 * tree-ssa-alias.h (enum translate_flags): New.
92 (get_continuation_for_phi): Use it instead of simple bool flag.
93 (walk_non_aliased_vuses): Likewise.
94 * tree-ssa-alias.c (maybe_skip_until): Adjust.
95 (get_continuation_for_phi): When looking across backedges only
96 disallow valueization.
97 (walk_non_aliased_vuses): Adjust.
98 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
101 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
104 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
105 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
106 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
107 * target.def (have_count_reg_decr_p): New hook.
108 (doloop_cost_for_generic): Likewise.
109 (doloop_cost_for_address): Likewise.
110 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
111 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
112 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
113 * doc/tm.texi: Regenerate.
114 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
116 (record_group): Init doloop_p.
117 (add_candidate_1): Add optional argument doloop, change the handlings
119 (add_candidate): Likewise.
120 (generic_predict_doloop_p): Update attribute.
121 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
122 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
123 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
125 (get_computation_cost): Update for doloop IV cand extra cost.
126 (determine_group_iv_cost_cond): Update for doloop IV cand.
127 (determine_iv_cost): Likewise.
128 (ivopts_estimate_reg_pressure): Likewise.
129 (may_eliminate_iv): Update handlings for doloop IV cand.
130 (add_iv_candidate_for_doloop): New function.
131 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
132 (iv_ca_set_no_cp): Update for doloop IV cand.
133 (iv_ca_set_cp): Likewise.
134 (iv_ca_dump): Dump register cost.
135 (find_doloop_use): New function.
136 (analyze_and_mark_doloop_use): Likewise.
137 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
139 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
142 * cse.c (cse_insn): Do not replace anything with a
145 2019-09-13 Ian Lance Taylor <iant@golang.org>
147 * doc/invoke.texi (Optimize Options): Fix typo.
149 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
151 PR tree-optimization/89386
152 * config/i386/sse.md (smulhrs<mode>3): New expander.
153 (smulhrsv4hi3): Ditto.
155 2019-09-12 Richard Biener <rguenther@suse.de>
157 PR tree-optimization/91750
158 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
159 in the type of the evolution.
161 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
163 PR tree-optimization/89386
164 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
165 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
166 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
167 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
168 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
169 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
170 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
171 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
172 (su, r): Handle the unspecs above.
173 (bt): New int attribute.
174 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
175 * internal-fn.c (first_commutative_argument): Commutativity info for
177 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
178 (umulhrs_optab): New optabs.
179 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
180 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
181 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
183 (vect_vect_recog_func_ptrs): Add it.
185 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
187 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
190 2019-09-11 Nathan Sidwell <nathan@acm.org>
192 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
193 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
195 2019-09-11 Richard Biener <rguenther@suse.de>
197 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
198 * lto-wrapper.c (merge_and_complain): Pick up -g.
199 (append_compiler_options): Likewise.
200 (run_gcc): Re-instantiate handling -g0 at link-time.
201 * doc/invoke.texi (flto): Document debug info generation.
203 2019-09-11 Richard Biener <rguenther@suse.de>
205 PR tree-optimization/90387
206 * vr-values.c (vr_values::extract_range_basic): After inlining
207 simplify non-constant __builtin_constant_p to false.
209 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
211 PR rtl-optimization/89795
212 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
213 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
215 2019-09-11 Jakub Jelinek <jakub@redhat.com>
217 PR tree-optimization/91723
218 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
219 instead of pointer equality when checking if argument vectypes are
223 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
224 of get_nonzero_bits, only call it for integral types.
226 2019-09-11 Richard Biener <rguenther@suse.de>
229 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
231 * match.pd: Add flag_unsafe_math_optimizations check
232 before deciding on the widest type in a binary math operation.
234 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
236 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
237 and CALL_REALLY_USED_REGISTERS must be defined, and that
238 CALL_REALLY_USED_REGISTERS is preferred.
239 * doc/tm.texi: Regenerate.
240 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
241 (call_really_used_regs): Likewise.
242 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
243 CALL_REALLY_USED_REGISTERS are defined.
244 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
245 initial value if defined.
246 (initial_call_really_used_regs): Delete.
247 (saved_call_really_used_regs): Likewise.
248 (CALL_REALLY_USED_REGNO_P): Likewise.
249 (init_reg_sets): Remove handling of call_really_used_regs.
250 (save_register_info, restore_register_info, globalize_reg): Likewise.
251 (init_reg_sets_1): Likewise. Use call_used_regs instead of
252 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
253 outside operand_reg_set.
254 (fix_register): Don't change call_used_regs if
255 CALL_REALLY_USED_REGISTERS is defined.
256 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
257 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
258 instead of call_really_used_regs.
259 (csky_conditional_register_usage): Remove the old handling of
260 call_used_regs and change the handling of call_really_used_regs
261 to use call_used_regs instead.
262 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
263 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
264 making a register fixed.
265 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
266 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
267 instead of call_really_used_regs.
268 (m32r_conditional_register_usage): Don't set call_used_regs when
269 making a register fixed.
270 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
271 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
272 instead of call_really_used_regs.
273 (mips_interrupt_extra_call_saved_reg_p): Likewise.
274 (mips_cfun_call_saved_reg_p): Likewise.
275 (mips_swap_registers): Remove the old handling of call_used_regs
276 and change the handling of call_really_used_regs to use call_used_regs
278 (mips_conditional_register_usage): Likewise.
279 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
280 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
281 instead of call_really_used_regs.
282 (mn10300_get_live_callee_saved_regs): Likewise.
283 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
284 (mn10300_conditional_register_usage): Don't set call_used_regs when
285 making a register fixed.
286 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
287 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
288 Remove the old handling of call_used_regs and change the handling
289 of call_really_used_regs to use call_used_regs instead.
290 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
291 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
292 instead of call_really_used_regs.
293 (s390_register_info_gprtofpr, s390_register_info): Likewise.
294 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
295 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
296 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
297 (s390_conditional_register_usage): Remove the old handling of
298 call_used_regs and change the handling of call_really_used_regs
299 to use call_used_regs instead.
300 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
301 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
302 (sh_fix_range, reg_unused_after): Likewise.
303 (sh_conditional_register_usage): Remove the old handling of
304 call_used_regs and change the handling of call_really_used_regs
305 to use call_used_regs instead.
306 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
307 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
308 call_used_regs when making a register fixed.
309 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
310 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
311 call_used_regs when making a register fixed.
312 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
313 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
314 set call_used_regs when making a register fixed.
315 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
316 * config/visium/visium.c (visium_conditional_register_usage): Remove
317 the old handling of call_used_regs and change the handling of
318 call_really_used_regs to use call_used_regs instead.
320 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
322 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
323 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
324 * reginfo.c (call_used_regs): New macro.
326 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
328 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
330 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
331 (bpf_expand_epilogue): Likewise.
332 * config/c6x/c6x.c (c6x_save_reg): Likewise.
333 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
334 (ft32_expand_epilogue): Likewise.
335 * config/i386/i386.c (ix86_save_reg): Likewise.
336 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
337 (moxie_expand_epilogue): Likewise.
338 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
339 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
340 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
342 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
344 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
345 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
346 instead of testing call_used_regs directly.
347 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
348 (aarch64_components_for_bb): Likewise.
349 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
350 * config/arc/arc.c (arc_must_save_register): Likewise.
351 (arc_epilogue_uses): Likewise.
352 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
353 (legitimize_pic_address, callee_saved_reg_p): Likewise.
354 (arm_compute_save_reg0_reg12_mask): Likewise.
355 (arm_compute_save_core_reg_mask): Likewise.
356 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
357 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
358 (cmse_nonsecure_entry_clear_before_return): Likewise.
359 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
360 (arm_expand_epilogue): Likewise.
361 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
362 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
363 (_reg_unused_after): Likewise.
364 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
365 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
366 (add_to_reg, hwloop_optimize): Likewise.
367 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
368 (bpf_expand_epilogue): Likewise.
369 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
370 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
371 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
372 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
373 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
374 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
375 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
376 * config/frv/frv.c (frv_stack_info): Likewise.
377 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
378 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
379 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
380 (move_callee_saved_registers): Likewise.
381 * config/h8300/h8300.c (byte_reg): Likewise.
382 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
383 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
384 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
385 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
386 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
387 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
388 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
389 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
390 * config/m32c/m32c.c (need_to_save): Likewise.
391 * config/m68k/m68k.c (m68k_save_reg): Likewise.
392 * config/mcore/mcore.c (calc_live_regs): Likewise.
393 * config/microblaze/microblaze.c (microblaze_must_save_register):
395 * config/mmix/mmix.c (mmix_local_regno): Likewise.
396 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
397 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
398 (mmix_expand_epilogue): Likewise.
399 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
400 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
401 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
402 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
403 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
404 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
405 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
406 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
407 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
408 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
409 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
410 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
411 * config/rl78/rl78.c (need_to_save): Likewise.
412 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
413 (rs6000_stack_info, generate_set_vrsave): Likewise.
414 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
415 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
416 * config/rx/rx.c (rx_get_stack_layout): Likewise.
417 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
418 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
419 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
420 (save_local_or_in_reg_p): Likewise.
421 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
422 (xstormy16_epilogue_uses): Likewise.
423 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
424 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
425 * config/v850/v850.c (compute_register_save_size): Likewise.
426 * config/vax/vax.c (vax_expand_prologue): Likewise.
427 * config/visium/visium.c (visium_save_reg_p): Likewise.
428 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
429 * cselib.c (cselib_process_insn): Likewise.
430 * df-scan.c (df_get_entry_block_def_set): Likewise.
431 * function.c (aggregate_value_p): Likewise.
432 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
433 * ira-lives.c (process_bb_node_lives): Likewise.
434 * ira.c (do_reload): Likewise.
435 * lra-lives.c (process_bb_lives): Likewise.
436 * lra-remat.c (lra_remat): Likewise.
437 * lra.c (lra): Likewise.
438 * postreload.c (reload_combine_recognize_pattern): Likewise.
439 (reload_cse_move2add): Likewise.
440 * recog.c (peep2_find_free_register): Likewise.
441 * regrename.c (check_new_reg_p): Likewise.
442 * reload.c (find_equiv_reg): Likewise.
443 * reload1.c (reload, find_reg): Likewise.
444 * sel-sched.c (init_hard_regs_data): Likewise.
446 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
448 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
449 regs_invalidated_by_call & ~fixed_reg_set instead of
450 call_used_or_fixed_regs & ~fixed_reg_set.
451 * config/sh/sh.c (output_stack_adjust): Likewise.
453 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
455 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
456 (call_used_reg_set): Delete.
457 (call_used_or_fixed_regs): New macro.
458 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
459 of call_used_reg_set.
460 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
461 instead of call_used_regs.
462 (save_call_clobbered_regs): Likewise.
463 * cfgcleanup.c (old_insns_match_p): Likewise.
464 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
465 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
467 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
468 * config/sh/sh.c (output_stack_adjust): Likewise.
469 * final.c (collect_fn_hard_reg_usage): Likewise.
470 * ira-build.c (ira_build): Likewise.
471 * ira-color.c (calculate_saved_nregs): Likewise.
472 (allocno_reload_assign, calculate_spill_cost): Likewise.
473 * ira-conflicts.c (ira_build_conflicts): Likewise.
474 * ira-costs.c (ira_tune_allocno_costs): Likewise.
475 * ira-lives.c (process_bb_node_lives): Likewise.
476 * ira.c (setup_reg_renumber): Likewise.
477 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
478 * lra-constraints.c (need_for_call_save_p): Likewise.
479 (need_for_split_p, inherit_in_ebb): Likewise.
480 * lra-lives.c (process_bb_lives): Likewise.
481 * lra-remat.c (call_used_input_regno_present_p): Likewise.
482 * postreload.c (reload_combine): Likewise.
483 * regrename.c (find_rename_reg): Likewise.
484 * reload1.c (reload_as_needed): Likewise.
485 * rtlanal.c (find_all_hard_reg_sets): Likewise.
486 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
487 * shrink-wrap.c (requires_stack_frame_p): Likewise.
489 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
491 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
492 (no_caller_save_reg_set): Delete.
493 * caller-save.c (init_caller_save): Don't initialize it.
494 * ira-conflicts.c (ira_build_conflicts): Calculate
495 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
497 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
499 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
500 (target_hard_regs::x_savable_regs): New field.
501 (call_fixed_reg_set): Delete.
502 (savable_regs): New macro,
503 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
504 (init_reg_sets_1): Likewise. Initialize savable_regs.
505 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
506 for all registers. Set savable_regs instead of call_fixed_reg_set.
507 (setup_save_areas, save_call_clobbered_regs): Replace uses of
508 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
509 * config/sh/sh.c (output_stack_adjust): Likewise.
511 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
513 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
514 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
515 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
517 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
519 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
520 * rtlanal.c (get_call_rtx_from): Likewise.
521 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
522 than the pattern to get_call_rtx_from.
523 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
524 an rtx_insn * instead of an rtx.
525 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
527 2019-09-10 Martin Liska <mliska@suse.cz>
529 * common.opt: Use newly added WarnRemoved.
530 * config/aarch64/aarch64.opt: Likewise.
531 * config/arm/arm.opt: Likewise.
532 * config/i386/i386.opt: Likewise.
533 * config/ia64/ia64.opt: Likewise.
534 * config/rs6000/rs6000.opt: Likewise.
535 * doc/options.texi: Document WarnRemoved properly.
536 * dwarf2out.c (gen_producer_string): Handle renamed
537 OPT_SPECIAL_warn_removed.
538 * lto-opts.c (lto_write_options): Likewise.
539 * lto-wrapper.c (merge_and_complain): Likewise.
540 * opts-common.c (decode_cmdline_option): Likewise.
541 (prune_options): Likewise.
542 (read_cmdline_option): Likewise.
543 (control_warning_option): Likewise.
544 * opts.c (print_filtered_help): Likewise.
545 * optc-gen.awk: Parse for WarnRemoved and make usage
546 of Deprecated an error.
547 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
549 2019-09-10 Arnaud Charlet <charlet@adacore.com>
551 * doc/install.texi: Fix syntax for html generation.
553 2019-09-10 Jakub Jelinek <jakub@redhat.com>
556 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
557 the shift type to type.
559 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
561 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
563 (stack_protect_combined_test_insn): Likewise.
565 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
566 Mickaël Guêné <mickael.guene@st.com>
568 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
569 * config/arm/arm.md (FDPIC_REGNUM): New constant.
570 (load_tp_soft_fdpic): New pattern.
571 (load_tp_soft): Disable in FDPIC mode.
573 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
574 Mickaël Guêné <mickael.guene@st.com>
576 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
577 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
578 (arm_call_tls_get_addr): Add FDPIC support.
579 (legitimize_tls_address): Likewise.
580 (arm_emit_tls_decoration): Likewise.
582 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
583 Mickaël Guêné <mickael.guene@st.com>
585 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
587 (arm_trampoline_init): Likewise.
588 (arm_trampoline_adjust_address): Likewise.
589 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
591 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
592 Mickaël Guêné <mickael.guene@st.com>
594 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
595 (legitimize_pic_address): Enforce binding rules on function
596 pointers in FDPIC mode.
597 (arm_assemble_integer): Likewise.
599 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
600 Mickaël Guêné <mickael.guene@st.com>
602 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
603 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
606 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
607 Mickaël Guêné <mickael.guene@st.com>
609 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
612 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
613 Mickaël Guêné <mickael.guene@st.com>
615 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
617 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
619 * config/arm/arm.c (arm_option_override): Define pic register to
621 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
622 have no decl or go through PLT.
623 (calculate_pic_address_constant): New function.
624 (legitimize_pic_address): Call calculate_pic_address_constant.
625 (arm_load_pic_register): Handle TARGET_FDPIC.
626 (arm_is_segment_info_known): New function.
627 (arm_pic_static_addr): Add support for FDPIC.
628 (arm_load_function_descriptor): New function.
629 (arm_emit_call_insn): Add support for FDPIC.
630 (arm_assemble_integer): Add support for FDPIC.
631 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
632 Define. (FDPIC_REGNUM): New define.
633 * config/arm/arm.md (call): Add support for FDPIC.
634 (call_value): Likewise.
635 (restore_pic_register_after_call): New pattern.
636 (untyped_call): Disable if FDPIC.
637 (untyped_return): Likewise.
638 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
640 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
641 Mickaël Guêné <mickael.guene@st.com>
643 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
644 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
645 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
646 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
647 (CC1_SPEC): Use FDPIC_CC1_SPEC.
648 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
649 * config/arm/uclinuxfdpiceabi.h: New file.
651 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
653 * config.gcc: Handle *-*-uclinuxfdpiceabi.
655 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
656 Mickaël Guêné <mickael.guene@st.com>
658 * config/arm/arm.opt: Add -mfdpic option.
659 * doc/invoke.texi: Add documentation for -mfdpic.
661 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
663 * expmed.c (extract_bit_field): Update function comment
665 * expr.c (expand_expr_real): Update function comment
667 (expand_misaligned_mem_ref): New helper function.
668 (expand_expr_real_2): Use expand_misaligned_mem_ref.
669 Remove duplicate assignment to "base" at case MEM_REF.
670 Remove a shadowed variable "unsignedp" at case VCE.
672 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
674 * regset.h (regs_invalidated_by_call_regset): Delete.
675 (fixed_reg_set_regset): Likewise.
676 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
677 (fixed_reg_set_regset, persistent_obstack): Likewise.
678 (init_reg_sets_1, globalize_reg): Update accordingly.
679 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
681 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
682 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
683 instead of regs_invalidated_by_call_regset.
684 (df_lr_confluence_n, df_md_confluence_n): Likewise.
685 * df-scan.c (df_scan_start_dump): Likewise.
686 * dse.c (copy_fixed_regs): Likewise.
687 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
689 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
691 * array-traits.h: New file.
692 * coretypes.h (array_traits, bitmap_view): New types.
693 * bitmap.h: Include "array-traits.h"
694 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
695 (base_bitmap_view, bitmap_view): New classes.
696 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
697 * hard-reg-set.h: Include array-traits.h.
698 (array_traits<HARD_REG_SET>): New struct.
699 * regset.h (IOR_REG_SET_HRS): New macro.
700 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
701 rather than iterating over each hard register.
702 * sched-deps.c (sched_analyze_insn): Likewise.
703 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
705 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
707 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
708 instead of a HARD_REG_SET *.
709 * ira-build.c (ior_hard_reg_conflicts): Likewise.
710 (ira_build): Update call accordingly.
711 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
713 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
715 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
716 (HARD_REG_SET::operator!=): Likewise.
717 (hard_reg_set_equal_p): Delete.
718 * cfgcleanup.c (old_insns_match_p): Use == instead of
719 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
720 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
721 (add_allocno_hard_regs_to_forest): Likewise.
722 (setup_allocno_available_regs_num): Likewise.
723 * ira.c (setup_pressure_classes): Likewise.
724 (setup_allocno_and_important_classes): Likewise.
725 (setup_reg_class_relations): Likewise.
726 * lra-lives.c (process_bb_lives): Likewise.
727 * reg-stack.c (change_stack, convert_regs_1): Likewise.
729 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
731 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
732 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
733 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
734 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
736 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
737 * ira.c (setup_reg_renumber): Likewise.
738 * lra-assigns.c (find_hard_regno_for_1): Likewise.
739 * regrename.c (regrename_find_superclass): Likewise.
740 * reload1.c (find_reg): Likewise.
742 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
744 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
745 * caller-save.c (setup_save_areas): Use "&~" instead of
746 AND_COMPL_HARD_REG_SET.
747 (save_call_clobbered_regs): Likewise.
748 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
750 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
751 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
752 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
753 * config/mips/mips.c (mips_class_max_nregs): Likewise.
754 (mips_conditional_register_usage): Likewise.
755 * config/sh/sh.c (output_stack_adjust): Likewise.
756 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
757 (setup_profitable_hard_regs): Likewise.
758 (get_conflict_and_start_profitable_regs): Likewise.
759 * ira-conflicts.c (print_allocno_conflicts): Likewise.
760 (ira_build_conflicts): Likewise.
761 * ira-costs.c (restrict_cost_classes): Likewise.
762 (setup_regno_cost_classes_by_aclass): Likewise.
763 * ira-lives.c (process_bb_node_lives): Likewise.
764 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
765 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
766 (setup_allocno_and_important_classes, setup_class_translate_array)
767 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
769 * lra-assigns.c (find_hard_regno_for_1): Likewise.
770 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
771 (process_alt_operands, inherit_in_ebb): Likewise.
772 * lra-eliminations.c (update_reg_eliminate): Likewise.
773 * lra-lives.c (process_bb_lives): Likewise.
774 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
775 * resource.c (find_dead_or_set_registers): Likewise.
776 (mark_target_live_regs): Likewise.
777 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
778 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
779 (implicit_clobber_conflict_p): Likewise.
780 * shrink-wrap.c (requires_stack_frame_p): Likewise.
781 (try_shrink_wrapping): Likewise.
783 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
785 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
786 (HARD_REG_SET::operator|=): Likewise.
787 (IOR_HARD_REG_SET): Delete.
788 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
790 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
791 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
792 * final.c (collect_fn_hard_reg_usage): Likewise.
793 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
794 * ira-build.c (merge_hard_reg_conflicts): Likewise.
795 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
796 (propagate_some_info_from_allocno): Likewise.
797 (copy_info_to_removed_store_destinations): Likewise.
798 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
799 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
800 (fast_allocation): Likewise.
801 * ira-conflicts.c (ira_build_conflicts): Likewise.
802 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
803 (process_bb_node_lives): Likewise.
804 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
805 * lra-assigns.c (find_hard_regno_for_1): Likewise.
806 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
807 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
808 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
809 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
810 (process_bb_lives): Likewise.
811 * lra-spills.c (assign_spill_hard_regs): Likewise.
812 * postreload.c (reload_combine): Likewise.
813 * reginfo.c (init_reg_sets_1): Likewise.
814 * regrename.c (merge_overlapping_regs, find_rename_reg)
815 (merge_chains): Likewise.
816 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
817 (find_reload_regs, finish_spills, choose_reload_regs_init)
818 (emit_reload_insns): Likewise.
819 * reorg.c (redundant_insn): Likewise.
820 * resource.c (find_dead_or_set_registers, mark_set_resources)
821 (mark_target_live_regs): Likewise.
822 * rtlanal.c (find_all_hard_reg_sets): Likewise.
823 * sched-deps.c (sched_analyze_insn): Likewise.
824 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
825 (find_best_reg_for_expr): Likewise.
826 * shrink-wrap.c (try_shrink_wrapping): Likewise.
828 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
830 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
831 (HARD_REG_SET::operator&): Likewise.
832 (AND_HARD_REG_SET): Delete.
833 * caller-save.c (setup_save_areas): Use "&" instead of
835 (save_call_clobbered_regs): Likewise.
836 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
837 * config/m32c/m32c.c (reduce_class): Likewise.
838 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
839 * final.c (get_call_reg_set_usage): Likewise.
840 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
841 (setup_left_conflict_sizes_p): Likewise.
842 * ira-conflicts.c (print_allocno_conflicts): Likewise.
843 (ira_build_conflicts): Likewise.
844 * ira-costs.c (restrict_cost_classes): Likewise.
845 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
846 (setup_reg_class_relations): Likewise.
847 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
848 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
849 * resource.c (find_dead_or_set_registers): Likewise.
850 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
852 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
854 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
855 (COMPL_HARD_REG_SET): Delete.
856 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
857 of COMPL_HARD_REG_SET.
858 (try_rename_operands): Likewise.
859 * config/sh/sh.c (push_regs): Likewise.
860 * lra-assigns.c (find_hard_regno_for_1): Likewise.
861 * lra-constraints.c (contains_reg_p): Likewise.
862 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
864 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
866 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
867 * caller-save.c (save_call_clobbered_regs): Use assignment instead
868 of COPY_HARD_REG_SET.
869 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
870 (epiphany_conditional_register_usage): Likewise.
871 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
872 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
873 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
874 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
875 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
876 * config/mips/mips.c (mips_class_max_nregs): Likewise.
877 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
878 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
879 * config/sh/sh.c (output_stack_adjust): Likewise.
880 * final.c (collect_fn_hard_reg_usage): Likewise.
881 (get_call_reg_set_usage): Likewise.
882 * ira-build.c (ira_create_object, remove_low_level_allocnos)
883 (ira_flattening): Likewise.
884 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
885 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
886 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
887 (ira_reassign_pseudos): Likewise.
888 * ira-conflicts.c (print_allocno_conflicts): Likewise.
889 (ira_build_conflicts): Likewise.
890 * ira-costs.c (restrict_cost_classes): Likewise.
891 (setup_regno_cost_classes_by_aclass): Likewise.
892 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
893 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
894 (setup_stack_reg_pressure_class, setup_pressure_classes)
895 (setup_allocno_and_important_classes, setup_class_translate_array)
896 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
897 (ira_setup_eliminable_regset): Likewise.
898 * lra-assigns.c (find_hard_regno_for_1): Likewise.
899 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
900 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
901 (process_alt_operands, inherit_in_ebb): Likewise.
902 * lra-lives.c (process_bb_lives): Likewise.
903 * lra-spills.c (assign_spill_hard_regs): Likewise.
904 * lra.c (lra): Likewise.
905 * mode-switching.c (new_seginfo): Likewise.
906 * postreload.c (reload_combine): Likewise.
907 * reg-stack.c (straighten_stack): Likewise.
908 * reginfo.c (save_register_info, restore_register_info): Likewise.
909 (init_reg_sets_1, record_subregs_of_mode): Likewise
910 * regrename.c (create_new_chain, rename_chains): Likewise.
911 * reload1.c (order_regs_for_reload, find_reg): Likewise.
912 (find_reload_regs): Likewise.
913 * resource.c (find_dead_or_set_registers): Likewise.
914 (mark_target_live_regs): Likewise.
915 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
917 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
919 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
920 (note_pattern_stores): Declare.
921 (note_stores): Take an rtx_insn *.
922 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
923 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
924 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
925 (note_stores): Take an rtx_insn * as argument and process
926 CALL_INSN_FUNCTION_USAGE. Rename old function to...
927 (note_pattern_stores): ...this.
928 (find_first_parameter_load): Pass the insn rather than
929 its pattern to note_stores.
930 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
931 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
932 (insert_one_insn): Likewise.
933 * combine.c (combine_instructions): Likewise.
934 (likely_spilled_retval_p): Likewise.
935 (try_combine): Use note_pattern_stores instead of note_stores.
936 (record_dead_and_set_regs): Pass the insn rather than its pattern
938 (reg_dead_at_p): Likewise.
939 * config/bfin/bfin.c (workaround_speculation): Likewise.
940 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
942 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
943 instead of note_stores.
944 (frv_optimize_membar_local): Pass the insn rather than its pattern
946 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
947 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
948 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
949 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
950 (mips_reorg_process_insns): Likewise.
951 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
952 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
954 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
955 its pattern to note_stores.
956 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
958 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
959 the insn to note_stores.
960 (prescan_insns_for_dce): Update call accordingly.
961 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
963 * df-problems.c (can_move_insns_across): Likewise.
964 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
965 * function.c (assign_parm_setup_reg): Likewise.
966 * gcse-common.c (record_last_mem_set_info_common): Likewise.
967 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
968 (single_set_gcse): Likewise.
969 * ira.c (validate_equiv_mem): Likewise.
970 (update_equiv_regs): Use note_pattern_stores rather than note_stores
972 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
973 pattern to note_stores.
974 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
975 * loop-iv.c (simplify_using_initial_values): Likewise.
976 * mode-switching.c (optimize_mode_switching): Likewise.
977 * optabs.c (emit_libcall_block_1): Likewise.
978 (expand_atomic_compare_and_swap): Likewise.
979 * postreload-gcse.c (load_killed_in_block_p): Likewise.
980 (record_opr_changes): Likewise. Remove explicit handling of
981 CALL_INSN_FUNCTION_USAGE.
982 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
983 * regcprop.c (kill_clobbered_values): Likewise.
984 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
986 * regrename.c (build_def_use): Likewise.
987 * reload1.c (reload): Use note_pattern_stores instead of note_stores
988 for mark_not_eliminable.
989 (reload_as_needed): Pass the insn rather than its pattern
991 (emit_output_reload_insns): Likewise.
992 * resource.c (mark_target_live_regs): Likewise.
993 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
994 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
995 instead of note_stores.
996 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
997 its pattern to note_stores.
998 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
999 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
1001 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
1003 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
1004 than a #define. Use a structure rather than an array as the
1005 fallback definition. Remove special cases for low array sizes.
1006 (const_hard_reg_set): New typedef.
1007 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
1008 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
1009 (hard_reg_set_empty_p): Likewise.
1010 (SET_HARD_REG_BIT): Use a function rather than a macro to
1011 handle the case in which HARD_REG_SET is a structure.
1012 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
1013 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
1014 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
1015 (IOR_COMPL_HARD_REG_SET): Likewise.
1016 (hard_reg_set_iterator::pset): Constify the pointer target.
1017 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
1018 of a "const HARD_REG_SET". Update the handling of non-integer
1020 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
1021 * reload.h: Likewise.
1022 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
1023 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
1024 of a "const HARD_REG_SET".
1025 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
1026 (range_in_hard_reg_set_p): Likewise.
1027 * ira-costs.c (restrict_cost_classes): Likewise.
1028 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
1029 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
1030 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
1031 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
1032 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
1033 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
1034 take an unsigned int and open-code the HARD_REG_SET operations.
1036 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
1038 * Makefile.in (OBJS): Remove bt-load.o.
1039 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
1040 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
1041 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
1042 document that the option no longer does anything.
1043 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
1044 * target.def (branch_target_register_class): Delete.
1045 (branch_target_register_callee_saved): Likewise.
1046 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1047 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
1048 * doc/tm.texi: Regenerate.
1049 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
1050 (make_pass_branch_target_load_optimize2): Likewise.
1051 * passes.def (pass_branch_target_load_optimize1): Likewise.
1052 (pass_branch_target_load_optimize2): Likewise.
1053 * targhooks.h (default_branch_target_register_class): Likewise.
1054 * targhooks.c (default_branch_target_register_class): Likewise.
1055 * opt-suggestions.c (test_completion_valid_options): Remove
1056 -fbtr-bb-exclusive from the list of test options.
1057 * bt-load.c: Remove.
1059 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
1061 * match.pd: Add flag_unsafe_math_optimizations check
1062 before deciding on the widest type in a binary math operation.
1064 2019-09-09 Martin Liska <mliska@suse.cz>
1066 * config/i386/i386.opt: Update comment of removed
1067 options that are preserved only for backward
1070 2019-09-09 Jakub Jelinek <jakub@redhat.com>
1073 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
1077 * config/i386/avxintrin.h (__v32qs): New typedef.
1078 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
1081 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
1083 * doc/invoke.texi (Option Summary): Cover eBPF.
1084 (eBPF Options): New section.
1085 * doc/extend.texi (BPF Built-in Functions): Likewise.
1086 (BPF Kernel Helpers): Likewise.
1088 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
1090 * config.gcc: Support for bpf-*-* targets.
1091 * common/config/bpf/bpf-common.c: New file.
1092 * config/bpf/t-bpf: Likewise.
1093 * config/bpf/predicates.md: Likewise.
1094 * config/bpf/constraints.md: Likewise.
1095 * config/bpf/bpf.opt: Likewise.
1096 * config/bpf/bpf.md: Likewise.
1097 * config/bpf/bpf.h: Likewise.
1098 * config/bpf/bpf.c: Likewise.
1099 * config/bpf/bpf-protos.h: Likewise.
1100 * config/bpf/bpf-opts.h: Likewise.
1101 * config/bpf/bpf-helpers.h: Likewise.
1102 * config/bpf/bpf-helpers.def: Likewise.
1104 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
1106 * doc/sourcebuild.texi (Effective-Target Keywords): Document
1109 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
1111 * opt-functions.awk (integer_range_info): Make sure values are in
1112 numeric context before operating with them.
1114 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
1116 * genemit.c (gen_split): Print the filename and line number where the
1117 splitter (or peephole2) was defined, to the dump file.
1119 2019-09-07 Jakub Jelinek <jakub@redhat.com>
1121 PR tree-optimization/91665
1122 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
1123 incompatible with the type of PHI result.
1125 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1128 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
1129 gen_unaligned_storedi for 4-byte aligned addresses.
1131 2019-09-06 Jim Wilson <jimw@sifive.com>
1133 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
1136 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
1138 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
1140 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
1142 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
1143 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
1145 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
1148 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
1149 cost of SSE->integer and integer->SSE moves from 2 to 6.
1152 2019-09-06 Jakub Jelinek <jakub@redhat.com>
1154 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
1155 before testing TYPE_TRANSPARENT_AGGR.
1156 * calls.c (initialize_argument_information, load_register_parameters):
1159 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
1161 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
1163 (cmp_ior): Likewise.
1165 2019-09-06 Martin Liska <mliska@suse.cz>
1167 * doc/match-and-simplify.texi: Separate tuples with ;.
1169 2019-09-06 Martin Liska <mliska@suse.cz>
1172 * Makefile.in: Remove tlink.o.
1173 * collect2.c (do_link): New function isolated
1176 * collect2.h (do_tlink): Remove declaration of do_tlink.
1177 * doc/extend.texi: Remove documentation of -frepo.
1178 * doc/invoke.texi: Likewise.
1179 * doc/sourcebuild.texi: Remove cleanup-repo-files.
1182 2019-09-05 Jakub Jelinek <jakub@redhat.com>
1183 Jim Wilson <jimw@sifive.com>
1186 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
1187 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
1188 paradoxical_subreg_p (operands[0]).
1189 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
1190 use as intermediate value.
1192 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
1194 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
1195 (sync_compare_and_swap<mode>_insn): Likewise.
1197 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
1200 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
1201 without movmisalign optab.
1203 2019-09-05 Jakub Jelinek <jakub@redhat.com>
1208 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
1209 types, use type of their first field instead of type of
1212 2019-09-05 Richard Biener <rguenther@suse.de>
1214 PR rtl-optimization/91656
1215 * postreload-gcse.c (record_last_mem_set_info): Revert addition
1218 2019-09-05 Richard Biener <rguenther@suse.de>
1221 * tree-inline.c (declare_return_variable): Mark the return
1222 slot as addressable after building an address of it.
1224 2019-09-05 Arnaud Charlet <charlet@adacore.com>
1226 * doc/install.texi: Update and clarify requirements to build GNAT.
1228 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
1231 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
1232 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
1233 call to be in memory.
1234 (pass_expand::execute): Call discover_nonconstant_array_refs before
1235 setting currently_expanding_to_rtl.
1237 2019-09-04 Caroline Tice <cmtice@google.com>
1239 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
1242 2019-09-04 Marek Polacek <polacek@redhat.com>
1244 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
1246 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
1249 * config/i386/i386.c (inline_secondary_memory_needed): Return true
1250 for QI and HImode moves between SSE and general registers.
1252 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1255 * doc/invoke.texi: Document -Wenum-conversion.
1257 2019-09-04 Richard Biener <rguenther@suse.de>
1259 PR rtl-optimization/36262
1260 * postreload-gcse.c: Include intl.h and gcse.h.
1261 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
1262 to avoid linear list walk.
1263 (record_last_mem_set_info): Gate off if not computing transparentness.
1264 (get_bb_avail_insn): If transparentness isn't computed give up
1266 (gcse_after_reload_main): Skip compute_transp and extended PRE
1267 if gcse_or_cprop_is_too_expensive says so.
1269 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1271 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
1273 (msp430_select_section): Handle decls with the "noinit" attribute with
1274 default_elf_select_section.
1275 Handle SECCAT_RODATA_MERGE_* section types with
1276 default_elf_select_section.
1277 Add comments about handling of unsupported section types.
1278 (msp430_section_type_flags): Remove handling of the noinit section.
1280 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1282 * config/msp430/msp430.c (msp430_attr): Remove warnings about
1283 conflicting msp430-specific attributes.
1284 (msp430_section_attr): Likewise.
1285 Add warnings about conflicts with generic "noinit" and "section"
1287 Fix grammar in -mlarge error message.
1288 (msp430_data_attr): Rename to msp430_persist_attr.
1289 Add warnings about conflicts with generic "noinit" and "section"
1291 Add warning for when variable is not initialized.
1292 Chain conditionals which prevent the attribute being added.
1293 (ATTR_EXCL): New helper.
1294 (attr_reent_exclusions): New exclusion table.
1295 (attr_naked_exclusions): Likewise.
1296 (attr_crit_exclusions): Likewise.
1297 (attr_lower_exclusions): Likewise.
1298 (attr_upper_exclusions): Likewise.
1299 (attr_either_exclusions): Likewise.
1300 (attr_persist_exclusions): Likewise.
1301 (msp430_attribute_table): Update with exclusion rules.
1302 (msp430_output_aligned_decl_common): Don't output common symbol if decl
1305 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1307 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
1308 (msp430_handle_generic_attribute): New function.
1309 * doc/tm.texi: Regenerate.
1310 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
1311 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
1312 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
1313 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
1315 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
1317 PR tree-optimization/91504
1318 * match.pd: Add ((~a & b) ^a) --> (a | b).
1320 2019-09-03 Jakub Jelinek <jakub@redhat.com>
1323 * config/i386/i386-expand.c (split_double_mode): If there is more than
1324 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
1325 already split matching MEM operand instead of calling adjust_address
1328 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
1330 * config.gcc: Obsolete spu target. Remove references to spu.
1331 * configure.ac: Remove references to spu.
1332 * configure: Regenerate.
1333 * config/spu/: Remove directory.
1334 * common/config/spu/: Remove directory.
1336 * doc/extend.texi: Remove references to spu.
1337 * doc/invoke.texi: Likewise.
1338 * doc/md.texi: Likewise.
1339 * doc/sourcebuild.texi: Likewise.
1341 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1346 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
1347 and SSA_NAME referring to CONSTANT_P correctly.
1349 2019-09-03 Richard Biener <rguenther@suse.de>
1351 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
1352 (vn_nary_op_insert): Likewise.
1353 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
1354 (vn_nary_op_lookup): Likewise.
1355 (vn_nary_op_insert): Likewise.
1357 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
1359 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
1360 (*op0, 1) instead of XEXP (*op1, 0).
1362 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1364 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
1365 (aarch64_fjcvtzs): New define_insn.
1366 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
1367 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
1369 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
1370 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
1371 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1372 __ARM_FEATURE_JCVT where appropriate.
1373 * config/aarch64/arm_acle.h (__jcvt): Define.
1375 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1377 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
1378 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
1379 (aarch64_<frintnzs_op><mode>): New define_insn.
1380 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
1381 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1382 __ARM_FEATURE_FRINT when appropriate.
1383 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
1384 frint32x, frint64z, frint64x.
1385 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
1386 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
1387 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
1388 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
1389 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
1390 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
1391 * config/aarch64/iterators.md (VSFDF): Define.
1392 (FRINTNZX): Likewise.
1393 (frintnzs_op): Likewise.
1395 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
1397 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
1398 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
1400 * config/aarch64/aarch64-tune.md: Regenerated.
1401 * doc/invoke.texi: Document the new processors.
1403 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1405 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
1409 (sve2-sm4): Likewise.
1411 (svesha3): Likewise.
1412 (svebitperm): Likewise.
1414 2019-09-03 Jakub Jelinek <jakub@redhat.com>
1415 Richard Biener <rguenther@suse.de>
1417 PR tree-optimization/91597
1418 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
1419 BIT_AND_EXPR optimization for pointers, even if both operand
1420 ranges don't include NULL, the result can be NULL.
1422 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1425 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
1426 (non_mem_decl_p): ...this.
1427 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
1428 (expand_assignment): Call mem_ref_referes_to_non_mem_p
1429 unconditionally as before.
1431 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
1434 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
1435 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
1436 * tree.def (LTGT_EXPR): Likewise.
1437 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
1439 2019-09-02 Jakub Jelinek <jakub@redhat.com>
1442 * fold-const.c (range_check_type): For enumeral and boolean
1443 type, pass 1 to type_for_size langhook instead of
1444 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
1445 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
1446 (build_range_check): Don't call unsigned_type_for for pointer types.
1447 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
1448 range_check_type result.
1450 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
1452 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
1453 (replace_ref): Do not replace a chain of only two candidates which are
1454 valid memory references.
1456 2019-09-02 Martin Liska <mliska@suse.cz>
1458 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
1459 Bail out when we'll end up with the same number of clusters as
1461 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
1462 (jump_table_cluster::can_be_handled): Remove the guard
1463 as it's already handled in ::is_enabled. Allocate output
1464 after early bail out.
1466 2019-09-02 Martin Liska <mliska@suse.cz>
1468 PR gcov-profile/91601
1469 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
1470 (path_contains_zero_or_negative_cycle_arc): ... this and handle
1471 also negative edges.
1472 (circuit): Handle also negative edges as they can happen
1475 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
1478 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
1479 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
1480 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
1482 2019-09-01 Jakub Jelinek <jakub@redhat.com>
1485 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
1486 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
1487 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
1491 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
1492 GIMPLE_ASM TREE_LIST operands.
1494 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
1496 * doc/generic.texi (Unary and Binary Expressions): Mark up
1497 an instance of TYPE_MIN.
1499 2019-08-31 Stafford Horne <shorne@gmail.com>
1501 * config/or1k/constraints.md (t): New constraint.
1502 * config/or1k/or1k.h (GOT_REGS): New register class.
1503 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
1505 2019-08-30 Jim Wilson <jimw@sifive.com>
1507 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
1508 and -fpic and -mplt then disable -msave-restore and warn.
1510 2019-08-30 Martin Sebor <msebor@redhat.com>
1513 * tree-ssa-strlen.c (handle_store): Use a fallback location if
1514 the statement doesn't have one.
1515 * gimple-pretty-print.c (percent_G_format): Same.
1518 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
1519 before using them to validate MEM_REF offset.
1521 2019-08-30 Marek Polacek <polacek@redhat.com>
1523 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
1525 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
1527 * config/arm/arm.md (unaligned_loaddi,
1528 unaligned_storedi): New unspec insn patterns.
1529 * config/arm/neon.md (unaligned_storev8qi): Likewise.
1530 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
1531 and unaligned_storedi for 4-byte aligned memory.
1532 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
1533 4-byte aligned memory.
1535 2019-08-30 Martin Jambor <mjambor@suse.cz>
1537 tree-optimization/91579
1538 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
1539 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
1541 (arg_needs_copy_p): Removed.
1542 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
1544 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
1546 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
1548 * config/i386/i386-features.c
1549 (general_scalar_chain::compute_convert_gain):
1550 Correct cost for double-word shifts.
1551 (general_scalar_to_vector_candidate_p): Reject count operands
1552 greater or equal to mode bitsize.
1554 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
1556 * config/i386/i386.c (inline_secondary_memory_needed): Return true
1557 for moves between SSE and non-general registers and between
1558 mask and non-general registers.
1559 (ix86_register_move_cost): Remove stalled comment.
1561 2019-08-29 Richard Biener <rguenther@suse.de>
1563 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
1564 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
1566 2019-08-29 Richard Biener <rguenther@suse.de>
1569 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
1570 Do not emit scalar copies for debug-insns, instead replace
1571 their uses with the reg copy used in the chain or reset them
1572 if there is a reaching definition outside of the chain as well.
1574 2019-08-29 Jakub Jelinek <jakub@redhat.com>
1577 * config/i386/i386-expand.c (expand_vec_perm_movs,
1578 expand_vec_perm_blend, expand_vec_perm_vpermil,
1579 expand_vec_perm_pshufb, expand_vec_perm_1,
1580 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
1581 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
1582 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
1583 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
1584 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
1585 comments - replace ix86_expand_vec_perm_builtin_1 with
1586 ix86_expand_vec_perm_const_1.
1587 (expand_vec_perm2_vperm2f128_vblend): New function.
1588 (ix86_expand_vec_perm_const_1): New forward declaration. Call
1589 expand_vec_perm2_vperm2f128_vblend as last resort.
1590 (canonicalize_perm): Formatting fix.
1592 PR tree-optimization/91351
1593 * tree-cfg.c (generate_range_test): Use range_check_type instead of
1595 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
1596 range_check_type returns NULL.
1597 * tree-switch-conversion.c (switch_conversion::build_one_array):
1598 Use range_check_type instead of unsigned_type_for, don't perform
1599 linear opt if it returns NULL.
1600 (bit_test_cluster::find_bit_tests): Formatting fix.
1601 (bit_test_cluster::emit): Use range_check_type instead of
1603 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
1606 2019-08-29 Richard Biener <rguenther@suse.de>
1608 PR tree-optimization/91568
1609 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
1610 (vect_update_max_nunits): Add overload for poly_uint64.
1611 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
1612 (vect_build_slp_tree): Record max_nunits into the subtree
1613 and merge it upwards.
1614 (vect_print_slp_tree): Print max_nunits.
1616 2019-08-28 Marek Polacek <polacek@redhat.com>
1618 Implement P1152R4: Deprecating some uses of volatile.
1620 * doc/invoke.texi: Document -Wvolatile.
1622 2019-08-28 Marek Polacek <polacek@redhat.com>
1624 PR c++/91360 - Implement C++20 P1143R2: constinit.
1625 * doc/invoke.texi: Document -Wc++20-compat.
1627 2019-08-28 Martin Sebor <msebor@redhat.com>
1629 PR tree-optimization/91457
1630 * builtins.c (component_size): New function.
1631 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
1632 * builtins.h (compute_objsize): Add argument.
1633 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
1634 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
1635 (vrp_prop::check_mem_ref): Same.
1636 (vrp_prop::search_for_addr_array): Set no-warning bit.
1637 (check_array_bounds): Same.
1639 2019-08-28 Martin Sebor <msebor@redhat.com>
1642 * opts-common.c (option_enabled): Correct checking for language
1645 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
1647 * config/i386/i386.c (ix86_register_move_cost): Do not
1648 limit the cost of moves to/from XMM register to minimum 8.
1650 2019-08-28 Martin Jambor <mjambor@suse.cz>
1653 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
1654 checking assert a normal assert to test it really is redundant.
1655 * ipa-prop.c (compute_complex_assign_jump_func): Removed
1657 (update_jump_functions_after_inlining): Removed combining unary
1658 arithmetic operations with an ancestor jump function.
1659 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
1662 2019-08-28 Richard Biener <rguenther@suse.de>
1664 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
1667 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
1668 Richard Biener <rguenther@suse.de>
1670 * expr.c (expand_assignment): Handle misaligned DECLs.
1671 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
1672 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
1674 (assign_parm_setup_stack): Allocate properly aligned stack slots.
1675 * varasm.c (build_constant_desc): Align constants of misaligned types.
1676 * config/arm/predicates.md (aligned_operand): New predicate.
1677 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
1678 aligned_operand to check restrictions on memory addresses.
1679 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
1680 * config/arm/vec-common.md (mov<VALL>): Likewise.
1682 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1685 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
1686 V_128 iterator instead of VI_128.
1688 2019-08-28 Martin Liska <mliska@suse.cz>
1690 PR tree-optimization/90970
1691 * builtins.c (check_access): Remove assignment to maxread
1692 as it hasn't been used since when it was introduced in r255755.
1694 2019-08-27 Martin Sebor <msebor@redhat.com>
1696 PR tree-optimization/91567
1697 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
1699 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
1702 2019-08-27 Jeff Law <law@redhat.com>
1704 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
1705 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
1707 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
1710 * config/i386/i386-features.c (convert_scalars_to_vector):
1711 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
1712 crtl->stack_realign_processed. Update crtl->drap_reg by calling
1713 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
1714 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
1716 2019-08-27 Richard Biener <rguenther@suse.de>
1718 * config/i386/i386-features.h
1719 (general_scalar_chain::~general_scalar_chain): Add.
1720 (general_scalar_chain::insns_conv): New bitmap.
1721 (general_scalar_chain::n_sse_to_integer): New.
1722 (general_scalar_chain::n_integer_to_sse): Likewise.
1723 (general_scalar_chain::make_vector_copies): Adjust signature.
1724 * config/i386/i386-features.c
1725 (general_scalar_chain::general_scalar_chain): Outline,
1726 initialize new members.
1727 (general_scalar_chain::~general_scalar_chain): New.
1728 (general_scalar_chain::mark_dual_mode_def): Record insns
1729 we need to insert conversions at and count them.
1730 (general_scalar_chain::compute_convert_gain): Account
1731 for conversion instructions at chain boundary.
1732 (general_scalar_chain::make_vector_copies): Generate a single
1733 copy for a def by a specific insn.
1734 (general_scalar_chain::convert_registers): First populate
1735 defs_map, then make copies at out-of chain insns.
1737 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
1739 * config/arm/arm.md (stack_protect_set_insn): Add security-related
1741 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
1743 2019-08-27 Martin Liska <mliska@suse.cz>
1745 * cgraph.c (cgraph_node::remove): Remove dead assignment before
1747 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
1748 Enclose in anonymous namespace.
1749 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
1750 hard_register initialization in braces.
1751 * tree-vrp.h (value_range_base::supports_type_p): Return false
1752 for function with boolean return type.
1754 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
1756 * config/i386/i386.c (emit_i387_cw_initialization)
1757 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
1759 2019-08-26 Martin Sebor <msebor@redhat.com>
1762 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
1763 (sprintf_dom_walker): Remove class.
1764 (get_int_range): Make argument const.
1765 (directive::fmtfunc, directive::set_precision): Same.
1766 (format_none): Same.
1767 (build_intmax_type_nodes): Same.
1768 (adjust_range_for_overflow): Same.
1769 (format_floating): Same.
1770 (format_character): Same.
1771 (format_string): Same.
1772 (format_plain): Same.
1773 (get_int_range): Cast away constness.
1774 (format_integer): Same.
1775 (get_string_length): Call get_range_strlen_dynamic. Handle
1776 null lendata.maxbound.
1777 (should_warn_p): Adjust argument scope qualifier.
1779 (format_directive): Same.
1780 (parse_directive): Same.
1781 (is_call_safe): Same.
1782 (try_substitute_return_value): Same.
1783 (sprintf_dom_walker::handle_printf_call): Rename...
1784 (handle_printf_call): ...to this. Initialize target to host charmap
1785 here instead of in pass_sprintf_length::execute.
1786 (struct call_info): Make global.
1787 (sprintf_dom_walker::compute_format_length): Make global.
1788 (sprintf_dom_walker::handle_gimple_call): Same.
1789 * passes.def (pass_sprintf_length): Replace with pass_strlen.
1790 * print-rtl.c (print_pattern): Reduce the number of spaces to
1791 avoid -Wformat-truncation.
1792 * tree-pass.h (make_pass_warn_printf): New function.
1793 * tree-ssa-strlen.c (strlen_optimize): New variable.
1794 (get_string_length): Add comments.
1795 (get_range_strlen_dynamic): New function.
1796 (check_and_optimize_call): New function.
1797 (handle_integral_assign): New function.
1798 (strlen_check_and_optimize_stmt): Factor code out into
1799 strlen_check_and_optimize_call and handle_integral_assign.
1800 (strlen_dom_walker::evrp): New member.
1801 (strlen_dom_walker::before_dom_children): Use evrp member.
1802 (strlen_dom_walker::after_dom_children): Use evrp member.
1803 (printf_strlen_execute): New function.
1804 (pass_strlen::gate): Update to handle printf calls.
1805 (dump_strlen_info): New function.
1806 (pass_data_warn_printf): New variable.
1807 (pass_warn_printf): New class.
1808 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
1809 (handle_printf_call): Same.
1810 * tree-vrp.c (value_range_base::type): Adjust assertion.
1811 * vr-values.c (vr_values::update_value_range): Use type of the first
1812 argument rather than the second.
1814 2019-08-26 Richard Biener <rguenther@suse.de>
1816 * config/i386/i386-features.c (general_remove_non_convertible_regs):
1818 (convert_scalars_to_vector): Do not call it.
1820 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
1821 Uros Bizjak <ubizjak@gmail.com>
1823 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
1824 CASE_MATHFN_FLOATN for roundeven.
1825 * config/i386/i386.c (ix86_i387_mode_needed): Add case
1827 (ix86_mode_needed): Likewise.
1828 (ix86_mode_after): Likewise.
1829 (ix86_mode_entry): Likewise.
1830 (ix86_mode_exit): Likewise.
1831 (ix86_emit_mode_set): Likewise.
1832 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
1833 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
1834 (ix86_entity): Add I387_ROUNDEVEN.
1835 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
1836 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
1837 (define_int_iterator): Likewise.
1838 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
1839 (define_constant): Define ROUND_ROUNDEVEN mode.
1840 (define_attr): Add roundeven mode for i387_cw.
1841 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
1842 * internal-fn.def (ROUNDEVEN): New builtin function.
1843 * optabs.def (roundeven_optab): New optab.
1845 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
1847 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
1849 * builtins.def: Added function definitions for roundeven function
1851 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
1852 function call. Adjust condition for floor, ceil, trunc and round.
1853 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
1854 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
1855 (integer_valued_real_call_p): Added case for roundeven function.
1856 * real.c (is_even): New function. Returns true if real number is even,
1857 otherwise returns false.
1858 (is_halfway_below): New function. Returns true if real number is
1859 halfway between two integers, else return false.
1860 (real_roundeven): New function. Round real number to nearest integer,
1861 rounding halfway cases towards even.
1862 * real.h (real_value): Added descriptive comments. Added function
1863 declaration for roundeven function.
1864 * doc/extend.texi (Other Builtins): List roundeven variants among
1865 functions which can be handled as builtins.
1867 2019-08-26 Richard Biener <rguenther@suse.de>
1871 * config/i386/i386-features.h (general_scalar_chain::defs_map):
1873 (general_scalar_chain::replace_with_subreg): Remove.
1874 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
1875 (general_scalar_chain::convert_reg): Adjust signature.
1876 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
1877 iterate over all defs of a reg.
1878 (general_scalar_chain::replace_with_subreg): Remove.
1879 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
1880 (general_scalar_chain::make_vector_copies): Populate defs_map,
1881 place copy only after defs that are used as vectors in the chain.
1882 (general_scalar_chain::convert_reg): Emit a copy for a specific
1883 def in a specific instruction.
1884 (general_scalar_chain::convert_op): All reg uses are converted here.
1885 (general_scalar_chain::convert_insn): Emit copies for scalar
1886 uses of defs here. Replace uses with the copies we created.
1887 Replace and convert the def. Adjust REG_DEAD notes, remove
1888 REG_EQUIV/EQUAL notes.
1889 (general_scalar_chain::convert_registers): Only handle copies
1890 into the chain here.
1892 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
1894 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
1896 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
1898 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
1899 Add nop_convert case.
1900 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
1901 Fold all statements if requested.
1902 * tree-ssa-propagate.h (class substitute_and_fold_engine):
1903 Allow to fold all statements.
1904 * tree-vrp.c (class vrp_folder):
1905 Let substitute_and_fold_engine fold all statements.
1907 2019-08-26 Richard Biener <rguenther@suse.de>
1909 PR tree-optimization/91526
1910 * passes.def: Note that after late FRE we do TODO_update_address_taken.
1911 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
1912 TODO_update_address_taken.
1914 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
1916 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
1919 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
1921 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
1922 machine mode for unspec_volatile operand.
1924 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
1926 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
1927 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
1928 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
1929 (prefer_neon_for_64bits): Remove.
1930 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
1931 (tune_params): Remove PREF_NEON_64_FALSE uses.
1932 (arm_option_override): Remove prefer_neon selection code.
1933 (arm_print_tune_info): Remove prefer_neon_for_64bits.
1934 * gcc/config/arm/arm-protos.h (tune_params): Remove
1935 prefer_neon_for_64bits.
1936 (prefer_neon_for_64bits): Remove.
1938 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
1941 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
1942 and issue any diagnostics needed before collecting the pre-PCH
1945 2019-08-23 Jakub Jelinek <jakub@redhat.com>
1948 * common.opt (fexcess-precision=): Add Optimization flag. Use
1949 flag_excess_precision variable instead of
1950 flag_excess_precision_cmdline.
1951 * flags.h (class target_flag_state): Remove x_flag_excess_precision
1953 (flag_excess_precision): Don't define.
1954 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
1955 flag_excess_precision_cmdline. Remove comment.
1956 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
1957 and x_flag_excess_precision instead of
1958 frontend_set_flag_excess_precision_cmdline and
1959 x_flag_excess_precision_cmdline.
1960 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
1961 x_flag_excess_precision_cmdline.
1962 * toplev.c (init_excess_precision): Remove.
1963 (lang_dependent_init_target): Don't call it.
1965 2019-08-23 Martin Liska <mliska@suse.cz>
1967 * lto-wrapper.c (run_gcc): When setting jobserver
1968 set also parallel to 1. This was done so before r273908.
1970 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
1972 * config/arm/arm-cpus.in (cortex-m35p): New entry.
1973 (cortex-a76ae): Likewise.
1974 (cortex-a77): Likewise
1975 * config/arm/arm-tables.opt: Regenerate.
1976 * config/arm/arm-tune.md: Likewise.
1977 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
1978 cortex-a77 CPU options.
1980 2019-08-23 Martin Liska <mliska@suse.cz>
1982 * profile.c (instrument_values): Do not set
1984 * tree-profile.c (gimple_gen_interval_profiler): Remove
1986 (gimple_gen_pow2_profiler): Likewise.
1987 (gimple_gen_topn_values_profiler): Likewise.
1988 (gimple_gen_ic_profiler): Likewise.
1989 (gimple_gen_time_profiler): Likewise.
1990 (gimple_gen_average_profiler): Likewise.
1991 (gimple_gen_ior_profiler): Likewise.
1992 * value-prof.c (dump_histogram_value): Use default
1993 in switch statement instead of HIST_TYPE_MAX.
1994 (stream_in_histogram_value): Likewise.
1995 (gimple_duplicate_stmt_histograms): Do not
1996 use NULL for implicitly set arguments.
1997 (gimple_divmod_values_to_profile): Do not use
1999 (gimple_indirect_call_to_profile): Likewise.
2000 (gimple_find_values_to_profile): Use implicit
2001 function call arguments.
2002 * value-prof.h (gimple_alloc_histogram_value):
2004 (gimple_gen_interval_profiler): Remove last argument.
2005 (gimple_gen_pow2_profiler): Likewise.
2006 (gimple_gen_topn_values_profiler): Likewise.
2007 (gimple_gen_ic_profiler): Likewise.
2008 (gimple_gen_time_profiler): Likewise.
2009 (gimple_gen_average_profiler): Likewise.
2010 (gimple_gen_ior_profiler): Likewise.
2012 2019-08-22 Martin Sebor <msebor@redhat.com>
2015 * builtins.c (c_strlen): Rename argument and introduce new local.
2016 Set no-warning bit on original argument.
2017 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
2018 Fold empty and zero constructors into empty strings.
2019 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
2020 for missing initializers.
2021 * tree.c (build_string_literal): Handle optional argument.
2022 * tree.h (build_string_literal): Add defaulted argument.
2023 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
2024 no-warning bit on original expression.
2026 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
2029 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
2030 and UNSPEC_DARN_RAW.
2031 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
2033 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
2034 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
2035 (darn): Use an unspec_volatile, and UNSPECV_DARN.
2037 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
2039 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
2040 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
2041 * config/rs6000/rs6000.md (unspec): ... here.
2042 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
2043 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
2044 cmpeqb, *cmpeqb_internal): Delete, move to...
2045 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
2046 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
2047 cmpeqb, *cmpeqb_internal): ... here.
2049 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2051 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
2052 intrinsics if __ARM_FP.
2053 Use __ARM_FEATURE_CRC32 ifdef guard.
2055 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
2057 * config/arm/arm.md (neon_for_64bits): Remove.
2058 (avoid_neon_for_64bits): Remove.
2059 (arm_adddi3): Always split early.
2060 (arm_subdi3): Always split early.
2061 (negdi2): Remove Neon expansion.
2062 (split zero_extend): Split before reload.
2063 (split sign_extend): Split before reload.
2065 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
2067 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
2068 (qhs_extenddi_cstr): Likewise.
2069 * config/arm/arm.md (ashldi3): Always expand early.
2070 (ashlsi3): Likewise.
2071 (ashrsi3): Likewise.
2072 (zero_extend<mode>di2): Remove Neon variants.
2073 (extend<mode>di2): Likewise.
2074 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
2075 (signed_shift_di3_neon): Likewise.
2076 (unsigned_shift_di3_neon): Likewise.
2077 (ashrdi3_neon_imm_noclobber): Likewise.
2078 (lshrdi3_neon_imm_noclobber): Likewise.
2079 (<shift>di3_neon): Likewise.
2080 (split extend): Remove DI extend split patterns.
2082 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
2084 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
2085 (split not): Add DImode not splitter.
2086 (anddi3): Remove pattern.
2087 (anddi3_insn): Likewise.
2088 (anddi_zesidi_di): Likewise.
2089 (anddi_sesdi_di): Likewise.
2090 (anddi_notdi_di): Likewise.
2091 (anddi_notzesidi_di): Likewise.
2092 (anddi_notsesidi_di): Likewise.
2094 (iordi3_insn): Likewise.
2095 (iordi_zesidi_di): Likewise.
2096 (iordi_sesidi_di): Likewise.
2098 (xordi3_insn): Likewise.
2099 (xordi_sesidi_di): Likewise.
2100 (xordi_zesidi_di): Likewise.
2101 (one_cmpldi2): Likewise.
2102 (one_cmpldi2_insn): Likewise.
2103 * config/arm/constraints.md: Remove De, Df, Dg constraints.
2104 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
2106 (iwmmxt_xordi3): Likewise.
2107 (iwmmxt_anddi3): Likewise.
2108 * config/arm/neon.md (orndi3_neon): Remove pattern.
2109 (anddi_notdi_di): Likewise.
2110 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
2111 (arm_iordi_operand_neon): Likewise.
2112 (arm_xordi_operand_neon): Likewise.
2113 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
2114 (iordi_notzesidi_di): Likewise.
2115 (iordi_notdi_zesidi): Likewise.
2116 (iordi_notsesidi_di): Likewise.
2118 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
2120 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
2122 (iorsi3_compare0_scratch): Likewise.
2124 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
2126 * config/aarch64/aarch64-simd-builtins.def:
2129 * config/aarch64/aarch64-simd.md:
2130 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
2131 (aarch64_st1x4<VALLDIF:mode>): Likewise.
2132 (aarch64_ld1_x4_<mode>): Likewise.
2133 (aarch64_st1_x4_<mode>): Likewise.
2134 * config/aarch64/arm_neon.h:
2135 (vld1_s8_x4): New function.
2136 (vld1q_s8_x4): Likewise.
2137 (vld1_s16_x4): Likewise.
2138 (vld1q_s16_x4): Likewise.
2139 (vld1_s32_x4): Likewise.
2140 (vld1q_s32_x4): Likewise.
2141 (vld1_u8_x4): Likewise.
2142 (vld1q_u8_x4): Likewise.
2143 (vld1_u16_x4): Likewise.
2144 (vld1q_u16_x4): Likewise.
2145 (vld1_u32_x4): Likewise.
2146 (vld1q_u32_x4): Likewise.
2147 (vld1_f16_x4): Likewise.
2148 (vld1q_f16_x4): Likewise.
2149 (vld1_f32_x4): Likewise.
2150 (vld1q_f32_x4): Likewise.
2151 (vld1_p8_x4): Likewise.
2152 (vld1q_p8_x4): Likewise.
2153 (vld1_p16_x4): Likewise.
2154 (vld1q_p16_x4): Likewise.
2155 (vld1_s64_x4): Likewise.
2156 (vld1_u64_x4): Likewise.
2157 (vld1_p64_x4): Likewise.
2158 (vld1q_s64_x4): Likewise.
2159 (vld1q_u64_x4): Likewise.
2160 (vld1q_p64_x4): Likewise.
2161 (vld1_f64_x4): Likewise.
2162 (vld1q_f64_x4): Likewise.
2163 (vst1_s8_x4): Likewise.
2164 (vst1q_s8_x4): Likewise.
2165 (vst1_s16_x4): Likewise.
2166 (vst1q_s16_x4): Likewise.
2167 (vst1_s32_x4): Likewise.
2168 (vst1q_s32_x4): Likewise.
2169 (vst1_u8_x4): Likewise.
2170 (vst1q_u8_x4): Likewise.
2171 (vst1_u16_x4): Likewise.
2172 (vst1q_u16_x4): Likewise.
2173 (vst1_u32_x4): Likewise.
2174 (vst1q_u32_x4): Likewise.
2175 (vst1_f16_x4): Likewise.
2176 (vst1q_f16_x4): Likewise.
2177 (vst1_f32_x4): Likewise.
2178 (vst1q_f32_x4): Likewise.
2179 (vst1_p8_x4): Likewise.
2180 (vst1q_p8_x4): Likewise.
2181 (vst1_p16_x4): Likewise.
2182 (vst1q_p16_x4): Likewise.
2183 (vst1_s64_x4): Likewise.
2184 (vst1_u64_x4): Likewise.
2185 (vst1_p64_x4): Likewise.
2186 (vst1q_s64_x4): Likewise.
2187 (vst1q_u64_x4): Likewise.
2188 (vst1q_p64_x4): Likewise.
2189 (vst1_f64_x4): Likewise.
2190 (vst1q_f64_x4): Likewise.
2192 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2194 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
2196 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2197 Richard Sandiford <richard.sandiford@arm.com>
2200 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
2201 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
2203 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2206 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
2207 in reg if it fails aarch64_plus_operand predicate.
2209 2019-08-21 Richard Biener <rguenther@suse.de>
2211 PR tree-optimization/91482
2212 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
2213 BUILT_IN_ASSUME_ALIGNED calls.
2215 2019-08-21 Richard Biener <rguenther@suse.de>
2219 * config/i386/i386-features.c
2220 (general_scalar_chain::make_vector_copies): Copy stack temporary
2221 rtx when using it multiple times.
2222 (general_scalar_chain::convert_reg): Likewise.
2224 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
2226 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
2228 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
2230 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
2231 catch more redundant zero initialization cases.
2232 (dse_dom_walker::dse_optimize_stmt): Likewise.
2234 2019-08-20 Richard Biener <rguenther@suse.de>
2237 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
2238 by collect2 when targetm.have_ctors_dtors which avoids dragging
2239 in temporary filenames from LTO input objects.
2241 2019-08-20 Richard Biener <rguenther@suse.de>
2243 PR tree-optimization/37242
2244 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
2245 to (T)a + (T)b if we know that a + b does not overflow.
2247 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
2249 PR rtl-optimization/91347
2250 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
2251 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
2253 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2255 * calls.h (function_arg_info): Add a pass_by_reference field,
2256 defaulting to false.
2257 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
2258 when applying pass-by-reference semantics.
2259 (initialize_argument_information): Likewise.
2260 (emit_library_call_value_1): Likewise.
2261 * function.c (assign_parm_data_one): Remove passed_pointer field.
2262 (assign_parm_find_data_types): Don't set it.
2263 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
2264 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
2265 arg.pass_by_reference instead of passed_pointer.
2267 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2269 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
2270 into a single function_arg_info, updating its fields when we
2271 apply pass-by-reference and promotion semantics. Use the
2272 function_arg_info to track the mode rather than keeping it in
2273 a separate local variable.
2274 (initialize_argument_information): Likewise. Base the final
2275 arg_to_skip on this new function_arg_info rather than creating
2276 a new one from scratch.
2278 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2280 * function.c (assign_parm_data_one): Replace passed_type,
2281 promoted_mode and named_arg with a function_arg_info field.
2282 (assign_parm_find_data_types): Remove local variables and
2283 assign directly to "data". Make data->passed_mode shadow
2284 data->arg.mode until promotion, then assign the promoted
2285 mode to data->arg.mode.
2286 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
2287 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
2288 (assign_parm_remove_parallels, assign_parm_setup_block_p)
2289 (assign_parm_setup_block, assign_parm_setup_reg)
2290 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
2291 arg.mode instead of promoted_mode, arg.type instead of passed_type
2292 and arg.named instead of named_arg. Use data->arg for
2293 function_arg_info structures that had the field values passed_type,
2294 promoted_mode and named_arg. Base other function_arg_infos on
2295 data->arg, changing the necessary properties.
2297 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2299 * calls.h (apply_pass_by_reference_rules): Declare.
2300 * calls.c (apply_pass_by_reference_rules): New function.
2301 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
2302 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
2303 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2304 * function.c (assign_parm_find_data_types): Likewise.
2305 * var-tracking.c (prepare_call_arguments): Likewise.
2307 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2309 * target.def (must_pass_in_stack): Take a function_arg_info instead
2310 of a mode and a type.
2311 * doc/tm.texi: Regenerate.
2312 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
2313 instead of a mode and a type.
2314 (must_pass_in_stack_var_size_or_pad): Likewise.
2315 * calls.c (must_pass_in_stack_var_size): Likewise.
2316 (must_pass_in_stack_var_size_or_pad): Likewise.
2317 (initialize_argument_information): Update call to
2318 targetm.calls.must_pass_in_stack.
2319 (must_pass_va_arg_on_stack): Likewise.
2320 * function.c (assign_parm_find_entry_rtl): Likewise.
2321 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
2322 * config/alpha/alpha.c (alpha_function_arg): Likewise.
2323 (alpha_function_arg_advance): Likewise.
2324 * config/cr16/cr16.c (cr16_function_arg): Likewise.
2325 (cr16_function_arg_advance): Likewise.
2326 * config/cris/cris.c (cris_pass_by_reference): Likewise.
2327 (cris_arg_partial_bytes): Likewise.
2328 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
2329 * config/lm32/lm32.c (lm32_function_arg): Likewise.
2330 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
2331 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
2332 * config/mips/mips.c (mips_pass_by_reference): Likewise.
2333 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
2334 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
2335 * config/sh/sh.c (sh_pass_by_reference): Likewise.
2336 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
2337 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
2338 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
2339 instead of a mode and a type.
2340 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
2341 (fr30_num_arg_regs): Likewise.
2342 (fr30_setup_incoming_varargs): Update calls accordingly.
2343 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
2344 (fr30_function_arg_advance): Likewise.
2345 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
2346 instead of a mode and a type.
2347 * config/gcn/gcn.c (num_arg_regs): Likewise.
2348 (gcn_function_arg, gcn_function_arg_advance): Update calls to
2349 num_arg_regs and targetm.calls.must_pass_in_stack.
2350 (gcn_arg_partial_bytes): Likewise.
2351 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
2352 function_arg_info instead of a mode and a type.
2353 (classify_argument): Update call accordingly.
2354 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
2355 function_arg_info instead of a mode and a type.
2356 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
2358 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
2359 (rs6000_parm_needs_stack): Update call accordingly.
2360 (setup_incoming_varargs): Likewise.
2362 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2364 * target.def (callee_copies): Take a function_arg_info instead
2365 of a mode, type and named flag.
2366 * doc/tm.texi: Regenerate.
2367 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
2368 instead of a mode, type and named flag.
2369 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
2370 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2371 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
2372 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
2373 instead of a mode, type and named flag.
2374 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
2375 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2376 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
2377 * calls.h (reference_callee_copied): Take a function_arg_info
2378 instead of a mode, type and named flag.
2379 * calls.c (reference_callee_copied): Likewise.
2380 (initialize_argument_information): Update call accordingly.
2381 (emit_library_call_value_1): Likewise.
2382 * function.c (gimplify_parameters): Likewise.
2383 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
2384 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
2385 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
2386 * config/c6x/c6x.c (c6x_callee_copies): Delete.
2387 (TARGET_CALLEE_COPIES): Define to
2388 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
2389 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
2390 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
2391 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
2392 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
2393 instead of a mode, type and named flag.
2394 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
2395 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
2396 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
2397 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
2398 * config/msp430/msp430.c (msp430_callee_copies): Delete.
2399 (TARGET_CALLEE_COPIES): Define to
2400 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
2401 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
2402 instead of a mode, type and named flag.
2403 * config/sh/sh.c (sh_callee_copies): Likewise.
2404 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
2405 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
2406 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
2408 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2410 * target.def (function_arg_advance): Take a function_arg_info instead
2411 of a mode, type and named flag.
2412 * doc/tm.texi: Regenerate.
2413 * targhooks.h (default_function_arg_advance): Take a function_arg_info
2414 instead of a mode, type and named flag.
2415 * targhooks.c (default_function_arg_advance): Likewise.
2416 * calls.c (initialize_argument_information): Update call to
2417 targetm.calls.function_arg_advance.
2418 (emit_library_call_value_1): Likewise.
2419 * dse.c (get_call_args): Likewise.
2420 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2421 * function.c (assign_parms, gimplify_parameters): Likewise.
2422 * var-tracking.c (prepare_call_arguments): Likewise.
2423 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
2424 function_arg_info instead of a mode, type and named flag.
2425 (aarch64_setup_incoming_varargs): Update call accordingly.
2426 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
2427 function_arg_info instead of a mode, type and named flag.
2428 (alpha_setup_incoming_varargs): Update call accordingly.
2429 * config/arc/arc.c (arc_function_arg_advance): Take a
2430 function_arg_info instead of a mode, type and named flag.
2431 (arc_setup_incoming_varargs): Update call accordingly.
2432 * config/arm/arm.c (arm_function_arg_advance): Take a
2433 function_arg_info instead of a mode, type and named flag.
2434 (cmse_func_args_or_return_in_stack): Update call accordingly.
2435 (arm_function_ok_for_sibcall): Likewise.
2436 (cmse_nonsecure_call_clear_caller_saved): Likewise.
2437 * config/avr/avr.c (avr_function_arg_advance): Take a
2438 function_arg_info instead of a mode, type and named flag.
2439 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
2440 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
2441 (c6x_call_saved_register_used): Update call accordingly.
2442 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
2443 function_arg_info instead of a mode, type and named flag.
2444 * config/cris/cris.c (cris_function_arg_advance): Likewise.
2445 * config/csky/csky.c (csky_function_arg_advance): Likewise.
2446 (csky_setup_incoming_varargs): Update call accordingly.
2447 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
2448 function_arg_info instead of a mode, type and named flag.
2449 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
2450 * config/frv/frv.c (frv_function_arg_advance): Likewise.
2451 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
2452 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
2453 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
2454 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
2455 (ix86_setup_incoming_varargs): Update call accordingly.
2456 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
2457 function_arg_info instead of a mode, type and named flag.
2458 (ia64_setup_incoming_varargs): Update call accordingly.
2459 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
2460 function_arg_info instead of a mode, type and named flag.
2461 (iq2000_expand_prologue): Update call accordingly.
2462 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
2463 function_arg_info instead of a mode, type and named flag.
2464 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
2465 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
2466 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
2467 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
2468 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
2470 (microblaze_expand_prologue): Update call accordingly.
2471 * config/mips/mips.c (mips_function_arg_advance): Take a
2472 function_arg_info instead of a mode, type and named flag.
2473 (mips_setup_incoming_varargs): Update call accordingly.
2474 (mips_output_args_xfer): Likewise.
2475 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
2476 function_arg_info instead of a mode, type and named flag.
2477 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
2478 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
2479 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
2480 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
2481 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
2482 (nios2_setup_incoming_varargs): Update call accordingly.
2483 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
2484 function_arg_info instead of a mode, type and named flag.
2485 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
2486 * config/pa/pa.c (pa_function_arg_advance): Likewise.
2487 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
2488 * config/pru/pru.c (pru_function_arg_advance): Likewise.
2489 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
2490 (riscv_setup_incoming_varargs): Update call accordingly.
2491 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
2492 function_arg_info instead of a mode, type and named flag.
2493 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
2495 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
2496 (rs6000_parm_needs_stack): Update call accordingly.
2497 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
2498 instead of a mode, type and named flag.
2499 * config/s390/s390.c (s390_function_arg_advance): Likewise.
2500 (s390_call_saved_register_used): Update call accordingly.
2501 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
2502 instead of a mode, type and named flag.
2503 (sh_output_mi_thunk): Update call accordingly.
2504 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
2505 function_arg_info instead of a mode, type and named flag.
2506 * config/spu/spu.c (spu_function_arg_advance): Likewise.
2507 (spu_setup_incoming_varargs): Update call accordingly.
2508 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
2509 function_arg_info instead of a mode, type and named flag.
2510 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
2511 (tilegx_setup_incoming_varargs): Update call accordingly.
2512 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
2513 function_arg_info instead of a mode, type and named flag.
2514 (tilegx_setup_incoming_varargs): Update call accordingly.
2515 * config/v850/v850.c (v850_function_arg_advance): Take a
2516 function_arg_info instead of a mode, type and named flag.
2517 * config/vax/vax.c (vax_function_arg_advance): Likewise.
2518 * config/visium/visium.c (visium_function_arg_advance): Likewise.
2519 (visium_setup_incoming_varargs): Update call accordingly.
2520 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
2521 function_arg_info instead of a mode, type and named flag.
2523 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2525 * target.def (function_arg, function_incoming_arg): Take a
2526 function_arg_info instead of a mode, tree and named flag.
2527 * doc/tm.texi: Regenerate.
2528 * targhooks.h (default_function_arg): Take a function_arg_info
2529 instead of a mode, tree and named flag.
2530 (default_function_incoming_arg): Likewise.
2531 * targhooks.c (default_function_arg): Likewise.
2532 (default_function_incoming_arg): Likewise.
2533 * calls.h (function_arg_info::end_marker_p): New function.
2534 (function_arg_info::end_marker): Likewise.
2535 * calls.c (prepare_call_address, initialize_argument_information)
2536 (expand_call, emit_library_call_value_1): Update calls to
2537 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
2538 * dse.c: Include calls.h.
2539 (get_call_args): Update call to targetm.calls.function_arg.
2540 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2541 * var-tracking.c (prepare_call_arguments): Likewise.
2542 * function.c (assign_parm_find_entry_rtl): Update call to
2543 targetm.calls.function_incoming_arg.
2544 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
2545 function_arg_info instead of a mode, tree and named flag.
2546 * config/alpha/alpha.c (alpha_function_arg): Likewise.
2547 * config/arc/arc.c (arc_function_arg): Likewise.
2548 * config/arm/arm.c (arm_function_arg): Likewise.
2549 (cmse_func_args_or_return_in_stack): Update call accordingly.
2550 (arm_function_ok_for_sibcall): Likewise.
2551 (cmse_nonsecure_call_clear_caller_saved): Likewise.
2552 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
2553 instead of a mode, tree and named flag.
2554 * config/bfin/bfin.c (bfin_function_arg): Likewise.
2555 * config/c6x/c6x.c (c6x_function_arg): Likewise.
2556 (c6x_call_saved_register_used): Update call accordingly.
2557 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
2558 instead of a mode, tree and named flag.
2559 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
2560 (cris_function_arg_1): Likewise.
2561 * config/csky/csky.c (csky_function_arg): Likewise.
2562 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
2563 * config/fr30/fr30.c (fr30_function_arg): Likewise.
2564 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
2565 (frv_function_arg_1): Likewise.
2566 * config/ft32/ft32.c (ft32_function_arg): Likewise.
2567 * config/gcn/gcn.c (gcn_function_arg): Likewise.
2568 * config/h8300/h8300.c (h8300_function_arg): Likewise.
2569 * config/i386/i386.c (ix86_function_arg): Likewise.
2570 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
2571 (ia64_function_arg_1): Likewise.
2572 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
2573 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
2575 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
2576 instead of a mode, tree and named flag.
2577 * config/m32c/m32c.c (m32c_function_arg): Likewise.
2578 * config/m32r/m32r.c (m32r_function_arg): Likewise.
2579 * config/m68k/m68k.c (m68k_function_arg): Likewise.
2580 * config/mcore/mcore.c (mcore_function_arg): Likewise.
2581 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
2582 (microblaze_expand_prologue): Update call accordingly.
2583 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
2584 instead of a mode, tree and named flag.
2585 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
2586 (mmix_function_arg_1): Likewise.
2587 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
2588 * config/moxie/moxie.c (moxie_function_arg): Likewise.
2589 * config/msp430/msp430.c (msp430_function_arg): Likewise.
2590 * config/nds32/nds32.c (nds32_function_arg): Likewise.
2591 * config/nios2/nios2.c (nios2_function_arg): Likewise.
2592 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
2593 (nvptx_function_incoming_arg): Likewise.
2594 * config/or1k/or1k.c (or1k_function_arg): Likewise.
2595 * config/pa/pa.c (pa_function_arg): Likewise.
2596 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
2597 * config/pru/pru.c (pru_function_arg): Likewise.
2598 * config/riscv/riscv.c (riscv_function_arg): Likewise.
2599 * config/rl78/rl78.c (rl78_function_arg): Likewise.
2600 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
2601 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
2602 (rs6000_parm_needs_stack): Update call accordingly.
2603 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
2604 instead of a mode, tree and named flag.
2605 * config/s390/s390.c (s390_function_arg): Likewise.
2606 (s390_call_saved_register_used): Update call accordingly.
2607 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
2608 instead of a mode, tree and named flag.
2609 (sh_output_mi_thunk): Update call accordingly.
2610 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
2611 (sparc_function_incoming_arg): Take a function_arg_info instead of
2612 a mode, tree and named flag.
2613 * config/spu/spu.c (spu_function_arg): Likewise.
2614 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
2615 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
2616 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
2617 * config/v850/v850.c (v850_function_arg): Likewise.
2618 * config/vax/vax.c (vax_function_arg): Likewise.
2619 * config/visium/visium.c (visium_function_arg): Likewise.
2620 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
2621 (xtensa_function_incoming_arg): Likewise.
2623 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2625 * target.def (setup_incoming_varargs): Take a function_arg_info
2626 instead of a mode and tree.
2627 * doc/tm.texi: Regenerate.
2628 * targhooks.h (default_setup_incoming_varargs): Take a
2629 function_arg_info instead of a mode and tree.
2630 * targhooks.c (default_setup_incoming_varargs): Likewise.
2631 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
2632 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
2633 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
2634 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
2635 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
2636 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
2637 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
2638 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
2640 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
2641 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
2642 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
2643 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
2644 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
2645 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
2646 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
2647 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
2648 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
2649 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
2650 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
2651 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
2652 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
2653 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
2654 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
2655 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
2656 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
2657 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
2658 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
2659 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
2660 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
2661 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
2662 * function.c (assign_parms_setup_varargs): Update call to
2663 targetm.calls.setup_incoming_varargs.
2665 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2667 * target.def (pass_by_reference): Take a function_arg_info instead
2668 of a mode, type and named flag.
2669 * doc/tm.texi: Regenerate.
2670 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
2672 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
2673 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
2674 function_arg_info instead of a mode, type and named flag.
2675 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
2676 * calls.h (pass_by_reference): Take a function_arg_info instead of a
2677 mode, type and named flag.
2678 * calls.c (pass_by_reference): Likewise.
2679 (pass_va_arg_by_reference): Update call accordingly.
2680 (initialize_argument_information): Likewise.
2681 (emit_library_call_value_1): Likewise.
2682 * function.c (assign_parm_find_data_types): Likewise.
2683 * var-tracking.c (prepare_call_arguments): Likewise.
2684 * stor-layout.c: Include calls.h.
2685 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
2686 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
2687 function_arg_info instead of a mode, type and named flag.
2688 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
2689 * config/arc/arc.c (arc_pass_by_reference): Likewise.
2690 * config/arm/arm.c (arm_pass_by_reference): Likewise.
2691 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
2692 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
2693 (c6x_call_saved_register_used): Update call to pass_by_reference.
2694 * config/cris/cris.c (cris_pass_by_reference): Take a
2695 function_arg_info instead of a mode, type and named flag.
2696 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
2697 function_arg_info instead of a mode, type and named flag.
2698 (epiphany_arg_partial_bytes): Update call accordingly.
2699 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
2700 function_arg_info instead of a mode, type and named flag.
2701 (ft32_arg_partial_bytes): Update call accordingly.
2702 * config/i386/i386.c (ix86_pass_by_reference): Take a
2703 function_arg_info instead of a mode, type and named flag.
2704 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
2705 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
2706 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
2707 (m32r_return_in_memory): Update call accordingly.
2708 * config/mips/mips.c (mips_pass_by_reference): Take a
2709 function_arg_info instead of a mode, type and named flag.
2710 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
2711 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
2712 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
2713 (moxie_arg_partial_bytes): Update call accordingly.
2714 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
2715 function_arg_info instead of a mode, type and named flag.
2716 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
2717 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
2718 * config/pa/pa.c (pa_pass_by_reference): Likewise.
2719 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
2720 (riscv_return_in_memory): Update call accordingly.
2721 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
2722 function_arg_info instead of a mode, type and named flag.
2723 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
2724 (rs6000_parm_needs_stack): Update call to pass_by_reference.
2725 * config/s390/s390.c (s390_pass_by_reference): Take a
2726 function_arg_info instead of a mode, type and named flag.
2727 (s390_call_saved_register_used): Update call accordingly.
2728 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
2729 instead of a mode, type and named flag.
2730 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
2731 * config/spu/spu.c (spu_pass_by_reference): Likewise.
2732 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
2733 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
2734 * config/v850/v850.c (v850_pass_by_reference): Likewise.
2735 * config/visium/visium.c (visium_pass_by_reference): Likewise.
2737 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2739 * target.def (arg_partial_bytes): Take a function_arg_info instead
2740 of a mode, type and named flag.
2741 * doc/tm.texi: Regenerate.
2742 * target.h (function_arg_info): Declare.
2743 * calls.h (function_arg_info): New class.
2744 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
2745 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
2746 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
2747 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
2748 * calls.c (initialize_argument_information): Update call to
2749 targetm.calls.partial_bytes.
2750 (emit_library_call_value_1): Likewise.
2751 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2752 * function.c (assign_parm_find_entry_rtl): Likewise.
2753 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
2754 function_arg_info instead of a mode, type and named flag.
2755 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
2756 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
2757 (cmse_func_args_or_return_in_stack): Update accordingly.
2758 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
2759 function_arg_info instead of a mode, type and named flag.
2760 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
2761 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
2762 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
2763 * config/fr30/fr30.c: Include calls.h.
2764 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
2765 type and named flag.
2766 * config/frv/frv.c: Include calls.h.
2767 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
2768 type and named flag.
2769 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
2770 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
2771 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
2772 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
2773 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
2774 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
2775 * config/microblaze/microblaze.c (function_arg_partial_bytes):
2777 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
2778 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
2779 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
2780 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
2781 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
2782 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
2783 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
2784 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
2785 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
2786 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
2787 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
2788 (rs6000_parm_needs_stack): Update call accordingly.
2789 * config/sh/sh.c (sh_arg_partial_bytes): Take a
2790 function_arg_info instead of a mode, type and named flag.
2791 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
2792 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
2794 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2796 * calls.h (must_pass_va_arg_in_stack): Declare.
2797 * calls.c (must_pass_va_arg_in_stack): New function.
2798 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
2799 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
2800 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
2802 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2804 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
2806 * calls.h (pass_va_arg_by_reference): Declare.
2807 * calls.c (pass_va_arg_by_reference): New function.
2808 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
2809 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
2810 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
2811 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2812 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2813 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
2814 (mips_gimplify_va_arg_expr): Likewise.
2815 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
2816 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2817 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
2818 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
2819 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
2820 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
2821 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
2822 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
2823 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
2824 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2825 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
2827 2019-08-20 Richard Biener <rguenther@suse.de>
2830 * config/i386/i386-features.c (general_scalar_chain::convert_op):
2831 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
2832 (convert_scalars_to_vector): Add timode_p parameter and use it
2833 to guard TImode-only operation.
2834 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
2835 (pass_stv::execute): Pass down timode_p.
2837 2019-08-20 Lili Cui <lili.cui@intel.com>
2839 * common/config/i386/i386-common.c
2840 (processor_names): Add tigerlake and cooperlake.
2841 (processor_alias_table): Add tigerlake and cooperlake.
2842 * config.gcc: Add -march=tigerlake and cooperlake.
2843 * config/i386/driver-i386.c
2844 (host_detect_local_cpu): Detect tigerlake and cooperlake.
2845 Add "has_avx" to classify processor.
2846 * config/i386/i386-builtins.c (processor_model) :
2847 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
2848 (arch_names_table): Add tigerlake and cooperlake.
2849 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
2850 and PROCESSOR_COOPERLAKE.
2851 * config/i386/i386-c.c
2852 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
2853 * config/i386/i386-options.c
2854 (m_TIGERLAKE) : Define.
2855 (m_COOPERLAKE) : Ditto.
2856 (m_CORE_AVX512): Ditto.
2857 (processor_cost_table): Add cascadelake.
2858 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
2859 * config/i386/i386.h
2860 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
2861 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
2862 (PTA_MOVDIRI): Ditto.
2863 (PTA_MOVDIR64B): Ditto.
2864 (PTA_COOPERLAKE) : Ditto.
2865 (PTA_TIGERLAKE) : Ditto.
2866 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
2867 * doc/extend.texi: Add tigerlake and cooperlake.
2868 * doc/invoke.texi: Add tigerlake and cooperlake.
2870 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
2872 * doc/install.texi (Specific, alpha): Remove note to use
2873 binutils 2.11.2 or later.
2875 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
2878 * function.c (assign_parm_find_stack_rtl): Use larger alignment
2881 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
2883 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
2884 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
2885 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
2886 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
2887 * config/aarch64/constraints.md (Dt): New constraint
2888 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
2890 2019-08-19 Richard Biener <rguenther@suse.de>
2892 PR tree-optimization/91403
2893 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
2894 cases we can handle with tail-recursion...
2895 (follow_ssa_edge_expr): ... here. Do so.
2897 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
2900 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
2901 implemented for -fsanitize=kernel-address, and merge check logic
2902 with -fsanitize=address.
2904 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
2906 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
2907 for cpu and machine. Factor 64/32b builtins.
2909 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
2911 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
2912 gone, point to sourceforge.net.
2914 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
2916 * doc/ux.texi (User Experience Guidelines): Update reference.
2918 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
2920 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
2923 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
2925 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
2926 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
2928 2019-08-16 Martin Sebor <msebor@redhat.com>
2930 * tree.def (TYPE_SIZE): Clarify.
2931 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
2933 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2935 PR tree-optimization/91109
2936 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
2937 * lra.c (lra): Use lra_need_for_scratch_reg_p.
2938 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
2940 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
2942 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
2943 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
2944 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
2945 (uavg<mode>3_ceil): New expander.
2946 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
2947 mode iterator when creating CONST1_RTX.
2948 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
2949 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
2950 mode iterator for const1_operand predicate.
2952 2019-08-16 Richard Biener <rguenther@suse.de>
2954 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
2955 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
2957 (follow_ssa_edge_in_condition_phi_branch): Likewise.
2958 (analyze_evolution_in_loop): Likewise.
2959 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
2960 (follow_ssa_edge_expr): ... here. Refactor code.
2962 2019-08-16 Richard Biener <rguenther@suse.de>
2965 * config/i386/i386-features.c
2966 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
2968 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2971 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
2972 only if subst_name matches curr_attr string.
2974 2019-08-16 Richard Biener <rguenther@suse.de>
2976 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
2977 stmt at gsi_p, instead replace it with a NOP removed later.
2978 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
2979 that became dead because of that.
2981 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
2983 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
2984 for which we can't represent a range.
2985 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
2987 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
2988 Set VR_UNDEFINED if type is not supported.
2989 * tree-ssanames.c (get_range_info): Pass type to set_varying.
2990 * tree-vrp.c (value_range_base::check): Assert that a varying has
2992 (value_range_base::equal_p): Early bail for undefines.
2993 (value_range_base::set_varying): Accept a type.
2994 (value_range::set_varying): Same.
2995 (value_range_base::type): VARYING can have a type, while UNDEFINE
2997 (value_range_base::dump): Print type for VARYING nodes.
2998 (value_range_base::set): Add type to VARYING.
2999 (extract_range_from_multiplicative_op): Pass type to set_varying.
3000 (extract_range_from_binary_expr): Same.
3001 (value_range_base::intersect_helper): Same.
3002 (value_range_base::union_helper): Same.
3003 (value_range_base::normalize_symbolics): Same.
3004 (determine_value_range_1): Same.
3005 * tree-vrp.h (class value_range_base): Add type to set_varying.
3006 Add prototype for dump(void).
3007 Add prototype for supports_type_p.
3008 (class value_range): Add type to set_varying.
3009 Add prototype for dump(void).
3010 * vr-values.c (set_value_range_to_truthvalue): Pass type to
3012 (vr_values::get_lattice_entry): Set varying even if propagation
3014 Pass type to set_varying.
3015 (vr_values::get_value_range): Remove vr_const_varying.
3016 Reallocate the lattice if needed.
3017 (vr_values::update_value_range): Pass type to set_varying.
3018 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3019 (vr_values::extract_range_from_binary_expr): Same.
3020 (vr_values::extract_range_from_unary_expr): Same.
3021 (vr_values::extract_range_from_cond_expr): Same.
3022 (vr_values::check_for_binary_op_overflow): Same.
3023 (vr_values::extract_range_basic): Same.
3024 (vr_values::extract_range_from_assignment): Same.
3025 (vr_values::vr_values): Increase size of num_vr_values.
3026 (vr_values::extract_range_from_phi_node): Pass type to
3029 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
3032 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
3033 for costs of hard register moves.
3034 (ix86_register_move_cost): Likewise.
3035 * config/i386/i386.h (processor_costs): Move costs of hard
3036 register moves to hard_register. Add int_load, int_store,
3037 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
3038 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
3039 for costs of RTL expressions.
3040 * config/i386/x86-tune-costs.h: Move costs of hard register
3041 moves to hard_register. Duplicate int_load, int_store,
3042 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
3043 sse_load, sse_store for costs of RTL expressions.
3045 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3047 * target.def (setup_incoming_vararg_bounds): Remove.
3048 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
3049 * doc/tm.texi: Regenerate.
3050 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
3051 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
3052 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
3053 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
3055 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3057 MSP430: Fix lines over 80 characters long in
3058 config/msp430/*.{c,h} files
3060 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
3061 specifier in string.
3062 (msp430_select_hwmult_lib): Split line more than 80 characters long.
3063 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
3064 redundant old comment.
3065 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
3066 Split line more than 80 characters long.
3067 * config/msp430/msp430.c (msp430_option_override): Likewise.
3068 (msp430_return_in_memory): Likewise.
3069 (msp430_gimplify_va_arg_expr): Likewise.
3070 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
3071 (msp430_legitimate_constant): Likewise.
3072 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
3073 (msp430_attr): Likewise.
3074 (msp430_data_attr): Likewise.
3075 (msp430_start_function): Likewise.
3076 (gen_prefix): Likewise.
3077 (msp430_init_sections): Likewise.
3078 (msp430_select_section): Likewise.
3079 (msp430_function_section): Likewise.
3080 (msp430_unique_section): Likewise.
3081 (msp430_output_aligned_decl_common): Likewise.
3082 (msp430_do_not_relax_short_jumps): Likewise.
3083 (msp430_init_builtins): Likewise.
3084 (msp430_expand_delay_cycles): Likewise.
3085 (msp430_expand_prologue): Likewise.
3086 (msp430_expand_epilogue): Likewise.
3087 (msp430_expand_helper): Likewise.
3088 (msp430_split_movsi): Likewise.
3089 (msp430_print_operand): Likewise.
3090 (msp430_return_addr_rtx): Likewise.
3091 (msp430x_extendhisi): Likewise.
3092 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
3093 (ASM_SPEC): Likewise.
3094 Remove very obvious comments.
3095 (LIB_SPEC): Split line more than 80 characters long.
3096 (EH_RETURN_HANDLER_RTX): Likewise.
3097 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
3099 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3101 MSP430: Fix whitespace errors and incorrect indentation in
3102 config/msp430/*.{c,h} files
3104 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
3105 (msp430_select_hwmult_lib): Likewise.
3106 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
3107 (msp430_extract_mcu_data): Likewise.
3108 (struct t_msp430_mcu_data): Likewise.
3109 * config/msp430/msp430.c (struct machine_function): Remove whitespace
3110 before left square bracket.
3111 (msp430_option_override): Fix indentation.
3112 (msp430_hard_regno_nregs_with_padding): Likewise.
3113 (msp430_initial_elimination_offset): Likewise.
3114 (msp430_special_register_convention_p): Remove whitespace before left
3115 square bracket and after exclamation mark.
3116 (msp430_evaluate_arg): Likewise.
3117 (msp430_callee_copies): Fix indentation.
3118 (msp430_gimplify_va_arg_expr): Likewise.
3119 (msp430_function_arg_advance): Remove whitespace before left square
3121 (reg_ok_for_addr): Likewise.
3122 (msp430_preserve_reg_p): Likewise.
3123 (msp430_compute_frame_info): Likewise.
3124 (msp430_asm_output_addr_const_extra): Add space between function name
3125 and open parenthesis.
3126 (has_section_name): Fix indentation.
3127 (msp430_attr): Remove trailing whitespace.
3128 (msp430_section_attr): Likewise.
3129 (msp430_data_attr): Likewise.
3130 (struct msp430_attribute_table): Fix comment and whitespace.
3131 (msp430_start_function): Remove whitespace before left square bracket.
3132 Add space between function name and open parenthesis.
3133 (msp430_select_section): Remove trailing whitespace.
3134 (msp430_section_type_flags): Remove trailing whitespace.
3135 (msp430_unique_section): Remove space before closing parenthesis.
3136 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
3137 (msp430_builtins): Remove whitespace before left square bracket.
3138 (msp430_init_builtins): Fix indentation.
3139 (msp430_expand_prologue): Remove whitespace before left square bracket.
3140 Remove space before closing parenthesis.
3141 (msp430_expand_epilogue): Remove whitespace before left square bracket.
3142 (msp430_split_movsi): Remove space before closing parenthesis.
3143 (helper_function_name_mappings): Fix indentation.
3144 (msp430_use_f5_series_hwmult): Fix whitespace.
3145 (use_32bit_hwmult): Likewise.
3146 (msp430_no_hwmult): Likewise.
3147 (msp430_output_labelref): Remove whitespace before left square bracket.
3148 (msp430_print_operand_raw): Likewise.
3149 (msp430_print_operand_addr): Likewise.
3150 (msp430_print_operand): Add two spaces after '.' in comment.
3151 Fix trailing whitespace.
3152 (msp430x_extendhisi): Fix indentation.
3153 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
3155 (PC_REGNUM): Likewise.
3156 (STACK_POINTER_REGNUM): Likewise.
3157 (CC_REGNUM): Likewise.
3159 2019-08-15 Richard Biener <rguenther@suse.de>
3162 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
3164 (general_scalar_chain::make_vector_copies): Use it.
3166 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
3168 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
3170 2019-08-15 Martin Liska <mliska@suse.cz>
3172 * tree-ssa-dce.c (propagate_necessity): We can't reach now
3173 operators with no arguments.
3174 (eliminate_unnecessary_stmts): Likewise here.
3176 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
3178 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
3179 <case COMPARE>: Revert 2019-08-14 change.
3180 (convertible_comparison_p): Revert 2019-08-14 change. Return false
3181 for (TARGET_64BIT || mode != DImode).
3183 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
3185 * tree-vrp.c (value_range_base::set): Merge in code from
3186 value_range_base::set_and_canonicalize.
3187 Enforce canonicalization at set time.
3188 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
3189 (value_range_base::set_undefined): Inline call to set().
3190 (value_range_base::set_varying): Same.
3191 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
3192 (vrp_val_max): New argument handle_pointers.
3193 (vrp_val_min): Same.
3194 (ranges_from_anti_range): Same.
3195 (extract_range_into_wide_ints): Use tree argument instead of sign
3197 (extract_range_from_multiplicative_op): Take in tree type instead
3198 of precision and sign. Adapt function for canonicalized ranges.
3199 (extract_range_from_binary_expr): Pass type to
3200 extract_range_from_multiplicative_op.
3201 Adapt for canonicalized ranges.
3202 (extract_range_from_unary_expr): Same.
3203 (value_range_base::intersect_helper): Adjust for canonicalized
3205 (value_range_base::union_helper): Same.
3206 (value_range_base::normalize_symbolics): New.
3207 * tree-vrp.h (class value_range_base): Remove
3208 set_and_canonicalize.
3209 New prototype for normalize_symbolics.
3210 (class value_range): Remove set_and_canonicalize.
3211 (vrp_val_min): Adjust prototype.
3212 (vrp_val_max): Same.
3214 (vr_values::extract_range_for_var_from_comparison_expr): Call set
3215 instead of set_and_canonicalize.
3217 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3220 * tree-vect-stmts.c (vectorizable_call): Check that the function
3221 is a BUILT_IN_MD function before passing it to
3222 targetm.vectorize.builtin_md_vectorized_function.
3224 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3226 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
3227 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
3228 (aarch64_select_early_remat_modes): Use it.
3230 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3232 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
3233 16 for SVE predicates even if they are fixed-length.
3235 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3237 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
3238 operand order match the MOV /Z alias.
3240 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3242 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
3243 the vector pattern as an aarch64_svpattern argument. Update the
3244 overloaded caller accordingly.
3245 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
3246 (aarch64_output_sve_vector_inc_dec): Likewise.
3248 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3250 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
3251 multiplication case, try to compute VG * (lowest set bit) directly
3252 rather than always basing the multiplication on VG. Use
3253 expand_mult for the multiplication if we can.
3255 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3257 * config/aarch64/aarch64-protos.h
3258 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
3259 (aarch64_sve_inc_dec_immediate_p): Rename to...
3260 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
3261 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
3262 (aarch64_output_sve_scalar_inc_dec): Declare.
3263 (aarch64_output_sve_inc_dec_immediate): Rename to...
3264 (aarch64_output_sve_vector_inc_dec): ...this.
3265 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
3266 (aarch64_output_sve_scalar_inc_dec): New functions.
3267 (aarch64_output_sve_addvl_addpl): Remove the base and offset
3268 arguments. Only handle true ADDVL and ADDPL instructions;
3269 don't emit an INC or DEC.
3270 (aarch64_sve_inc_dec_immediate_p): Rename to...
3271 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
3272 (aarch64_output_sve_inc_dec_immediate): Rename to...
3273 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
3274 aarch64_sve_vector_inc_dec_immediate_p.
3275 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
3276 (aarch64_sve_plus_immediate): New predicates.
3277 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
3278 rather than aarch64_sve_addvl_addpl_immediate.
3279 (aarch64_sve_inc_dec_immediate): Rename to...
3280 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
3281 aarch64_sve_vector_inc_dec_immediate_p.
3282 (aarch64_sve_add_operand): Update accordingly.
3283 * config/aarch64/constraints.md (Uai): New constraint.
3284 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
3285 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
3286 operand into a register if it satisfies aarch64_sve_plus_immediate.
3287 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
3288 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
3289 * config/aarch64/aarch64-sve.md (add<mode>3): Call
3290 aarch64_output_sve_vector_inc_dec instead of
3291 aarch64_output_sve_inc_dec_immediate.
3293 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3295 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
3296 (UNSPEC_REVW): New constants.
3297 (elem_bits): New mode attribute.
3298 (SVE_INT_UNARY): New int iterator.
3299 (optab): Handle UNSPEC_REV[BHW].
3300 (sve_int_op): New int attribute.
3301 (min_elem_bits): Handle VNx16QI and the predicate modes.
3302 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
3303 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
3304 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
3305 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
3306 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
3307 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
3308 unspecs based on the total width of the reversed data.
3309 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
3310 reinterpret followed by a subreg on big-endian targets.
3312 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3313 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3315 * config/aarch64/aarch64-sve.md
3316 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
3317 alternatives in which one of the inputs is in the same register
3320 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3322 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
3323 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
3325 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3327 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
3328 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
3330 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3331 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3333 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
3334 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
3335 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
3337 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3338 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3340 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
3341 Add an alternative that uses reversed shifts.
3343 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3345 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
3348 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3350 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
3351 a commutativity marker.
3353 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3354 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3356 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
3357 (aarch64_prepare_sve_cond_int_fma): Declare.
3358 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
3359 (aarch64_prepare_sve_int_fma): New functions.
3360 (aarch64_prepare_sve_cond_int_fma): Likewise.
3361 * config/aarch64/aarch64-sve.md
3362 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
3363 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
3364 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
3365 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
3366 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
3367 (*madd<mode>): Rename to...
3368 (*fma<mode>4): ...this.
3369 (*msub<mode>): Rename to...
3370 (*fnma<mode>4): ...this.
3372 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3373 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3375 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
3376 Print 2.0 naturally.
3377 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
3378 * config/aarch64/predicates.md
3379 (aarch64_sve_float_negated_arith_immediate): New predicate,
3380 renamed from aarch64_sve_float_arith_with_sub_immediate.
3381 (aarch64_sve_float_arith_with_sub_immediate): Test for both
3382 positive and negative constants.
3383 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
3384 or an aarch64_sve_float_arith_with_sub_immediate.
3385 * config/aarch64/constraints.md (vsN): Use
3386 aarch64_sve_float_negated_arith_immediate.
3387 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
3389 (sve_pred_fp_rhs2_immediate): New int attribute.
3390 * config/aarch64/aarch64-sve.md
3391 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
3392 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
3393 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
3394 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
3395 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
3396 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
3398 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3399 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3401 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
3402 (*aarch64_cond_abd<SVE_F:mode>_3)
3403 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
3405 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3406 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3408 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
3409 (*aarch64_cond_<su>abd<mode>_any): New patterns.
3411 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
3412 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3414 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
3415 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
3416 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
3417 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
3419 * optabs.h (create_convert_operand_from): Expand comment.
3420 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
3421 when mapping scalar rtxes to vector operands.
3422 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
3423 ashiftrt and lshiftrt.
3424 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
3425 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
3426 (*cond_<optab><mode>_any_const): New patterns.
3428 2019-08-15 Martin Liska <mliska@suse.cz>
3431 * cgraph.c (cgraph_node::remove): When setting
3432 n->origin = NULL for all nested functions, reset
3435 2019-08-15 Martin Liska <mliska@suse.cz>
3437 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
3440 2019-08-15 Martin Liska <mliska@suse.cz>
3443 * passes.c (order): Remove.
3444 (uid_hash_t): Likewise).
3445 (remove_cgraph_node_from_order): Remove from set
3446 of pointers (cgraph_node *).
3447 (insert_cgraph_node_to_order): New.
3448 (duplicate_cgraph_node_to_order): New.
3449 (do_per_function_toporder): Register all 3 cgraph hooks.
3450 Skip removed_nodes now as we know about all of them.
3452 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
3454 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
3455 <case E_V8QImode>: Use vector_set path for
3456 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
3457 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
3458 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
3460 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3462 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
3464 2019-08-14 Martin Sebor <msebor@redhat.com>
3466 PR tree-optimization/91294
3467 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
3468 source length as exact.
3470 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
3472 * doc/extend.texi: Add "noinit" attribute documentation.
3473 * doc/sourcebuild.texi: Add noinit effective target documentation.
3474 * varasm.c (default_section_type_flags): Add support for "noinit"
3476 (default_elf_select_section): Add support for "noinit" attribute.
3477 * config/msp430/msp430.c (msp430_attribute_table): Remove
3480 2019-08-14 Richard Biener <rguenther@suse.de>
3481 Uroš Bizjak <ubizjak@gmail.com>
3484 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
3486 (scalar_chain::smode): New member.
3487 (scalar_chain::vmode): Likewise.
3488 (dimode_scalar_chain): Rename to...
3489 (general_scalar_chain): ... this.
3490 (general_scalar_chain::general_scalar_chain): Take mode arguments.
3491 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
3492 base with TImode and V1TImode.
3493 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
3494 (general_scalar_chain::vector_const_cost): Adjust for SImode
3496 (general_scalar_chain::compute_convert_gain): Likewise. Add
3497 {S,U}{MIN,MAX} support.
3498 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
3499 (general_scalar_chain::make_vector_copies): Likewise. Handle
3500 non-DImode chains appropriately.
3501 (general_scalar_chain::convert_reg): Likewise.
3502 (general_scalar_chain::convert_op): Likewise.
3503 (general_scalar_chain::convert_insn): Likewise. Add
3504 fatal_insn_not_found if the result is not recognized.
3505 (convertible_comparison_p): Pass in the scalar mode and use that.
3506 (general_scalar_to_vector_candidate_p): Likewise. Rename from
3507 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
3508 (scalar_to_vector_candidate_p): Remove by inlining into single
3510 (general_remove_non_convertible_regs): Rename from
3511 dimode_remove_non_convertible_regs.
3512 (remove_non_convertible_regs): Remove by inlining into single caller.
3513 (convert_scalars_to_vector): Handle SImode and DImode chains
3514 in addition to TImode chains.
3515 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
3516 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
3517 (*<maxmin>di3_doubleword): Likewise.
3519 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3520 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3522 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
3523 (*cond_bic<mode>_any): New patterns.
3525 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3527 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
3528 take the equivalent mask, as well as a bit count.
3529 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
3530 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
3531 (aarch64_sve_pred_and_operand): New predicates.
3532 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
3534 * config/aarch64/aarch64-sve.md
3535 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
3536 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
3538 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3540 * config/aarch64/aarch64-sve.md
3541 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
3542 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
3545 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3546 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3548 * config/aarch64/aarch64-sve.md
3549 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
3550 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
3552 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3553 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3555 * config/aarch64/aarch64-sve.md
3556 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
3557 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
3559 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3561 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
3562 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
3565 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3566 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3568 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
3570 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3571 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3573 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
3574 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
3575 (aarch64_print_operand): Add support for %I.
3576 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
3577 Bitcast floating-point constants to the corresponding integer constant.
3578 (aarch64_float_const_representable_p): Handle vectors as well
3580 (aarch64_expand_sve_vcond): Make sure that the operands are valid
3581 for the new vcond_mask_<mode><vpred> expander.
3582 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
3583 test aarch64_float_const_representable_p.
3584 (aarch64_sve_reg_or_dup_imm): New predicate.
3585 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
3586 gen_vcond_mask_<mode><vpred> instead of
3587 gen_aarch64_sve_dup<mode>_const.
3588 (vcond_mask_<mode><vpred>): Turn into a define_expand that
3589 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
3590 for operands 1 and 2 respectively. Force operand 2 into a
3591 register if operand 1 is a register. Fold old define_insn...
3592 (aarch64_sve_dup<mode>_const): ...and this define_insn...
3593 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
3594 floating-point constants that can be moved as integers. Add
3595 alternatives for MOV /M and FMOV /M.
3596 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
3597 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
3598 1 and 2 respectively.
3599 * config/aarch64/constraints.md (Ufc): Handle vectors as well
3601 (vss): New constraint.
3603 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3605 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
3606 (aarch64_sve_float_maxmin_operand): New predicates.
3607 * config/aarch64/constraints.md (vsB): New constraint.
3609 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
3610 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
3612 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
3613 Use aarch64_sve_float_maxmin_operand for operand 2.
3614 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
3615 Add alternatives for the constant forms.
3617 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3619 * config/aarch64/constraints.md (vsb): New constraint.
3620 (vsm): Generalize description.
3621 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
3623 (sve_imm_con): Handle smax, smin, umax and umin.
3624 (sve_imm_prefix): New code attribute.
3625 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
3626 (aarch64_sve_vsb_operand): New predicates.
3627 (aarch64_sve_mul_immediate): Rename to...
3628 (aarch64_sve_vsm_immediate): ...this.
3629 (aarch64_sve_mul_operand): Rename to...
3630 (aarch64_sve_vsm_operand): ...this.
3631 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
3632 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
3633 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
3634 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
3635 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
3636 add movprfx support for the immediate alternatives.
3637 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
3639 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
3642 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3644 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
3645 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
3646 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
3648 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3650 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
3651 (optab, sve_int_op): Handle them.
3652 * config/aarch64/aarch64-sve.md: Expand comment.
3654 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3656 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
3657 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
3658 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
3660 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3662 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
3663 (aarch64_expand_sve_const_pred_trn): New functions.
3664 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
3665 use the above functions when the parameter is true.
3666 (aarch64_expand_sve_const_pred): Update call accordingly.
3667 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
3669 (@aarch64_sve_<perm_insn><mode>): ...this.
3671 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3673 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
3675 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
3676 (aarch64_sve_emit_int_cmp): New functions.
3677 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
3678 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
3679 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
3680 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
3681 (UNSPEC_PRED_Z): New unspec.
3682 (set_clobber_cc_nzc): Delete.
3683 * config/aarch64/aarch64-sve.md: Add a block comment about
3685 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
3686 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
3687 the old pattern with that name. Use UNSPEC_PRED_Z instead of
3689 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
3690 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
3691 check for compatible predicates.
3692 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
3693 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
3694 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
3697 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3699 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
3700 * config/aarch64/aarch64-sve.md: Add a section describing it.
3701 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
3702 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
3703 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
3704 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
3705 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
3706 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
3707 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
3708 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
3709 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
3710 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
3711 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
3712 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
3713 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
3714 (aarch64_evpc_rev_local): Update accordingly.
3716 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3718 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
3720 (SVE_BHSI, SVE_SDI): Tweak comment.
3721 (SVE_HSDI): Likewise. Fix definition.
3722 (SVE_SDF): New mode iterator.
3723 (elem_bits): New mode attribute.
3724 (SVE_COND_FCVT): New int iterator.
3725 * config/aarch64/aarch64-sve.md
3726 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
3727 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
3728 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
3729 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
3730 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
3731 ...these new patterns.
3732 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
3733 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
3734 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
3736 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
3737 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
3738 ...these new patterns.
3739 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
3740 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
3741 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
3742 ...this new pattern.
3743 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
3744 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
3745 ...this new pattern.
3746 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
3748 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3750 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
3751 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
3752 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
3754 (optab, su): Handle them.
3755 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
3756 * config/aarch64/aarch64-sve.md
3757 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
3758 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
3759 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
3760 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
3761 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
3762 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
3763 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
3764 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
3765 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
3767 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
3768 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
3769 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
3770 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
3771 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
3772 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
3773 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
3774 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
3775 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
3776 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
3777 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
3778 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
3779 of UNSPEC_FLOAT_CONVERT.
3780 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
3781 aarch64_sve_extend<mode><Vwide>2.
3783 2019-08-14 Richard Biener <rguenther@suse.de>
3786 * config/i386/i386-features.c
3787 (dimode_scalar_chain::compute_convert_gain): Compute and dump
3788 individual instruction gain. Fix reg-reg copy GRP cost. Use
3789 ix86_cost->sse_op for vector instruction costs.
3791 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3793 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
3794 (cmp_op): Handle it.
3795 (SVE_COND_FP_CMP): Rename to...
3796 (SVE_COND_FP_CMP_I0): ...this.
3797 (SVE_FP_CMP): Remove.
3798 * config/aarch64/aarch64-sve.md
3799 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
3800 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
3801 using unspecs to represent the comparison.
3802 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
3803 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
3805 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
3806 (aarch64_unspec_cond_code): Move after integer code. Handle
3808 (aarch64_emit_sve_predicated_cond): Replace with...
3809 (aarch64_emit_sve_fp_cond): ...this new function.
3810 (aarch64_emit_sve_or_conds): Replace with...
3811 (aarch64_emit_sve_or_fp_conds): ...this new function.
3812 (aarch64_emit_sve_inverted_cond): Replace with...
3813 (aarch64_emit_sve_invert_fp_cond): ...this new function.
3814 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
3816 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3818 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
3819 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
3820 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
3821 SVE_HSD instead of SVE_SD.
3823 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3824 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3826 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
3828 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
3830 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
3831 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
3832 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
3833 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
3834 (*div<SVE_F:mode>3): Generalize to...
3835 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
3837 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3838 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3840 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
3842 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
3844 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
3846 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
3848 * config/aarch64/aarch64-sve.md: Add a block comment about the
3849 handling of predicated FP operations.
3850 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
3851 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
3852 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
3853 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
3854 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
3856 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
3857 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
3859 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
3860 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
3861 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
3862 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
3863 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
3864 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
3865 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
3866 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
3867 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
3868 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
3869 strictness operands. Use aarch64_sve_pred_dominates_p to check
3870 whether the predicate on the conditional operation is suitable
3871 for merging. Split patterns into the canonical equal-predicate form.
3872 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
3873 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
3875 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3876 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3878 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
3879 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
3880 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
3882 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
3883 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
3886 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3887 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3889 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
3890 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
3891 actually has, rather than relying on REG_EQUAL notes.
3892 Make the insn operand order match the SVE operand order.
3893 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
3894 the SVE operand order.
3896 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3898 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
3899 (aarch64_emit_set_immediate): Likewise.
3900 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
3901 (aarch64_pfalse_reg): Likewise.
3902 (aarch64_convert_sve_data_to_pred): New function.
3903 (aarch64_sve_move_pred_via_while): Take an optional target register
3904 and the required register mode.
3905 (aarch64_expand_sve_const_pred_1): New function.
3906 (aarch64_expand_sve_const_pred): Likewise.
3907 (aarch64_expand_mov_immediate): Build an all-true predicate
3908 if the significant bits of the immediate are all true. Use
3909 aarch64_expand_sve_const_pred for all compile-time predicate constants.
3910 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
3911 before register allocation.
3912 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
3913 a VNx16BI PTRUE when splitting the memory alternative.
3914 (vec_duplicate<mode>): Update accordingly.
3915 (*pred_cmp<cmp_op><mode>): Rename to...
3916 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
3918 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3920 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
3921 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
3922 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
3923 (UNSPEC_PTEST): New unspec.
3924 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
3925 * config/aarch64/iterators.md (data_bytes): New mode attribute.
3926 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
3927 * config/aarch64/aarch64-sve.md: Add a new section describing the
3928 handling of UNSPEC_PTEST.
3929 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
3930 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
3931 (ptest_ptrue<mode>): Replace with...
3932 (aarch64_ptest<mode>): ...this new pattern.
3933 (cbranch<mode>4): Update after above changes.
3934 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
3936 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
3937 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
3938 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
3940 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
3943 * builtins.c (builtin_with_linkage_p): New function.
3944 * builtins.h (builtin_with_linkage_p): New function.
3945 * symtab.c (write_symbol): Remove redundant assert.
3946 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
3947 Remove FIXME and use builtin_with_linkage_p.
3949 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3952 * tree-core.h (function_decl::function_code): Change type to
3954 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
3955 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
3956 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
3957 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
3959 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
3960 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
3961 (fndecl_built_in_p): Change the type of the "name" argument to
3963 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
3964 after check for DECL_BUILT_IN_CLASS.
3965 * cgraphclones.c (build_function_decl_skip_args): Use
3966 set_decl_built_in_function.
3967 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
3968 * ipa-split.c (split_function): Likewise.
3969 * langhooks.c (add_builtin_function_common): Likewise.
3970 * omp-simd-clone.c (simd_clone_create): Likewise.
3971 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
3972 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
3973 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
3975 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
3976 instead of DECL_FUNCTION_CODE.
3977 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
3978 instead of DECL_FUNCTION_CODE.
3979 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
3980 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
3981 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
3982 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
3983 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
3984 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
3985 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
3986 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
3987 (alpha_gimple_fold_builtin): Likewise.
3988 * config/arc/arc.c (arc_expand_builtin): Likewise.
3989 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
3990 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
3991 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
3992 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
3993 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
3994 * config/frv/frv.c (frv_expand_builtin): Likewise.
3995 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
3996 (gcn_expand_builtin): Likewise.
3997 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
3998 (fold_builtin_cpu): Likewise.
3999 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
4000 * config/i386/i386.c (ix86_fold_builtin): Likewise.
4001 (ix86_gimple_fold_builtin): Likewise.
4002 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
4003 (ia64_expand_builtin): Likewise.
4004 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
4005 * config/mips/mips.c (mips_expand_builtin): Likewise.
4006 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
4007 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
4008 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
4009 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
4010 * config/pa/pa.c (pa_expand_builtin): Likewise.
4011 * config/pru/pru.c (pru_expand_builtin): Likewise.
4012 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
4013 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4015 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
4016 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
4017 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
4018 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
4019 (rs6000_builtin_reciprocal): Likewise.
4020 * config/rx/rx.c (rx_expand_builtin): Likewise.
4021 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
4022 * config/s390/s390.c (s390_expand_builtin): Likewise.
4023 * config/sh/sh.c (sh_expand_builtin): Likewise.
4024 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
4025 (sparc_fold_builtin): Likewise.
4026 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
4027 * config/spu/spu.c (spu_expand_builtin): Likewise.
4028 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
4029 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
4030 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
4031 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
4032 (xtensa_expand_builtin): Likewise.
4034 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
4037 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
4038 before the DECL_FUNCTION_CODE.
4039 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
4040 to check for a BUILT_IN_ALLOCA call.
4041 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
4042 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
4043 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
4044 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4045 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
4046 for BUILT_IN_NORMAL functions.
4047 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
4048 test for BUILT_IN_TM_ABORT.
4049 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
4050 to check for a BUILT_IN_STACK_RESTORE call.
4051 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
4052 * tree-ssa-threadedge.c
4053 (record_temporary_equivalences_from_stmts_at_dest): Check for a
4054 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
4055 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
4056 test for a BUILT_IN_NORMAL call instead of a negative test for
4057 an internal function call.
4059 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
4061 * tree.h (build_vector_a_then_b): Declare.
4062 * tree.c (build_vector_a_then_b): New function.
4063 * fold-const-call.c (fold_while_ult): Likewise.
4064 (fold_const_call): Use it to handle IFN_WHILE_ULT.
4065 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
4066 (aarch64_svpattern): New enum.
4067 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
4068 constants through aarch64_expand_mov_immediate.
4069 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
4070 than general_operand as the predicate for operand 1.
4071 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
4072 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
4074 (simd_immediate_info::simd_immediate_info): New overload that
4075 takes a scalar_int_mode and an svpattern.
4076 (simd_immediate_info::u): Add a "pattern" field.
4077 (svpattern_token): New function.
4078 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
4079 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
4080 (aarch64_sve_move_pred_via_while): New functions.
4081 (aarch64_expand_mov_immediate): Try using
4082 aarch64_sve_move_pred_via_while for predicates that contain N ones
4083 followed by M zeros but that do not correspond to a VLnnn pattern.
4084 (aarch64_sve_pred_valid_immediate): New function.
4085 (aarch64_simd_valid_immediate): Use it instead of dealing directly
4086 with PTRUE and PFALSE.
4087 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
4090 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
4092 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
4094 (darwin_override_options): Likewise.
4095 * config/darwin.h: Likewise.
4096 * config/darwin.opt: Likewise.
4097 * config/i386/i386.c (output_pic_addr_const): Likewise.
4098 * config/rs6000/darwin.h: Likewise.
4099 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
4100 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
4101 ... this TARGET_MACHO_SYMBOL_STUBS.
4102 (FUNCTION_PROFILER):Likewise.
4103 * config/i386/i386.h: Likewise.
4105 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
4107 * config/i386/i386-expand.c (ix86_expand_vector_extract)
4108 <case E_V2SImode>: Use vec_extr path for
4109 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
4110 <case E_V8QImode>: Ditto.
4111 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
4112 Use SWI48 mode iterator. Use %k to output operand 0.
4113 (*mmx_pextrw): New insn pattern.
4114 (*mmx_pextrb): Ditto.
4115 (*mmx_pextrb_zext): Ditto.
4117 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
4119 * target.def (libc_has_function, libc_has_fast_function): Improve
4120 documentation strings.
4121 * doc/tm.texi: Regenerate.
4123 2019-08-13 Caroline Tice <cmtice@google.com>
4126 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
4127 vtv_end.o or vtv_end_preinit.o files if !static.
4129 2019-08-13 Olivier Hainque <hainque@adacore.com>
4131 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
4133 2019-08-13 Olivier Hainque <hainque@adacore.com>
4135 * rtlanal.c (tablejump_casesi_pattern): New function, to
4136 determine if a tablejump insn is a casesi dispatcher. Extracted
4137 from patch_jump_insn.
4138 * rtl.h (tablejump_casesi_pattern): Declare.
4139 * cfgrtl.c (patch_jump_insn): Use it.
4140 * dwarf2cfi.c (create_trace_edges): Use it.
4142 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
4145 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
4146 operand is larger than a long int.
4148 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
4150 * machmode.h (opt_mode::else_mode): New function.
4151 (opt_mode::else_blk): Use it.
4152 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
4153 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
4154 (aarch64_gen_stepped_int_parallel): Likewise.
4155 (aarch64_stepped_int_parallel_p): Likewise.
4156 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
4158 * config/aarch64/aarch64.c
4159 (aarch64_expand_sve_widened_duplicate): Delete.
4160 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
4161 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
4162 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
4163 argument. Use early returns in the !CONST_INT_P handling.
4164 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
4165 than handling some inline.
4166 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
4168 (aarch64_simd_container_mode): ...here.
4169 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
4170 (aarch64_sve_ld1rq_operand_p): New functions.
4171 * config/aarch64/predicates.md (descending_int_parallel)
4172 (aarch64_sve_ld1rq_operand): New predicates.
4173 * config/aarch64/constraints.md (UtQ): New constraint.
4174 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
4175 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
4176 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
4177 (@aarch64_sve_reinterpret<mode>): New expander.
4178 (*aarch64_sve_reinterpret<mode>): New pattern.
4179 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
4180 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
4181 (*sve_ld1rq<Vesize>): Replace with...
4182 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
4184 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
4186 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
4189 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4191 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
4192 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
4193 (msp430_check_path_for_devices): New.
4194 (parse_devices_csv_1): New.
4195 (parse_devices_csv): New.
4196 (msp430_extract_mcu_data): Try to find devices.csv and search for the
4197 MCU data in devices.csv before using the hard-coded data.
4198 Warn if devices.csv isn't found and the MCU wasn't found in the
4199 hard-coded data either.
4200 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
4201 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
4202 Search for devices.csv on -I and -L paths.
4203 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
4204 msp430_set_driver_var.
4205 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
4207 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
4208 searched for devices.csv.
4209 (mwarn-devices-csv): Document option.
4211 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
4213 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
4214 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
4215 Use a single Dn alternative instead of separate Dz and Dm
4216 alternatives. Use aarch64_output_sve_move_immediate.
4217 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
4219 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
4221 (aarch64_output_sve_mov_immediate): Handle predicate modes.
4222 (aarch64_output_ptrue): Delete.
4224 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
4226 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
4228 (simd_immediate_info::value, simd_immediate_info::step)
4229 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
4231 (simd_immediate_info::u): ...this new union.
4232 (simd_immediate_info::simd_immediate_info): Update accordingly.
4233 (aarch64_output_simd_mov_immediate): Likewise.
4234 (aarch64_output_sve_mov_immediate): Likewise.
4236 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4238 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
4240 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
4241 (msp430_select_cpu): New spec function.
4242 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
4244 * config/msp430/msp430-devices.c: New file.
4245 * config/msp430/msp430-devices.h: New file.
4246 * config/msp430/msp430.c: Remove msp430_mcu_data.
4247 (msp430_option_override): Use msp430_extract_mcu_data to extract
4249 (msp430_use_f5_series_hwmult): Likewise.
4250 (use_32bit_hwmult): Likewise.
4251 (msp430_no_hwmult): Likewise.
4252 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
4254 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
4256 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
4257 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
4258 Remove hard-coded MCU multilib data.
4260 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
4262 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
4263 based on the mode instead of testing properties of it.
4265 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
4267 * doc/md.texi: Document the x and y constraints for AArch64.
4268 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
4269 (FP_LO8_REGS): New reg_class.
4270 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
4271 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
4272 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
4273 * config/aarch64/predicates.md (aarch64_simd_register): Use
4274 FP_REGNUM_P instead of checking the classes manually.
4275 * config/aarch64/constraints.md (y): New constraint.
4277 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
4279 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
4280 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
4281 * config/aarch64/aarch64-simd.md
4282 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
4283 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
4284 from the asm template.
4285 * config/aarch64/aarch64-sve.md
4286 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
4287 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
4288 from the asm template.
4289 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
4290 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
4291 from the asm template.
4292 * config/aarch64/aarch64-simd-builtins.def: Update comment.
4294 2019-08-13 Martin Liska <mliska@suse.cz>
4296 * value-prof.c (gimple_ic_transform): Add new line.
4297 Print details with MSG_NOTE.
4299 2019-08-13 Martin Liska <mliska@suse.cz>
4301 * doc/invoke.texi: Document automatic detection of jobserver.
4302 * lto-wrapper.c (run_gcc): Detect jobserver always.
4304 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
4306 * config/i386/i386-expand.c (ix86_expand_vector_set)
4307 <case E_V2SImode>: Use vec_merge path for
4308 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
4309 <case E_V8QImode>: Ditto.
4310 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
4311 (*mmx_pinsrb): Ditto.
4313 2019-08-12 Jakub Jelinek <jakub@redhat.com>
4317 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
4318 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
4319 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
4320 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
4321 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
4323 2019-08-12 Richard Biener <rguenther@suse.de>
4326 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
4329 2019-08-12 Richard Biener <rguenther@suse.de>
4332 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
4333 lang_mask option, always use CL_DRIVER.
4334 (get_options_from_collect_gcc_options): Adjust.
4335 (find_and_merge_options): Likewise.
4336 (run_gcc): Likewise.
4338 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4340 * ipa-predicate.c (add_condition): Restore inverted test.
4342 2019-08-10 Jakub Jelinek <jakub@redhat.com>
4344 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
4345 (enum omp_clause_device_type_kind): New enum.
4346 (struct tree_omp_clause): Add subcode.device_type_kind.
4347 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
4348 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
4349 for device_type clause.
4350 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
4351 * tree-pretty-print.c (dump_omp_clause): Likewise.
4354 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
4357 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
4359 * reload1.c (finish_spills): Do not check ira_conflicts_p when
4360 handling spilled pseudos.
4362 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
4365 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
4366 to preserve the contents of the original insns.
4368 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
4370 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
4371 (addsi3_compare_op2): Likewise.
4373 2019-08-09 Martin Liska <mliska@suse.cz>
4375 * alias.c (alias_ptr_types_compatible_p): Strengten
4376 type comparison in LTO mode.
4378 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
4381 * tree-tailcall.c (find_tail_calls): Reject calls that might
4382 read from an escaped RESULT_DECL.
4384 2019-08-09 Martin Liska <mliska@suse.cz>
4386 * doc/invoke.texi: Document the option value.
4387 * lto-wrapper.c (run_gcc): Set auto_parallel
4388 only with -flto=auto.
4390 2019-08-09 Martin Liska <mliska@suse.cz>
4392 * opts.c (common_handle_option): Error for an invalid argument
4395 2019-08-09 Martin Liska <mliska@suse.cz>
4397 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
4398 use dump_printf to report optimization.
4399 (sem_variable::merge): Likwise.
4400 (sem_item_optimizer::merge_classes): Use dump_printf to report
4403 2019-08-09 Martin Liska <mliska@suse.cz>
4405 * value-prof.c (gimple_divmod_fixed_value_transform):
4406 Use dump_printf_loc.
4407 (gimple_mod_pow2_value_transform): Likewise.
4408 (gimple_mod_subtract_transform): Likewise.
4409 (init_node_map): Likewise.
4410 (gimple_ic_transform): Likewise.
4411 (gimple_stringops_transform): Likewise.
4413 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
4415 * doc/extend.texi: Add const qualifier to ld intrinsics.
4417 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
4419 * config/rs6000/dfp.md (D64_D128): Rename to ...
4420 (DDTD): ... this, throughout.
4421 (dfp_suffix): Rename to ...
4422 (q): ... this, throughout.
4424 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
4426 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
4427 (dfp_suffix): Ditto.
4428 (adddd3, addtd3): Merge to ...
4429 (add<mode>3 for D64_D128): ... this.
4430 (subdd3, subtd3): Merge to ...
4431 (sub<mode>3 for D64_D128): ... this.
4432 (muldd3, multd3): Merge to ...
4433 (mul<mode>3 for D64_D128): ... this.
4434 (divdd3, divtd3): Merge to ...
4435 (div<mode>3 for D64_D128): ... this.
4436 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
4437 (*cmp<mode>_internal1 for D64_D128): ... this.
4438 (ftruncdd2, ftrunctd2): Merge to ...
4439 (ftrunc<mode>2 for D64_D128): ... this.
4440 (fixdddi2, fixtddi2): Merge to ...
4441 (fix<mode>di2 for D64_D128): ... this.
4443 2019-08-08 Jim Wilson <jimw@sifive.com>
4446 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
4447 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
4448 Pass into recursive call.
4449 (riscv_flatten_aggregate_argument): New arg. Pass to
4450 riscv_flatten_aggregate_field.
4451 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
4452 riscv_flatten_aggregate_argument twice, with false and true as last
4453 arg. Process result twice. Compare results and warn if different.
4454 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
4456 2019-08-08 Martin Liska <mliska@suse.cz>
4459 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
4460 * lto-wrapper.c (jobserver_active_p): Likewise.
4462 2019-08-08 Martin Liska <mliska@suse.cz>
4464 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
4465 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
4466 (create_version_clone_with_body): Likewise.
4468 2019-08-08 Jakub Jelinek <jakub@redhat.com>
4470 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
4471 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
4472 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
4473 GOVD_EXPLICIT flags.
4474 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
4475 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
4476 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
4477 call install_var_field with mask 11 instead of 3.
4478 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
4479 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
4481 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4483 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
4484 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
4486 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4488 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
4489 MOVPRFX alternatives. Make the GPR alternatives more expensive
4492 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4494 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
4495 Disparage the GPR alternative relative to the FPR one.
4496 Fix handling of 8-bit and 16-bit FPR values.
4498 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4500 * config/aarch64/iterators.md (BITWISEV): Delete.
4501 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
4502 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
4503 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
4504 UNSPEC_FMINNMV, UNSPEC_FMINV.
4505 (bit_reduc_op): Delete.
4506 (sve_int_op): New int attribute.
4507 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
4508 UNSPEC_FMINNMV, UNSPEC_FMINV.
4509 * config/aarch64/aarch64-sve.md
4510 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
4511 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
4512 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
4513 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
4514 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
4515 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
4517 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
4518 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
4519 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
4520 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
4521 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
4524 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4526 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
4527 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
4528 (fms<mode>4, *fms<mode>4): Replace with...
4529 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
4530 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
4531 Use unspecs instead of rtx codes.
4532 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
4533 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
4535 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4537 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
4539 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
4540 * config/aarch64/aarch64-sve.md
4541 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
4542 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
4543 use a single unspec for the rhs.
4544 (*<su><maxmin><mode>3): Delete.
4545 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
4547 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4549 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
4550 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
4551 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
4552 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
4553 (optab, sve_fp_op): Handle them.
4554 (SVE_FP_UNARY): Delete.
4555 (optab): Remove sqrt entry.
4556 (sve_fp_op): Remove neg, abs and sqrt entries.
4557 (SVE_COND_FP_UNARY): New int iterator.
4558 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
4559 (*<frint_pattern><mode>2): Delete.
4560 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
4561 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
4562 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
4563 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
4565 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4567 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
4569 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4571 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
4572 (UNSPEC_COND_FADD): ...this.
4573 (UNSPEC_COND_SUB): Rename to...
4574 (UNSPEC_COND_FSUB): ...this.
4575 (UNSPEC_COND_MUL): Rename to...
4576 (UNSPEC_COND_FMUL): ...this.
4577 (UNSPEC_COND_DIV): Rename to...
4578 (UNSPEC_COND_FDIV): ...this.
4579 (UNSPEC_COND_MAX): Rename to...
4580 (UNSPEC_COND_FMAXNM): ...this.
4581 (UNSPEC_COND_MIN): Rename to...
4582 (UNSPEC_COND_FMINNM): ...this.
4583 (UNSPEC_COND_LT): Rename to...
4584 (UNSPEC_COND_FCMLT): ...this.
4585 (UNSPEC_COND_LE): Rename to...
4586 (UNSPEC_COND_FCMLE): ...this.
4587 (UNSPEC_COND_EQ): Rename to...
4588 (UNSPEC_COND_FCMEQ): ...this.
4589 (UNSPEC_COND_NE): Rename to...
4590 (UNSPEC_COND_FCMNE): ...this.
4591 (UNSPEC_COND_GE): Rename to...
4592 (UNSPEC_COND_FCMGE): ...this.
4593 (UNSPEC_COND_GT): Rename to...
4594 (UNSPEC_COND_FCMGT): ...this.
4595 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
4596 (sve_fp_op_rev): Update accordingly.
4597 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
4599 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4601 * config/aarch64/aarch64-sve.md: Reorganize contents and add
4603 * config/aarch64/check-sve-md.awk: New file.
4604 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
4605 (insn-conditions.md): Depend on it.
4607 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
4610 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
4611 (*negsi2_cmpz_zext): Ditto.
4613 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4615 * config/aarch64/iterators.md (commutative): Remove.
4617 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
4620 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
4621 processing COLLECT_GCC_OPTIONS.
4622 (run_gcc): Likewise.
4624 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
4626 PR tree-optimization/91109
4627 * lra-remat.c (update_scratch_ops): Remove assignment of the
4630 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
4632 * data-streamer.h (streamer_write_poly_uint64): Declare.
4633 (streamer_read_poly_uint64): Likewise.
4634 * data-streamer-in.c (streamer_read_poly_uint64): New function.
4635 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
4636 * ipa-predicate.h (condition::size): Turn into a poly_int64.
4637 (add_condition): Take a poly_int64 size.
4638 * ipa-predicate.c (add_condition): Likewise.
4639 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
4640 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
4641 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
4642 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
4643 condition::size as a poly_int64.
4644 (unmodified_parm_1): Take a poly_int64 size pointer.
4645 (unmodified_parm): Likewise.
4646 (unmodified_parm_or_parm_agg_item): Likewise.
4647 (set_cond_stmt_execution_predicate): Update accordingly.
4648 (set_switch_stmt_execution_predicate): Likewise.
4649 (will_be_nonconstant_expr_predicate): Likewise.
4650 (will_be_nonconstant_predicate): Likewise.
4651 (inline_read_section): Stream condition::size as a poly_int.
4652 (ipa_fn_summary_write): Likewise.
4654 2019-08-07 Martin Liska <mliska@suse.cz>
4656 * fold-const.c (twoval_comparison_p): Replace int
4657 with bool as a return type.
4658 (simple_operand_p): Likewise.
4659 (operand_equal_p): Replace int with bool as a return type.
4660 * fold-const.h (operand_equal_p): Likewise.
4662 2019-08-07 Jakub Jelinek <jakub@redhat.com>
4664 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
4665 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
4666 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
4667 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
4668 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
4669 * tree-pretty-print.c (dump_omp_clause): Likewise.
4670 * tree-nested.c (convert_nonlocal_omp_clauses,
4671 convert_local_omp_clauses): Likewise.
4672 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
4674 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
4675 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
4676 clause with array or reference to array types, no matter what type
4677 except for reference it has.
4679 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
4681 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
4683 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
4685 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
4686 (arch_canonicalize): Support rv32g and rv64g and fix error
4689 2019-08-06 Martin Liska <mliska@suse.cz>
4691 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
4692 and DECL_IS_OPERATOR_DELETE_P.
4694 2019-08-06 Jakub Jelinek <jakub@redhat.com>
4696 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
4697 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
4698 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
4699 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
4700 (gimplify_omp_for): Don't do C++ random access iterator clause
4701 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
4702 don't predetermine the artificial iterator in case of C++ random
4703 access iterators as lastprivate, but private. For OMP_LOOP, force
4704 bind expr around simd body and force for_pre_body before the
4705 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
4706 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
4707 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
4708 diff var of C++ random access iterators. Handle
4709 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
4710 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
4711 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
4712 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
4713 * omp-low.c (lower_rec_input_clauses): For
4714 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
4715 variables instead of default constructing them.
4716 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
4717 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
4718 is_taskloop_ctx check from the assert to the guarding condition.
4720 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
4722 * config/riscv/multilib-generator: (canonical_order): New.
4723 (arch_canonicalize): Dito.
4724 Apply arch_canonicalize for alts.
4726 2019-08-05 Martin Sebor <msebor@redhat.com>
4728 * doc/extend.texi (Common Variable Attributes): Document alias
4731 2019-08-05 Marek Polacek <polacek@redhat.com>
4733 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
4734 * doc/invoke.texi: Document -Wcomma-subscript.
4736 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
4738 * tree-core.h (tree_function_decl): Make function_code an
4739 independent field. Group the remaining bitfields into bytes
4740 and move decl_type so that it contines to be at a byte boundary.
4741 Leave 12 bits for future expansion.
4743 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
4745 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
4746 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
4747 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
4750 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
4752 * gimple.h (gimple_move_vops): Declare.
4753 * gimple.c (gimple_move_vops): New function
4754 * gimple-fold.c (replace_call_with_call_and_fold)
4755 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
4756 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
4757 (gimple_fold_call): Use it.
4758 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
4759 * tree-call-cdce.c (use_internal_fn): Likewise.
4760 * tree-if-conv.c (predicate_load_or_store): Likewise.
4761 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4762 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4763 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
4764 (update_call_from_tree): Likewise.
4765 * tree-vect-stmts.c (vectorizable_load): Likewise.
4766 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
4768 2019-08-05 Martin Liska <mliska@suse.cz>
4771 * tree-ssa-dce.c (propagate_necessity): Handle new operators
4773 (eliminate_unnecessary_stmts): Likewise.
4775 2019-08-05 Richard Biener <rguenther@suse.de>
4778 * fold-const.c (get_array_ctor_element_at_index): Create
4779 offset_ints according to the sign of the index type and treat
4780 that as signed if it is obviously so.
4782 2019-08-05 Jakub Jelinek <jakub@redhat.com>
4785 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
4786 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
4787 _mm256_storeu2_m128i): New function.
4789 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
4791 * config/riscv/riscv.c (riscv_promote_function_mode): New.
4792 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
4794 2019-08-05 Alan Modra <amodra@gmail.com>
4797 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
4798 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
4800 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
4802 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
4803 bug that was fixed in Tcl 8.6.1.
4805 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
4807 * config/rs6000/future.md: New file.
4808 * config/rs6000/rs6000.md: Include future.md.
4809 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
4811 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4813 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
4814 check to use targetm.slow_unaligned_access instead.
4816 * function.c (assign_param_data_one): Remove unused data members.
4818 2019-08-02 Steve Ellcey <sellcey@marvell.com>
4820 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
4821 build_distinct_type_copy.
4822 (simd_clone_adjust_argument_types): Ditto.
4823 (simd_clone_adjust): Call build_distinct_type_copy here.
4824 (expand_simd_clones): Ditto.
4826 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
4829 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
4831 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
4833 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
4834 from 'const void *'.
4835 (sort_locs_in_loop_postorder_cmp): Likewise.
4837 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
4839 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
4840 (hot-bb-count-ws-permille): Likewise.
4841 (hot-bb-frequency-fraction): Likewise.
4842 (unlikely-bb-count-fraction): Likewise.
4843 * params.def (hot-bb-count-fraction): Rework description.
4844 (hot-bb-count-ws-permille): Likewise.
4845 (hot-bb-frequency-fraction): Likewise.
4846 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
4847 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
4849 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
4852 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
4855 2019-08-02 Richard Biener <rguenther@suse.de>
4857 * vec.h (vec::sort): Add gcc_qsort_r support.
4858 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
4859 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
4860 to gcc_qsort_r style callback.
4861 (sort_locs_in_loop_postorder_cmp): Likewise.
4862 (analyze_memory_references): Use gcc_sort_r interfaces.
4863 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
4865 2019-08-02 Martin Liska <mliska@suse.cz>
4868 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
4869 to detect working job server.
4870 (driver::detect_jobserver): Test whether jobserver
4871 is active from GCC driver. That will prevent situation where
4872 GCC is invoked from a LD plugin and the linker already uses
4873 file descriptors suggested by make. That leads to a wrong
4875 * gcc.h (driver): Add detect_jobserver.
4876 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
4877 not scanning for --jobserver-auth prefix.
4879 2019-08-02 Jakub Jelinek <jakub@redhat.com>
4881 PR tree-optimization/91201
4882 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
4883 V16QImode extraction without sse4.1 try to use V4SImode lowpart
4886 2019-08-01 Martin Sebor <msebor@redhat.com>
4889 * tree.c (type_initializer_zero_p): Define.
4890 * tree.h (type_initializer_zero_p): New function.
4892 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
4894 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
4896 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
4898 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
4899 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
4900 * predict.c (maybe_hot_count_p): Likewise.
4901 (maybe_hot_bb_p): Tweak comment.
4902 (maybe_hot_edge_p): Likewise.
4903 (probably_never_executed): Likewise. Minor tweak.
4904 (probably_never_executed_bb_p): Likewise.
4905 (unlikely_executed_edge_p): Likewise.
4906 (probably_never_executed_edge_p): Likewise.
4907 (optimize_function_for_size_p): Likewise.
4908 (optimize_function_for_speed_p): Likewise.
4909 (function_optimization_type): Likewise.
4910 (optimize_bb_for_size_p): Likewise.
4911 (optimize_bb_for_speed_p): Likewise.
4912 (bb_optimization_type): Likewise.
4913 (optimize_edge_for_size_p): Likewise.
4914 (optimize_edge_for_speed_p): Likewise.
4915 (optimize_insn_for_size_p): Likewise.
4916 (optimize_insn_for_speed_p): Likewise.
4917 (optimize_loop_for_size_p): Likewise.
4918 (optimize_loop_for_speed_p): Likewise.
4919 (optimize_loop_nest_for_speed_p): Likewise.
4920 (optimize_loop_nest_for_size_p): Likewise.
4921 (predictable_edge_p): Likewise.
4922 (handle_missing_profiles): Minor tweak.
4924 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
4926 * config/rs6000/predicates.md (pcrel_external_address): Update
4929 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
4932 * config/i386/mmx.md (usadv8qi): New expander.
4934 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
4937 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
4938 with reserved names that are in a system header.
4940 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
4942 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
4943 (*vec_extractv2si_0_zext_sse4): New insn pattern.
4944 (*vec_extractv2si_0_zext): Ditto.
4945 (*vec_extractv2si_1): Add (rm,x) alternative.
4946 (*vec_extractv2si_1_zext): New insn pattern.
4947 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
4950 2019-08-01 Richard Biener <rguenther@suse.de>
4952 * domwalk.c (bb_postorder): Remove static variable.
4953 (cmp_bb_postorder): Adjust.
4954 (sort_bbs_postorder): Adjust and use gcc_sort_r.
4955 (dom_walker::walk): Adjust.
4957 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
4959 * sort.cc (sort_r_ctx): New struct.
4960 (reorder23): Make templated on context type.
4962 (cmp1): Ditto. Adjust signature.
4965 [CHECKING_P] (cmp2to3): New static function. Use it...
4966 (gcc_qsort) [CHECKING_P]: ...here.
4967 (gcc_sort_r): New function.
4968 * system.h (sort_r_cmp_fn): New function typedef.
4969 (qsort_chk): Adjust signature.
4970 (gcc_sort_r): Declare.
4971 * vec.c (qsort_chk_error): Adjust.
4972 (qsort_chk): Adjust.
4974 2019-08-01 Richard Biener <rguenther@suse.de>
4976 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
4977 (compute_antic): Localize it here.
4979 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
4981 * common/config/riscv/riscv-common.c: Check -march string ends
4984 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
4986 * ipa-devirt.c (type_warning_cmp): Make static.
4987 (decl_warning_cmp): Ditto.
4989 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
4992 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
4993 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4994 use of deleted rs6000_dejagnu_cpu_index variable.
4995 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
4996 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
4997 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
4998 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
4999 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
5000 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
5002 2019-07-31 Richard Biener <rguenther@suse.de>
5004 PR tree-optimization/91280
5005 * tree-ssa-structalias.c (get_constraint_for_component_ref):
5006 Decompose MEM_REF manually for offset handling.
5008 2019-07-31 Richard Biener <rguenther@suse.de>
5010 PR tree-optimization/91293
5011 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
5014 2019-07-31 Matt Thomas <matt@3am-software.com>
5015 Nick Hudson <nick@nthcliff.demon.co.uk>
5016 Matthew Green <mrg@eterna.com.au>
5017 Maya Rashish <coypu@sdf.org>
5019 * config.gcc (hppa*-*-netbsd*): New target.
5020 * config/pa/pa-netbsd.h: New file.
5021 * config/pa/pa32-netbsd.h: New file.
5023 2019-07-31 Jakub Jelinek <jakub@redhat.com>
5025 PR tree-optimization/91201
5026 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
5028 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
5030 * config/gcn/gcn-valu.md
5031 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
5032 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
5033 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
5034 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
5035 struct ilist. Add nops for delayeduse insns.
5036 * config/gcn/gcn.md (delayeduse): New attribute.
5037 (*movbi): Remove s_waitcnt from stores.
5038 (*mov<mode>_insn): Likewise.
5039 (*movti_insn): Likewise. Add delayeduse attribute.
5040 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
5041 (atomic_store<mode>): Remove or adjust s_waitcnt.
5043 2019-07-31 Richard Biener <rguenther@suse.de>
5045 * vr-values.h (vr_values::swap_vr_value): New.
5046 (vr_values::free_value_range): likewise.
5047 * vr-values.c (vr_values::swap_vr_value): Implement.
5048 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
5049 Do not return a range or take a var.
5050 (evrp_range_analyzer::stack): Change back to recording a non-const
5052 * gimple-ssa-evrp-analyze.c
5053 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
5055 (evrp_range_analyzer::pop_to_marker): Adjust.
5056 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
5057 (evrp_range_analyzer::pop_value_range): Likewise. Free the
5058 no longer needed value-range.
5060 2019-07-31 Martin Liska <mliska@suse.cz>
5062 * tree-ssa-dce.c (propagate_necessity): Delete operator can
5063 have size and (or) alignment as 2nd and later arguments.
5064 Mark all of them as necessary.
5066 2019-07-31 Richard Biener <rguenther@suse.de>
5068 PR tree-optimization/91178
5069 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5072 2019-07-31 Jakub Jelinek <jakub@redhat.com>
5074 PR tree-optimization/91201
5075 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
5076 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
5078 (reduc_plus_scal_<mode>): Improve formatting by introducing
5081 2019-07-31 Sudakshina Das <sudi.das@arm.com>
5083 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
5084 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
5085 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
5086 (aarch64_init_tme_builtins): New.
5087 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
5088 (aarch64_expand_builtin_tme): New.
5089 (aarch64_expand_builtin): Handle TME builtins.
5090 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5091 __ARM_FEATURE_TME when enabled.
5092 * config/aarch64/aarch64-option-extensions.def: Add "tme".
5093 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
5095 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
5096 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
5098 (tstart, ttest, tcommit, tcancel): New instructions.
5099 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
5100 (__tcancel, __ttest): New.
5101 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
5102 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
5103 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
5104 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
5105 * config/arm/types.md: Add new tme type attr.
5106 * doc/invoke.texi: Document "tme".
5108 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
5110 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
5111 warn_unused_result attribute.
5112 (cmse_check_address_range): Add warn_unused_result attribute.
5114 2019-07-31 Richard Biener <rguenther@suse.de>
5116 PR tree-optimization/91257
5117 * tree-vrp.c (union_ranges): Unify equality and less tests
5118 by using compare_values. Re-order cheap tests first.
5120 2019-07-31 Jakub Jelinek <jakub@redhat.com>
5123 * gimplify.c (gimplify_omp_for): If for class iterator on
5124 distribute parallel for there is no data sharing clause
5125 on inner_for_stmt, look for private clause on combined
5126 parallel too and if found, move it to inner_for_stmt.
5128 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
5130 * lra-int.h (lra_operand_data): Remove early_clobber field.
5131 (lra_insn_reg): Likewise.
5132 * lra.c (debug_operand_data): Update accordingly.
5133 (setup_operand_alternative): Likewise.
5134 (new_insn_reg): Likewise. Remove early_clobber parameter.
5135 (collect_non_operand_hard_regs): Update call accordingly.
5136 Don't assign to lra_insn_reg::early_clobber.
5137 (add_regs_to_insn_regno_info): Remove early_clobber parameter
5138 and update calls to new_insn_reg.
5139 (lra_update_insn_regno_info): Update calls accordingly.
5140 * lra-constraints.c (update_and_check_small_class_inputs): Take the
5141 alternative number as a parameter and test whether the operand
5142 is earlyclobbered in that particular alternative.
5143 (process_alt_operands): Update call accordingly. Use per-alternative
5144 checks for earyclobber here too.
5145 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
5146 against zero for IRA_UNKNOWN_ALT.
5148 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
5150 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
5152 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
5154 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
5155 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
5157 2019-07-30 Martin Liska <mliska@suse.cz>
5160 * cgraph.c (cgraph_edge::make_direct): Use
5161 edge->indirect_unknown_callee as edge->resolve_speculation can
5162 deallocate edge which is this pointer.
5164 2019-07-30 Richard Biener <rguenther@suse.de>
5166 PR tree-optimization/91257
5167 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
5169 2019-07-30 Martin Liska <mliska@suse.cz>
5171 * doc/invoke.texi: Document new behavior.
5172 * lto-wrapper.c (cpuset_popcount): New function
5173 is a copy of libgomp/config/linux/proc.c.
5174 (init_num_threads): Likewise.
5175 (run_gcc): Automatically detect core count for -flto.
5176 (jobserver_active_p): New function.
5178 2019-07-30 Richard Biener <rguenther@suse.de>
5180 PR tree-optimization/91257
5181 * bitmap.h (bitmap_ior_into_and_free): Declare.
5182 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
5183 whether to add the unliked element to the freelist.
5184 (bitmap_list_insert_element_after): Add defaulted param for
5185 an already allocated element.
5186 (bitmap_ior_into_and_free): New function.
5187 * tree-ssa-structalias.c (condense_visit): Reduce the
5188 ponts-to and edge bitmaps of the SCC members in a
5189 logarithmic fashion rather than all to one.
5191 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
5193 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
5194 parameter. When nonnull, make sure that the addition or subtraction
5195 has the same condition.
5196 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
5197 for CFN_COND_MUL too.
5199 2019-07-30 Richard Biener <rguenther@suse.de>
5201 PR tree-optimization/91291
5202 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
5205 2019-07-30 Jakub Jelinek <jakub@redhat.com>
5208 * omp-low.c (global_nonaddressable_vars): New variable.
5209 (use_pointer_for_field): For global decls, if they are non-addressable,
5210 remember it in the global_nonaddressable_vars bitmap, if they are
5211 addressable and in the global_nonaddressable_vars bitmap, ignore their
5212 TREE_ADDRESSABLE bit.
5213 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
5214 vars in global_nonaddressable_vars bitmap.
5215 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
5218 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
5219 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
5220 comparison to unsigned HOST_WIDE_INT before shifting it left.
5222 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
5224 * config/i386/i386.md (movstrict<mode>): Use register_operand
5225 predicate for operand 0. Add expander condition. Assert that
5226 operand 0 is a SUBREG RTX.
5227 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
5228 Update operand constraints and insn condition.
5229 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
5230 (zero_extendqihi2_and): Do not call gen_movstrictqi.
5231 (*setcc_qi_slp): Use register_operand predicate for operand 0.
5232 Update operand 0 constraints.
5233 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
5235 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5237 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
5238 when -m{code,data}-region are used without -mlarge.
5239 * config/msp430/msp430.c (msp430_option_override): Error when a
5240 non-default code or data region is used without -mlarge.
5241 (msp430_section_attr): Emit a warning and do not add upper/lower/either
5242 attributes when they are used without -mlarge.
5244 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5247 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
5249 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
5252 * wide-int.h (generic_wide_int::sext_elt): New function.
5253 * inchash.h (hash::add_wide_int): Use it instead of elt.
5255 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5257 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
5259 * config/arm/arm.md (<crc_variant>): Rename to...
5260 (arm_<crc_variant>): ... This.
5261 (<cdp>): Rename to...
5262 (arm_<cdp>): ... This.
5263 (<ldc>): Rename to...
5264 (arm_<ldc>): ... This.
5265 (<stc>): Rename to...
5266 (arm_<stc>): ... This.
5267 (<mcr>): Rename to...
5268 (arm_<mcr>): ... This.
5269 (<mrc>): Rename to...
5270 (arm_<mrc>): ... This.
5271 (<mcrr>): Rename to...
5272 (arm_<mcrr>): ... This.
5273 (<mrrc>): Rename to...
5274 (arm_<mrrc>): ... This.
5276 2019-07-29 Richard Biener <rguenther@suse.de>
5278 PR tree-optimization/91257
5279 * tree-ssa-sccvn.h (struct vn_avail): New.
5280 (struct vn_ssa_aux): Add avail member.
5281 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
5282 member, add m_avail_freelist one.
5283 (rpo_elim::~rpo_elim): Remove.
5284 (rpo_elim::eliminate_avail): Adjust to new avail tracking
5286 (rpo_elim::eliminate_push_avail): Likewise.
5287 (do_unwind): Likewise.
5288 (do_rpo_vn): Likewise.
5290 2019-07-29 Richard Biener <rguenther@suse.de>
5292 PR tree-optimization/91257
5293 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
5294 most cases, instead call compare_values which handles the
5295 symbolic ranges we handle specially.
5296 (compare_values_warnv): Do not call operand_less_p but open-code
5297 the effective fold calls. Avoid converting so much.
5299 2019-07-29 Martin Liska <mliska@suse.cz>
5301 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
5302 remove LHS of operator new call. It's handled latter.
5304 2019-07-29 Richard Biener <rguenther@suse.de>
5306 PR tree-optimization/91267
5307 * vr-values.c (vr_values::update_value_range): Add early return
5308 for effectively VARYING lattice entry.
5310 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
5313 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
5314 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
5315 necessary if keep_all_vdefs_p is true.
5316 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
5317 that keep_all_vdefs_p is false.
5318 (mark_all_reaching_defs_necessary): Likewise.
5319 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
5321 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
5323 * common.opt (Og): Change the initial value of flag_dse to 0.
5324 * opts.c (default_options_table): Move OPT_ftree_dse from
5325 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
5326 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
5327 entry before the OPT_ftree_sra entry.
5328 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
5329 of flags disabled by Og.
5331 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
5333 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
5336 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
5338 * doc/sourcebuild.texi (check-function-bodies): Document.
5340 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
5342 * simplify-rtx.c (simplify_const_unary_operation): Fold a
5343 VEC_DUPLICATE of a fixed-length vector even if the result
5344 is variable-length. Likewise fold a duplicate of a
5345 variable-length vector if the variable-length vector is
5346 itself a duplicate of a fixed-length sequence.
5347 (test_vector_ops_duplicate): Test more cases.
5349 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
5351 * vector-builder.h (vector_builder): Add a shape template parameter.
5352 (vector_builder::new_unary_operation): New function, generalizing
5353 the old tree_vector_builder function.
5354 (vector_builder::new_binary_operation): Likewise.
5355 (vector_builder::binary_encoded_nelts): Likewise.
5356 * int-vector-builder.h (int_vector_builder): Update template
5357 parameters to vector_builder.
5358 (int_vector_builder::shape_nelts): New function.
5359 * rtx-vector-builder.h (rtx_vector_builder): Update template
5360 parameters to vector_builder.
5361 (rtx_vector_builder::shape_nelts): New function.
5362 (rtx_vector_builder::nelts_of): Likewise.
5363 (rtx_vector_builder::npatterns_of): Likewise.
5364 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
5365 * tree-vector-builder.h (tree_vector_builder): Update template
5366 parameters to vector_builder.
5367 (tree_vector_builder::shape_nelts): New function.
5368 (tree_vector_builder::nelts_of): Likewise.
5369 (tree_vector_builder::npatterns_of): Likewise.
5370 (tree_vector_builder::nelts_per_pattern_of): Likewise.
5371 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
5372 (tree_vector_builder::new_binary_operation): Delete.
5373 (tree_vector_builder::binary_encoded_nelts): Likewise.
5374 * simplify-rtx.c: Include rtx-vector-builder.h.
5375 (distributes_over_addition_p): New function.
5376 (simplify_const_unary_operation)
5377 (simplify_const_binary_operation): Generalize handling of vector
5378 constants to include variable-length vectors.
5379 (test_vector_ops_series): Add more tests.
5381 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
5384 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
5385 than INDENTIFIER_POINTER.
5387 2019-07-28 Martin Liska <mliska@suse.cz>
5390 * cgraph.c (symbol_table::create_edge): Always allocate
5392 (symbol_table::free_edge): Store summary_id to
5393 edge_released_summary_ids if != -1;
5394 * cgraph.h (NEXT_FREE_NODE): Remove.
5395 (SET_NEXT_FREE_NODE): Likewise.
5396 (NEXT_FREE_EDGE): Likewise.
5397 (symbol_table::release_symbol): Store summary_id to
5398 cgraph_released_summary_ids if != -1;
5399 (symbol_table::allocate_cgraph_symbol): Always allocate
5402 2019-07-28 Alan Modra <amodra@gmail.com>
5404 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
5407 2019-07-28 Alan Modra <amodra@gmail.com>
5410 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
5412 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
5413 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
5414 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
5416 2019-07-28 Alan Modra <amodra@gmail.com>
5419 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
5420 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
5421 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
5422 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
5423 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
5424 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
5425 in asm_default spec.
5426 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
5427 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
5429 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
5431 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
5433 2019-07-26 Tamar Christina <tamar.christina@arm.com>
5436 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
5437 * config/aarch64/aarch64-option-extensions.def: Add new comments
5438 and restore easier to read options.
5440 2019-07-26 Tamar Christina <tamar.christina@arm.com>
5442 * convert.c (convert_to_real_1): Move part of conversion code...
5443 * match.pd: ...To here.
5445 2019-07-26 Martin Jambor <mjambor@suse.cz>
5448 * ipa-inline-transform.c (check_speculations_1): New function.
5449 (push_all_edges_in_set_to_vec): Likewise.
5450 (check_speculations): Use check_speculations_1, new parameter
5452 (inline_call): Pass new_edges to check_speculations.
5453 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
5455 (speculation_useful_p): Early return true if edge is inlined, remove
5456 later checks for inline_failed.
5458 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
5460 PR rtl-optimization/91223
5461 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
5462 matching with INOUT operand.
5464 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
5466 * stmt.c (expand_case): Try to narrow the index type if it's larger
5467 than a word. Tidy up.
5469 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
5471 * cif-code.def (NEVER_CALL): New code.
5472 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
5473 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
5475 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
5477 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
5478 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
5480 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
5482 * ipa-devirt.c (add_type_duplicate): Fix return value.
5484 2019-07-25 Richard Biener <rguenther@suse.de>
5486 * tree-vrp.c (extract_range_from_multiplicative_op): Add
5487 type parameter and use it instead of guessing expression
5488 type from the first operand.
5489 (extract_range_from_binary_expr): Pass expr_type down.
5491 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5493 * config/arm/arm.md (SATrev): Change to code attribute.
5494 (*satsi_<SAT:code>): Adjust for the above.
5495 (*satsi_<SAT:code>_shift): Likewise.
5497 2019-07-25 Richard Biener <rguenther@suse.de>
5499 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
5500 Make value_range * temporary const.
5501 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
5503 (evrp_range_analyzer::record_ranges_from_): Likewise.
5504 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
5505 deal with having recorded a const one.
5506 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
5507 Return a const value_range *.
5508 (evrp_range_analyzer::pop_value_range): Likewise.
5509 (evrp_range_analyzer::stack): Record const value_range *s.
5510 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
5512 * gimple-ssa-sprintf.c (get_int_range): Likewise.
5513 (format_integer): Likewise.
5514 (sprintf_dom_walker::handle_gimple_call): Likewise.
5515 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
5516 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
5517 (vrp_prop::get_value_range): Adjust.
5518 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
5519 modifying the lattice in-place.
5520 (vrp_prop::visit_stmt): Likewise.
5521 * vr-values.c (vr_values::get_lattice_entry): New private method.
5522 (vr_values::get_value_range): Wrap it and return a const
5524 (vr_values::set_def_to_varying): New.
5525 (vr_values::set_defs_to_varying): Use it.
5526 (vr_values::update_value_range): Likewise.
5527 (vr_values::vrp_stmt_computes_nonzero): Adjust.
5528 (values::op_with_constant_singleton_va): Likewise.
5529 (vr_values::extract_range_for_var_from_co): Likewise.
5530 (vr_values::extract_range_from_ssa_name): Likewise.
5531 (vr_values::extract_range_from_cond_expr): Likewise.
5532 (vr_values::extract_range_basic): Likewise.
5533 (compare_ranges): Take const value_range *, adjust.
5534 (compare_range_with_value): Likewise.
5535 (vrp_valueize): Adjust.
5536 (vrp_valueize_1): Likewise.
5537 (vr_values::get_vr_for_comparison): Return a const value_range *.
5538 (vr_values::compare_name_with_value): Adjust.
5539 (vr_values::compare_names): Likewise.
5540 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
5542 (vr_values::vrp_evaluate_conditional): Likewise.
5543 (find_case_label_ranges): Take a const value_range *.
5544 (vr_values::vrp_visit_switch_stmt): Adjust.
5545 (vr_values::extract_range_from_phi_node): Likewise.
5546 (vr_values::simplify_div_or_mod_using_ran): Likewise.
5547 (vr_values::simplify_abs_using_ranges): Likewise.
5548 (test_for_singularity): Take a const value_range *.
5549 (range_fits_type_p): Likewise.
5550 (vr_values::simplify_cond_using_ranges_1): Adjust.
5551 (vr_values::simplify_cond_using_ranges_2): Likewise.
5552 (vr_values::simplify_switch_using_ranges): Likewise.
5553 (vr_values::simplify_float_conversion_usi): Likewise.
5554 (vr_values::two_valued_val_range_p): Likewise.
5555 * vr-values.h (vr_values::get_value_range): Return a const
5557 (vr_values::set_def_to_varying): New.
5558 (vr_values::get_lattice_entry): New private method.
5559 (vr_values::get_vr_for_comparison): Return a const value_range *.
5561 2019-07-25 Martin Liska <mliska@suse.cz>
5562 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
5565 * common.opt: Add -fallocation-dce
5566 * gimple.c (gimple_call_operator_delete_p): New.
5567 * gimple.h (gimple_call_operator_delete_p): Likewise.
5568 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
5569 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
5570 DECL_IS_OPERATOR_DELETE_P.
5571 (mark_all_reaching_defs_necessary_1): Likewise.
5572 (propagate_necessity): Likewise.
5573 (eliminate_unnecessary_stmts): Handle
5574 gimple_call_operator_delete_p.
5575 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
5576 Add packing of OPERATOR_DELETE.
5577 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
5579 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
5580 (DECL_SET_IS_OPERATOR_DELETE): New.
5581 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
5583 2019-07-25 Martin Liska <mliska@suse.cz>
5585 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
5586 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
5587 * coverage.c (coverage_begin_function): Likewise.
5588 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
5589 * gimple.c (gimple_call_nonnull_result_p): Likewise.
5590 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
5591 (sem_item::hash_referenced_symbol_properties): Likewise.
5592 * lto-streamer-out.c (hash_tree): Likewise.
5593 * predict.c (expr_expected_value_1): Likewise.
5594 * tree-inline.c (expand_call_inline): Likewise.
5595 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
5596 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
5597 * tree-core.h (enum function_decl_type): New enum.
5598 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
5599 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
5600 (set_function_decl_type): Likewise.
5601 (DECL_IS_OPERATOR_NEW_P): New.
5602 (DECL_SET_IS_OPERATOR_NEW): Likewise.
5603 (DECL_LAMBDA_FUNCTION): Likewise.
5604 (DECL_LAMBDA_FUNCTION_P): Likewise.
5605 (DECL_IS_OPERATOR_NEW): Remove.
5606 (DECL_SET_LAMBDA_FUNCTION): Likewise.
5608 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
5610 * ipa-profile.c (get_most_common_single_value): Use
5611 get_nth_most_common_value.
5612 * profile.c (sort_hist_value): New function.
5613 (compute_value_histograms): Call sort_hist_value to sort the
5614 values after loading from disk.
5615 * value-prof.c (get_most_common_single_value): Rename to ...
5616 get_nth_most_common_value. Add input params n, return
5617 the n_th value and count.
5618 (gimple_divmod_fixed_value_transform): Use
5619 get_nth_most_common_value.
5620 (gimple_ic_transform): Likewise.
5621 (gimple_stringops_transform): Likewise.
5622 * value-prof.h (get_most_common_single_value): Add input params
5625 2019-07-25 Richard Biener <rguenther@suse.de>
5627 PR tree-optimization/91236
5628 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
5629 size of CONSTRUCTOR write. Fix buffer size we pass to
5632 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5634 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
5635 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
5638 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5640 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
5641 explicitly disabled with --disable-initfini-array.
5643 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5645 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
5648 2019-07-24 Martin Sebor <msebor@redhat.com>
5650 PR tree-optimization/91183
5651 PR tree-optimization/86688
5652 * builtins.c (compute_objsize): Handle MEM_REF.
5653 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
5654 (get_min_string_length): Remove.
5655 (count_nonzero_bytes): New function.
5656 (handle_char_store): Rename...
5657 (handle_store): to this. Handle multibyte stores via integer types.
5658 (strlen_check_and_optimize_stmt): Adjust conditional and the called
5661 2019-07-24 Martin Sebor <msebor@redhat.com>
5664 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
5665 (diagnostic_report_diagnostic): Same.
5666 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
5667 (diagnostic_context::lang_mask): New data member.
5668 * ipa-pure-const.c (suggest_attribute): Use
5669 lang_hooks.option_lang_mask ().
5670 * opts-common.c (option_enabled): Handle new argument.
5671 (get_option_state): Pass an additional argument.
5672 * opts.c (print_filtered_help): Print supported languages for
5673 unsupported options. Adjust printing of current state.
5674 * opts.h (option_enabled): Add argument.
5675 * toplev.c (print_switch_values): Use lang_mask.
5676 (general_init): Set global_dc->lang_mask.
5678 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
5681 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
5683 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
5685 * cgraphunit.c (symbol_table::compile): Start and stop
5686 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
5687 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
5689 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
5691 * gimplify.c (flag_instrument_functions_exclude_p): Include
5692 namespace/class information in the printable name.
5693 * opts.c (add_comma_separated_to_vector): Add NUL terminator
5694 to tokens entered into the vector.
5696 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
5698 * tree-nested.c (build_simple_mem_ref_notrap): New function.
5699 (get_static_chain): Call it instead of build_simple_mem_ref.
5700 (get_frame_field): Likewise.
5701 (get_nonlocal_debug_decl): Likewise.
5702 (convert_nonlocal_reference_op): Likewise.
5704 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
5706 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
5708 (arc_compute_frame_size): Millicode is disabled when compiling
5710 (arc_return_address_register): Likewise.
5711 (arc_compute_function_type): Likewise.
5712 (arc_compute_frame_size): Likewise.
5713 (secondary_reload_info): Likewise.
5714 (arc_get_unalign): Likewise.
5715 (arc_can_use_return_insn): Declare.
5716 * config/arc/arc.c (AUX_LP_START): Define
5717 (AUX_LP_END): Likewise.
5718 (arc_frame_info): Update gmask member to 64-bit datum.
5719 (GMASK_LEN): Update.
5720 (arc_compute_function_type): Make it static, move it forward.
5721 (arc_must_save_register): Update, consider the extra regs.
5722 (arc_compute_millicode_save_restore_regs): Update to use the 64
5724 (arc_compute_frame_size): Likewise.
5725 (arc_enter_leave_p): Likewise.
5726 (arc_save_callee_saves): Likewise.
5727 (arc_restore_callee_saves): Likewise.
5728 (arc_save_callee_enter): Likewise.
5729 (arc_restore_callee_leave): Likewise.
5730 (arc_save_callee_milli): Likewise.
5731 (arc_restore_callee_milli): Likewise.
5732 (arc_expand_prologue): Add new interrupt handling.
5733 (arc_return_address_register): Make it static, move it forward.
5734 (arc_expand_epilogue): Add new interrupt handling.
5735 (arc_get_unalign): Delete.
5736 (arc_epilogue_uses): Make sure we do not remove the extra
5737 saved/restored registers when interrupt.
5738 (arc_can_use_return_insn): New function.
5739 (push_reg): Likewise.
5740 (pop_reg): Likewise.
5741 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
5743 (arc_restore_callee_saves): Likewise, but restoring.
5744 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
5745 (R33_REG): Likewise.
5746 (R34_REG): Likewise.
5747 (R35_REG): Likewise.
5748 (R36_REG): Likewise.
5749 (R37_REG): Likewise.
5750 (R38_REG): Likewise.
5751 (R39_REG): Likewise.
5752 (R45_REG): Likewise.
5753 (R46_REG): Likewise.
5754 (R47_REG): Likewise.
5755 (R48_REG): Likewise.
5756 (R49_REG): Likewise.
5757 (R50_REG): Likewise.
5758 (R51_REG): Likewise.
5759 (R52_REG): Likewise.
5760 (R53_REG): Likewise.
5761 (R54_REG): Likewise.
5762 (R55_REG): Likewise.
5763 (R56_REG): Likewise.
5764 (R58_REG): Likewise.
5765 (type): Add rtie attribute.
5766 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
5767 (movsi_insn): Accept moves to lp_count.
5768 (rtie): Update pattern.
5769 (simple_return): Simplify it, don't use this pattern as a return
5771 (arc600_rtie): New pattern.
5772 (p_return_i): Clean up.
5774 * config/arc/builtins.def (rtie): Only available for non ARC6xx
5776 * config/arc/predicates.md (move_src_operand): Consider lp_count
5779 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
5781 * config/s390/predicates.md (addv_const_operand): New predicate.
5782 * config/s390/s390-modes.def (CCO): New condition code mode.
5783 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
5784 (s390_branch_condition_mask): Likewise.
5785 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
5786 ("mulv<mode>4"): New expanders.
5787 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
5788 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
5789 pattern definitions.
5791 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5794 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
5795 (define_predicates): Add entry for uniform_vector_p.
5796 (vec_same_elem_p): New match pattern.
5798 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
5801 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
5802 * config/i386/darwin32-biarch.h .. to here.
5803 * config/i386/darwin64-biarch.h: Adjust comments.
5804 * config/rs6000/darwin32-biarch.h: Likewise.
5805 * config/rs6000/darwin64-biarch.h: Likewise.
5806 * config.gcc: Missed commit from r273746
5807 (*-*-darwin*): Don't include CPU t-darwin here.
5808 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
5809 an error message if i686-darwin configuration is attempted for
5812 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
5815 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
5816 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
5817 an error message if i686-darwin configuration is attempted for
5819 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
5820 (powerpc-*-darwin*): Use biarch files where needed.
5821 (powerpc64-*-darwin*): Likewise.
5822 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
5823 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
5825 * config/i386/darwin32-biarch.h: New.
5826 * config/i386/darwin64.h: Rename.
5827 * config/i386/darwin64-biarch.h: To this.
5828 * config/i386/t-darwin: Rename.
5829 * config/i386/t-darwin32-biarch: To this.
5830 * config/i386/t-darwin64: Rename.
5831 * config/i386/t-darwin64-biarch: To this.
5832 * config/rs6000/darwin32-biarch.h: New.
5833 * config/rs6000/darwin64.h: Rename.
5834 * config/rs6000/darwin64-biarch.h: To this.
5835 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
5837 * config/rs6000/t-darwin8: Rename.
5838 * config/rs6000/t-darwin32-biarch: To this.
5839 * config/rs6000/t-darwin64 Rename.
5840 * config/rs6000/t-darwin64-biarch: To this.
5842 2019-07-23 Martin Sebor <msebor@redhat.com>
5844 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
5846 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
5848 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
5849 (rh): New alias for it.
5851 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
5853 * gdbhooks.py: Pass replace=True to
5854 gdb.printing.register_pretty_printer.
5856 2019-07-23 Richard Biener <rguenther@suse.de>
5859 * lto-streamer-in.c (input_function): Drop inline-entry markers
5860 that ended up with an unknown location block.
5862 2019-07-23 Richard Biener <rguenther@suse.de>
5864 PR tree-optimization/83518
5865 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
5866 init from a constant even when partial defs are already recorded.
5868 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
5870 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
5871 * config/i386/znver1.md: Enable patterns for znver2 and add store
5872 variants which use extra AGU unit.
5874 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
5876 * config/i386/i386-options.c (ix86_option_override_internal): Default
5877 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
5878 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
5881 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
5883 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
5884 (znver2_costs): Update 256 bit SSE costs and multiplication.
5886 2019-07-23 Jan Beulich <jbeulich@suse.com>
5888 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
5889 Require only AVX512F.
5890 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
5891 alternative expanding to vpternlog.
5893 2019-07-23 Martin Liska <mliska@suse.cz>
5895 * dwarf2out.c (gen_producer_string): Canonize -flto=N
5896 to -flto in dwarf producer string.
5898 2019-07-23 Richard Biener <rguenther@suse.de>
5900 * tree-cfg.c (label_for_bb): Remove global var.
5901 (main_block_label): Take label_for_bb as argument.
5902 (cleanup_dead_labels_eh): Likewise, adjust.
5903 (cleanup_dead_labels): Adjust.
5905 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
5907 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
5908 Configurations): Add documentation for __builtin_mtfsf.
5910 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
5912 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
5913 * config/riscv/riscv.c (riscv_constant_alignment): Use
5914 riscv_align_data_type.
5915 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
5916 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
5917 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
5918 * config/riscv/riscv.opt (malign-data): New.
5919 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
5921 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
5923 * cgraph.c (dump_graphviz): New function.
5924 * cgraph.h (dump_graphviz): New function.
5925 * symtab.c (dump_graphviz): New function.
5927 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
5929 * config/aarch64/aarch64-simd.md
5930 (*aarch64_simd_sra<mode>): New.
5931 * config/aarch64/iterators.md
5932 (SHIFTRT): New iterator.
5933 (sra_op): New attribute.
5935 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5937 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
5938 callee-saved regs R4->R10 in an interrupt function that calls another
5941 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
5943 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
5944 (_mm_blendv_epi8): New.
5946 2019-07-22 Richard Biener <rguenther@suse.de>
5948 PR tree-optimization/91221
5949 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
5950 restrict partial-def handling of empty constructors and
5951 memset to refs with known offset.
5953 2019-07-22 Jan Beulich <jbeulich@suse.com>
5955 * config/i386/sse.md (ternlogsuffix): New.
5956 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
5958 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
5960 2019-07-22 Martin Liska <mliska@suse.cz>
5962 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
5964 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
5966 2019-07-22 Martin Liska <mliska@suse.cz>
5968 * lto-section-in.c (lto_get_section_data):
5969 Use new function get_compression.
5970 * lto-streamer-out.c (produce_lto_section): Use
5971 set_compression to encode compression algorithm.
5972 * lto-streamer.h (struct lto_section): Do not
5973 use bitfields in the format.
5975 2019-07-22 Martin Liska <mliska@suse.cz>
5978 * opts-common.c (decode_cmdline_option): Decode
5979 argument of -Werror and check it for a wrong language.
5980 * opts-global.c (complain_wrong_lang): Remove such case.
5982 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
5984 * config/arc/arc.c (prepare_move_operands): Always use an
5985 intermediate register when storing a TLS symbols.
5987 2019-07-22 Stafford Horne <shorne@gmail.com>
5989 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
5992 2019-07-22 Stafford Horne <shorne@gmail.com>
5994 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
5995 and munordered-float validations.
5996 * config/or1k/constraints.md (d): New register constraint.
5997 * config/or1k/predicates.md (fp_comparison_operator): New.
5998 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
6000 (or1k_expand_compare): Normalize unordered comparisons.
6001 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
6002 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
6003 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
6004 * config/or1k/or1k.md (type): Add fpu.
6005 (fpu): New instruction reservation.
6006 (F, f, fr, fi, FI, FOP, fop): New.
6007 (<fop><F:mode>3): New ALU instruction definition.
6008 (float<fi><F:mode>2): New conversion instruction definition.
6009 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
6010 (fpcmpcc): New code iterator.
6011 (*sf_fp_insn): New instruction definition.
6012 (cstore<F:mode>4): New expand definition.
6013 (cbranch<F:mode>4): New expand definition.
6014 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
6015 munordered-float): New options.
6016 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
6019 2019-07-22 Stafford Horne <shorne@gmail.com>
6021 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
6022 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
6023 documenation to be more clear.
6024 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
6026 * config/or1k/or1k.opt (mrori): New option.
6027 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
6028 msfimm, mshftimm): Rewrite documentation to be more clear.
6029 * config/or1k/or1k.md (insn_support): Add ror and rori.
6030 (enabled): Add conditions for ror and rori.
6031 (rotrsi3): Replace condition for shftimm with ror and rori.
6033 2019-07-22 Stafford Horne <shorne@gmail.com>
6036 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
6037 (extend<mode>si2): Update predicate.
6038 * config/or1k/predicates.md (volatile_mem_operand): New.
6039 (reg_or_mem_operand): New.
6041 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
6043 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
6044 * config/rs6000/rs6000-call.c: ... to here.
6046 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
6048 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
6051 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
6053 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
6055 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
6057 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
6059 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
6061 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
6062 (any_memory_operand): New predicate.
6063 (reg_or_mem_operand): Use it.
6065 2019-07-20 Jakub Jelinek <jakub@redhat.com>
6068 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
6070 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
6072 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
6073 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
6075 2019-07-20 Jakub Jelinek <jakub@redhat.com>
6077 * tree.def (OMP_LOOP): New tree code.
6078 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
6079 (enum omp_clause_bind_kind): New enum.
6080 (struct tree_omp_clause): Add subcode.bind_kind.
6081 * tree.h (OMP_LOOP_CHECK): Rename to ...
6082 (OMP_LOOPING_CHECK): ... this.
6083 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
6084 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
6085 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
6086 (OMP_CLAUSE_BIND_KIND): Define.
6087 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
6088 bind clause entries.
6089 (walk_tree_1): Handle OMP_CLAUSE_BIND.
6090 * tree-pretty-print.c (dump_omp_clause): Likewise.
6091 (dump_generic_node): Handle OMP_LOOP.
6092 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
6093 (in_omp_construct): New variable.
6094 (is_gimple_stmt): Handle OMP_LOOP.
6095 (gimplify_scan_omp_clauses): For lastprivate don't set
6096 check_non_private if code == OMP_LOOP. For reduction clause
6097 on OMP_LOOP combined with parallel or teams propagate as shared
6098 on the combined construct. Handle OMP_CLAUSE_BIND.
6099 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
6100 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
6101 for constructs from a loop construct to gimplify_scan_omp_clauses.
6102 Don't predetermine iterator linear on OMP_SIMD from loop construct.
6103 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
6104 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
6105 to match the implicit ORT_TARGET construct around whole body.
6106 Temporarily clear in_omp_construct when processing body.
6107 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
6108 etc. temporarily set in_omp_construct when processing body.
6109 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
6110 * omp-low.c (struct omp_context): Add loop_p.
6111 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
6112 in that the original var might be private.
6113 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
6114 (check_omp_nesting_restrictions): Adjust nesting restrictions for
6115 addition of loop construct.
6116 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
6118 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
6119 lastprivate non-addressable iterator of a collapse(1) simd.
6121 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
6123 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
6126 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
6128 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
6129 refer to default conditions. Warn for the 'y' spec which is ignored
6132 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
6134 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
6135 cpu_supports_info, builtin_hash_struct, builtin_hasher,
6136 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
6137 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
6138 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
6139 init_cumulative_args, rs6000_promote_function_mode,
6140 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
6141 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
6142 rs6000_function_arg_boundary, rs6000_parm_offset,
6143 rs6000_parm_start, rs6000_arg_size,
6144 rs6000_darwin64_record_arg_advance_flush,
6145 rs6000_darwin64_record_arg_advance_recurse,
6146 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
6147 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
6148 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
6149 rs6000_mixed_function_arg, rs6000_psave_function_arg,
6150 rs6000_finish_function_arg, rs6000_function_arg,
6151 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
6152 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
6153 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
6154 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
6155 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
6156 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
6157 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
6158 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
6159 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
6160 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
6161 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
6162 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
6163 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
6164 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
6165 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
6166 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
6167 get_element_number, altivec_expand_vec_set_builtin,
6168 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
6169 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
6170 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
6171 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
6172 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
6173 rs6000_expand_builtin, rs6000_vector_type,
6174 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
6175 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
6176 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
6178 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
6179 cpu_supports_info, builtin_hash_struct, builtin_hasher,
6180 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
6181 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
6182 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
6183 init_cumulative_args, rs6000_promote_function_mode,
6184 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
6185 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
6186 rs6000_function_arg_boundary, rs6000_parm_offset,
6187 rs6000_parm_start, rs6000_arg_size,
6188 rs6000_darwin64_record_arg_advance_flush,
6189 rs6000_darwin64_record_arg_advance_recurse,
6190 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
6191 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
6192 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
6193 rs6000_mixed_function_arg, rs6000_psave_function_arg,
6194 rs6000_finish_function_arg, rs6000_function_arg,
6195 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
6196 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
6197 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
6198 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
6199 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
6200 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
6201 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
6202 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
6203 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
6204 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
6205 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
6206 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
6207 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
6208 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
6209 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
6210 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
6211 get_element_number, altivec_expand_vec_set_builtin,
6212 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
6213 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
6214 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
6215 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
6216 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
6217 rs6000_expand_builtin, rs6000_vector_type,
6218 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
6219 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
6220 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
6221 to here from rs6000.c.
6222 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
6223 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
6224 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
6225 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
6226 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
6227 rs6000_return_in_memory, rs6000_return_in_msb,
6228 rs6000_pass_by_reference, setup_incoming_varargs,
6229 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
6230 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
6231 rs6000_function_arg_padding, rs6000_function_arg,
6232 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
6233 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
6234 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
6235 rs6000_passes_long_double, rs6000_passes_vector,
6236 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
6237 altivec_builtin_mask_for_load) Add declarations.
6238 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
6239 * config/config.gcc: Add new source file rs6000-call.c to garbage
6240 collector and extra_objs.
6242 2019-07-19 Jeff Law <law@redhat.com>
6244 PR tree-optimization/86061
6245 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
6246 strncpy. Drop some trivial dead code.
6247 (maybe_trim_memstar_call): Handle strncpy.
6249 2019-07-19 Richard Biener <rguenther@suse.de>
6251 PR tree-optimization/91211
6252 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
6253 memset encoding size.
6255 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
6258 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
6260 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
6263 * ipa-inline.c (recursive_inlining): Fix limits check.
6265 2019-07-19 Richard Biener <rguenther@suse.de>
6267 PR tree-optimization/91200
6268 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
6269 no PHI nodes in middle-bb.
6271 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
6273 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
6275 * config/aarch64/aarch64-option-extensions.def: Likewise.
6277 2019-07-19 Jakub Jelinek <jakub@redhat.com>
6280 * function.c (insert_temp_slot_address): Store into the hash table
6281 a copy of address to avoid RTL sharing issues.
6283 2019-07-19 Richard Biener <rguenther@suse.de>
6285 PR tree-optimization/91207
6287 2019-07-17 Richard Biener <rguenther@suse.de>
6289 PR tree-optimization/91178
6290 * tree-vect-stmts.c (get_group_load_store_type): For SLP
6291 loads with a gap larger than the vector size always use
6293 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
6294 avoid loading vectors that are only contained in the gap
6295 and thus are not needed.
6297 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
6299 * config/i386/i386.md (*addqi_2_slp): Remove.
6300 (*<code>qi_2_slp): Ditto.
6302 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
6304 * config/rs6000/predicates.md (prefixed_mem_operand): Call
6305 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
6306 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
6307 Rename function from rs6000_prefixed_address.
6308 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
6310 (TARGET_TOC): Likewise.
6311 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
6313 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
6315 (TARGET_TOC): Likewise.
6316 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
6318 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
6320 (TARGET_TOC): Likewise.
6321 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6322 check to require -mcmodel=medium for pc-relative addressing.
6323 (create_TOC_reference): Add assertion for TARGET_TOC.
6324 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
6326 (rs6000_emit_move): Likewise.
6327 (TOC_alias_set): Rename TOC alias set static variable from 'set'
6329 (get_TOC_alias_set): Likewise.
6330 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
6332 (rs6000_can_eliminate): Likewise.
6333 (rs6000_prefixed_address_mode_p): Rename function from
6334 rs6000_prefixed_address.
6335 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
6336 TARGET_HAS_TOC and not pc-relative.
6337 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
6338 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
6340 (TARGET_TOC): Likewise.
6341 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
6344 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
6347 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
6348 for operand 0. Do not use (match_dup) to match operand 1 with
6349 operand 0. Add check in insn constraint that either input operand
6350 matches operand 0. Use SWI12 mode iterator to also handle
6352 (*and<mode>_1_slp): Ditto.
6353 (*<code>qi_1_slp): Ditto.
6354 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
6355 Do not use (match_dup) to match operand 1 with operand 0. Add
6356 check in insn constraint that operand 1 matches operand 0.
6357 Use SWI12 mode iterator to also handle HImode operands.
6358 (*ashl<mode>3_1_slp): Ditto.
6359 (*<shift_insn><mode>3_1_slp): Ditto.
6360 (*<rotate_insn><mode>3_1_slp): Ditto.
6362 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
6364 * config/arm/arm-builtins.c
6365 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
6366 (arm_expand_unop_builtin): Likewise.
6367 * config/arm/crypto.md
6368 (crypto_sha1h): Convert from define_insn to define_expand.
6369 (crypto_<crypto_pattern>): Likewise.
6370 (crypto_sha1h_lb): New define_insn.
6371 (crypto_<crypto_pattern>_lb): Likewise.
6373 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
6376 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
6377 (vsha1cq_u32): Likewise.
6378 (vsha1pq_u32): Likewise.
6379 (vsha1mq_u32): Likewise.
6380 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
6382 (crypto_sha1c): Correct vec select.
6383 (crypto_sha1m): Likewise.
6384 (crypto_sha1p): Likewise.
6386 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
6388 * config/arm/predicates.md (arm_borrow_operation): New predicate.
6389 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
6390 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
6391 (subdi_zesidi_zesidi): Likewise.
6392 (negdi2_compare, negdi2_insn): Likewise.
6393 (negdi_extensidi): Likewise.
6394 (negdi_zero_extendsidi): Likewise.
6395 (arm_cmpdi_insn): Likewise.
6396 (subsi3_carryin): Use arm_borrow_operation.
6397 (subsi3_carryin_const): Likewise.
6398 (subsi3_carryin_const0): Likewise.
6399 (subsi3_carryin_compare): Likewise.
6400 (subsi3_carryin_compare_const): Likewise.
6401 (subsi3_carryin_compare_const0): Likewise.
6402 (subsi3_carryin_shift): Likewise.
6403 (rsbsi3_carryin_shift): Likewise.
6404 (negsi2_carryin_compare): Likewise.
6406 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
6408 PR tree-optimization/91137
6409 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
6410 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
6411 Init, use and fini the above new field.
6412 (determine_base_object_1): New function.
6413 (determine_base_object): Reimplement using walk_tree.
6415 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
6417 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
6418 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
6419 CLEANUP_FORCE_FAST_DCE is set.
6420 * ifcvt.c (rest_of_handle_if_conversion): Pass
6421 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
6422 if-conversion succeeded.
6424 2019-07-18 Richard Biener <rguenther@suse.de>
6426 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
6427 branches to make code less indented.
6429 2019-07-17 Alexandre Oliva <oliva@adacore.com>
6432 * attribs.c (decls_mismatched_attributes): Simplify the logic
6433 that avoids duplicates and false positives.
6435 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
6437 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
6438 data into data section when generating PIC code.
6439 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
6440 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
6441 generating code for SOM targets earlier than HP-UX 11. Otherwise,
6442 return 2 for SOM and 0 for other targets.
6444 2019-07-17 Jeff Law <law@redhat.com>
6446 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
6447 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
6448 avoid unexpected switch statement fallthru.
6450 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
6452 * config/i386/i386.md (*add<dwi>3_doubleword):
6453 Remove redundant constraints.
6454 (*add<mode>_1): Ditto.
6457 (*addqi_1_slp): Ditto.
6458 (*add<mode>_2): Ditto.
6459 (*addv<mode>4): Ditto.
6460 (*sub<dwi>3_doubleword): Ditto.
6461 (*sub<mode>_1): Ditto.
6462 (*subqi_1_slp): Ditto.
6463 (*sub<mode>_2): Ditto.
6464 (*subv<mode>4): Ditto.
6465 (*sub<mode>_3): Ditto.
6466 (@add<mode>3_carry): Ditto.
6467 (@sub<mode>3_carry): Ditto.
6468 (*add<mode>3_cc_overflow_1): Ditto.
6469 (*add<mode>3_zext_cc_overflow_2): Ditto.
6471 (*and<mode>_1): Ditto.
6473 (*andqi_1_slp): Ditto.
6475 (*andqi_2_maybe_si): Ditto.
6476 (*and<mode>_2): Ditto.
6477 (*andqi_2_slp): Ditto.
6478 (*<code><mode>_1): Ditto.
6479 (*<code>qi_1): Ditto.
6480 (*<code>qi_1_slp): Ditto.
6481 (*<code><mode>_2): Ditto.
6482 (*<code>qi_2_slp): Ditto.
6484 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
6486 * alias.c (record_component_aliases): Do not simplify pointed-to
6489 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
6491 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
6492 partial reg stall on alternative 2.
6494 2019-07-17 Richard Biener <rguenther@suse.de>
6496 PR tree-optimization/91178
6497 * tree-ssa.c (release_defs_bitset): Iterate from higher to
6498 lower SSA names to avoid quadratic behavior in the common case.
6499 * tree-data-ref.c (split_constant_offset): Add limit argument
6500 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
6501 (split_constant_offset_1): Add limit argument and use it to
6502 limit SSA def walking. Optimize the common plus/minus case.
6504 2019-07-17 Richard Biener <rguenther@suse.de>
6506 PR tree-optimization/91178
6507 * tree-vect-stmts.c (get_group_load_store_type): For SLP
6508 loads with a gap larger than the vector size always use
6510 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
6511 avoid loading vectors that are only contained in the gap
6512 and thus are not needed.
6514 2019-07-17 Richard Biener <rguenther@suse.de>
6516 PR tree-optimization/91180
6517 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
6518 computation for memset partial defs.
6520 2019-07-17 Jakub Jelinek <jakub@redhat.com>
6522 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
6523 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
6524 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
6525 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
6526 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
6527 * omp-grid.c (grid_process_grid_body,
6528 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
6529 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
6530 == GF_OMP_FOR_KIND_SIMD.
6531 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
6532 check_omp_nesting_restrictions, scan_omp_1_stmt,
6533 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
6534 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
6535 omp_find_scan): Likewise.
6536 * omp-expand.c (expand_omp_for): Likewise.
6537 * omp-general.c (omp_extract_for_data): Likewise.
6539 PR tree-optimization/91157
6540 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
6541 a vector boolean with scalar mode.
6542 (expand_vector_condition): Handle first operand being a vector boolean
6544 (expand_vector_operations_1): For comparisons, don't bail out early
6545 if the return type is vector boolean with scalar mode, but comparison
6546 operand type is not.
6548 2019-07-17 Richard Biener <rguenther@suse.de>
6550 PR tree-optimization/91181
6551 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
6554 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
6556 * config/i386/i386.md (*testdi_1): Match CCZmode for
6557 constants that might have the SImode sign bit set.
6558 (*testqi_1_maybe_si): Remove "!" constraint modifier.
6559 Use correct constraints for pentium pairing.
6560 (*test<mode>_1): Ditto.
6562 2019-07-16 Jeff Law <law@redhat.com>
6564 PR rtl-optimization/91173
6565 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
6566 SSA_NAME with a constant value, fold its value into the offset
6567 and clear the base before calling gen_addr_rtx.
6569 2019-07-16 Jakub Jelinek <jakub@redhat.com>
6571 PR rtl-optimization/91164
6572 * dse.c (rest_of_handle_dse): If dead edges have been purged,
6573 invalidate dominance info.
6575 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
6577 * read-md.h (md_reader::record_potential_iterator_use): Add a
6578 file_location parameter.
6579 * read-rtl.c (attribute_use::loc): New field.
6580 (map_attr_string): Take a file_location parameter. Report cases
6581 in which attributes map to multiple distinct values.
6582 (apply_attribute_uses): Update call accordingly.
6583 (md_reader::handle_overloaded_name): Likewise.
6584 (md_reader::apply_iterator_to_string): Likewise. Skip empty
6586 (record_attribute_use): Take a file_location parameter.
6587 Initialize attribute_use::loc.
6588 (md_reader::record_potential_iterator_use): Take a file_location
6589 parameter. Update call to record_attribute_use.
6590 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
6591 (rtx_reader::read_rtx_code): Likewise.
6592 (rtx_reader::read_rtx_operand): Likewise. Record a location
6593 for implicitly-expanded empty strings.
6595 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
6597 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
6598 Use file_location instead of separate fields.
6599 (md_reader::set_md_ptr_loc): Take a file_location instead of a
6600 separate filename and line number.
6601 * read-md.c (ptr_loc): As above.
6602 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
6603 (md_reader::fprint_md_ptr_loc): Likewise.
6604 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
6605 instead of a separate filename and line number.
6606 (md_reader::read_string): Update call accordingly.
6608 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
6610 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
6611 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
6612 leaving the choice between SFDF and P implicit.
6613 (*mov<mode>_update2): Likewise.
6614 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
6615 rather than leaving the choice betweem IBM128 and GPR implicit.
6616 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
6617 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
6619 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
6620 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
6621 * config/rs6000/vsx.md
6622 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
6623 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
6624 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
6625 and VSX_EXTRACT_I implicit.
6627 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
6629 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
6630 Explicitly use <MOVEP1:MODE> for the mode attribute.
6632 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
6635 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
6637 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
6640 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
6643 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
6645 * config/i386/i386.md (@test<mode>_ccno_1):
6646 Rename from test<mode>_ccno_1.
6647 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
6648 (*testqi_1_maybe_si): Remove modrm attribute.
6649 (*test<mode>_1): Ditto.
6650 * config/i386/i386-expand.c (ix86_split_idivmod): Use
6651 gen_test_ccno_1 and gen_extend_insn.
6653 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
6655 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
6658 2019-07-15 Richard Biener <rguenther@suse.de>
6661 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
6662 node make sure to replace all uses with something valid.
6664 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
6666 PR tree-optimization/88497
6667 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
6668 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
6669 function undistribute_bitref_for_vector.
6670 (undistribute_bitref_for_vector): New function.
6671 (cleanup_vinfo_map): Likewise.
6672 (sort_by_mach_mode): Likewise.
6674 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
6676 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
6677 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
6678 and testdi_ccno_1 using SWI48 mode attribute.
6679 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
6680 x86_64_szext_general_operand.
6681 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
6682 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
6683 instead of genera_operand mode attribute.
6685 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
6687 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
6688 fopen and fclose to their respective types.
6689 (DotFn.invoke): Ditto.
6691 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
6693 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
6694 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
6695 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
6696 (array_index_predicate): Remove.
6697 (analyze_function_body): Account cost for variable ofsetted array
6699 (estimate_node_size_and_time): Do not compute array index hint.
6700 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
6701 (inline_read_section): Do not read array index hint.
6702 (ipa_fn_summary_write): Do not write array index hint.
6703 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
6704 * ipa-cp.c (hint_time_bonus): Remove.
6705 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
6706 (ipa_fnsummary): Remove array_index.
6707 * ipa-inline.c (want_inline_small_function_p): Do not use
6709 (edge_badness): Likewise.
6710 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
6712 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
6715 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
6716 superfluous "builtin function" phrasing.
6718 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
6720 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
6722 (aliasing_component_refs_walk): Break out from ...
6723 (aliasing_component_refs_p): ... here.
6725 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
6728 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
6729 "builtin function" phrasing.
6731 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6734 * recog.h (temporary_volatile_ok): New class.
6735 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
6736 volatile_ok temporarily to true using temporary_volatile_ok.
6737 * expr.c (emit_block_move_via_cpymem): Likewise.
6738 * optabs.c (maybe_legitimize_operand): Likewise.
6740 2019-07-13 Jakub Jelinek <jakub@redhat.com>
6742 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
6743 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
6744 uses inside of order(concurrent) constructs.
6745 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
6746 OMP_CLAUSE_ORDER is seen.
6747 * omp-low.c (struct omp_context): Add order_concurrent member.
6748 (scan_sharing_clauses): Set ctx->order_concurrent if
6749 OMP_CLAUSE_ORDER is seen.
6750 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
6751 of simd order(concurrent). Diagnose constructs not allowed inside of
6752 for order(concurrent).
6753 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
6754 complaining about static double setjmp (double); or class static
6755 methods or non-global namespace setjmps.
6756 (omp_runtime_api_call): New function.
6757 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
6758 order(concurrent) loops.
6760 2019-07-12 Martin Sebor <msebor@redhat.com>
6762 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
6763 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
6764 * tree-vrp.c (vrp_prop::check_mem_ref): Use
6765 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
6767 2019-07-12 Jan Hubicka <jh@suse.cz>
6769 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
6770 (indirect_refs_may_alias_p): ... here.
6771 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
6772 mem refs in the access paths.
6774 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
6776 PR tree-optimization/89430
6777 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
6778 store elimination for local variable without address escape.
6780 2019-07-12 Jeff Law <law@redhat.com>
6782 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
6783 for the ".far" section.
6785 2019-07-12 Richard Biener <rguenther@suse.de>
6787 PR tree-optimization/91145
6788 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
6791 2019-07-12 Alexandre Oliva <oliva@adacore.com>
6793 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
6794 rather than this_state as the lowering context for the ELSE
6795 seq in a GIMPLE_EH_ELSE.
6797 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
6799 * vector-builder.h (vector_builder::elt): Allow already-supplied
6800 elements to be read back before building is complete.
6802 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
6804 PR rtl-optimization/91136
6805 * df-core.c (ACCESSING REFS): Fix typos in comment.
6806 * resource.c (mark_target_live_reg): Add artificial defs that occur at
6807 the beginning of the block to the initial set of live registers.
6809 2019-07-12 Richard Biener <rguenther@suse.de>
6811 * fold-const.h (get_array_ctor_element_at_index): Adjust.
6812 * fold-const.c (get_array_ctor_element_at_index): Add
6813 ctor_idx output parameter informing the caller where in
6814 the constructor the element was (not) found. Add early exit
6815 for when the ctor is sorted.
6816 * gimple-fold.c (fold_array_ctor_reference): Support constant
6817 folding across multiple array elements.
6819 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
6821 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
6822 doesn't have location, set the current location to the function's end.
6824 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
6826 * config/aarch64/aarch64.md (*compare_condjump<mode>)
6827 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
6828 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
6829 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
6830 * config/aarch64/aarch64-simd.md
6831 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
6832 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
6833 * config/aarch64/aarch64-sve.md
6834 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
6835 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
6837 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
6839 * doc/md.texi: Document that @ patterns can have different
6840 numbers of operands.
6841 * genemit.c (handle_overloaded_gen): Handle this case.
6842 * genopinit.c (handle_overloaded_gen): Likewise.
6843 * gensupport.c (replace_operands_with_dups): Iterate over
6844 the new rtx's format rather than the old one's.
6846 2019-07-12 Jakub Jelinek <jakub@redhat.com>
6848 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
6849 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
6850 order clause entries.
6851 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
6852 * tree-pretty-print.c (dump_omp_clause): Likewise.
6853 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
6855 * omp-low.c (scan_sharing_clauses): Likewise.
6856 * tree-nested.c (convert_nonlocal_omp_clauses,
6857 convert_local_omp_clauses): Likewise.
6859 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
6861 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
6862 fallthrough target of current basic block isn't the placed
6865 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
6868 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
6869 (_mm512_storeu_epi64): Likewise.
6870 (_mm512_loadu_epi32): Likewise.
6871 (_mm512_storeu_epi32): Likewise.
6872 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
6873 (_mm_storeu_epi64): Likewise.
6874 (_mm256_storeu_epi32): Likewise.
6875 (_mm_storeu_epi32): Likewise.
6877 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
6879 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
6881 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
6883 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
6886 2019-07-11 Jakub Jelinek <jakub@redhat.com>
6889 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
6890 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
6891 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
6892 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
6893 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
6894 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
6896 (ufix_truncv2dfv2si2<mask_name>): Change into ...
6897 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
6898 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
6900 (sse2_cvttpd2dq<mask_name>): Change into ...
6901 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
6902 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
6903 (*sse2_cvtpd2dq<mask_name>): Change into ...
6904 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
6905 Add "C" constraint to const0_operand.
6906 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
6907 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
6911 * config/i386/i386-builtin-types.def
6912 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
6913 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
6914 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
6915 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
6916 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
6917 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
6918 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
6919 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
6920 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
6921 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
6922 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
6923 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
6924 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
6925 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
6926 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
6927 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
6928 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
6929 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
6930 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
6931 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
6932 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
6933 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
6934 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
6935 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
6936 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
6937 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
6938 __builtin_ia32_vpdpbusd_v4si_maskz,
6939 __builtin_ia32_vpdpbusds_v16si_mask,
6940 __builtin_ia32_vpdpbusds_v16si_maskz,
6941 __builtin_ia32_vpdpbusds_v8si_mask,
6942 __builtin_ia32_vpdpbusds_v8si_maskz,
6943 __builtin_ia32_vpdpbusds_v4si_mask,
6944 __builtin_ia32_vpdpbusds_v4si_maskz,
6945 __builtin_ia32_vpdpwssd_v16si_mask,
6946 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
6947 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
6948 __builtin_ia32_vpdpwssd_v4si_maskz,
6949 __builtin_ia32_vpdpwssds_v16si_mask,
6950 __builtin_ia32_vpdpwssds_v16si_maskz,
6951 __builtin_ia32_vpdpwssds_v8si_mask,
6952 __builtin_ia32_vpdpwssds_v8si_maskz,
6953 __builtin_ia32_vpdpwssds_v4si_mask,
6954 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
6955 suffixed types rather than *_INT.
6956 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
6957 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
6958 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
6959 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
6960 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
6961 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
6963 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
6965 * tree-vrp.c (intersect_ranges): If we know the intersection is
6966 empty, there is no need to conservatively add anything else to
6969 2019-07-11 Richard Biener <rguenther@suse.de>
6972 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
6973 when the object is volatile and we have not cleared it even though
6974 there are no nonzero elements.
6976 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
6978 * config/rs6000/predicates.md (cint34_operand): Update
6979 SIGNED_34BIT_OFFSET_P call.
6980 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
6981 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
6982 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
6983 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
6984 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
6986 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
6987 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
6988 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
6989 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
6990 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
6992 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
6994 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
6995 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
6996 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
6997 (DEF_MIN_OSX_VERSION): New.
6999 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
7001 * fold-const.c (fold_relational_const): Fix folding of
7002 vector-to-scalar NE_EXPRs.
7003 (test_vector_folding): Add more tests.
7005 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
7008 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
7009 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
7010 (vec_setv2di_internal): Reexpress as...
7011 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
7012 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
7013 rather than gen_neon_vset_lane<mode>.
7015 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
7018 * lra-constraints.c (process_alt_operands): Don't match user
7019 defined regs only if they are early clobbers.
7021 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
7023 * wide-int.h (wi::lshift): Reject negative values for the fast path.
7025 2019-07-10 Richard Biener <rguenther@suse.de>
7027 PR tree-optimization/91126
7028 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
7029 native encoding offset for BYTES_BIG_ENDIAN.
7030 (vn_reference_lookup_3): Likewise.
7032 2019-07-10 Richard Biener <rguenther@suse.de>
7034 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
7035 LHS whenever possible.
7037 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
7039 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
7040 from ...; work also on duplicated types.
7041 (nonoverlapping_component_refs_since_match): ... here
7042 (ncr_type_uid): Break out from ...
7043 (ncr_compar): ... here; look for TYPE_UID of canonical type if
7045 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
7046 the types and nonoverlapping_component_refs_p_1 to disambiguate.
7048 2019-07-09 Martin Sebor <msebor@redhat.com>
7050 PR tree-optimization/90989
7051 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
7052 optimization to just single character stores.
7054 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
7056 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
7057 Swap operands only once.
7059 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
7061 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
7062 for both call instructions.
7064 2019-07-09 John Darrington <john@darrington.wattle.id.au>
7066 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
7067 rather than GET_MODE_BITSIZE to better handle partial integer modes.
7069 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
7071 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
7072 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
7073 function from rs6000-logue.c back to rs6000.c.
7074 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
7076 2019-07-09 Martin Sebor <msebor@redhat.com>
7079 * auto-profile.c: Change class-key of PODs to struct and others
7081 * basic-block.h: Same.
7082 * bitmap.c (bitmap_alloc): Same.
7084 * builtins.c (expand_builtin_prefetch): Same.
7085 (expand_builtin_interclass_mathfn): Same.
7086 (expand_builtin_strlen): Same.
7087 (expand_builtin_mempcpy_args): Same.
7088 (expand_cmpstr): Same.
7089 (expand_builtin___clear_cache): Same.
7090 (expand_ifn_atomic_bit_test_and): Same.
7091 (expand_builtin_thread_pointer): Same.
7092 (expand_builtin_set_thread_pointer): Same.
7093 * caller-save.c (setup_save_areas): Same.
7094 (replace_reg_with_saved_mem): Same.
7095 (insert_restore): Same.
7096 (insert_save): Same.
7097 (add_used_regs): Same.
7098 * cfg.c (get_bb_copy): Same.
7099 (set_loop_copy): Same.
7102 * cfgexpand.c (alloc_stack_frame_space): Same.
7103 (add_stack_var): Same.
7104 (add_stack_var_conflict): Same.
7105 (add_scope_conflicts_1): Same.
7106 (update_alias_info_with_stack_vars): Same.
7107 (expand_used_vars): Same.
7108 * cfghooks.c (redirect_edge_and_branch_force): Same.
7109 (delete_basic_block): Same.
7111 (make_forwarder_block): Same.
7112 (force_nonfallthru): Same.
7113 (duplicate_block): Same.
7114 (lv_flush_pending_stmts): Same.
7116 * cfgloop.c (flow_loops_cfg_dump): Same.
7117 (flow_loop_nested_p): Same.
7118 (superloop_at_depth): Same.
7119 (get_loop_latch_edges): Same.
7120 (flow_loop_dump): Same.
7121 (flow_loops_dump): Same.
7122 (flow_loops_free): Same.
7123 (flow_loop_nodes_find): Same.
7124 (establish_preds): Same.
7125 (flow_loop_tree_node_add): Same.
7126 (flow_loop_tree_node_remove): Same.
7127 (flow_loops_find): Same.
7128 (find_subloop_latch_edge_by_profile): Same.
7129 (find_subloop_latch_edge_by_ivs): Same.
7130 (mfb_redirect_edges_in_set): Same.
7131 (form_subloop): Same.
7132 (merge_latch_edges): Same.
7133 (disambiguate_multiple_latches): Same.
7134 (disambiguate_loops_with_multiple_latches): Same.
7135 (flow_bb_inside_loop_p): Same.
7137 (get_loop_body_with_size): Same.
7138 (get_loop_body): Same.
7139 (fill_sons_in_loop): Same.
7140 (get_loop_body_in_dom_order): Same.
7141 (get_loop_body_in_custom_order): Same.
7142 (release_recorded_exits): Same.
7143 (get_loop_exit_edges): Same.
7144 (num_loop_branches): Same.
7145 (remove_bb_from_loops): Same.
7146 (find_common_loop): Same.
7147 (delete_loop): Same.
7148 (cancel_loop): Same.
7149 (verify_loop_structure): Same.
7150 (loop_preheader_edge): Same.
7151 (loop_exit_edge_p): Same.
7152 (single_exit): Same.
7153 (loop_exits_to_bb_p): Same.
7154 (loop_exits_from_bb_p): Same.
7155 (get_loop_location): Same.
7156 (record_niter_bound): Same.
7157 (get_estimated_loop_iterations_int): Same.
7158 (max_stmt_executions_int): Same.
7159 (likely_max_stmt_executions_int): Same.
7160 (get_estimated_loop_iterations): Same.
7161 (get_max_loop_iterations): Same.
7162 (get_max_loop_iterations_int): Same.
7163 (get_likely_max_loop_iterations): Same.
7164 * cfgloop.h (simple_loop_desc): Same.
7168 (loop_iterator::next): Same.
7169 (loop_outermost): Same.
7170 * cfgloopanal.c (mark_irreducible_loops): Same.
7171 (num_loop_insns): Same.
7172 (average_num_loop_insns): Same.
7173 (expected_loop_iterations_unbounded): Same.
7174 (expected_loop_iterations): Same.
7175 (mark_loop_exit_edges): Same.
7176 (single_likely_exit): Same.
7177 * cfgloopmanip.c (fix_bb_placement): Same.
7178 (fix_bb_placements): Same.
7179 (remove_path): Same.
7180 (place_new_loop): Same.
7182 (scale_loop_frequencies): Same.
7183 (scale_loop_profile): Same.
7184 (create_empty_if_region_on_edge): Same.
7185 (create_empty_loop_on_edge): Same.
7188 (fix_loop_placements): Same.
7189 (copy_loop_info): Same.
7190 (duplicate_loop): Same.
7191 (duplicate_subloops): Same.
7192 (loop_redirect_edge): Same.
7193 (can_duplicate_loop_p): Same.
7194 (duplicate_loop_to_header_edge): Same.
7195 (mfb_keep_just): Same.
7196 (has_preds_from_loop): Same.
7197 (create_preheader): Same.
7198 (create_preheaders): Same.
7199 (lv_adjust_loop_entry_edge): Same.
7200 (loop_version): Same.
7201 * cfgloopmanip.h: Same.
7203 * cgraphbuild.c: Same.
7204 * combine.c (make_extraction): Same.
7205 * config/i386/i386-features.c: Same.
7206 * config/i386/i386-features.h: Same.
7207 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
7208 (ix86_emit_outlined_ms2sysv_restore): Same.
7209 (ix86_noce_conversion_profitable_p): Same.
7210 (ix86_init_cost): Same.
7211 (ix86_simd_clone_usable): Same.
7212 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
7214 * coretypes.h: Same.
7215 * data-streamer-in.c (string_for_index): Change class-key of PODs
7216 to struct and others to class.
7217 (streamer_read_indexed_string): Same.
7218 (streamer_read_string): Same.
7219 (bp_unpack_indexed_string): Same.
7220 (bp_unpack_string): Same.
7221 (streamer_read_uhwi): Same.
7222 (streamer_read_hwi): Same.
7223 (streamer_read_gcov_count): Same.
7224 (streamer_read_wide_int): Same.
7225 * data-streamer.h (streamer_write_bitpack): Same.
7226 (bp_unpack_value): Same.
7227 (streamer_write_char_stream): Same.
7228 (streamer_write_hwi_in_range): Same.
7229 (streamer_write_record_start): Same.
7230 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
7231 (add_cross_iteration_register_deps): Same.
7232 (build_intra_loop_deps): Same.
7233 * df-core.c (df_analyze): Same.
7234 (loop_post_order_compute): Same.
7235 (loop_inverted_post_order_compute): Same.
7236 * df-problems.c (df_rd_alloc): Same.
7237 (df_rd_simulate_one_insn): Same.
7238 (df_rd_local_compute): Same.
7239 (df_rd_init_solution): Same.
7240 (df_rd_confluence_n): Same.
7241 (df_rd_transfer_function): Same.
7243 (df_rd_dump_defs_set): Same.
7244 (df_rd_top_dump): Same.
7245 (df_lr_alloc): Same.
7246 (df_lr_reset): Same.
7247 (df_lr_local_compute): Same.
7249 (df_lr_confluence_n): Same.
7251 (df_lr_top_dump): Same.
7252 (df_lr_verify_transfer_functions): Same.
7253 (df_live_alloc): Same.
7254 (df_live_reset): Same.
7255 (df_live_init): Same.
7256 (df_live_confluence_n): Same.
7257 (df_live_finalize): Same.
7258 (df_live_free): Same.
7259 (df_live_top_dump): Same.
7260 (df_live_verify_transfer_functions): Same.
7261 (df_mir_alloc): Same.
7262 (df_mir_reset): Same.
7263 (df_mir_init): Same.
7264 (df_mir_confluence_n): Same.
7265 (df_mir_free): Same.
7266 (df_mir_top_dump): Same.
7267 (df_word_lr_alloc): Same.
7268 (df_word_lr_reset): Same.
7269 (df_word_lr_init): Same.
7270 (df_word_lr_confluence_n): Same.
7271 (df_word_lr_free): Same.
7272 (df_word_lr_top_dump): Same.
7273 (df_md_alloc): Same.
7274 (df_md_simulate_one_insn): Same.
7275 (df_md_reset): Same.
7278 (df_md_top_dump): Same.
7279 * df-scan.c (df_insn_delete): Same.
7280 (df_insn_rescan): Same.
7281 (df_notes_rescan): Same.
7282 (df_sort_and_compress_mws): Same.
7283 (df_install_mws): Same.
7284 (df_refs_add_to_chains): Same.
7285 (df_ref_create_structure): Same.
7286 (df_ref_record): Same.
7287 (df_def_record_1): Same.
7288 (df_find_hard_reg_defs): Same.
7289 (df_uses_record): Same.
7290 (df_get_conditional_uses): Same.
7291 (df_get_call_refs): Same.
7292 (df_recompute_luids): Same.
7293 (df_get_entry_block_def_set): Same.
7294 (df_entry_block_defs_collect): Same.
7295 (df_get_exit_block_use_set): Same.
7296 (df_exit_block_uses_collect): Same.
7297 (df_mws_verify): Same.
7298 (df_bb_verify): Same.
7299 * df.h (df_scan_get_bb_info): Same.
7300 * doc/tm.texi: Same.
7301 * dse.c (record_store): Same.
7303 * emit-rtl.c (const_fixed_hasher::equal): Same.
7304 (set_mem_attributes_minus_bitpos): Same.
7305 (change_address): Same.
7306 (adjust_address_1): Same.
7307 (offset_address): Same.
7309 * except.c (dw2_build_landing_pads): Same.
7310 (sjlj_emit_dispatch_table): Same.
7311 * explow.c (allocate_dynamic_stack_space): Same.
7312 (emit_stack_probe): Same.
7313 (probe_stack_range): Same.
7314 * expmed.c (store_bit_field_using_insv): Same.
7315 (store_bit_field_1): Same.
7316 (store_integral_bit_field): Same.
7317 (extract_bit_field_using_extv): Same.
7318 (extract_bit_field_1): Same.
7319 (emit_cstore): Same.
7320 * expr.c (emit_block_move_via_cpymem): Same.
7321 (expand_cmpstrn_or_cmpmem): Same.
7322 (set_storage_via_setmem): Same.
7323 (emit_single_push_insn_1): Same.
7324 (expand_assignment): Same.
7325 (store_constructor): Same.
7326 (expand_expr_real_2): Same.
7327 (expand_expr_real_1): Same.
7330 * function.c (try_fit_stack_local): Same.
7331 (assign_stack_local_1): Same.
7332 (assign_stack_local): Same.
7333 (cut_slot_from_list): Same.
7334 (insert_slot_to_list): Same.
7335 (max_slot_level): Same.
7336 (move_slot_to_level): Same.
7337 (temp_address_hasher::equal): Same.
7338 (remove_unused_temp_slot_addresses): Same.
7339 (assign_temp): Same.
7340 (combine_temp_slots): Same.
7341 (update_temp_slot_address): Same.
7342 (preserve_temp_slots): Same.
7345 * gcc-rich-location.h: Same.
7347 * genattrtab.c (check_attr_test): Same.
7348 (check_attr_value): Same.
7349 (convert_set_attr_alternative): Same.
7350 (convert_set_attr): Same.
7352 (copy_boolean): Same.
7353 (get_attr_value): Same.
7354 (expand_delays): Same.
7355 (make_length_attrs): Same.
7357 (make_alternative_compare): Same.
7358 (simplify_test_exp): Same.
7359 (tests_attr_p): Same.
7360 (get_attr_order): Same.
7361 (clear_struct_flag): Same.
7363 (compares_alternatives_p): Same.
7366 (find_attrs_to_cache): Same.
7367 (write_test_expr): Same.
7368 (walk_attr_value): Same.
7369 (write_attr_get): Same.
7370 (eliminate_known_true): Same.
7371 (write_insn_cases): Same.
7372 (write_attr_case): Same.
7373 (write_attr_valueq): Same.
7374 (write_attr_value): Same.
7375 (write_dummy_eligible_delay): Same.
7376 (next_comma_elt): Same.
7378 (make_internal_attr): Same.
7379 (copy_rtx_unchanging): Same.
7380 (gen_insn_reserv): Same.
7381 (check_tune_attr): Same.
7382 (make_automaton_attrs): Same.
7384 * genextract.c (gen_insn): Same.
7385 (VEC_char_to_string): Same.
7386 * genmatch.c (print_operand): Same.
7388 (parser::parse_operation): Same.
7389 (parser::parse_capture): Same.
7390 (parser::parse_c_expr): Same.
7391 (parser::parse_simplify): Same.
7393 * genoutput.c (output_operand_data): Same.
7394 (output_get_insn_name): Same.
7395 (compare_operands): Same.
7396 (place_operands): Same.
7397 (process_template): Same.
7398 (validate_insn_alternatives): Same.
7399 (validate_insn_operands): Same.
7401 (note_constraint): Same.
7402 * genpreds.c (write_one_predicate_function): Same.
7403 (add_constraint): Same.
7404 (process_define_register_constraint): Same.
7405 (write_lookup_constraint_1): Same.
7406 (write_lookup_constraint_array): Same.
7407 (write_insn_constraint_len): Same.
7408 (write_reg_class_for_constraint_1): Same.
7409 (write_constraint_satisfied_p_array): Same.
7410 * genrecog.c (optimize_subroutine_group): Same.
7411 * gensupport.c (process_define_predicate): Same.
7412 (queue_pattern): Same.
7413 (remove_from_queue): Same.
7414 (process_rtx): Same.
7415 (is_predicable): Same.
7416 (change_subst_attribute): Same.
7417 (subst_pattern_match): Same.
7418 (alter_constraints): Same.
7419 (alter_attrs_for_insn): Same.
7420 (shift_output_template): Same.
7421 (alter_output_for_subst_insn): Same.
7422 (process_one_cond_exec): Same.
7424 (process_define_cond_exec): Same.
7425 (mnemonic_htab_callback): Same.
7426 (gen_mnemonic_attr): Same.
7427 (read_md_rtx): Same.
7429 * gimple-loop-interchange.cc (dump_reduction): Same.
7430 (dump_induction): Same.
7431 (loop_cand::~loop_cand): Same.
7432 (free_data_refs_with_aux): Same.
7433 (tree_loop_interchange::interchange_loops): Same.
7434 (tree_loop_interchange::map_inductions_to_loop): Same.
7435 (tree_loop_interchange::move_code_to_inner_loop): Same.
7436 (compute_access_stride): Same.
7437 (compute_access_strides): Same.
7438 (proper_loop_form_for_interchange): Same.
7439 (tree_loop_interchange_compute_ddrs): Same.
7440 (prune_datarefs_not_in_loop): Same.
7441 (prepare_data_references): Same.
7442 (pass_linterchange::execute): Same.
7443 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
7444 (unroll_jam_possible_p): Same.
7446 (adjust_unroll_factor): Same.
7447 (tree_loop_unroll_and_jam): Same.
7448 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
7449 (loop_versioning::expensive_stmt_p): Same.
7450 (loop_versioning::version_for_unity): Same.
7451 (loop_versioning::dump_inner_likelihood): Same.
7452 (loop_versioning::find_per_loop_multiplication): Same.
7453 (loop_versioning::analyze_term_using_scevs): Same.
7454 (loop_versioning::record_address_fragment): Same.
7455 (loop_versioning::analyze_expr): Same.
7456 (loop_versioning::analyze_blocks): Same.
7457 (loop_versioning::prune_conditions): Same.
7458 (loop_versioning::merge_loop_info): Same.
7459 (loop_versioning::add_loop_to_queue): Same.
7460 (loop_versioning::decide_whether_loop_is_versionable): Same.
7461 (loop_versioning::make_versioning_decisions): Same.
7462 (loop_versioning::implement_versioning_decisions): Same.
7463 * gimple-ssa-evrp-analyze.c
7464 (evrp_range_analyzer::record_ranges_from_phis): Same.
7465 * gimple-ssa-store-merging.c (split_store::split_store): Same.
7466 (count_multiple_uses): Same.
7467 (split_group): Same.
7468 (imm_store_chain_info::output_merged_store): Same.
7469 (pass_store_merging::process_store): Same.
7470 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
7471 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
7473 (alloca_call_type): Same.
7474 (pass_walloca::execute): Same.
7475 * gimple-streamer-in.c (input_phi): Same.
7476 (input_gimple_stmt): Same.
7477 * gimple-streamer.h: Same.
7478 * godump.c (go_force_record_alignment): Same.
7479 (go_format_type): Same.
7480 (go_output_type): Same.
7481 (go_output_fndecl): Same.
7482 (go_output_typedef): Same.
7483 (keyword_hash_init): Same.
7484 (find_dummy_types): Same.
7485 * graph.c (draw_cfg_nodes_no_loops): Same.
7486 (draw_cfg_nodes_for_loop): Same.
7487 * hard-reg-set.h (hard_reg_set_iter_next): Same.
7489 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
7490 * hsa-dump.c (dump_hsa_cfun): Same.
7491 * hsa-gen.c (gen_function_def_parameters): Same.
7492 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
7493 * input.c (dump_line_table_statistics): Same.
7496 * internal-fn.c (get_multi_vector_move): Same.
7497 (expand_load_lanes_optab_fn): Same.
7498 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
7499 (expand_GOMP_SIMT_EXIT): Same.
7500 (expand_GOMP_SIMT_LAST_LANE): Same.
7501 (expand_GOMP_SIMT_ORDERED_PRED): Same.
7502 (expand_GOMP_SIMT_VOTE_ANY): Same.
7503 (expand_GOMP_SIMT_XCHG_BFLY): Same.
7504 (expand_GOMP_SIMT_XCHG_IDX): Same.
7505 (expand_addsub_overflow): Same.
7506 (expand_neg_overflow): Same.
7507 (expand_mul_overflow): Same.
7508 (expand_call_mem_ref): Same.
7509 (expand_mask_load_optab_fn): Same.
7510 (expand_scatter_store_optab_fn): Same.
7511 (expand_gather_load_optab_fn): Same.
7512 * ipa-cp.c (ipa_get_parm_lattices): Same.
7513 (print_all_lattices): Same.
7514 (ignore_edge_p): Same.
7515 (build_toporder_info): Same.
7516 (free_toporder_info): Same.
7517 (push_node_to_stack): Same.
7518 (ipcp_lattice<valtype>::set_contains_variable): Same.
7519 (set_agg_lats_to_bottom): Same.
7520 (ipcp_bits_lattice::meet_with): Same.
7521 (set_single_call_flag): Same.
7522 (initialize_node_lattices): Same.
7523 (ipa_get_jf_ancestor_result): Same.
7524 (ipcp_verify_propagated_values): Same.
7525 (propagate_scalar_across_jump_function): Same.
7526 (propagate_context_across_jump_function): Same.
7527 (propagate_bits_across_jump_function): Same.
7528 (ipa_vr_operation_and_type_effects): Same.
7529 (propagate_vr_across_jump_function): Same.
7530 (set_check_aggs_by_ref): Same.
7531 (set_chain_of_aglats_contains_variable): Same.
7532 (merge_aggregate_lattices): Same.
7533 (agg_pass_through_permissible_p): Same.
7534 (propagate_aggs_across_jump_function): Same.
7535 (call_passes_through_thunk_p): Same.
7536 (propagate_constants_across_call): Same.
7537 (devirtualization_time_bonus): Same.
7538 (good_cloning_opportunity_p): Same.
7539 (context_independent_aggregate_values): Same.
7540 (gather_context_independent_values): Same.
7541 (perform_estimation_of_a_value): Same.
7542 (estimate_local_effects): Same.
7543 (value_topo_info<valtype>::add_val): Same.
7544 (add_all_node_vals_to_toposort): Same.
7545 (value_topo_info<valtype>::propagate_effects): Same.
7546 (ipcp_propagate_stage): Same.
7547 (ipcp_discover_new_direct_edges): Same.
7548 (same_node_or_its_all_contexts_clone_p): Same.
7549 (cgraph_edge_brings_value_p): Same.
7550 (gather_edges_for_value): Same.
7551 (create_specialized_node): Same.
7552 (find_more_scalar_values_for_callers_subset): Same.
7553 (find_more_contexts_for_caller_subset): Same.
7554 (copy_plats_to_inter): Same.
7555 (intersect_aggregates_with_edge): Same.
7556 (find_aggregate_values_for_callers_subset): Same.
7557 (cgraph_edge_brings_all_agg_vals_for_node): Same.
7558 (decide_about_value): Same.
7559 (decide_whether_version_node): Same.
7560 (spread_undeadness): Same.
7561 (identify_dead_nodes): Same.
7562 (ipcp_store_vr_results): Same.
7563 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
7564 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
7565 (redirect_to_unreachable): Same.
7566 (edge_set_predicate): Same.
7567 (evaluate_conditions_for_known_args): Same.
7568 (evaluate_properties_for_edge): Same.
7569 (ipa_fn_summary_t::duplicate): Same.
7570 (ipa_call_summary_t::duplicate): Same.
7571 (dump_ipa_call_summary): Same.
7572 (ipa_dump_fn_summary): Same.
7573 (eliminated_by_inlining_prob): Same.
7574 (set_cond_stmt_execution_predicate): Same.
7575 (set_switch_stmt_execution_predicate): Same.
7576 (compute_bb_predicates): Same.
7577 (will_be_nonconstant_expr_predicate): Same.
7578 (phi_result_unknown_predicate): Same.
7579 (analyze_function_body): Same.
7580 (compute_fn_summary): Same.
7581 (estimate_edge_devirt_benefit): Same.
7582 (estimate_edge_size_and_time): Same.
7583 (estimate_calls_size_and_time): Same.
7584 (estimate_node_size_and_time): Same.
7585 (remap_edge_change_prob): Same.
7586 (remap_edge_summaries): Same.
7587 (ipa_merge_fn_summary_after_inlining): Same.
7588 (ipa_fn_summary_generate): Same.
7589 (inline_read_section): Same.
7590 (ipa_fn_summary_read): Same.
7591 (ipa_fn_summary_write): Same.
7592 * ipa-fnsummary.h: Same.
7593 * ipa-hsa.c (ipa_hsa_read_section): Same.
7594 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
7595 * ipa-icf.c (sem_function::param_used_p): Same.
7596 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
7597 * ipa-inline.c (edge_badness): Same.
7598 (inline_small_functions): Same.
7599 * ipa-polymorphic-call.c
7600 (ipa_polymorphic_call_context::stream_out): Same.
7601 * ipa-predicate.c (predicate::remap_after_duplication): Same.
7602 (predicate::remap_after_inlining): Same.
7603 (predicate::stream_out): Same.
7604 * ipa-predicate.h: Same.
7605 * ipa-profile.c (ipa_profile_read_summary): Same.
7606 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
7607 (count_formal_params): Same.
7608 (ipa_dump_param): Same.
7609 (ipa_alloc_node_params): Same.
7610 (ipa_print_node_jump_functions_for_edge): Same.
7611 (ipa_print_node_jump_functions): Same.
7612 (ipa_load_from_parm_agg): Same.
7613 (get_ancestor_addr_info): Same.
7614 (ipa_compute_jump_functions_for_edge): Same.
7615 (ipa_analyze_virtual_call_uses): Same.
7616 (ipa_analyze_stmt_uses): Same.
7617 (ipa_analyze_params_uses_in_bb): Same.
7618 (update_jump_functions_after_inlining): Same.
7619 (try_decrement_rdesc_refcount): Same.
7620 (ipa_impossible_devirt_target): Same.
7621 (update_indirect_edges_after_inlining): Same.
7622 (combine_controlled_uses_counters): Same.
7623 (ipa_edge_args_sum_t::duplicate): Same.
7624 (ipa_write_jump_function): Same.
7625 (ipa_write_indirect_edge_info): Same.
7626 (ipa_write_node_info): Same.
7627 (ipa_read_edge_info): Same.
7628 (ipa_prop_read_section): Same.
7629 (read_replacements_section): Same.
7630 * ipa-prop.h (ipa_get_param_count): Same.
7631 (ipa_get_param): Same.
7632 (ipa_get_type): Same.
7633 (ipa_get_param_move_cost): Same.
7634 (ipa_set_param_used): Same.
7635 (ipa_get_controlled_uses): Same.
7636 (ipa_set_controlled_uses): Same.
7637 (ipa_get_cs_argument_count): Same.
7638 * ipa-pure-const.c (analyze_function): Same.
7639 (pure_const_read_summary): Same.
7641 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
7642 * ipa-split.c (test_nonssa_use): Same.
7643 (dump_split_point): Same.
7644 (dominated_by_forbidden): Same.
7645 (split_part_set_ssa_name_p): Same.
7646 (find_split_points): Same.
7647 * ira-build.c (finish_loop_tree_nodes): Same.
7648 (low_pressure_loop_node_p): Same.
7649 * ira-color.c (ira_reuse_stack_slot): Same.
7651 * ira.c (setup_reg_equiv): Same.
7652 (print_insn_chain): Same.
7654 * loop-doloop.c (doloop_condition_get): Same.
7656 (record_reg_sets): Same.
7657 (doloop_optimize): Same.
7658 * loop-init.c (loop_optimizer_init): Same.
7659 (fix_loop_structure): Same.
7660 * loop-invariant.c (merge_identical_invariants): Same.
7661 (compute_always_reached): Same.
7663 (may_assign_reg_p): Same.
7664 (find_invariants_bb): Same.
7665 (find_invariants_body): Same.
7666 (replace_uses): Same.
7667 (can_move_invariant_reg): Same.
7668 (free_inv_motion_data): Same.
7669 (move_single_loop_invariants): Same.
7670 (change_pressure): Same.
7671 (mark_ref_regs): Same.
7672 (calculate_loop_reg_pressure): Same.
7673 * loop-iv.c (biv_entry_hasher::equal): Same.
7674 (iv_extend_to_rtx_code): Same.
7675 (check_iv_ref_table_size): Same.
7676 (clear_iv_info): Same.
7677 (latch_dominating_def): Same.
7678 (iv_get_reaching_def): Same.
7679 (iv_constant): Same.
7685 (get_biv_step): Same.
7687 (analyzed_for_bivness_p): Same.
7689 (iv_analyze_biv): Same.
7690 (iv_analyze_expr): Same.
7691 (iv_analyze_def): Same.
7692 (iv_analyze_op): Same.
7694 (iv_analyze_result): Same.
7696 (eliminate_implied_conditions): Same.
7697 (simplify_using_initial_values): Same.
7698 (shorten_into_mode): Same.
7699 (canonicalize_iv_subregs): Same.
7700 (determine_max_iter): Same.
7701 (check_simple_exit): Same.
7702 (find_simple_exit): Same.
7703 (get_simple_loop_desc): Same.
7704 * loop-unroll.c (report_unroll): Same.
7705 (decide_unrolling): Same.
7706 (unroll_loops): Same.
7707 (loop_exit_at_end_p): Same.
7708 (decide_unroll_constant_iterations): Same.
7709 (unroll_loop_constant_iterations): Same.
7710 (compare_and_jump_seq): Same.
7711 (unroll_loop_runtime_iterations): Same.
7712 (decide_unroll_stupid): Same.
7713 (unroll_loop_stupid): Same.
7714 (referenced_in_one_insn_in_loop_p): Same.
7715 (reset_debug_uses_in_loop): Same.
7716 (analyze_iv_to_split_insn): Same.
7717 * lra-eliminations.c (lra_debug_elim_table): Same.
7718 (setup_can_eliminate): Same.
7720 (lra_get_elimination_hard_regno): Same.
7721 (lra_eliminate_regs_1): Same.
7722 (eliminate_regs_in_insn): Same.
7723 (update_reg_eliminate): Same.
7724 (init_elimination): Same.
7725 (lra_eliminate): Same.
7727 * lra-lives.c (initiate_live_solver): Same.
7728 * lra-remat.c (create_remat_bb_data): Same.
7729 * lra-spills.c (lra_spill): Same.
7730 * lra.c (lra_set_insn_recog_data): Same.
7731 (lra_set_used_insn_alternative_by_uid): Same.
7732 (init_reg_info): Same.
7733 (expand_reg_info): Same.
7734 * lto-cgraph.c (output_symtab): Same.
7735 (read_identifier): Same.
7736 (get_alias_symbol): Same.
7738 (input_varpool_node): Same.
7741 (input_cgraph_1): Same.
7743 (input_symtab): Same.
7744 (input_offload_tables): Same.
7745 (output_cgraph_opt_summary): Same.
7746 (input_edge_opt_summary): Same.
7747 (input_cgraph_opt_section): Same.
7748 * lto-section-in.c (lto_free_raw_section_data): Same.
7749 (lto_create_simple_input_block): Same.
7750 (lto_free_function_in_decl_state_for_node): Same.
7751 * lto-streamer-in.c (lto_tag_check_set): Same.
7752 (lto_location_cache::revert_location_cache): Same.
7753 (lto_location_cache::input_location): Same.
7754 (lto_input_location): Same.
7755 (stream_input_location_now): Same.
7756 (lto_input_tree_ref): Same.
7757 (lto_input_eh_catch_list): Same.
7758 (input_eh_region): Same.
7759 (lto_init_eh): Same.
7760 (make_new_block): Same.
7762 (fixup_call_stmt_edges): Same.
7763 (input_struct_function_base): Same.
7764 (input_function): Same.
7765 (lto_read_body_or_constructor): Same.
7766 (lto_read_tree_1): Same.
7767 (lto_read_tree): Same.
7768 (lto_input_scc): Same.
7769 (lto_input_tree_1): Same.
7770 (lto_input_toplevel_asms): Same.
7771 (lto_input_mode_table): Same.
7772 (lto_reader_init): Same.
7773 (lto_data_in_create): Same.
7774 * lto-streamer-out.c (output_cfg): Same.
7775 * lto-streamer.h: Same.
7776 * modulo-sched.c (duplicate_insns_of_cycles): Same.
7777 (generate_prolog_epilog): Same.
7778 (mark_loop_unsched): Same.
7779 (dump_insn_location): Same.
7780 (loop_canon_p): Same.
7781 (sms_schedule): Same.
7782 * omp-expand.c (expand_omp_for_ordered_loops): Same.
7783 (expand_omp_for_generic): Same.
7784 (expand_omp_for_static_nochunk): Same.
7785 (expand_omp_for_static_chunk): Same.
7786 (expand_omp_simd): Same.
7787 (expand_omp_taskloop_for_inner): Same.
7788 (expand_oacc_for): Same.
7789 (expand_omp_atomic_pipeline): Same.
7790 (mark_loops_in_oacc_kernels_region): Same.
7791 * omp-offload.c (oacc_xform_loop): Same.
7792 * omp-simd-clone.c (simd_clone_adjust): Same.
7793 * optabs-query.c (get_traditional_extraction_insn): Same.
7794 * optabs.c (expand_vector_broadcast): Same.
7795 (expand_binop_directly): Same.
7796 (expand_twoval_unop): Same.
7797 (expand_twoval_binop): Same.
7798 (expand_unop_direct): Same.
7799 (emit_indirect_jump): Same.
7800 (emit_conditional_move): Same.
7801 (emit_conditional_neg_or_complement): Same.
7802 (emit_conditional_add): Same.
7803 (vector_compare_rtx): Same.
7804 (expand_vec_perm_1): Same.
7805 (expand_vec_perm_const): Same.
7806 (expand_vec_cond_expr): Same.
7807 (expand_vec_series_expr): Same.
7808 (maybe_emit_atomic_exchange): Same.
7809 (maybe_emit_sync_lock_test_and_set): Same.
7810 (expand_atomic_compare_and_swap): Same.
7811 (expand_atomic_load): Same.
7812 (expand_atomic_store): Same.
7813 (maybe_emit_op): Same.
7814 (valid_multiword_target_p): Same.
7815 (create_integer_operand): Same.
7816 (maybe_legitimize_operand_same_code): Same.
7817 (maybe_legitimize_operand): Same.
7818 (create_convert_operand_from_type): Same.
7819 (can_reuse_operands_p): Same.
7820 (maybe_legitimize_operands): Same.
7821 (maybe_gen_insn): Same.
7822 (maybe_expand_insn): Same.
7823 (maybe_expand_jump_insn): Same.
7824 (expand_insn): Same.
7825 * optabs.h (create_expand_operand): Same.
7826 (create_fixed_operand): Same.
7827 (create_output_operand): Same.
7828 (create_input_operand): Same.
7829 (create_convert_operand_to): Same.
7830 (create_convert_operand_from): Same.
7833 * predict.c (optimize_insn_for_speed_p): Same.
7834 (optimize_loop_for_size_p): Same.
7835 (optimize_loop_for_speed_p): Same.
7836 (optimize_loop_nest_for_speed_p): Same.
7837 (get_base_value): Same.
7838 (predicted_by_loop_heuristics_p): Same.
7839 (predict_extra_loop_exits): Same.
7840 (predict_loops): Same.
7841 (predict_paths_for_bb): Same.
7842 (predict_paths_leading_to): Same.
7843 (propagate_freq): Same.
7844 (pass_profile::execute): Same.
7846 * profile-count.c (profile_count::differs_from_p): Same.
7847 (profile_probability::differs_lot_from_p): Same.
7848 * profile-count.h: Same.
7849 * profile.c (branch_prob): Same.
7850 * regrename.c (free_chain_data): Same.
7851 (mark_conflict): Same.
7852 (create_new_chain): Same.
7853 (merge_overlapping_regs): Same.
7854 (init_rename_info): Same.
7855 (merge_chains): Same.
7856 (regrename_analyze): Same.
7857 (regrename_do_replace): Same.
7858 (scan_rtx_reg): Same.
7859 (record_out_operands): Same.
7860 (build_def_use): Same.
7861 * regrename.h: Same.
7863 * reload1.c (init_reload): Same.
7864 (maybe_fix_stack_asms): Same.
7865 (copy_reloads): Same.
7866 (count_pseudo): Same.
7867 (count_spilled_pseudo): Same.
7869 (find_reload_regs): Same.
7870 (select_reload_regs): Same.
7871 (spill_hard_reg): Same.
7872 (fixup_eh_region_note): Same.
7873 (set_reload_reg): Same.
7874 (allocate_reload_reg): Same.
7875 (compute_reload_subreg_offset): Same.
7876 (reload_adjust_reg_for_icode): Same.
7877 (emit_input_reload_insns): Same.
7878 (emit_output_reload_insns): Same.
7879 (do_input_reload): Same.
7880 (inherit_piecemeal_p): Same.
7882 * sanopt.c (maybe_get_dominating_check): Same.
7883 (maybe_optimize_ubsan_ptr_ifn): Same.
7884 (can_remove_asan_check): Same.
7885 (maybe_optimize_asan_check_ifn): Same.
7886 (sanopt_optimize_walker): Same.
7887 * sched-deps.c (add_dependence_list): Same.
7888 (chain_to_prev_insn): Same.
7889 (add_insn_mem_dependence): Same.
7890 (create_insn_reg_set): Same.
7891 (maybe_extend_reg_info_p): Same.
7892 (sched_analyze_reg): Same.
7893 (sched_analyze_1): Same.
7894 (get_implicit_reg_pending_clobbers): Same.
7895 (chain_to_prev_insn_p): Same.
7896 (deps_analyze_insn): Same.
7897 (deps_start_bb): Same.
7898 (sched_free_deps): Same.
7900 (init_deps_reg_last): Same.
7902 * sched-ebb.c: Same.
7903 * sched-int.h: Same.
7904 * sched-rgn.c (add_branch_dependences): Same.
7905 (concat_insn_mem_list): Same.
7907 (sched_rgn_compute_dependencies): Same.
7908 * sel-sched-ir.c (reset_target_context): Same.
7909 (copy_deps_context): Same.
7910 (init_id_from_df): Same.
7911 (has_dependence_p): Same.
7912 (change_loops_latches): Same.
7913 (bb_top_order_comparator): Same.
7914 (make_region_from_loop_preheader): Same.
7915 (sel_init_pipelining): Same.
7916 (get_loop_nest_for_rgn): Same.
7917 (make_regions_from_the_rest): Same.
7918 (sel_is_loop_preheader_p): Same.
7919 * sel-sched-ir.h (inner_loop_header_p): Same.
7920 (get_all_loop_exits): Same.
7922 * sese.c (sese_build_liveouts): Same.
7923 (sese_insert_phis_for_liveouts): Same.
7924 * sese.h (defined_in_sese_p): Same.
7925 * sreal.c (sreal::stream_out): Same.
7927 * streamer-hooks.h: Same.
7928 * target-globals.c (save_target_globals): Same.
7929 * target-globals.h: Same.
7932 * targhooks.c (default_has_ifunc_p): Same.
7933 (default_empty_mask_is_expensive): Same.
7934 (default_init_cost): Same.
7935 * targhooks.h: Same.
7937 * tree-affine.c (aff_combination_mult): Same.
7938 (aff_combination_expand): Same.
7939 (aff_combination_constant_multiple_p): Same.
7940 * tree-affine.h: Same.
7941 * tree-cfg.c (build_gimple_cfg): Same.
7942 (replace_loop_annotate_in_block): Same.
7943 (replace_uses_by): Same.
7945 (dump_cfg_stats): Same.
7946 (gimple_duplicate_sese_region): Same.
7947 (gimple_duplicate_sese_tail): Same.
7948 (move_block_to_fn): Same.
7949 (replace_block_vars_by_duplicates): Same.
7950 (move_sese_region_to_fn): Same.
7951 (print_loops_bb): Same.
7953 (print_loops): Same.
7955 (debug_loops): Same.
7957 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
7958 (chrec_fold_multiply_poly_poly): Same.
7959 (chrec_evaluate): Same.
7960 (chrec_component_in_loop_num): Same.
7961 (reset_evolution_in_loop): Same.
7962 (is_multivariate_chrec): Same.
7963 (chrec_contains_symbols): Same.
7964 (nb_vars_in_chrec): Same.
7965 (chrec_convert_1): Same.
7966 (chrec_convert_aggressive): Same.
7967 * tree-chrec.h: Same.
7968 * tree-core.h: Same.
7969 * tree-data-ref.c (dump_data_dependence_relation): Same.
7970 (canonicalize_base_object_address): Same.
7971 (data_ref_compare_tree): Same.
7972 (prune_runtime_alias_test_list): Same.
7973 (get_segment_min_max): Same.
7974 (create_intersect_range_checks): Same.
7975 (conflict_fn_no_dependence): Same.
7976 (object_address_invariant_in_loop_p): Same.
7977 (analyze_ziv_subscript): Same.
7978 (analyze_siv_subscript_cst_affine): Same.
7979 (analyze_miv_subscript): Same.
7980 (analyze_overlapping_iterations): Same.
7981 (build_classic_dist_vector_1): Same.
7982 (add_other_self_distances): Same.
7983 (same_access_functions): Same.
7984 (build_classic_dir_vector): Same.
7985 (subscript_dependence_tester_1): Same.
7986 (subscript_dependence_tester): Same.
7987 (access_functions_are_affine_or_constant_p): Same.
7988 (get_references_in_stmt): Same.
7989 (loop_nest_has_data_refs): Same.
7990 (graphite_find_data_references_in_stmt): Same.
7991 (find_data_references_in_bb): Same.
7992 (get_base_for_alignment): Same.
7993 (find_loop_nest_1): Same.
7994 (find_loop_nest): Same.
7995 * tree-data-ref.h (dr_alignment): Same.
7996 (ddr_dependence_level): Same.
7997 * tree-if-conv.c (fold_build_cond_expr): Same.
7998 (add_to_predicate_list): Same.
7999 (add_to_dst_predicate_list): Same.
8000 (phi_convertible_by_degenerating_args): Same.
8001 (idx_within_array_bound): Same.
8002 (all_preds_critical_p): Same.
8003 (pred_blocks_visited_p): Same.
8004 (predicate_bbs): Same.
8005 (build_region): Same.
8006 (if_convertible_loop_p_1): Same.
8007 (is_cond_scalar_reduction): Same.
8008 (predicate_scalar_phi): Same.
8009 (remove_conditions_and_labels): Same.
8010 (combine_blocks): Same.
8011 (version_loop_for_if_conversion): Same.
8012 (versionable_outer_loop_p): Same.
8013 (ifcvt_local_dce): Same.
8014 (tree_if_conversion): Same.
8015 (pass_if_conversion::gate): Same.
8016 * tree-if-conv.h: Same.
8017 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
8018 * tree-loop-distribution.c (bb_top_order_cmp): Same.
8020 (stmt_has_scalar_dependences_outside_loop): Same.
8021 (copy_loop_before): Same.
8022 (create_bb_after_loop): Same.
8023 (const_with_all_bytes_same): Same.
8024 (generate_memset_builtin): Same.
8025 (generate_memcpy_builtin): Same.
8026 (destroy_loop): Same.
8027 (build_rdg_partition_for_vertex): Same.
8028 (compute_access_range): Same.
8029 (data_ref_segment_size): Same.
8030 (latch_dominated_by_data_ref): Same.
8031 (compute_alias_check_pairs): Same.
8032 (fuse_memset_builtins): Same.
8033 (finalize_partitions): Same.
8034 (find_seed_stmts_for_distribution): Same.
8035 (prepare_perfect_loop_nest): Same.
8036 * tree-parloops.c (lambda_transform_legal_p): Same.
8037 (loop_parallel_p): Same.
8038 (reduc_stmt_res): Same.
8039 (add_field_for_name): Same.
8040 (create_call_for_reduction_1): Same.
8041 (replace_uses_in_bb_by): Same.
8042 (transform_to_exit_first_loop_alt): Same.
8043 (try_transform_to_exit_first_loop_alt): Same.
8044 (transform_to_exit_first_loop): Same.
8046 (gen_parallel_loop): Same.
8047 (gather_scalar_reductions): Same.
8048 (get_omp_data_i_param): Same.
8049 (try_create_reduction_list): Same.
8050 (oacc_entry_exit_single_gang): Same.
8051 (parallelize_loops): Same.
8052 * tree-pass.h: Same.
8053 * tree-predcom.c (determine_offset): Same.
8054 (last_always_executed_block): Same.
8055 (split_data_refs_to_components): Same.
8056 (suitable_component_p): Same.
8057 (valid_initializer_p): Same.
8058 (find_looparound_phi): Same.
8059 (insert_looparound_copy): Same.
8060 (add_looparound_copies): Same.
8061 (determine_roots_comp): Same.
8062 (predcom_tmp_var): Same.
8063 (initialize_root_vars): Same.
8064 (initialize_root_vars_store_elim_1): Same.
8065 (initialize_root_vars_store_elim_2): Same.
8066 (finalize_eliminated_stores): Same.
8067 (initialize_root_vars_lm): Same.
8068 (remove_stmt): Same.
8069 (determine_unroll_factor): Same.
8070 (execute_pred_commoning_cbck): Same.
8071 (base_names_in_chain_on): Same.
8072 (combine_chains): Same.
8073 (pcom_stmt_dominates_stmt_p): Same.
8074 (try_combine_chains): Same.
8075 (prepare_initializers_chain_store_elim): Same.
8076 (prepare_initializers_chain): Same.
8077 (prepare_initializers): Same.
8078 (prepare_finalizers_chain): Same.
8079 (prepare_finalizers): Same.
8080 (insert_init_seqs): Same.
8081 * tree-scalar-evolution.c (loop_phi_node_p): Same.
8082 (compute_overall_effect_of_inner_loop): Same.
8083 (add_to_evolution_1): Same.
8084 (add_to_evolution): Same.
8085 (follow_ssa_edge_binary): Same.
8086 (follow_ssa_edge_expr): Same.
8087 (backedge_phi_arg_p): Same.
8088 (follow_ssa_edge_in_condition_phi_branch): Same.
8089 (follow_ssa_edge_in_condition_phi): Same.
8090 (follow_ssa_edge_inner_loop_phi): Same.
8091 (follow_ssa_edge): Same.
8092 (analyze_evolution_in_loop): Same.
8093 (analyze_initial_condition): Same.
8094 (interpret_loop_phi): Same.
8095 (interpret_condition_phi): Same.
8096 (interpret_rhs_expr): Same.
8097 (interpret_expr): Same.
8098 (interpret_gimple_assign): Same.
8099 (analyze_scalar_evolution_1): Same.
8100 (analyze_scalar_evolution): Same.
8101 (analyze_scalar_evolution_for_address_of): Same.
8102 (get_instantiated_value_entry): Same.
8103 (loop_closed_phi_def): Same.
8104 (instantiate_scev_name): Same.
8105 (instantiate_scev_poly): Same.
8106 (instantiate_scev_binary): Same.
8107 (instantiate_scev_convert): Same.
8108 (instantiate_scev_not): Same.
8109 (instantiate_scev_r): Same.
8110 (instantiate_scev): Same.
8111 (resolve_mixers): Same.
8112 (initialize_scalar_evolutions_analyzer): Same.
8113 (scev_reset_htab): Same.
8115 (derive_simple_iv_with_niters): Same.
8116 (simple_iv_with_niters): Same.
8117 (expression_expensive_p): Same.
8118 (final_value_replacement_loop): Same.
8119 * tree-scalar-evolution.h (block_before_loop): Same.
8120 * tree-ssa-address.h: Same.
8121 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
8122 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
8123 (record_edge_info): Same.
8124 * tree-ssa-live.c (var_map_base_fini): Same.
8125 (remove_unused_locals): Same.
8126 * tree-ssa-live.h: Same.
8127 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
8128 (pass_ch_vect::execute): Same.
8129 (pass_ch::process_loop_p): Same.
8130 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
8131 (movement_possibility): Same.
8132 (outermost_invariant_loop): Same.
8134 (determine_max_movement): Same.
8135 (invariantness_dom_walker::before_dom_children): Same.
8136 (move_computations): Same.
8137 (may_move_till): Same.
8138 (force_move_till_op): Same.
8139 (force_move_till): Same.
8140 (memref_free): Same.
8141 (record_mem_ref_loc): Same.
8142 (set_ref_stored_in_loop): Same.
8143 (mark_ref_stored): Same.
8144 (sort_bbs_in_loop_postorder_cmp): Same.
8145 (sort_locs_in_loop_postorder_cmp): Same.
8146 (analyze_memory_references): Same.
8147 (mem_refs_may_alias_p): Same.
8148 (find_ref_loc_in_loop_cmp): Same.
8149 (rewrite_mem_ref_loc::operator): Same.
8150 (first_mem_ref_loc_1::operator): Same.
8151 (sm_set_flag_if_changed::operator): Same.
8152 (execute_sm_if_changed_flag_set): Same.
8154 (hoist_memory_references): Same.
8155 (ref_always_accessed::operator): Same.
8156 (refs_independent_p): Same.
8157 (record_dep_loop): Same.
8158 (ref_indep_loop_p_1): Same.
8159 (ref_indep_loop_p): Same.
8160 (can_sm_ref_p): Same.
8161 (find_refs_for_sm): Same.
8162 (loop_suitable_for_sm): Same.
8163 (store_motion_loop): Same.
8164 (store_motion): Same.
8165 (fill_always_executed_in): Same.
8166 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
8167 (estimated_unrolled_size): Same.
8168 (loop_edge_to_cancel): Same.
8169 (remove_exits_and_undefined_stmts): Same.
8170 (remove_redundant_iv_tests): Same.
8171 (unloop_loops): Same.
8172 (estimated_peeled_sequence_size): Same.
8173 (try_peel_loop): Same.
8174 (canonicalize_loop_induction_variables): Same.
8175 (canonicalize_induction_variables): Same.
8176 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
8178 (stmt_after_inc_pos): Same.
8179 (contains_abnormal_ssa_name_p): Same.
8180 (niter_for_exit): Same.
8183 (find_givs_in_bb): Same.
8184 (find_induction_variables): Same.
8185 (find_interesting_uses_cond): Same.
8186 (outermost_invariant_loop_for_expr): Same.
8187 (idx_find_step): Same.
8188 (add_candidate_1): Same.
8189 (add_iv_candidate_derived_from_uses): Same.
8190 (alloc_use_cost_map): Same.
8191 (prepare_decl_rtl): Same.
8192 (generic_predict_doloop_p): Same.
8193 (computation_cost): Same.
8194 (determine_common_wider_type): Same.
8195 (get_computation_aff_1): Same.
8196 (get_use_type): Same.
8197 (determine_group_iv_cost_address): Same.
8199 (difference_cannot_overflow_p): Same.
8200 (may_eliminate_iv): Same.
8201 (determine_set_costs): Same.
8202 (cheaper_cost_pair): Same.
8203 (compare_cost_pair): Same.
8204 (iv_ca_cand_for_group): Same.
8205 (iv_ca_recount_cost): Same.
8206 (iv_ca_set_remove_invs): Same.
8207 (iv_ca_set_no_cp): Same.
8208 (iv_ca_set_add_invs): Same.
8209 (iv_ca_set_cp): Same.
8210 (iv_ca_add_group): Same.
8212 (iv_ca_compare_deps): Same.
8213 (iv_ca_delta_reverse): Same.
8214 (iv_ca_delta_commit): Same.
8215 (iv_ca_cand_used_p): Same.
8216 (iv_ca_delta_free): Same.
8220 (iv_ca_extend): Same.
8221 (iv_ca_narrow): Same.
8222 (iv_ca_prune): Same.
8223 (cheaper_cost_with_cand): Same.
8224 (iv_ca_replace): Same.
8225 (try_add_cand_for): Same.
8226 (get_initial_solution): Same.
8227 (try_improve_iv_set): Same.
8228 (find_optimal_iv_set_1): Same.
8229 (create_new_iv): Same.
8230 (rewrite_use_compare): Same.
8231 (remove_unused_ivs): Same.
8232 (determine_scaling_factor): Same.
8233 * tree-ssa-loop-ivopts.h: Same.
8234 * tree-ssa-loop-manip.c (create_iv): Same.
8235 (compute_live_loop_exits): Same.
8236 (add_exit_phi): Same.
8237 (add_exit_phis): Same.
8238 (find_uses_to_rename_use): Same.
8239 (find_uses_to_rename_def): Same.
8240 (find_uses_to_rename_in_loop): Same.
8241 (rewrite_into_loop_closed_ssa): Same.
8242 (check_loop_closed_ssa_bb): Same.
8243 (split_loop_exit_edge): Same.
8245 (ip_normal_pos): Same.
8246 (copy_phi_node_args): Same.
8247 (gimple_duplicate_loop_to_header_edge): Same.
8248 (can_unroll_loop_p): Same.
8249 (determine_exit_conditions): Same.
8250 (scale_dominated_blocks_in_loop): Same.
8251 (niter_for_unrolled_loop): Same.
8252 (tree_transform_and_unroll_loop): Same.
8253 (rewrite_all_phi_nodes_with_iv): Same.
8254 * tree-ssa-loop-manip.h: Same.
8255 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
8256 (number_of_iterations_ne): Same.
8257 (assert_no_overflow_lt): Same.
8258 (assert_loop_rolls_lt): Same.
8259 (number_of_iterations_lt): Same.
8260 (adjust_cond_for_loop_until_wrap): Same.
8261 (tree_simplify_using_condition): Same.
8262 (simplify_using_initial_conditions): Same.
8263 (simplify_using_outer_evolutions): Same.
8264 (loop_only_exit_p): Same.
8265 (ssa_defined_by_minus_one_stmt_p): Same.
8266 (number_of_iterations_popcount): Same.
8267 (number_of_iterations_exit): Same.
8268 (find_loop_niter): Same.
8269 (finite_loop_p): Same.
8270 (chain_of_csts_start): Same.
8271 (get_val_for): Same.
8272 (loop_niter_by_eval): Same.
8273 (derive_constant_upper_bound_ops): Same.
8274 (do_warn_aggressive_loop_optimizations): Same.
8275 (record_estimate): Same.
8276 (get_cst_init_from_scev): Same.
8277 (record_nonwrapping_iv): Same.
8278 (idx_infer_loop_bounds): Same.
8279 (infer_loop_bounds_from_ref): Same.
8280 (infer_loop_bounds_from_array): Same.
8281 (infer_loop_bounds_from_pointer_arith): Same.
8282 (infer_loop_bounds_from_signedness): Same.
8283 (bound_index): Same.
8284 (discover_iteration_bound_by_body_walk): Same.
8285 (maybe_lower_iteration_bound): Same.
8286 (estimate_numbers_of_iterations): Same.
8287 (estimated_loop_iterations): Same.
8288 (estimated_loop_iterations_int): Same.
8289 (max_loop_iterations): Same.
8290 (max_loop_iterations_int): Same.
8291 (likely_max_loop_iterations): Same.
8292 (likely_max_loop_iterations_int): Same.
8293 (estimated_stmt_executions_int): Same.
8294 (max_stmt_executions): Same.
8295 (likely_max_stmt_executions): Same.
8296 (estimated_stmt_executions): Same.
8297 (stmt_dominates_stmt_p): Same.
8298 (nowrap_type_p): Same.
8299 (loop_exits_before_overflow): Same.
8300 (scev_var_range_cant_overflow): Same.
8301 (scev_probably_wraps_p): Same.
8302 (free_numbers_of_iterations_estimates): Same.
8303 * tree-ssa-loop-niter.h: Same.
8304 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
8305 (idx_analyze_ref): Same.
8306 (analyze_ref): Same.
8307 (gather_memory_references_ref): Same.
8308 (mark_nontemporal_store): Same.
8309 (emit_mfence_after_loop): Same.
8310 (may_use_storent_in_loop_p): Same.
8311 (mark_nontemporal_stores): Same.
8312 (should_unroll_loop_p): Same.
8313 (volume_of_dist_vector): Same.
8314 (add_subscript_strides): Same.
8315 (self_reuse_distance): Same.
8316 (insn_to_prefetch_ratio_too_small_p): Same.
8317 * tree-ssa-loop-split.c (split_at_bb_p): Same.
8318 (patch_loop_exit): Same.
8319 (find_or_create_guard_phi): Same.
8320 (easy_exit_values): Same.
8321 (connect_loop_phis): Same.
8322 (connect_loops): Same.
8323 (compute_new_first_bound): Same.
8325 (tree_ssa_split_loops): Same.
8326 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
8327 (is_maybe_undefined): Same.
8328 (tree_may_unswitch_on): Same.
8329 (simplify_using_entry_checks): Same.
8330 (tree_unswitch_single_loop): Same.
8331 (tree_unswitch_loop): Same.
8332 (tree_unswitch_outer_loop): Same.
8333 (empty_bb_without_guard_p): Same.
8334 (used_outside_loop_p): Same.
8335 (get_vop_from_header): Same.
8336 (hoist_guard): Same.
8337 * tree-ssa-loop.c (gate_oacc_kernels): Same.
8338 (get_lsm_tmp_name): Same.
8339 * tree-ssa-loop.h: Same.
8340 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
8341 (build_and_add_sum): Same.
8342 (no_side_effect_bb): Same.
8344 (linearize_expr): Same.
8345 (should_break_up_subtract): Same.
8346 (linearize_expr_tree): Same.
8347 * tree-ssa-scopedtables.c: Same.
8348 * tree-ssa-scopedtables.h: Same.
8349 * tree-ssa-structalias.c (condense_visit): Same.
8350 (label_visit): Same.
8351 (dump_pred_graph): Same.
8352 (perform_var_substitution): Same.
8353 (move_complex_constraints): Same.
8354 (remove_preds_and_fake_succs): Same.
8355 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
8356 (determine_bb_domination_status): Same.
8357 (duplicate_thread_path): Same.
8358 (thread_through_all_blocks): Same.
8359 * tree-ssa-threadupdate.h: Same.
8360 * tree-streamer-in.c (streamer_read_string_cst): Same.
8361 (input_identifier): Same.
8362 (unpack_ts_type_common_value_fields): Same.
8363 (unpack_ts_block_value_fields): Same.
8364 (unpack_ts_translation_unit_decl_value_fields): Same.
8365 (unpack_ts_omp_clause_value_fields): Same.
8366 (streamer_read_tree_bitfields): Same.
8367 (streamer_alloc_tree): Same.
8368 (lto_input_ts_common_tree_pointers): Same.
8369 (lto_input_ts_vector_tree_pointers): Same.
8370 (lto_input_ts_poly_tree_pointers): Same.
8371 (lto_input_ts_complex_tree_pointers): Same.
8372 (lto_input_ts_decl_minimal_tree_pointers): Same.
8373 (lto_input_ts_decl_common_tree_pointers): Same.
8374 (lto_input_ts_decl_non_common_tree_pointers): Same.
8375 (lto_input_ts_decl_with_vis_tree_pointers): Same.
8376 (lto_input_ts_field_decl_tree_pointers): Same.
8377 (lto_input_ts_function_decl_tree_pointers): Same.
8378 (lto_input_ts_type_common_tree_pointers): Same.
8379 (lto_input_ts_type_non_common_tree_pointers): Same.
8380 (lto_input_ts_list_tree_pointers): Same.
8381 (lto_input_ts_vec_tree_pointers): Same.
8382 (lto_input_ts_exp_tree_pointers): Same.
8383 (lto_input_ts_block_tree_pointers): Same.
8384 (lto_input_ts_binfo_tree_pointers): Same.
8385 (lto_input_ts_constructor_tree_pointers): Same.
8386 (lto_input_ts_omp_clause_tree_pointers): Same.
8387 (streamer_read_tree_body): Same.
8388 * tree-streamer.h: Same.
8389 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
8390 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
8391 (vect_analyze_possibly_independent_ddr): Same.
8392 (vect_analyze_data_ref_dependence): Same.
8393 (vect_compute_data_ref_alignment): Same.
8394 (vect_enhance_data_refs_alignment): Same.
8395 (vect_analyze_data_ref_access): Same.
8396 (vect_check_gather_scatter): Same.
8397 (vect_find_stmt_data_reference): Same.
8398 (vect_create_addr_base_for_vector_ref): Same.
8399 (vect_setup_realignment): Same.
8400 (vect_supportable_dr_alignment): Same.
8401 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
8402 (adjust_phi_and_debug_stmts): Same.
8403 (vect_set_loop_mask): Same.
8404 (add_preheader_seq): Same.
8405 (vect_maybe_permute_loop_masks): Same.
8406 (vect_set_loop_masks_directly): Same.
8407 (vect_set_loop_condition_masked): Same.
8408 (vect_set_loop_condition_unmasked): Same.
8409 (slpeel_duplicate_current_defs_from_edges): Same.
8410 (slpeel_add_loop_guard): Same.
8411 (slpeel_can_duplicate_loop_p): Same.
8412 (create_lcssa_for_virtual_phi): Same.
8414 (vect_update_ivs_after_vectorizer): Same.
8415 (vect_gen_vector_loop_niters_mult_vf): Same.
8416 (slpeel_update_phi_nodes_for_loops): Same.
8417 (slpeel_update_phi_nodes_for_guard1): Same.
8418 (find_guard_arg): Same.
8419 (slpeel_update_phi_nodes_for_guard2): Same.
8420 (slpeel_update_phi_nodes_for_lcssa): Same.
8421 (vect_do_peeling): Same.
8422 (vect_create_cond_for_alias_checks): Same.
8423 (vect_loop_versioning): Same.
8424 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
8425 (vect_inner_phi_in_double_reduction_p): Same.
8426 (vect_analyze_scalar_cycles_1): Same.
8427 (vect_fixup_scalar_cycles_with_patterns): Same.
8428 (vect_get_loop_niters): Same.
8429 (bb_in_loop_p): Same.
8430 (vect_get_max_nscalars_per_iter): Same.
8431 (vect_verify_full_masking): Same.
8432 (vect_compute_single_scalar_iteration_cost): Same.
8433 (vect_analyze_loop_form_1): Same.
8434 (vect_analyze_loop_form): Same.
8435 (vect_active_double_reduction_p): Same.
8436 (vect_analyze_loop_operations): Same.
8437 (neutral_op_for_slp_reduction): Same.
8438 (vect_is_simple_reduction): Same.
8439 (vect_model_reduction_cost): Same.
8440 (get_initial_def_for_reduction): Same.
8441 (get_initial_defs_for_reduction): Same.
8442 (vect_create_epilog_for_reduction): Same.
8443 (vectorize_fold_left_reduction): Same.
8444 (vectorizable_reduction): Same.
8445 (vectorizable_induction): Same.
8446 (vectorizable_live_operation): Same.
8447 (loop_niters_no_overflow): Same.
8448 (vect_get_loop_mask): Same.
8449 (vect_transform_loop_stmt): Same.
8450 (vect_transform_loop): Same.
8451 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
8452 (vect_determine_precisions): Same.
8453 (vect_pattern_recog_1): Same.
8454 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
8455 * tree-vect-stmts.c (stmt_vectype): Same.
8456 (process_use): Same.
8457 (vect_init_vector_1): Same.
8458 (vect_truncate_gather_scatter_offset): Same.
8459 (get_group_load_store_type): Same.
8460 (vect_build_gather_load_calls): Same.
8461 (vect_get_strided_load_store_ops): Same.
8462 (vectorizable_simd_clone_call): Same.
8463 (vectorizable_store): Same.
8464 (permute_vec_elements): Same.
8465 (vectorizable_load): Same.
8466 (vect_transform_stmt): Same.
8467 (supportable_widening_operation): Same.
8468 * tree-vectorizer.c (vec_info::replace_stmt): Same.
8469 (vec_info::free_stmt_vec_info): Same.
8470 (vect_free_loop_info_assumptions): Same.
8471 (vect_loop_vectorized_call): Same.
8472 (set_uid_loop_bbs): Same.
8473 (vectorize_loops): Same.
8474 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
8475 * tree.c (add_tree_to_fld_list): Same.
8476 (fld_type_variant_equal_p): Same.
8477 (fld_decl_context): Same.
8478 (fld_incomplete_type_of): Same.
8479 (free_lang_data_in_binfo): Same.
8480 (need_assembler_name_p): Same.
8481 (find_decls_types_r): Same.
8482 (get_eh_types_for_runtime): Same.
8483 (find_decls_types_in_eh_region): Same.
8484 (find_decls_types_in_node): Same.
8485 (assign_assembler_name_if_needed): Same.
8486 * value-prof.c (stream_out_histogram_value): Same.
8487 * value-prof.h: Same.
8488 * var-tracking.c (use_narrower_mode): Same.
8489 (prepare_call_arguments): Same.
8490 (vt_expand_loc_callback): Same.
8491 (resolve_expansions_pending_recursion): Same.
8492 (vt_expand_loc): Same.
8493 * varasm.c (const_hash_1): Same.
8494 (compare_constant): Same.
8495 (tree_output_constant_def): Same.
8496 (simplify_subtraction): Same.
8497 (get_pool_constant): Same.
8498 (output_constant_pool_2): Same.
8499 (output_constant_pool_1): Same.
8500 (mark_constants_in_pattern): Same.
8501 (mark_constant_pool): Same.
8502 (get_section_anchor): Same.
8503 * vr-values.c (compare_range_with_value): Same.
8504 (vr_values::extract_range_from_phi_node): Same.
8505 * vr-values.h: Same.
8506 * web.c (unionfind_union): Same.
8509 2019-07-09 Martin Sebor <msebor@redhat.com>
8512 * align.h: Change class-key from class to struct and vice versa
8513 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
8514 * alloc-pool.h: Same.
8515 * asan.c (shadow_mem_size): Same.
8516 * auto-profile.c: Same.
8517 * basic-block.h: Same.
8519 * cfgexpand.c (set_rtl): Same.
8520 (expand_one_stack_var_at): Same.
8524 * config/i386/i386.h: Same.
8525 * df-problems.c (df_print_bb_index): Same.
8527 * df.h (df_single_use): Same.
8528 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
8529 (layout::annotation_line_showed_range_p): Same.
8530 (get_printed_columns): Same.
8531 (correction::ensure_terminated): Same.
8532 (line_corrections::~line_corrections): Same.
8535 * dump-context.h: Same.
8537 * dwarf2out.c: Same.
8538 * edit-context.c: Same.
8539 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
8541 * function.c (assign_stack_local): Same.
8544 * gcov.c (block_info::block_info): Same.
8545 * genattrtab.c: Same.
8546 * genextract.c: Same.
8547 * genmatch.c (comparison_code_p): Same.
8548 (id_base::id_base): Same.
8549 (decision_tree::print): Same.
8550 * genoutput.c: Same.
8551 * genpreds.c (write_one_predicate_function): Same.
8552 * genrecog.c (validate_pattern): Same.
8553 (find_operand_positions): Same.
8554 (optimize_subroutine_group): Same.
8555 (merge_pattern_transition::merge_pattern_transition): Same.
8556 (merge_pattern_info::merge_pattern_info): Same.
8557 (merge_state_result::merge_state_result): Same.
8558 (merge_into_state): Same.
8559 * gensupport.c: Same.
8560 * gensupport.h: Same.
8561 * ggc-common.c (init_ggc_heuristics): Same.
8562 * ggc-tests.c (test_union): Same.
8563 * gimple-loop-interchange.cc (dump_induction): Same.
8564 * gimple-loop-versioning.cc: Same.
8565 * gimple-match.h (gimple_match_cond::any_else): Same.
8566 * gimple-ssa-backprop.c: Same.
8567 * gimple-ssa-sprintf.c: Same.
8568 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
8570 (store_immediate_info::store_immediate_info): Same.
8571 (merged_store_group::apply_stores): Same.
8572 (get_location_for_stmts): Same.
8573 * gimple-ssa-strength-reduction.c: Same.
8574 * gimple-ssa-warn-alloca.c: Same.
8575 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
8576 * godump.c (go_type_decl): Same.
8577 * hash-map-tests.c (test_map_of_strings_to_int): Same.
8579 * hash-set-tests.c (test_set_of_strings): Same.
8581 * hsa-common.h: Same.
8582 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
8583 * input.c (assert_loceq): Same.
8586 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
8587 * ipa-fnsummary.h: Same.
8588 * ipa-inline.h: Same.
8590 * ipa-split.c (visit_bb): Same.
8591 * ira-int.h (minmax_set_iter_next): Same.
8592 * loop-invariant.c: Same.
8594 * lra-eliminations.c: Same.
8596 * lra-lives.c (mark_regno_dead): Same.
8597 * lra-remat.c: Same.
8598 * lra-spills.c: Same.
8599 * lto-streamer.h: Same.
8600 * mem-stats.h: Same.
8601 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
8602 * omp-low.c (omp_clause_aligned_alignment): Same.
8603 * optabs-query.h (get_vcond_eq_icode): Same.
8605 * opts.c (wrap_help): Same.
8607 * predict.c (predict_paths_leading_to_edge): Same.
8608 * pretty-print.h: Same.
8609 * profile-count.h: Same.
8611 * read-rtl-function.c: Same.
8614 * regrename.c: Same.
8615 * regrename.h: Same.
8618 * rtl.h (costs_add_n_insns): Same.
8620 * sched-int.h: Same.
8621 * sel-sched-ir.h: Same.
8623 * sese.h (vec_find): Same.
8625 * target-globals.h: Same.
8626 * tree-affine.c (aff_combination_find_elt): Same.
8627 * tree-affine.h: Same.
8628 * tree-data-ref.h: Same.
8629 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
8630 * tree-predcom.c: Same.
8631 * tree-scalar-evolution.c (find_var_scev_info): Same.
8632 * tree-ssa-alias.h: Same.
8633 * tree-ssa-ccp.c: Same.
8634 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
8635 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
8636 (rewrite_mem_refs): Same.
8637 (execute_sm_if_changed): Same.
8638 (hoist_memory_references): Same.
8639 * tree-ssa-loop-ivopts.c (operator<=): Same.
8640 * tree-ssa-loop.h: Same.
8641 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
8642 * tree-ssa-structalias.c: Same.
8643 * tree-switch-conversion.h (cluster::cluster): Same.
8644 (simple_cluster::simple_cluster): Same.
8645 * tree-vect-patterns.c (type_conversion_p): Same.
8646 * tree-vectorizer.c (dump_stmt_cost): Same.
8647 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
8648 * tree.c (protected_set_expr_location): Same.
8649 * tree.h (desired_pro_or_demotion_p): Same.
8650 (fndecl_built_in_p): Same.
8651 * unique-ptr-tests.cc: Same.
8652 * var-tracking.c (delete_variable_part): Same.
8653 * varasm.c (assemble_real): Same.
8654 (tree_output_constant_def): Same.
8656 * wide-int-bitmask.h: Same.
8657 * wide-int.h (decompose): Same.
8659 2019-07-09 Richard Biener <rguenther@suse.de>
8661 PR tree-optimization/91114
8662 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
8663 find a vector type isn't fatal.
8665 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
8667 * config/aarch64/aarch64-simd.md
8668 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
8669 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
8670 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
8671 (*aarch64_crypto_aese_fused,
8672 *aarch64_crypto_aesd_fused): Update to new definition.
8673 * config/aarch64/aarch64.c
8674 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
8676 2019-07-09 Richard Biener <rguenther@suse.de>
8678 * gimple-match.h (gimple_match_op::resimplify): New.
8679 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
8680 gimple_resimplify4, gimple_resimplify5): Remove.
8681 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
8682 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
8684 (gimple_match_op::resimplify): New.
8685 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
8686 according to availability. Use gimple_match_op::resimplify.
8688 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
8690 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
8692 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
8694 * config/arm/crypto.md:
8695 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
8696 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
8697 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
8698 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
8700 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
8701 * config/arm/aarch-common-protos.h
8702 (aarch_crypto_can_dual_issue): Remove.
8703 * config/arm/aarch-common.c
8704 (aarch_crypto_can_dual_issue): Likewise.
8705 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
8706 * config/arm/cortex-a53.md: Likewise.
8707 * config/arm/cortex-a57.md: Likewise.
8708 * config/arm/iterators.md:
8709 (CRYPTO_BINARY): Redefine.
8710 (CRYPTO_UNARY): Removed.
8711 (CRYPTO_AES, CRYPTO_AESMC): New.
8713 2019-07-09 Richard Biener <rguenther@suse.de>
8715 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
8716 (vn_reference_lookup_3): If the main ref has no access path recorded
8717 but orig_ref has use it to do access-path based disambiguation.
8718 (vn_reference_lookup_pieces): Adjust.
8719 (vn_reference_lookup): Pass down original ref if we valueized.
8721 2019-07-09 Martin Liska <mliska@suse.cz>
8723 * doc/extend.texi: Document influence on loop
8726 2019-07-09 Martin Liska <mliska@suse.cz>
8728 * lto-compress.c (lto_normalized_zstd_level): Do not use
8729 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
8730 of libzstd. One can use 0 as a default compression level.
8732 2019-07-09 Martin Liska <mliska@suse.cz>
8734 * doc/invoke.texi: Add link from -fprofile-dir option.
8735 Use better wording for 'gcno filename'.
8737 2019-07-08 Martin Sebor <msebor@redhat.com>
8741 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
8743 (args_loc_t): New type.
8744 (args_loc_t, locmap_t): same.
8745 (diag_returned_locals): New function.
8746 (is_addr_local): Same.
8747 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
8748 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
8749 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
8751 2019-07-08 Jakub Jelinek <jakub@redhat.com>
8753 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
8754 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
8755 and casts in offset when different, both through gimple stmts
8756 and through trees. Rewritten using loops to minimize code duplication
8759 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
8761 * emit-rtl.c (set_insn_locations): New function moved from...
8762 * function.c (set_insn_locations): ...here.
8763 * ira-emit.c (emit_moves): Propagate location of the first instruction
8764 to the inserted move instructions.
8765 * reg-stack.c (compensate_edge): Set the location if the sequence is
8766 inserted on the edge.
8767 * rtl.h (set_insn_locations): Declare.
8769 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
8771 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
8772 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
8775 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
8777 PR rtl-optimization/88233
8778 * common.opt (fsplit-wide-types-early): New option.
8779 * common/config/rs6000/rs6000-common.c
8780 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
8782 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
8783 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
8784 flag_split_wide_types_early.
8785 (pass_data_lower_subreg3): New.
8786 (pass_lower_subreg3): New.
8787 (make_pass_lower_subreg3): New.
8788 * passes.def (pass_lower_subreg2): Move after the loop passes.
8789 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
8790 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
8791 the pass pipeline; its previous place is taken by ...
8792 (make_pass_lower_subreg3): ... this.
8794 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
8796 * config/s390/s390.c (s390_shift_truncation_mask): Define.
8797 (TARGET_SHIFT_TRUNCATION_MASK): Define.
8799 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
8801 * config/s390/constraints.md: Add new jsc constraint.
8802 * config/s390/predicates.md: New predicates.
8803 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
8804 * config/s390/s390.c (s390_valid_shift_count): New function.
8805 (print_shift_count_operand): Use s390_valid_shift_count.
8806 (print_operand): Likewise.
8807 * config/s390/s390.md: Use new predicate.
8808 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
8809 * config/s390/vector.md: Use new predicate.
8811 2019-07-08 Andrew Waterman <andrew@sifive.com>
8812 Jim Wilson <jimw@sifive.com>
8814 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
8815 bitsize instead of BITS_PER_WORD.
8817 2019-07-08 Martin Liska <mliska@suse.cz>
8819 * collect2.c (defined): Revert to before r254460.
8820 (scan_prog_file): Revert to before r254460.
8822 2019-07-08 Richard Biener <rguenther@suse.de>
8824 PR tree-optimization/83518
8825 * tree-ssa-sccvn.c: Include splay-tree.h.
8826 (struct pd_range, struct pd_data): New.
8827 (struct vn_walk_cb_data): Add data to track partial definitions.
8828 (vn_walk_cb_data::~vn_walk_cb_data): New.
8829 (vn_walk_cb_data::push_partial_def): New.
8830 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
8831 (vn_reference_lookup_2): When partial defs are registered give up.
8832 (vn_reference_lookup_3): Track partial defs for memset and
8833 constructor zeroing and for defs from constants.
8835 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
8837 * doc/install.texi (bootstrap-Og): Document.
8839 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
8841 * config/riscv/pic.md (*local_pic_load_s<mode>)
8842 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
8843 referenced by <mode>, giving...
8844 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
8845 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
8846 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
8847 use <X:MODE> for the mode attribute.
8849 2019-07-07 Jeff Law <law@redhat.com>
8851 PR tree-optimization/91090
8852 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
8853 in handling of ranges to simplify switch statements.
8855 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
8857 * config/darwin.c (darwin_override_options): Make a final check on PIC
8860 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
8862 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
8865 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
8868 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
8869 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
8870 instead of matching them to "l" output operands.
8872 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
8874 * config/mips/mips.c (mips_split_move): Zero-initialize addr
8875 and check whether addr.reg is nonnull before using it.
8877 2019-07-06 Jakub Jelinek <jakub@redhat.com>
8879 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
8880 ctx->for_simd_scan_phase simd copy the outer var to the privatized
8881 variable(s). For conditional lastprivate look through outer
8882 GIMPLE_OMP_SCAN context.
8883 (lower_omp_1): For conditional lastprivate look through outer
8884 GIMPLE_OMP_SCAN context.
8886 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
8887 member to combined_into_simd_safelen1.
8888 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
8889 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
8890 clauses if ctx->combined_into_simd_safelen1 put statements after the
8891 predicate conditionalized block rather than into it.
8893 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8895 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
8897 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
8898 Make the choice of <mode> explicit, giving...
8899 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
8901 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8903 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
8904 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
8906 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
8907 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
8908 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
8909 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
8910 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
8911 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
8912 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
8913 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
8914 (*avx512f_scatterdi<mode>): Likewise.
8915 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
8917 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8919 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
8920 specify the mode iterator referenced by <mode>, giving...
8921 (*push1_h8300hs_<QHI:mode>): ...this.
8923 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8925 * config/gcn/gcn-valu.md
8926 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
8927 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
8928 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
8929 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
8930 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
8931 but using the _exec comparison patterns.
8932 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
8933 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
8934 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
8935 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
8936 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
8937 but using the _exec comparison patterns.
8939 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8941 * config/arm/sync.md
8942 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
8943 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
8944 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
8945 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
8948 2019-07-06 Jakub Jelinek <jakub@redhat.com>
8950 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
8951 (maybe_lookup_ctx): Add forward declaration.
8952 (omp_find_scan): Likewise. Walk into body of simd if composited
8953 with worksharing loop.
8954 (scan_omp_simd_scan): New function.
8955 (scan_omp_1_stmt): Call it.
8956 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
8957 ctx->for_simd_scan_phase.
8958 (lower_rec_input_clauses): Do much less work for inscan reductions
8959 in ctx->for_simd_scan_phase is_simd regions.
8960 (lower_omp_scan): Set is_simd also on simd constructs composited
8961 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
8962 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
8963 emit their body after in simd constructs composited with worksharing
8965 (lower_omp_for_scan): Handle worksharing loop composited with simd.
8967 * omp-low.c (omp_find_scan): Make static.
8968 (lower_omp_for_scan): Fix order of merge arguments in input phase of
8969 the second loop, var2 represents the first partial sum and so needs
8970 to go before rprivb[ivar].
8972 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
8974 * config/rs6000/rs6000-logue.c: Remove unused code.
8976 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
8978 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
8980 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
8983 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
8984 check with a frame laid out check.
8986 2019-07-05 Richard Biener <rguenther@suse.de>
8988 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
8989 when comparing against a store with possibly the same value.
8991 2019-07-05 Richard Biener <rguenther@suse.de>
8993 PR tree-optimization/91091
8994 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
8995 (walk_non_aliased_vuses): Likewise.
8996 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
8997 (get_continuation_for_phi): New tbaa_p parameter and pass
8999 (walk_non_aliased_vuses): Likewise.
9000 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
9001 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
9002 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
9004 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
9005 (adjust_offsets_for_equal_base_address): New function.
9006 (vn_reference_lookup_3): Use it to catch more base equivalences.
9007 Handle and pass down tbaa_p flag.
9008 (vn_reference_lookup_pieces): Adjust.
9009 (vn_reference_lookup): Remove alias-set altering, instead pass
9010 down false as tbaa_p.
9012 2019-07-05 Richard Biener <rguenther@suse.de>
9014 PR tree-optimization/91091
9015 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
9016 accesses can happen with -fno-strict-aliasing.
9018 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
9020 * tree-ssa-alias.c (alias_stats): Add
9021 nonoverlapping_component_refs_since_match_p_must_overlap.
9022 (dump_alias_stats): Print it.
9023 (nonoverlapping_component_refs_since_match_p): Add early exit.
9024 (nonoverlapping_component_refs_p): Do not account early exit.
9026 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
9028 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
9029 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
9030 (emit_eh_dispatch): Delete.
9031 (lower_catch): Emit the eh_dispatch manually and set the location of
9032 the first catch statement onto it.
9033 (lower_eh_filter): Emit the eh_dispatch manually and set location.
9034 (lower_eh_dispatch): Propagate location.
9035 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
9036 (eliminate_build): Likewise.
9038 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
9040 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
9041 phi nodes if possible.
9042 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
9043 location info on the newly created statement.
9044 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
9045 newly created increment if needed.
9047 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9050 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
9051 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
9052 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
9053 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
9054 ctx->add_safelen1 is set.
9056 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
9057 GOMP_loop_start at the start of second worksharing loop in a scan.
9058 For nowait, don't emit GOMP_loop_end_nowait at the end of first
9059 worksharing loop in a scan even if there are conditional lastprivates,
9060 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
9062 2019-07-04 Jan Hubicka <jh@suse.cz>
9064 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
9065 Fix check for match in the ref walk.
9067 2019-07-04 Martin Liska <mliska@suse.cz>
9069 * tree-ssa-loop-niter.c
9070 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
9071 (estimate_numbers_of_iterations):
9072 Support __builtin_expect_with_probability for analysis
9073 of # of loop iterations.
9075 2019-07-04 Alexandre Oliva <oliva@adacore.com>
9077 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
9078 * except.c: Likewise.
9079 * expr.c (expand_expr_real_1): Reject it.
9080 * gimplify.c (gimplify_expr): Gimplify it, within
9082 * tree-dump.c (dequeue_and_dump): Dump it.
9083 * tree-pretty-print.c (dump_generic_node): Likewise.
9084 * tree.c (block_may_fallthru): Handle it.
9085 * tree.def (EH_ELSE_EXPR): Introduce it.
9086 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
9087 with GIMPLE_EH_ELSE as try/finally/else.
9089 2019-07-04 Richard Biener <rguenther@suse.de>
9092 * tree-pass.h (execute_all_ipa_transforms): Add a flag
9093 parameter whether to disable GC collection.
9094 * passes.c (execute_one_ipa_transform_pass): Likewise, and
9096 (execute_all_ipa_transforms): Likewise and pass it down.
9097 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
9098 collection from applying IPA transforms.
9099 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
9100 from applying IPA transforms.
9102 2019-07-04 Richard Biener <rguenther@suse.de>
9104 PR tree-optimization/90911
9105 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
9106 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
9107 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
9108 scalar_loop_scaling.
9109 (vect_transform_loop): Scale scalar loop profile if needed.
9110 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
9111 the loop copy from if-conversion adjust edge probabilities
9112 and scale the vectorized loop body profile, queue the scalar
9113 profile for updating after peeling.
9115 2019-07-04 Jan Hubicka <jh@suse.cz>
9117 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
9118 parameters; return early for must-alias.
9119 (indirect_ref_may_alias_decl_p): Likewise; when establishing
9120 outer types match, try nonoverlapping_component_refs
9121 if must-alias is not obvious.
9122 (indirect_refs_may_alias_p): Likewise.
9123 (refs_may_alias_p_2): Likewise.
9125 2019-07-04 Richard Biener <rguenther@suse.de>
9127 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
9129 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
9131 (struct vn_walk_cb_data): New callback data struct.
9132 (vn_reference_lookup_2): Adjust.
9133 (vn_reference_lookup_3): Likewise.
9134 (vn_reference_lookup_pieces): Likewise.
9135 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
9136 (visit_reference_op_load): Adjust.
9138 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9140 PR tree-optimization/91063
9141 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
9142 stmt from stmts sequence before calling vect_init_vector_1.
9145 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9148 * fwprop.c (reg_single_def_p): New function.
9149 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
9150 (forward_propagate_into): New parameter reg_prop_only
9151 with default value false.
9152 Propagate def's src into loop only if SET_SRC and SET_DEST
9153 of def_set have single definitions.
9154 Likewise if reg_prop_only is set to true.
9155 (fwprop): New param fwprop_addr_p.
9156 Integrate fwprop_addr into fwprop.
9157 (fwprop_addr): Remove.
9158 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
9160 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
9161 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
9162 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
9164 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9166 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
9167 in worksharing loop scans.
9169 PR tree-optimization/91074
9170 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
9173 PR rtl-optimization/90756
9174 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
9177 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
9179 * config/aarch64/aarch64.md: Remove redundant constraints from
9180 define_expand but keep some patterns untouched if they are
9181 specially selected by TARGET_SECONDARY_RELOAD hook.
9182 * config/aarch64/aarch64-sve.md: Likewise.
9183 * config/aarch64/atomics.md: Remove redundant constraints from
9185 * config/aarch64/aarch64-simd.md: Likewise.
9187 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
9189 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
9190 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
9191 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
9193 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
9196 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
9198 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
9199 (STARTFILE_SPEC): Split crt3 into a separate spec.
9200 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
9201 (DARWIN_CRT2_SPEC): New.
9202 (DARWIN_CRT3_SPEC): New.
9203 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
9204 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
9205 (DARWIN_CRT3_SPEC): New.
9207 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
9209 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
9210 Change the RTL attribute "length" from "4" to "*" to allow the
9211 length attribute to be adjusted automatically for prefixed load,
9212 store, and add immediate instructions.
9213 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
9215 (extendsi<mode>2, EXTSI iterator): Likewise.
9216 (movsi_internal1): Likewise.
9217 (movsi_from_sf): Likewise.
9218 (movdi_from_sf_zero_ext): Likewise.
9219 (mov<mode>_internal): Likewise.
9220 (movcc_internal1, QHI iterator): Likewise.
9221 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
9222 (movsf_from_si): Likewise.
9223 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
9224 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
9225 (mov<mode>, FMOVE128 iterator): Likewise.
9226 (movdi_internal64): Likewise.
9227 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
9229 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
9230 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
9231 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
9232 (vsx_splat_v4sf): Likewise.
9234 2019-07-03 Mark Wielaard <mark@klomp.org>
9237 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
9238 DW_AT_addr_base if there is actually a .debug_addr section with
9240 (output_addr_table): Add DWARF5 table header generation here after
9241 checking there are actually any addresses from...
9242 (dwarf2out_finish): ...here.
9244 2019-07-03 Richard Biener <rguenther@suse.de>
9247 * match.pd (vec_perm -> bit_insert): Fix element read from
9250 2019-07-03 Martin Liska <mliska@suse.cz>
9252 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
9253 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
9255 * generic-match-head.c: Include dbgcnt.h.
9256 * gimple-match-head.c: Likewise.
9258 2019-07-03 Martin Liska <mliska@suse.cz>
9260 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
9261 (GCOV_COUNTER_V_TOPN): New.
9262 (GCOV_COUNTER_V_INDIR): Use _topn.
9263 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
9264 (GCOV_TOPN_VALUES): New.
9265 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
9266 (GCOV_TOPN_VALUES_COUNTERS): New.
9267 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
9269 (gimple_init_gcov_profiler): Rename variables from one_value
9271 (gimple_gen_one_value_profiler): Remove.
9272 (gimple_gen_topn_values_profiler): New function.
9273 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
9274 names instead of SINGLE_VALUE.
9275 (stream_out_histogram_value): Likewise.
9276 (stream_in_histogram_value): Likewise.
9277 (get_most_common_single_value): Likewise.
9278 (gimple_divmod_fixed_value_transform): Likewise.
9279 (gimple_stringops_transform): Likewise.
9280 (gimple_divmod_values_to_profile): Likewise.
9281 (gimple_stringops_values_to_profile): Likewise.
9282 (gimple_find_values_to_profile): Likewise.
9283 * value-prof.h (enum hist_type): Rename to TOPN.
9284 (gimple_gen_one_value_profiler): Remove.
9285 (gimple_gen_topn_values_profiler): New.
9287 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
9289 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
9290 if it has the DW_AT_data_member_location attribute.
9292 2019-07-03 Richard Biener <rguenther@suse.de>
9294 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
9297 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
9299 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
9300 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
9301 (tlsdesc_small_sve_<mode>): Likewise.
9303 2019-07-03 Martin Liska <mliska@suse.cz>
9305 * Makefile.in: Define ZSTD_LIB.
9306 * common.opt: Adjust compression level
9307 to support also zstd levels.
9308 * config.in: Regenerate.
9309 * configure: Likewise.
9310 * configure.ac: Add --with-zstd and --with-zstd-include options
9312 * doc/install.texi: Mention zstd dependency.
9313 * gcc.c: Print supported LTO compression algorithms.
9314 * lto-compress.c (lto_normalized_zstd_level): Likewise.
9315 (lto_compression_zstd): Likewise.
9316 (lto_uncompression_zstd): Likewise.
9317 (lto_end_compression): Dispatch in between zlib and zstd.
9318 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
9319 (lto_uncompression_zlib): Make it static.
9320 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
9321 * lto-section-in.c (lto_get_section_data): Pass info
9322 about used compression.
9323 * lto-streamer-out.c: By default use zstd when possible.
9324 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
9325 (TV_IPA_LTO_COMPRESS): Likewise for compression.
9327 2019-07-03 Martin Liska <mliska@suse.cz>
9329 * lto-section-in.c (lto_get_section_data): Add "lto" section.
9330 * lto-section-out.c (lto_destroy_simple_output_block): Never
9331 compress LTO_section_lto section.
9332 * lto-streamer-out.c (produce_asm): Do not set major_version
9334 (lto_output_toplevel_asms): Likewise.
9335 (produce_lto_section): New function.
9336 (lto_output): Call produce_lto_section.
9337 (lto_write_mode_table): Do not set major_version and
9339 (produce_asm_for_decls): Likewise.
9340 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
9342 (struct lto_header): Remove.
9343 (struct lto_section): New struct.
9344 (struct lto_simple_header): Do not inherit from lto_header.
9345 (struct lto_file_decl_data): Add lto_section_header field.
9347 2019-07-03 Martin Liska <mliska@suse.cz>
9349 * lra-eliminations.c (eliminate_regs_in_insn): Remove
9351 * reg-stack.c (check_asm_stack_operands): Likewise.
9352 * tree-ssa-structalias.c (create_function_info_for): Likewise.
9353 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
9354 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
9357 2019-07-03 Martin Liska <mliska@suse.cz>
9359 PR tree-optimization/90892
9360 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
9361 in string constants.
9363 2019-07-03 Martin Liska <mliska@suse.cz>
9366 * multiple_target.c (create_dispatcher_calls): Add to comdat
9367 group only if set for ifunc.
9369 2019-07-03 Martin Liska <mliska@suse.cz>
9372 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
9373 Define local_object_name in outer scope in order to handle
9374 use-after-scope issue.
9376 2019-07-03 Martin Liska <mliska@suse.cz>
9378 * common.opt: Add fprofile-note.
9379 * coverage.c (coverage_init): Append the option
9381 * doc/invoke.texi: Document -fprofile-note.
9383 2019-07-03 Jakub Jelinek <jakub@redhat.com>
9385 PR tree-optimization/91033
9386 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
9387 vect_analyze_data_refs): Add bool * arguments.
9388 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
9389 if failure is due to scatter/gather, set *fatal to false if non-NULL.
9390 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9391 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
9392 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
9393 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
9394 vect_analyze_data_refs caller.
9396 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
9398 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
9399 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
9400 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
9401 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9402 OMP_CLAUSE__SCANTEMP_ entry.
9403 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
9404 * tree-pretty-print.c (dump_omp_clause): Likewise.
9405 * tree-nested.c (convert_nonlocal_omp_clauses,
9406 convert_local_omp_clauses): Likewise.
9407 * omp-general.h (struct omp_for_data): Add have_scantemp and
9408 have_nonctrl_scantemp members.
9409 * omp-general.c (omp_extract_for_data): Initialize them.
9410 * omp-low.c (struct omp_context): Add scan_exclusive member.
9411 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
9412 result again with GF_OMP_FOR_KIND_MASK. Initialize also
9413 ctx->scan_exclusive.
9414 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
9415 of !ctx->scan_inclusive.
9416 (lower_rec_input_clauses): Simplify gimplification of dtors using
9417 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
9418 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
9419 loops. Don't add barrier for reduction_omp_orig_ref if
9420 ctx->scan_??xclusive.
9421 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
9422 (lower_omp_scan): Use ctx->scan_exclusive instead
9423 of !ctx->scan_inclusive. Handle worksharing loops with inscan
9424 reductions. Use new_vard != new_var instead of repeated
9425 omp_is_reference calls.
9426 (omp_find_scan, lower_omp_for_scan): New functions.
9427 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
9429 * omp-expand.c (expand_omp_scantemp_alloc): New function.
9430 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
9431 and fd->have_scantemp.
9433 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
9434 on worksharing loop propagate it as shared clause to containing
9437 * omp-expand.c (expand_omp_for_static_nochunk,
9438 expand_omp_for_static_chunk): For nowait worksharing loop with
9439 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
9442 2019-07-02 qing zhao <qing.zhao@oracle.com>
9444 PR preprocessor/90581
9445 * doc/cppopts.texi: Add document for -fmax-include-depth.
9446 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
9448 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
9450 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
9451 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
9452 (mmx_packssdw): Ditto.
9453 (mmx_punpckhbw): Ditto.
9454 (mmx_punpcklbw): Ditto.
9455 (mmx_punpckhwd): Ditto.
9456 (mmx_punpcklwd): Ditto.
9457 (mmx_punpckhdq): Ditto.
9458 (mmx_punpckldq): Ditto.
9459 (*vec_dupv4hi): Ditto.
9460 (*vec_dupv2si): Ditto.
9461 (mmx_pmovmskb): Ditto.
9462 * config/i386/sse.md (sse_cvtpi2ps): Use
9463 TARGET_SSE2 && SSE_REG_P in split condition.
9464 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
9465 TARGET_SSSE3 && SSE_REGNO_P in split condition.
9466 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
9467 (ssse3_pshufbv8qi3): Ditto.
9468 (ssse3_palignrdi): Ditto.
9470 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
9472 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
9473 with inlined save and restore.
9475 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
9477 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
9478 to be inserted on single successor edge of the entry block. Then call
9479 commit_edge_insertions instead of inserting the instructions manually.
9480 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
9481 RTL expansion and rebuild jump labels chain.
9483 2019-07-02 Richard Biener <rguenther@suse.de>
9485 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
9487 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
9489 * tree.c (build_common_tree_nodes): Initialize them.
9490 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
9491 Make declarations comments.
9492 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
9493 chrec_known): Remove definitions.
9494 (initialize_scalar_evolutions_analyzer): Remove.
9495 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
9496 * tree-streamer.c (preload_common_nodes): Do not preload
9497 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
9499 2019-07-02 Jan Hubicka <jh@suse.cz>
9501 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
9504 2019-07-02 Jan Hubicka <jh@suse.cz>
9506 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
9508 (nonoverlapping_component_refs_since_match_p): ... this one;
9509 handle also non-decl bases; return -1 if search gave up.
9510 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
9511 nonoverlapping_component_refs_of_decl_p_no_alias to
9512 nonoverlapping_component_refs_since_match_p_may_alias,
9513 nonoverlapping_component_refs_since_match_p_no_alias.
9514 (dump_alias_stats): Update dumping.
9515 (aliasing_matching_component_refs_p): Break out from ...;
9516 dispatch to nonoverlapping_component_refs_for_decl_p
9517 and nonoverlapping_component_refs_since_match_p.
9518 (aliasing_component_refs_p): ... here; call
9519 nonoverlapping_component_refs_p in scenarios where we can not
9520 precisely determine base match.
9521 (decl_refs_may_alias_p): Use
9522 nonoverlapping_component_refs_since_match_p.
9523 (indirect_ref_may_alias_decl_p): Do not call
9524 nonoverlapping_component_refs_p.
9525 (indirect_refs_may_alias_p): Likewise.
9527 2019-07-02 Jan Hubicka <jh@suse.cz>
9529 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
9530 to clobber of return value.
9532 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9534 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
9535 for is_neon_type instructions that have not already been categorized.
9537 2019-07-02 Richard Biener <rguenther@suse.de>
9539 PR tree-optimization/58483
9540 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
9541 for MEM_REF base hashing.
9542 (equal_mem_array_ref_p): Likewise for base comparison.
9544 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9546 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
9548 (signbit<mode>2): Use that name. Simplify.
9550 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
9553 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
9554 Tune heuristic from PR71016 to allow MIN / MAX.
9556 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9558 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
9560 (abs<mode>2): Use that name. Simplify.
9562 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9564 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
9566 (neg<mode>2): Use that name. Simplify.
9568 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9570 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
9572 (abs<mode>2): Use that name. Simplify.
9574 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9576 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
9578 (neg<mode>2): Use that name. Simplify.
9580 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
9582 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
9583 ("enabled" attribute): Handle sse_noavx isa attribute.
9584 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
9585 Use TARGET_SSE && SSE_REGNO_P in split condition.
9586 (*vec_dupv2sf): Ditto.
9588 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9590 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
9592 (floatsi<mode>2): Use that name. Simplify.
9594 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9596 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
9598 (extenddf<mode>2_vsx): Make this a parameterized name.
9599 (extenddf<mode>2): Use those names. Simplify.
9601 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9603 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
9605 (eh_return): Use that name. Simplify.
9607 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9609 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
9610 (doloop_end): Use that name. Simplify.
9612 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9614 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
9616 (indirect_jump): Use that name. Simplify.
9618 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9620 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
9622 (abs<mode>2): Use that name. Simplify.
9624 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9626 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
9628 (fix_trunc<mode>si2): Use that name. Simplify.
9630 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9632 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
9633 (allocate_stack): Use that name. Simplify.
9635 2019-07-01 Martin Sebor <msebor@redhat.com>
9638 * hash-map.h (hash_map::put): On insertion invoke element ctor.
9639 (hash_map::get_or_insert): Same. Reformat comment.
9640 * hash-set.h (hash_set::add): On insertion invoke element ctor.
9641 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
9642 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
9643 * hash-table.h (hash_table::operator=): Prevent copy assignment.
9644 (hash_table::hash_table (const hash_table&)): Use copy ctor
9645 instead of assignment to copy elements.
9647 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
9648 John David Anglin <danglin@gcc.gnu.org>
9651 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
9652 using saved frame pointer.
9654 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
9657 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
9658 Add frame clobber and schedule blockage.
9660 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
9662 * doc/invoke.texi (Link Options): Further editorial changes to
9663 -flinker-output docs.
9665 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
9667 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
9668 Load both operands of a PLUS into registers separately.
9670 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
9672 * config/s390/vector.md: Fix shift count operand printing.
9674 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
9676 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
9678 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
9680 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
9681 Use recog_data to test for an output operand.
9683 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
9685 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
9686 exclude any others that are disparaged or that are bound to need
9688 (ira_get_dup_out_num): Expand comment.
9690 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
9692 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
9693 constraint string for each operand/alternative combo. Only handle
9694 '%' at the start of constraint strings, and look for it outside
9697 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
9699 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
9700 alternative_mask instead of HARD_REG_SET to represent a
9701 bitmask of alternatives.
9702 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
9703 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
9705 2019-07-01 Martin Liska <mliska@suse.cz>
9707 * edit-context.c (test_applying_fixits_unreadable_file): Do not
9708 use () for a constructor call.
9709 (test_applying_fixits_line_out_of_range): Likewise.
9710 * ggc-page.c (alloc_page): Use (void *) for %p printf format
9712 (free_page): Likewise.
9714 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
9716 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
9717 parameter names to match usage (no functional change).
9718 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
9720 2019-07-01 Richard Biener <rguenther@suse.de>
9722 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
9724 (pass_fre::execute): Honor it.
9725 * passes.def: Adjust pass_fre invocations to allow iterating,
9726 add non-iterating pass_fre before late threading/dom.
9728 2019-07-01 Richard Biener <rguenther@suse.de>
9730 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
9731 TARGET_MEM_REF handling to also handle address-taken ones.
9733 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
9735 * doc/sourcebuild.texi (Effective-Target Keywords, Other
9736 hardware attributes): Document avx512vp2intersect.
9738 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
9740 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
9741 (abs<mode>2): New expander.
9742 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
9743 Use CODE_FOR_ssse3_absv8qi2.
9744 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
9745 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
9747 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
9749 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
9750 to sse, sse_noavx and avx. Update all uses.
9752 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
9754 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
9755 (*mmx_<plusminus_insn><mode>3): Ditto.
9756 (*mmx_mulv4hi3"): Ditto.
9757 (*mmx_smulv4hi3_highpart): Ditto.
9758 (*mmx_umulv4hi3_highpart): Ditto.
9759 (*mmx_pmaddwd): Ditto.
9760 (*sse2_umulv1siv1di3): Ditto.
9761 (*mmx_<code>v4hi3): Ditto.
9762 (*mmx_<code>v8qi3): Ditto.
9763 (mmx_ashr<mode>3): Ditto.
9764 ("mmx_<shift_insn><mode>3): Ditto.
9765 (*mmx_eq<mode>3): Ditto.
9766 (mmx_gt<mode>3): Ditto.
9767 (mmx_andnot<mode>3): Ditto.
9768 (*mmx_<code><mode>3): Ditto.
9769 (*mmx_pinsrw): Ditto.
9770 (*mmx_pextrw): Ditto.
9771 (mmx_pshufw_1): Ditto.
9772 (*mmx_uavgv8qi3): Ditto.
9773 (*mmx_uavgv4hi3): Ditto.
9774 ("mmx_psadbw): Ditto.
9775 * config/i386/sse.md (sse_cvtps2pi): Ditto.
9776 (sse_cvttps2pi): Ditto.
9777 (ssse3_pmaddubsw): Ditto.
9778 (*ssse3_pmulhrswv4hi3): Ditto.
9779 (ssse3_psign<mode>3): Ditto.
9781 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
9783 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
9784 adjustment for bit-fields to all aggregate types.
9786 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
9788 * config/rs6000/predicates.md (pcrel_address): Use
9789 SYMBOL_REF_LOCAL_P to determine if a label is local.
9790 (pcrel_external_address): New predicate.
9791 (non_prefixed_mem_operand): Delete, predicate not used.
9792 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
9793 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
9795 (SYMBOL_REF_PCREL_P): Likewise.
9798 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
9800 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
9801 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
9802 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
9804 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
9806 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
9807 override on extra_headers.
9809 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
9811 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
9812 * config/darwin-driver.c (darwin_default_min_version): Remove newline
9814 (darwin_driver_init): Likewise.
9816 2019-06-28 Jan Beulich <jbeulich@suse.com>
9818 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
9819 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
9820 Eliminate redundant alternative.
9822 2019-06-28 Jan Beulich <jbeulich@suse.com>
9824 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
9825 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
9828 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
9830 * config/arc/arc.c (arc_rtx_costs): All short instructions are
9831 having a lower cost regardless of the speed option.
9833 2019-06-28 Jan Beulich <jbeulich@suse.com>
9835 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
9836 vector_operand plus, on both alternatives, "Bm" constraint.
9838 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
9840 * config/arm/arm.md: Remove redundant constraints from
9841 define_expand but leave reload_inm and reload_outm patterns
9842 untouched since they need special constraints to work.
9843 * config/arm/arm-fixed.md: Remove redundant constraints from
9845 * config/arm/iwmmxt.md: Likewise.
9846 * config/arm/neon.md: Likewise.
9847 * config/arm/sync.md: Likewise.
9848 * config/arm/thumb1.md: Likewise.
9849 * config/arm/vec-common.md: Likewise.
9851 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
9853 * doc/install.texi: Document --disable-tm-clone-registry.
9855 2019-06-27 Jakub Jelinek <jakub@redhat.com>
9858 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
9861 PR tree-optimization/91010
9862 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
9863 return true. Otherwise, don't call operand_equal_p if offset1 or
9864 offset2 is NULL and just return false.
9866 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
9868 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
9869 user-specified float mode choice for kernel mode code.
9871 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
9873 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
9876 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
9878 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
9879 use longcall for 64b code.
9881 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
9883 * builtins.c (get_memory_rtx): Fix comment.
9884 * optabs.def (movmem_optab): Change to cpymem_optab.
9885 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
9886 (emit_block_move_hints): Change movmem to cpymem.
9887 * defaults.h: Change movmem to cpymem.
9888 * targhooks.c (get_move_ratio): Change movmem to cpymem.
9889 (default_use_by_pieces_infrastructure_p): Ditto.
9890 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
9891 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
9893 * config/aarch64/aarch64.h: Change movmem to cpymem.
9894 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
9895 * config/alpha/alpha.h: Change movmem to cpymem in comment.
9896 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
9898 * config/arc/arc-protos.h: Change movmem to cpymem.
9899 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
9900 * config/arc/arc.h: Change movmem to cpymem in comment.
9901 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
9902 * config/arm/arm-protos.h: Change movmem to cpymem in names.
9903 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
9904 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
9905 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
9906 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
9907 * config/avr/avr-protos.h: Change movmem to cpymem.
9908 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
9909 avr_out_movmem): Change movmem to cpymem.
9910 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
9911 Change movmem to cpymem.
9912 * config/bfin/bfin-protos.h: Change movmem to cpymem.
9913 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
9914 Change movmem to cpymem.
9915 * config/bfin/bfin.h: Change movmem to cpymem in comment.
9916 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
9917 * config/c6x/c6x-protos.h: Change movmem to cpymem.
9918 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
9919 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
9920 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
9921 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
9922 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
9923 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
9924 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
9925 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
9926 expand_small_cpymem_or_setmem,
9927 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
9928 expand_set_or_cpymem_constant_prologue,
9929 ix86_expand_set_or_cpymem): Change movmem to cpymem.
9930 * config/i386/i386-protos.h: Change movmem to cpymem.
9931 * config/i386/i386.h: Change movmem to cpymem in comment.
9932 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
9933 (setmem<mode>): Change expansion function name.
9934 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
9935 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
9936 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
9937 * config/m32c/m32c-protos.h: Change movmem to cpymem.
9938 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
9939 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
9940 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
9942 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
9943 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
9944 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
9945 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
9946 Change movmem to cpymem.
9947 * config/mips/mips.h: Change movmem to cpymem.
9948 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
9949 * config/nds32/nds32-memory-manipulation.c
9950 (nds32_expand_movmemsi_loop_unknown_size,
9951 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
9952 nds32_expand_movmemsi_unroll,
9953 nds32_expand_movmemsi): Change movmem to cpymem.
9954 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
9955 * config/nds32/nds32-protos.h: Change movmem to cpymem.
9956 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
9957 (pa_adjust_insn_length): Change call to compute_movmem_length.
9958 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
9959 movmemdi, movmemdi_prereload,
9960 movmemdi_postreload): Change movmem to cpymem.
9961 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
9962 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
9963 * config/riscv/riscv.c: Change movmem to cpymem in comment.
9964 * config/riscv/riscv.h: Change movmem to cpymem.
9965 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
9966 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
9967 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
9969 * config/s390/s390-protos.h: Change movmem to cpymem.
9970 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
9971 s390_expand_insv): Change movmem to cpymem.
9972 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
9973 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
9974 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
9975 * config/sparc/sparc.h: Change movmem to cpymem in comment.
9976 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
9977 for nonexistent function.
9978 * config/vax/vax.h: Change movmem to cpymem in comment.
9979 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
9980 * config/visium/visium.h: Change movmem to cpymem in comment.
9981 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
9982 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
9983 * doc/md.texi: Change movmem to cpymem and update description to match.
9984 * doc/rtl.texi: Change movmem to cpymem.
9985 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
9986 * doc/tm.texi: Regenerate.
9988 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
9990 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
9991 -fvariable-expansion-in-unroller by default.
9992 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
9995 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
9998 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
9999 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
10001 * config.gcc(rs6000-*-*): Define target_gtfiles.
10003 2019-06-27 Jan Hubicka <jh@suse.cz>
10005 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
10006 (add_type_duplicate): When odr hash is not allocated, to nothing.
10007 (odr_based_tbaa_p): New function.
10008 (set_type_canonical_for_odr_type): New function.
10009 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
10010 set_type_canonical_for_odr_type): New.
10011 * tree.c (gimple_canonical_types_compatible_p): ODR types with
10012 ODR based TBAA are not equivalent to non-ODR types.
10014 2019-06-27 Martin Liska <mliska@suse.cz>
10016 PR tree-optimization/90974
10017 PR rtl-optimization/90975
10018 PR rtl-optimization/90976
10020 PR tree-optimization/91017
10021 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
10023 * lra.c (lra_set_insn_recog_data): Remove a leftover from
10024 initial commit of IRA.
10025 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
10027 * tree-vect-loop.c (vect_create_epilog_for_reduction):
10028 Remove unused mode1.
10029 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
10032 2019-06-27 Jakub Jelinek <jakub@redhat.com>
10035 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
10036 instead of register_operand for operands[1], add m to its constraints
10037 if operands[2] uses "C" constraint. Ensure in condition that if
10038 operands[2] is not 0, then operands[1] is not a MEM. For last two
10039 alternatives, use unaligned loads instead of aligned if operands[1] is
10040 misaligned_operand.
10042 2019-06-27 Martin Liska <mliska@suse.cz>
10044 * asan.c (asan_emit_allocas_unpoison): Remove obviously
10046 * bt-load.c (move_btr_def): Likewise.
10047 * builtins.c (expand_builtin_apply_args_1): Likewise.
10048 (expand_builtin_apply): Likewise.
10049 * cfgexpand.c (expand_asm_stmt): Likewise.
10050 (construct_init_block): Likewise.
10051 * cfghooks.c (verify_flow_info): Likewise.
10052 * cfgloopmanip.c (remove_path): Likewise.
10053 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
10054 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
10055 * combine.c (simplify_if_then_else): Likewise.
10056 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
10057 (choose_basereg): Likewise.
10058 (ix86_expand_prologue): Likewise.
10059 (ix86_preferred_output_reload_class): Likewise.
10060 * cselib.c (cselib_record_sets): Likewise.
10061 * df-scan.c (df_scan_alloc): Likewise.
10062 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
10063 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
10064 * emit-rtl.c (try_split): Likewise.
10065 * graphite-scop-detection.c (assign_parameter_index_in_region):
10067 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
10068 * ira-color.c (setup_profitable_hard_regs): Likewise.
10069 * ira.c (rtx_moveable_p): Likewise.
10070 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
10071 * read-rtl.c (read_subst_mapping): Likewise.
10072 * regrename.c (scan_rtx): Likewise.
10073 * reorg.c (fill_slots_from_thread): Likewise.
10074 * tree-inline.c (tree_function_versioning): Likewise.
10075 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
10076 * tree-ssa-sink.c (statement_sink_location): Likewise.
10077 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
10078 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
10079 (vect_create_epilog_for_reduction): Likewise.
10080 * tree.c (build_nonstandard_integer_type): Likewise.
10082 2019-06-27 Richard Biener <rguenther@suse.de>
10084 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
10086 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
10088 PR tree-optimization/89772
10089 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
10090 out-of-bound accesses checking.
10092 2019-06-27 Martin Liska <mliska@suse.cz>
10094 PR tree-optimization/91014
10095 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
10096 when LHS is NULL_TREE.
10098 2019-06-27 Martin Liska <mliska@suse.cz>
10100 * symbol-summary.h (traverse): Pass
10101 argument a to the call of callback.
10102 (gt_ggc_mx): Mark arguments as unused.
10103 (gt_pch_nx): Likewise.
10105 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
10108 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
10111 2019-06-26 Jeff Law <law@redhat.com>
10113 PR tree-optimization/90883
10114 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
10115 (delete_dead_or_redundant_assignment): Likewise.
10117 PR tree-optimization/90883
10118 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
10119 * tree-ssa-dse.c: Update various comments to distinguish between
10120 dead and redundant stores.
10121 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
10122 (dse_optimize_redundant_stores): New function.
10123 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
10124 Distinguish between dead and redundant calls in dump output. All
10126 (delete_dead_or_redundant_assignment): Similarly for assignments.
10127 (dse_optimize_stmt): Handle _CHK variants. For statements which
10128 store 0 into multiple memory locations, try to prove a subsequent
10129 store is redundant.
10131 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
10134 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
10135 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
10137 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
10139 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
10140 (branch_islands): New extern.
10141 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
10142 * config/rs6000/rs6000.c: .. here.
10144 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
10146 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
10147 (powerpc*-*-*) ... to here.
10149 2019-06-26 Jeff Law <law@redhat.com>
10151 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
10152 memcpy, memmove and memset builtins.
10153 (maybe_trim_memstar_call): Likewise.
10155 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
10157 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
10159 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
10161 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
10163 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
10165 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
10167 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
10169 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
10172 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
10174 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
10176 2019-06-26 Richard Biener <rguenther@suse.de>
10179 * tree-inline.c (remap_ssa_name): Copy SSA range info.
10181 2019-06-26 Richard Biener <rguenther@suse.de>
10183 * lto-streamer.h (lto_bitmap_alloc): Remove.
10184 (lto_bitmap_free): Likewise.
10185 * lto-streamer.c (lto_bitmap_alloc): Remove.
10186 (lto_bitmap_free): Likewise.
10187 (lto_obstack): Likewise.
10188 (lto_obstack_initialized): Likewise.
10189 * lto-streamer-out.c (lto_output): Use own obstack for local
10190 bitmap, free it consistently.
10192 2019-06-26 Jakub Jelinek <jakub@redhat.com>
10195 * config/i386/sse.md
10196 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
10197 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
10198 insns if operands[2] is misaligned_operand.
10200 2019-06-26 Li Jia He <helijia@linux.ibm.com>
10202 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
10204 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
10207 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
10209 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
10211 2019-06-26 Martin Liska <mliska@suse.cz>
10213 PR tree-optimization/90973
10214 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
10215 epilogue_cost_vec instead of prologue_cost_vec for
10218 2019-06-26 Martin Liska <mliska@suse.cz>
10220 * bb-reorder.c (connect_better_edge_p): Add missing else
10221 statement in the middle of if-else statements.
10223 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
10224 H.J. Lu <hongjiu.lu@intel.com>
10225 Olga Makhotina <olga.makhotina@intel.com>
10227 * common/config/i386/i386-common.c
10228 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
10229 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
10230 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
10231 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
10232 (ix86_handle_option): Handle -mavx512vp2intersect.
10233 * config/i386/avx512vp2intersectintrin.h: New.
10234 * config/i386/avx512vp2intersectvlintrin.h: New.
10235 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
10236 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10237 AVX512VP2INTERSECT.
10238 * config/i386/i386-builtin-types.def: Add new types.
10239 * config/i386/i386-builtin.def: Add new builtins.
10240 * config/i386/i386-builtins.c: (enum processor_features): Add
10241 F_AVX512VP2INTERSECT.
10242 (static const _isa_names_table isa_names_table): Ditto.
10243 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10244 __AVX512VP2INTERSECT__.
10245 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
10246 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
10247 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
10248 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
10249 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
10250 * config/i386/i386-options.c (ix86_target_string): Add
10251 -mavx512vp2intersect.
10252 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
10253 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
10254 P2HImode and P2QImode.
10255 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
10256 number for P2QImode and P2HImode.
10257 (ix86_regmode_natural_size): New function.
10258 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
10259 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
10260 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
10261 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
10262 * config/i386/i386.opt: Add -mavx512vp2intersect.
10263 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
10264 avx512vp2intersectvlintrin.h.
10265 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
10266 (define_mode_iterator VI48_AVX512VP2VL): New.
10267 (avx512vp2intersect_2intersect<mode>,
10268 avx512vp2intersect_2intersectv16si): New define_insn patterns.
10269 * config.gcc: Add avx512vp2intersectvlintrin.h and
10270 avx512vp2intersectintrin.h to extra_headers.
10271 * doc/invoke.texi: Document -mavx512vp2intersect.
10273 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
10275 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
10277 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
10279 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
10280 savres_routine_syms, savres_routine_name, morestack_ref,
10281 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
10282 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
10283 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
10284 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
10285 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
10286 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
10287 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
10288 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
10289 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
10290 get_stack_clash_protection_probe_interval,
10291 get_stack_clash_protection_guard_size,
10292 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
10293 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
10294 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
10295 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
10296 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
10297 gen_frame_mem_offset, rs6000_savres_routine_name,
10298 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
10299 ptr_regno_for_savres, rs6000_emit_savres_rtx,
10300 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
10301 rs6000_global_entry_point_prologue_needed_p,
10302 rs6000_get_separate_components, rs6000_components_for_bb,
10303 rs6000_disqualify_components, rs6000_emit_prologue_components,
10304 rs6000_emit_epilogue_components, rs6000_set_handled_components,
10305 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
10306 rs6000_output_savres_externs, rs6000_output_function_prologue,
10307 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
10308 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
10309 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
10310 rs6000_output_function_epilogue, gen_add3_const,
10311 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
10312 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
10314 (machine_function): Moved to rs6000.h.
10315 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
10317 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
10318 savres_routine_syms, savres_routine_name, morestack_ref,
10319 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
10320 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
10321 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
10322 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
10323 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
10324 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
10325 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
10326 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
10327 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
10328 get_stack_clash_protection_probe_interval,
10329 get_stack_clash_protection_guard_size,
10330 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
10331 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
10332 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
10333 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
10334 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
10335 gen_frame_mem_offset, rs6000_savres_routine_name,
10336 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
10337 ptr_regno_for_savres, rs6000_emit_savres_rtx,
10338 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
10339 rs6000_global_entry_point_prologue_needed_p,
10340 rs6000_get_separate_components, rs6000_components_for_bb,
10341 rs6000_disqualify_components, rs6000_emit_prologue_components,
10342 rs6000_emit_epilogue_components, rs6000_set_handled_components,
10343 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
10344 rs6000_output_savres_externs, rs6000_output_function_prologue,
10345 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
10346 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
10347 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
10348 rs6000_output_function_epilogue, gen_add3_const,
10349 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
10350 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
10351 to here from rs6000.c.
10352 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
10353 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
10354 quad_address_offset_p) Moved to here from rs6000.c.
10355 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
10356 * config/config.gcc: Add new source file rs6000-logue.c to garbage
10359 2019-06-25 Martin Liska <mliska@suse.cz>
10361 * hash-table.c (hashtab_chk_error): Move here from ...
10362 * hash-table.h (hashtab_chk_error): ... here.
10364 2019-06-25 Martin Liska <mliska@suse.cz>
10366 PR tree-optimization/90978
10367 * df-scan.c (df_update_entry_block_defs): Remove dead else
10369 (df_update_exit_block_uses): Likewise.
10371 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
10372 Andrew Stubbs <ams@codesourcery.com>
10374 * config.gcc (thread_file): Set to gcn for AMD GCN.
10375 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
10376 (TARGET_EMUTLS_VAR_INIT): New hook.
10378 2019-06-25 Martin Jambor <mjambor@suse.cz>
10381 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
10383 2019-06-25 Richard Biener <rguenther@suse.de>
10385 PR tree-optimization/90930
10386 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
10387 into parallel form in the last pass instance.
10389 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
10391 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
10392 (arc_legitimize_pic_address): Simplify and cleanup the function.
10393 (SYMBOLIC_CONST): Remove.
10394 (prepare_pic_move): Likewise.
10395 (prepare_move_operands): Handle complex mov cases here.
10396 (arc_legitimize_address_0): Remove call to
10397 arc_legitimize_pic_address.
10398 (arc_legitimize_address): Remove call to
10399 arc_legitimize_tls_address.
10400 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
10401 (movhi_insn): Likewise.
10403 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10405 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
10407 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
10408 format of "__intN" types for UINTMAX_TYPE.
10409 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
10410 format of "__intN" types for SIZETYPE.
10411 * tree.c (build_common_tree_nodes): Accept "__intN__"
10412 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
10413 * doc/invoke.texi: Document that __intN__ disables pedantic
10416 2019-06-25 Jan Hubicka <jh@suse.cz>
10418 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
10419 base2_alias_set is non-zero before doing TBAA based disambiguation.
10421 2019-06-25 Martin Liska <mliska@suse.cz>
10423 PR tree-optimization/90973
10424 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
10425 of prologue and epilogue.
10427 2019-06-24 Jan Hubicka <jh@suse.cz>
10429 * ipa-utils.h (type_with_linkage_p): Verify that type is
10431 (odr_type_p): Remove extra return.
10432 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
10433 hash STRING_FLAG only for arrays and integers.
10434 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
10435 Update analogously.
10436 * tree-streamer-out.c (pack_ts_type_common_value_fields):
10438 * print-tree.c (print_node): Print cxx-odr-p
10440 * tree.c (need_assembler_name_p): Also check that type
10442 (verify_type_variant): Update verification of SRING_FLAG;
10443 also check CXX_ODR_P.
10444 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
10445 (TYPE_STRING_FLAG): Use it.
10446 (TYPE_CXX_ODR_P): New macro.
10447 * dwarf2out.c (gen_array_type_die): First check that type
10448 is an array and then test string flag.
10450 2019-06-24 Richard Biener <rguenther@suse.de>
10452 PR tree-optimization/90972
10453 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
10454 in common code, dealing with STRING_CST properly.
10456 2019-06-24 Richard Biener <rguenther@suse.de>
10458 PR tree-optimization/90930
10459 PR tree-optimization/90316
10460 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
10461 decrement of limit.
10463 2019-06-24 Martin Sebor <msebor@redhat.com>
10465 * tree-pretty-print.h: Remove unnecessary punctuation characters
10467 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
10469 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
10471 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
10472 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
10473 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
10475 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
10477 * config/rs6000/darwin.h: Handle GCC target pragma.
10479 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
10481 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
10483 2019-06-22 Jeff Law <law@redhat.com>
10485 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10487 2019-06-22 Jan Hubicka <jh@suse.cz>
10489 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
10490 give up on bitfields; continue searching for different refs
10493 2019-06-21 Jakub Jelinek <jakub@redhat.com>
10495 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
10496 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
10497 containing the offset as possible simd lane access. Look through
10498 widening conversion. Move the
10499 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
10501 2019-06-21 Richard Biener <rguenther@suse.de>
10503 PR tree-optimization/90930
10504 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
10505 flag on new stmts to avoid re-processing them.
10507 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
10509 PR c++/90875 - added -Wswitch-outside-range option
10510 * doc/invoke.texi (Wswitch-outside-range): Document.
10512 2019-06-21 Jeff Law <law@redhat.com>
10514 PR tree-optimization/90949
10515 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
10516 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
10518 2019-06-21 Richard Biener <rguenther@suse.de>
10521 * dwarf2out.c (prune_unused_types_walk): Always consider
10522 function-local extern declarations as used.
10524 2019-06-21 Richard Biener <rguenther@suse.de>
10526 PR tree-optimization/90913
10527 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
10528 the scalar variant of if-conversion versioning.
10530 2019-06-21 Jakub Jelinek <jakub@redhat.com>
10532 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
10533 create another "omp scan inscan exclusive" array if
10534 !ctx->scan_inclusive.
10535 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
10536 (lower_omp_scan): Likewise.
10537 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
10538 2-bit bitfield for simd_lane_access_p member.
10539 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
10540 aux == (void *)-4 as simd lane access.
10541 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
10542 comment with permutations to show the canonical permutation order.
10543 (vectorizable_scan_store): Handle exclusive scan.
10544 (vectorizable_store): Call vectorizable_scan_store even for
10545 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
10547 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
10548 "omp simd array" arrays with one byte elements.
10550 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
10552 * config/alpha/alpha.md (@unaligned_store<mode>):
10553 Rename from unaligned_store<mode>.
10554 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
10555 * config/alpha/sync.md (@load_locked_<mode>): Rename
10556 from load_locked_<mode>.
10557 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
10558 (@atomic_compare_and_swap<mode>_1): Rename
10559 from atomic_compare_and_swap<mode>_1.
10560 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
10561 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
10562 Use gen_reload_in_aligned and gen_unaligned_store.
10563 (emit_load_locked): Remove.
10564 (emit_store_conditional): Ditto.
10565 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
10566 (alpha_split_compare_and_swap): Ditto.
10567 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
10568 (alpha_split_compare_and_swap_12): Use gen_load_locked
10569 and gen_store_conditional.
10570 (alpha_split_atomic_exchange): Ditto.
10571 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
10572 (alpha_split_atomic_exchange_12): Use gen_load_locked
10573 and gen_store_conditional.
10575 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
10577 * config/aarch64/aarch64-errata.h: New file.
10578 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
10579 (CA53_ERR_843419_SPEC): Delete.
10580 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
10581 * config/aarch64/aarch64-linux.h: Likewise.
10582 * config/aarch64/aarch64-netbsd.h: Likewise.
10583 * config/aarch64/aarch64-freebsd.h: Likewise.
10585 2019-06-20 Marek Polacek <polacek@redhat.com>
10587 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
10589 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
10591 * config/rs6000/rs6000.md (isa attribute): Add support for
10592 for a future processor.
10594 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
10597 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
10598 standard scalar operation pattern for V2DF.
10599 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
10600 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
10601 (*ieee_<ieee_maxmin><mode>3): Likewise.
10602 (vec_setv2df_0): Likewise.
10604 2019-06-20 Jan Hubicka <jh@suse.cz>
10606 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
10607 parameter; it has no use in gimple memory model.
10608 (indirect_ref_may_alias_decl_p): Update.
10610 2019-06-20 Martin Liska <mliska@suse.cz>
10612 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
10615 2019-06-20 Jakub Jelinek <jakub@redhat.com>
10617 * tree-vect-stmts.c (enum scan_store_kind): New type.
10618 (scan_store_can_perm_p): Change last argument from int * to
10619 vec<enum scan_store_kind> *, record precisely which permutations
10620 need whole vector left shift or that plus VEC_COND_EXPR.
10621 (vectorizable_scan_store): Adjust caller, use whole vector left shift
10622 and additional VEC_COND_EXPR only for those iterations that need it.
10624 2019-06-20 Alexandre Oliva <oliva@adacore.com>
10626 * config.gcc: Fix ARM --with-fpu checking and error message.
10628 2019-06-19 Marek Polacek <polacek@redhat.com>
10630 PR c++/60364 - noreturn after first decl not diagnosed.
10631 * attribs.c (get_attribute_namespace): No longer static.
10632 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
10634 (attr_noreturn_exclusions): Make it extern.
10635 * attribs.h (get_attribute_namespace): Declare.
10636 * tree-inline.c (function_attribute_inlinable_p): Use
10637 get_attribute_name.
10639 2019-06-19 Martin Sebor <msebor@redhat.com>
10641 PR tree-optimization/90626
10642 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
10644 PR tree-optimization/90626
10645 * tree-ssa-strlen.c (strxcmp_unequal): New function.
10646 (handle_builtin_string_cmp): Call it.
10648 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
10650 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
10651 and DARWIN_NOPIE_SPEC.
10652 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
10653 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
10654 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
10655 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
10656 (DARWIN_EXPORT_DYNAMIC): Delete.
10657 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
10658 and pie options processing to darwin.h.
10659 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
10661 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
10663 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
10664 in computing the number of options to be moved.
10666 2019-06-19 Maya Rashish <coypu@sdf.org>
10668 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
10669 (CLEAR_INSN_CACHE) Use it.
10671 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
10673 * config/i386/i386.md (cmpstrnsi): Remove dead code.
10675 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
10677 PR middle-end/84521
10678 * builtins.c (expand_builtin_setjmp_setup): Save
10679 hard_frame_pointer_rtx.
10680 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
10682 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
10684 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
10686 (remove_reg_equal_offset_note): Remove unused function.
10687 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
10689 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10690 (arc_builtin_setjmp_frame_value): Remove function.
10691 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10692 (avr_builtin_setjmp_frame_value): Remove function.
10693 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10694 (ix86_builtin_setjmp_frame_value): Remove function.
10695 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
10696 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10697 (sparc_builtin_setjmp_frame_value): Remove function.
10698 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
10699 (vax_builtin_setjmp_frame_value): Remove function.
10700 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
10701 pointer if has_nonlocal_label.
10703 2019-06-19 Jakub Jelinek <jakub@redhat.com>
10705 * doc/md.texi: Document vec_shl_<mode> pattern.
10706 * optabs.def (vec_shl_optab): New optab.
10707 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
10708 argument, if == vec_shl_optab, check for left whole vector shift
10709 pattern rather than right shift.
10710 (expand_vec_perm_const): Add vec_shl_optab support.
10711 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
10713 * tree-vect-generic.c (lower_vec_perm): Support permutations which
10714 can be handled by vec_shl_optab.
10715 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
10716 (check_scan_store): Use it.
10717 (vectorizable_scan_store): If target can't do normal permutations,
10718 try to use whole vector left shifts and if needed a VEC_COND_EXPR
10720 * config/i386/sse.md (vec_shl_<mode>): New expander.
10722 * omp-low.c (lower_rec_input_clauses): Handle references properly
10724 (lower_omp_scan): Likewise.
10726 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10728 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
10729 mem_mode is BLKmode.
10731 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
10734 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
10735 pointer adjustment for the case of no callee-saved registers and
10736 stack frame bigger than 128 bytes.
10738 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
10740 PR middle-end/90862
10741 * omp-low.c (check_omp_nesting_restrictions): Handle
10742 GF_OMP_TARGET_KIND_OACC_DECLARE.
10744 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
10746 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
10747 (@add<mode>3_carry): Rename from add<mode>3_carry.
10748 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
10749 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
10750 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
10751 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
10752 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
10753 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
10754 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
10755 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
10756 (cmpstrnsi): Use gen_cmp_1.
10757 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
10758 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
10759 (@umonitor_<mode>): Rename from umonitor_<mode>.
10760 * config/i386/i386-expand.c (ix86_expand_copysign):
10761 Use gen_copysign3_const and gen_copysign3_var.
10762 (ix86_expand_xorsign): Use gen_xorsign3_1.
10763 (ix86_expand_branch): Use gen_sub3_carry_ccc,
10764 gen_sub3_carry_ccgz and gen_cmp1.
10765 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
10766 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
10767 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
10768 (ix86_split_lshr): Ditto.
10769 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
10771 2019-06-18 Jason Merrill <jason@redhat.com>
10773 * tree.c (build_constructor): Add MEM_STAT_DECL.
10775 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10777 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
10778 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
10779 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
10780 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
10781 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
10782 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
10783 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
10784 Use CC_NZC instead of CC.
10785 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
10786 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
10787 (aarch64_print_operand): Handle E_CC_NZCmode.
10788 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
10789 of gen_set_clobber_cc.
10791 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10793 * config/aarch64/aarch64-sve.md: Tabify file.
10795 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10797 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
10798 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
10799 * config/aarch64/aarch64-sve.md: Use it.
10801 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10803 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
10804 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
10805 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
10806 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
10807 (aarch64_expand_sve_vec_cmp_int): Use it.
10808 (aarch64_expand_sve_vec_cmp_float): Likewise.
10809 * config/aarch64/aarch64-sve.md: Likewise throughout.
10811 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10812 Kugan Vivekanandarajah <kuganv@linaro.org>
10814 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
10815 (*cond_<optab><mode>_z): Fold into...
10816 (*cond_<optab><mode>_any): ...here. Also handle cases in which
10817 operand 4 can be tied to operand 0 (either inherently or via RA).
10819 2019-06-18 Richard Biener <rguenther@suse.de>
10822 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
10823 as if optimized away.
10825 2019-06-18 Tom de Vries <tdevries@suse.de>
10827 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
10828 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
10829 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
10831 (define_insn "@set_softstack_<mode>"): ... this.
10832 (define_insn "omp_simt_enter_<mode>"): Rename to ...
10833 (define_insn "@omp_simt_enter_<mode>"): ... this.
10834 (define_insn "omp_simt_exit_<mode>"): Rename to ...
10835 (define_insn "@omp_simt_exit_<mode>"): ... this.
10837 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10839 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
10840 vf parameter. Restore the previous iv step of nscalars_step,
10841 but give it iv_type rather than compare_type. Tweak code order
10842 to match the comments.
10843 (vect_set_loop_condition_masked): Update accordingly.
10844 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
10845 for iv_precision. Tweak comment formatting.
10847 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
10849 * config/darwin.c: Strip trailing whitespace.
10851 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
10853 * config/darwin.c (darwin_emit_unwind_label): New default to false.
10854 (darwin_override_options): Set darwin_emit_unwind_label as needed.
10856 2019-06-18 Martin Jambor <mjambor@suse.cz>
10859 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
10860 caller does not have flag_ipa_cp set.
10862 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10864 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
10865 from "*fold_left_plus_<mode>", updated operands order.
10866 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
10867 * internal-fn.c (mask_fold_left_direct): New define.
10868 (expand_mask_fold_left_optab_fn): Likewise.
10869 (direct_mask_fold_left_optab_supported_p): Likewise.
10870 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
10871 * optabs.def (mask_fold_left_plus_optab): New optab.
10872 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
10873 masked internal_fn for a reduction ifn.
10874 (vectorize_fold_left_reduction): Add support for masking reductions.
10876 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
10878 PR middle-end/80791
10879 * target.def (predict_doloop_p): New hook.
10880 * targhooks.h (default_predict_doloop_p): New declaration.
10881 * targhooks.c (default_predict_doloop_p): New function.
10882 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
10883 * doc/tm.texi: Regenerate.
10884 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
10885 (TARGET_PREDICT_DOLOOP_P): New macro.
10886 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
10888 2019-06-17 Jakub Jelinek <jakub@redhat.com>
10890 * omp-low.c (struct omp_context): Add scan_inclusive field.
10891 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
10893 (struct omplow_simd_context): Add lastlane member.
10894 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
10895 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
10897 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
10898 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
10899 (lower_omp_scan): New function.
10900 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
10901 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
10902 check 3rd argument if present rather than 2nd.
10903 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
10904 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
10906 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
10907 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
10909 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
10910 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
10911 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
10913 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
10914 IFN_GOMP_SIMD_LANE argument.
10915 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
10916 encoded ->aux value.
10917 * tree-vect-stmts.c: Include attribs.h.
10918 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
10919 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
10921 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
10922 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
10924 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
10927 * config/i386/i386.md (*nabstf2_1): New insn pattern.
10928 (*nabs<mode>2_1): Ditto.
10929 (nabs sse-reg splitter): New splitter.
10930 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
10932 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
10934 PR bootstrap/90873.
10935 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
10938 2019-06-17 Tom de Vries <tdevries@suse.de>
10940 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
10941 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
10942 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
10944 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
10946 (define_insn "omp_simt_enter_insn"): Rename to ...
10947 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
10948 match_operand 0, 1 and 2, as well as the unspec_volatile result.
10949 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
10950 gen_omp_simt_enter_si.
10951 (define_expand "omp_simt_exit"): New.
10952 (define_insn "omp_simt_exit"): Rename to ...
10953 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
10956 2019-06-17 Matthew Green <mrg@eterna.com.au>
10957 Maya Rashish <coypu@sdf.org>
10959 * config.gcc (aarch64*-*-netbsd*): New target.
10960 * config/aarch64/aarch64-netbsd.h: New file.
10961 * config/aarch64/t-aarch64-netbsd: Likewise.
10963 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
10965 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
10966 the access path from base to first VIEW_CONVERT_EXPR or
10969 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
10971 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
10972 access path on BIT_FIELD_REFs.
10974 2019-06-17 Martin Liska <mliska@suse.cz>
10977 * ipa-utils.h (odr_type_p): Remove dead code.
10979 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10981 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
10982 alternative Solaris 11.4 format.
10983 * configure: Regenerate.
10985 2019-06-17 Tom de Vries <tdevries@suse.de>
10987 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
10988 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
10990 (define_insn "call_value_insn"): Rename to ...
10991 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
10993 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
10996 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
10998 PR middle-end/64242
10999 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
11000 frame clobbers and schedule block.
11001 (builtin_longjmp): Likewise.
11003 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11005 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
11006 describe how to perform MSPABI compliant 64-bit shift.
11007 * config/msp430/msp430.md (ashldi3): New define_expand.
11008 (ashrdi3): New define_expand.
11009 (lshrdi3): New define_expand.
11011 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11013 * doc/sourcebuild.texi: Document new effective target keyword
11016 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
11018 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
11019 indirect_refs_may_alias_p): Revert accidental commits.
11021 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
11022 at the end of structures.
11024 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
11026 * config/darwin.c (machopic_indirect_call_target): Use renamed
11027 darwin_picsymbol_stubs to decide on output.
11028 (darwin_override_options): Handle darwin_picsymbol_stubs.
11029 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
11030 (LD64_VERSION): Revise default.
11031 * config/darwin.opt: (mpic-symbol-stubs): New option.
11032 (darwin_picsymbol_stubs): New variable.
11033 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
11034 rename to TARGET_MACHO_PICSYM_STUBS.
11035 * config/i386/i386.c (output_pic_addr_const): Likewise.
11036 * config/i386/i386.h Likewise.
11037 * config/rs6000/darwin.h: Likewise.
11038 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
11039 darwin_picsymbol_stubs.
11041 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
11043 * config/darwin.opt (prebind, noprebind, seglinkedit,
11044 noseglinkedit): Add RejectNegative.
11046 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
11048 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
11049 in my previous patch.
11051 2019-06-16 Tom de Vries <tdevries@suse.de>
11053 PR tree-optimization/89376
11054 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
11056 2019-06-15 Maya Rashish <coypu@sdf.org>
11058 * doc/invoke.texi (Spec Files): Update location of the
11061 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
11063 * doc/extend.texi (Common Function Attributes): Clarify
11064 no_sanitize. Fix grammar.
11066 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
11068 * tree-ssa-alias.c (alias_stats): Add
11069 nonoverlapping_component_refs_p_may_alias,
11070 nonoverlapping_component_refs_p_no_alias,
11071 nonoverlapping_component_refs_of_decl_p_may_alias,
11072 nonoverlapping_component_refs_of_decl_p_no_alias.
11073 (dump_alias_stats): Dump them.
11074 (nonoverlapping_component_refs_of_decl_p): Add stats.
11075 (nonoverlapping_component_refs_p): Add stats; do not stop on first
11078 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
11080 * config/i386/i386.md (and<mode>3): Generate zero-extends for
11081 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
11083 (*anddi3_doubleword): Split before reload. Merge with
11084 anddi->zext pre-reload splitter.
11085 (*andndi3_doubleword): Split before reload.
11086 (*<code>di3_doubleword): Ditto.
11087 (*one_cmpldi2_doubleword): Ditto.
11089 2019-06-15 Jakub Jelinek <jakub@redhat.com>
11091 PR middle-end/90779
11092 * gimplify.c: Include omp-offload.h and context.h.
11093 (gimplify_bind_expr): Add "omp declare target" attributes
11094 to static block scope variables inside of target region or target
11097 2019-06-15 Tom de Vries <tdevries@suse.de>
11099 PR tree-optimization/90009
11100 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
11101 Return NULL if bb contains IFN_UNIQUE.
11103 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
11105 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
11106 (un): New define_mode_attr.
11107 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
11108 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
11109 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
11111 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
11113 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
11115 * config/darwin.opt: Add RejectNegative where needed, reorder
11116 and add minimal functional descriptions.
11118 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
11120 PR rtl-optimization/90765
11121 * calls.c (update_stack_alignment_for_call): New function.
11122 (expand_call): Call update_stack_alignment_for_call when
11123 outgoing parameter is passed in the stack.
11124 (emit_library_call_value_1): Likewise.
11125 * function.c (locate_and_pad_parm): Don't update
11126 stack_alignment_needed and preferred_stack_boundary.
11128 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
11131 * config/i386/i386-features.c
11132 (dimode_scalar_chain::compute_convert_gain): Replace
11133 mmxsse_to_integer with sse_to_integer.
11134 * config/i386/i386.c (ix86_register_move_cost): Verify that
11135 moves between MMX and non-MMX units require secondary memory.
11136 Correct costs of moves between SSE and integer units.
11137 * config/i386/i386.h (processor_costs): Rename cost of moving
11138 SSE register to integer to sse_to_integer. Rename cost of
11140 2019-06-14 Matt Thomas <matt@3am-software.com>
11141 Matthew Green <mrg@eterna.com.au>
11142 Nick Hudson <skrll@netbsd.org>
11143 Maya Rashish <coypu@sdf.org>
11144 Richard Earnshaw <rearnsha@arm.com>
11146 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
11147 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
11148 * config/arm/netbsd-eabi.h: New file.
11149 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
11151 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
11152 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
11153 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
11154 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
11156 2019-06-14 Richard Biener <rguenther@suse.de>
11158 * tree-loop-distribution.c (classify_partition): Return
11159 whether a reduction appeared in all partitions and do not
11160 stop builtin detection because of this.
11161 (distribute_loop): Sort a non-builtin partition last if
11162 there's a reduction in all partitions and make sure the
11163 partition prevailing as last is not a builtin.
11165 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
11168 * ipa-prop.c (add_to_agg_contents_list): New function.
11169 (clobber_by_agg_contents_list_p): Likewise.
11170 (extract_mem_content): Likewise.
11171 (get_place_in_agg_contents_list): Delete.
11172 (determine_known_aggregate_parts): Renamed from
11173 determine_locally_known_aggregate_parts. New parameter
11176 2019-06-13 Martin Sebor <msebor@redhat.com>
11178 PR tree-optimization/90662
11179 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
11182 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
11185 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
11186 dbase is not TARGET_MEM_REF.
11188 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
11190 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
11192 (and<mode>3): Use gen_extend_insn instead of indirect functions.
11193 Do not generate DImode extends for 32bit targets.
11194 (and->zext post-reload splitter): Use gen_extend_insn
11195 instead of indirect functions.
11196 (anddi->zext pre-reload splitter): New.
11197 (*zext<mode>_doubleword_and): Remove.
11198 (*zext<mode>_doubleword): Ditto.
11199 (*zextsi_doubleword): Dittto.
11201 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
11203 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
11204 Use gen_sub3_insn instead of indirect function.
11205 (ix86_expand_ashl_const): Use gen_add2_insn instead of
11207 (ix86_adjust_counter): Ditto.
11209 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
11210 Lijia He <helijia@linux.ibm.com>
11212 PR tree-optimization/77820
11213 * tree-ssa-threadedge.c
11214 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
11216 (thread_across_edge): Add call to
11217 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
11219 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
11221 * config/darwin-driver.c (validate_macosx_version_min): New.
11222 (darwin_default_min_version): Cleanup and validate supplied version.
11223 (darwin_driver_init): Likewise and push cleaned version into opts.
11225 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
11227 PR tree-optimization/90869
11228 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
11229 converts in MEM_REF referencing decl rather than view converts
11230 from decl type to MEM_REF type.
11232 2019-06-13 Richard Biener <rguenther@suse.de>
11234 PR tree-optimization/90856
11235 * tree-sra.c (build_ref_for_model): Only use
11236 build_reconstructed_reference when address-spaces are the same.
11238 2019-06-13 Jakub Jelinek <jakub@redhat.com>
11240 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
11241 wrap ei variable name in the declaration in ()s.
11242 (nvptx_single): Actually use mode_label variable. Formatting fix.
11244 2019-06-13 Richard Biener <rguenther@suse.de>
11246 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
11247 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
11248 also return the condition stmt.
11249 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
11250 loop we can version and version that, reusing the loop version
11251 created by if-conversion instead of versioning again.
11253 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
11255 * gimple-loop-versioning.cc (prune_loop_conditions): Use
11257 * tree-vrp (value_range_base::may_contain_p): Call into
11258 value_inside_range.
11259 (value_inside_range): Make private inside value_range_base class.
11260 Take min/max from *this.
11261 (range_includes_p): Remove.
11262 * tree-vrp.h (value_range_base): Add value_inside_range.
11263 (range_includes_p): Remove.
11264 (range_includes_zero_p): Call may_contain_p.
11265 * vr-values.c (compare_range_with_value): Same.
11267 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
11269 * doc/extend.texi (ARC Function Attributes): Update info.
11271 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
11273 PR tree-optimization/89713
11274 * doc/invoke.texi (-ffinite-loops): Document new option.
11275 * common.opt (-ffinite-loops): New option.
11276 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
11277 IFN_GOACC_LOOP calls as necessary.
11278 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
11280 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
11281 IFN_GOACC_LOOP call is not used.
11282 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
11284 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
11287 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
11288 compare_type is not with Pmode size, we will create an IV with
11289 Pmode size with truncated use (i.e. converted to the correct type).
11290 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
11291 (vect_iv_limit_for_full_masking): New. Factored out of
11292 vect_set_loop_condition_masked.
11293 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
11294 (vect_iv_limit_for_full_masking): Declare.
11296 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
11299 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
11300 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
11301 (get_alias_ptr_type_for_ptr_address): Likewise.
11302 (add_iv_candidate_for_use): Add scaled index candidate if useful.
11303 * tree-ssa-address.c (preferred_mem_scale_factor): New.
11304 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
11307 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
11309 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
11311 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
11313 * common/config/pru/pru-common.c: New file.
11314 * config.gcc: Add PRU target.
11315 * config/pru/alu-zext.md: New file.
11316 * config/pru/constraints.md: New file.
11317 * config/pru/predicates.md: New file.
11318 * config/pru/pru-opts.h: New file.
11319 * config/pru/pru-passes.c: New file.
11320 * config/pru/pru-pragma.c: New file.
11321 * config/pru/pru-protos.h: New file.
11322 * config/pru/pru.c: New file.
11323 * config/pru/pru.h: New file.
11324 * config/pru/pru.md: New file.
11325 * config/pru/pru.opt: New file.
11326 * config/pru/t-pru: New file.
11327 * doc/extend.texi: Document PRU pragmas.
11328 * doc/invoke.texi: Document PRU-specific options.
11329 * doc/md.texi: Document PRU asm constraints.
11331 2019-06-12 Martin Sebor <msebor@redhat.com>
11333 PR middle-end/90676
11334 * tree-pretty-print.c (dump_mem_ref): New function. Include
11335 MEM_REF type in output when different size than operand.
11336 (dump_generic_node): Move code to dump_mem_ref and call it.
11338 2019-06-12 Martin Sebor <msebor@redhat.com>
11340 PR tree-optimization/90662
11341 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
11344 2019-06-12 Tom de Vries <tdevries@suse.de>
11346 PR tree-optimization/90009
11347 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
11349 2019-06-12 Martin Liska <mliska@suse.cz>
11351 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
11353 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
11354 * mem-stats.h (mem_alloc_description::mem_alloc_description):
11355 Do not sanitize created maps.
11357 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
11359 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
11360 value_range::singleton_p.
11361 * tree-vrp.c (value_range_constant_singleton): Remove.
11362 * tree-vrp.h (value_range_constant_singleton): Remove.
11363 * vr-values.c (vr_values::singleton): Use
11364 value_range::singleton_p.
11366 2019-06-12 Jakub Jelinek <jakub@redhat.com>
11369 * cfgexpand.c (align_local_variable): Add really_expand argument,
11370 don't SET_DECL_ALIGN if it is false.
11371 (add_stack_var): Add really_expand argument, pass it through to
11372 align_local_variable.
11373 (expand_one_stack_var_1): Pass true as really_expand to
11374 align_local_variable.
11375 (expand_one_ssa_partition): Pass true as really_expand to
11377 (expand_one_var): Pass really_expand through to add_stack_var.
11379 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
11381 * config/arm/iterators.md (VABAL): New int iterator.
11382 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
11383 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
11384 UNSPEC_VABAL_U values.
11386 2019-06-12 Martin Liska <mliska@suse.cz>
11388 * value-prof.c (stream_out_histogram_value): Only first value
11391 2019-06-12 Jakub Jelinek <jakub@redhat.com>
11394 * symtab.c (symtab_node::set_section): Allow being called on aliases
11395 as long as they aren't analyzed yet.
11397 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
11399 * config/mips/mips.c (mips_final_postscan_insn): Modify call
11400 to `mips_set_text_contents_type' to indicate whether a
11401 non-debug insn follows.
11403 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
11405 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
11406 enabling -mpcrel by default.
11407 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
11408 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
11409 that the test against -mcpu=future is done first. Then test if
11410 -mprefixed-addr is on for -mpcrel.
11411 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
11413 2019-06-11 Jakub Jelinek <jakub@redhat.com>
11416 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
11417 instead of and.u%d.
11419 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
11421 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
11423 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
11425 PR c++/90449 - add -Winaccessible-base option.
11426 * doc/invoke.texi (Winaccessible-base): Document.
11428 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
11430 PR tree-optimization/62041
11431 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
11433 2019-06-11 Jason Merrill <jason@redhat.com>
11435 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
11436 * tree.c (get_tree_code_name): Likewise.
11437 * print-tree.c (print_node): Only briefly print a node with an
11440 2019-06-11 Jakub Jelinek <jakub@redhat.com>
11443 * trans-mem.c (tm_memopt_compute_available): Add assertion
11444 that blocks is not empty. Formatting fix.
11446 2019-06-11 Martin Liska <mliska@suse.cz>
11449 * hash-table.h: Extend create_gcc, add one parameter
11450 that is passed into hash_table::hash_table.
11452 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
11454 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
11456 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
11457 Emit clobber also for non-sse operations.
11458 (ix86_split_fp_absneg_operator): New function.
11459 * config/i386/i386.md (SSEMODEF): New mode iterator.
11460 (ssevecmodef): New mode attribute.
11461 (<code>tf2): Use absneg code iterator.
11462 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
11463 Add three-operand AVX alternatives.
11464 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
11465 Use absneg code iterator and X87MODEF mode iterator.
11466 (absneg fp_reg non-sse splitter): Call absneg code iterator
11467 and X87MODEF mode iterator.
11468 (absneg general_reg non-sse splitter): Use absneg code iterator
11469 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
11470 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
11471 code iterator. Add three-operand AVX alternative.
11472 (absneg sse_reg splitter): Use absneg code iterator
11473 and SSEMODEF mode iterator. Handle AVX operands.
11474 (absneg fp_reg splitter): Use absneg code iterator
11475 and MODEF mode iterator.
11476 (absneg general_reg splitter): Merge splitters using MODEF mode
11477 iterator. Use absneg code iterator. Call
11478 ix86_split_fp_absneg_operator.
11479 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
11480 Do not enable for non-sse modes before reload.
11481 (CSGNMODE): Remove.
11482 (CSGNVMODE): Ditto.
11483 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
11484 ssevecmodef mode attribute instaed of CSGNVMODE.
11485 (copysign<mode>3_const): Ditto.
11486 (copysign<mode>3_var): Ditto.
11487 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
11488 Use absneg code iterator. Simplify code using std::swap.
11489 * config/i386/predicates.md (absneg_operator): Remove.
11491 2019-06-10 Martin Sebor <msebor@redhat.com>
11493 * gimple-fold.c (get_range_strlen): Update comment that didn't
11494 make it into r267503 or related commits.
11496 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
11498 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
11499 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
11501 2019-06-10 Jakub Jelinek <jakub@redhat.com>
11503 * tree.def (OMP_SCAN): New tree code.
11504 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
11505 OMP_CLAUSE_EXCLUSIVE.
11506 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
11507 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
11508 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
11509 OMP_CLAUSE_{IN,EX}CLUSIVE.
11510 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
11511 * tree-nested.c (convert_nonlocal_reference_stmt,
11512 convert_local_reference_stmt, convert_gimple_call): Handle
11514 * tree-pretty-print.c (dump_omp_clause): Handle
11515 OMP_CLAUSE_{IN,EX}CLUSIVE.
11516 (dump_generic_node): Handle OMP_SCAN.
11517 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
11518 * gimple.h (gomp_scan): New type.
11519 (is_a_helper <gomp_scan *>::test,
11520 is_a_helper <const gomp_scan *>::test): New templates.
11521 (gimple_build_omp_scan): Declare.
11522 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
11523 gimple_omp_scan_set_clauses): New inline functions.
11524 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
11525 * gimple.c (gimple_build_omp_scan): New function.
11526 (gimple_copy): Handle GIMPLE_OMP_SCAN.
11527 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
11528 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
11529 GIMPLE_OMP_TASKGROUP.
11530 (dump_gimple_omp_scan): New function.
11531 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
11532 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
11533 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
11534 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
11535 (is_gimple_stmt): Handle OMP_SCAN.
11536 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
11537 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
11538 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
11539 mentioned in nested #pragma omp scan. Handle
11540 OMP_CLAUSE_{IN,EX}CLUSIVE.
11541 (gimplify_expr): Handle OMP_SCAN.
11542 * omp-low.c (check_omp_nesting_restrictions): For parent context,
11543 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
11545 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
11548 2019-06-10 Martin Liska <mliska@suse.cz>
11550 * ipa-cp.c (ignore_edge_p): New function.
11551 (build_toporder_info): Use it.
11552 * ipa-inline.c (ignore_edge_p): New function.
11553 (inline_small_functions): Use it.
11554 * ipa-pure-const.c (ignore_edge_for_nothrow):
11555 Verify opt_for_fn for caller and callee.
11556 (ignore_edge_for_pure_const): Likewise.
11557 * ipa-reference.c (ignore_edge_p): Extend to check
11559 * ipa-utils.c (searchc): Refactor.
11560 * ipa-utils.h: Fix coding style.
11562 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
11564 * config/arc/arc.c (arc_rtx_costs): Update costs.
11566 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
11568 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
11569 (arc_split_ior): Likewise.
11570 (arc_check_mov_const): Likewise.
11571 (arc_split_mov_const): Likewise.
11572 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
11573 (arc_rtx_costs): Replace check Crr with Cax constraint.
11574 (prepare_move_operands): Cleanup, remove unused code.
11575 (arc_split_ior): New function.
11576 (arc_check_ior_const): Likewise.
11577 (arc_split_mov_const): Likewise.
11578 (arc_check_mov_const): Likewise.
11579 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
11580 in define_insn_and_split pattern.
11581 (iorsi3): Likewise.
11582 (mulsi3_v2): Add new matching variant.
11583 (andsi3_i): Cleanup pattern.
11584 (rotrsi3_cnt1): Update pattern.
11585 (rotrsi3_cnt8): New pattern.
11586 (ashlsi2_cnt8): Likewise.
11587 (ashlsi2_cnt16): Likewise.
11588 * config/arc/constraints.md (C0p): Update constraint.
11590 (C0x): New pattern.
11591 (Cax): New pattern.
11593 2019-06-10 Martin Liska <mliska@suse.cz>
11595 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
11596 Update coding style.
11597 (sem_item_optimizer::dump_cong_classes):
11598 Print how many items are in a non-singular class. Improve
11601 2019-06-10 Martin Liska <mliska@suse.cz>
11603 * value-prof.c (dump_histogram_value): Change dump format.
11604 (gimple_mod_subtract_transform): Remove legacy comment.
11606 2019-06-10 Martin Liska <mliska@suse.cz>
11608 * value-prof.c (dump_histogram_value): Print histogram values
11611 2019-06-10 Martin Liska <mliska@suse.cz>
11613 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
11614 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
11615 * ipa-profile.c (ipa_profile_generate_summary):
11616 Use get_most_common_single_value.
11617 * tree-profile.c (gimple_init_gcov_profiler):
11618 Instrument with __gcov_one_value_profiler_v2
11619 and __gcov_indirect_call_profiler_v4.
11620 * value-prof.c (dump_histogram_value):
11621 Print all values for HIST_TYPE_SINGLE_VALUE.
11622 (stream_out_histogram_value): Update assert for
11624 (stream_in_histogram_value): Set number of
11625 counters for HIST_TYPE_SINGLE_VALUE.
11626 (get_most_common_single_value): New.
11627 (gimple_divmod_fixed_value_transform):
11628 Use get_most_common_single_value.
11629 (gimple_ic_transform): Likewise.
11630 (gimple_stringops_transform): Likewise.
11631 (gimple_find_values_to_profile): Set number
11632 of counters for HIST_TYPE_SINGLE_VALUE.
11633 * value-prof.h (get_most_common_single_value): New.
11635 2019-06-10 Martin Liska <mliska@suse.cz>
11637 * hash-map.h: Pass default value to hash_table ctor.
11638 * hash-table.h: Add default value to call of a ctor.
11640 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
11642 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
11643 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
11645 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
11648 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
11649 Call pa_output_function_label.
11650 (TARGET_ASM_FUNCTION_PROLOGUE): define.
11651 * config/pa/pa-protos.h (pa_output_function_label): Declare.
11652 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
11654 (pa_linux_output_function_prologue): Declare.
11655 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
11656 (pa_output_function_label): New.
11657 (pa_output_function_prologue): Revise to use pa_output_function_label.
11658 (pa_linux_output_function_prologue): New.
11659 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
11661 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
11663 * tree-vrp.h (value_range_base::intersect): New.
11664 (value_range::intersect_helper): Move from here...
11665 (value_range_base::intersect_helper): ...to here.
11666 * tree-vrp.c (value_range::intersect_helper): Rename to...
11667 (value_range_base::intersect_helper): ...this, and rewrite to
11668 return a value instead of modifying THIS in place.
11669 Also, move equivalence handling...
11670 (value_range::intersect): ...here, while calling intersect_helper.
11671 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
11673 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
11675 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
11677 2019-06-07 Jakub Jelinek <jakub@redhat.com>
11679 * Makefile.in (genprogerr): Add condmd.
11680 (genprog): Remove it here.
11682 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
11684 * doc/invoke.texi (AMD GCN Options): Add gfx906.
11686 2019-06-07 Richard Biener <rguenther@suse.de>
11689 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
11690 that appear after user labels.
11692 2019-06-07 Martin Liska <mliska@suse.cz>
11694 * cselib.c (cselib_init): Disable hash table
11696 * hash-set.h: Pass new default argument to m_table.
11697 * hash-table.c: Add global variable with hash table
11698 sanitization limit.
11699 * hash-table.h (Allocator>::hash_table): Add new argument
11701 (hashtab_chk_error): New.
11702 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
11703 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
11704 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
11706 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
11708 * common.opt (flto-odr-type-merging): Ignore.
11709 * invoke.texi (-flto-odr-type-merging): Remove.
11710 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
11711 (can_be_vtable_hashed_p): Remove.
11712 (hash_odr_vtable): Remove.
11713 (odr_vtable_hasher::hash): Remove.
11714 (types_same_for_odr): Remove.
11715 (types_odr_comparable): Remove.
11716 (odr_vtable_hasher::equal): Remove.
11717 (odr_vtable_hash_type, odr_vtable_hash): Remove.
11718 (add_type_duplicate): Do not synchronize vtable and name hashtables.
11719 (get_odr_type): Do not use vtable hash.
11720 (dump_odr_type): Remove commented out code.
11721 (build_type_inheritance_graph): Do not allocate vtable hash.
11722 (rebuild_type_inheritance_graph): Do not delete vtable hash.
11723 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
11724 (odr_type_p): Likewise.
11725 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
11728 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
11730 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
11731 immediately after same_types_for_tbaa_p returns -1 and continue
11732 looking for possible exact match; if matching types are arrays
11733 watch for partial overlaps.
11734 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
11735 (indirect_refs_may_alias_p): Do type based disambiguation first;
11738 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
11740 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
11742 2019-06-07 Martin Liska <mliska@suse.cz>
11744 * doc/invoke.texi: Remove param.
11745 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
11747 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
11748 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
11749 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
11750 * profile.c (instrument_values): Remove
11751 HIST_TYPE_INDIR_CALL_TOPN.
11752 * tree-profile.c (init_ic_make_global_vars):
11753 Always build __gcov_indirect_call only.
11754 (gimple_init_gcov_profiler): Remove usage
11755 of PARAM_INDIR_CALL_TOPN_PROFILE.
11756 (gimple_gen_ic_profiler): Likewise.
11757 * value-prof.c (dump_histogram_value): Likewise.
11758 (stream_in_histogram_value): Likewise.
11759 (gimple_indirect_call_to_profile): Likewise.
11760 (gimple_find_values_to_profile): Likewise.
11761 * value-prof.h (enum hist_type): Likewise.
11763 2019-06-07 Martin Liska <mliska@suse.cz>
11765 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
11768 2019-06-07 Martin Liska <mliska@suse.cz>
11770 PR tree-optimization/78902
11771 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
11772 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
11773 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
11774 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
11775 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
11776 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
11777 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
11778 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
11779 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
11780 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
11781 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
11782 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
11783 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
11785 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
11786 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
11787 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
11788 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
11789 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
11790 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
11791 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
11792 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
11793 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
11794 warn_unused_result attribute.
11795 (BUILT_IN_STRDUP): Likewise.
11796 (BUILT_IN_STRNDUP): Likewise.
11797 (BUILT_IN_ALLOCA): Likewise.
11798 (BUILT_IN_CALLOC): Likewise.
11799 (BUILT_IN_MALLOC): Likewise.
11800 (BUILT_IN_REALLOC): Likewise.
11802 2019-06-06 Jim Wilson <jimw@sifive.com>
11805 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
11806 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
11807 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
11809 2019-06-06 Martin Sebor <msebor@redhat.com>
11811 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
11812 (handle_builtin_malloc): Remove trailing spaces.
11813 (handle_builtin_memset): Same.
11814 (handle_builtin_memcmp): Same.
11815 (compute_string_length): Same.
11816 (determine_min_objsize): Same.
11817 (handle_builtin_string_cmp): Same.
11818 (handle_char_store): Same. Break up excessively long line.
11820 2019-06-06 Martin Jambor <mjambor@suse.cz>
11822 * tree-sra.c (build_reconstructed_reference): Drop the alignment
11825 2019-06-06 Martin Jambor <mjambor@suse.cz>
11827 * tree-sra.c (struct access): New field grp_same_access_path.
11828 (dump_access): Dump it.
11829 (build_reconstructed_reference): New function.
11830 (build_ref_for_model): Use it if possible.
11831 (path_comparable_for_same_access): New function.
11832 (same_access_path_p): Likewise.
11833 (sort_and_splice_var_accesses): Set the new flag.
11834 (analyze_access_subtree): Likewise.
11835 (propagate_subaccesses_across_link): Propagate zero value of the new
11836 flag down the access tree.
11838 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
11840 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
11841 * config/gcn/gcn.opt (gpu_type): Add gfx906.
11842 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
11843 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
11846 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11848 PR tree-optimization/90332
11849 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
11850 Handle VALS containing two vectors.
11851 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
11853 (@aarch64_combinez<mode>): ... This.
11854 (*aarch64_combinez_be<mode>): Rename to...
11855 (@aarch64_combinez_be<mode>): ... This.
11856 (vec_init<mode><Vhalf>): New define_expand.
11857 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
11859 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11861 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
11862 library functions only when not optimizing for size.
11863 (ashlsi3): Likewise.
11864 (ashrhi3): Likewise.
11865 (ashrsi3): Likewise.
11866 (lshrhi3): Likewise.
11867 (lshrsi3): Likewise.
11869 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
11871 PR rtl-optimization/88751
11872 * ira.c (ira): Use the number of the actually referenced registers
11873 when calculating the threshold.
11875 2019-06-06 Jakub Jelinek <jakub@redhat.com>
11877 * configure: Regenerate.
11879 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11881 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
11882 register if it is in memory, so the shift can be emulated with a rotate
11884 (ashrhi3): Likewise.
11885 (lshrhi3): Likewise.
11887 2019-06-06 Martin Liska <mliska@suse.cz>
11889 PR tree-optimization/87954
11890 * match.pd: Simplify mult where both arguments are 0 or 1.
11892 2019-06-06 Richard Biener <rguenther@suse.de>
11894 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
11895 put equivalences on UNDEFINED ranges.
11896 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
11897 Make sure to drop defs of stmts added during simplification
11900 2019-06-06 Richard Biener <rguenther@suse.de>
11902 * tree-ssa-structalias.c: Include tree-cfg.h.
11903 (make_heapvar): Do not make heap vars artificial.
11904 (find_func_aliases_for_builtin_call): Handle stack allocation
11906 (find_func_aliases): Delay processing of simple enough returns
11908 (set_uids_in_ptset): Adjust.
11909 (find_what_var_points_to): Likewise.
11910 (solve_constraints): Do not dump points-to sets here.
11911 (compute_points_to_sets): Post-process return statements,
11912 amending the escaped solution. Dump points-to sets afterwards.
11913 (ipa_pta_execute): Dump points-to sets.
11915 2019-06-06 Martin Liska <mliska@suse.cz>
11918 * doc/install.texi: Fix HTML headers and
11919 titles for 'Installing GCC' pages.
11921 2019-06-06 Martin Liska <mliska@suse.cz>
11923 * ipa-icf-gimple.h (dump_message_1): Remove.
11924 (dump_message): Likewise.
11925 (return_false_with_message_1): Print also file.
11926 (return_false_with_msg): Likewise.
11927 (return_with_result): Likewise.
11928 (return_with_debug): Likewise.
11929 * ipa-icf.c (sem_function::equals_private): Remove call
11932 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
11934 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
11935 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
11936 memory operand for it.
11937 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
11939 2019-06-05 Martin Sebor <msebor@redhat.com>
11941 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
11942 Adjust quoting and hyphenation.
11943 * convert.c (convert_to_real_1): Same.
11944 * gcc.c (driver_wrong_lang_callback): Same.
11945 (driver::handle_unrecognized_options): Same.
11946 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
11947 * opts-common.c (cmdline_handle_error): Same.
11948 (read_cmdline_option): Same.
11949 * opts-global.c (complain_wrong_lang): Same.
11950 (print_ignored_options): Same.
11951 (handle_common_deferred_options): Same.
11952 * pretty-print.h: Same.
11953 * print-rtl.c (debug_bb_n_slim): Same.
11954 * sched-rgn.c (make_pass_sched_fusion): Same.
11955 * tree-cfg.c (verify_gimple_assign_unary): Same.
11956 (verify_gimple_label): Same.
11957 * tree-ssa-operands.c (verify_ssa_operands): Same.
11958 * varasm.c (do_assemble_alias): Same.
11959 (assemble_alias): Same.
11961 2019-06-05 Richard Henderson <rth@twiddle.net>
11963 * config/alpha/alpha.c (direct_return): Move down after
11964 struct machine_function definition; use saved frame_size;
11966 (struct machine_function): Add sa_mask, sa_size, frame_size.
11967 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
11968 (alpha_compute_frame_layout): ... new function.
11969 (TARGET_COMPUTE_FRAME_LAYOUT): New.
11970 (alpha_initial_elimination_offset): Use saved sa_size.
11971 (alpha_vms_initial_elimination_offset): Likewise.
11972 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
11973 (alpha_expand_prologue): Use saved frame data. Merge integer
11974 and fp register save loops.
11975 (alpha_expand_epilogue): Likewise.
11976 (alpha_start_function): Use saved frame data.
11977 * config/alpha/alpha-protos.h (direct_return): Update.
11978 (alpha_sa_size): Remove.
11980 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
11982 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
11983 multiplication by a power-of-two value.
11984 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
11985 and turn the modulo operation into a masking operation.
11987 2019-06-05 Jakub Jelinek <jakub@redhat.com>
11990 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
11991 with VOIDmode inner operands.
11993 2019-06-05 Richard Biener <rguenther@suse.de>
11995 PR middle-end/90726
11996 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11997 turn an expression graph into a tree.
11999 2019-06-05 Jakub Jelinek <jakub@redhat.com>
12001 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
12003 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
12004 treat it like explicit monotonic schedule modifier.
12005 (expand_omp_for): Initialize has_lastprivate_conditional.
12006 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
12009 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
12010 references, lookup in in hash map MEM_REF operand instead of the
12012 (lower_omp_1): When looking for lastprivate conditional assignments,
12013 handle MEM_REFs with REFERENCE_TYPE operands.
12015 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
12016 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
12017 and references a VLA. Handle references to non-VLAs if is_simd
12018 all privatization clauses like reductions.
12019 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
12020 If omp_is_reference, use always omp simd arrays and set
12021 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
12022 fails, emit reference initialization.
12024 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
12027 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
12028 _mm_mask_fpclass_sd_mask): New intrinsics.
12029 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
12030 * config/i386/i386-builtin.def
12031 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
12033 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
12034 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
12035 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
12036 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
12037 case QI_FTYPE_V2SF_INT): Ditto.
12038 * config/i386/sse.md
12039 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
12040 Extended to insnstructions with mask operands.
12042 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12044 * config/rs6000/constraints.md (define_register_constraint "wp"):
12046 (define_register_constraint "wq"): Delete.
12047 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12048 (rs6000_init_hard_regno_mode_ok): Adjust.
12049 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12050 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
12051 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
12052 (define_mode_attr VSa): Delete.
12053 (define_mode_attr VSisa): New.
12054 (rest of file): Adjust.
12055 * doc/md.texi (Machine Constraints): Adjust.
12057 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12059 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
12060 (define_attr "enabled"): Handle those new isa values.
12062 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12064 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
12065 (define_mode_attr VSr5): Delete.
12066 (define_mode_attr VStype_sqrt): Delete.
12067 (define_mode_iterator VSX_SPDP): Delete.
12068 (define_mode_attr VS_spdp_res): Delete.
12069 (define_mode_attr VS_spdp_insn): Delete.
12070 (define_mode_attr VS_spdp_type): Delete.
12071 (*vsx_sqrt<mode>2): Adjust.
12072 (vsx_<VS_spdp_insn>): Delete, split to...
12073 (vsx_xscvdpsp): ... this. New. And...
12074 (vsx_xvcvspdp): ... this. New. And...
12075 (vsx_xvcvdpsp): ... this. New.
12077 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12079 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
12081 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
12082 (rest of file): Adjust.
12084 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12086 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
12087 (vsx_extract_<mode>_var): Ditto.
12089 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12091 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
12094 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12096 * config/rs6000/constraints.md (define_register_constraint "ww"):
12098 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12099 (rs6000_init_hard_regno_mode_ok): Adjust.
12100 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12101 RS6000_CONSTRAINT_ww.
12102 * config/rs6000/rs6000.md: Adjust.
12103 * config/rs6000/vsx.md: Adjust.
12104 * doc/md.texi (Machine Constraints): Adjust.
12106 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12108 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
12109 (define_mode_attr sd): New.
12110 (define_mode_attr s): New.
12111 (define_mode_attr Ftrad): Delete.
12112 (define_mode_attr Fvsx): Delete.
12113 (define_mode_attr Fs): Delete.
12114 (rest of file): Use the new mode attributes.
12115 * config.rs6000/vsx.md: Use the new mode attributes.
12117 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12119 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
12122 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12124 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
12125 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
12126 used with VSX_B, VSX_D, or VSX_F, with just "wa".
12128 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
12131 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
12132 C++ with strict ANSI requirements.
12134 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
12136 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
12137 computations when step is 1.
12139 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12141 * config/rs6000/constraints.md (define_register_constraint "wf"):
12143 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12144 (rs6000_init_hard_regno_mode_ok): Adjust.
12145 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12146 RS6000_CONSTRAINT_wf.
12147 * config/rs6000/rs6000.md: Adjust.
12148 * config/rs6000/vsx.md: Adjust.
12149 * doc/md.texi (Machine Constraints): Adjust.
12151 2019-06-04 Andrew Pinski <apinski@marvell.com>
12153 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
12156 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12158 * config/rs6000/constraints.md (define_register_constraint "wd"):
12160 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12161 (rs6000_init_hard_regno_mode_ok): Adjust.
12162 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12163 RS6000_CONSTRAINT_wd.
12164 * config/rs6000/rs6000.md: Adjust.
12165 * config/rs6000/vsx.md: Adjust.
12166 * doc/md.texi (Machine Constraints): Adjust.
12168 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12170 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
12171 (rest of file): Adjust.
12173 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12175 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
12176 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
12177 (vsx_splat_<mode>_reg): Adjust.
12179 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12181 * config/rs6000/constraints.md (define_register_constraint "ws"):
12183 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12184 (rs6000_init_hard_regno_mode_ok): Adjust.
12185 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12186 RS6000_CONSTRAINT_ws.
12187 * config/rs6000/rs6000.md: Adjust.
12188 * config/rs6000/vsx.md: Adjust.
12189 * doc/md.texi (Machine Constraints): Adjust.
12191 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12193 * config/rs6000/constraints.md (define_register_constraint "wv"):
12195 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12196 (rs6000_init_hard_regno_mode_ok): Adjust.
12197 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12198 RS6000_CONSTRAINT_wv.
12199 * config/rs6000/rs6000.md: Adjust.
12200 * config/rs6000/vsx.md: Adjust.
12201 * doc/md.texi (Machine Constraints): Adjust.
12203 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
12205 * config/rs6000/constraints.md (define_register_constraint "wi"):
12207 (define_register_constraint "wt"): Delete.
12208 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12209 (rs6000_init_hard_regno_mode_ok): Adjust.
12210 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12211 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
12212 * config/rs6000/rs6000.md: Adjust.
12213 * config/rs6000/vsx.md: Adjust.
12214 * doc/md.texi (Machine Constraints): Adjust.
12216 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
12218 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
12220 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
12221 default_elf_asm_output_external.
12223 2019-06-04 Martin Liska <mliska@suse.cz>
12225 * ipa-icf.c (INCLUDE_LIST): Remove.
12226 (sem_item_optimizer::execute): Remove call to init_wpa.
12227 * ipa-icf.h (init_wpa): Remove.
12229 2019-06-04 Jakub Jelinek <jakub@redhat.com>
12231 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
12232 conditional on combined for simd.
12233 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
12235 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
12236 constructs, don't remove lastprivate_conditional_map, but instead set
12237 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
12238 to parent construct temporaries.
12239 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
12240 like !ctx->lastprivate_conditional_map.
12241 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
12242 use up->outer context instead of up.
12243 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
12244 gimple_omp_for_combined_p.
12245 (expand_omp_for_static_nochunk): Likewise.
12246 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
12247 probably moved over into expand_omp_for_generic rather than being copied
12250 2019-06-04 Martin Liska <mliska@suse.cz>
12252 * value-prof.c (dump_histogram_value): Fix typo.
12253 (gimple_mod_subtract_transform): Likewise.
12255 2019-06-04 Richard Biener <rguenther@suse.de>
12257 PR middle-end/90726
12258 * tree-chrec.c (chrec_contains_symbols): Add to visited.
12259 (tree_contains_chrecs): Likewise.
12260 (chrec_contains_symbols_defined_in_loop): Move here and avoid
12261 exponential behaivor from ...
12262 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12264 (expression_expensive_p): Avoid exponential behavior and compute
12265 expanded size, rejecting any expansion.
12266 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
12267 (idx_contains_abnormal_ssa_name_p): Likewise.
12268 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
12269 (contains_abnormal_ssa_name_p): Simplify and use
12270 walk_tree_without_duplicates.
12272 2019-06-04 Richard Biener <rguenther@suse.de>
12274 PR tree-optimization/90738
12276 2019-06-03 Richard Biener <rguenther@suse.de>
12278 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
12279 full reference tree and record in ref->ref.
12280 (vn_reference_lookup_3): Pass in original ref to
12281 ao_ref_init_from_vn_reference.
12282 (vn_reference_lookup): Likewise.
12283 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
12284 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12285 Handle non-decl bases in the original reference.
12287 2019-06-04 Martin Liska <mliska@suse.cz>
12289 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
12290 number of references.
12291 (sem_item_optimizer::do_congruence_step):
12292 (sem_item_optimizer::worklist_push): Dump how references
12294 (sem_item_optimizer::worklist_pop): Use heap.
12295 (sem_item_optimizer::process_cong_reduction): Likewise.
12296 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
12298 2019-06-04 Martin Liska <mliska@suse.cz>
12300 * ipa-icf.h (struct sem_usage_pair_hash): New.
12301 (sem_usage_pair_hash::hash): Likewise.
12302 (sem_usage_pair_hash::equal): Likewise.
12303 (struct sem_usage_hash): Likewise.
12304 * ipa-icf.c (sem_item::sem_item): Initialize
12305 referenced_by_count.
12306 (sem_item::add_reference): Register a reference
12307 in ref_map and not in target->usages.
12308 (sem_item::setup): Remove initialization of
12310 (sem_item::~sem_item): Remove usage of dead vectors.
12311 (sem_item::dump): Remove dump of references.
12312 (sem_item_optimizer::sem_item_optimizer): Initialize
12314 (sem_item_optimizer::read_section): Remove useless
12316 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
12317 (sem_item_optimizer::build_graph): Pass m_references
12318 to ::add_reference.
12319 (sem_item_optimizer::verify_classes): Remove usage of dead
12321 (sem_item_optimizer::traverse_congruence_split): Return true
12322 when a class is split.
12323 (sem_item_optimizer::do_congruence_step_for_index): Use
12324 hash_map for look up of (sem_item *, index). That brings
12325 significant speed up.
12326 (sem_item_optimizer::do_congruence_step): Return true
12327 when a split is done.
12328 (congruence_class::is_class_used): Use referenced_by_count.
12330 2019-06-04 Alan Modra <amodra@gmail.com>
12333 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
12336 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
12338 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
12339 * config/rs6000/rs6000.c (direct_move_p): Adjust.
12340 (rs6000_secondary_reload_simple_move): Adjust.
12341 (rs6000_opt_masks): Neuter the "mfpgpr" option.
12342 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
12343 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
12346 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
12347 (floatunssi<mode>2_lfiwzx): Adjust.
12348 (fix_trunc<mode>si2_stfiwx): Adjust.
12349 (fixuns_trunc<mode>si2_stfiwx): Adjust.
12350 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
12351 (mfpgpr): Mark as deprecated.
12352 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
12353 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
12354 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
12356 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
12358 * config/rs6000/constraints.md (define_register_constraint "wg"):
12360 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12361 RS6000_CONSTRAINT_wg.
12362 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12363 (rs6000_init_hard_regno_mode_ok): Adjust.
12364 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
12365 Delete "wg" alternatives.
12366 * doc/md.texi (Machine Constraints): Adjust.
12368 2019-06-03 Alan Modra <amodra@gmail.com>
12370 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
12371 (get_uncond_jump_length): Assert length less than INT_MAX and
12374 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
12376 PR middle-end/64242
12377 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
12379 (expand_builtin_nonlocal_goto): Likewise.
12381 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
12383 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
12384 (aarch64_asm_output_external): Declare.
12385 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
12386 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
12387 (aarch64_asm_output_alias): New.
12388 (aarch64_asm_output_external): New.
12389 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
12390 (ASM_OUTPUT_EXTERNAL): Define.
12392 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
12393 * tree-vrp.h (value_range_base::nonzero_p): New.
12394 (value_range_base::set_nonnull): Rename to...
12395 (value_range_base::set_nonzero): ...this.
12396 (value_range_base::set_null): Rename to...
12397 (value_range_base::set_zero): ...this.
12398 (value_range::set_nonnull): Remove.
12399 (value_range::set_null): Remove.
12400 * tree-vrp.c (range_is_null): Remove.
12401 (range_is_nonnull): Remove.
12402 (extract_range_from_binary_expr): Use value_range_base::*zero_p
12403 instead of range_is_*null.
12404 (extract_range_from_unary_expr): Same.
12405 (value_range_base::set_nonnull): Rename to...
12406 (value_range_base::set_nonzero): ...this.
12407 (value_range::set_nonnull): Remove.
12408 (value_range_base::set_null): Rename to...
12409 (value_range_base::set_zero): ...this.
12410 (value_range::set_null): Remove.
12411 (extract_range_from_binary_expr): Rename set_*null uses to
12413 (extract_range_from_unary_expr): Same.
12414 (union_helper): Same.
12415 * vr-values.c (get_value_range): Use set_*zero instead of
12417 (vr_values::extract_range_from_binary_expr): Same.
12418 (vr_values::extract_range_basic): Same.
12420 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
12423 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
12425 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12427 * config/aarch64/iterators.md (MAX_OPP): New code attr.
12428 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
12430 (aarch64_<su>abd<mode>_3): ... This.
12431 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
12433 2019-06-03 Richard Biener <rguenther@suse.de>
12435 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
12436 full reference tree and record in ref->ref.
12437 (vn_reference_lookup_3): Pass in original ref to
12438 ao_ref_init_from_vn_reference.
12439 (vn_reference_lookup): Likewise.
12440 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
12441 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12442 Handle non-decl bases in the original reference.
12444 2019-06-03 Martin Liska <mliska@suse.cz>
12446 * doc/generic.texi: Remove Java Trees.
12448 2019-06-03 Martin Liska <mliska@suse.cz>
12450 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
12451 returns 0 when operands are equal.
12453 2019-06-03 Richard Biener <rguenther@suse.de>
12455 PR tree-optimization/90716
12456 * tree-loop-distribution.c (destroy_loop): Process blocks in
12459 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12462 * vector-builder.h (vector_builder::count_dups): New method.
12463 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
12465 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
12466 (vec_init<mode><Vel>): New pattern.
12467 * config/aarch64/aarch64.c (emit_insr): New function.
12468 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
12469 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
12470 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
12471 (aarch64_sve_expand_vector_init): Define two overloaded functions.
12473 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12475 PR tree-optimization/90681
12476 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
12477 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
12478 special case for SLP, but fail on non-groupped loads.
12480 2019-06-03 Martin Liska <mliska@suse.cz>
12482 * cfg.c (debug): Use TDF_DETAILS for debug and
12483 print edge info only once.
12485 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
12488 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
12490 2019-06-01 Martin Sebor <msebor@redhat.com>
12492 PR middle-end/90694
12493 * tree-pretty-print.c (dump_generic_node): Add parentheses.
12495 2019-05-31 Jan Hubicka <jh@suse.cz>
12497 * alias.c: Include ipa-utils.h.
12498 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
12499 * ipa-devirt.c (prevailing_odr_type): New.
12500 * ipa-utils.h (previaling_odr_type): Declare.
12502 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
12503 Hongtao Liu <hongtao.liu@intel.com>
12506 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
12507 NOTE_INSN_DELETED_LABEL check.
12509 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
12510 Robert Suchanek <robert.suchanek@mips.com>
12512 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
12513 and 3rd operands of the fmadd/fmsub/maddv builtin.
12515 2019-05-31 Jakub Jelinek <jakub@redhat.com>
12517 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
12518 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
12519 on OMP_SIMD if not nested inside of worksharing loop that also has
12520 lastprivate conditional clause for the same decl.
12521 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
12522 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
12524 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
12526 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
12528 (lower_lastprivate_clauses): Likewise.
12529 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
12530 calling lower_rec_input_clauses.
12531 (lower_omp_for): Likewise.
12532 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
12533 clause on simd construct.
12534 * omp-expand.c (expand_omp_simd): Initialize cond_var if
12535 OMP_CLAUSE__CONDTEMP_ clause is present.
12537 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
12540 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
12543 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
12544 TEX_D32, TEX_D64 or TEX_D128.
12546 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
12548 * match.pd (~(vec?cst1:cst2)): New transformation.
12550 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
12552 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
12553 ((size_t)(A /[ex] B) CMP C): New transformation.
12555 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
12557 * doc/md.texi: Document define_insn_and_rewrite.
12558 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
12559 * gensupport.c (queue_elem): Update comment.
12560 (replace_operands_with_dups): New function.
12561 (gen_rewrite_sequence): Likewise.
12562 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
12563 * read-rtl.c (apply_subst_iterator): Likewise.
12564 (add_condition_to_rtx, named_rtx_p): Likewise.
12565 (rtx_reader::read_rtx_operand): Likewise.
12566 * config/aarch64/aarch64-sve.md
12567 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
12568 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
12569 define_insn_and_rewrite.
12570 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
12571 Remove separate define_split.
12573 2019-05-31 Jan Hubicka <jh@suse.cz>
12575 * tree-ssa-alias.c (type_has_components_p): New function.
12576 (aliasing_component_refs_p): Use it.
12578 2019-05-31 Martin Liska <mliska@suse.cz>
12580 * gdbhooks.py: Add const_tree to TreePrinter.
12582 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
12585 * common.opt (feliminate-unused-debug-symbols): Enable by default.
12586 * doc/invoke.texi (Debugging Options): Document new default of
12587 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
12589 2019-05-31 Jakub Jelinek <jakub@redhat.com>
12591 PR tree-optimization/90671
12592 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
12593 template_block used to be empty on the first call, don't use
12594 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
12595 seq with bb_seq and set it with set_bb_seq.
12597 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
12599 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
12601 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
12602 Michael Meissner <meissner@linux.ibm.com>
12604 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
12605 (prefixed_mem_operand): Likewise.
12606 (non_prefixed_mem_operand): Likewise.
12607 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
12609 * config/rs6000/rs6000.c (print_operand_address): Handle
12610 PC-relative addresses.
12611 (mode_supports_prefixed_address_p): New function.
12612 (rs6000_prefixed_address): New function.
12613 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
12614 (SYMBOL_REF_PCREL_P): Likewise.
12616 2019-05-30 Jakub Jelinek <jakub@redhat.com>
12618 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
12619 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
12620 (gimplify_omp_for): If worksharing loop with lastprivate conditional
12621 is nested inside of parallel region, add _condtemp_ clause to both.
12622 * tree-nested.c (convert_nonlocal_omp_clauses,
12623 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
12625 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
12627 * omp-general.c (omp_extract_for_data): Compute it.
12628 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
12629 (lower_rec_input_clauses): Likewise.
12630 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
12631 clause is already present, just add one further one after it.
12632 (lower_lastprivate_clauses): Handle cond_ptr with array type.
12633 (lower_send_shared_vars): Clear _condtemp_ vars.
12634 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
12635 or section or taskgroup.
12636 * omp-expand.c (determine_parallel_type): Disallow combining only if
12637 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
12638 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
12639 (expand_omp_for_generic, expand_omp_for_static_nochunk,
12640 expand_omp_for_static_chunk, expand_omp_for): Use
12641 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
12642 determine if a special set of API routines are needed and if condtemp
12643 needs to be initialized, while always initialize cond_var if
12644 fd->lastprivate_conditional is non-zero.
12646 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
12647 Michael Meissner <meissner@linux.ibm.com>
12649 * config/rs6000/constraints.md (eI): New constraint.
12650 * config/rs6000/predicates.md (cint34_operand): New predicate.
12651 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
12652 (SIGNED_34BIT_OFFSET_P): Likewise.
12653 * doc/md.texi (eI): Document constraint.
12655 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
12657 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
12659 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
12660 Michael Meissner <meissner@linux.ibm.com>
12662 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
12663 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
12664 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
12665 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
12666 (OTHER_FUTURE_MASKS): Likewise.
12667 (POWERPC_MASKS): Likewise.
12668 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
12669 specified without -mprefixed-addr or -mcpu=future. Error if
12670 -mprefixed-addr is specified without -mcpu=future.
12671 (rs6000_opt_masks): Add entry for prefixed-addr.
12672 * rs6000.opt (mprefixed-addr): New option.
12674 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
12676 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
12677 cfun->is_thunk check.
12679 2019-05-30 Jakub Jelinek <jakub@redhat.com>
12681 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
12684 2019-05-30 Martin Liska <mliska@suse.cz>
12686 * gdbinit.in: Fix 'ptc' command. Add trt
12687 that prints TREE_TYPE($).
12689 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
12690 Alan Modra <amodra@gmail.com>
12692 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
12694 (rs6000_indirect_call_template_1): ...and here.
12695 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
12696 plt16_ha, plt16_lo, mtctr indirect calls. Use
12697 rs6000_pltseq_enum.
12698 (rs6000_decl_ok_for_sibcall): New function.
12699 (rs6000_function_ok_for_sibcall): Refactor.
12700 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
12701 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
12702 when pcrel. Reorganize.
12703 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
12704 * rs6000.h (rs6000_pltseq_enum): New enum.
12705 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
12706 (*pltseq_tocsave): Use rs6000_pltseq_enum.
12707 (*pltseq_plt16_ha): Likewise.
12708 (*pltseq_plt16_lo): Likewise.
12709 (*pltseq_mtctr): Likewise.
12710 (*pltseq_plt_pcrel): New insn.
12711 (*call_local_aix): Handle @notoc calls.
12712 (*call_value_local_aix): Likewise.
12713 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
12714 (*call_value_nonlocal_aix): Likewise.
12715 (*call_indirect_pcrel): New insn.
12716 (*call_value_indirect_pcrel): Likewise.
12718 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
12720 * config/i386/sse.md (*save_multiple<mode>): Rename from
12721 save_multiple<mode>.
12722 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
12723 (*restore_multiple_and_return<mode>): Rename from
12724 restore_multiple_and_return<mode>.
12725 (*restore_multiple_leave_return<mode>): Rename from
12726 restore_multiple_leave_return<mode>.
12728 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
12730 * config.gcc (rx-*-linux*): New target.
12731 * config/rx/elf.opt: New file.
12732 * config/rx/linux.h: Likewise.
12733 * config/rx/t-linux: Likewise.
12734 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
12736 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
12737 (ASM_APP_OFF): Likewise.
12738 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
12741 2019-05-29 Jan Hubicka <jh@suse.cz>
12743 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
12744 variants are pointer equivalent.
12746 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12748 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
12749 * config/aarch64/aarch64-sve2.md: New file.
12750 (<u>avg<mode>3_floor): New pattern.
12751 (<u>avg<mode>3_ceil): Likewise.
12752 (*<sur>h<addsub><mode>): Likewise.
12753 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
12754 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
12756 2019-05-29 Jakub Jelinek <jakub@redhat.com>
12759 * optc-save-gen.awk: In cl_optimization_print, use correct condition
12760 for var_opt_string printing. In cl_optimization_print_diff, print
12761 (null) instead of invoking undefined behavior if one of the
12762 var_opt_string pointers is NULL and use && instead of first || in the
12763 guarding condition. For var_target_other options, handle const char *
12764 target variables similarly to const char * optimize node variables.
12766 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
12768 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
12769 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
12770 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
12771 Add autib1716 and pacib1716 initialisation.
12772 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
12773 for autib1716 and pacib1716.
12774 * config/aarch64/aarch64-protos.h (aarch64_key_type,
12775 aarch64_post_cfi_startproc): Define.
12776 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
12777 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
12778 aarch64_handle_pac_ret_protection): Set default sign key to A.
12779 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
12780 aarch64_expand_prologue): Add check for b-key.
12781 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
12782 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
12783 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
12784 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
12785 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
12786 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
12787 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
12788 * config/aarch64/aarch64.md (do_return): Add check for b-key.
12789 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
12790 pauth_hint_num_a with pauth_hint_num.
12791 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
12792 pauth_hint_num_a with pauth_hint_num.
12793 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
12794 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
12795 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
12796 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
12797 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
12798 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
12799 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
12800 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
12801 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
12802 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
12803 UNSPEC_AUTIA1716 respectively.
12804 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
12805 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
12806 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
12807 * doc/invoke.texi (-mbranch-protection): Add b-key type.
12808 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
12809 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
12811 2019-05-29 Jakub Jelinek <jakub@redhat.com>
12813 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
12814 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
12815 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
12816 explicit clause on combined parallel into implicit shared clause.
12817 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
12818 and firstprivate if the decl has one too from combined parallel to
12819 the worksharing construct.
12821 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
12822 Michael Meissner <meissner@linux.ibm.com>
12824 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
12826 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
12828 * rtl.h (LABEL_REF_P): New #define.
12830 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
12832 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
12834 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12836 * internal-fn.c: Marked mask_load_direct as vectorizable.
12837 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
12838 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
12839 combined even if masks different with allow_slp_p param.
12840 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
12841 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
12842 dissolve SLP-only vectorizable groups when SLP has been discarded.
12843 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
12844 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
12846 (vect_build_slp_tree_1): Fixed comment typo.
12847 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
12848 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
12849 loads for SLP only.
12850 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
12852 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
12854 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12856 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
12857 Remove obsolete use_thunk reference.
12858 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
12859 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12860 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
12861 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
12862 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12863 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12864 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12865 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
12866 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
12868 2019-05-28 Nathan Sidwell <nathan@acm.org>
12870 * tree.h (IDENTIFIER_ANON_P): New.
12871 (anon_aggrname_format, anon_aggname_p): Don't declare.
12872 (make_anon_name): Declare.
12873 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
12874 (hash_tree): Likewise.
12875 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
12876 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
12877 (anon_cnt, make_anon_name): New.
12879 2019-05-28 Martin Liska <mliska@suse.cz>
12882 * opts-global.c (decode_options): Print help for all
12883 help_option_arguments.
12884 * opts.c (print_help): Add new argument.
12885 (common_handle_option): Remember all values into
12886 help_option_arguments.
12887 * opts.h (print_help): Add new argument.
12889 2019-05-28 Martin Liska <mliska@suse.cz>
12892 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
12893 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
12894 (func_checker::compare_bb): Call compare_loops.
12896 2019-05-27 Jakub Jelinek <jakub@redhat.com>
12898 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
12899 on sections construct.
12900 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
12902 (lower_omp_sections): Handle lastprivate conditional.
12903 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
12904 lastprivate_conditional_map.
12905 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
12907 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
12908 critical, taskgroup and section regions when looking for a region
12909 with non-NULL lastprivate_conditional_map.
12911 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
12913 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
12914 (*ix86_gen_sub3): Ditto.
12915 (*ix86_gen_sub3_carry): Ditto.
12916 (*ix86_gen_one_cmpl2): Ditto.
12917 (*ix86_gen_andsp): Ditto.
12918 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
12919 (gen_and2_insn): New static function.
12920 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
12921 Use gen_add3_insn instead of ix86_gen_add3.
12922 (ix86_expand_split_stack_prologue): Use gen_add2_insn
12923 instead of ix86_gen_add3.
12924 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
12925 Use gen_sub3_insn instead of ix86_gen_sub3.
12926 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
12927 instead of ix86_gen_add3.
12928 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
12929 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
12930 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
12931 * config/i386/i386-options.c (ix86_option_override_internal):
12932 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
12933 ix86_gen_one_cmpl2 and ix86_gen_andsp.
12935 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
12937 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
12938 and DW_OP_GNU_const_index opcodes.
12940 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
12942 * config/i386/i386.h (STACK_SIZE_MODE): Define.
12944 2019-05-27 Richard Biener <rguenther@suse.de>
12946 PR tree-optimization/90637
12947 * tree-ssa-sink.c (statement_sink_location): Honor the
12948 computed sink location for single-uses.
12950 2019-05-27 Richard Biener <rguenther@suse.de>
12952 PR middle-end/90610
12953 * match.pd (vec_perm): Avoid clobbering op0 when not generating
12956 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
12958 * config/i386/i386.md (@sub<mode>3_carry): Rename
12959 from sub<mode>3_carry.
12960 (@leave_<mode>): New expander.
12961 (*leave): Rename from leave.
12962 (*leave_rex64): Rename from leave_rex64.
12963 (@monitorx_<mode>): Rename from monitorx_<mode>.
12964 (@clzero_<mode>): Rename from clzero_<mode>.
12965 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
12966 from sse3_monitor_<mode>.
12967 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
12968 (*ix86_gen_leave): Ditto.
12969 (*ix86_gen_monitor): Ditto.
12970 (*ix86_gen_monitorx): Ditto.
12971 (*ix86_gen_clzero): Ditto.
12972 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
12973 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
12974 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
12975 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
12976 Use gen_sse3_monitor instead of ix86_gen_monitor.
12977 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
12978 instead of ix86_gen_monitorx.
12979 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
12980 instead of ix86_gen_clzero.
12981 * config/i386/i386-options.c (ix86_option_override_internal):
12982 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
12983 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
12985 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
12987 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
12988 Rename from tls_global_dynamic_64_<mode>.
12989 (@tls_local_dynamic_base_64_<mode>): Rename from
12990 tls_local_dynamic_base_64_<mode>.
12991 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
12992 Remove indirect function.
12993 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
12994 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
12995 instead of ix86_gen_tls_global_dynamic_64.
12996 Use gen_tls_local_dynamic_base_64 instead of
12997 ix86_gen_tls_local_dynamic_base_64.
12998 * config/i386/i386-options.c (ix86_option_override_internal):
12999 Do not initialize ix86_gen_tls_global_dynamic_64 and
13000 ix86_gen_tls_local_dynamic_base_64.
13002 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
13004 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
13005 Rename from pro_epilogue_adjust_stack_<mode>_add.
13006 (@pro_epilogue_adjust_stack_sub_<mode>)
13007 Rename from pro_epilogue_adjust_stack_<mode>_sub.
13008 (@allocate_stack_worker_probe_<mode>):
13009 Rename from allocate_stack_worker_probe_<mode>.
13010 (allocate_stack): Use gen_allocate_stack_worker_probe.
13011 (probe_stack): Use gen_probe_stack_1.
13012 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
13013 (@adjust_stack_and_probe_<mode>): Rename from
13014 adjust_stack_and_probe<mode>.
13015 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
13016 (stack_protect_set): Use gen_stack_protect_set_1.
13017 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
13018 (stack_protect_test): Use gen_stack_protect_test_1.
13019 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
13020 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
13021 Remove indirect function.
13022 (*ix86_gen_adjust_stack_and_probe): Ditto.
13023 (*ix86_gen_probe_stack_range): Ditto.
13024 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
13025 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
13026 (ix86_adjust_stack_and_probe_stack_clash): Use
13027 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
13028 (ix86_adjust_stack_and_probe): Ditto.
13029 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
13030 of ix86_gen_probe_stack_range.
13031 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
13032 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
13033 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
13034 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
13035 CODE_FOR_stack_protect_test_{si,di}.
13036 * config/i386/i386-options.c (ix86_option_override_internal):
13037 Do not initialize ix86_gen_allocate_stack_worker,
13038 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
13040 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
13042 * doc/invoke.texi (Link Options): Many editorial changes around
13045 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13047 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
13048 pre-Solaris 11 referene and most Studio compiler details.
13050 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
13053 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
13054 DImode to SImode in floating-point registers on 64-bit target.
13055 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
13056 register_operand in xmpyu patterns.
13058 2019-05-24 Jakub Jelinek <jakub@redhat.com>
13060 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
13061 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
13062 OMP_CLAUSE__REDUCTEMP_.
13063 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13064 OMP_CLAUSE__CONDTEMP_.
13065 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
13066 * tree-pretty-print.c (dump_omp_clause): Likewise.
13067 * tree-nested.c (convert_nonlocal_omp_clauses,
13068 convert_local_omp_clauses): Likewise.
13069 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
13070 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
13071 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
13073 (gimplify_omp_for): Warn and disable conditional modifier from
13074 lastprivate on loop iterators.
13075 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
13077 * omp-general.c (omp_extract_for_data): Initialize it.
13078 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
13080 (delete_omp_context): Delete it.
13081 (lower_lastprivate_conditional_clauses): New function.
13082 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
13083 handle lastprivate conditional clauses.
13084 (lower_reduction_clauses): Add CLIST argument, emit it into
13085 the critical section if any.
13086 (lower_omp_sections): Adjust lower_lastprivate_clauses and
13087 lower_reduction_clauses callers.
13088 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
13089 to lower_lastprivate_clauses.
13090 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
13091 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
13092 clist into a critical section if not emitted there already by
13093 lower_reduction_clauses.
13094 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
13096 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
13097 conditional variables.
13098 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
13100 (expand_omp_for_generic, expand_omp_for_static_nochunk,
13101 expand_omp_for_static_chunk): Handle lastprivate conditional.
13102 (expand_omp_for): Handle fd.lastprivate_conditional like
13105 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
13107 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
13108 kernel does not exit cleanly.
13109 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
13111 2019-05-24 Jason Merrill <jason@redhat.com>
13114 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
13116 2019-05-24 Richard Biener <rguenther@suse.de>
13119 * tree-loop-distribution.c (struct partition): Add location
13121 (partition_alloc): Initialize all fields.
13122 (generate_memset_builtin): Use the location recorded in the
13123 partition for the generated call.
13124 (generate_memcpy_builtin): Likewise.
13125 (classify_partition): Record the location of a single store
13126 as location for the partition.
13128 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
13130 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
13133 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
13136 * common/config/aarch64/aarch64-common.c
13137 (aarch64_rewrite_selected_cpu): Change local temporary variable
13138 type from unsigned long to uint64_t.
13139 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
13140 aarch64_get_extension_string_for_isa_flags): Change declaration to
13141 match new definition by replacing unsigned long with uint64_t.
13143 2019-05-24 Jakub Jelinek <jakub@redhat.com>
13146 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
13147 gen_attr_type just once instead of 4-7 times. Formatting fixes.
13148 Handle stack_protect_test_<mode> codegen similarly to corresponding
13151 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
13153 * config/i386/darwin.h: Reject -mfentry*.
13154 * doc/sourcebuild.texi: Document mfentry target support.
13156 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
13158 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
13159 Rename to rs6000_global_entry_point_prologue_needed_p. Return
13160 false for PC-relative functions.
13161 (rs6000_output_function_prologue): Change called function name to
13162 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
13163 name,1" for PC-relative functions.
13164 (rs6000_elf_declare_function_name): Change called function name to
13165 rs6000_global_entry_point_prologue_needed_p.
13167 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
13170 * config/i386/i386.c (gen_rtx_cost):
13171 Use ix86_tune_cost instead of ix86_cost.
13173 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
13174 Michael Meissner <meissner@linux.ibm.com>
13175 Segher Boessenkool <segher@kernel.crashing.org>
13177 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
13179 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
13180 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
13181 (rs6000_fndecl_pcrel_p): Likewise.
13182 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
13183 error if -mpcrel is requested without -mcpu=future.
13184 (rs6000_opt_masks): Add entry for pcrel.
13185 (rs6000_fndecl_pcrel_p): New function.
13186 (rs6000_pcrel_p): Likewise.
13187 * config/rs6000/rs6000.opt (mpcrel): New option.
13188 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
13190 2019-05-23 Jan Hubicka <jh@suse.cz>
13191 Martin Liska <mliska@suse.cz>
13193 PR tree-optimization/90576
13194 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
13196 (aliasing_component_refs_p): Fix three way size compare conditional;
13197 give up earlier in case we can not decide on equivalence.
13199 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
13200 Michael Meissner <meissner@linux.ibm.com>
13201 Segher Boessenkool <segher@kernel.crashing.org>
13203 * config.gcc: Add future cpu.
13204 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
13205 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
13207 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
13208 (RS6000_CPU): New instantiation for future cpu.
13209 * config/rs6000/rs6000-opts.h (enum processor_type): Add
13211 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
13212 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
13213 * config/rs6000/rs6000-tables.opt: Regenerate.
13214 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
13215 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
13216 (rs6000_machine_from_flags): Handle future cpu.
13217 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
13218 PROCESSOR_POWER9 for now.
13219 (rs6000_adjust_cost): Likewise.
13220 (rs6000_issue_rate): Likewise.
13221 (rs6000_register_move_cost): Likewise.
13222 (rs6000_opt_masks): Add entry for future.
13223 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
13224 (MASK_FUTURE): New #define.
13225 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
13226 * config/rs6000/rs6000.opt (mfuture): New target option.
13227 * doc/invoke.texi (mcpu): Add future cpu.
13229 2019-05-23 Martin Liska <mliska@suse.cz>
13232 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
13233 operation points to a temporary (pointed via tree_to_wide_ref)
13234 that is out of scope after the &.
13236 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
13239 * doc/extend.texi (Function Names): Add missing word.
13241 2019-05-23 Richard Biener <rguenther@suse.de>
13243 PR tree-optimization/88440
13244 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
13246 * tree-loop-distribution.c (generate_memset_builtin): Fold the
13248 (generate_memcpy_builtin): Likewise.
13249 (distribute_loop): Pass in whether to only distribute patterns.
13250 (prepare_perfect_loop_nest): Also allow size optimization.
13251 (pass_loop_distribution::execute): When optimizing a loop
13252 nest for size allow pattern replacement.
13254 2019-05-23 Jakub Jelinek <jakub@redhat.com>
13257 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
13260 2019-05-23 Martin Liska <mliska@suse.cz>
13263 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
13264 expression similarly to gimplify_decl_expr.
13266 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13268 * cse.c (cse_dump_path): s/dump_file/f.
13270 2019-05-22 David Malcolm <dmalcolm@redhat.com>
13273 * diagnostic-format-json.cc: Include "selftest.h".
13274 (json_from_expanded_location): Only add "file" key for non-NULL
13276 (json_from_location_range): Don't add "start" and "finish"
13277 children if they are UNKNOWN_LOCATION.
13278 (selftest::test_unknown_location): New selftest.
13279 (selftest::test_bad_endpoints): New selftest.
13280 (selftest::diagnostic_format_json_cc_tests): New function.
13281 * json.cc (json::object::get): New function.
13282 (selftest::test_object_get): New selftest.
13283 (selftest::json_cc_tests): Call it.
13284 * json.h (json::object::get): New decl.
13285 * selftest-run-tests.c (selftest::run_tests): Call
13286 selftest::diagnostic_format_json_cc_tests.
13287 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
13290 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13291 Andrew Stubbs <amd@codesourcery.com>
13293 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
13294 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
13295 (kernel): Rename to...
13296 (main_kernel): ... this.
13297 (load_image): Load _init_array and _fini_array kernels.
13298 (run): Add argument for kernel to run.
13299 (main): Run init_array_kernel before main_kernel, and
13300 fini_array_kernel after.
13301 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
13302 amdgpu_hsa_kernel attribute on functions.
13303 (gcn_disable_constructors): Delete.
13304 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
13305 * config/gcn/crt0.c (size_t): Define.
13306 (_init_array, _fini_array): New.
13307 (__preinit_array_start, __preinit_array_end,
13308 __init_array_start, __init_array_end,
13309 __fini_array_start, __fini_array_end): Declare weak references.
13311 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
13313 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
13315 2019-05-22 Jason Merrill <jason@redhat.com>
13317 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
13319 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
13322 * config/i386/i386-options.c (ix86_init_machine_status): Set
13323 stack_frame_required to true.
13324 * config/i386/i386.c (ix86_get_frame_size): New function.
13325 (ix86_frame_pointer_required): Replace get_frame_size with
13326 ix86_get_frame_size.
13327 (ix86_compute_frame_layout): Likewise.
13328 (ix86_find_max_used_stack_alignment): Changed to void. Set
13329 stack_frame_required.
13330 (ix86_finalize_stack_frame_flags): Always call
13331 ix86_find_max_used_stack_alignment. Replace get_frame_size with
13332 ix86_get_frame_size.
13333 * config/i386/i386.h (machine_function): Add stack_frame_required.
13335 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
13337 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
13339 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
13341 * common/config/aarch64/aarch64-common.c
13342 (struct aarch64_option_extension, struct processor_name_to_arch,
13343 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
13344 aarch64_contains_opt,
13345 aarch64_get_extension_string_for_isa_flags): Change type of
13346 variables storing flags to uint64_t.
13347 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
13348 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
13349 * config/aarch64/aarch64.c (struct processor,
13350 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
13351 aarch64_validate_march, aarch64_override_options,
13352 aarch64_option_print, aarch64_handle_attr_isa_flags,
13353 aarch64_declare_function_name, aarch64_start_file): Make flag
13354 variables uint64_t.
13355 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
13356 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
13357 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
13358 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
13359 * config/aarch64/driver-aarch64.c
13360 (struct aarch64_arch_extension, struct aarch64_core_data,
13361 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
13362 flag variables uint64_t.
13363 * doc/invoke.texi: Add documentation for new arguments.
13365 2019-05-22 Richard Biener <rguenther@suse.de>
13367 * alias.c (ao_ref_from_mem): Move stack-slot sharing
13369 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
13371 2019-05-22 Martin Liska <mliska@suse.cz>
13374 * doc/extend.texi: Document the change.
13376 2019-05-22 Richard Biener <rguenther@suse.de>
13378 PR tree-optimization/90450
13379 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
13380 (mem_ref_hasher::equal): Check it.
13381 (mem_ref_alloc): Initialize it.
13382 (gather_mem_refs_stmt): Set it.
13384 2019-05-22 Richard Biener <rguenther@suse.de>
13386 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
13388 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
13391 2019-05-22 Alan Modra <amodra@gmail.com>
13393 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
13394 (ASM_CPU_SPEC): Conditionally add -many.
13395 * config/rs6000/rs6000.c (rs6000_machine): New static var.
13396 (rs6000_machine_from_flags, emit_asm_machine): New functions..
13397 (rs6000_file_start): ..extracted from here, and modified to
13399 (rs6000_output_function_prologue): Emit .machine as necessary.
13401 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
13403 PR middle-end/90553
13404 * ira-lives.c (process_bb_node_lives): Consider defs
13405 for a call insn to be die before the call, not after.
13407 * function.c (assign_parm_setup_block): Raise alignment of
13408 stacked parameter only for STRICT_ALIGNMENT targets.
13410 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
13412 * config/rs6000/constraints.md (define_register_constraint "wz"):
13414 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13415 RS6000_CONSTRAINT_wz.
13416 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13417 (rs6000_init_hard_regno_mode_ok): Adjust.
13418 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
13419 * doc/md.texi (Machine Constraints): Adjust.
13421 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
13423 * config/rs6000/constraints.md (define_register_constraint "wl"):
13425 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13426 RS6000_CONSTRAINT_wl.
13427 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13428 (rs6000_init_hard_regno_mode_ok): Adjust.
13429 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
13430 * doc/md.texi (Machine Constraints): Adjust.
13432 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
13434 * config/rs6000/constraints.md (define_register_constraint "wm"):
13436 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13437 RS6000_CONSTRAINT_wm.
13438 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13439 (rs6000_init_hard_regno_mode_ok): Adjust.
13440 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
13441 * doc/md.texi (Machine Constraints): Adjust.
13443 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
13445 * config/rs6000/constraints.md (define_register_constraint "wk"):
13447 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13448 RS6000_CONSTRAINT_wk.
13449 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13450 (rs6000_init_hard_regno_mode_ok): Adjust.
13451 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
13452 * doc/md.texi (Machine Constraints): Adjust.
13454 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
13456 * config/rs6000/constraints.md (define_register_constraint "wj"):
13458 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13459 RS6000_CONSTRAINT_wj.
13460 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13461 (rs6000_init_hard_regno_mode_ok): Adjust.
13462 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
13464 * config/rs6000/vsx.md: Ditto.
13465 * doc/md.texi (Machine Constraints): Adjust.
13467 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
13469 * config/rs6000/constraints.md (define_register_constraint "wh"):
13471 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13472 RS6000_CONSTRAINT_wh.
13473 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13474 (rs6000_init_hard_regno_mode_ok): Adjust.
13475 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
13476 * doc/md.texi (Machine Constraints): Adjust.
13478 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
13481 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
13482 Avoid calling gen_lowpart with CONST operand.
13484 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
13486 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
13487 field template_last_to_copy.
13488 (ssa_create_duplicates): Set it, and use it. Attempt to
13489 preserve more debug stmts.
13491 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
13493 * config/i386/sse.md (VF1_AVX2): New mode iterator.
13494 (signbit<mode>2): New expander
13496 2019-05-21 James Clarke <jrtc27@jrtc27.com>
13499 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
13500 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
13502 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
13504 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
13505 %ebx and %ecx bafore calling cpuid with leaf 1 or
13506 non-constant leaf argument.
13508 2019-05-21 Alan Modra <amodra@gmail.com>
13511 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
13512 power9 direct move cost.
13514 2019-05-21 Richard Biener <rguenther@suse.de>
13516 PR middle-end/90510
13517 * fold-const.c (fold_read_from_vector): New function.
13518 * fold-const.h (fold_read_from_vector): Declare.
13519 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
13520 single-element insert permutations. Canonicalize selector
13521 further and fix issue with last commit.
13523 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
13525 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
13526 parameter with default value false to declaration.
13527 (split_edges_for_insertion): New inline function. Wrapper for
13528 split_critical_edges with for_edge_insertion_p = true.
13529 * tree-cfg.c (split_critical_edges): Don't split non-critical
13530 edges if for_edge_insertion_p is false. Fix whitespace.
13531 * tree-ssa-pre.c (pass_pre::execute): Call
13532 split_edges_for_insertion instead of split_critical_edges.
13533 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
13534 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
13535 (pass_data_sink_code): Update function name in the comment.
13537 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
13539 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
13540 around is_value_included_in that knows how to handle BIT_AND_EXPR.
13541 (is_pred_expr_subset_of): Use the new function. Handle more cases where
13542 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
13545 2019-05-21 Martin Liska <mliska@suse.cz>
13547 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
13549 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
13550 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
13552 * config/rs6000/rs6000.c (rs6000_option_override_internal):
13554 (rs6000_function_arg): Likewise.
13555 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
13556 (rs6000_expand_ternop_builtin): Use interval syntax.
13557 (get_element_number): Likewise.
13558 (altivec_expand_builtin): Likewise.
13559 (rs6000_get_function_versions_dispatcher): Quote target_clones.
13561 2019-05-20 Jakub Jelinek <jakub@redhat.com>
13565 * function.h (struct function): Add calls_eh_return member.
13566 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
13567 gimplifying __builtin_eh_return call.
13568 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
13570 (expand_call_inline): Or in src_cfun->calls_eh_return into
13571 dst_cfun->calls_eh_return.
13572 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
13573 cfun->calls_eh_return.
13574 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
13575 * lto-streamer-out.c (output_struct_function_base): Write
13578 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
13580 PR rtl-optimization/43147
13581 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
13582 IX86_BUILTIN_SHUFPD.
13584 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
13586 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
13587 (refs_may_alias_p_1): ... here; update stats.
13588 (refs_may_alias_p): Do not update stats here.
13590 2019-05-20 Richard Biener <rguenther@suse.de>
13592 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
13593 doesn't produce pointers.
13594 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
13595 the first operand points to.
13597 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
13599 * tree-ssa-alias.c (compare_sizes): New function.
13600 (sompare_type_sizes): New function
13601 (aliasing_component_refs_p): Use it.
13602 (indirect_ref_may_alias_decl_p): Likewise.
13604 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13606 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
13608 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13610 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
13611 (LIBLSAN_EARLY_SPEC): Likewise.
13612 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
13614 2019-05-20 Martin Liska <mliska@suse.cz>
13616 * config/i386/i386.c (ix86_libc_has_fast_function):
13617 Add ATTRIBUTE_UNUSED for the argument.
13619 2019-05-20 Richard Biener <rguenther@suse.de>
13621 * gimple-match-head.c: Include vec-perm-indices.h.
13622 * generic-match-head.c: Likewise.
13623 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
13625 * fold-const.c (fold_vec_perm): Export.
13626 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
13627 (match.pd): ...here.
13629 2019-05-20 Jakub Jelinek <jakub@redhat.com>
13631 * cfgloop.h (struct loop): Add simdlen member.
13632 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
13633 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
13634 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
13635 as new argument to autovectorize_vector_sizes target hook. If
13636 loop->simdlen, pick up vector size where the vectorization factor
13637 is equal to loop->simd, and if there is none, fall back to the first
13639 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
13641 * omp-low.c (omp_clause_aligned_alignment): Likewise.
13642 * omp-general.c (omp_max_vf): Likewise.
13643 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
13644 * tree-vect-slp.c (vect_slp_bb): Likewise.
13645 * target.def (autovectorize_vector_sizes): Add ALL argument and
13647 * doc/tm.texi: Adjust documentation.
13648 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
13649 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
13650 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
13652 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
13653 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
13654 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
13655 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
13656 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
13657 preferred vector size is not 512-bit or 256-bit, just put those
13658 unpreferred ones last.
13660 2019-05-20 Martin Liska <mliska@suse.cz>
13662 * targhooks.c (default_libc_has_fast_function): New function.
13663 * targhooks.h (default_libc_has_fast_function): Likewise.
13665 2019-05-20 Martin Liska <mliska@suse.cz>
13667 PR middle-end/90263
13668 * builtins.c (expand_builtin_memory_copy_args): When having a
13669 target with fast mempcpy implementation do now use memcpy.
13670 * config/i386/i386.c (ix86_libc_has_fast_function): New.
13671 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
13672 * doc/tm.texi: Likewise.
13673 * doc/tm.texi.in: Likewise.
13675 * expr.c (emit_block_move_hints): Add 2 new arguments.
13676 * expr.h (emit_block_move_hints): Bail out when libcall
13677 to memcpy would be used.
13679 2019-05-20 Martin Liska <mliska@suse.cz>
13681 * profile-count.c: Add vertical spacing in order
13682 to separate functions.
13683 * profile-count.h: Likewise.
13685 2019-05-20 Martin Liska <mliska@suse.cz>
13687 * profile-count.h: Do not use full qualified
13689 * profile-count.c (profile_count::to_frequency): Likewise.
13691 2019-05-20 Martin Liska <mliska@suse.cz>
13693 * profile-count.h (enum profile_quality): Use capital letters
13694 for enum value names. Use the adjusted names.
13695 * profile-count.c: Use the adjusted names.
13697 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13699 * config/rs6000/constraints.md (define_register_constraint "wH"):
13701 (define_register_constraint "wI"): Delete.
13702 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13703 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
13704 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13705 (rs6000_init_hard_regno_mode_ok): Adjust.
13706 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
13707 resp. "d", or with "wa" as appropriate, all with "p8v".
13708 * config/rs6000/vsx.md: Ditto.
13709 * doc/md.texi (Machine Constraints): Adjust.
13711 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13713 * config/rs6000/constraints.md (define_register_constraint "wy"):
13715 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13716 RS6000_CONSTRAINT_wy.
13717 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13718 (rs6000_init_hard_regno_mode_ok): Adjust.
13719 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
13720 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
13721 (define_mode_attr Fisa): New.
13722 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
13723 * doc/md.texi (Machine Constraints): Adjust.
13725 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13727 * config/rs6000/constraints.md (define_register_constraint "wu"):
13729 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13730 RS6000_CONSTRAINT_wu.
13731 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13732 (rs6000_init_hard_regno_mode_ok): Adjust.
13733 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
13735 (define_mode_attr Fa): Delete.
13736 * config/rs6000/vsx.md: Ditto.
13737 * doc/md.texi (Machine Constraints): Adjust.
13739 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13741 * config/rs6000/constraints.md (define_register_constraint "wJ"):
13743 (define_register_constraint "wK"): Delete.
13744 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13745 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
13746 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13747 (rs6000_init_hard_regno_mode_ok): Adjust.
13748 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
13749 Replace "wK" constraint by "wH" with "p9v".
13750 * config/rs6000/vsx.md: Ditto.
13751 * doc/md.texi (Machine Constraints): Adjust.
13753 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13755 * config/rs6000/constraints.md (define_register_constraint "wb"):
13757 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13758 RS6000_CONSTRAINT_wb.
13759 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13760 (rs6000_init_hard_regno_mode_ok): Adjust.
13761 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
13762 * config/rs6000/vsx.md: Ditto.
13763 * doc/md.texi (Machine Constraints): Adjust.
13765 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13767 * config/rs6000/constraints.md (define_register_constraint "wo"):
13769 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
13770 RS6000_CONSTRAINT_wo.
13771 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
13772 (rs6000_init_hard_regno_mode_ok): Adjust.
13773 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
13774 * config/rs6000/altivec.md: Ditto.
13775 * doc/md.texi (Machine Constraints): Adjust.
13777 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
13779 * config/darwin-c.c (darwin_register_objc_includes): Do not
13780 prepend the sysroot when building gnu-runtime header search
13783 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
13785 * config/darwin.c (darwin_file_end): Use switch_to_section ()
13786 instead of direct output of the asm.
13788 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
13790 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
13791 argument to be type bool (was int before).
13792 (rs6000_emit_epilogue): Simplify some code. Declare some variables
13793 at first use. Use type bool for some variables. Fix a theoretical
13794 eh_return bug for svr4.
13796 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
13798 * config/rs6000/rs6000.md (isa): New attribute.
13799 (enabled): New attribute.
13801 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
13803 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
13804 assemble_start_function and assemble_end_function.
13806 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
13808 PR middle-end/89433
13809 * omp-general.c (oacc_verify_routine_clauses): Change formal
13810 parameters. Add checking if already marked with an OpenACC
13811 'routine' directive. Adjust all users.
13813 PR middle-end/89433
13814 * omp-general.c (oacc_build_routine_dims): Move some of its
13816 (oacc_verify_routine_clauses): ... this new function.
13817 * omp-general.h (oacc_verify_routine_clauses): New prototype.
13819 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
13821 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
13822 formating of picbase labels to match other ports.
13824 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
13826 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
13827 in the generated code.
13829 2019-05-16 Martin Sebor <msebor@redhat.com>
13831 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
13832 identifiers, keywords, operators, and types in diagnostics. Correct
13833 quoting, spelling, and sentence capitalization issues.
13834 (expand_builtin_atomic_is_lock_free): Same.
13835 (fold_builtin_next_arg): Same.
13836 * cfgexpand.c (expand_one_var): Same.
13837 (tree_conflicts_with_clobbers_p): Same.
13838 (expand_asm_stmt): Same.
13839 (verify_loop_structure): Same.
13840 * cgraphunit.c (process_function_and_variable_attributes): Same.
13841 * collect-utils.c (collect_execute): Same.
13842 * collect2.c (maybe_run_lto_and_relink): Same.
13843 (is_lto_object_file): Same.
13844 (scan_prog_file): Same.
13845 * convert.c (convert_to_real_1): Same.
13846 * dwarf2out.c (dwarf2out_begin_prologue): Same.
13847 * except.c (verify_eh_tree): Same.
13848 * gcc.c (execute): Same.
13849 (eval_spec_function): Same.
13850 (run_attempt): Same.
13851 (driver::set_up_specs): Same.
13852 (compare_debug_auxbase_opt_spec_function): Same.
13853 * gcov-tool.c (unlink_gcda_file): Same.
13855 (do_rewrite): Same.
13856 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
13857 * gimplify.c (gimplify_asm_expr): Same.
13858 (gimplify_adjust_omp_clauses): Same.
13859 * hsa-gen.c (gen_hsa_addr_insns): Same.
13860 (gen_hsa_insns_for_load): Same.
13861 (gen_hsa_cmp_insn_from_gimple): Same.
13862 (gen_hsa_insns_for_operation_assignment): Same.
13863 (gen_get_level): Same.
13864 (gen_hsa_alloca): Same.
13865 (omp_simple_builtin::generate): Same.
13866 (gen_hsa_atomic_for_builtin): Same.
13867 (gen_hsa_insns_for_call): Same.
13868 * input.c (dump_location_info): Same.
13869 * ipa-devirt.c (compare_virtual_tables): Same.
13870 * ira.c (ira_setup_eliminable_regset): Same.
13871 * lra-assigns.c (lra_assign): Same.
13872 * lra-constraints.c (lra_constraints): Same.
13873 * lto-streamer-in.c (lto_input_mode_table): Same.
13874 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
13875 (merge_and_complain): Same.
13876 (compile_offload_image): Same.
13877 (compile_images_for_offload_targets): Same.
13878 (debug_objcopy): Same.
13881 * opts.c (print_specific_help): Same.
13882 (parse_no_sanitize_attribute): Same.
13883 (print_help): Same.
13884 (handle_param): Same.
13885 * plugin.c (add_new_plugin): Same.
13886 (parse_plugin_arg_opt): Same.
13887 (try_init_one_plugin): Same.
13888 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
13889 operators, and types in diagnostics. Correct quoting and spelling
13891 * read-rtl-function.c (parse_edge_flag_token): Same.
13892 (function_reader::parse_enum_value): Same.
13893 * reg-stack.c (check_asm_stack_operands): Same.
13894 * regcprop.c (validate_value_data): Same.
13895 * sched-rgn.c (make_pass_sched_fusion): Same.
13896 * stmt.c (check_unique_operand_names): Same.
13897 * targhooks.c (default_target_option_pragma_parse): Same.
13898 * tlink.c (recompile_files): Same.
13899 * toplev.c (process_options): Same.
13900 (do_compile): Same.
13901 * trans-mem.c (diagnose_tm_1): Same.
13902 (ipa_tm_scan_irr_block): Same.
13903 (ipa_tm_diagnose_transaction): Same.
13904 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
13905 format a tree code name in a diagnostic.
13906 (verify_types_in_gimple_min_lval): Same.
13907 (verify_types_in_gimple_reference): Same.
13908 (verify_gimple_call): Same.
13909 (verify_gimple_assign_unary): Same.
13910 (verify_gimple_assign_binary): Same.
13911 (verify_gimple_assign_ternary): Same.
13912 (verify_gimple_assign_single): Same.
13913 (verify_gimple_switch): Same.
13914 (verify_gimple_label): Same.
13915 (verify_gimple_phi): Same.
13916 (verify_gimple_in_seq): Same.
13917 (verify_eh_throw_stmt_node): Same.
13918 (collect_subblocks): Same.
13919 (gimple_verify_flow_info): Same.
13920 (do_warn_unused_result): Same.
13921 * tree-inline.c (expand_call_inline): Same.
13922 * tree-into-ssa.c (update_ssa): Same.
13923 * tree.c (tree_int_cst_elt_check_failed): Same.
13924 (tree_vec_elt_check_failed): Same.
13925 (omp_clause_operand_check_failed): Same.
13926 (verify_type_variant): Same.
13927 (verify_type): Same.
13928 * value-prof.c (verify_histograms): Same.
13929 * varasm.c (assemble_start_function): Same.
13931 2019-05-16 Martin Sebor <msebor@redhat.com>
13933 * config/i386/i386-expand.c (get_element_number): Quote keywords
13934 and other internal names in diagnostics. Adjust other diagnostic
13935 formatting issues noted by -Wformat-diag.
13936 * config/i386/i386-features.c
13937 (ix86_mangle_function_version_assembler_name): Same.
13938 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
13939 * config/i386/i386.c (ix86_function_type_abi): Same.
13940 (ix86_function_ms_hook_prologue): Same.
13941 (classify_argument): Same.
13942 (ix86_expand_prologue): Same.
13943 (ix86_md_asm_adjust): Same.
13944 (ix86_memmodel_check): Same.
13946 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
13948 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
13949 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
13952 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
13955 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
13956 intrinsics without SSE/SSE2/SSSE3.
13957 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
13959 (*mmx_uavgv8qi3): Likewise.
13961 2019-05-17 Richard Biener <rguenther@suse.de>
13963 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
13964 VEC_PERM_EXPR as __VEC_PERM with -gimple.
13966 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
13968 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
13969 vec_sldw insn pattern.
13971 2019-05-17 Richard Biener <rguenther@suse.de>
13973 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
13975 2019-05-17 Martin Liska <mliska@suse.cz>
13978 * toplev.c (output_stack_usage): With LTO and sanitizer it
13979 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
13980 has no file location.
13982 2019-05-16 Jakub Jelinek <jakub@redhat.com>
13985 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
13986 sz0 is equal to sz1, instead return false in that case.
13988 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
13989 has non-constant expression, force sctx.lane and use two
13990 argument IFN_GOMP_SIMD_LANE instead of single argument.
13991 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
13992 two argument IFN_GOMP_SIMD_LANE without lhs.
13993 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
13995 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
13997 (LOOP_REQUIRES_VERSIONING): Or in
13998 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
13999 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
14001 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
14002 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
14003 from simd if clause if needed.
14005 2019-05-16 Richard Biener <rguenther@suse.de>
14007 * tree-affine.c (expr_to_aff_combination): New function split
14009 (tree_to_aff_combination): ... here.
14010 (aff_combination_expand): Avoid building a GENERIC tree.
14012 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
14014 * cgraphunit.c (cgraph_node::expand_thunk): Remove
14015 assemble_start_function and assemble_end_function calls.
14016 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
14017 assemble_start_function and assemble_end_function.
14018 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
14019 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
14020 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
14021 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
14022 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
14023 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
14024 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
14025 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
14026 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
14027 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
14028 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
14029 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
14031 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
14032 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
14033 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
14034 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
14035 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
14036 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
14037 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
14038 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
14039 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
14040 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
14041 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
14042 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
14043 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
14044 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
14046 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
14047 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
14048 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
14050 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
14052 * tree-ssa-alias.c (alias_stats): Add
14053 aliasing_component_refs_p_may_alias and
14054 aliasing_component_refs_p_no_alias.
14055 (dump_alias_stats): Print aliasing_component_refs_p stats.
14056 (aliasing_component_refs_p): Update stats.
14058 2019-05-16 Martin Liska <mliska@suse.cz>
14061 * multiple_target.c (expand_target_clones): Do not allow
14062 target_clones being used with a symbol that is an alias.
14064 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
14066 PR tree-optimization/90394
14067 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
14068 positives rather than ICE for cases where (code2 == NE_EXPR
14069 && code1 == BIT_AND_EXPR).
14071 2019-05-16 Jakub Jelinek <jakub@redhat.com>
14074 * tree-core.h (struct tree_decl_common): Document
14075 decl_nonshareable_flag for PARM_DECLs.
14076 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
14077 * calls.c (expand_call): Don't try tail call if caller
14078 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
14079 passed on the stack and callee needs to pass any arguments on the
14081 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
14082 else if instead of series of mutually exclusive ifs. Handle
14083 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
14084 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
14086 * lto-streamer.h (LTO_major_version): Bump to 9.
14088 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
14090 PR tree-optimization/90106
14091 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
14092 new parameter as new internal function call, also move it to new
14094 (use_internal_fn): Pass internal function call to
14095 shrink_wrap_one_built_in_call_with_conds.
14097 2019-05-15 Jakub Jelinek <jakub@redhat.com>
14099 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
14101 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
14102 safelen_int and set loop->dont_vectorize.
14104 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14107 * config/i386/i386-builtin.def: Enable MMX intrinsics with
14109 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
14111 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
14112 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
14113 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
14116 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14119 * config/i386/mmx.md (*vec_dupv2sf): Changed to
14120 define_insn_and_split to support SSE emulation.
14121 (*vec_extractv2sf_0): Likewise.
14122 (*vec_extractv2sf_1): Likewise.
14123 (*vec_extractv2si_0): Likewise.
14124 (*vec_extractv2si_1): Likewise.
14125 (*vec_extractv2si_zext_mem): Likewise.
14126 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
14127 (vec_extractv2sf_1 splitter): Likewise.
14128 (vec_extractv2sfsf): Likewise.
14129 (vec_setv2si): Likewise.
14130 (vec_extractv2si_1 splitter): Likewise.
14131 (vec_extractv2sisi): Likewise.
14132 (vec_setv4hi): Likewise.
14133 (vec_extractv4hihi): Likewise.
14134 (vec_setv8qi): Likewise.
14135 (vec_extractv8qiqi): Likewise.
14136 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
14137 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
14138 (vec_extractv2sisi): Likewise.
14139 (vec_extractv4hihi): Likewise.
14140 (vec_extractv8qiqi): Likewise.
14141 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
14142 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
14143 (vec_initv2sisi): Likewise.
14144 (vec_initv4hihi): Likewise.
14145 (vec_initv8qiqi): Likewise.
14146 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
14147 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
14148 (vec_setv4hi): Likewise.
14149 (vec_setv8qi): Likewise.
14151 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14154 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
14155 TARGET_MMX_WITH_SSE.
14156 (MMXMODE:*mov<mode>_internal): Likewise.
14157 (MMXMODE:movmisalign<mode>): Likewise.
14159 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
14162 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
14163 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
14164 (sse2_cvtpd2pi): Ditto.
14165 (sse2_cvttpd2pi): Ditto.
14166 (*vec_concatv2sf_sse4_1): Ditto.
14167 (*vec_concatv2sf_sse): Ditto.
14168 (*vec_concatv2si_sse4_1): Ditto.
14169 (*vec_concatv2si): Ditto.
14170 (*vec_concatv4si_0): Ditto.
14171 (*vec_concatv2di_0): Ditto.
14173 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14176 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
14178 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14181 * config/i386/sse.md (ssse3_palignrdi): Changed to
14182 define_insn_and_split to support SSE emulation.
14184 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14187 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
14189 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14192 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
14193 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
14196 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14199 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
14200 or TARGET_MMX_WITH_SSE.
14201 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
14203 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14206 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
14208 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14211 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
14212 Changed to define_insn_and_split to support SSE emulation.
14214 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14217 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
14218 Changed to define_insn_and_split to support SSE emulation.
14220 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14223 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
14224 (*mmx_<emms>): This.
14225 (mmx_<emms>): New expander.
14227 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14230 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
14232 (*sse2_umulv1siv1di3): Add SSE2 emulation.
14234 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14237 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
14239 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14242 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
14244 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14247 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
14248 TARGET_MMX_WITH_SSE.
14249 (*mmx_uavgv4hi3): Add SSE emulation.
14251 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14254 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
14255 and TARGET_MMX_WITH_SSE.
14256 (*mmx_uavgv8qi3): Add SSE emulation.
14258 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14261 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
14262 maskmovdqu for __MMX_WITH_SSE__.
14264 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14267 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
14268 TARGET_MMX and TARGET_MMX_WITH_SSE.
14269 (*mmx_umulv4hi3_highpart): Add SSE emulation.
14271 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14274 * config/i386/mmx.md (mmx_pmovmskb): Changed to
14275 define_insn_and_split to support SSE emulation.
14277 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14280 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
14281 and TARGET_MMX_WITH_SSE.
14282 (mmx_<code>v8qi3): Likewise.
14283 (smaxmin:<code>v4hi3): New.
14284 (umaxmin:<code>v8qi3): Likewise.
14285 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
14286 (umaxmin:*mmx_<code>v8qi3): Likewise.
14288 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14291 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
14292 TARGET_MMX_WITH_SSE.
14293 (*mmx_pinsrw): Add SSE emulation.
14295 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14298 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
14300 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14303 * config/i386/sse.md (sse_cvtpi2ps): Changed to
14304 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
14307 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14310 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
14311 (sse_cvttps2pi): Likewise.
14313 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14316 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
14317 TARGET_MMX_WITH_SSE.
14318 (mmx_pshufw_1): Add SSE emulation.
14319 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
14320 TARGET_MMX_WITH_SSE to support SSE emulation.
14322 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14325 * config/i386/constraints.md (Yw): New constraint.
14326 * config/i386/mmx.md (*vec_dupv2si): Changed to
14327 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
14328 support SSE emulation.
14330 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14333 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
14334 TARGET_MMX_WITH_SSE.
14335 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
14337 (mmx_gt<mode>3): Likewise.
14339 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14342 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
14343 TARGET_MMX_WITH_SSE. Add SSE support.
14345 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14348 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
14349 TARGET_MMX_WITH_SSE.
14350 (any_logic:<code><mode>3): New.
14351 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
14354 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14357 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
14358 TARGET_MMX_WITH_SSE. Add SSE emulation.
14359 (mmx_<shift_insn><mode>3): Likewise.
14360 (ashr<mode>3): New.
14361 (<shift_insn><mode>3): Likewise.
14363 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14366 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
14367 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
14369 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14372 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
14373 TARGET_MMX_WITH_SSE.
14374 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
14377 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14380 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
14381 TARGET_MMX_WITH_SSE.
14383 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
14386 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14389 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
14390 (plusminus:mmx_<plusminus_insn><mode>3): Check
14391 TARGET_MMX_WITH_SSE.
14392 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
14393 (<plusminus_insn><mode>3): New.
14394 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
14395 (*mmx_<plusminus_insn><mode>3): Likewise.
14397 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14400 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
14401 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
14403 * config/i386/mmx.m (mmx_punpckhbw): Changed to
14404 define_insn_and_split to support SSE emulation.
14405 (mmx_punpcklbw): Likewise.
14406 (mmx_punpckhwd): Likewise.
14407 (mmx_punpcklwd): Likewise.
14408 (mmx_punpckhdq): Likewise.
14409 (mmx_punpckldq): Likewise.
14411 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14412 Uros Bizjak <ubizjak@gmail.com>
14415 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
14417 (ix86_split_mmx_pack): Likewise.
14418 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
14420 (ix86_split_mmx_pack): Likewise.
14421 * config/i386/i386.md (mmx_isa): New.
14422 (enabled): Also check mmx_isa.
14423 * config/i386/mmx.md (any_s_truncate): New code iterator.
14424 (s_trunsuffix): New code attr.
14425 (mmx_packsswb): Removed.
14426 (mmx_packssdw): Likewise.
14427 (mmx_packuswb): Likewise.
14428 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
14429 MMX packsswb/packuswb with SSE2.
14430 (mmx_packssdw): Likewise.
14431 * config/i386/predicates.md (register_mmxmem_operand): New.
14433 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
14436 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14437 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
14438 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
14439 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
14440 (ix86_vector_mode_supported_p): Likewise.
14441 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
14443 2019-05-15 Martin Liska <mliska@suse.cz>
14445 PR middle-end/90478
14446 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
14447 Check for overflow.
14449 2019-05-15 Richard Biener <rguenther@suse.de>
14451 * tree-into-ssa.c (pass_build_ssa::execute): Run
14452 update_address_taken before going into SSA.
14454 2019-05-15 Richard Biener <rguenther@suse.de>
14456 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
14457 as __BIT_FIELD_REF with type with -gimple.
14459 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
14461 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
14462 semantically equivalent branches (left over after prior refactorings).
14464 2019-05-15 Richard Biener <rguenther@suse.de>
14466 PR tree-optimization/88828
14467 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
14470 2019-05-14 Richard Biener <rguenther@suse.de>
14472 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
14473 as __VIEW_CONVERT with -gimple.
14475 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
14478 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
14481 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
14483 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
14484 define_split to become a define_insn_and_split.
14486 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
14488 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
14490 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
14491 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
14492 (sibcall_epilogue): Adjust.
14493 (epilogue): Adjust.
14495 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14497 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
14498 to unsupported ones.
14499 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
14500 * config.host: Likewise.
14501 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
14502 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
14503 __svr4__]: Remove "brand" fallback.
14504 [!KSTAT_DATA_STRING]: Remove.
14505 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
14507 (comdat_group): Likewise.
14508 (set_have_as_tls): Likewise.
14509 (gcc_cv_target_dl_iterate_phdr): Likewise.
14510 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
14511 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
14512 * configure: Regenerate.
14513 * doc/install.texi: Simplify Solaris target triplets.
14514 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
14515 (Specific, *-*-solaris2*): Document Solaris 10 removal.
14516 Remove Solaris 10 references.
14517 Remove obsolete Solaris bug reference.
14518 (Specific, sparc-sun-solaris2.10): Remove.
14520 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
14522 * config/i386/i386.md (any_div): New code iterator.
14523 (paired_mod): New code attribute.
14524 (sgnprefix): Handle DIV and UDIV RTXes.
14526 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
14527 and udivmod<mode>4 patterns using any_div code iterator.
14528 (divmod splitters): Macroize splitters using any_div code iterator.
14529 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
14530 (*udivmodsi4_pow2_zext_2): Ditto.
14531 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
14532 and *udivmod<mode>4_noext patterns using any_div code iterator.
14533 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
14534 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
14535 patterns using any_div code iterator.
14536 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
14537 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
14538 patterns using any_div code iterator.
14539 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
14540 udivmodhiqi3 patterns using any_extend code iterator.
14542 2019-05-14 Richard Biener <rguenther@suse.de>
14543 H.J. Lu <hongjiu.lu@intel.com>
14545 PR tree-optimization/88828
14546 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
14547 permuting in a single non-constant element not extracted
14550 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
14552 * internal-fn.def (SIGNBIT): New.
14553 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
14555 (signbitv4sf2): Likewise.
14557 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
14560 * config/mips/mips.c (mips_split_move): Skip forward SRC into
14561 next insn when the SRC reg is dead.
14563 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
14565 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
14566 (alloc_cand_and_find_basis): Ditto.
14567 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
14568 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
14569 (create_add_imm_cand, slsr_process_cast): Ditto.
14570 (slsr_process_copy, replace_mult_candidate): Ditto.
14571 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
14572 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
14573 (pass_strength_reduction::execute): Init the first NULL element.
14575 2019-05-13 Nathan Sidwell <nathan@acm.org>
14577 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
14578 (run_attempt): Reformat line break.
14580 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
14583 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
14584 data registers in sibcall epilogues.
14585 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
14587 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
14590 * configure.ac (--enable-frame-pointer):
14591 Disable by default for cygwin and mingw.
14592 * configure: Regenerate.
14594 2019-05-13 Nathan Sidwell <nathan@acm.org>
14596 * dwarf2out.c (breakout_comdat_types): Move comment to correct
14598 (const_ok_for_output_1): Balance parens around #if/#else/#endif
14599 (gen_member_die): Move abstract origin check earlier. Only VARs
14600 can be static_inline_p. Simplify splicing control flow.
14602 2019-05-13 Richard Biener <rguenther@suse.de>
14604 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
14606 (vect_build_slp_tree_1): Likewise.
14608 2019-05-13 Richard Biener <rguenther@suse.de>
14610 PR tree-optimization/90402
14611 * tree-if-conv.c (tree_if_conversion): Value number only
14612 the loop body by making the latch an exit of the region
14614 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
14616 (do_rpo_vn): Deal with multiple edges into the entry block
14617 that are not backedges inside the region by skipping PHIs
14618 of the entry block.
14620 2019-05-13 Richard Biener <rguenther@suse.de>
14622 PR tree-optimization/90316
14623 * tree-ssa-pre.c (insert_aux): Fold into ...
14624 (insert): ... this function. Use a RPO walk to reduce the
14625 number of required iterations.
14627 2019-05-13 Martin Liska <mliska@suse.cz>
14629 PR tree-optimization/90416
14630 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
14631 string instead of passing the second part as va_arg argument.
14633 2019-05-13 Martin Liska <mliska@suse.cz>
14635 PR gcov-profile/90380
14636 * gcov.c (handle_cycle): Do not support zero cycle count,
14637 it should not be possible.
14638 (path_contains_zero_cycle_arc): New function.
14639 (circuit): Ignore zero cycle arc counts.
14641 2019-05-13 Martin Liska <mliska@suse.cz>
14643 PR gcov-profile/90380
14644 * gcov.c (enum loop_type): Remove the enum and
14646 (handle_cycle): Assert that we should not reach
14648 (circuit): Use loop_found instead of a tri-state loop_type.
14649 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
14652 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
14655 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
14656 (ix86_output_indirect_branch_via_reg): Use output mechanism
14657 accounting for __USER_LABEL_PREFIX__.
14658 (ix86_output_indirect_branch_via_push): Likewise.
14659 (ix86_output_function_return): Likewise.
14660 (ix86_output_indirect_function_return): Likewise.
14662 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
14664 * doc/md.texi: Document use of code attributes in rtx patterns.
14665 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
14666 * read-rtl.c (find_code): Split out search loops into...
14667 (maybe_find_code): ...this new function.
14668 (check_code_iterator): Make the error message more informative.
14669 (check_code_attribute): New function.
14670 (rtx_reader::rtx_alloc_for_name): Likewise.
14671 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
14672 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
14673 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
14674 <max_opp> directly as an rtx code instead of via a match_operator.
14675 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
14676 (<su>abd<mode>_3): Update accordingly.
14678 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
14680 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
14681 is given, print the state of the EH "save world" computation for
14684 2019-05-11 Jakub Jelinek <jakub@redhat.com>
14687 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
14688 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
14690 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
14692 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
14693 Use pinsrd for TARGET_SSE4_1.
14694 * config/i386/sse.md (movdi_to_sse): Ditto.
14696 2019-05-10 Richard Biener <rguenther@suse.de>
14698 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
14699 (do_rpo_vn): Initialize next_value_id.
14701 2019-05-10 Martin Liska <mliska@suse.cz>
14703 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
14706 2019-05-10 Jakub Jelinek <jakub@redhat.com>
14708 PR tree-optimization/90385
14709 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
14710 arguments of the exit phis.
14713 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
14714 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
14716 (copy_tree_body_r): Likewise.
14717 (copy_fn): Set id.do_not_fold to true.
14719 2019-05-10 Martin Liska <mliska@suse.cz>
14721 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
14722 Reapply changes from r269790.
14724 2019-05-10 Martin Liska <mliska@suse.cz>
14726 PR middle-end/90340
14727 * doc/invoke.texi: New params.
14728 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
14729 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
14730 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
14732 * tree-switch-conversion.h (struct jump_table_cluster):
14735 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
14737 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
14739 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
14741 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
14743 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
14745 PR rtl-optimization/88879
14746 * sel-sched.c (sel_target_adjust_priority): Remove assert.
14748 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
14751 * config/arm/arm.c (callee_saved_reg_p): Move before
14752 thumb_find_work_register.
14753 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
14754 thumb_find_work_register. Only call df_get_live_out once.
14755 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
14756 (thumb_find_work_register): Use
14757 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
14758 algorithms to locate a spare call clobbered reg.
14760 2019-05-09 Martin Liska <mliska@suse.cz>
14762 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
14763 and MAX_EXPR in GIMPLE FE format.
14765 2019-05-09 Martin Liska <mliska@suse.cz>
14767 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
14768 * gimple-pretty-print.c (dump_gimple_bb_header):
14770 (pp_cfg_jump): Dump edge probability.
14771 * profile-count.c (profile_quality_as_string): Simplify
14772 with a static array.
14773 (parse_profile_quality): New function.
14774 (profile_count::dump): Simplify with a static array.
14775 (profile_count::from_gcov_type): Add new argument.
14776 * profile-count.h (parse_profile_quality): Likewise.
14777 * predict.h (set_hot_bb_threshold): New.
14778 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
14780 * predict.c (get_hot_bb_threshold): Set from the new param.
14781 (set_hot_bb_threshold): New.
14783 2019-05-09 Richard Biener <rguenther@suse.de>
14785 PR tree-optimization/90395
14786 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
14787 rewrite vector stores that throw internally.
14789 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
14791 * cif-code.def (CHKP): Remove.
14794 * configure.ac (--enable-frame-pointer): Disable by default for
14796 * configure: Regenerate.
14798 2019-05-09 Alan Modra <amodra@gmail.com>
14801 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
14802 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
14803 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
14804 cost for general <-> vsx when direct moves are available.
14805 Cost union classes at minimal cost for any reg in the class.
14806 Correct calculation for moves between vsx, float, and altivec.
14807 Don't return a low cost for moves between special regs. Don't
14808 use hard coded register numbers.
14809 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
14810 (rs6000_ira_change_pseudo_allocno_class): New function.
14811 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
14812 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
14814 (movsi_internal1): Don't disparage vector alternatives.
14815 (mov<mode>_internal): Likewise, excepting alternative that
14817 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
14818 we <- b alternative.
14820 2019-05-08 Jakub Jelinek <jakub@redhat.com>
14823 PR tree-optimization/89060
14824 * tree-ssa-live.h (live_vars_map): New typedef.
14825 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
14826 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
14827 (struct compute_live_vars_data): New type.
14828 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
14829 live_vars_at_stmt, destroy_live_vars): New functions.
14830 * tree-tailcall.c: Include tree-ssa-live.h.
14831 (live_vars, live_vars_vec): New global variables.
14832 (find_tail_calls): Perform variable life analysis before punting.
14833 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
14834 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
14836 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
14837 Perform variable life analysis to select variables that really need
14839 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
14840 instead set id->eh_landing_pad_dest and assert it is the same.
14841 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
14843 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
14844 Richard Earnshaw <rearnsha@arm.com>
14847 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
14849 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
14850 (thumb1_compute_save_core_reg_mask): Don't force a spare work
14851 register if both the epilogue and prologue can use call-clobbered
14853 (thumb1_unexpanded_epilogue): Use
14854 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
14855 picking temporaries for restoring high regs to match that of the
14856 prologue where possible.
14857 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
14858 the list of work registers. Detect if the return address is still live
14859 at the end of the prologue and avoid using it for a work register if so.
14860 If the return address is not live, add LR to the list of pushable regs
14861 after the first pass.
14863 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
14865 PR tree-optimization/90078
14866 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
14867 (INFTY): Increase the value for infinite cost.
14868 (struct comp_cost): Promote type of members to int64_t.
14869 (infinite_cost): Don't set complexity in initialization.
14870 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
14871 overflows to infinite_cost.
14872 (adjust_setup_cost): Promote type of parameter and cost computation
14874 (struct ainc_cost_data, struct iv_ca): Promote type of member to
14876 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
14877 cost computation to int64_t.
14878 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
14879 int64_t's format specifier in dump.
14881 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
14883 PR tree-optimization/90240
14884 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
14885 with respect to scaling factor pre-computed for each basic block.
14886 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
14887 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
14888 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
14889 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
14890 live range for array of loop's basic blocks. Cleanup aux field of
14891 loop's basic blocks.
14893 2019-05-08 Jakub Jelinek <jakub@redhat.com>
14895 PR tree-optimization/90356
14896 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
14898 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
14900 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
14901 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
14902 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
14903 (ix86_handle_option): Handle -mavx512bf16.
14904 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
14906 * config/i386/avx512bf16vlintrin.h: New.
14907 * config/i386/avx512bf16intrin.h: New.
14908 * config/i386/cpuid.h (bit_AVX512BF16): New.
14909 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
14910 * config/i386/i386-builtin-types.def: Add new types.
14911 * config/i386/i386-builtin.def: Add new builtins.
14912 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14914 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
14915 (ix86_option_override_internal): Handle BF16.
14916 (ix86_valid_target_attribute_inner_p): Ditto.
14917 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
14918 * config/i386/i386-builtin.c (enum processor_features): Add
14920 (static const _isa_names_table isa_names_table): Ditto.
14921 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
14922 (PTA_AVX512BF16): Ditto.
14923 * config/i386/i386.opt: Add -mavx512bf16.
14924 * config/i386/immintrin.h: Include avx512bf16intrin.h
14925 and avx512bf16vlintrin.h.
14926 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
14927 avx512f_cvtneps2bf16_<mode><mask_name>,
14928 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
14929 * config/i386/subst.md (mask_half): Add new subst.
14930 * doc/invoke.texi: Document -mavx512bf16.
14932 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
14934 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
14935 Delete declaration.
14936 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
14937 (rs6000_debug_legitimize_reload_address): Delete.
14938 (rs6000_legitimize_reload_address_ptr): Delete.
14939 (rs6000_option_override_internal): Adjust.
14940 (mem_operand_gpr): Adjust comment.
14941 (legitimate_lo_sum_address_p): Ditto.
14942 (rs6000_legitimize_reload_address): Delete.
14943 (rs6000_debug_legitimize_reload_address): Delete.
14944 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
14946 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
14949 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14950 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
14951 to compute vector element selector for both constant and variable
14954 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
14956 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
14957 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
14958 ashrdi3_cvt using SWI48 mode iterator.
14960 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14962 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
14963 (aarch64_<su>abd<mode>_3): Likewise.
14964 (*aarch64_<su>abd<mode>_3): New define_insn.
14965 (<sur>sad<vsi2qi>): New define_expand.
14966 * config/aarch64/iterators.md: Added MAX_OPP attribute.
14967 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
14968 (build_vect_cond_expr): Likewise.
14970 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
14972 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
14973 clobbers outside of accessible_reg_set.
14974 * config/i386/i386.c (ix86_conditional_register_usage):
14975 Disable register sets by clearing corresponding bits in
14976 accessible_reg_set. Do not set corresponding bits in fixed_regs,
14977 call_used_regs and don't clear corresponding reg_names array members.
14979 2019-05-07 Richard Biener <rguenther@suse.de>
14981 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
14982 not specified still compute a comp_vectype for invariant
14985 2019-05-07 Richard Biener <rguenther@suse.de>
14987 PR tree-optimization/90316
14988 * tree-ssa-pre.c (translate_vuse_through_block): When
14989 same_valid is NULL do not bother to search for a virtual
14991 (phi_translate_1): When operands changed we cannot keep
14992 the same value-number so do not bother to ask whether
14993 that's possible from translate_vuse_through_block.
14995 2019-05-07 Martin Liska <mliska@suse.cz>
14997 * bitmap.c (bitmap_register): Come up with
14998 alloc_descriptor_max_uid and assign it for
15000 (register_overhead): Use get_descriptor as
15002 (release_overhead): New.
15003 (bitmap_elem_to_freelist): Call it.
15004 (bitmap_elt_clear_from): Likewise.
15005 (bitmap_obstack_free): Likewise.
15006 (bitmap_move): Sensitively release memory.
15007 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
15008 (bitmap_initialize): Initialize alloc_descriptor to zero.
15009 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
15011 2019-05-07 Richard Biener <rguenther@suse.de>
15013 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
15014 we build a SLP node. Remove max_size and limiting.
15015 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
15017 2019-05-07 Richard Biener <rguenther@suse.de>
15019 PR tree-optimization/90316
15020 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
15021 limit by reference.
15022 (walk_non_aliased_vuses): Take walking limit argument.
15023 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
15024 walking if it is reached instead of just counting.
15025 (get_continuation_for_phi): Likewise.
15026 (walk_non_aliased_vuses): Likewise, instead of leaving counter
15027 limiting to the callback.
15028 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
15029 (vn_reference_lookup_3): Likewise.
15030 (vn_reference_lookup_pieces): Likewise.
15031 (vn_reference_lookup): Likewise.
15032 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
15033 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
15034 (avail_exprs_stack::lookup_avail_expr): Likewise.
15036 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
15038 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
15039 for comparaible types in the second direction even if first one
15040 hits incomparable type.
15042 2019-05-07 Richard Biener <rguenther@suse.de>
15045 * lto-wrapper.c (debug_objcopy): Use the original filename
15046 including archive offset for the filename used for -save-temps.
15048 2019-05-07 Li Jia He <helijia@linux.ibm.com>
15050 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
15053 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
15054 Hongtao Liu <hongtao.liu@intel.com>
15058 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
15059 Modified, original implementation isn't correct.
15061 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
15063 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
15064 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
15065 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
15066 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
15067 (FRAME_POINTER_REGNUM): Change numbering.
15068 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
15069 (alt_reg_names): Adjust.
15070 (rs6000_conditional_register_usage): Don't mark hard register 64 as
15072 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
15073 (DWARF_FRAME_REGISTERS): Delete.
15074 (DWARF2_FRAME_REG_OUT): Fix whitespace.
15075 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
15077 (REG_ALLOC_ORDER): Adjust.
15078 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
15079 (REG_CLASS_CONTENTS): Adjust.
15080 (RETURN_ADDR_RTX): Change comment.
15081 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
15083 (REGISTER_NAMES): Adjust.
15084 (ADDITIONAL_REGISTER_NAMES): Adjust.
15085 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
15087 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
15089 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
15091 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
15092 (DWARF_FRAME_REGISTERS): Adjust.
15093 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
15095 (REG_ALLOC_ORDER): Adjust.
15096 (enum reg_class): Delete SPR_REGS.
15097 (REG_CLASS_NAMES): Delete SPR_REGS.
15098 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
15099 (REGISTER_NAMES): Adjust.
15100 (ADDITIONAL_REGISTER_NAMES): Adjust.
15101 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
15102 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
15103 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
15104 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
15105 (htm_spr_regno): Delete.
15106 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
15108 (rs6000_dbx_register_number): Adjust.
15110 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
15112 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
15114 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
15116 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
15117 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
15119 2019-05-06 Jakub Jelinek <jakub@redhat.com>
15121 PR tree-optimization/88709
15122 PR tree-optimization/90271
15123 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
15124 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
15125 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
15127 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
15128 of the store merging group is larger than
15129 PARAM_STORE_MERGING_MAX_SIZE parameter.
15130 (split_group): Add bzero_first argument. If set, always emit first
15131 the first store which must be = {} of the whole area and then for the
15132 rest of the stores consider all zero bytes as paddings.
15133 (imm_store_chain_info::output_merged_store): Check if first store
15134 is = {} of the whole area and if yes, determine which setting of
15135 bzero_first for split_group gives smaller number of stores. Adjust
15136 split_group callers.
15137 (lhs_valid_for_store_merging_p): Allow decls.
15138 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
15140 (pass_store_merging::process_store): Likewise.
15142 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
15145 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15146 handling of V1TImode.
15148 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
15151 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
15152 and enable_frame_pointer ...
15153 * configure.ac: ... here. Update help strings for
15154 --enable-frame-pointer.
15155 * configure: Regenerate.
15156 * config/i386/i386-options.c (ix86_option_override_internal): Remove
15157 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
15158 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
15159 (USE_X86_64_FRAME_POINTER): Ditto.
15161 2019-05-06 Martin Liska <mliska@suse.cz>
15163 * config.gcc: Append to target_gtfiles and fix indentation.
15165 2019-05-06 Richard Biener <rguenther@suse.de>
15167 PR tree-optimization/90358
15168 * tree-vect-stmts.c (get_group_load_store_type): Properly
15169 detect unused upper half of load.
15170 (vectorizable_load): Likewise.
15172 2019-05-06 Richard Biener <rguenther@suse.de>
15174 PR tree-optimization/88828
15175 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
15176 (simplify_vector_constructor): ...here. Handle constants in
15179 2019-05-06 Richard Biener <rguenther@suse.de>
15181 PR tree-optimization/90328
15182 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
15183 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
15184 is valid in the loop nest before using it.
15185 (initialize_data_dependence_relation): Adjust.
15186 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
15187 loop as loop-nest to dr_may_alias_p.
15189 2019-05-06 Richard Biener <rguenther@suse.de>
15191 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
15193 2019-05-06 Richard Biener <rguenther@suse.de>
15195 PR tree-optimization/90316
15196 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
15197 compute target on demand.
15198 (get_continuation_for_phi): Remove code walking stmts to
15199 get to a target virtual operand which could end up being
15202 2019-05-06 Martin Liska <mliska@suse.cz>
15205 * config/i386/i386-options.c (ix86_option_override_internal): Error only
15206 when -mabi is selected to a non-default version.
15208 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
15209 Martin Liska <mliska@suse.cz>
15211 * Makefile.in: Add lto-dump.texi.
15212 * cgraph.h: Add new functions get_visibility_string and
15213 get_symtab_type_string.
15214 * doc/gcc.texi: Include lto-dump section.
15215 * doc/lto-dump.texi: New file.
15216 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
15217 (parse_dump_option): Factor out this function.
15218 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
15219 (parse_dump_option): Export the function.
15220 * symtab.c (symtab_node::get_visibility_string): New function.
15221 (symtab_node::get_symtab_type_string): Likewise.
15223 2019-05-06 Martin Liska <mliska@suse.cz>
15225 * config/i386/i386-builtins.c: New file.
15226 * config/i386/i386-builtins.h: New file.
15227 * config/i386/i386-expand.c: New file.
15228 * config/i386/i386-expand.h: New file.
15229 * config/i386/i386-features.c: New file.
15230 * config/i386/i386-features.h: New file.
15231 * config/i386/i386-options.c: New file.
15232 * config/i386/i386-options.h: New file.
15233 * config.gcc: Add new files into extra_objs and
15235 * config/i386/i386.c: Split content of the file
15236 into newly introduced files.
15237 * config/i386/i386.h: Declare common variables
15239 * config/i386/t-i386: Define dependencies for new files.
15241 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
15244 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
15245 Restrict 'all' variant to 32-bit configurations.
15246 (unaligned_loadhiu): Likewise.
15247 (unaligned_storehi): Likewise.
15248 (unaligned_storesi): Likewise.
15249 (unaligned_loadhis): Disable when compiling for thumb1.
15251 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
15253 PR tree-optimization/90269
15254 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
15257 2019-05-03 Martin Liska <mliska@suse.cz>
15259 * hash-map.h: Add is_empty function.
15260 * hash-set.h: Likewise.
15261 * hash-table.h: Likewise.
15262 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
15263 elements () == 0 (and similar usages).
15264 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
15265 * gimplify.c (gimplify_bind_expr): Likewise.
15266 (gimplify_switch_expr): Likewise.
15267 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
15268 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
15269 * postreload-gcse.c (dump_hash_table): Likewise.
15270 (gcse_after_reload_main): Likewise.
15271 * predict.c (combine_predictions_for_bb): Likewise.
15272 * tree-parloops.c (reduction_phi): Likewise.
15273 (separate_decls_in_region): Likewise.
15274 (transform_to_exit_first_loop): Likewise.
15275 (gen_parallel_loop): Likewise.
15276 (gather_scalar_reductions): Likewise.
15277 (try_create_reduction_list): Likewise.
15278 * var-tracking.c (dump_vars): Likewise.
15279 (emit_notes_for_changes): Likewise.
15280 (vt_emit_notes): Likewise.
15282 2019-05-03 Richard Biener <rguenther@suse.de>
15284 PR tree-optimization/90316
15285 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
15288 2019-05-03 Richard Biener <rguenther@suse.de>
15290 * tree-vect-stmts.c (get_group_load_store_type): Avoid
15291 peeling for gaps by loading only lower halves of vectors
15293 (vectorizable_load): Likewise.
15295 2019-05-03 Richard Biener <rguenther@suse.de>
15297 PR middle-end/89518
15298 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
15300 2019-05-03 Richard Biener <rguenther@suse.de>
15302 PR middle-end/87314
15303 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
15304 Handle STRING_CST vs DECL or STRING_CST.
15306 2019-05-03 Richard Biener <rguenther@suse.de>
15308 PR tree-optimization/88963
15309 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
15310 vector loads feeding only BIT_FIELD_REFs to component
15311 loads. Rewrite stores fed by CONSTRUCTORs to component
15314 2019-05-03 Jakub Jelinek <jakub@redhat.com>
15316 * opts.h (finish_options): Remove lang_mask argument.
15317 (print_help, help_option_argument): Declare.
15318 * opts.c (print_help): Remove forward declaration, no longer static.
15319 (finish_options): Remove lang_mask argument, don't call print_help
15321 * opts-global.c (decode_options): Adjust finish_option caller, call
15324 PR tree-optimization/90303
15325 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
15326 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
15328 2019-05-03 Richard Biener <rguenther@suse.de>
15330 PR tree-optimization/89698
15331 * gimple-fold.c (canonicalize_constructor_val): Early out
15332 for constants, handle unfolded INTEGER_CSTs as they appear in
15333 C++ virtual table ctors.
15335 2019-05-03 Richard Biener <rguenther@suse.de>
15337 * passes.c (execute_function_todo): Remove dead code.
15339 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
15341 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
15342 the internal register number, for any "real" register.
15344 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
15346 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
15347 correct numbers for TFHAR, TFIAR, TEXASR.
15349 2019-05-02 Richard Biener <rguenther@suse.de>
15351 PR tree-optimization/89653
15352 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
15353 update-address-taken before the pass.
15354 * passes.def (pass_tree_loop_init): Put comment before it.
15356 2019-05-02 Richard Biener <rguenther@suse.de>
15358 PR tree-optimization/89509
15359 * tree-ssa-structalias.c (compute_dependence_clique): Look
15360 at the first subvar when determining whether it is restrict.
15362 2019-05-02 Richard Biener <rguenther@suse.de>
15364 PR tree-optimization/90273
15365 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
15366 useless debug stmts.
15368 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15370 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
15372 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
15374 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
15375 VEC_COND_EXPR be inserted to emulate a conditional internal function.
15376 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
15377 (vectorizable_reduction): Use the functions above to vectorize in a
15378 fully masked loop codes that don't have a conditional internal
15381 2019-05-02 Martin Liska <mliska@suse.cz>
15383 * cgraphclones.c: Call valid_attribute_p with 1 for
15385 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
15386 it's for target attribute.
15387 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
15388 Add new boolean argument.
15389 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
15391 (ix86_valid_target_attribute_tree): Pass target_clone_attr
15392 to ix86_valid_target_attribute_inner_p.
15393 (ix86_valid_target_attribute_p): Pass flags argument to
15394 ix86_valid_target_attribute_inner_p.
15395 (get_builtin_code_for_version): Use 0 as it's target attribute.
15397 2019-05-02 Martin Liska <mliska@suse.cz>
15399 * gcc.c (process_command): Add dummy file only
15401 * opts-global.c (decode_options): Pass lang_mask.
15402 * opts.c (print_help): New function.
15403 (finish_options): Print --help if help_option_argument
15405 (common_handle_option): Factor out content of OPT__help_
15407 * opts.h (finish_options): Add new argument.
15409 2019-05-02 Martin Liska <mliska@suse.cz>
15412 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
15413 With -minline-all-stringops use inline expansion using 4B loop.
15414 * doc/invoke.texi: Document the change of
15415 -minline-all-stringops.
15417 2019-05-01 Jeff Law <law@redhat.com>
15419 PR tree-optimization/88797
15420 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
15421 PHI feeds a conditional on the RHS of an assignment.
15423 2019-04-30 Andrew Waterman <andrew@sifive.com>
15424 Jim Wilson <jimw@sifive.com>
15426 * config/riscv/constraints.md (L): New.
15427 * config/riscv/predicates.md (lui_operand): New.
15428 (sfb_alu_operand): New.
15429 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
15430 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
15431 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
15432 * config/riscv/risc.md (type): Add sfb_alu.
15433 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
15434 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
15435 (branch_zero<mode>): Delete.
15436 (mov<mode>cc): New.
15437 (mov<GPR:mode><X:mode>cc): Likewise.
15438 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
15440 2019-04-30 Nathan Sidwell <nathan@acm.org>
15442 * tree.h (MARK_TS_EXP): New.
15444 2019-04-30 Martin Liska <mliska@suse.cz>
15446 * opts.c (enable_warning_as_error): Provide hints
15447 for unknown options.
15449 2019-04-30 Martin Liska <mliska@suse.cz>
15452 * doc/invoke.texi: Add missing dash for gas-locview-support
15453 and gno-as-locview-support.
15455 2019-04-30 Jakub Jelinek <jakub@redhat.com>
15458 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
15459 whitespace at the start of target attribute string.
15461 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15464 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
15465 Define __ARM_FEATURE_ATOMICS.
15467 2019-04-30 Martin Liska <mliska@suse.cz>
15469 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
15470 into built_in_function enum. Remove code for endp == 2 and
15471 use BUILT_IN_* constants.
15472 (gimple_fold_builtin): Call the function with fcode.
15474 2019-04-30 Martin Liska <mliska@suse.cz>
15476 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
15477 DECL_FUNCTION_CODE into ix86_builtins enum before
15478 the switch statement.
15480 2019-04-30 Jakub Jelinek <jakub@redhat.com>
15482 PR tree-optimization/89475
15483 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
15486 2019-04-30 Martin Liska <mliska@suse.cz>
15488 PR translation/90274
15489 * opts.c (print_filtered_help): Wrap string in _(...).
15491 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
15493 PR tree-optimization/90240
15495 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
15497 PR tree-optimization/90078
15498 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
15499 checks for infinite_cost overflow.
15501 2019-04-29 Jeff Law <law@redhat.com>
15503 * passes.def: Move -Wrestrict pass after copy propagation.
15505 2019-04-29 Maya Rashish <coypu@sdf.org>
15507 * config.gcc (default_gnu_indirect_function): Default to yes
15508 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
15509 sparc*-*-netbsd*, x86_64-*-netbsd*.
15511 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
15513 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
15514 where cond2 is NE_EXPR.
15515 (is_value_included_in): Update comment.
15517 2019-04-29 Richard Biener <rguenther@suse.de>
15519 PR tree-optimization/90278
15520 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
15521 EH on comparison simplification.
15523 2019-04-29 Jason Merrill <jason@redhat.com>
15525 PR c++/82081 - tail call optimization breaks noexcept
15526 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
15527 nothrow function to a might-throw function into a tail call.
15529 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
15531 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
15532 (DDR_INNER_LOOP): Likewise.
15533 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
15534 (initialize_data_dependence_relation): Likewise.
15535 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
15537 2019-04-29 Jakub Jelinek <jakub@redhat.com>
15539 PR rtl-optimization/90257
15540 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
15544 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
15548 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
15551 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
15554 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
15556 * lra-spills.c (lra_final_code_change): Remove useless move insns.
15558 2019-04-29 Richard Biener <rguenther@suse.de>
15560 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
15563 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
15565 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
15566 varasm.h, and netbsd-protos.h.
15568 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
15571 * config/i386/i386-protos.h (ix86_data_alignment): Change
15572 the second argument type to unsigned int.
15573 * config/i386/i386.c (ix86_data_alignment): Change "align"
15574 argument type to unsigned int.
15576 2019-04-27 Martin Liska <mliska@suse.cz>
15578 PR middle-end/90258
15579 * opt-suggestions.c (option_proposer::build_option_suggestions):
15580 When get_valid_option_values returns empty values, add the
15581 misspelling candidate.
15583 2019-04-26 Jim Wilson <jimw@sifive.com>
15585 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
15587 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
15588 Pass orig_mode to riscv_build_integer.
15589 (riscv_split_integer): Pass mode to riscv_move_integer.
15590 (riscv_legitimize_const_move): Likewise.
15591 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
15592 promoted_mode. Replace force_reg call with code to load constant into
15593 promoted reg and then subreg it for the store.
15594 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
15595 riscv_move_integer.
15597 2018-04-26 Eugene Sharygin <eush@ispras.ru>
15599 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
15602 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
15604 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
15605 commentary about the encoding of precision.
15607 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
15609 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
15610 * config/i386/t-freebsd64: New file.
15611 * config.gcc: Add the t-freebsd64 for multilib support.
15613 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
15615 * doc/extend.texi (vector_size): Add missing comma after @xref.
15617 2019-04-25 Jakub Jelinek <jakub@redhat.com>
15619 * BASE-VER: Set to 10.0.0.
15621 2019-04-25 Richard Biener <rguenther@suse.de>
15623 PR middle-end/89765
15624 * gimplify.c (gimplify_expr): Avoid turning a lvalue
15625 VIEW_CONVERT_EXPR into one operating on an rvalue.
15627 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
15630 * config/i386/i386.c (feature_priority): Moved to file scope.
15631 (processor_features): Likewise.
15632 (processor_model): Likewise.
15633 (_arch_names_table): Likewise.
15634 (arch_names_table): Likewise.
15635 (_feature_list): Removed.
15636 (feature_list): Likewise.
15637 (_isa_names_table): Moved to file scope. Add priority.
15638 (isa_names_table): Likewise.
15639 (get_builtin_code_for_version): Replace feature_list with
15640 isa_names_table. Update error message for P_ZERO priority.
15642 2019-04-25 Richard Biener <rguenther@suse.de>
15644 * tree-pass.h (make_pass_phi_only_cprop): Remove.
15645 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
15647 2019-04-24 Jeff Law <law@redhat.com>
15649 PR tree-optimization/90037
15650 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
15651 * passes.def: Replace all instance of phi-only cprop with the
15652 lattice propagator. Move propagation pass from after erroneous
15653 path isolation to before erroneous path isolation.
15654 * tree-ssa-phionlycprop.c: Remove.
15656 2019-04-24 Richard Biener <rguenther@suse.de>
15658 PR middle-end/90213
15659 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
15660 by size and BITS_PER_UNIT on poly-wide-ints.
15662 2019-04-25 Richard Biener <rguenther@suse.de>
15664 PR middle-end/90194
15665 * match.pd: Add pattern to simplify view-conversion of an
15668 2019-04-24 Clement Chigot <clement.chigot@atos.net>
15670 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
15671 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
15672 for Go on 32 bit AIX.
15673 * config/rs6000/aix72.h: Likewise.
15675 2019-04-24 Jakub Jelinek <jakub@redhat.com>
15678 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
15679 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
15681 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
15684 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
15685 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
15686 for restored hard frame pointer.
15687 (s390_sched_dependencies_evaluation): Implement new target hook.
15688 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
15690 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
15692 * config/arc/arc-options.def: Fix typos and spelling mistakes.
15693 * config/arc/arc.c (arc_init): Cleanup warning message.
15694 (arc_override_options): Likewise.
15696 2019-04-24 Jakub Jelinek <jakub@redhat.com>
15699 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
15700 a register if both if_true and if_false are MEMs.
15702 PR tree-optimization/90208
15703 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
15704 after labels of new_bb, not before them.
15706 PR tree-optimization/90211
15707 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
15708 which are not SSA_NAMEs.
15710 2018-04-23 Sudakshina Das <sudi.das@arm.com>
15712 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
15714 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
15716 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
15718 PR rtl-optimization/87979
15719 * modulo-sched.c (sms_schedule): Start ii value "mii" should
15722 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
15724 PR rtl-optimization/84032
15725 * modulo-sched.c (ps_insn_find_column): Change condition so that
15726 branch will always be the last insn in a row inside partial
15729 2019-04-23 Richard Biener <rguenther@suse.de>
15732 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
15733 dest_single_pred_p argument.
15734 (remove_forwarder_block): Adjust.
15735 (remove_forwarder_block_with_phi): Likewise.
15737 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15738 Bernd Edlinger <bernd.edlinger@hotmail.de>
15739 Jakub Jelinek <jakub@redhat.com>
15742 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
15743 if used with general-regs-only.
15744 (arm_conditional_register_usage): Don't add non-general regs if
15746 (arm_valid_target_attribute_rec): Handle general-regs-only.
15747 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
15749 (TARGET_HARD_FLOAT_SUB): Define.
15750 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
15751 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
15752 (TARGET_REALLY_IWMMXT2): Likewise.
15753 * config/arm/arm.opt: Add -mgeneral-regs-only.
15754 * doc/extend.texi: Document ARM general-regs-only target.
15755 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
15757 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
15759 PR tree-optimization/90078
15760 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
15761 checks for infinite_cost overflow.
15763 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
15765 PR tree-optimization/90021
15766 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
15767 and check univariate against it.
15768 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
15769 * tree-data-ref.c (add_other_self_distances): Pass new argument.
15771 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
15775 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
15778 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
15781 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
15783 * lra-spills.c (lra_final_code_change): Remove useless move insns.
15785 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
15787 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
15788 names using operand format, rather than hard-wired.
15789 (speculation_barrier): Likewise.
15791 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
15793 PR tree-optimization/88055
15794 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
15795 (gen_one_condition): Use it if !HONOR_NANS.
15797 2019-04-19 Jakub Jelinek <jakub@redhat.com>
15799 PR middle-end/90139
15800 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
15801 assign_temp instead of gen_reg_rtx.
15803 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
15805 PR translation/90118
15806 * config/aarch64/aarch64.c (aarch64_override_options_internal):
15807 Add missing space before %<.
15809 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
15811 PR rtl-optimization/87871
15812 * ira-lives.c (make_object_dead): Don't add conflicts to
15813 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
15815 2019-04-18 Martin Sebor <msebor@redhat.com>
15817 PR middle-end/89797
15818 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
15819 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
15820 assuming type size fits in SHWI.
15822 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
15825 * ipa-inline.c (flatten_function): New parameter UPDATE.
15826 (ipa_inline, early_inliner): Use it.
15828 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
15830 * fold-const.c (int_const_binop): Return early on failure.
15832 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
15834 PR middle-end/85164
15835 * combine.c (force_int_to_mode): Cast the argument rather than
15836 the result of known_alignment.
15837 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
15839 2019-04-18 Richard Biener <rguenther@suse.de>
15842 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
15844 (remove_forwarder_block): ... here.
15845 (remove_forwarder_block_with_phi): Also move debug stmts here.
15847 2019-04-18 Jakub Jelinek <jakub@redhat.com>
15849 PR translation/79183
15850 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
15851 inform where appropriate.
15853 2019-04-18 Richard Biener <rguenther@suse.de>
15855 * tree.c (get_qualified_type): Put found type variants at the
15856 head of the variant list.
15858 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
15860 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
15862 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
15865 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
15866 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
15867 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
15868 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
15869 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
15871 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
15873 * ira-conflicts.c (print_allocno_conflicts): Always print something,
15874 even for allocno's with no conflicts.
15875 (print_conflicts): Print an extra newline.
15877 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
15879 * auto-inc-dec.c (attempt_change): Set the alignment of the
15880 temporary memory to that of the original.
15882 2019-04-17 Joao Moreira <jmoreira@suse.de>
15884 * targhooks.c (default_print_patchable_function_entry): Emit
15885 __patchable_function_entries section with writable flags to allow
15886 relocation resolution.
15888 2019-04-17 Jonny Grant <jg@jguk.org>
15890 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
15892 2019-04-17 Jakub Jelinek <jakub@redhat.com>
15894 PR middle-end/90095
15895 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
15896 on lowpart SUBREGs.
15898 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
15900 * config/arc/arc.c (arc_init): Format diagnostic string.
15901 (arc_override_options): Likewise.
15902 (check_if_valid_regno_const): Likewise.
15903 (arc_reorg): Likewise.
15905 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
15908 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
15910 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
15912 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
15913 (*movdi_update1): Use Pmode.
15914 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
15915 (movdi_<mode>_update_stack): Rename to ...
15916 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
15918 (*movsi_update1): Use Pmode.
15919 (*movsi_update2): Use Pmode.
15920 (movsi_update): Rename to ...
15921 (movsi_<mode>_update): ... this. Use Pmode.
15922 (movsi_update_stack): Fix condition.
15923 (*movhi_update1): Use Pmode. Fix argument to
15924 avoiding_indexed_address_p.
15925 (*movhi_update2): Ditto.
15926 (*movhi_update3): Ditto.
15927 (*movhi_update4): Ditto.
15928 (*movqi_update1): Ditto.
15929 (*movqi_update2): Ditto.
15930 (*movqi_update3): Ditto.
15931 (*movsf_update1, *movdf_update1): Merge, rename to...
15932 (*mov<mode>_update1): This. Use Pmode. Fix argument to
15933 avoiding_indexed_address_p. Add "size" attribute.
15934 (*movsf_update2, *movdf_update2): Merge, rename to...
15935 (*mov<mode>_update2): This. Ditto.
15936 (*movsf_update3): Use Pmode. Fix argument to
15937 avoiding_indexed_address_p.
15938 (*movsf_update4): Ditto.
15939 (allocate_stack): Simplify condition. Adjust pattern names.
15941 2019-04-17 Jakub Jelinek <jakub@redhat.com>
15944 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
15945 whitespace at the start of target attribute string.
15947 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
15950 * config/rs6000/power9.md: Add store forwarding bypass.
15952 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
15955 * valtrack.c (dead_debug_insert_temp): Reset debug references
15956 to the return value of a call being removed.
15958 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
15960 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
15961 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
15962 implement target hook.
15963 (arc_memory_move_cost): New function.
15964 (TARGET_REGISTER_MOVE_COST): Define.
15965 (TARGET_MEMORY_MOVE_COST): Likewise.
15966 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
15967 (MEMORY_MOVE_COST): Likewise.
15969 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
15971 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
15972 (sibcall_value_insn): Likewise.
15973 * config/arc/constraints.md (Rs5): Remove.
15975 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
15977 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
15978 for last two fake registers.
15979 (arc_conditional_register_usage): Make sure fake frame and arg
15980 pointer regs are in general regs class.
15981 (FRAME_POINTER_MASK): Remove.
15982 (RETURN_ADDR_MASK): Remove.
15983 (arc_must_save_register): Use hard frame regnum.
15984 (frame_restore_reg): Use hard_frame_pointer_rtx.
15985 (arc_save_callee_saves): Likewise.
15986 (arc_restore_callee_saves): Likewise.
15987 (arc_save_callee_enter): Likewise.
15988 (arc_restore_callee_leave): Likewise.
15989 (arc_save_callee_milli): Likewise.
15990 (arc_eh_return_address_location): Likewise.
15991 (arc_check_multi): Use hard frame regnum.
15992 (arc_can_eliminate): Likewise.
15993 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
15994 for register allocator.
15995 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
15996 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
15997 (FRAME_POINTER_REGNUM): Change it to a fake register.
15998 (HARD_FRAME_POINTER_REGNUM): Defined.
15999 (ARG_POINTER_REGNUM): Change it to a new fake register.
16000 (ELIMINABLE_REGS): Update.
16001 (REGISTER_NAMES): Update names.
16002 * config/arc/arc.md (LP_START): Remove.
16003 (LP_END): Likewise.
16004 (shift_si3_loop): Update pattern.
16006 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
16008 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
16009 to avoid delay slot scheduling.
16010 (arc_must_save_register): Don't save SP.
16011 * config/arc/arc.md (stack_tie): Remove.
16012 (UNSPEC_ARC_STKTIE): Likewise.
16014 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
16015 Shiva Chen <shiva0217@gmail.com>
16017 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
16018 code gen with large shift amount.
16020 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
16022 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
16025 2019-04-16 Jakub Jelinek <jakub@redhat.com>
16028 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
16029 print -m64/-mx32/-m32 if it is true.
16030 (ix86_debug_options, ix86_function_specific_print): Pass true as
16031 ADD_ABI_P to ix86_target_string.
16032 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
16033 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
16034 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
16036 PR rtl-optimization/90082
16037 * dce.c (can_delete_call): New function.
16038 (deletable_insn_p, mark_insn): Use it.
16040 PR tree-optimization/90090
16041 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
16043 (is_division_by_square): Likewise. Formatting fix.
16045 2019-04-16 Richard Biener <rguenther@suse.de>
16047 PR tree-optimization/56049
16048 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
16049 equality check if alias-set zero will prevail.
16051 2019-04-15 Jeff Law <law@redhat.com>
16053 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
16054 size and alignment as unsigned.
16056 2019-04-15 Richard Biener <rguenther@suse.de>
16059 * tree-loop-distribution.c (destroy_loop): Preserve correct
16062 2019-04-15 Richard Biener <rguenther@suse.de>
16064 PR tree-optimization/90071
16065 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
16066 abnormal operands from def stmts.
16068 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
16070 PR rtl-optimization/89794
16071 * combine.c (count_auto_inc): New function.
16072 (try_combine): Count how many auto_inc expressions there were in the
16073 original instructions. Ensure we have the same number in the new
16074 instructions. Remove the code that tried to ensure auto_inc side
16075 effects on i1 and i0 are not lost.
16077 2019-04-15 Richard Biener <rguenther@suse.de>
16080 * tree.h (auto_var_p): Declare.
16081 * tree.c (auto_var_p): New function, split out from ...
16082 (auto_var_in_fn_p): ... here.
16083 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
16085 (new_var_info): Initialize it.
16086 (set_uids_in_ptset): Also set the shadow variable uid if required.
16087 (ipa_pta_execute): Postprocess points-to solutions assigning
16088 shadow variable uids for locals that may reach their containing
16089 function recursively.
16090 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
16091 assert but instead check whether the points-to solution is
16094 2019-04-15 Martin Jambor <mjambor@suse.cz>
16097 * cgraph.c (clone_of_p): Loop over clone chain for each step in
16100 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
16102 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
16104 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
16105 Kito Cheng <kito.cheng@gmail.com>
16106 Shiva Chen <shiva0217@gmail.com>
16108 * config/nds32/nds32-md-auxiliary.c
16109 (nds32_legitimize_pic_address): Use new PIC pattern.
16110 (nds32_legitimize_tls_address): Use new TLS pattern.
16111 (nds32_output_symrel): New.
16112 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
16113 (nds32_alloc_relax_group_id): Ditto.
16114 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
16115 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
16117 (nds32_group_tls_insn): Ditto.
16118 (nds32_group_float_insns): Ditto.
16119 * config/nds32/nds32.md (tls_le): New.
16122 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
16124 * configure: Add nds32 target for dwarf2 debug_line checking.
16125 * configure.ac: Regenerated.
16127 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
16130 * ipa-devirt.c (skip_in_fields_list_p): New.
16131 (odr_types_equivalent_p): Use it.
16133 2019-04-13 Jakub Jelinek <jakub@redhat.com>
16136 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
16137 instead of strncmp when checking for thumb and arm. Formatting fixes.
16139 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
16141 * doc/install.texi: Document --with-target-system-zlib.
16143 2019-04-12 Martin Sebor <msebor@redhat.com>
16149 * targhooks.c (default_vector_alignment): Avoid assuming
16150 argument fits in SHWI.
16151 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
16152 a shift expression.
16153 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
16155 2019-04-12 Jakub Jelinek <jakub@redhat.com>
16157 PR rtl-optimization/89965
16158 * dce.c: Include rtl-iter.h.
16159 (struct check_argument_load_data): New type.
16160 (check_argument_load): New function.
16161 (find_call_stack_args): Check for loads from stack slots still tracked
16162 in sp_bytes and punt if any is found.
16164 * config/mips/loongson-mmiintrin.h: Fix up #error message.
16166 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
16168 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
16169 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
16171 2019-04-12 Martin Liska <mliska@suse.cz>
16173 PR middle-end/89970
16174 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
16176 (separate_attrs): Handle multiple 'default's.
16177 (expand_target_clones): Rework error handling code.
16179 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
16182 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
16183 mode of vector rather than mode of destination for move instruction.
16184 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
16185 Use QI inner mode with V16QI vector mode.
16187 2019-04-12 Jakub Jelinek <jakub@redhat.com>
16190 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
16191 "invalid %%t operand" in output_operand_lossage message.
16193 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
16195 * config/s390/predicates.md (permute_pattern_operand): New
16197 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
16198 operand for the permute pattern.
16199 ("*vec_perm<mode>"): New insn definition.
16200 ("bswap<mode>"): Generate the permute pattern operand in the
16201 expander and perform the operand reloads for pre arch13 level
16203 ("*bswap<mode>_emu"): Rename to ...
16204 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
16205 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
16206 Add the USE operand for the permute pattern.
16207 ("*vec_set_bswap_vec<mode>"): Likewise.
16209 2019-04-12 Jakub Jelinek <jakub@redhat.com>
16212 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
16213 and gcc_unreachable if it fails, just call tree_to_uhwi which
16214 verifies that too. Test TREE_CHAIN instead of list_length > 1.
16215 Start warning message with a lower-case letter. Formatting fixes.
16217 PR rtl-optimization/90026
16218 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
16219 successors, look for BARRIERs inside of the whole BB_FOOTER chain
16220 rather than just at the start of it. If e->src BB_FOOTER is not NULL
16221 in cfglayout mode, use emit_barrier_after_bb.
16223 2018-04-11 Steve Ellcey <sellcey@marvell.com>
16225 PR rtl-optimization/87763
16226 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
16229 2019-04-11 Tom de Vries <tdevries@suse.de>
16231 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
16232 max macro using statement expression.
16234 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
16236 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
16237 * xcoffout.c (xcoff_private_rodata_section_name): Define.
16238 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
16239 read_only_private_data_section using xcoff_private_rodata_section_name.
16240 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
16242 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
16245 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
16247 2019-04-11 Jakub Jelinek <jakub@redhat.com>
16249 PR rtl-optimization/89965
16250 * dce.c (sp_based_mem_offset): New function.
16251 (find_call_stack_args): Use sp_based_mem_offset.
16253 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
16255 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
16257 2019-04-11 Richard Biener <rguenther@suse.de>
16259 PR tree-optimization/90020
16260 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
16261 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
16262 * tree-ssa-pre.c (compute_avail): Use it to not put
16263 possibly trapping references after a call that might not
16264 return into EXP_GEN.
16265 * gcse.c (compute_hash_table_work): Do not elide
16266 marking a block containing a call if the call might not
16269 2019-04-11 Richard Biener <rguenther@suse.de>
16271 PR tree-optimization/90018
16272 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
16273 Test both SLP and interleaving variants.
16275 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
16277 * config/s390/8561.md: New file.
16278 * config/s390/driver-native.c (s390_host_detect_local_cpu):
16279 Add arch13 cpu model.
16280 * config/s390/s390-opts.h (enum processor_type): Likewise.
16281 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
16282 (s390_get_unit_mask): Likewise.
16283 (s390_is_fpd): Likewise.
16284 (s390_is_fxd): Likewise.
16285 * config/s390/s390.h (s390_tune_attr): Likewise.
16286 * config/s390/s390.md: Include arch13 pipeline description.
16287 * config/s390/s390.opt: Add arch13.
16289 2018-04-10 Steve Ellcey <sellcey@marvell.com>
16291 PR rtl-optimization/87763
16292 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
16294 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
16296 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
16298 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
16299 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
16300 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
16301 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
16303 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
16305 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
16306 "Although" in -fipa-icf documentation.
16308 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
16309 of using multiple -g options.
16311 2019-04-10 Martin Liska <mliska@suse.cz>
16313 PR gcov-profile/89959
16314 * doc/gcov.texi: Make documentation of -x option
16317 2019-04-10 Richard Biener <rguenther@suse.de>
16319 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
16321 (DR_GROUP_SAME_DR_STMT): Remove.
16322 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
16323 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
16324 replace with assert.
16325 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
16326 (vect_record_grouped_load_vectors): Remove unreachable code.
16328 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
16331 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
16332 obsolete reference to N.
16334 2019-04-10 Jakub Jelinek <jakub@redhat.com>
16336 PR middle-end/90025
16337 * expr.c (store_expr): Set properly size on the MEM passed to
16341 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
16342 with strlen in between hostsz-3 and hostsz-1 inclusive when no
16343 translation is needed, and when translation is needed, only append
16344 ... if the string length is hostsz or more bytes long. Avoid using
16347 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
16350 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
16351 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
16353 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
16354 differences directly.
16355 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
16357 2019-04-09 Jakub Jelinek <jakub@redhat.com>
16359 PR translation/90011
16360 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
16362 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
16364 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
16365 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
16366 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
16367 trailing space from -gsplit-dwarf diagnostics.
16369 PR tree-optimization/89998
16370 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
16371 instead of integer_type_node if possible, don't add ranges if return
16372 type is not compatible with int.
16373 * gimple-fold.c (gimple_fold_builtin_sprintf,
16374 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
16377 2019-04-09 Martin Liska <mliska@suse.cz>
16379 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
16380 * doc/install.texi: Document the new config.
16382 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
16384 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
16385 use gimple_expr_type for load and store calls. Skip over the
16386 condition argument in a conditional internal function.
16387 Protect use of TREE_INT_CST_LOW.
16389 2019-04-09 Jakub Jelinek <jakub@redhat.com>
16392 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
16393 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
16394 trailing period from it too.
16396 2019-04-08 wu yuan <wuyuan5@huawei.com>
16398 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
16399 * config/aarch64/aarch64.md : Add "tsv110.md"
16400 * config/aarch64/tsv110.md: New file.
16402 2019-04-08 Richard Biener <rguenther@suse.de>
16404 PR tree-optimization/90006
16405 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
16408 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
16411 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
16413 (fma_root_node): Likewise.
16414 (func_fma_steering): Likewise.
16416 2019-04-08 Jakub Jelinek <jakub@redhat.com>
16418 PR rtl-optimization/89865
16419 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
16421 PR rtl-optimization/89865
16422 * config/i386/i386.md
16423 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
16424 numbers not to clash with the additional operands[4].
16425 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
16426 with extra register copy in the middle.
16428 2019-04-08 Martin Liska <mliska@suse.cz>
16430 PR gcov-profile/89961
16431 * doc/gcov.texi: Document data_file.
16432 * gcov.c (generate_results): Add data_info into JSON output.
16434 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
16436 PR tree-optimization/89725
16437 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
16438 loop's chrec as invariant symbol.
16439 * tree-chrec.h (chrec_contains_symbols): New parameter.
16440 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
16441 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
16442 function of loops not in DDR's loop_nest.
16443 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
16445 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
16448 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
16451 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
16454 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
16455 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
16457 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
16459 * sched-deps.c (sched_macro_fuse_insns): Check return value of
16460 targetm.fixed_condition_code_regs.
16462 2019-04-05 Richard Biener <rguenther@suse.de>
16466 * tree-cfgcleanup.c (remove_forwarder_block): Always move
16467 debug bind stmts but reset them if they are not valid at the
16470 2019-04-05 Martin Liska <mliska@suse.cz>
16472 PR translation/89936
16473 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
16474 order to wrap keywords or arguments.
16475 * collect2.c (main): Likewise.
16476 (scan_prog_file): Likewise.
16477 (scan_libraries): Likewise.
16478 * common/config/riscv/riscv-common.c
16479 (riscv_subset_list::parsing_subset_version): Likewise.
16480 (riscv_subset_list::parse_std_ext): Likewise.
16481 * config/aarch64/aarch64.c (aarch64_override_options_internal):
16483 * config/arm/arm.c (arm_option_override): Likewise.
16484 * config/cris/cris.c (cris_print_operand): Likewise.
16485 * config/darwin-c.c (darwin_pragma_options): Likewise.
16486 (darwin_pragma_unused): Likewise.
16487 (darwin_pragma_ms_struct): Likewise.
16488 * config/ft32/ft32.c (ft32_print_operand): Likewise.
16489 * config/i386/i386.c (print_reg): Likewise.
16490 (ix86_print_operand): Likewise.
16491 * config/i386/xm-djgpp.h: Likewise.
16492 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
16493 * config/m32c/m32c.c (m32c_option_override): Likewise.
16494 * config/msp430/msp430.c (msp430_option_override): Likewise.
16495 * config/nds32/nds32.c (nds32_option_override): Likewise.
16496 * config/nvptx/mkoffload.c (main): Likewise.
16497 * config/rx/rx.c (rx_print_operand): Likewise.
16498 (valid_psw_flag): Likewise.
16499 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
16500 (vms_pragma_nomember_alignment): Likewise.
16501 (vms_pragma_extern_model): Likewise.
16502 * lto-wrapper.c (compile_offload_image): Likewise.
16503 * omp-offload.c (oacc_parse_default_dims): Likewise.
16504 * symtab.c (symtab_node::verify_base): Likewise.
16505 * tlink.c (recompile_files): Likewise.
16506 (start_tweaking): Likewise.
16507 * tree-profile.c (parse_profile_filter): Likewise.
16509 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
16511 PR tree-optimization/89956
16512 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
16513 multiple negates of the same value.
16515 2019-04-04 Martin Sebor <msebor@redhat.com>
16517 PR middle-end/89957
16518 PR middle-end/89911
16519 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
16520 have the same precision since the function crashes otherwise.
16521 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
16522 has non-zero arguments.
16524 2019-04-04 Martin Sebor <msebor@redhat.com>
16526 PR middle-end/89934
16527 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
16528 out if the number of arguments is less than expected.
16530 2019-04-04 Jeff Law <law@redhat.com>
16532 PR rtl-optimization/89399
16533 * ree.c (combine_set_extension): Use single_set rather than
16534 digging into PATTERN for items on the candidate list.
16535 (combine_reaching_defs): Likewise.
16537 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
16539 PR rtl-optimization/46590
16540 * loop-invariant.c (find_defs): Move df_remove_problem and
16541 df_process_deferred_rescans to move_invariants.
16542 Move df_live_add_problem and df_live_set_all_dirty calls
16543 to move_invariants.
16544 (move_invariants): Likewise.
16545 (move_loop_invariants): Likewise, making the df_live calls
16546 conditional on -O. Remove the problem again if we added it
16549 2019-04-03 qing zhao <qing.zhao@oracle.com>
16551 PR tree-optimization/89730
16552 * ipa-inline.c (can_inline_edge_p): Delete the checking for
16553 -flive-patching=inline-only-static.
16554 (can_inline_edge_by_limits_p): Add the checking for
16555 -flive-patching=inline-only-static and grant always_inline
16556 even when -flive-patching=inline-only-static is specified.
16558 2019-04-03 Jeff Law <law@redhat.com>
16560 PR rtl-optimization/81025
16561 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
16563 2019-04-03 Richard Biener <rguenther@suse.de>
16565 PR tree-optimization/84101
16566 * tree-vect-stmts.c: Include explow.h for hard_function_value,
16567 regs.h for hard_regno_nregs.
16568 (cfun_returns): New helper.
16569 (vect_model_store_cost): When vectorizing a store to a decl
16570 we return and the function ABI returns in a multi-reg location
16571 account for the possible spilling that will happen.
16573 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
16575 * config/s390/s390.c (s390_legitimate_address_p): Reject long
16576 displacement addresses for vector mode operands.
16578 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
16580 * config/arc/arc.c (GMASK_LEN): Define.
16581 (arc_restore_callee_saves): Restore first blink when
16584 2019-04-03 Sudakshina Das <sudi.das@arm.com>
16586 * doc/extend.texi: Add deprecated comment on sign-return-address
16587 function attribute and add mbranch-protection.
16588 * doc/invoke.texi: Add bti to the options for mbranch-protection.
16590 2019-04-03 Richard Biener <rguenther@suse.de>
16593 * lto-wrapper.c (run_gcc): Avoid implicit rules making
16594 the all target phony.
16596 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
16600 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
16601 Return false for variable DImode shifts.
16602 (dimode_scalar_chain::compute_convert_gain): Do not handle
16603 register count operand in variable DImode shifts.
16604 (dimode_scalar_chain::make_vector_copies): Remove support to copy
16605 count argument of a variable shift instruction to a vector register.
16606 (dimode_scalar_chain::convert_reg): Remove support to convert
16607 count argument of a variable shift instruction.
16609 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
16611 PR rtl-optimization/84206
16612 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
16613 iterating over loop headers.
16615 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
16617 PR rtl-optimization/85876
16618 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
16619 beyond the original fence.
16621 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
16623 * config.gcc: Mark spu* targets as deprecated/obsolete.
16625 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16627 * config/s390/s390-builtin-types.def: New builtin function type
16628 definitions. Remove unused types.
16629 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
16630 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
16631 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
16632 overloaded builtins.
16633 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
16634 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
16635 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
16636 (vec_double, vec_signed, vec_unsigned): Define to use the new
16637 overloaded builtins.
16638 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
16641 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16643 * config/s390/s390-builtin-types.def: New builtin function type
16645 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
16646 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
16647 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
16648 (s390_vstrszh, s390_vstrszf): New low-level builtins.
16649 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
16650 constant definitions.
16651 * config/s390/vecintrin.h (vec_search_string_cc)
16652 (vec_search_string_until_zero_cc): New builtin name definitions.
16653 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
16655 ("vec_vstrs<mode>"): New insn definition.
16657 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16659 * config/s390/s390-builtin-types.def: Add new builtin function
16661 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
16662 New overloaded builtins.
16663 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
16665 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
16666 (UNSPEC_VEC_SLDBYTE): ... this.
16667 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
16668 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
16670 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
16671 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
16672 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
16674 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16676 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
16677 New insn definition.
16678 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
16679 * config/s390/vector.md (V_HW_HSD): ... here.
16681 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16683 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
16684 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
16685 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
16686 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
16687 New insn definitions.
16689 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16691 * config/s390/s390-builtin-types.def: Add new builtin function type.
16692 * config/s390/s390-builtins.def: Add overloaded builtin
16693 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
16694 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
16695 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
16696 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
16697 ("eltswap<mode>"): New expander.
16698 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
16701 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16703 * config/s390/s390-builtin-types.def: Add new builtin function types.
16704 * config/s390/s390-builtins.def: Add overloaded builtin
16705 s390_vec_revb. Add low-level builtins for vlbr and vstbr
16707 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
16708 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
16709 ("bswap<mode>"): New expander.
16710 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
16712 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16714 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
16715 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
16716 vector builtin version number in __VEC__.
16718 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16720 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
16722 (SFSI): New mode attribute.
16723 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
16724 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
16726 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
16727 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
16728 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
16729 ("floatsi<mode>2"): Add wcefb instruction.
16731 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16733 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
16734 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
16736 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
16737 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
16738 support 32 bit fp-int conversions. Rename to ...
16739 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
16740 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
16741 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
16742 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
16745 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16747 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
16748 if-then-else constructs if we can use the select instruction.
16749 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
16751 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16753 * config/s390/s390.md ("*popcountdi_arch13_cc")
16754 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
16756 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
16757 Append _z196 to make it ...
16758 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
16759 ("popcounthi2_z196"): ... this.
16760 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
16761 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
16763 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16765 * config/s390/s390.c (s390_canonicalize_comparison): Convert
16766 certain compares for arch13 in order to make use of the condition
16767 code result produced by the new instructions.
16768 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
16769 nxrk, and nxgrk instruction patterns.
16770 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
16771 (inv_no): Add new code iterator together with some attributes.
16772 ("*andc_split_<mode>"): Disable splitter for arch13.
16773 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
16774 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
16775 ("*<ANDOR:bitops_name>c<GPR:mode>")
16776 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
16777 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
16778 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
16779 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
16781 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
16783 * common/config/s390/s390-common.c (processor_flags_table): New
16785 * config.gcc: Support arch13 with the --with-arch= configure flag.
16786 * config/s390/driver-native.c (s390_host_detect_local_cpu):
16787 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
16788 * config/s390/s390.c (s390_get_sched_attrmask)
16789 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
16790 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
16791 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
16792 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
16793 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
16795 * config/s390/s390.opt: Support arch13 as processor type in
16796 command line options.
16798 2019-04-02 Martin Liska <mliska@suse.cz>
16800 PR translation/89912
16801 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
16802 Fix param description of graphite-max-arrays-per-scop.
16804 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
16806 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
16807 (ASAN_CC1_SPEC): Use it in 64-bit mode.
16808 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
16810 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
16812 PR rtl-optimization/85412
16813 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
16814 sel_sched_region_1, not after.
16816 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
16818 PR rtl-optimization/86928
16819 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
16820 compute_live if necessary.
16821 (sel_redirect_edge_and_branch): Likewise.
16823 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
16825 PR rtl-optimization/89865
16826 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
16827 register if it is a part of small class.
16829 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
16831 PR rtl-optimization/87273
16832 * sel-sched-ir.c (merge_fences): Remove assert.
16834 2019-04-01 Richard Biener <rguenther@suse.de>
16836 PR tree-optimization/46590
16837 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
16838 (dom_walker::m_reachability): Add in place of...
16839 (dom_walker::m_skip_unreachable_blocks): ...this.
16840 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
16841 Move complex initialization ...
16842 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
16843 lazily and initialize edge flags on each invocation.
16844 (dom_walker::bb_reachable): Use m_reachability.
16846 2019-04-01 Martin Liska <mliska@suse.cz>
16849 * opt-suggestions.c (option_proposer::build_option_suggestions):
16850 Add variant without any argument in order to provide better
16853 2019-04-01 Richard Biener <rguenther@suse.de>
16856 * gimple.c: Include langhooks.h.
16857 (gimple_get_alias_set): Treat enumeral types as the underlying
16860 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16861 Eric Botcazou <ebotcazou@adacore.com>
16863 PR rtl-optimization/89862
16864 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
16865 that operates on the full registers for WORD_REGISTER_OPERATIONS
16868 2019-03-29 Jim Wilson <jimw@sifive.com>
16870 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
16871 Clear MASK_RVC and then set if C subset supported.
16873 2019-03-29 Jakub Jelinek <jakub@redhat.com>
16876 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
16877 non-addressable complit into its initializer if it is volatile.
16879 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
16881 * opts-common.c (integral_argument): Set errno properly in one case.
16883 2019-03-29 Martin Liska <mliska@suse.cz>
16885 * doc/invoke.texi: Remove -Wchkp from documentation.
16887 2019-03-29 Martin Liska <mliska@suse.cz>
16889 * dbgcnt.c (print_limit_reach): New function.
16892 2019-03-29 Martin Liska <mliska@suse.cz>
16894 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
16895 (dbg_cnt_process_opt): Parse first tokens aas
16896 dbg_cnt_process_single_pair is also using strtok.
16898 2019-03-29 Jakub Jelinek <jakub@redhat.com>
16900 PR rtl-optimization/87485
16901 * function.c (expand_function_end): Move stack_protect_epilogue
16902 before loading of return value into hard register(s).
16904 2019-03-28 Jakub Jelinek <jakub@redhat.com>
16906 PR middle-end/89621
16907 * tree-inline.h (struct copy_body_data): Add
16908 dont_remap_vla_if_no_change flag.
16909 * tree-inline.c (remap_type_3, remap_type_2): New functions.
16910 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
16911 and remap_type_2 returns false.
16912 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
16913 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
16914 only from where it is copied to nested contexts.
16916 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
16919 * config/i386/i386.md (RMW operation with LEA peephole):
16920 Use LEAMODE mode attribute instead of SWI mode iterator for
16923 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
16926 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
16927 Also process XEXP (src, 0) of a shift insn.
16929 2019-03-28 David Malcolm <dmalcolm@redhat.com>
16931 PR middle-end/89725
16932 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
16933 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
16935 2019-03-28 Jakub Jelinek <jakub@redhat.com>
16937 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
16939 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
16940 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
16941 immediately after first one with df_analyze in between, but rather
16942 process all bbs, queueing ones that need second pass in a worklist,
16943 df_analyze, process queued debug insn changes and if second pass is
16944 needed, process bbs from worklist, df_analyze, process queued debug
16947 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
16948 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
16949 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
16951 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
16954 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
16957 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
16960 * config/i386/i386.c (ix86_function_value_1): Call the newly added
16961 function for 32-bit MS_ABI.
16962 (function_value_ms_32): New function.
16964 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
16966 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
16967 (movdi): Call gen_movdi_symbol_save_scc.
16968 (gen_movdi_symbol_save_scc): New insn and split.
16970 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
16972 PR rtl-optimization/89313
16973 * function.c (matching_constraint_num): New static function.
16974 (match_asm_constraints_1): Use it. Fixup white space and comment.
16975 Don't replace inputs with non-matching constraints which conflict
16976 with early clobber outputs.
16978 2019-03-27 Jeff Law <law@redhat.com>
16980 PR rtl-optimization/87761
16981 PR rtl-optimization/89826
16982 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
16984 (pass_cprop_hardreg::execute): Call df_analyze after adding the
16985 note problem to get REG_DEAD/REG_UNUSED notes updated.
16987 2019-03-27 Richard Biener <rguenther@suse.de>
16989 PR tree-optimization/89463
16990 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
16991 queue edges to remove.
16992 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
16993 dead stmts. Delay edge removal until PHIs are removed to
16994 make debug-stmt creation not confused by seemingly degenerate
16997 2019-03-27 Alan Modra <amodra@gmail.com>
16999 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
17001 * config/rs6000/darwin.h: Likewise.
17002 * config/rs6000/rs6000.c: Likewise.
17004 2019-03-27 Alan Modra <amodra@gmail.com>
17006 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
17007 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
17009 2019-03-26 Andrew Waterman <andrew@sifive.com>
17010 Jim Wilson <jimw@sifive.com>
17012 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
17013 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
17014 (generic_idivdi, generic_fmul_single, generic_fmul_double)
17015 (generic_fdiv, generic_fsqrt): Add check for generic tune.
17016 (generic_alu): Add auipc to type list.
17017 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
17018 (riscv_microarchitecture): Declare.
17019 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
17020 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
17022 (riscv_microarchitecture): New.
17023 (sifive_7_tune_info): New.
17024 (riscv_cpu_info_table): Add microarchitecture value for rocket and
17025 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
17027 (riscv_store_data_bypass_p): New.
17028 (riscv_option_override): Set riscv_microarchitecture from
17029 cpu->microarchitecture.
17030 * config/riscv/riscv.md: Include sifive-7.md.
17033 (auipc<mode>): Change type to auipc.
17034 (restore_stack_nonlocal): New.
17035 * config/riscv/sifive-7.md: New.
17036 * doc/invoke.texi (RISC-V Options): Update mtune docs.
17038 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
17041 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
17042 Also process XEXP (src, 0) of a shift insn.
17044 2019-03-26 Richard Biener <rguenther@suse.de>
17046 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
17047 (copy_debug_stmt): Likewise.
17048 (expand_call_inline): Likewise.
17049 (copy_bb): Avoid redundant lookup & set of gimple_block.
17050 * gimple-low.c (lower_gimple_return): Likewise.
17051 (lower_builtin_setjmp): Likewise.
17053 2019-03-26 Jakub Jelinek <jakub@redhat.com>
17055 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
17056 is constant 0, turn into static const data member initialized to false.
17057 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
17058 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
17060 2019-03-26 Jason Merrill <jason@redhat.com>
17061 Jakub Jelinek <jakub@redhat.com>
17063 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
17065 (mem_alloc_description::release_object_overhead): Fix comment typos.
17066 * hash-table.h (hash_table::~hash_table): Call
17067 release_instance_overhead only if m_entries is non-NULL, otherwise
17068 call unregister_descriptor.
17070 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
17072 PR tree-optimization/81740
17073 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17074 In case of outer loop vectorization, check for backward dependence
17075 at the inner loop if outer loop dependence is reversed.
17077 2019-03-26 Alan Modra <amodra@gmail.com>
17079 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
17080 rs6000_vector_mem init. Correct wI and wJ comment.
17082 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
17084 PR rtl-optimization/88347
17085 PR rtl-optimization/88423
17086 * sched-deps.c (sched_analyze_insn): Take into account that for
17087 tablejumps the barrier appears after a label and a jump_table_data.
17089 2019-03-25 Martin Sebor <msebor@redhat.com>
17092 * c-common.c (check_user_alignment): Rename local. Correct maximum
17093 alignment in diagnostic. Avoid assuming argument fits in SHWI,
17094 convert it to UHWI when it fits.
17096 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
17099 * dwarf2out.c (premark_used_variables): New function.
17100 (prune_unused_types_walk): Do not mark not premarked external
17102 (prune_unused_types): Call premark_used_variables.
17104 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
17106 PR rtl-optimization/89676
17107 * lra-constraints.c (curr_insn_transform): Do match reload for
17108 early clobbers when the match was successful only for different
17111 2019-03-25 Martin Sebor <msebor@redhat.com>
17113 * doc/extend.texi (Common Type Attributes): Document vector_size.
17114 (Common Variable Attributes): Mention size constraint. Correct
17116 (Vector Extensions): Use @dfn when defining bas type. Clarify
17117 base type and size constraints.
17119 2019-03-25 Richard Biener <rguenther@suse.de>
17121 PR tree-optimization/89789
17122 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
17123 changes from non-undefined back to undefined.
17125 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
17127 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
17128 heap string and a gc string, but since this variable is unknown to
17129 ggc the gc string might get reused and corrupted. Fixed by always
17130 using a heap string.
17132 2019-03-25 Richard Biener <rguenther@suse.de>
17134 PR tree-optimization/89779
17135 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
17136 to remove IV defs, delay actual removal.
17137 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
17138 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
17139 very end, properly also reset loop control IV information.
17141 2019-03-25 Richard Biener <rguenther@suse.de>
17143 PR tree-optimization/89802
17144 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
17145 move EH data to folded stmt.
17147 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
17149 * config/s390/s390-builtin-types.def: Remove few unused types and
17150 fix sort order for others.
17152 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
17154 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
17155 expected and found types with -mdebug during builtin matching.
17157 2019-03-25 Richard Biener <rguenther@suse.de>
17159 PR middle-end/89790
17160 * fold-const.c (operand_equal_p): Revert last change with
17163 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
17165 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
17166 notes for the result of the __tls_get_addr calls.
17167 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
17169 2019-03-24 Jeff Law <law@redhat.com>
17171 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
17173 PR rtl-optimization/87761
17174 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
17175 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
17177 (pass_cprop_hardreg::execute): Add df note problem and defer insn
17178 rescans. Reprocess blocks as needed, calling df_analyze before
17179 reprocessing. Always call df_analyze before fixing up debug bind
17182 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
17184 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
17187 2019-03-22 Andrew Pinski <apinski@marvell.com>
17189 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
17190 attrribute for uxtw.
17192 2019-03-26 Jeff Law <law@redhat.com>
17194 PR rtl-optimization/87761
17195 * config/mips/mips-protos.h (mips_split_move): Add new argument.
17196 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
17197 (mips_split_move): Accept new INSN argument. Try to forward SRC
17198 into the next instruction.
17199 (mips_split_move_insn): Pass INSN through to mips_split_move.
17201 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
17203 PR rtl-optimization/89676
17204 * lra-constraints.c (curr_insn_transform): Do match reload for
17205 early clobbers even if the match was successful.
17207 2019-03-22 Jakub Jelinek <jakub@redhat.com>
17210 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
17212 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
17214 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
17216 2019-03-22 Jakub Jelinek <jakub@redhat.com>
17218 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
17219 <avx512>_fmsub_<mode>_mask3<round_name>,
17220 <avx512>_fnmadd_<mode>_mask3<round_name>,
17221 <avx512>_fnmsub_<mode>_mask3<round_name>,
17222 avx512f_vmfmadd_<mode>_mask3<round_name>,
17223 avx512f_vmfmsub_<mode>_mask3<round_name>,
17224 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
17225 instead of register_operand and %v instead of v for match_operand 1.
17226 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
17227 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
17228 <round_nimm_predicate> instead of register_operand and %v instead of v
17229 for match_operand 1.
17231 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
17232 <avx512>_fmadd_<mode>_mask3<round_name>,
17233 <avx512>_fmsub_<mode>_mask<round_name>,
17234 <avx512>_fmsub_<mode>_mask3<round_name>,
17235 <avx512>_fnmadd_<mode>_mask<round_name>,
17236 <avx512>_fnmadd_<mode>_mask3<round_name>,
17237 <avx512>_fnmsub_<mode>_mask<round_name>,
17238 <avx512>_fnmsub_<mode>_mask3<round_name>,
17239 <avx512>_fmaddsub_<mode>_mask<round_name>,
17240 <avx512>_fmaddsub_<mode>_mask3<round_name>,
17241 <avx512>_fmsubadd_<mode>_mask<round_name>,
17242 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
17243 <round_nimm_predicate> instead of nonimmediate_operand.
17244 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
17245 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
17246 Use register_operand instead of <round_nimm_predicate> for the
17247 operand that needs to match output.
17248 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
17249 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
17250 Likewise. Formatting fixes.
17253 * config/i386/i386.c (enum ix86_builtins): Remove
17254 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
17255 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
17256 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
17257 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
17258 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
17259 __builtin_ia32_vfmsubss3_mask3): New builtins.
17260 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
17261 avx512f_vmfmadd_<mode>_mask3<round_name>,
17262 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
17263 *avx512f_vmfmsub_<mode>_mask<round_name>,
17264 avx512f_vmfmsub_<mode>_mask3<round_name>,
17265 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
17266 *avx512f_vmfnmadd_<mode>_mask<round_name>,
17267 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
17268 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
17269 *avx512f_vmfnmsub_<mode>_mask<round_name>,
17270 avx512f_vmfnmsub_<mode>_mask3<round_name>,
17271 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
17272 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
17273 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
17274 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
17275 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
17276 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
17277 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
17278 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
17279 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
17280 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
17281 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
17282 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
17283 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
17284 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
17285 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
17286 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
17287 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
17288 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
17289 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
17290 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
17291 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
17292 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
17294 2019-03-21 Martin Sebor <msebor@redhat.com>
17296 PR tree-optimization/89350
17297 * builtins.c (compute_objsize): Also ignore offsets whose upper
17299 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
17300 (builtin_memref::builtin_memref): Initialize new member.
17301 Allow EXPR to be null.
17302 (builtin_memref::extend_offset_range): Replace local with a member.
17303 Avoid assuming pointer offsets are unsigned.
17304 (builtin_memref::set_base_and_offset): Determine base object
17305 before computing offset range.
17306 (builtin_access::builtin_access): Handle memset.
17307 (builtin_access::generic_overlap): Replace local with a member.
17308 (builtin_access::strcat_overlap): Same.
17309 (builtin_access::overlap): Same.
17310 (maybe_diag_overlap): Same.
17311 (maybe_diag_access_bounds): Same.
17312 (wrestrict_dom_walker::check_call): Handle memset.
17313 (check_bounds_or_overlap): Same.
17315 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
17316 Jakub Jelinek <jakub@redhat.com>
17319 * tree.c (fld_type_variant, fld_incomplete_type_of,
17320 fld_process_array_type): Call fld->pset.add and don't call
17321 add_tree_to_fld_list if it returns true.
17322 (free_lang_data_in_type): Similarly with self-recursive call. Purge
17323 non-marked types from TYPE_NEXT_VARIANT list.
17324 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
17326 2019-03-21 Jakub Jelinek <jakub@redhat.com>
17328 * hash-table.h (hash_table): Add Lazy template parameter defaulted
17329 to false, if true, don't alloc_entries during construction, but defer
17330 it to the first method that needs m_entries allocated.
17331 (hash_table::hash_table, hash_table::~hash_table,
17332 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
17333 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
17334 hash_table::clear_slot, hash_table::traverse_noresize,
17335 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
17336 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
17338 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
17339 NO_INSERT instead of find_with_hash.
17340 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
17341 hash_set::m_table): Add Lazy to template params of hash_table.
17342 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
17343 * attribs.c (test_attribute_exclusions): Likewise.
17344 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
17345 hash_set. Add tests for hash_set with Lazy = true.
17347 2019-03-21 Richard Biener <rguenther@suse.de>
17349 PR tree-optimization/89779
17350 * tree.c (tree_nop_conversion): Consolidate and fix defensive
17351 checks with respect to released SSA names now having error_mark_node
17353 * fold-const.c (operand_equal_p): Likewise.
17355 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
17358 * config/s390/s390.c (global_not_special_regno_p): Move to make it
17360 (s390_optimize_register_info): Use global_not_special_regno_p to
17361 check for global regs.
17363 2019-03-20 Jakub Jelinek <jakub@redhat.com>
17366 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
17367 update this_alternative nor this_alternative_set.
17369 2019-03-19 Jim Wilson <jimw@sifive.com>
17372 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
17373 align, size, offset. Use them to handle a BLKmode reference. Update
17375 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
17377 2019-03-19 Jakub Jelinek <jakub@redhat.com>
17379 PR rtl-optimization/89768
17380 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
17381 instead of GEN_INT.
17382 (unroll_loop_runtime_iterations): Likewise.
17384 2019-03-19 Martin Sebor <msebor@redhat.com>
17386 PR tree-optimization/89644
17387 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
17388 rather than endptr as an indicator of nul-termination.
17390 PR tree-optimization/89644
17391 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
17392 arrays in determining sequence sizes in strncpy and stpncpy.
17394 2019-03-19 Martin Liska <mliska@suse.cz>
17396 PR middle-end/89737
17397 * predict.c (combine_predictions_for_bb): Empty likely_edges and
17398 unlikely_edges if there's an edge that belongs to both these sets.
17400 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
17403 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
17404 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
17405 go via a stack temporary.
17407 2019-03-19 Jakub Jelinek <jakub@redhat.com>
17410 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
17411 instead of gen_rtx_SUBREG.
17412 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
17414 2019-03-19 Richard Biener <rguenther@suse.de>
17417 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
17419 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
17423 * tree.c (free_lang_data_in_decl): Do not free context of C++
17426 2019-03-19 Jakub Jelinek <jakub@redhat.com>
17429 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
17430 subs for the first alternative except when operands[3] is 1.
17433 * gimplify.c (gimplify_asm_expr): For output argument with
17434 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
17437 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
17439 PR rtl-optimization/89753
17440 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
17441 explicit unrolling factor even more robust.
17443 2019-03-19 Jakub Jelinek <jakub@redhat.com>
17446 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
17447 compensation use x2 += 1 instead of x2 -= -1 and when honoring
17448 signed zeros, do another copysign after the compensation.
17450 2019-03-18 Martin Sebor <msebor@redhat.com>
17452 PR tree-optimization/89720
17453 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
17454 more conservatively, the same as anti-range.
17456 2019-03-18 Richard Biener <rguenther@suse.de>
17458 PR middle-end/88945
17459 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
17460 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
17461 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
17462 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
17464 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
17466 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
17467 Extend queue to 1024 entries.
17468 Add "consumed" field.
17469 (gomp_print_output): Remove print_index parameter.
17470 Add final parameter.
17471 Change limit to unsigned.
17472 Use consumed field to implement circular buffer.
17473 Detect interrupted print in final pass.
17474 Flush output at the end.
17475 (run): Update gomp_print_output usage.
17476 (main): Initialize kernargs->output_data.consumed.
17478 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
17480 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
17481 calculation of the minimum number of scalar iterations for
17482 fully-predicated loops.
17484 2019-03-18 Martin Jambor <mjambor@suse.cz>
17486 PR tree-optimization/89546
17487 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
17488 any propagation to its children took place.
17490 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
17493 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
17494 parameter, and make use of it.
17495 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
17497 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
17499 * config/arc/arc.opt (mcode-density-frame): Get the inital value
17500 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
17501 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
17502 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
17503 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
17504 match what the ops is doing.
17505 (push_multi_fp_blink): Likewise.
17506 * config/arc/arc.c (arc_override_options): Enable enter/leave when
17507 compiling for size and elf target.
17508 (arc_save_callee_enter): Adjust note to match what enter/leave
17511 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
17513 * config/arc/arc.md (tst_movb): Fix constraint.
17515 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
17517 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
17519 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
17521 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
17522 * config/arc/arc.c (arc_conditional_register_usage): Remove all
17523 reg_alloc_order references.
17524 (size_alloc_order): Define.
17525 (arc_adjust_reg_alloc_order): New function.
17526 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
17528 (ADJUST_REG_ALLOC_ORDER): Define.
17529 (HONOR_REG_ALLOC_ORDER): Likewise.
17531 2019-03-18 Richard Biener <rguenther@suse.de>
17534 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
17535 loads and stores a bit more.
17537 2019-03-18 Richard Biener <rguenther@suse.de>
17540 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
17541 load pessimization to stores as well.
17543 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
17545 PR middle-end/86979
17546 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
17547 successor, use NULL as its av set.
17549 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
17551 PR rtl-optimization/89721
17552 * lra-constraints (invariant_p): Return false if side_effects_p holds.
17554 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
17557 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17558 When handling vec_extract, use modular arithmetic to allow
17559 constant selectors greater than vector length.
17560 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
17561 V1TImode vectors to have constant selector values greater than 0.
17562 Use modular arithmetic to compute vector index.
17563 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
17564 index for in-memory vectors. Correct code generation for
17565 in-register vectors.
17566 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
17569 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
17573 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
17576 2019-03-15 Jakub Jelinek <jakub@redhat.com>
17579 * tree.c (inchash::add_expr): Strip any location wrappers.
17580 * fold-const.c (operand_equal_p): Move stripping of location wrapper
17581 after hash verification.
17584 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
17585 SIGN_EXTEND and ZERO_EXTEND.
17587 2019-03-14 Jason Merrill <jason@redhat.com>
17588 Jakub Jelinek <jakub@redhat.com>
17590 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
17591 than if is_empty (*slot).
17592 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
17593 existing elt and for elt removal.
17594 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
17595 of already removed elt.
17597 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
17600 * config/i386/i386.c (remove_partial_avx_dependency): Handle
17601 REG_EH_REGION note.
17603 2019-03-14 Martin Liska <mliska@suse.cz>
17606 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
17608 2019-03-14 Richard Biener <rguenther@suse.de>
17611 * config/i386/i386.c (make_resolver_func): Properly set
17612 DECL_CONTEXT on the RESULT_DECL.
17613 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
17615 2019-03-14 Richard Biener <rguenther@suse.de>
17617 * gimple-pretty-print.c: Include cfgloop.h.
17618 (dump_gimple_phi): Adjust.
17619 (dump_gimple_bb_header): Dump loop header for GIMPLE.
17620 (pp_cfg_jump): Adjust.
17621 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
17622 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
17623 (lower_phi_internal_fn): Remove.
17624 (verify_gimple_call): Remove IFN_PHI special-casing.
17625 (dump_function_to_file): Dump IL state.
17626 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
17627 done to deal with PHI nodes being present in non-SSA state.
17629 2019-03-14 Jakub Jelinek <jakub@redhat.com>
17632 * multiple_target.c (create_dispatcher_calls): Change
17633 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
17634 In the node->iterate_referring loop, push *ref rather than ref, call
17635 ref->remove_reference () and always pass 0 to iterate_referring.
17637 PR rtl-optimization/89679
17638 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
17639 would contain a paradoxical SUBREG.
17641 2019-03-14 Richard Biener <rguenther@suse.de>
17643 PR tree-optimization/89710
17644 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
17647 2019-03-14 Martin Liska <mliska@suse.cz>
17649 * coverage.c (coverage_begin_function): Stream also
17651 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
17652 documentation about function declaration location.
17653 * gcov-dump.c (tag_function): Print whole range
17654 of function declaration.
17655 * gcov.c (struct function_info): Add end_column field.
17656 (function_info::function_info): Initialize it.
17657 (output_json_intermediate_file): Output {start,end}_column
17659 (read_graph_file): Read end_column.
17661 2019-03-14 Richard Biener <rguenther@suse.de>
17663 PR middle-end/89698
17664 * fold-const.c (operand_equal_p): For INDIRECT_REF check
17665 that the access types are similar.
17667 2019-03-14 Jakub Jelinek <jakub@redhat.com>
17669 PR tree-optimization/89703
17670 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
17671 aren't compatible also with builtin_decl_explicit. Check pure
17672 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
17673 and BUILT_IN_STPNCPY{,_CHK}.
17675 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
17678 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
17679 addr32 prefix to VSIB address for X32.
17680 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
17682 (*avx512pf_gatherpf<mode>df_mask): Likewise.
17683 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
17684 (*avx512pf_scatterpf<mode>df_mask): Likewise.
17685 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
17686 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
17687 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
17688 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
17689 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
17690 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
17691 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
17692 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
17693 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
17694 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
17695 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
17696 (*avx512f_scatterdi<mode>): Likewise.
17698 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
17701 * lra-constraints.c (inherit_in_ebb): Update
17702 potential_reload_hard_regs along with live_hard_regs.
17704 2019-03-13 Jakub Jelinek <jakub@redhat.com>
17707 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
17709 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
17711 2019-03-13 Martin Sebor <msebor@redhat.com>
17713 PR tree-optimization/89662
17714 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
17717 2019-03-13 Richard Biener <rguenther@suse.de>
17719 PR middle-end/89677
17720 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
17721 throw FP expressions at tree-affine.
17723 2019-03-14 Richard Biener <rguenther@suse.de>
17725 * tree-pretty-print.c (dump_generic_node): For -gimple properly
17726 dump negative integer constants using _Literal (type) -num.
17728 2019-03-13 Jakub Jelinek <jakub@redhat.com>
17730 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
17731 nonlocal_value member.
17733 PR middle-end/88588
17734 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
17735 (ipa_simd_modify_function_body): Handle PHIs.
17737 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
17739 * config/s390/s390.c (s390_option_override_internal): Use more
17740 aggressive inlining parameters.
17742 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
17744 * config/s390/3906.md: New file.
17745 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
17746 (LONGRUNNING_THRESHOLD): Remove.
17747 (MAX_SCHED_MIX_SCORE): Decrease.
17748 (MAX_SCHED_MIX_DISTANCE): Decrease.
17749 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
17750 (struct s390_sched_state): New struct to hold scheduling state.
17751 (S390_SCHED_STATE_NORMAL): Remove.
17752 (S390_SCHED_STATE_CRACKED): Remove.
17753 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
17754 (s390_get_sched_attrmask): Use new attribute.
17755 (s390_get_unit_mask): Use new units.
17756 (s390_is_fpd): New function.
17757 (s390_is_fxd): New function.
17758 (s390_is_longrunning): New function.
17759 (s390_sched_score): Use new functions.
17760 (s390_sched_reorder): Likewise.
17761 (s390_sched_variable_issue): Rework and use new functions.
17762 (s390_sched_init): Use new functions.
17763 * config/s390/s390.h (s390_tune_attr): Add z14.
17764 * config/s390/s390.md: Add z14.
17766 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
17768 * config/s390/2964.md: Update pipeline description.
17769 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
17770 (LONGRUNNING_THRESHOLD): Remove.
17771 (LATENCY_FACTOR): Remove.
17772 (s390_get_unit_mask): Add unit.
17773 (s390_sched_score): Use fxd/fpd.
17774 (s390_sched_variable_issue): Use fxd/fpd.
17776 2019-03-12 Martin Liska <mliska@suse.cz>
17778 * config/i386/i386.c: Reword an error message.
17780 2019-03-12 Martin Jambor <mjambor@suse.cz>
17782 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
17783 terminate with newline.
17785 2019-03-12 Jakub Jelinek <jakub@redhat.com>
17788 * config/s390/s390.md (tabort): Use %wd instead of
17789 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
17790 letters and periods.
17791 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
17792 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
17795 PR middle-end/89663
17796 * builtins.c (expand_builtin_int_roundingfn,
17797 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
17798 gcc_unreachable if validate_arglist fails.
17800 2019-03-12 Richard Biener <rguenther@suse.de>
17802 PR tree-optimization/89664
17803 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
17804 free the occurance tree after the early out.
17806 2019-03-11 Jakub Jelinek <jakub@redhat.com>
17808 PR middle-end/89655
17810 * vr-values.c (vr_values::update_value_range): If
17811 old_vr->varying_p (), don't update it, make new_vr also VARYING
17814 2019-03-11 Martin Liska <mliska@suse.cz>
17816 * config/aarch64/aarch64.c (aarch64_override_options_internal):
17817 Fix double string quoting.
17819 2019-03-11 Martin Liska <mliska@suse.cz>
17821 * collect-utils.c (collect_wait): Wrap apostrophes
17822 in gcc internal format with %'.
17823 * collect2.c (main): Likewise.
17824 (scan_prog_file): Likewise.
17825 (scan_libraries): Likewise.
17826 * config/i386/i386.c (ix86_expand_call): Likewise.
17827 (ix86_handle_interrupt_attribute): Likewise.
17828 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17829 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17830 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
17831 * lto-wrapper.c (find_crtoffloadtable): Likewise.
17832 * symtab.c (symtab_node::verify_base): Likewise.
17833 * tree-cfg.c (verify_gimple_label): Likewise.
17834 * tree.c (verify_type_variant): Likewise.
17836 2019-03-11 Martin Liska <mliska@suse.cz>
17838 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
17839 in a string format message and fix GNU coding style.
17840 (expand_builtin_set_thread_pointer): Likewise.
17841 * common/config/aarch64/aarch64-common.c
17842 (aarch64_rewrite_selected_cpu): Likewise.
17843 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
17844 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
17845 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
17846 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
17847 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
17848 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
17849 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
17850 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
17851 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
17852 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
17854 * common/config/riscv/riscv-common.c
17855 (riscv_subset_list::parsing_subset_version): Likewise.
17856 (riscv_subset_list::parse_std_ext): Likewise.
17857 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
17858 (riscv_subset_list::parse): Likewise.
17859 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
17860 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
17861 (aarch64_override_options_internal): Likewise.
17862 (aarch64_validate_mcpu): Likewise.
17863 (aarch64_validate_march): Likewise.
17864 (aarch64_validate_mtune): Likewise.
17865 (aarch64_override_options): Likewise.
17866 * config/alpha/alpha.c (alpha_option_override): Likewise.
17867 * config/arc/arc.c (arc_init): Likewise.
17868 (parse_mrgf_banked_regs_option): Likewise.
17869 (arc_override_options): Likewise.
17870 (arc_expand_builtin_aligned): Likewise.
17871 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
17872 (arm_expand_builtin): Likewise.
17873 * config/arm/arm.c (arm_option_check_internal): Likewise.
17874 (arm_configure_build_target): Likewise.
17875 (arm_option_override): Likewise.
17876 (arm_options_perform_arch_sanity_checks): Likewise.
17877 (arm_handle_cmse_nonsecure_entry): Likewise.
17878 (arm_handle_cmse_nonsecure_call): Likewise.
17879 (arm_tls_referenced_p): Likewise.
17880 (thumb1_expand_prologue): Likewise.
17881 * config/avr/avr.c (avr_option_override): Likewise.
17882 * config/bfin/bfin.c (bfin_option_override): Likewise.
17883 * config/c6x/c6x.c (c6x_option_override): Likewise.
17884 * config/cr16/cr16.c (cr16_override_options): Likewise.
17885 * config/cris/cris.c (cris_option_override): Likewise.
17886 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
17887 * config/darwin-c.c (macosx_version_as_macro): Likewise.
17888 * config/darwin.c (darwin_override_options): Likewise.
17889 * config/frv/frv.c (frv_expand_builtin): Likewise.
17890 * config/h8300/h8300.c (h8300_option_override): Likewise.
17891 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
17892 (ix86_option_override_internal): Likewise.
17893 (warn_once_call_ms2sysv_xlogues): Likewise.
17894 (ix86_expand_prologue): Likewise.
17895 (split_stack_prologue_scratch_regno): Likewise.
17896 (ix86_warn_parameter_passing_abi): Likewise.
17897 * config/ia64/ia64.c (fix_range): Likewise.
17898 * config/m68k/m68k.c (m68k_option_override): Likewise.
17899 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
17900 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
17901 (mips_set_compression_mode): Likewise.
17902 * config/mmix/mmix.c (mmix_option_override): Likewise.
17903 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
17904 * config/msp430/msp430.c (msp430_option_override): Likewise.
17905 * config/nds32/nds32.c (nds32_option_override): Likewise.
17906 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
17907 (nios2_option_override): Likewise.
17908 (nios2_expand_custom_builtin): Likewise.
17909 * config/nvptx/mkoffload.c (main): Likewise.
17910 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
17911 * config/pa/pa.c (fix_range): Likewise.
17912 (pa_option_override): Likewise.
17913 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
17914 (riscv_option_override): Likewise.
17915 * config/rl78/rl78.c (rl78_option_override): Likewise.
17916 * config/rs6000/aix61.h: Likewise.
17917 * config/rs6000/aix71.h: Likewise.
17918 * config/rs6000/aix72.h: Likewise.
17919 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
17920 * config/rs6000/freebsd64.h: Likewise.
17921 * config/rs6000/linux64.h: Likewise.
17922 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
17923 (rs6000_expand_zeroop_builtin): Likewise.
17924 (rs6000_expand_mtfsb_builtin): Likewise.
17925 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
17926 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
17927 (rs6000_invalid_builtin): Likewise.
17928 (rs6000_expand_split_stack_prologue): Likewise.
17929 * config/rs6000/rtems.h: Likewise.
17930 * config/rx/rx.c (valid_psw_flag): Likewise.
17931 (rx_expand_builtin): Likewise.
17932 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17933 * config/s390/s390.c (s390_expand_builtin): Likewise.
17934 (s390_function_profiler): Likewise.
17935 (s390_option_override_internal): Likewise.
17936 (s390_option_override): Likewise.
17937 * config/sh/sh.c (sh_option_override): Likewise.
17938 (sh_builtin_saveregs): Likewise.
17939 (sh_fix_range): Likewise.
17940 * config/sh/vxworks.h: Likewise.
17941 * config/sparc/sparc.c (sparc_option_override): Likewise.
17942 * config/spu/spu.c (spu_option_override): Likewise.
17943 (fix_range): Likewise.
17944 * config/visium/visium.c (visium_option_override): Likewise.
17945 (visium_handle_interrupt_attr): Likewise.
17946 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
17947 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
17948 (dbg_cnt_process_opt): Likewise.
17949 * dwarf2out.c (output_dwarf_version): Likewise.
17950 * except.c (expand_eh_return): Likewise.
17951 * gcc.c (defined): Likewise.
17952 (driver_handle_option): Likewise.
17953 (process_command): Likewise.
17954 (compare_files): Likewise.
17955 (driver::prepare_infiles): Likewise.
17956 (driver::do_spec_on_infiles): Likewise.
17957 (driver::maybe_run_linker): Likewise.
17958 * omp-offload.c (oacc_parse_default_dims): Likewise.
17959 * opts-global.c (handle_common_deferred_options): Likewise.
17960 * opts.c (parse_sanitizer_options): Likewise.
17961 (common_handle_option): Likewise.
17962 (enable_warning_as_error): Likewise.
17963 * passes.c (enable_disable_pass): Likewise.
17964 * plugin.c (parse_plugin_arg_opt): Likewise.
17965 (default_plugin_dir_name): Likewise.
17966 * targhooks.c (default_expand_builtin_saveregs): Likewise.
17967 (default_pch_valid_p): Likewise.
17968 * toplev.c (init_asm_output): Likewise.
17969 (process_options): Likewise.
17970 (toplev::run_self_tests): Likewise.
17971 * tree-cfg.c (verify_gimple_call): Likewise.
17972 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
17973 (tree_inlinable_function_p): Likewise.
17974 * var-tracking.c (vt_find_locations): Likewise.
17976 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
17978 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
17979 only on the else branch.
17981 2019-03-11 Martin Liska <mliska@suse.cz>
17983 * gcov.c (output_intermediate_json_line): Print function
17985 (output_json_intermediate_file): Add new argument.
17986 * doc/gcov.texi: Document the change.
17988 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
17990 PR rtl-optimization/89588
17991 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
17992 explicit unrolling factor more robust.
17994 2019-03-11 Richard Biener <rguenther@suse.de>
17996 PR tree-optimization/89649
17997 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
17998 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
17999 on the prolog and epilog loops.
18000 (vect_loop_versioning): Return copy of loop.
18001 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
18002 on the non-vectorized version of the loop.
18004 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
18007 * config/i386/sse.md (*vec_extractv2di_0_sse):
18008 Add (=r,x) alternative and corresponding splitter.
18010 2019-03-10 Martin Jambor <mjambor@suse.cz>
18012 PR tree-optimization/85762
18013 PR tree-optimization/87008
18014 PR tree-optimization/85459
18015 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
18016 it points to if there is a type changing MEM_REF. Adjust all callers.
18017 (build_accesses_from_assign): Disable total scalarization if
18018 contains_vce_or_bfcref_p returns true through the new parameter, for
18021 2019-03-09 Jakub Jelinek <jakub@redhat.com>
18024 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
18025 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
18028 * common.opt (fdiagnostics-show-labels,
18029 fdiagnostics-show-line-numbers, fdiagnostics-format=,
18030 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
18031 gas-locview-support, ginline-points, ginternal-reset-location-views):
18032 Terminate description text with a dot.
18033 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
18034 * config/mcore/mcore.opt (m210, m340): Likewise.
18035 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
18036 mnops=): Start description text with a capital letter.
18037 * config/arc/arc.opt (msize-level=): Likewise.
18038 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
18039 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
18040 mnewlib): Likewise.
18041 * config/ft32/ft32.opt (msim): Likewise.
18042 (mft32b, mcompress): Likewise. Terminate description text with a dot.
18043 (mnodiv, mnopm): Terminate description text with a dot.
18044 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
18046 * config/i386/i386.opt (prefer_vector_width, instrument_return):
18048 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
18051 PR rtl-optimization/89634
18052 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
18053 are modified in BB_END (e->src) instruction.
18055 2019-03-08 David Malcolm <dmalcolm@redhat.com>
18058 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
18059 messages more amenable to translation, and improve wording.
18061 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
18063 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
18064 ud- and du-chains between phases.
18066 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
18069 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
18070 instead of POLY_INT_CST.
18072 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
18074 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
18077 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
18082 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
18083 (_mm_storeu_si64): Ditto.
18085 2019-03-08 Martin Liska <mliska@suse.cz>
18088 * config/i386/i386.c (ix86_option_override_internal): Disable
18089 jump tables when retpolines are used.
18091 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
18094 * ipa-split.c (execute_split_functions): Do not split
18095 'noinline' or 'section' function.
18097 2019-03-08 Jakub Jelinek <jakub@redhat.com>
18100 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
18101 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
18102 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
18105 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
18106 from diagnostics. Formatting fixes.
18109 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
18110 warn_odr diagnostics.
18113 * lra-constraints.c (process_alt_operands): Avoid one space before
18114 " at the end of line and another after " on another line in a string
18116 * attribs.c (handle_dll_attribute): Likewise.
18117 * config/avr/avr-devices.c (avr_texinfo): Likewise.
18119 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
18120 warning_at or inform messages in G_() if there is no ?:.
18122 PR tree-optimization/89550
18123 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
18124 returned true. Formatting fixes.
18125 (expand_builtin_strnlen): Formatting fixes.
18126 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
18127 if warning_at returned true.
18128 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
18130 2019-03-08 Richard Biener <rguenther@suse.de>
18132 PR middle-end/89578
18133 * cfgloop.h (struct loop): Add owned_clique field.
18134 * cfgloopmanip.c (copy_loop_info): Copy it.
18135 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
18137 * tree-inline.c (copy_loops): Remap owned_clique.
18138 * lto-streamer-in.c (input_cfg): Stream owned_clique.
18139 * lto-streamer-out.c (output_cfg): Likewise.
18141 2019-03-08 Jakub Jelinek <jakub@redhat.com>
18144 * config/darwin.c: Include intl.h.
18145 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
18146 composing the message out of two separate parts.
18148 2019-03-07 Jakub Jelinek <jakub@redhat.com>
18151 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
18152 doesn't start with a capital letter and doesn't end with a dot.
18153 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
18154 with a capital letter.
18155 (ix86_mangle_function_version_assembler_name): Likewise.
18156 (ix86_generate_version_dispatcher_body): Likewise.
18157 (fold_builtin_cpu): Likewise.
18158 (get_builtin_code_for_version): Likewise. Remove extraneous space.
18159 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
18160 translators, wrap full type name in %qs.
18162 PR translation/79999
18163 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
18164 depend clause with source (or sink) modifier.
18165 * omp-expand.c (expand_omp_ordered_sink): Likewise.
18168 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
18169 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
18170 (avx512f_load<mode>_mask): New define_expand.
18171 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
18172 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
18173 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
18174 __builtin_ia32_movess_mask): New builtins.
18175 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
18176 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
18177 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
18178 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
18180 2019-03-07 Martin Jambor <mjambor@suse.cz>
18183 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
18184 for extern inline functions.
18186 2019-03-07 Martin Jambor <mjambor@suse.cz>
18189 * cgraph.h (cgraph_node): New inline method former_thunk_p.
18190 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
18191 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
18192 have multiple callees. At the end check if declarations match as
18193 opposed to cgraph_nodes.
18195 2019-03-07 Martin Liska <mliska@suse.cz>
18197 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
18198 which is equivalent to searching for this in clones chain.
18199 * symtab.c (symtab_node::verify_base): Similarly compare ASM
18200 names with a neighbour and special case first node in a chain.
18202 2019-01-25 Jason Merrill <jason@redhat.com>
18204 PR c++/80916 - spurious "static but not defined" warning.
18205 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
18206 for an internal symbol with DECL_EXTERNAL.
18208 2019-04-07 Richard Biener <rguenther@suse.de>
18210 PR middle-end/89618
18211 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
18212 * tree-inline.c (copy_loops): Simplify.
18214 2019-03-07 Martin Liska <mliska@suse.cz>
18216 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
18218 2019-03-07 Richard Biener <rguenther@suse.de>
18220 PR tree-optimization/89595
18221 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
18222 stmt iterator as reference, take boolean output parameter to
18223 indicate whether the stmt was removed and thus the iterator
18225 (dom_opt_dom_walker::before_dom_children): Re-iterate over
18226 stmts created by folding.
18228 2019-03-07 Jakub Jelinek <jakub@redhat.com>
18231 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
18234 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
18236 PR rtl-optimization/88845
18237 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
18239 * lra.c (remove_scratches_1): New function.
18240 (remove_scratches): Use it.
18241 (lra_emit_move): Likewise.
18243 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
18245 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
18246 unaligned_access variable.
18247 * config/arc/arc.c (arc_override_options): Set unaligned access
18248 default on for HS CPUs.
18249 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
18251 2019-03-06 Martin Liska <mliska@suse.cz>
18253 PR gcov-profile/89577
18254 * doc/gcov.texi: Prefer to use --coverage.
18255 * doc/sourcebuild.texi: Likewise.
18257 2019-03-02 Jason Merrill <jason@redhat.com>
18259 PR c++/86485 - -Wmaybe-unused with empty class ?:
18260 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
18262 2019-03-05 Jakub Jelinek <jakub@redhat.com>
18265 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
18268 PR middle-end/89590
18269 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
18270 exactly one argument.
18272 2019-03-05 Jakub Jelinek <jakub@redhat.com>
18273 Richard Sandiford <richard.sandiford@arm.com>
18275 PR tree-optimization/89570
18276 * match.pd (vec_cond into cond_op simplification): Don't use
18277 get_conditional_internal_fn, use as_internal_fn (cond_op).
18279 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
18282 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
18283 to decide when to split off a non-zero offset from a symbol.
18284 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
18285 in function symbols.
18287 2019-03-05 Richard Biener <rguenther@suse.de>
18289 PR tree-optimization/89594
18290 * tree-if-conv.c (pass_if_conversion::execute): Handle
18291 case where .LOOP_VECTORIZED_FUNCTION was removed.
18293 2019-03-05 Jakub Jelinek <jakub@redhat.com>
18296 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
18297 instead alloca it only when needed with the needed size.
18299 PR tree-optimization/89570
18300 * match.pd (vec_cond into cond_op simplification): Guard with
18301 vectorized_internal_fn_supported_p test and #if GIMPLE.
18303 PR tree-optimization/89566
18304 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
18305 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
18306 Punt if get_user_idx_format succeeds, but idx_format argument is
18307 not provided or doesn't have pointer type, or if idx_args is above
18308 number of provided arguments.
18310 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
18312 PR tree-optimization/89437
18313 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
18315 2019-03-04 Richard Biener <rguenther@suse.de>
18317 PR middle-end/89572
18318 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
18321 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
18323 PR tree-optimization/89487
18324 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
18325 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
18326 (distribute_loop): Don't do runtime alias check if there is non-
18327 addressable data reference.
18328 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
18329 is a register variable.
18331 2019-03-02 Jakub Jelinek <jakub@redhat.com>
18334 * config/arm/arm.md (cmpsi2_addneg): Use
18335 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
18336 If operands[2] is 0 or INT_MIN, force use of subs.
18337 (*compare_scc splitter): Use gen_int_mode.
18338 (*negscc): Likewise.
18339 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
18341 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
18342 Monk Chiang <sh.chiang04@gmail.com>
18344 * common/config/riscv/riscv-common.c: Include sstream.
18345 (riscv_subset_list::to_string): New.
18346 (riscv_arch_str): Likewise.
18347 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
18348 * config.in: Regen.
18349 * config/riscv/riscv-protos.h (riscv_arch_str): New.
18350 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
18351 (riscv_emit_attribute): New.
18352 (riscv_file_start): Emit attribute if needed.
18353 (riscv_option_override): Init riscv_emit_attribute_p.
18354 * config/riscv/riscv.opt (mriscv-attribute): New option.
18355 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
18356 * configure: Regen.
18357 * doc/install.texi: Document --with-riscv-attribute.
18358 * doc/invoke.texi: Document -mriscv-attribute.
18360 * common/config/riscv/riscv-common.c:
18361 Include config/riscv/riscv-protos.h.
18362 (INCLUDE_STRING): Defined.
18363 (RISCV_DONT_CARE_VERSION): Defined.
18364 (riscv_subset_t): Declare.
18365 (riscv_subset_t::riscv_subset_t): New.
18366 (riscv_subset_list): Declare.
18367 (riscv_subset_list::riscv_subset_list): New.
18368 (riscv_subset_list::~riscv_subset_list): Likewise.
18369 (riscv_subset_list::parsing_subset_version): Likewise.
18370 (riscv_subset_list::parse_std_ext): Likewise.
18371 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
18372 (riscv_subset_list::add): Likewise.
18373 (riscv_subset_list::lookup): Likewise.
18374 (riscv_subset_list::xlen): Likewise.
18375 (riscv_subset_list::parse): Likewise.
18376 (riscv_supported_std_ext): Likewise.
18377 (current_subset_list): Likewise.
18378 (riscv_parse_arch_string): Using riscv_subset_list::parse to
18381 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
18383 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18384 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
18385 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
18387 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
18389 PR rtl-optimization/85899
18390 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
18391 fallthru edges leading to the exit block.
18393 2019-03-01 Tamar Christina <tamar.christina@arm.com>
18396 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
18397 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
18399 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
18401 PR tree-optimization/89535
18402 * tree-vect-stmts.c (vectorizable_call): Record the vector types
18403 for each operand. Calculate the fallback choice for mask operands
18404 and pass it to vect_get_vec_def_for_operand.
18406 2019-03-01 Richard Biener <rguenther@suse.de>
18408 PR middle-end/89541
18409 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
18410 get virtual operands.
18411 (get_expr_operands): Handle CONST_DECL like other decls.
18413 2019-03-01 Jakub Jelinek <jakub@redhat.com>
18415 PR middle-end/89503
18416 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
18417 on DECL_P and EXPR_P.
18419 2019-03-01 Richard Biener <rguenther@suse.de>
18421 PR middle-end/89497
18422 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
18423 argument, defaulted to zero.
18424 * passes.c (execute_function_todo): Pass down SSA update flags
18425 to cleanup_tree_cfg.
18426 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
18427 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
18429 (cleanup_tree_cfg): Get and pass down SSA update flags.
18431 2019-03-01 Jakub Jelinek <jakub@redhat.com>
18434 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
18435 early_lto_debug argument.
18437 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
18439 PR tree-optimization/89536
18440 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
18441 only whether bit #0 of the value is 0 instead of the entire value.
18443 2019-02-28 Marek Polacek <polacek@redhat.com>
18445 PR c++/87068 - missing diagnostic with fallthrough statement.
18446 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
18447 at the end of a seq, save its location to walk_stmt_info.
18448 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
18451 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
18454 * tree.c (find_atomic_core_type): Move ahead in file.
18455 (check_base_type): Correctly compare alignments of atomic types.
18457 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
18460 * config/i386/i386.c (get_builtin_code_for_version): Identify
18461 Westmere from PCLMUL, instead of AES.
18463 2019-02-28 Jakub Jelinek <jakub@redhat.com>
18466 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
18467 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
18470 2019-02-28 Tamar Christina <tamar.christina@arm.com>
18473 * config/aarch64/aarch64-option-extensions.def: Document it.
18474 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
18477 2019-02-28 Jakub Jelinek <jakub@redhat.com>
18480 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
18481 builtins if they don't have a single scalar floating point argument.
18484 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
18486 PR rtl-optimization/89490
18487 * varasm.c (get_block_for_section): Bail out for mergeable sections.
18488 (default_use_anchors_for_symbol_p, output_object_block): Assert the
18489 block section is not mergeable.
18491 2019-02-27 Jakub Jelinek <jakub@redhat.com>
18494 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
18495 old define_insn to ...
18496 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
18497 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
18498 Rename old define_insn to ...
18499 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
18500 (thumb2_casesi_internal_pic): New define_expand. Rename old
18502 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
18503 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
18504 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
18506 2019-02-27 Richard Biener <rguenther@suse.de>
18509 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
18511 2019-02-27 Richard Biener <rguenther@suse.de>
18513 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
18516 2019-02-27 Richard Biener <rguenther@suse.de>
18519 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
18520 parameter, prefix section name with .gnu.debuglto_ if true.
18521 (dwarf2out_finish): Pass false to output_comdat_type_unit.
18522 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
18524 2019-02-27 Richard Biener <rguenther@suse.de>
18527 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
18528 rather than on use_debug_types, doing what output_die does.
18529 (value_format): Likewise.
18531 2019-02-27 Martin Jambor <mjambor@suse.cz>
18532 Martin Sebor <msebor@redhat.com>
18534 * doc/invoke.texi (Warning Options): Reword description of
18535 -Wno-absolute-value.
18537 2019-02-27 Jakub Jelinek <jakub@redhat.com>
18539 PR tree-optimization/89280
18540 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
18541 builtin_setjmp_setup_bb): New functions.
18542 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
18543 When visiting __builtin_setjmp_setup block, queue in special
18544 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
18545 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
18546 from visited after the loop if they don't have any visited successor
18549 2018-02-26 Steve Ellcey <sellcey@marvell.com>
18551 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
18553 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
18555 2019-02-26 Jakub Jelinek <jakub@redhat.com>
18558 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
18559 with types other than sizetype/ssizetype.
18561 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
18563 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
18564 (enum sparc_processor_type): ...this.
18565 (enum sparc_code_model_type): New enumeration type.
18566 (enum sparc_memory_model_type): Tweak comments.
18567 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
18569 (mcmodel): Use sparc_code_model enumeration and variable.
18570 (sparc_code_model): New enumeration.
18571 (mdebug): Add Undocumented marker.
18572 * config/sparc/sparc.h (enum cmodel): Delete.
18573 (sparc_cmodel): Likewise.
18574 (TARGET_CM_MEDLOW): Adjust to above renaming.
18575 (TARGET_CM_MEDMID): Likewise.
18576 (TARGET_CM_MEDANY): Likewise.
18577 (TARGET_CM_EMBMEDANY): Likewise.
18578 * config/sparc/sparc.c (sparc_cmodel): Delete.
18579 (sparc_option_override): Remove string/value mapping support for the
18580 code model. Move code and memory model support to after the handling
18581 of target flags. Do private machine setup last.
18582 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
18583 (sparc_legitimize_reload_address): Likewise.
18584 (sparc_output_mi_thunk): Likewise.
18585 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
18587 2019-02-26 Jakub Jelinek <jakub@redhat.com>
18589 PR tree-optimization/89500
18590 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
18591 (handle_builtin_strlen): Remove noncst_bound variable. Always
18592 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
18593 cst if the first cst bytes starting at x are known to be non-zero,
18594 even if the string is not zero terminated. Don't try to modify
18595 *si for strnlen. Update strlen_to_stridx only for strlen or if
18596 we can prove strnlen returns the same value as strlen would.
18598 2019-02-26 Martin Liska <mliska@suse.cz>
18600 * alloc-pool.h (struct pool_usage): Remove extra
18602 * bitmap.h (struct bitmap_usage): Likewise.
18603 * ggc-common.c (struct ggc_usage): Likewise.
18604 * mem-stats.h (struct mem_usage): Likewise.
18605 (mem_alloc_description::dump): Print dash lines
18606 here and repeat header at the end of a table report.
18607 It's then more readable.
18608 * tree-phinodes.c (phinodes_print_statistics): Make
18609 horizontal alignment.
18610 * tree-ssanames.c (ssanames_print_statistics): Likewise.
18611 * vec.c (struct vec_usage): Remove extra print_dash_line.
18612 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
18614 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
18616 * doc/extend.texi (__builtin_object_size):
18617 Use @pxref instead of @xref inside parenthesis.
18618 (__builtin_has_attribute): Add missing comma after @xref.
18619 (__builtin_object_size): Ditto.
18620 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
18622 2019-02-26 Jeff Law <law@redhat.com>
18624 PR rtl-optimization/87761
18625 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
18626 detect obviously dead insns and delete them.
18628 2019-02-26 Richard Biener <rguenther@suse.de>
18630 PR tree-optimization/89505
18631 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
18632 to handle restrict pointed-to vars with multiple subvars
18635 2019-02-26 Richard Biener <rguenther@suse.de>
18637 PR tree-optimization/89489
18638 * tree-parloops.c (create_loop_fn): Copy over last_clique.
18640 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
18642 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
18643 and move around comment.
18644 <BIT_AND_EXPR>: Likewise.
18645 <BIT_NOT_EXPR>: Add specific handling for boolean types.
18647 2019-02-26 Jakub Jelinek <jakub@redhat.com>
18650 * config/i386/i386.c (remove_partial_avx_dependency): Call
18651 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
18652 after changing possibly many instructions to use that pseudo. Fix up
18653 insertion of v4sf_const0 setter at the start of bb.
18655 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
18658 * doc/extend.texi (Variadic Pointer Args): New section.
18660 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
18661 Martin Sebor <msebor@gmail.com>
18663 * common.opt (Wattribute-alias): Likewise.
18664 * doc/invoke.texi (Option Summary): List general form of
18665 -Wattribute-alias=. List positive form of -Wmissing-attributes.
18666 (-Wmissing-attributes): Invert entry, rewrite and correct default.
18667 Add cross-references.
18668 (-Wattribute-alias): Rewrite and correct default. Mention
18669 considered attributes (same as for -Wmissing-attributes).
18671 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
18673 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
18674 (_mm_cvtpd_ps): Likewise.
18675 (_mm_cvttpd_epi32): Likewise.
18678 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
18679 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
18682 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
18684 2019-02-25 Tamar Christina <tamar.christina@arm.com>
18687 * common/config/aarch64/aarch64-common.c
18688 (struct aarch64_option_extension): Add is_synthetic.
18689 (all_extensions): Use it.
18690 (TARGET_OPTION_INIT_STRUCT): Define hook.
18691 (struct gcc_targetm_common): Moved to end.
18692 (all_extensions_by_on): New.
18693 (opt_ext_cmp, typedef opt_ext): New.
18694 (aarch64_option_init_struct): New.
18695 (aarch64_contains_opt): New.
18696 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
18697 * config/aarch64/aarch64-option-extensions.def
18698 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
18699 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
18700 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
18701 Set is_synthetic to false.
18702 (crypto): Set is_synthetic to true.
18703 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
18706 2019-02-25 Tamar Christina <tamar.christina@arm.com>
18708 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
18709 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
18710 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
18711 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
18712 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
18713 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
18714 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
18715 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
18717 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
18718 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
18719 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
18720 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
18721 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
18722 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
18723 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
18724 vfmlsl_laneq_high_f16): ... To this.
18725 * config/arm/neon.md: Update comments.
18727 2019-02-25 Tamar Christina <tamar.christina@arm.com>
18729 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
18730 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
18731 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
18732 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
18733 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
18734 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
18735 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
18736 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
18738 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
18739 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
18740 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
18741 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
18742 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
18743 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
18744 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
18745 vfmlslq_laneq_high_f16): ... To this.
18747 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
18749 PR rtl-optimization/86096
18750 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
18751 comparing mw_order values.
18753 2019-02-25 Jakub Jelinek <jakub@redhat.com>
18756 * config/arm/arm.md (*subsi3_carryin_const): Use
18757 arm_neg_immediate_operand predicate instead of
18758 arm_not_immediate_operand, "L" constraint instead of "K" and
18759 print it using %n2 instead of %B2.
18760 (*subsi3_carryin_const0): New define_insn.
18761 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
18762 instead of arm_not_operand and "I" constraint instead of "K" and
18763 print it using %n3 instead of %B2. Instead of using match_dup 2 add
18764 another match_operand and in the condition check that it is negation
18766 (*subsi3_carryin_compare_const0): New define_ins.
18767 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
18768 *subsi3_carryin_const.
18769 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
18770 split into *subsi3_carryin_compare_const0 if the highpart is zero.
18773 * config/arm.vfp.md (*negdf2_vfp): Use
18774 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
18775 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
18777 2019-02-24 Jakub Jelinek <jakub@redhat.com>
18779 PR rtl-optimization/89445
18780 * simplify-rtx.c (simplify_ternary_operation): Don't use
18781 simplify_merge_mask on operands that may trap.
18782 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
18783 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
18784 second operand is CONST_VECTOR, check if any element could be zero.
18785 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
18786 their operands can trap.
18788 2019-02-23 Martin Sebor <msebor@redhat.com>
18790 * gimple-ssa-sprintf.c (target_strtol): Rename...
18791 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
18792 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
18793 check for range error.
18795 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
18798 * opts-common.c (prune_options): Also prune joined switches
18799 with Negative and RejectNegative.
18800 * config/i386/i386.opt (march=): Add Negative(march=).
18801 (mtune=): Add Negative(mtune=).
18802 * doc/options.texi: Document Negative used together with Joined
18803 and RejectNegative.
18805 2019-02-22 Martin Sebor <msebor@redhat.com>
18807 * doc/extend.texi (Other Builtins): Add
18808 __builtin_is_constant_evaluated.
18810 2019-02-22 Richard Biener <rguenther@suse.de>
18812 PR tree-optimization/87609
18813 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
18815 2019-02-22 Jeff Law <law@redhat.com>
18817 PR rtl-optimization/87761
18818 * config/mips/mips.md: Add new combiner pattern to recognize
18819 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
18821 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
18824 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
18825 destination register in peepholes generating patterns for ADDS/SUBS.
18826 (add<mode>3_compare0,
18827 *addsi3_compare0_uxtw, add<mode>3_compareC,
18828 add<mode>3_compareV_imm, add<mode>3_compareV,
18829 *adds_<optab><ALLX:mode>_<GPI:mode>,
18830 *subs_<optab><ALLX:mode>_<GPI:mode>,
18831 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
18832 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
18833 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
18834 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
18835 sub<mode>3_compare1): Allow stack pointer for source register.
18836 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
18838 2019-02-22 Martin Sebor <msebor@redhat.com>
18840 PR tree-optimization/88993
18841 PR tree-optimization/88853
18842 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
18844 (sprintf_dom_walker::call_info::is_string_func): New helper.
18845 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
18846 for formatted string functions.
18847 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
18849 2019-02-22 Martin Sebor <msebor@redhat.com>
18852 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
18853 unreachable subexpressions.
18855 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
18856 Hongtao Liu <hongtao.liu@intel.com>
18857 Sunil K Pandey <sunil.k.pandey@intel.com>
18860 * config/i386/i386-passes.def: Add
18861 pass_remove_partial_avx_dependency.
18862 * config/i386/i386-protos.h
18863 (make_pass_remove_partial_avx_dependency): New.
18864 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
18866 (pass_data_remove_partial_avx_dependency): New.
18867 (pass_remove_partial_avx_dependency): Likewise.
18868 (make_pass_remove_partial_avx_dependency): Likewise.
18869 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
18870 (*extendsfdf2): Add avx_partial_xmm_update.
18871 (truncdfsf2): Likewise.
18872 (*float<SWI48:mode><MODEF:mode>2): Likewise.
18873 (SF/DF conversion splitters): Disabled for TARGET_AVX.
18875 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
18877 PR middle-end/85598
18878 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
18881 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
18884 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
18885 (PTA_SKYLAKE): Add PTA_AES.
18886 (PTA_GOLDMONT): Likewise.
18888 2019-02-22 Sudakshina Das <sudi.das@arm.com>
18890 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
18891 instruction if enabled.
18892 (aarch64_override_options): Remove reference to return address key.
18894 2019-02-22 Richard Biener <rguenther@suse.de>
18896 PR tree-optimization/89440
18897 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
18898 not necessary assert.
18900 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
18903 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
18904 (oacc_replace_fn_attrib_attr): ... this new function.
18905 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
18906 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
18908 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18910 * config/arm/arm-cpus.in (ares): Rename to...
18911 (neoverse-n1): ... This. Add ares as alias.
18912 * config/arm/arm-tables.opt: Regenerate.
18913 * config/arm/arm-tune.md: Likewise.
18914 * doc/invoke.txt (ARM Options): Document neoverse-n1.
18916 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18918 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
18919 * config/aarch64/aarch64-tune.md: Regenerate.
18920 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
18922 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18924 * config/aarch64/aarch64.c (ares_tunings): Rename to...
18925 (neoversen1_tunings): ... This.
18926 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
18927 (neoverse-n1): New CPU.
18928 * config/aarch64/aarch64-tune.md: Regenerate.
18929 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
18931 2019-02-22 Richard Biener <rguenther@suse.de>
18933 PR middle-end/87609
18934 * cfghooks.h (dependence_hash): New typedef.
18935 (struct copy_bb_data): New type.
18936 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
18937 (duplicate_block): Likewise.
18938 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
18939 (copy_bbs): Create and pass down copy_bb_data.
18940 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
18941 (rtl_duplicate_bb): Likewise.
18942 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
18943 remap dependence info.
18945 2019-02-22 Richard Biener <rguenther@suse.de>
18947 PR tree-optimization/87609
18948 * tree-core.h (tree_base): Document special clique values.
18949 * tree-inline.c (remap_dependence_clique): Do not use the
18950 special clique value of one.
18951 (maybe_set_dependence_info): Use clique one.
18952 (clear_dependence_clique): New callback.
18953 (compute_dependence_clique): Clear clique one from all refs
18954 before assigning it (again).
18956 2019-02-21 Martin Sebor <msebor@redhat.com>
18958 * doc/extend.texi (__clear_cache): Correct signature.
18960 2019-02-21 Ian Lance Taylor <iant@golang.org>
18963 * varasm.c (decode_addr_const): Call lookup_constant_def rather
18964 than output_constant_def.
18965 (add_constant_to_table): New static function.
18966 (output_constant_def): Call add_constant_to_table.
18967 (tree_output_constant_def): Likewise.
18969 2019-02-21 Jakub Jelinek <jakub@redhat.com>
18972 * builtins.c (fold_builtin_arith_overflow): If first two args are
18973 INTEGER_CSTs, set intres and ovfres to constants rather than calls
18976 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
18979 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
18980 error for -mindirect-branch/-mfunction-return with incompatible
18983 2019-02-21 Jakub Jelinek <jakub@redhat.com>
18986 * constraints.md (q): Remove.
18987 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
18990 2019-02-21 Martin Jambor <mjambor@suse.cz>
18993 * omp-general.c (omp_extract_for_data): Removed a duplicate call
18994 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
18995 (omp_adjust_for_condition): ...here. Added necessary parameters.
18996 * omp-general.h (omp_adjust_for_condition): Updated declaration.
18997 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
18998 proper values to new parameters of omp_adjust_for_condition.
19000 2019-02-20 Jakub Jelinek <jakub@redhat.com>
19002 PR middle-end/89412
19003 * expr.c (expand_assignment): If result is a MEM, use change_address
19004 instead of simplify_gen_subreg.
19006 2019-02-20 Jakub Jelinek <jakub@redhat.com>
19007 David Malcolm <dmalcolm@redhat.com>
19009 PR middle-end/89091
19010 * fold-const.c (decode_field_reference): Return NULL_TREE if
19011 lang_hooks.types.type_for_size returns NULL. Check it before
19012 overwriting *exp_. Use return NULL_TREE instead of return 0.
19014 2019-02-20 Jakub Jelinek <jakub@redhat.com>
19016 PR middle-end/88074
19017 PR middle-end/89415
19018 * toplev.c (do_compile): Double the emin/emax exponents to workaround
19021 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
19024 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
19025 TARGET_SSE in addition to TARGET_SSE_MATH.
19027 (ix86_excess_precision): Ditto.
19028 (ix86_float_exceptions_rounding_supported_p): Ditto.
19029 (use_rsqrt_p): Ditto.
19030 * config/i386/sse.md (rsqrt<mode>2): Ditto.
19032 2019-02-20 David Malcolm <dmalcolm@redhat.com>
19035 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
19036 linenum_arith_t when determining if two adjacent line spans are
19037 close enough to merge.
19038 (diagnostic_show_locus): Use linenum_arith_t when iterating over
19039 lines within each line_span.
19041 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
19044 * lra-constraints.c(uses_hard_regs_p): Fix handling of
19045 paradoxical SUBREGS.
19047 2019-02-20 Li Jia He <helijia@linux.ibm.com>
19050 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
19051 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
19052 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
19055 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
19057 * config/gcn/gcn.c (print_operand): Fix typo.
19059 2019-02-19 Richard Biener <rguenther@suse.de>
19061 PR middle-end/88074
19062 * toplev.c (do_compile): Initialize mpfr's exponent range
19063 based on available float modes.
19065 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
19067 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
19068 as long as the epilogue isn't completed.
19070 2019-02-18 Martin Sebor <msebor@redhat.com>
19072 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
19073 __has_cpp_attribute, and __has_include.
19075 2019-02-18 Martin Sebor <msebor@redhat.com>
19077 * doc/invoke.texi (-Wreturn-type): Correct and expand.
19079 2019-02-18 Martin Sebor <msebor@redhat.com>
19081 PR middle-end/89294
19082 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
19084 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
19086 2019-02-18 Richard Biener <rguenther@suse.de>
19088 PR tree-optimization/89296
19089 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
19090 of no-warning flag to cases that might emit the bogus warning.
19092 2019-02-18 Jakub Jelinek <jakub@redhat.com>
19095 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
19097 * config/arm/vfp.md (*movdi_vfp): Likewise.
19098 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
19099 "q" constraint for operands[0].
19102 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
19103 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
19104 pattern in a temporary buffer.
19105 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
19106 than 64-operands[2].
19109 * config/s390/s390.c (s390_indirect_branch_attrvalue,
19110 s390_indirect_branch_settings): Define unconditionally.
19111 (s390_set_current_function): Likewise, but guard the whole body except
19112 the s390_indirect_branch_settings call with
19113 #if S390_USE_TARGET_ATTRIBUTE.
19114 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
19116 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
19117 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
19118 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
19119 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
19120 HOST_WIDE_INT_1U instead of 1ULL.
19121 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
19122 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
19123 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
19124 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
19126 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
19129 2019-02-18 Martin Jambor <mjambor@suse.cz>
19131 PR tree-optimization/89209
19132 * tree-sra.c (create_access_replacement): New optional parameter
19133 reg_tree. Use it as a type if non-NULL and access type is not of
19135 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
19136 to create_access_replacement.
19137 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
19138 Check lacc is non-NULL before attempting to re-create it on the RHS.
19140 2019-02-18 Martin Liska <mliska@suse.cz>
19143 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
19145 (symbol_table::free_edge): Recycle m_summary_id.
19146 * cgraph.h (get_summary_id): New.
19147 (symbol_table::release_symbol): Set m_summary_id to -1
19149 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
19150 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
19151 function_summary to fast_function_summary.
19152 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
19153 * ipa-pure-const.c (class funct_state_summary_t):
19154 Switch from function_summary to fast_function_summary.
19155 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
19156 (class ipa_ref_opt_summary_t): Switch from function_summary
19157 to fast_function_summary.
19158 * symbol-summary.h (class function_summary_base): New class
19159 that is created from base of former function_summary.
19160 (function_summary_base::unregister_hooks): New.
19161 (class function_summary): Inherit from function_summary_base.
19162 (class call_summary_base): New class
19163 that is created from base of former call_summary.
19164 (class call_summary): Inherit from call_summary_base.
19165 (struct is_same): New.
19166 (class fast_function_summary): New summary class.
19167 (class fast_call_summary): New summary class.
19168 * vec.h (vec_safe_grow_cleared): New function.
19170 2019-02-18 Martin Liska <mliska@suse.cz>
19172 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
19173 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
19174 * doc/tm.texi: Document new target hook.
19175 * doc/tm.texi.in: Likewise.
19176 * target.def: Add new target macro.
19177 * gcc.c (find_fortran_preinclude_file): Do not search multilib
19180 2019-02-17 Alan Modra <amodra@gmail.com>
19183 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
19184 output reg on add insn.
19185 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
19187 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
19190 * config/i386/sse.md (ssedoublemode): Remove V4HI.
19191 (PMULHRSW): Likewise.
19192 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
19194 (ssse3_pmulhrswv4hi3): New expander.
19196 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
19198 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
19199 MMX. Add isa attribute.
19201 2019-02-16 Jakub Jelinek <jakub@redhat.com>
19203 PR rtl-optimization/66152
19204 * builtins.h (c_readstr): Declare.
19205 * builtins.c (c_readstr): Remove forward declaration. Add
19206 null_terminated_p argument, if false, read all bytes from the
19207 string instead of stopping after '\0'.
19208 * expr.c (string_cst_read_str): New function.
19209 (store_expr): Use string_cst_read_str instead of
19210 builtin_strncpy_read_str. Try to store by pieces the whole
19211 exp_len first, and only if that fails, split it up into
19212 store by pieces followed by clear_storage. Formatting fix.
19214 * config/i386/i386.md (*movqi_internal): Remove static from
19215 buf variable. Use output_asm_insn (buf, operands); return "";
19216 instead of return buf;.
19217 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
19218 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
19219 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
19221 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
19223 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
19224 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
19225 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
19226 (CC1_SPEC): Likewise.
19227 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
19229 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
19231 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
19232 the base address on 64-bit strict-alignment platforms.
19234 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
19236 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
19238 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
19240 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
19242 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
19244 PR rtl-optimization/88308
19245 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
19246 on copied instruction.
19248 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
19250 * final.c (insn_current_reference_address): Replace test on JUMP_P
19251 with test on jump_to_label_p.
19252 * config/visium/visium-passes.def: New file.
19253 * config/visium/t-visium (PASSES_EXTRA): Define.
19254 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
19255 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
19256 (TRAMPOLINE_ALIGNMENT): Define.
19257 * config/visium/visium.c (visium_option_override): Do not register
19258 the machine-specific reorg pass here.
19259 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
19261 (output_branch): Adjust threshold for long branch instruction.
19262 * config/visium/visium.md (cpu): Move around.
19263 (length): Adjust for the GR6.
19265 2019-02-15 Richard Biener <rguenther@suse.de>
19266 Jakub Jelinek <jakub@redhat.com>
19268 PR tree-optimization/89278
19269 * tree-loop-distribution.c: Include tree-eh.h.
19270 (generate_memset_builtin, generate_memcpy_builtin): Call
19271 rewrite_to_non_trapping_overflow on builtin->size before passing it
19272 to force_gimple_operand_gsi.
19274 2019-02-15 Jakub Jelinek <jakub@redhat.com>
19277 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
19279 * opth-gen.awk: Likewise.
19281 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
19283 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
19284 Enable MMX, SSE and SSE2 by default.
19285 * config/i386/i386.c (ix86_option_override_internal): Do not
19286 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
19288 2019-02-14 Jakub Jelinek <jakub@redhat.com>
19290 PR rtl-optimization/89354
19291 * combine.c (make_extraction): Punt if extraction_mode is narrower
19294 2019-02-14 Maya Rashish <coypu@sdf.org>
19296 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
19297 * config/netbsd-d.c: New file.
19298 * config/t-netbsd: Add netbsd-d.o
19300 2018-02-14 Steve Ellcey <sellcey@marvell.com>
19302 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
19303 affects_type_identity to true for aarch64_vector_pcs.
19304 (aarch64_comp_type_attributes): New function.
19305 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
19307 2019-02-14 Tamar Christina <tamar.christina@arm.com>
19310 * config/arm/iterators.md (ANY64): Add V4HF.
19312 2019-02-14 Martin Liska <mliska@suse.cz>
19314 PR rtl-optimization/89242
19315 * dce.c (delete_unmarked_insns): Call free_dominance_info we
19316 process a transformation.
19318 2019-02-14 Jakub Jelinek <jakub@redhat.com>
19320 PR tree-optimization/89314
19321 * fold-const.c (fold_binary_loc): Cast strlen argument to
19322 const char * before dereferencing it. Formatting fixes.
19324 PR middle-end/89284
19325 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
19327 2019-02-13 Ian Lance Taylor <iant@golang.org>
19329 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
19330 and set current index for other optimizations.
19332 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
19334 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
19335 nonimmediate_operand as operand 2 predicate.
19336 (vec_set<VF2_512_256:mode>_0): Ditto.
19337 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
19338 (*vec_concatv2si): Remove alternative 2.
19339 (*vec_concatv4si_0): Use vm constraint for alternative 0.
19340 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
19341 (vec_concatv2di): Split alternatives 4,5,6 to ...
19342 (*vec_concatv2di_0) ... new pattern.
19344 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
19347 * config/arm/arm.c (ldm_stm_operation_p) Set
19348 addr_reg_in_reglist correctly for first register.
19349 (load_multiple_sequence): Remove dead base check.
19350 (gen_ldm_seq): Correctly set write_back for Thumb-1.
19352 2019-02-13 Tamar Christina <tamar.christina@arm.com>
19355 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
19356 Expose as @aarch64_pred_mov.
19357 * config/aarch64/aarch64.c (aarch64_classify_address):
19358 Use expand_insn which legitimizes operands.
19360 2019-02-13 Martin Liska <mliska@suse.cz>
19362 * builtins.h (expand_builtin_with_bounds): Remove declaration.
19363 * calls.c (struct arg_data): Remove special_slot, pointer_arg
19364 and pointer_offset fields.
19365 (initialize_argument_information): Remove usage of dead
19367 * cgraph.h (struct cgraph_thunk_info): Remove
19368 add_pointer_bounds_args.
19369 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
19371 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
19373 * config/i386/i386.c (ix86_function_arg_advance): Remove
19375 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
19376 (def_builtin): Remove usage of dead fields.
19377 (ix86_add_new_builtins): Likewise.
19378 * ipa-fnsummary.c (compute_fn_summary): Likewise.
19379 * ipa-icf.c (sem_function::equals_wpa): Likewise.
19380 (sem_function::init): Likewise.
19381 (sem_variable::merge): Likewise.
19382 * ipa-visibility.c (function_and_variable_visibility): Likewise.
19383 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
19384 * lto-cgraph.c (lto_output_node): Likewise.
19385 (lto_output_varpool_node): Likewise.
19386 (input_node): Likewise.
19387 (input_varpool_node): Likewise.
19388 * lto-streamer-out.c (lto_output): Likewise.
19389 * tree-inline.c (expand_call_inline): Remove usage of
19391 * tree-inline.h (struct copy_body_data): Likewise.
19392 * varpool.c (varpool_node::dump): Likewise.
19394 2019-02-13 Jakub Jelinek <jakub@redhat.com>
19396 PR middle-end/89303
19397 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
19398 into pt->vars_contains_escaped_heap instead of setting
19399 pt->vars_contains_escaped_heap to it.
19401 PR middle-end/89281
19402 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
19403 INTVAL (size), compare it to GET_MODE_MASK instead of
19404 1 << GET_MODE_BITSIZE.
19407 * config/i386/predicates.md (x86_64_immediate_operand): Allow
19408 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
19411 2019-02-13 Martin Liska <mliska@suse.cz>
19414 * cfgrtl.c (remove_barriers_from_footer): New function.
19415 (try_redirect_by_replacing_jump): Use it.
19416 (cfg_layout_redirect_edge_and_branch): Likewise.
19418 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
19420 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
19421 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
19422 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
19423 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
19424 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
19425 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
19427 * config/rs6000/rs6000.c (builtin_function_type)
19428 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
19429 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
19430 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
19431 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
19432 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
19434 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
19436 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
19437 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
19439 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
19442 * config/i386/i386.md (*movoi_internal_avx): Revert revision
19443 268678 and revision 268657.
19444 (*movti_internal): Likewise.
19446 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
19449 * config/s390/s390.c (s390_decompose_address): Update comment.
19450 (s390_check_qrst_address): Reject invalid address forms after
19453 2019-02-12 Martin Liska <mliska@suse.cz>
19456 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
19457 we need default values of funct_state for a function that
19460 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
19462 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
19463 the object to pick the size of stores on strict-alignment platforms.
19465 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
19466 (*movdi_insn_sp32): Likewise.
19467 (*movdi_insn_sp64): Likewise.
19469 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
19472 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
19473 types that needs constructiong.
19474 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
19476 2019-02-12 Richard Biener <rguenther@suse.de>
19478 PR tree-optimization/89253
19479 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
19480 duplicate the loop.
19482 2019-02-11 David Malcolm <dmalcolm@redhat.com>
19485 * input.c (selftest::test_line_offset_overflow): New selftest.
19486 (selftest::input_c_tests): Call it.
19488 2019-02-11 Martin Sebor <msebor@redhat.com>
19490 PR tree-optimization/88771
19491 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
19492 when -Wstringop-overflow is set.
19493 (builtin_memref::builtin_memref): Adjust excessive upper bound
19494 only when lower bound is not excessive.
19495 (maybe_diag_overlap): Detect and diagnose excessive bounds via
19496 -Wstringop-ovefflow.
19497 (maybe_diag_offset_bounds): Rename...
19498 (maybe_diag_access_bounds): ...to this.
19499 (check_bounds_or_overlap): Adjust for name change above.
19501 2019-02-11 Martin Sebor <msebor@redhat.com>
19504 * builtins.c (max_object_size): Move from here...
19505 * builtins.h (max_object_size): ...and here...
19506 * tree.c (max_object_size): ...to here...
19507 * tree.h (max_object_size): ...and here.
19509 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
19511 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
19512 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
19513 for correct semantics.
19515 2019-02-11 Alan Modra <amodra@gmail.com>
19517 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
19518 -mlongcall and -mpltseq.
19519 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
19520 (RS/6000 and PowerPC Options <-mpltseq>): Document.
19521 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
19522 * config/rs6000/sysv4.opt (mpltseq): New option.
19523 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
19524 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
19525 support is lacking. Don't allow -mpltseq with -mbss-plt.
19526 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
19527 -mpltseq given for ELFv1.
19528 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
19529 Only use UNSPEC_PLTSEQ for inline PLT calls.
19530 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
19531 use UNSPEC_PLTSEQ for inline PLT calls.
19532 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
19533 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
19534 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
19535 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
19536 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
19537 (pltseq_mtctr_<mode>): Likewise.
19539 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19541 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
19543 * configure: Regenerate.
19545 2019-02-11 Jakub Jelinek <jakub@redhat.com>
19548 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
19551 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
19553 * function.c (assign_parm_setup_block): Use the stored
19554 size, not the passed size, when allocating stack-space,
19555 also for a parameter with alignment larger than
19556 MAX_SUPPORTED_STACK_ALIGNMENT.
19558 2019-02-11 Martin Liska <mliska@suse.cz>
19561 * ipa-cp.c (build_toporder_info): Remove usage of a param.
19562 * ipa-inline.c (inline_small_functions): Likewise.
19563 * ipa-pure-const.c (propagate_pure_const): Likewise.
19564 (propagate_nothrow): Likewise.
19565 * ipa-reference.c (propagate): Likewise.
19566 * ipa-utils.c (struct searchc_env): Remove unused field.
19567 (searchc): Always search across AVAIL_INTERPOSABLE.
19568 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
19569 the only called IPA pure const can properly not propagate
19570 across interposable boundary.
19571 * ipa-utils.h (ipa_reduced_postorder): Remove param.
19573 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
19575 * config/nds32/nds32.md (call_internal, call_value_internal,
19576 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
19578 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
19580 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
19583 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
19585 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
19588 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
19590 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
19592 2019-02-10 Jakub Jelinek <jakub@redhat.com>
19594 PR tree-optimization/89268
19595 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
19596 if preds is non-NULL.
19598 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
19601 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
19604 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
19606 * config/nds32/nds32.md (trap): New pattern.
19608 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
19610 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
19613 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
19615 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
19618 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
19620 * ipa-visibility.c (localize_node): Also do not localize
19621 LDPR_PREVAILING_DEF_IRONLY_EXP.
19623 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
19626 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
19627 instead of type_with_linkage.
19629 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
19632 * params.def (uninlined-function-insns, uninlined-function-time,
19633 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
19634 bound so we don't get overflows.
19636 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
19638 * config/rs6000/rs6000-string.c (expand_compare_loop,
19639 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
19642 2019-02-09 Jakub Jelinek <jakub@redhat.com>
19644 PR middle-end/89246
19645 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19646 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
19647 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
19649 2019-02-09 Alan Modra <amodra@gmail.com>
19652 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
19653 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
19656 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
19658 PR middle-end/88560
19659 * lra-constraints.c (process_alt_operands): Don't increase reject
19660 for memory when offset memory is required.
19662 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
19664 * config/s390/vector.md: Implement vector copysign.
19666 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
19668 * expr.c (expand_constructor): Correct indentations.
19670 2019-02-08 Richard Biener <rguenther@suse.de>
19672 PR tree-optimization/89247
19673 * tree-if-conv.c: Include tree-cfgcleanup.h.
19674 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
19675 (tree_if_conversion): Pass through predicate vector.
19676 (pass_if_conversion::execute): Do CFG cleanup and SSA update
19677 inline, see if any if-converted loops we refrece in
19678 LOOP_VECTORIZED calls vanished and fixup.
19679 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
19681 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
19683 * config/s390/constraints.md (jdd): New constraint.
19685 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
19688 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
19689 upper 16 vector registers without TARGET_AVX512VL.
19690 (*movti_internal): Likewise.
19692 2019-02-08 Jakub Jelinek <jakub@redhat.com>
19694 PR rtl-optimization/89234
19695 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
19696 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
19697 (copy_reg_eh_region_note_backward): Likewise.
19699 2019-02-08 Richard Biener <rguenther@suse.de>
19701 PR middle-end/89223
19702 * tree-data-ref.c (initialize_matrix_A): Fail if constant
19703 doesn't fit in HWI.
19704 (analyze_subscript_affine_affine): Handle failure from
19705 initialize_matrix_A.
19707 2019-02-08 Jakub Jelinek <jakub@redhat.com>
19709 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
19712 2019-02-07 David Malcolm <dmalcolm@redhat.com>
19714 PR tree-optimization/86637
19715 PR tree-optimization/89235
19716 * tree-vect-loop.c (optimize_mask_stores): Add an
19717 auto_purge_vect_location sentinel to ensure that vect_location is
19719 * tree-vectorizer.c
19720 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
19721 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
19722 to ensure that vect_location is purged on exit.
19723 (pass_slp_vectorize::execute): Likewise, replacing the manual
19725 * tree-vectorizer.h (class auto_purge_vect_location): New class.
19727 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19729 * config/aarch64/iterators.md (max_opp): New code_attr.
19730 (USMAX): New code iterator.
19731 * config/aarch64/predicates.md (aarch64_smin): New predicate.
19732 (aarch64_smax): Likewise.
19733 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
19734 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
19737 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
19740 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
19741 for TARGET_AVX512VL.
19742 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
19744 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
19746 * config/s390/s390-builtin-types.def: Add new types.
19747 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
19748 (s390_vec_xlw4): Make the memory operand into a const pointer.
19749 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
19751 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
19752 a new vector type with the alignment of the scalar memory operand.
19754 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
19755 Jakub Jelinek <jakub@redhat.com>
19758 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
19759 arm_count_ldrdstrd_insns): New declarations.
19760 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
19762 (valid_operands_ldrd_strd): New function.
19763 (arm_count_ldrdstrd_insns): New function.
19764 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
19765 sets instead of single DImode set and define new insns to match this.
19767 2019-02-07 Tamar Christina <tamar.christina@arm.com>
19769 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
19770 Make it a C initializer.
19772 2019-02-07 Tamar Christina <tamar.christina@arm.com>
19775 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
19777 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19779 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
19780 Use neon_dot<q> for type.
19781 (neon_<sup>dot_lane<vsi2qi>): Likewise.
19783 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19785 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
19786 Use neon_dot<q> for type.
19787 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
19788 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
19790 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
19792 PR rtl-optimization/89225
19793 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
19796 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
19798 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
19799 after restoring registers saved to allocate the frame on Windows.
19801 2019-02-06 Richard Biener <rguenther@suse.de>
19803 PR tree-optimization/89182
19804 * graphite.h (cached_scalar_evolution_in_region): Declare.
19805 * graphite.c (struct seir_cache_key): New.
19806 (struct sese_scev_hash): Likewise.
19807 (seir_cache): New global.
19808 (cached_scalar_evolution_in_region): New function.
19809 (graphite_transform_loops): Allocate and release seir_cache.
19810 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
19811 cached_scalar_evolution_in_region.
19812 * graphite-scop-detection.c (scop_detection::can_represent_loop):
19814 (scop_detection::graphite_can_represent_expr: Use
19815 cached_scalar_evolution_in_region.
19816 (scop_detection::stmt_simple_for_scop_p): Likewise.
19817 (find_params_in_bb): Likewise.
19818 (gather_bbs::before_dom_children): Likewise.
19819 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
19820 (add_loop_constraints): Likewise.
19822 2019-02-06 Jakub Jelinek <jakub@redhat.com>
19824 PR middle-end/89210
19825 * fold-const-call.c (fold_const_vec_convert): Pass true as last
19826 operand to new_unary_operation only if both element types are integral
19827 and it isn't a widening conversion. Return NULL_TREE if
19828 new_unary_operation failed.
19830 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
19833 * config/s390/s390.md: Remove load and test FP splitter.
19835 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
19838 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
19839 expand_compare_loop, expand_block_compare_gpr,
19840 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
19841 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
19842 #include "profile-count.h" and "predict.h" for types and functions
19843 needed to work with REG_BR_PROB notes.
19845 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
19848 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
19849 for the long branch case.
19851 2019-02-05 Jakub Jelinek <jakub@redhat.com>
19854 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
19855 can throw, non-call exceptions are enabled and we can't delete
19856 dead exceptions or alter cfg. Set must_clean if
19857 delete_insn_and_edges returns true, don't set it blindly for calls.
19858 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
19860 PR rtl-optimization/89195
19861 * combine.c (make_extraction): For MEMs, don't extract bytes outside
19862 of the original MEM.
19864 2019-02-05 Martin Liska <mliska@suse.cz>
19866 PR gcov-profile/89000
19867 * gcov.c (function_summary): Remove argument.
19868 (file_summary): New function.
19869 (print_usage): Replace tabs with spaces.
19870 (generate_results): Use new function file_summary.
19872 2019-02-05 Jakub Jelinek <jakub@redhat.com>
19875 * optabs.c (prepare_cmp_insn): Pass x and y to
19876 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
19878 2019-02-05 Richard Biener <rguenther@suse.de>
19880 PR middle-end/89150
19881 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
19882 (struct bitmap_element): Drop chain_prev so we properly recurse on
19883 the prev member, supporting tree views.
19884 (struct bitmap_head): GTY skip the obstack member.
19886 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
19889 * doc/extend.texi (Vector Extensions): Add an example of using vector
19890 types together with x86 intrinsics.
19892 2019-02-04 Alan Modra <amodra@gmail.com>
19894 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
19895 str[] size to 160, and comment.
19897 2019-02-04 Alan Modra <amodra@gmail.com>
19899 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
19900 (rs6000_pltseq_template): Guard output of TLS markers with
19901 TARGET_TLS_MARKERS.
19902 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
19903 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
19904 to use inline PLT sequences.
19905 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
19906 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
19907 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
19909 2019-02-04 Martin Liska <mliska@suse.cz>
19912 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
19913 out when ipa_fn_summaries does not contain entry for callee.
19915 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
19917 * config/sparc/sparc.h: Remove superfluous blank lines.
19918 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
19919 (got_register_rtx): ...this.
19920 (sparc_got): Adjust to above renaming.
19921 (sparc_tls_got): Likewise.
19922 (sparc_delegitimize_address): Likewise.
19923 (sparc_output_mi_thunk): Likewise.
19924 (sparc_init_pic_reg): Likewise.
19925 (save_local_or_in_reg_p): Fix test on the GOT register.
19926 (USE_HIDDEN_LINKONCE): Move around.
19927 (get_pc_thunk_name): Likewise.
19928 (gen_load_pcrel_sym): Likewise.
19929 (load_got_register): Likewise.
19931 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
19933 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
19934 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
19936 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
19938 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
19939 into consideration.
19941 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
19943 * config.gcc (with_nds32_lib, glibc):
19944 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
19945 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
19946 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
19948 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
19951 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
19952 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
19953 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
19954 (*rcpsf2_sse): Ditto.
19955 (*rsqrtsf2_sse): Ditto.
19956 (sse4_1_round<mode<2): Ditto.
19958 2019-02-03 Richard Biener <rguenther@suse.de>
19961 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
19964 2019-02-02 Jakub Jelinek <jakub@redhat.com>
19966 PR middle-end/87887
19967 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19968 Punt with warning on aggregate return or argument types. Ignore
19969 type/mode checking for uniform arguments.
19971 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
19973 * combine.c (try_combine): Do not print "Can't combine" messages unless
19974 printing failed combination attempts.
19976 2019-02-01 Martin Jambor <mjambor@suse.cz>
19979 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
19980 segment and global segment variables before making them static.
19982 2019-02-01 Martin Jambor <mjambor@suse.cz>
19984 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
19985 missed optimization dump with dump_enabled_p.
19987 2019-02-01 Richard Biener <rguenther@suse.de>
19989 PR middle-end/88597
19990 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
19991 the instantiate cache.
19992 (instantiate_scev_binary): Elide second operand procesing
19993 if equal to the first.
19994 * tree-chrec.c (chrec_contains_symbols): Add visited set.
19995 (chrec_contains_undetermined): Likewise.
19996 (tree_contains_chrecs): Likewise.
19998 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
20000 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
20002 2019-02-01 Jakub Jelinek <jakub@redhat.com>
20004 PR tree-optimization/89143
20005 * wide-int-range.h (wide_int_range_absu): Declare.
20006 * wide-int-range.cc (wide_int_range_absu): New function.
20007 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
20009 PR tree-optimization/88107
20010 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
20011 instead of assertion that eh_region_outermost is non-NULL, if it
20012 is NULL, set *ALL to true and return NULL.
20013 (move_sese_region_to_fn): Adjust caller, if all is set, call
20014 duplicate_eh_regions with NULL region.
20016 2019-02-01 Richard Biener <rguenth@suse.de>
20018 PR rtl-optimization/88593
20019 * mode-switching.c (optimize_mode_switching): Free dominators before
20020 calling cleanup_cfg.
20022 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20024 PR tree-optimization/88932
20025 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
20027 2019-01-31 Jakub Jelinek <jakub@redhat.com>
20029 PR middle-end/89137
20030 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
20031 bogus clang warning.
20033 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
20036 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
20037 alternative to avoid partial SSE register stall for TARGET_AVX.
20038 (truncdfsf2): Ditto.
20039 (sse4_1_round<mode>2): Ditto.
20041 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
20043 PR tree-optimization/89008
20044 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
20045 process anything of the form X * 0.
20047 2019-01-31 Richard Biener <rguenther@suse.de>
20049 PR tree-optimization/89135
20050 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
20051 with abnormal preds.
20053 2019-01-31 Jakub Jelinek <jakub@redhat.com>
20056 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
20057 always_inline callees into no_sanitize_address callers.
20059 2019-01-31 Richard Biener <rguenther@suse.de>
20061 PR rtl-optimization/89115
20062 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
20064 2019-01-30 Martin Sebor <msebor@redhat.com>
20067 * doc/extend.texi (cast to a union): Correct and expand.
20069 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
20071 PR rtl-optimization/87246
20072 * lra-constraints.c (simplify_operand_subreg): Reload memory
20073 in subreg if the address became invalid.
20075 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
20078 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
20079 Disable for little-endian.
20081 2019-01-30 Richard Biener <rguenther@suse.de>
20083 PR rtl-optimization/89115
20084 * opts.c (default_options_optimization): Reduce
20085 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
20086 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
20089 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
20091 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
20092 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
20093 type of vector element when vec_extract is implemented by direct
20096 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
20098 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
20100 2019-01-30 Richard Biener <rguenther@suse.de>
20102 PR tree-optimization/89111
20103 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
20104 canonicalization to appropriately sized access types.
20106 2019-01-30 Jakub Jelinek <jakub@redhat.com>
20109 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
20110 for arguments to functions that are TU-local and shouldn't be
20111 referenced by assembly.
20113 2019-01-30 Ulrich Drepper <drepper@redhat.com>
20115 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
20118 2019-01-29 Martin Sebor <msebor@redhat.com>
20121 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
20123 2019-01-29 Jakub Jelinek <jakub@redhat.com>
20127 * omp-simd-clone.c (simd_clone_clauses_extract)
20128 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
20129 OMP_CLAUSE_ALIGNED_ALIGNMENT.
20131 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
20133 * config.gcc: Force .init_array for ARC.
20135 2019-01-29 Richard Biener <rguenther@suse.de>
20138 * dwarf2out.c (collect_skeleton_dies): New helper.
20139 (copy_decls_for_unworthy_types): Call it.
20140 (build_abbrev_table): Assert we do not try to replace
20141 DW_AT_signature refs with local refs.
20143 2019-01-28 Jakub Jelinek <jakub@redhat.com>
20145 PR middle-end/89002
20146 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
20147 for lastprivate/linear IV, push gimplify context around gimplify_assign
20148 and, if it needed any temporaries, pop it into a gimple bind around the
20151 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
20153 * common.opt (-Wattribute-alias): Remove "no-" from name.
20154 Make -Wattribute-alias command line option and
20155 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
20157 2019-01-28 Jakub Jelinek <jakub@redhat.com>
20160 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
20161 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
20163 (bmi2): Add missing @opindex.
20164 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
20165 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
20166 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
20167 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
20168 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
20169 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
20170 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
20171 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
20172 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
20173 xsavec, xsaveopt and xsaves options.
20175 2019-01-28 Richard Biener <rguenther@suse.de>
20178 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
20181 2019-01-28 Richard Biener <rguenther@suse.de>
20183 PR tree-optimization/88739
20184 * tree-cfg.c (verify_types_in_gimple_reference): Verify
20185 BIT_FIELD_REFs only are applied to mode-precision operands
20186 when they are integral.
20187 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
20188 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
20189 BIT_FIELD_REFs of non-mode-precision integral operands.
20191 2019-01-27 Jakub Jelinek <jakub@redhat.com>
20194 * config/i386/sse.md
20195 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
20196 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
20197 first constants in pairs are multiples of 2. Formatting fixes.
20198 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
20199 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
20200 first constants in each quadruple are multiples of 4. Formatting fixes.
20202 2019-01-26 Martin Jambor <mjambor@suse.cz>
20205 * tree-inline.c: Include tree-cfgcleanup.h.
20206 (delete_unreachable_blocks_update_callgraph): Move...
20207 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
20208 ...here, make externally visible, make second argument bool, adjust
20210 * tree-cfgcleanup.c: Include cgraph.h.
20211 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
20213 * ipa-prop.c: Include tree-cfgcleanup.h.
20214 (ipcp_transform_function): Call
20215 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
20217 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
20219 PR rtl-optimization/88846
20220 * ira.c (process_set_for_memref_referenced_p): New.
20221 (memref_referenced_p): Add new param. Use
20222 process_set_for_memref_referenced_p. Add new switch cases.
20223 (memref_used_between_p): Pass new arg to memref_referenced_p.
20225 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
20228 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
20229 argument ABI_BREAK. Set to true if the calculated alignment has
20230 changed in gcc-9. Check bit-fields for their base type alignment.
20231 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
20232 (aarch64_function_arg_boundary): Likewise.
20233 (aarch64_gimplify_va_arg_expr): Likewise.
20235 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
20237 PR middle-end/89037
20238 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
20239 instead of accessing TREE_INT_CST_ELT directly.
20241 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
20243 * doc/sourcebuild.texi (Environment attributes): Add fenv and
20244 fenv_exceptions description.
20246 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
20248 PR rtl-optimization/87763
20249 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
20250 Allow SUBREG when matching CC_NZmode compare.
20252 2019-01-25 Richard Biener <rguenther@suse.de>
20254 PR tree-optimization/89049
20255 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
20256 Look at the pattern stmt to determine if the stmt is vectorized.
20258 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
20260 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
20261 (pred_mov<mode>): Handle all-register forms using both a new
20262 alternative and a split.
20264 2019-01-25 Richard Biener <rguenther@suse.de>
20266 PR tree-optimization/86865
20267 * graphite-scop-detection.c (scop_detection::can_represent_loop):
20268 Reject non-do-while loops.
20270 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
20272 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
20273 * config/rs6000/constraints.md (Q constraint): Use REG_P.
20274 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
20275 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
20276 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
20277 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
20278 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
20279 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
20280 vlogical_operand, gpc_reg_operand, int_reg_operand,
20281 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
20282 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
20283 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
20284 (save_world_operation, restore_world_operation, lmw_operation,
20285 stmw_operation): Use MEM_P and REG_P.
20286 (tie_operand): Use MEM_P.
20287 (vrsave_operation, crsave_operation): Use REG_P.
20288 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
20289 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
20290 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
20291 (call_operand): Use HARD_REGISTER_P.
20292 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
20294 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
20295 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
20296 quad_aligned_load_p, replace_swapped_aligned_store,
20297 recombine_lvx_pattern, replace_swapped_aligned_load,
20298 recombine_stvx_pattern): Use MEM_P.
20299 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
20300 Use MEM_P and SYMBOL_REF_P.
20301 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
20302 (insn_is_swappable_p): Use REG_P and MEM_P.
20303 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
20304 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
20306 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
20307 Use CONST_DOUBLE_P.
20308 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
20310 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
20311 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
20312 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
20313 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
20315 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
20316 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
20317 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
20318 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
20319 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
20320 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
20321 rs6000_split_logical_di): Use CONST_INT_P.
20322 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
20323 REG_P and SYMBOL_REF_P.
20324 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
20325 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
20326 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
20327 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
20328 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
20329 (small_data_operand, print_operand_address): Use CONST_INT_P and
20331 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
20332 (rs6000_init_hard_regno_mode_ok, direct_move_p):
20333 Use HARD_REGISTER_NUM_P.
20334 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
20335 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
20336 SUBREG_P and SYMBOL_REF_P.
20337 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
20338 and HARD_REGISTER_NUM_P.
20339 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
20341 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
20342 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
20344 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
20345 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
20346 find_addr_reg): Use REG_P.
20347 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
20348 (rs6000_emit_le_vsx_move): Use SUBREG_P.
20349 (offsettable_ok_by_alignment, constant_pool_expr_p,
20350 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
20351 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
20352 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
20353 rs6000_assemble_integer, create_TOC_reference,
20354 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
20355 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
20356 (rs6000_split_vec_extract_var): Use reg_or_subregno.
20357 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
20358 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
20359 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
20360 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
20361 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
20362 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
20363 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
20364 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
20365 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
20366 and cbranch<mode>4): Use CONST_INT_P.
20367 (multiple define_splits): Use REG_P and SUBREG_P.
20368 (define_expands call, call_value): Use MEM_P.
20369 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
20370 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
20371 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
20372 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
20373 and HARD_REGISTER_NUM_P.
20374 (multiple define_splits): Use HARD_REGISTER_NUM_P.
20376 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
20378 PR rtl-optimization/88948
20379 * rtl.h (prepare_copy_insn): New prototype.
20380 * gcse.c (prepare_copy_insn): New function, split out from
20381 process_insert_insn.
20382 (process_insert_insn): Use prepare_copy_insn.
20383 * store-motion.c (replace_store_insn): Use prepare_copy_insn
20384 instead of gen_move_insn.
20386 2019-01-24 Jakub Jelinek <jakub@redhat.com>
20389 * config/i386/i386.c (ix86_pic_register_p): Return true for
20390 UNSPEC_SET_GOT too.
20392 PR tree-optimization/88964
20393 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
20394 punt if HONOR_SNANS (chrec).
20396 PR middle-end/89015
20397 * tree-nested.c (convert_nonlocal_reference_stmt,
20398 convert_local_reference_stmt, convert_tramp_reference_stmt,
20399 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
20400 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
20401 or GIMPLE_OMP_TASK.
20403 PR tree-optimization/89027
20404 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
20405 for "omp simd array" variables.
20407 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
20410 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
20411 force the alignment of m_val.
20413 2019-01-24 Richard Biener <rguenther@suse.de>
20416 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
20417 When in "legacy" debug mode make sure to reset self-origins.
20419 2019-01-24 Martin Liska <mliska@suse.cz>
20421 PR gcov-profile/88994
20422 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
20423 result will be always smaller or equal to the original.
20424 * gcov.c (mangle_name): Fix else branch where we should
20425 also copy to PTR and shift the pointer.
20427 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
20429 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
20430 * vr-values.c (find_case_label_ranges): Fix a comment typo.
20432 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
20434 * common/config/i386/i386-common.c
20435 (OPTION_MASK_ISA_ENQCMD_SET,
20436 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
20437 (ix86_handle_option): Handle -menqcmd.
20438 * config.gcc (enqcmdintrin.h): New header file.
20439 * config/i386/cpuid.h (bit_ENQCMD): New bit.
20440 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20442 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
20444 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
20445 __builtin_ia32_enqcmds): New builtins.
20446 * config/i386/i386-c.c (__ENQCMD__): New macro.
20447 * config/i386/i386-option.c (ix86_target_string): Add
20449 (ix86_valid_target_attribute_inner_p): Likewise.
20450 * config/i386/i386-expand.c
20451 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
20452 IX86_BUILTIN_ENQCMDS.
20453 * config/i386/i386.h (TARGET_ENQCMD): New.
20454 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
20455 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
20456 (movdir64b_<mode>): Parameterize to enable share expansion code
20457 with ENQCMD in function ix86_expand_builtin.
20458 * config/i386/i386.opt: Add -menqcmd.
20459 * config/i386/immintrin.h: Include enqcmdintrin.h.
20460 * config/i386/enqcmdintrin.h: New intrinsic file.
20461 * doc/invoke.texi: Add -menqcmd.
20463 2019-01-23 Bin Cheng <bin.cheng@arm.com>
20464 Steve Ellcey <sellcey@marvell.com>
20467 * recog.c (address_operand): Return false on wrong mode for address.
20468 (constrain_operands): Check for mode with 'p' constraint.
20470 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
20473 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
20474 Disparage MMX alternative.
20475 (sse2_cvtpd2pi): Ditto.
20476 (sse2_cvttpd2pi): Ditto.
20478 2019-01-23 David Malcolm <dmalcolm@redhat.com>
20481 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
20482 use-after-free of the result of
20483 aarch64_get_extension_string_for_isa_flags.
20485 2019-01-23 Jakub Jelinek <jakub@redhat.com>
20488 * doc/extend.texi: Document break and continue behavior in
20489 statement expressions.
20491 2019-01-23 Richard Biener <rguenther@suse.de>
20493 PR tree-optimization/89008
20494 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
20495 not leave another stray operand.
20497 2019-01-23 Jakub Jelinek <jakub@redhat.com>
20499 * BASE-VER: Bump to 9.0.1.
20501 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
20503 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
20504 thunk that returns by reference, use the type of the return object
20505 of the thunk instead of that of the alias to build the dereference.
20507 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
20509 * config/arc/atomic.md: Add operand to DMB instruction.
20511 2019-01-23 Jakub Jelinek <jakub@redhat.com>
20513 PR tree-optimization/88964
20514 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
20515 build_zero_cst instead of build_int_cst. Return false for loop
20516 invariants which honor signed zeros.
20518 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
20520 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
20522 2019-01-22 Jakub Jelinek <jakub@redhat.com>
20525 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
20526 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
20527 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
20529 PR middle-end/88968
20530 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
20531 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
20534 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
20535 Disable for little endian.
20537 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
20540 * config/arm/arm.c (arm_needs_double_word_align): Check
20541 DECL_BIT_FIELD_TYPE.
20543 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
20544 H.J. Lu <hongjiu.lu@intel.com>
20547 * config/i386/i386-builtin.def: Add mask2 to all builtin
20548 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
20550 * config/i386/i386.c (BDESC): Add mask2 to the definition.
20551 (BDESC_FIRST): Likewise.
20552 (define_builtin): Add an argument for mask2. Updated to handle
20553 both ix86_isa_flags and ix86_isa_flags2.
20554 (define_builtin_const): Likewise.
20555 (define_builtin_pure): Likewise.
20556 (define_builtin2): Deleted.
20557 (define_builtin_const2): Likewise.
20558 (builtin_description): Add a member, mask2.
20559 (bdesc_*): Add mask2 to builtin initializations.
20560 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
20561 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
20563 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
20565 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
20568 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
20571 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
20574 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
20575 alignment is dominated by a bitfield with 64-bit aligned base type.
20576 (arm_function_arg): Emit a warning if the alignment has changed since
20577 earlier GCC releases.
20578 (arm_function_arg_boundary): Likewise.
20579 (arm_setup_incoming_varargs): Likewise.
20581 2019-01-22 Richard Biener <rguenther@suse.de>
20583 PR tree-optimization/88862
20584 * graphite-scop-detection.c
20585 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
20587 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
20589 * doc/extend.tex (AMD GCN Function Attributes): New section.
20590 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
20591 * doc/invoke.texi (AMD GCN Options): New section.
20592 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
20594 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
20596 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
20597 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
20599 2019-01-22 Jakub Jelinek <jakub@redhat.com>
20601 PR tree-optimization/88044
20602 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
20603 is false in the first iteration, but !every_iteration, return false
20604 instead of true with niter->niter zero.
20606 PR rtl-optimization/88904
20607 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
20608 any nonequal registers before processing BB_END (b).
20611 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
20613 (expand_binop_directly, expand_doubleword_clz,
20614 expand_doubleword_popcount, expand_ctz, expand_ffs,
20615 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
20617 PR rtl-optimization/49429
20619 PR rtl-optimization/86334
20621 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
20622 addressable from here...
20623 (emit_block_op_via_libcall): ... to here.
20625 2019-01-22 Richard Biener <rguenther@suse.de>
20627 * tree-vect-loop.c (vect_analyze_loop_operations): Use
20628 auto_vec for cost vector to fix memleak.
20629 (vectorize_fold_left_reduction): Properly gather SLP defs.
20630 (vectorizable_comparison): Do not swap operands to properly
20633 2019-01-22 Alan Modra <amodra@gmail.com>
20636 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
20637 stays a reg. Allow a const_int.
20638 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
20639 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
20640 (IS_NOMARK_TLSGETADDR): Define.
20641 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
20642 (rs6000_output_tlsargs): New function.
20643 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
20644 __tls_get_addr call takes an arg.
20645 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
20646 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
20648 (call_value_nonlocal_sysv): ..or here, delete split.
20649 (tls_gdld_nomark): Delete.
20650 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
20651 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
20652 (call_value_nonlocal_sysv): Likewise.
20653 (call_value_nonlocal_sysv_secure): Likewise.
20654 (call_value_nonlocal_aix): Likewise.
20655 (call_value_indirect_aix): Likewise.
20656 (call_value_indirect_elfv2): Likewise.
20657 (call_value_local32, call_value_local64): Disable for no-mark tls.
20658 (call_value_local_aix): Likewise.
20660 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
20663 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
20664 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
20666 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
20668 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
20669 string contents as hash_map keys.
20671 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
20674 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
20675 for rvalue context. Handle rvalues correctly. Use min_align_of_type
20676 instead of TYPE_ALIGN.
20677 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
20678 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
20679 pointer from TYPE_STUB_DECL.
20681 2019-01-21 Richard Biener <rguenther@suse.de>
20683 PR tree-optimization/88934
20684 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
20685 at the possibly non-constant operand.
20686 (vect_get_constant_vectors): Adjust.
20688 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
20691 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
20692 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
20693 instead of _X86INTRIN_H_INCLUDED.
20694 * onfig/i386/clwbintrin.h: Likewise.
20695 * config/i386/pkuintrin.h: Likewise.
20696 * config/i386/prfchwintrin.h: Likewise.
20697 * config/i386/rdseedintrin.h: Likewise.
20698 * config/i386/wbnoinvdintrin.h: Likewise.
20699 * config/i386/xsavecintrin.h: Likewise.
20700 * config/i386/xsavesintrin.h: Likewise.
20701 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
20702 * config/i386/xsaveintrin.h: Likewise.
20703 * config/i386/xsaveoptintrin.h: Likewise.
20704 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
20705 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
20706 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
20707 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
20708 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
20709 * config/i386/immintrin.h: Here.
20711 2019-01-20 Martin Jambor <mjambor@suse.cz>
20714 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
20715 with aa_walk_budget.
20716 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
20717 aa_walk_budget_p parameter.
20718 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
20719 walk. Updated all callers.
20720 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
20721 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
20723 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
20724 parameter info. Extract info from fbi. Pass fbi to recursive calls
20725 and to unmodified_parm.
20726 (phi_result_unknown_predicate): New parameter fbi, removed parameter
20727 info, updated call to will_be_nonconstant_expr_predicate.
20728 (param_change_prob): New parameter fbi, limit AA walking.
20729 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
20730 calls to various above functions.
20731 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
20732 parameter. Use it to limit AA walking.
20733 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
20734 fbi, limit AA walk.
20735 (detect_type_change): New parameter fbi, pass it on to
20736 detect_type_change_from_memory_writes.
20737 (detect_type_change_ssa): Likewise.
20738 (aa_overwalked): Removed.
20739 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
20740 accordingly, adjust to the neew AA limiting scheme.
20741 (parm_ref_data_preserved_p): Likewise.
20742 (ipa_compute_jump_functions_for_edge): Adjust call to
20744 (ipa_analyze_call_uses): Likewise.
20745 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
20746 (ipa_analyze_node): Initialize aa_walk_budget.
20747 (ipcp_transform_function): Likewise.
20748 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
20749 to get_dynamic_type.
20751 2019-01-19 Jakub Jelinek <jakub@redhat.com>
20753 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
20754 outside of #if CHECKING_P code.
20756 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
20758 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
20759 New function, split out from...
20760 (loop_versioning::analyze_stride): ...here.
20761 (loop_versioning::find_per_loop_multiplication): Use gassign.
20762 (loop_versioning::analyze_term_using_scevs): Return a success code.
20763 (loop_versioning::analyze_arbitrary_term): New function.
20764 (loop_versioning::analyze_address_fragment): Use
20765 analyze_arbitrary_term if all else fails.
20767 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
20770 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
20773 2019-01-18 Richard Biener <rguenther@suse.de>
20775 PR tree-optimization/88903
20776 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
20777 scalar stmts a SLP shift amount is composed of when detecting
20780 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
20783 * config/arm/arm-cpus.in (mp): New feature.
20784 (sec): New feature.
20785 (fgroup ARMv7ve): Add mp and sec features.
20786 (arch armv7-a): Add options to allow mp and sec extensions.
20787 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
20788 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
20789 extenstions to the base architecture.
20790 (cpu cortex-a8): Add sec extension to the base architecture.
20791 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
20792 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
20793 variants down to the base v7-a varaint.
20794 * config/arm/t-multilib (v7_a_arch_variants): New variable.
20795 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
20796 of permitted extensions for -march=armv7-a and for
20797 -mcpu=generic-armv7-a.
20799 2019-01-18 Martin Liska <mliska@suse.cz>
20801 * params.def: Fix comment.
20802 * tree-profile.c (gimple_init_gcov_profiler): Bump function
20804 (gimple_gen_ic_func_profiler): Likewise.
20806 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20808 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
20809 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
20810 and put in error checks for stack protector guard options.
20811 (aarch64_stack_protect_guard): New.
20812 (TARGET_STACK_PROTECT_GUARD): Define.
20813 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
20814 (reg_stack_protect_address<mode>): New.
20815 (stack_protect_set): Adjust for SSP_GLOBAL.
20816 (stack_protect_test): Likewise.
20817 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
20818 (-mstack-protector-guard): Likewise.
20819 (-mstack-protector-guard-offset): Likewise.
20821 2019-01-18 Jakub Jelinek <jakub@redhat.com>
20823 PR tree-optimization/86214
20824 * tree-inline.h (struct copy_body_data): Add
20825 add_clobbers_to_eh_landing_pads member.
20826 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
20827 (copy_edges_for_bb): Call it if EH edge destination is <
20828 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
20829 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
20830 if flag_stack_reuse != SR_NONE and clear it afterwards.
20832 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
20835 * doc/install.texi (with-multilib-list): Document for aarch64.
20837 2019-01-18 Jakub Jelinek <jakub@redhat.com>
20840 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
20841 (("..."))) with ("...").
20843 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
20845 * doc/extend.texi (Built-in Functions for Memory Model Aware
20846 Atomic Operations): Document atomic fetch and nand.
20848 2019-01-18 Martin Liska <mliska@suse.cz>
20849 Richard Biener <rguenther@suse.de>
20851 PR middle-end/88587
20852 * cgraph.h (create_version_clone_with_body): Add new argument
20854 * cgraphclones.c (cgraph_node::create_version_clone): Add
20855 DECL_ATTRIBUTES to a newly created decl. And call
20856 valid_attribute_p so that proper cl_target_optimization_node
20857 is set for the newly created declaration.
20858 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
20860 (expand_target_clones): Do not call valid_attribute_p, it must
20862 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
20865 2019-01-17 Jakub Jelinek <jakub@redhat.com>
20868 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
20869 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
20870 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
20872 2019-01-17 Martin Sebor <msebor@redhat.com>
20874 PR middle-end/88273
20875 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
20876 Handle anti-ranges the same as no range at all.
20878 2018-01-17 Steve Ellcey <sellcey@cavium.com>
20880 * config/aarch64/aarch64.c (cgraph.h): New include.
20881 (intl.h): New include.
20882 (supported_simd_type): New function.
20883 (currently_supported_simd_type): Ditto.
20884 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
20885 (aarch64_simd_clone_adjust): Ditto.
20886 (aarch64_simd_clone_usable): Ditto.
20887 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
20888 (TARGET_SIMD_CLONE_ADJUST): Ditto.
20889 (TARGET_SIMD_CLONE_USABLE): Ditto.
20890 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
20891 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
20894 2019-01-17 Martin Sebor <msebor@redhat.com>
20896 PR tree-optimization/88800
20897 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
20898 NO_WARNING bit here. Avoid folding out-of-bounds calls.
20899 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
20900 redundant argument. Add new argument and issue diagnostics under
20901 its control. Detect out-of-bounds access even with warnings
20903 (check_bounds_or_overlap): Change return type. Add argument.
20904 (wrestrict_dom_walker::check_call): Adjust.
20905 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
20906 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
20907 check_bounds_or_overlap's return value.
20908 (handle_builtin_stxncpy): Same.
20909 (handle_builtin_strcat): Same.
20911 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20912 Kwok Cheung Yeung <kcy@codesourcery.com>
20913 Julian Brown <julian@codesourcery.com>
20914 Tom de Vries <tom@codesourcery.com>
20916 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
20918 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20920 * doc/sourcebuild.texi: Document dg-require-effective-target
20921 llvm_binutils and offload_gcn.
20923 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20924 Kwok Cheung Yeung <kcy@codesourcery.com>
20925 Julian Brown <julian@codesourcery.com>
20926 Tom de Vries <tom@codesourcery.com>
20928 * doc/sourcebuild.texi: Document dg-required-effective-target
20931 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20932 Kwok Cheung Yeung <kcy@codesourcery.com>
20933 Julian Brown <julian@codesourcery.com>
20934 Tom de Vries <tom@codesourcery.com>
20935 Jan Hubicka <hubicka@ucw.cz>
20936 Martin Jambor <mjambor@suse.cz>
20938 * config.gcc: Add amdgcn*-*-amdhsa configuration.
20939 * configure.ac: Check for dlopen.
20940 * configure: Regenerate.
20942 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20943 Kwok Cheung Yeung <kcy@codesourcery.com>
20944 Julian Brown <julian@codesourcery.com>
20945 Tom de Vries <tom@codesourcery.com>
20946 Jan Hubicka <hubicka@ucw.cz>
20947 Martin Jambor <mjambor@suse.cz>
20949 * common/config/gcn/gcn-common.c: New file.
20950 * config/gcn/driver-gcn.c: New file.
20951 * config/gcn/gcn-builtins.def: New file.
20952 * config/gcn/gcn-hsa.h: New file.
20953 * config/gcn/gcn-modes.def: New file.
20954 * config/gcn/gcn-opts.h: New file.
20955 * config/gcn/gcn-passes.def: New file.
20956 * config/gcn/gcn-protos.h: New file.
20957 * config/gcn/gcn-run.c: New file.
20958 * config/gcn/gcn-tree.c: New file.
20959 * config/gcn/gcn.c: New file.
20960 * config/gcn/gcn.h: New file.
20961 * config/gcn/gcn.opt: New file.
20962 * config/gcn/t-gcn-hsa: New file.
20964 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20965 Kwok Cheung Yeung <kcy@codesourcery.com>
20966 Julian Brown <julian@codesourcery.com>
20967 Tom de Vries <tom@codesourcery.com>
20968 Jan Hubicka <hubicka@ucw.cz>
20969 Martin Jambor <mjambor@suse.cz>
20971 * config/gcn/constraints.md: New file.
20972 * config/gcn/gcn-valu.md: New file.
20973 * config/gcn/gcn.md: New file.
20974 * config/gcn/predicates.md: New file.
20976 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
20978 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
20979 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
20980 (stmt_uses_0_or_null_in_undefined_way): Likewise.
20981 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
20983 2019-01-17 Tamar Christina <tamar.christina@arm.com>
20986 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
20987 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
20988 it and document registers.
20990 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20992 * config/aarch64/aarch64.c (ares_tunings): Define.
20993 * config/aarch64/aarch64-cores.def (ares): Use the above.
20995 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
20999 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
21001 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
21002 (_mm512_fixupimm_round_pd): Update parameters and builtin.
21003 (_mm512_maskz_fixupimm_round_pd): Ditto.
21004 (_mm512_fixupimm_round_ps): Ditto.
21005 (_mm512_maskz_fixupimm_round_ps): Ditto.
21006 (_mm_fixupimm_round_sd): Ditto.
21007 (_mm_maskz_fixupimm_round_sd): Ditto.
21008 (_mm_fixupimm_round_ss): Ditto.
21009 (_mm_maskz_fixupimm_round_ss): Ditto.
21010 (_mm512_fixupimm_pd): Ditto.
21011 (_mm512_maskz_fixupimm_pd): Ditto.
21012 (_mm512_fixupimm_ps): Ditto.
21013 (_mm512_maskz_fixupimm_ps): Ditto.
21014 (_mm_fixupimm_sd): Ditto.
21015 (_mm_maskz_fixupimm_sd): Ditto.
21016 (_mm_fixupimm_ss): Ditto.
21017 (_mm_maskz_fixupimm_ss): Ditto.
21018 (_mm512_mask_fixupimm_round_pd): Update builtin.
21019 (_mm512_mask_fixupimm_round_ps): Ditto.
21020 (_mm_mask_fixupimm_round_sd): Ditto.
21021 (_mm_mask_fixupimm_round_ss): Ditto.
21022 (_mm512_mask_fixupimm_pd): Ditto.
21023 (_mm512_mask_fixupimm_ps): Ditto.
21024 (_mm_mask_fixupimm_sd): Ditto.
21025 (_mm_mask_fixupimm_ss): Ditto.
21026 * config/i386/avx512vlintrin.h:
21027 (_mm256_fixupimm_pd): Update parameters and builtin.
21028 (_mm256_maskz_fixupimm_pd): Ditto.
21029 (_mm256_fixupimm_ps): Ditto.
21030 (_mm256_maskz_fixupimm_ps): Ditto.
21031 (_mm_fixupimm_pd): Ditto.
21032 (_mm_maskz_fixupimm_pd): Ditto.
21033 (_mm_fixupimm_ps): Ditto.
21034 (_mm_maskz_fixupimm_ps): Ditto.
21035 (_mm256_mask_fixupimm_pd): Update builtin.
21036 (_mm256_mask_fixupimm_ps): Ditto.
21037 (_mm_mask_fixupimm_pd): Ditto.
21038 (_mm_mask_fixupimm_ps): Ditto.
21039 * config/i386/i386-builtin-types.def: Add new types and remove
21041 * config/i386/i386-builtin.def: Update builtin definitions.
21042 * config/i386/i386.c: Handle new builtin types and remove useless ones.
21043 * config/i386/sse.md: Update VFIXUPIMM* patterns.
21044 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
21045 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
21046 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
21047 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
21048 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
21049 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
21050 * config/i386/subst.md:
21051 (round_saeonly_sd_mask_operand4): Add new subst_attr.
21052 (round_saeonly_sd_mask_op4): Ditto.
21053 (round_saeonly_expand_operand5): Ditto.
21054 (round_saeonly_expand): Update.
21056 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
21060 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
21062 * config/i386/sse.md: Combine VFIXUPIMM* patterns
21063 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
21064 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
21065 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
21066 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
21067 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
21068 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
21070 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
21074 2018-12-15 Jakub Jelinek <jakub@redhat.com>
21077 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
21078 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
21079 instead of UNSPEC_FIXUPIMM.
21081 2019-01-17 Richard Biener <rguenther@suse.de>
21084 * dwarf2out.c (want_pubnames): Never generate pubnames sections
21085 and friends for the LTO part of debug info.
21087 2019-01-17 Jakub Jelinek <jakub@redhat.com>
21089 PR tree-optimization/86214
21090 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
21093 PR rtl-optimization/88870
21094 * dce.c (deletable_insn_p): Never delete const/pure calls that can
21095 throw if we can't alter the cfg or delete dead exceptions.
21096 (mark_insn): Don't call find_call_stack_args for such calls.
21098 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
21100 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
21101 prototypes for vec_st.
21102 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
21103 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
21104 mainly on signed/unsigned long long and double.
21106 2019-01-16 David Malcolm <dmalcolm@redhat.com>
21109 * combine.c (delete_noop_moves): Convert to "bool" return,
21110 returning true if any edges are eliminated.
21111 (combine_instructions): Also return true if delete_noop_moves
21114 2019-01-16 Tamar Christina <tamar.christina@arm.com>
21116 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
21117 correct max nunits for endian swap.
21118 (aarch64_expand_fcmla_builtin): Correct subreg code.
21119 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
21120 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
21123 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
21125 * config/alpha/alpha.c (alpha_gimplify_va_arg):
21126 Handle split indirect COMPLEX_TYPE arguments.
21128 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
21131 * config/aarch64/aarch64-modes.def: Add comment about how the carry
21132 bit is set by add and compare.
21133 (CC_ADC): New CC_MODE.
21134 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
21135 to cache the code and mode of X. Adjust the shape of a CC_Cmode
21136 comparison. Add detection for CC_ADCmode.
21137 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
21139 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
21140 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
21141 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
21142 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
21143 to eliminate the need for zero-extending the operands.
21144 (add<mode>3_compareC_imm): Delete. Merge into ...
21145 (add<mode>3_compareC): ... this. Restructure the comparison to
21146 eliminate the need for zero-extending the operands.
21147 (add<mode>3_carryin): Use LTU for the overflow detection.
21148 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
21149 Reexpress comparison for overflow.
21150 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
21151 (add<mode>3_carryinC): Likewise.
21152 (add<mode>3_carryinV): Use LTU for carry between partials.
21153 * config/aarch64/predicates.md (aarch64_carry_operation): Update
21154 handling of CC_Cmode and add CC_ADCmode.
21155 (aarch64_borrow_operation): Likewise.
21157 2019-01-16 Tamar Christina <tamar.christina@arm.com>
21159 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
21160 Remove patternmode.
21161 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
21162 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
21163 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
21164 Remove endianness conversion.
21166 2019-01-16 Martin Liska <mliska@suse.cz>
21168 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
21170 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
21172 * gcc.c (add_sysrooted_hdrs_prefix): New function.
21173 (path_prefix_reset): Move up in the source file.
21174 (find_fortran_preinclude_file): Make complex search for the
21175 fortran header files.
21177 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
21179 * godump.c (go_output_typedef): When outputting a typedef, refer
21180 to the underlying type by its name and not its structure.
21182 2019-01-15 David Malcolm <dmalcolm@redhat.com>
21185 * tree.c (build_function_type): Assert that arg_types is not
21188 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
21190 PR inline-asm/52813
21191 * doc/extend.texi: Document that listing the stack pointer in the
21192 clobber list of an asm is a deprecated feature.
21193 * common.opt (Wdeprecated): Moved from c-family/c.opt.
21194 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
21195 warning instead of an error for clobbers of the stack pointer.
21196 Add a note explaining why.
21198 2019-01-15 Richard Biener <rguenther@suse.de>
21201 * dwarf2out.c (gen_member_die): Do not generate inheritance
21204 2019-01-15 Richard Biener <rguenther@suse.de>
21206 PR tree-optimization/88855
21207 * tree-if-conv.c (combine_blocks): Collect
21208 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
21210 2019-01-15 Tom de Vries <tdevries@suse.de>
21213 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
21214 lhs == NULL_TREE for gang-level reduction.
21216 2019-01-15 Richard Biener <rguenther@suse.de>
21217 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21220 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
21221 return true if SSA_NAME is already marked in visited bitmap.
21222 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
21224 2019-01-15 Jakub Jelinek <jakub@redhat.com>
21226 PR tree-optimization/88775
21227 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
21228 equal == 0 equality pointer comparisons some more if compared in
21229 integral types and either one points to an automatic var and the
21230 other to a global, or we can prove at least one points to the middle
21231 or both point to start or both point to end.
21233 2019-01-14 Andi Kleen <ak@linux.intel.com>
21235 * Makefile.in: Lower autofdo sampling rate by 10x.
21236 * Makefile.tpl: Dito.
21238 2019-01-14 Tom Honermann <tom@honermann.net>
21240 * defaults.h: Define CHAR8_TYPE.
21242 2019-01-14 Martin Sebor <msebor@redhat.com>
21245 * doc/extend.texi (Darwin Format Checks): Clarify.
21247 2019-01-14 Richard Biener <rguenther@suse.de>
21249 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
21250 whether we are in (simplify ...) or (match ...) context.
21252 2019-01-14 Jakub Jelinek <jakub@redhat.com>
21254 PR rtl-optimization/88796
21255 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
21256 * cfgexpand.c (stack_protect_prologue): Initialize
21257 crtl->stack_protect_guard_decl.
21258 * function.c (stack_protect_epilogue): Use it instead of calling
21259 targetm.stack_protect_guard again.
21260 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
21261 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
21262 crtl->stack_protect_guard_decl.
21263 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
21264 on the returned MEM_EXPR.
21266 2019-01-12 Tom de Vries <tdevries@suse.de>
21268 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
21269 vector length using -fopenacc-dim.
21271 2019-01-12 Tom de Vries <tdevries@suse.de>
21273 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
21274 lengths into account.
21276 2019-01-12 Svante Signell <svante.signell@gmail.com>
21278 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
21279 (TARGET_CAN_SPLIT_STACK): Define.
21280 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
21282 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21284 * params.def (inline-unit-growth): Set to 40.
21286 2019-01-12 Jakub Jelinek <jakub@redhat.com>
21288 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
21290 2019-01-12 Tom de Vries <tdevries@suse.de>
21292 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
21293 region calling vector-partitionable routine, set default_vector_length
21296 2019-01-12 Tom de Vries <tdevries@suse.de>
21298 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
21299 variable default_vector_length.
21301 2019-01-12 Tom de Vries <tdevries@suse.de>
21303 PR middle-end/88703
21304 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
21305 from oacc_default_dims, as oacc_validate_dims would do it, and apply
21308 2019-01-12 Tom de Vries <tdevries@suse.de>
21310 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
21311 (nvptx_goacc_validate_dims): Add used parameter.
21312 * doc/tm.texi: Regenerate.
21313 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
21314 argument to call to targetm.goacc.validate_dims.
21315 (default_goacc_validate_dims): Add used
21317 * target.def (validate_dims): Add used parameter in DEFHOOK.
21318 * targhooks.h (default_goacc_validate_dims): Add used parameter.
21320 2019-01-11 Jakub Jelinek <jakub@redhat.com>
21322 PR middle-end/85956
21324 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
21326 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
21327 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
21328 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
21329 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
21331 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
21333 PR rtl-optimization/87305
21335 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
21336 for little endian pseudos used as paradoxical subreg.
21338 2019-01-11 Jakub Jelinek <jakub@redhat.com>
21340 PR tree-optimization/88693
21341 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
21342 for STRING_CSTs that don't contain any NUL characters in the first
21343 TREE_STRING_LENGTH bytes.
21345 2019-01-11 Alan Modra <amodra@gmail.com>
21349 * genattrtab.c (min_fn): Don't translate values.
21350 (min_attr_value): Return INT_MAX when the value can't be calculated.
21351 Return minimum among any values that can be calculated.
21352 (max_attr_value): Adjust.
21354 2019-01-11 Jakub Jelinek <jakub@redhat.com>
21356 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
21358 2019-01-11 Steve Ellcey <sellcey@marvell.com>
21360 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
21361 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
21362 (aarch64_return_call_with_max_clobbers): New function.
21363 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
21364 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
21366 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
21367 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
21368 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
21369 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
21370 * cselib.c (cselib_process_insn): Add argument to
21371 targetm.hard_regno_call_part_clobbered call.
21372 * ira-conflicts.c (ira_build_conflicts): Ditto.
21373 * ira-costs.c (ira_tune_allocno_costs): Ditto.
21374 * lra-constraints.c (inherit_reload_reg): Ditto.
21375 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
21376 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
21377 argument. Call targetm.return_call_with_max_clobbers.
21378 Add argument to targetm.hard_regno_call_part_clobbered call.
21379 (calls_have_same_clobbers_p): New function.
21380 (process_bb_lives): Add call_insn and last_call_insn variables.
21381 Pass call_insn to check_pseudos_live_through_calls.
21382 Modify if stmt to check targetm.return_call_with_max_clobbers.
21383 Update setting of flush variable.
21384 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
21386 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
21387 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
21388 targetm.hard_regno_call_part_clobbered call.
21389 * reginfo.c (choose_hard_reg_mode): Ditto.
21390 * regrename.c (check_new_reg_p): Ditto.
21391 * reload.c (find_equiv_reg): Ditto.
21392 * reload1.c (emit_reload_insns): Ditto.
21393 * sched-deps.c (deps_analyze_insn): Ditto.
21394 * sel-sched.c (init_regs_for_mode): Ditto.
21395 (mark_unavailable_hard_regs): Ditto.
21396 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
21397 * target.def (hard_regno_call_part_clobbered): Add insn argument.
21398 (return_call_with_max_clobbers): New target function.
21399 * doc/tm.texi: Regenerate.
21400 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
21401 * hooks.c (hook_bool_uint_mode_false): Change to
21402 hook_bool_insn_uint_mode_false.
21403 * hooks.h (hook_bool_uint_mode_false): Ditto.
21405 2019-01-11 Steve Ellcey <sellcey@marvell.com>
21407 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
21408 (aarch64_remove_extra_call_preserved_regs): New function.
21409 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
21410 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
21411 * doc/tm.texi: Regenerate.
21412 * final.c (get_call_reg_set_usage): Call new hook.
21413 * target.def (remove_extra_call_preserved_regs): New hook.
21414 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
21415 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
21417 2019-01-11 Jakub Jelinek <jakub@redhat.com>
21420 * passes.c (finish_optimization_passes): Call print_combine_total_stats
21421 inside of pass_combine_1 dump rather than pass_profile_1.
21423 2019-01-11 Tom de Vries <tdevries@suse.de>
21425 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
21426 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
21427 (PTX_NUM_PER_WORKER_BARRIERS): Define.
21428 (nvptx_apply_dim_limits): Prevent vector_length 64 and
21431 2019-01-11 Tom de Vries <tdevries@suse.de>
21433 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
21435 2019-01-11 Jan Beulich <jbeulich@suse.com>
21437 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
21438 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
21439 sse2_cvtsi2sd): Add {l}.
21440 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
21443 2019-01-10 Jakub Jelinek <jakub@redhat.com>
21446 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
21448 (*float<floatunssuffix>v2div2sf2): New define_insn.
21449 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
21450 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
21451 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
21452 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
21453 match_operands with "const0_operand" "C".
21455 2019-01-10 Tamar Christina <tamar.christina@arm.com>
21457 * config/aarch64/aarch64-builtins.c
21458 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
21459 (aarch64_init_simd_builtins): ...Here
21461 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
21463 PR rtl-optimization/87305
21465 (setup_live_pseudos_and_spill_after_risky_transforms): Check
21466 allocation for big endian pseudos used as paradoxical subregs and
21467 spill them if it is wrong.
21468 * lra-constraints.c (lra_constraints): Add a comment.
21470 2019-01-10 Richard Biener <rguenther@suse.de>
21472 PR tree-optimization/88792
21473 * tree-ssa-pre.c (get_representative_for): Do not return a
21476 2019-01-10 Jakub Jelinek <jakub@redhat.com>
21478 PR middle-end/84877
21480 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
21481 (assign_parm_setup_block): Do the argument slot realignment here
21484 2019-01-10 Stefan Agner <stefan@agner.ch>
21487 * config/arm/arm.c (arm_option_override_internal): Force
21488 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
21490 2019-01-10 Jakub Jelinek <jakub@redhat.com>
21493 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
21496 2019-01-10 Tamar Christina <tamar.christina@arm.com>
21498 * config/arm/arm-builtins.c
21499 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
21500 (MAC_LANE_PAIR_QUALIFIERS): New.
21501 (arm_expand_builtin_args): Use it.
21502 (arm_expand_builtin_1): Likewise.
21503 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
21504 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
21505 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
21506 * config/arm/arm_neon.h:
21507 (vcadd_rot90_f16): New.
21508 (vcaddq_rot90_f16): New.
21509 (vcadd_rot270_f16): New.
21510 (vcaddq_rot270_f16): New.
21513 (vcmla_lane_f16): New.
21514 (vcmla_laneq_f16): New.
21515 (vcmlaq_lane_f16): New.
21516 (vcmlaq_laneq_f16): New.
21517 (vcmla_rot90_f16): New.
21518 (vcmlaq_rot90_f16): New.
21519 (vcmla_rot90_lane_f16): New.
21520 (vcmla_rot90_laneq_f16): New.
21521 (vcmlaq_rot90_lane_f16): New.
21522 (vcmlaq_rot90_laneq_f16): New.
21523 (vcmla_rot180_f16): New.
21524 (vcmlaq_rot180_f16): New.
21525 (vcmla_rot180_lane_f16): New.
21526 (vcmla_rot180_laneq_f16): New.
21527 (vcmlaq_rot180_lane_f16): New.
21528 (vcmlaq_rot180_laneq_f16): New.
21529 (vcmla_rot270_f16): New.
21530 (vcmlaq_rot270_f16): New.
21531 (vcmla_rot270_lane_f16): New.
21532 (vcmla_rot270_laneq_f16): New.
21533 (vcmlaq_rot270_lane_f16): New.
21534 (vcmlaq_rot270_laneq_f16): New.
21535 (vcadd_rot90_f32): New.
21536 (vcaddq_rot90_f32): New.
21537 (vcadd_rot270_f32): New.
21538 (vcaddq_rot270_f32): New.
21541 (vcmla_lane_f32): New.
21542 (vcmla_laneq_f32): New.
21543 (vcmlaq_lane_f32): New.
21544 (vcmlaq_laneq_f32): New.
21545 (vcmla_rot90_f32): New.
21546 (vcmlaq_rot90_f32): New.
21547 (vcmla_rot90_lane_f32): New.
21548 (vcmla_rot90_laneq_f32): New.
21549 (vcmlaq_rot90_lane_f32): New.
21550 (vcmlaq_rot90_laneq_f32): New.
21551 (vcmla_rot180_f32): New.
21552 (vcmlaq_rot180_f32): New.
21553 (vcmla_rot180_lane_f32): New.
21554 (vcmla_rot180_laneq_f32): New.
21555 (vcmlaq_rot180_lane_f32): New.
21556 (vcmlaq_rot180_laneq_f32): New.
21557 (vcmla_rot270_f32): New.
21558 (vcmlaq_rot270_f32): New.
21559 (vcmla_rot270_lane_f32): New.
21560 (vcmla_rot270_laneq_f32): New.
21561 (vcmlaq_rot270_lane_f32): New.
21562 (vcmlaq_rot270_laneq_f32): New.
21563 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
21564 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
21565 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
21566 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
21567 vcmlaq_lane270): New.
21568 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
21569 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
21570 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
21571 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
21572 (arm_option_reconfigure_globals): Use them.
21573 * config/arm/iterators.md (VDF, VQ_HSF): New.
21574 (VCADD, VCMLA): New.
21575 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
21576 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
21578 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
21579 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
21581 2019-01-10 Tamar Christina <tamar.christina@arm.com>
21583 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
21584 Add qualifier_lane_pair_index.
21585 (emit-rtl.h): Include.
21586 (TYPES_QUADOP_LANE_PAIR): New.
21587 (aarch64_simd_expand_args): Use it.
21588 (aarch64_simd_expand_builtin): Likewise.
21589 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
21591 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
21592 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
21593 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
21594 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
21595 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
21596 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
21597 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
21598 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
21599 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
21600 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
21601 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
21602 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
21603 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
21604 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
21605 Add __ARM_FEATURE_COMPLEX.
21606 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
21607 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
21608 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
21609 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
21610 fcmlaq_lane270): New.
21611 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
21612 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
21613 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
21614 * config/aarch64/arm_neon.h:
21615 (vcadd_rot90_f16): New.
21616 (vcaddq_rot90_f16): New.
21617 (vcadd_rot270_f16): New.
21618 (vcaddq_rot270_f16): New.
21621 (vcmla_lane_f16): New.
21622 (vcmla_laneq_f16): New.
21623 (vcmlaq_lane_f16): New.
21624 (vcmlaq_rot90_lane_f16): New.
21625 (vcmla_rot90_laneq_f16): New.
21626 (vcmla_rot90_lane_f16): New.
21627 (vcmlaq_rot90_f16): New.
21628 (vcmla_rot90_f16): New.
21629 (vcmlaq_laneq_f16): New.
21630 (vcmla_rot180_laneq_f16): New.
21631 (vcmla_rot180_lane_f16): New.
21632 (vcmlaq_rot180_f16): New.
21633 (vcmla_rot180_f16): New.
21634 (vcmlaq_rot90_laneq_f16): New.
21635 (vcmlaq_rot270_laneq_f16): New.
21636 (vcmlaq_rot270_lane_f16): New.
21637 (vcmla_rot270_laneq_f16): New.
21638 (vcmlaq_rot270_f16): New.
21639 (vcmla_rot270_f16): New.
21640 (vcmlaq_rot180_laneq_f16): New.
21641 (vcmlaq_rot180_lane_f16): New.
21642 (vcmla_rot270_lane_f16): New.
21643 (vcadd_rot90_f32): New.
21644 (vcaddq_rot90_f32): New.
21645 (vcaddq_rot90_f64): New.
21646 (vcadd_rot270_f32): New.
21647 (vcaddq_rot270_f32): New.
21648 (vcaddq_rot270_f64): New.
21652 (vcmla_lane_f32): New.
21653 (vcmla_laneq_f32): New.
21654 (vcmlaq_lane_f32): New.
21655 (vcmlaq_laneq_f32): New.
21656 (vcmla_rot90_f32): New.
21657 (vcmlaq_rot90_f32): New.
21658 (vcmlaq_rot90_f64): New.
21659 (vcmla_rot90_lane_f32): New.
21660 (vcmla_rot90_laneq_f32): New.
21661 (vcmlaq_rot90_lane_f32): New.
21662 (vcmlaq_rot90_laneq_f32): New.
21663 (vcmla_rot180_f32): New.
21664 (vcmlaq_rot180_f32): New.
21665 (vcmlaq_rot180_f64): New.
21666 (vcmla_rot180_lane_f32): New.
21667 (vcmla_rot180_laneq_f32): New.
21668 (vcmlaq_rot180_lane_f32): New.
21669 (vcmlaq_rot180_laneq_f32): New.
21670 (vcmla_rot270_f32): New.
21671 (vcmlaq_rot270_f32): New.
21672 (vcmlaq_rot270_f64): New.
21673 (vcmla_rot270_lane_f32): New.
21674 (vcmla_rot270_laneq_f32): New.
21675 (vcmlaq_rot270_lane_f32): New.
21676 (vcmlaq_rot270_laneq_f32): New.
21677 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
21678 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
21679 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
21680 (FCADD, FCMLA): New.
21682 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
21684 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
21688 * config/pa/pa.c: Change "can not" to "cannot".
21689 * gimple-ssa-evrp-analyze.c: Likewise.
21690 * ipa-icf.c: Likewise.
21691 * ipa-polymorphic-call.c: Likewise.
21692 * ipa-pure-const.c: Likewise.
21693 * lra-constraints.c: Likewise.
21694 * lra-remat.c: Likewise.
21695 * reload1.c: Likewise.
21696 * reorg.c: Likewise.
21697 * tree-ssa-uninit.c: Likewise.
21699 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
21703 * Makefile.in: Mechanically replace "can not" with "cannot".
21704 * alias.c: Likewise.
21705 * builtins.c: Likewise.
21706 * calls.c: Likewise.
21707 * cgraph.c: Likewise.
21708 * cgraph.h: Likewise.
21709 * cgraphclones.c: Likewise.
21710 * cgraphunit.c: Likewise.
21711 * combine-stack-adj.c: Likewise.
21712 * combine.c: Likewise.
21713 * common/config/i386/i386-common.c: Likewise.
21714 * config/aarch64/aarch64.c: Likewise.
21715 * config/alpha/sync.md: Likewise.
21716 * config/arc/arc.c: Likewise.
21717 * config/arc/predicates.md: Likewise.
21718 * config/arm/arm-c.c: Likewise.
21719 * config/arm/arm.c: Likewise.
21720 * config/arm/arm.h: Likewise.
21721 * config/arm/arm.md: Likewise.
21722 * config/arm/cortex-r4f.md: Likewise.
21723 * config/csky/csky.c: Likewise.
21724 * config/csky/csky.h: Likewise.
21725 * config/darwin-f.c: Likewise.
21726 * config/epiphany/epiphany.md: Likewise.
21727 * config/i386/i386.c: Likewise.
21728 * config/i386/sol2.h: Likewise.
21729 * config/m68k/m68k.c: Likewise.
21730 * config/mcore/mcore.h: Likewise.
21731 * config/microblaze/microblaze.md: Likewise.
21732 * config/mips/20kc.md: Likewise.
21733 * config/mips/sb1.md: Likewise.
21734 * config/nds32/nds32.c: Likewise.
21735 * config/nds32/predicates.md: Likewise.
21736 * config/pa/pa.c: Likewise.
21737 * config/rs6000/e300c2c3.md: Likewise.
21738 * config/rs6000/rs6000.c: Likewise.
21739 * config/s390/s390.h: Likewise.
21740 * config/sh/sh.c: Likewise.
21741 * config/sh/sh.md: Likewise.
21742 * config/spu/vmx2spu.h: Likewise.
21743 * cprop.c: Likewise.
21744 * dbxout.c: Likewise.
21745 * df-scan.c: Likewise.
21746 * doc/cfg.texi: Likewise.
21747 * doc/extend.texi: Likewise.
21748 * doc/fragments.texi: Likewise.
21749 * doc/gty.texi: Likewise.
21750 * doc/invoke.texi: Likewise.
21751 * doc/lto.texi: Likewise.
21752 * doc/md.texi: Likewise.
21753 * doc/objc.texi: Likewise.
21754 * doc/rtl.texi: Likewise.
21755 * doc/tm.texi: Likewise.
21757 * emit-rtl.c: Likewise.
21758 * emit-rtl.h: Likewise.
21759 * except.c: Likewise.
21760 * expmed.c: Likewise.
21761 * expr.c: Likewise.
21762 * fold-const.c: Likewise.
21763 * genautomata.c: Likewise.
21764 * gimple-fold.c: Likewise.
21765 * hard-reg-set.h: Likewise.
21766 * ifcvt.c: Likewise.
21767 * ipa-comdats.c: Likewise.
21768 * ipa-cp.c: Likewise.
21769 * ipa-devirt.c: Likewise.
21770 * ipa-fnsummary.c: Likewise.
21771 * ipa-icf.c: Likewise.
21772 * ipa-inline-transform.c: Likewise.
21773 * ipa-inline.c: Likewise.
21774 * ipa-polymorphic-call.c: Likewise.
21775 * ipa-profile.c: Likewise.
21776 * ipa-prop.c: Likewise.
21777 * ipa-pure-const.c: Likewise.
21778 * ipa-reference.c: Likewise.
21779 * ipa-split.c: Likewise.
21780 * ipa-visibility.c: Likewise.
21782 * ira-build.c: Likewise.
21783 * ira-color.c: Likewise.
21784 * ira-conflicts.c: Likewise.
21785 * ira-costs.c: Likewise.
21786 * ira-int.h: Likewise.
21787 * ira-lives.c: Likewise.
21790 * loop-invariant.c: Likewise.
21791 * loop-unroll.c: Likewise.
21792 * lower-subreg.c: Likewise.
21793 * lra-assigns.c: Likewise.
21794 * lra-constraints.c: Likewise.
21795 * lra-eliminations.c: Likewise.
21796 * lra-lives.c: Likewise.
21797 * lra-remat.c: Likewise.
21798 * lra-spills.c: Likewise.
21800 * lto-cgraph.c: Likewise.
21801 * lto-streamer-out.c: Likewise.
21802 * postreload-gcse.c: Likewise.
21803 * predict.c: Likewise.
21804 * profile-count.h: Likewise.
21805 * profile.c: Likewise.
21806 * recog.c: Likewise.
21808 * reload.c: Likewise.
21809 * reload1.c: Likewise.
21810 * reorg.c: Likewise.
21811 * resource.c: Likewise.
21812 * rtl.def: Likewise.
21814 * rtlanal.c: Likewise.
21815 * sched-deps.c: Likewise.
21816 * sched-ebb.c: Likewise.
21817 * sched-rgn.c: Likewise.
21818 * sel-sched-ir.c: Likewise.
21819 * sel-sched.c: Likewise.
21820 * shrink-wrap.c: Likewise.
21821 * simplify-rtx.c: Likewise.
21822 * symtab.c: Likewise.
21823 * target.def: Likewise.
21824 * toplev.c: Likewise.
21825 * tree-call-cdce.c: Likewise.
21826 * tree-cfg.c: Likewise.
21827 * tree-complex.c: Likewise.
21828 * tree-core.h: Likewise.
21829 * tree-eh.c: Likewise.
21830 * tree-inline.c: Likewise.
21831 * tree-loop-distribution.c: Likewise.
21832 * tree-nrv.c: Likewise.
21833 * tree-profile.c: Likewise.
21834 * tree-sra.c: Likewise.
21835 * tree-ssa-alias.c: Likewise.
21836 * tree-ssa-dce.c: Likewise.
21837 * tree-ssa-dom.c: Likewise.
21838 * tree-ssa-forwprop.c: Likewise.
21839 * tree-ssa-loop-im.c: Likewise.
21840 * tree-ssa-loop-ivcanon.c: Likewise.
21841 * tree-ssa-loop-ivopts.c: Likewise.
21842 * tree-ssa-loop-niter.c: Likewise.
21843 * tree-ssa-phionlycprop.c: Likewise.
21844 * tree-ssa-phiopt.c: Likewise.
21845 * tree-ssa-propagate.c: Likewise.
21846 * tree-ssa-threadedge.c: Likewise.
21847 * tree-ssa-threadupdate.c: Likewise.
21848 * tree-ssa-uninit.c: Likewise.
21849 * tree-ssanames.c: Likewise.
21850 * tree-streamer-out.c: Likewise.
21851 * tree.c: Likewise.
21852 * tree.h: Likewise.
21853 * vr-values.c: Likewise.
21855 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
21857 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
21858 (ix86_split_xorsign): Ditto.
21859 * config/i386/i386.c (ix86_expand_xorsign): New function.
21860 (ix86_split_xorsign): Ditto.
21861 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
21862 (xorsign<mode>3): New expander.
21863 (xorsign<mode>3_1): New insn_and_split pattern.
21864 * config/i386/sse.md (xorsign<mode>3): New expander.
21866 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
21868 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
21869 (*tablejump_sp64): Likewise.
21870 (*tablejump<P:mode>): ...this.
21871 (*call_address_sp32): Merge into...
21872 (*call_address_sp64): Likewise.
21873 (*call_address<P:mode>): ...this.
21874 (*call_symbolic_sp32): Merge into...
21875 (*call_symbolic_sp64): Likewise.
21876 (*call_symbolic<P:mode>): ...this.
21877 (call_value): Remove constraint and add predicate.
21878 (*call_value_address_sp32): Merge into...
21879 (*call_value_address_sp64): Likewise.
21880 (*call_value_address<P:mode>): ...this.
21881 (*call_value_symbolic_sp32): Merge into...
21882 (*call_value_symbolic_sp64): Likewise.
21883 (*call_value_symbolic<P:mode>): ...this.
21884 (*sibcall_symbolic_sp32): Merge into...
21885 (*sibcall_symbolic_sp64): Likewise.
21886 (*sibcall_symbolic<P:mode>): ...this.
21887 (sibcall_value): Remove constraint and add predicate.
21888 (*sibcall_value_symbolic_sp32): Merge into...
21889 (*sibcall_value_symbolic_sp64): Likewise.
21890 (*sibcall_value_symbolic<P:mode>): ...this.
21891 (window_save): Minor tweak.
21892 (*branch_sp32): Merge into...
21893 (*branch_sp64): Likewise.
21894 (*branch<P:mode>): ...this.
21896 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
21897 James Clarke <jrtc27@jrtc27.com>
21900 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
21901 consistently in TLS address generation and adjust code to the renaming
21902 of patterns. Mark calls to __tls_get_addr as const.
21903 * config/sparc/sparc.md (tgd_hi22): Turn into...
21904 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
21905 (tgd_lo10): Turn into...
21906 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
21907 (tgd_add32): Merge into...
21908 (tgd_add64): Likewise.
21909 (tgd_add<P:mode>): ...this and use Pmode throughout.
21910 (tldm_hi22): Turn into...
21911 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
21912 (tldm_lo10): Turn into...
21913 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
21914 (tldm_add32): Merge into...
21915 (tldm_add64): Likewise.
21916 (tldm_add<P:mode>): ...this and use Pmode throughout.
21917 (tldm_call32): Merge into...
21918 (tldm_call64): Likewise.
21919 (tldm_call<P:mode>): ...this and use Pmode throughout.
21920 (tldo_hix22): Turn into...
21921 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
21922 (tldo_lox10): Turn into...
21923 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
21924 (tldo_add32): Merge into...
21925 (tldo_add64): Likewise.
21926 (tldo_add<P:mode>): ...this and use Pmode throughout.
21927 (tie_hi22): Turn into...
21928 (tie_hi22<P:mode>): ...this and use Pmode throughout.
21929 (tie_lo10): Turn into...
21930 (tie_lo10<P:mode>): ...this and use Pmode throughout.
21931 (tie_ld64): Use DImode throughout.
21932 (tie_add32): Merge into...
21933 (tie_add64): Likewise.
21934 (tie_add<P:mode>): ...this and use Pmode throughout.
21935 (tle_hix22_sp32): Merge into...
21936 (tle_hix22_sp64): Likewise.
21937 (tle_hix22<P:mode>): ...this and use Pmode throughout.
21938 (tle_lox22_sp32): Merge into...
21939 (tle_lox22_sp64): Likewise.
21940 (tle_lox22<P:mode>): ...this and use Pmode throughout.
21941 (*tldo_ldub_sp32): Merge into...
21942 (*tldo_ldub_sp64): Likewise.
21943 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
21944 (*tldo_ldub1_sp32): Merge into...
21945 (*tldo_ldub1_sp64): Likewise.
21946 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
21947 (*tldo_ldub2_sp32): Merge into...
21948 (*tldo_ldub2_sp64): Likewise.
21949 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
21950 (*tldo_ldsb1_sp32): Merge into...
21951 (*tldo_ldsb1_sp64): Likewise.
21952 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
21953 (*tldo_ldsb2_sp32): Merge into...
21954 (*tldo_ldsb2_sp64): Likewise.
21955 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
21956 (*tldo_ldub3_sp64): Use DImode throughout.
21957 (*tldo_ldsb3_sp64): Likewise.
21958 (*tldo_lduh_sp32): Merge into...
21959 (*tldo_lduh_sp64): Likewise.
21960 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
21961 (*tldo_lduh1_sp32): Merge into...
21962 (*tldo_lduh1_sp64): Likewise.
21963 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
21964 (*tldo_ldsh1_sp32): Merge into...
21965 (*tldo_ldsh1_sp64): Likewise.
21966 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
21967 (*tldo_lduh2_sp64): Use DImode throughout.
21968 (*tldo_ldsh2_sp64): Likewise.
21969 (*tldo_lduw_sp32): Merge into...
21970 (*tldo_lduw_sp64): Likewise.
21971 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
21972 (*tldo_lduw1_sp64): Use DImode throughout.
21973 (*tldo_ldsw1_sp64): Likewise.
21974 (*tldo_ldx_sp64): Likewise.
21975 (*tldo_stb_sp32): Merge into...
21976 (*tldo_stb_sp64): Likewise.
21977 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
21978 (*tldo_sth_sp32): Merge into...
21979 (*tldo_sth_sp64): Likewise.
21980 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
21981 (*tldo_stw_sp32): Merge into...
21982 (*tldo_stw_sp64): Likewise.
21983 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
21984 (*tldo_stx_sp64): Use DImode throughout.
21986 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21988 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
21989 check configure option to set BTI and Return Address Signing.
21990 * configure.ac: Add --enable-standard-branch-protection and
21991 --disable-standard-branch-protection.
21992 * configure: Regenerated.
21993 * doc/install.texi: Document the same.
21995 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21996 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21998 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
21999 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
22000 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
22002 * config/aarch64/aarch64-bti-insert.c: New file.
22003 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
22005 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
22007 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
22008 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
22009 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
22010 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
22012 2018-01-09 Sudakshina Das <sudi.das@arm.com>
22014 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
22015 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
22016 Disable bti for -mbranch-protection=none.
22017 (aarch64_handle_standard_branch_protection): Enable bti for
22018 -mbranch-protection=standard.
22019 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
22020 -mbranch-protection.
22021 (aarch64_bti_enabled): Check if bti is enabled.
22022 * config/aarch64/aarch64.opt: Declare target variable.
22023 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
22025 2018-01-09 Sudakshina Das <sudi.das@arm.com>
22027 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
22028 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
22029 (aarch64_expand_epilogue): Likewise.
22030 (aarch64_output_mi_thunk): Likewise.
22031 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
22032 TAILCALL_ADDR_REGS to x16 and x17.
22033 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
22035 2018-01-09 Sudakshina Das <sudi.das@arm.com>
22037 * config/aarch64/aarch64-option-extensions.def: Define
22038 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
22039 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
22040 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
22041 (AARCH64_FL_PREDRES): New.
22042 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
22043 AARCH64_FL_PREDRES by default.
22044 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
22046 2018-01-09 Sudakshina Das <sudi.das@arm.com>
22048 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
22050 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
22051 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
22052 * doc/invoke.texi: Document ARMv8.5-A.
22054 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22056 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
22057 (xorsign<mode>3): Likewise.
22059 2019-01-09 Jelinek <jakub@redhat.com>
22061 PR middle-end/88758
22062 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
22063 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
22065 PR rtl-optimization/88331
22066 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
22067 not currently_expanding_to_rtl.
22069 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
22071 * doc/invoke.texi (-Os): Remove trailing spaces.
22072 (-finline-functions): Remove reference to -O2.
22074 2019-01-08 Jakub Jelinek <jakub@redhat.com>
22076 PR rtl-optimization/79593
22077 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
22079 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
22080 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
22082 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
22085 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
22089 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
22090 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
22092 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
22095 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
22096 ix86_avx_u128_mode_entry.
22098 2019-01-08 Martin Liska <mliska@suse.cz>
22100 PR tree-optimization/88753
22101 * tree-switch-conversion.c (switch_conversion::build_one_array):
22102 Come up with local variable constructor. Convert first to
22103 type of constructor values.
22105 2019-01-08 Richard Biener <rguenther@suse.de>
22107 PR tree-optimization/86554
22108 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
22109 rpo_avail): Move earlier.
22110 (visit_nary_op): When value-numbering to expressions
22111 with different overflow behavior make sure there's an
22112 available expression on the path.
22114 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
22116 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
22117 aarch64_parse_branch_protection,
22118 struct aarch64_branch_protect_type,
22119 aarch64_handle_no_branch_protection,
22120 aarch64_handle_standard_branch_protection,
22121 aarch64_validate_mbranch_protection,
22122 aarch64_handle_pac_ret_protection,
22123 aarch64_handle_attr_branch_protection,
22124 accepted_branch_protection_string,
22125 aarch64_pac_ret_subtypes,
22126 aarch64_branch_protect_types,
22127 aarch64_handle_pac_ret_leaf): Define.
22128 (aarch64_override_options_after_change_1, aarch64_override_options):
22129 Add check for accepted_branch_protection_string.
22130 (aarch64_option_save): Save accepted_branch_protection_string.
22131 (aarch64_option_restore): Save accepted_branch_protection_string.
22132 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
22133 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
22134 msign-return-address.
22135 * doc/invoke.texi: Add mbranch-protection.
22137 2019-01-08 Alan Modra <amodra@gmail.com>
22140 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
22141 Delete "unknownp" parameter. Adjust callers. Handle
22142 CONST_INT, PLUS, MINUS, and MULT.
22143 (attr_value_aligned): Renamed from or_attr_value.
22144 (min_attr_value): Return INT_MIN for unhandled rtl case..
22145 (min_fn): ..and translate to INT_MAX here.
22146 (write_length_unit_log): Modify to cope without "unknown".
22147 (write_attr_value): Handle IF_THEN_ELSE.
22149 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
22151 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
22152 optimization for masked stores.
22154 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
22156 PR middle-end/88567
22157 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
22158 output vector directly to duplicate_and_interleave instead of
22159 going through a temporary. Postpone insertion of ctor_seq to
22160 the end of the loop.
22162 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
22165 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
22166 unsigned_p. Handle signed and unsigned overflow correction as
22168 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
22170 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
22172 (add<mode>3_compareV_imm): Make this callable for expanding.
22173 (subv<GPI:mode>4): Use register_operand for operand 1. Use
22174 aarch64_plus_operand for operand 2.
22175 (subv<GPI:mode>_insn): New insn pattern.
22176 (subv<GPI:mode>_imm): Likewise.
22177 (negv<GPI:mode>3): New expand pattern.
22178 (negv<GPI:mode>_insn): New insn pattern.
22179 (negv<GPI:mode>_cmp_only): Likewise.
22180 (cmpv<GPI:mode>_insn): Likewise.
22181 (subvti4): Use register_operand for operand 1. Update call to
22182 aarch64_expand_subvti.
22183 (usubvti4): Likewise.
22184 (negvti3): New expand pattern.
22185 (negdi_carryout): New insn pattern.
22186 (negvdi_carryinV): New insn pattern.
22187 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
22188 version the named version.
22189 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
22191 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
22193 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
22195 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
22196 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
22197 (sub<mode>3_carryinCV): Delete.
22198 (sub<GPI:mode>3_carryinV): New expand pattern.
22199 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
22201 2019-01-07 Richard Biener <rguenther@suse.de>
22203 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
22204 of tree_operand_hash.
22206 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
22208 PR tree-optimization/88598
22209 * tree.h (single_nonzero_element): Declare.
22210 * tree.c (single_nonzero_element): New function.
22211 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
22212 if I is the only nonzero element of CST.
22214 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
22216 PR tree-optimization/88598
22217 * tree.h (initializer_each_zero_or_onep): Declare.
22218 * tree.c (initializer_each_zero_or_onep): New function.
22219 (signed_or_unsigned_type_for): Handle float types too.
22220 (unsigned_type_for, signed_type_for): Update comments accordingly.
22221 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
22222 x & { 0 or -1, 0 or -1, ... }.
22224 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
22226 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
22227 with x86_64-pc-linux-gnu.
22229 2019-01-07 Tom de Vries <tdevries@suse.de>
22232 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
22234 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
22237 2019-01-07 Jakub Jelinek <jakub@redhat.com>
22239 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
22240 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
22241 TARGET_AVX512F as condition.
22244 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
22245 const_not_ok_for_debug_p target hook.
22246 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
22247 on UNSPEC and subexpressions thereof if all subexpressions of the
22248 UNSPEC are CONSTANT_P.
22250 PR tree-optimization/88676
22251 * tree-ssa-phiopt.c (two_value_replacement): New function.
22252 (tree_ssa_phiopt_worker): Call it.
22255 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
22256 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
22259 * tree-vect-generic.c: Include insn-config.h and recog.h.
22260 (expand_vector_piecewise): Add defaulted ret_type argument,
22261 if non-NULL, use that in preference to type for the result type.
22262 (expand_vector_parallel): Formatting fix.
22263 (do_vec_conversion, do_vec_narrowing_conversion,
22264 expand_vector_conversion): New functions.
22265 (expand_vector_operations_1): Call expand_vector_conversion
22266 for VEC_CONVERT ifn calls.
22267 * internal-fn.def (VEC_CONVERT): New internal function.
22268 * internal-fn.c (expand_VEC_CONVERT): New function.
22269 * fold-const-call.c (fold_const_vec_convert): New function.
22270 (fold_const_call): Use it for CFN_VEC_CONVERT.
22271 * doc/extend.texi (__builtin_convertvector): Document.
22273 2019-01-07 Tom de Vries <tdevries@suse.de>
22275 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
22276 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
22277 vector_red_partition, vector_red_sym): New global variables.
22278 (nvptx_option_override): Initialize vector_red_sym.
22279 (nvptx_declare_function_name): Restore red_partition register.
22280 (nvptx_file_end): Emit code to declare the vector reduction variables.
22281 (nvptx_output_red_partition): New function.
22282 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
22283 large vector reductions.
22284 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
22285 (nvptx_init_builtins): Add VECTOR_ADDR.
22286 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
22287 Handle nvptx_expand_shared_addr.
22288 (nvptx_get_shared_red_addr): Add vector argument and handle large
22290 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
22292 (nvptx_goacc_reduction_init): Likewise.
22293 (nvptx_goacc_reduction_fini): Likewise.
22294 (nvptx_goacc_reduction_teardown): Likewise.
22295 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
22296 init,fini,teardown}.
22297 (nvptx_init_axis_predicate): Initialize vector_red_partition.
22298 (nvptx_set_current_function): Init vector_red_partition.
22299 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
22300 (nvptx_red_partition): New insn.
22301 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
22303 2019-01-07 Tom de Vries <tdevries@suse.de>
22306 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
22309 2019-01-07 Tom de Vries <tdevries@suse.de>
22311 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
22312 (nvptx_option_override): Init oacc_bcast_partition.
22313 (nvptx_init_oacc_workers): New function.
22314 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
22315 (nvptx_needs_shared_bcast): New function.
22316 (nvptx_find_par): Generalize to enable vectors to use shared-memory
22317 to propagate state.
22318 (nvptx_shared_propagate): Initialize vector bcast partition and
22319 synchronization state.
22320 (nvptx_single): Generalize to enable vectors to use shared-memory
22321 to propagate state.
22322 (nvptx_process_pars): Likewise.
22323 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
22324 * config/nvptx/nvptx.h (struct machine_function): Add
22325 bcast_partition and sync_bar members.
22327 2019-01-07 Tom de Vries <tdevries@suse.de>
22329 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
22330 (nvptx_apply_dim_limits): New function.
22331 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
22334 2019-01-07 Tom de Vries <tdevries@suse.de>
22336 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
22337 as late as possible.
22339 2019-01-07 Tom de Vries <tdevries@suse.de>
22341 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
22342 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
22343 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
22344 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
22345 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
22347 2019-01-07 Tom de Vries <tdevries@suse.de>
22349 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
22351 2019-01-07 Tom de Vries <tdevries@suse.de>
22353 * omp-offload.c (oacc_get_min_dim): New function.
22354 * omp-offload.h (oacc_get_min_dim): Declare.
22356 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
22359 * config/i386/i386.c (function_value_ms_64): Return small sturct in
22360 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
22362 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
22366 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
22368 * ipa-inline.c (edge_badness): Use inlined_time instead of
22369 inline_summaries->get.
22371 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
22373 * opts.c (enable_fdo_optimizations): Enable
22374 version-loops-for-strides, loop-interchange, unrol-and-jam
22375 and tree-loop-distribution.
22376 * invoke.texi: Document newly enabled options.
22378 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
22380 * doc/invoke.texi (max-inline-insns-small): New parameters.
22381 * ipa-inline.c (want_early_inline_function_p): simplify.
22382 (want_inline_small_function_p): Fix pasto from previous patch;
22383 use max-inline-insns-small bound.
22384 * params.def (max-inline-insns-small): New param.
22385 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
22386 variables correctly.
22388 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
22390 * doc/invoke.texi: Document max-inline-insns-size,
22391 uninlined-function-insns, uninlined-function-time,
22392 uninlined-thunk-insns and uninlined-thunk-time.
22393 * params.def: Add max-inline-insns-size,
22394 uninlined-function-insns, uninlined-function-time,
22395 uninlined-thunk-insns and uninlined-thunk-time.
22396 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
22398 * ipa-inline.c (can_inline_edge_by_limits_p,
22399 want_inline_small_function_p): Use new parameters.
22401 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
22403 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
22405 2019-01-05 Jakub Jelinek <jakub@redhat.com>
22407 PR middle-end/82564
22409 * expr.c (expand_assignment): For calls returning VLA structures
22410 if to_rtx is not a MEM, force it into a stack temporary.
22413 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
22414 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
22415 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
22416 subexpressions of both operands.
22417 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
22418 subrtxes are CONSTANT_P.
22419 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
22420 2018-11-09 changes.
22422 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
22424 * params.def (hot-bb-count-ws-permille): Set to 990.
22426 2019-01-04 Martin Sebor <msebor@redhat.com>
22429 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
22432 2019-01-04 Martin Sebor <msebor@redhat.com>
22435 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
22437 2019-01-04 Jakub Jelinek <jakub@redhat.com>
22439 * gdbinit.in: Turn off pagination for the skip commands, restore
22440 it to previous state afterwards.
22442 2019-01-04 Jakub Jelinek <jakub@redhat.com>
22445 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
22446 of GET_MODE (opN) as modes of the libcall arguments.
22448 2019-01-04 Jan Beulich <jbeulich@suse.com>
22450 * config/i386/sse.md
22451 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
22452 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
22453 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
22454 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
22455 avx512f_vmcmp<mode>3<round_saeonly_name>,
22456 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
22457 avx512f_maskcmp<mode>3,
22458 <avx512>_cvt<ssemodesuffix>2mask<mode>,
22459 <avx512>_cvt<ssemodesuffix>2mask<mode>,
22460 *<avx512>_cvtmask2<ssemodesuffix><mode>,
22461 *<avx512>_cvtmask2<ssemodesuffix><mode>,
22462 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
22463 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
22464 <avx512>_gt<mode>3<mask_scalar_merge_name>,
22465 <avx512>_gt<mode>3<mask_scalar_merge_name>,
22466 <avx512>_testm<mode>3<mask_scalar_merge_name>,
22467 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
22468 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
22469 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
22470 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
22471 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
22472 avx512cd_maskb_vec_dup<mode>,
22473 avx512cd_maskw_vec_dup<mode>,
22474 avx512dq_fpclass<mode><mask_scalar_merge_name>,
22475 avx512dq_vmfpclass<mode>,
22476 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
22479 2019-01-03 Martin Sebor <msebor@redhat.com>
22481 PR tree-optimization/88659
22482 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
22484 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
22486 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
22487 unaligned vsx and avoid lxvd2x/stxvd2x.
22488 (gen_lvx_v4si_move): New function.
22490 2019-01-03 Tom de Vries <tdevries@suse.de>
22492 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
22493 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
22495 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
22497 2019-01-03 Tom de Vries <tdevries@suse.de>
22499 * config/nvptx/nvptx.c (struct offload_attrs): New.
22500 (populate_offload_attrs): New function. Factor mask extraction out of
22501 nvptx_reorg. Add extraction of dimensions.
22502 (nvptx_reorg): Use populate_offload_attrs.
22504 2019-01-03 Tom de Vries <tdevries@suse.de>
22506 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
22507 cases for oacc_min_dims_p and routine_p. Add asserts for
22508 oacc_default_dims_p and offload_region_p.
22510 2019-01-03 Tom de Vries <tdevries@suse.de>
22512 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
22513 factored out of ...
22514 (nvptx_goacc_validate_dims): ... here.
22516 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
22518 PR tree-optimization/85574
22519 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
22521 (struct ssa_equip_hash_traits): Declare.
22522 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
22524 2019-01-03 Jakub Jelinek <jakub@redhat.com>
22527 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
22528 change it to qualified_type.
22530 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
22532 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
22533 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
22535 2019-01-02 Martin Sebor <msebor@redhat.com>
22536 Jeff Law <law@redhat.com>
22538 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
22539 (get_range_strlen_tree): Update appropriately.
22541 * gimple-fold.h (get_range_strlen): Drop unused last argument.
22543 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
22544 rather than set_range_info.
22545 * tree-ssa-strlen.c (set_strlen_range): Extracted from
22546 maybe_set_strlen_range. Handle potentially boundary crossing
22547 cases more conservatively.
22548 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
22549 Call set_strlen_range.
22550 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
22552 PR middle-end/88663
22553 * gimple-fold.c (get_range_strlen): Update prototype to no longer
22554 need the flexp argument.
22555 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
22556 from calls to get_range_strlen. Update comments. Just update
22557 VAL for an unterminated const char array and let the reset of the
22558 code handle it normally. No longer try to set *flexp. Adjust
22560 (get_range_strlen): Update for the new get_range_strlen API.
22561 (get_maxval_strlen): Similarly.
22562 (gimple_fold_builtin_strlen): Handle update meaning of return value
22563 from get_range_strlen.
22564 * gimple-ssa-sprintf.c (get_string_length): Update for the new
22565 get_range_strlen API.
22567 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
22570 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
22571 false at WPA time when body was removed.
22573 2019-01-02 Martin Liska <mliska@suse.cz>
22575 PR tree-optimization/88650
22576 * predict.c (set_even_probabilities): Calculate probability
22577 remainer only when really used.
22579 2019-01-02 Richard Biener <rguenther@suse.de>
22581 PR middle-end/88651
22582 * tree-data-ref.c (analyze_subscript_affine_affine): Use
22583 widest_ints when mangling max_stmt_execution results.
22585 2019-01-02 Richard Biener <rguenther@suse.de>
22587 PR tree-optimization/88621
22588 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
22589 bitfields when canoncalizing.
22591 2019-01-02 Richard Biener <rguenther@suse.de>
22594 * config/i386/x86-tune-costs.h (intel_cost): Adjust
22595 cost of cheap SSE instruction.
22597 2019-01-02 Richard Biener <rguenther@suse.de>
22600 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
22601 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
22603 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
22604 set after UIDs before splitting them.
22606 2019-01-01 Martin Sebor <msebor@redhat.com>
22607 Jeff Law <law@redhat.com>
22609 * gimple-fold.c (get_range_strlen_tree): Record if the computed
22610 length is optimistic. If it is, then arrange to compute the
22611 conservative length as well.
22613 * gimple-fold.h (get_range_strlen): Update prototype.
22614 * builtins.c (check_access): Update call to get_range_strlen to use
22615 c_strlen_data pointer. Change various variable accesses to instead
22616 pull data from the c_strlen_data structure.
22617 (check_strncat_sizes, expand_builtin_strncat): Likewise.
22618 * calls.c (maybe_warn_nonstring_arg): Likewise.
22619 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
22620 minimum length if maximum lengh is unknown.
22621 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
22622 that used c_strlen, it's no longer needed. Restructure slightly.
22623 (format_string): Set unlikely range appropriately.
22624 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
22626 (get_range_strlen): Accept c_strlen_data pointer for external
22627 call sites as well. Pass through to call to internal get_range_strlen.
22628 Adjust minlen, maxlen and maxbound as needed.
22629 (get_maxval_strlen): Update comments.
22630 (gimple_fold_builtin_strlen): Update call to get_range_strlen
22631 to use c_strlen_data pointer. Change variable accesses to instead
22632 use c_strlen_data data members.
22634 * gimple-fold.c (get_range_strlen): Update prototype.
22635 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
22636 local variables. Use pdata to return information to caller.
22637 Update calls to get_range_strlen. Update pdata->maxbound.
22638 (get_range_strlen -- static version): Similarly.
22639 (get_range_strlen -- extern version): Update for internal
22640 get_range_strlen API change. Convert to external data format.
22641 (get_maxval_strlen): Similarly.
22643 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
22645 * coverage.c (get_coverage_counts): Use current_function_decl.
22646 * profile.c (read_thunk_profile): New function.
22647 (branch_prob): Add THUNK parameter.
22648 * tree-profile.c (tree_profiling): Handle thunks.
22649 * value-prof.c (init_node_map): Handle thunks.
22650 * value-prof.h (branch_prob): Upate prototype.
22651 (read_thunk_profile): Declare.
22653 2019-01-01 Jakub Jelinek <jakub@redhat.com>
22655 Update copyright years.
22657 * gcc.c (process_command): Update copyright notice dates.
22658 * gcov-dump.c (print_version): Ditto.
22659 * gcov.c (print_version): Ditto.
22660 * gcov-tool.c (print_version): Ditto.
22661 * gengtype.c (create_file): Ditto.
22662 * doc/cpp.texi: Bump @copying's copyright year.
22663 * doc/cppinternals.texi: Ditto.
22664 * doc/gcc.texi: Ditto.
22665 * doc/gccint.texi: Ditto.
22666 * doc/gcov.texi: Ditto.
22667 * doc/install.texi: Ditto.
22668 * doc/invoke.texi: Ditto.
22670 Copyright (C) 2019 Free Software Foundation, Inc.
22672 Copying and distribution of this file, with or without modification,
22673 are permitted in any medium without royalty provided the copyright
22674 notice and this notice are preserved.