1 2019-08-28 Martin Jambor <mjambor@suse.cz>
4 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5 checking assert a normal assert to test it really is redundant.
6 * ipa-prop.c (compute_complex_assign_jump_func): Removed
8 (update_jump_functions_after_inlining): Removed combining unary
9 arithmetic operations with an ancestor jump function.
10 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
13 2019-08-28 Richard Biener <rguenther@suse.de>
15 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
18 2019-09-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
19 Richard Biener <rguenther@suse.de>
21 * expr.c (expand_assignment): Handle misaligned DECLs.
22 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
23 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
25 (assign_parm_setup_stack): Allocate properly aligned stack slots.
26 * varasm.c (build_constant_desc): Align constants of misaligned types.
27 * config/arm/predicates.md (aligned_operand): New predicate.
28 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
29 aligned_operand to check restrictions on memory addresses.
30 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
31 * config/arm/vec-common.md (mov<VALL>): Likewise.
33 2019-08-28 Jakub Jelinek <jakub@redhat.com>
36 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
37 V_128 iterator instead of VI_128.
39 2019-08-28 Martin Liska <mliska@suse.cz>
41 PR tree-optimization/90970
42 * builtins.c (check_access): Remove assignment to maxread
43 as it hasn't been used since when it was introduced in r255755.
45 2019-08-27 Martin Sebor <msebor@redhat.com>
47 PR tree-optimization/91567
48 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
50 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
53 2019-08-27 Jeff Law <law@redhat.com>
55 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
56 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
58 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
61 * config/i386/i386-features.c (convert_scalars_to_vector):
62 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
63 crtl->stack_realign_processed. Update crtl->drap_reg by calling
64 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
65 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
67 2019-08-27 Richard Biener <rguenther@suse.de>
69 * config/i386/i386-features.h
70 (general_scalar_chain::~general_scalar_chain): Add.
71 (general_scalar_chain::insns_conv): New bitmap.
72 (general_scalar_chain::n_sse_to_integer): New.
73 (general_scalar_chain::n_integer_to_sse): Likewise.
74 (general_scalar_chain::make_vector_copies): Adjust signature.
75 * config/i386/i386-features.c
76 (general_scalar_chain::general_scalar_chain): Outline,
77 initialize new members.
78 (general_scalar_chain::~general_scalar_chain): New.
79 (general_scalar_chain::mark_dual_mode_def): Record insns
80 we need to insert conversions at and count them.
81 (general_scalar_chain::compute_convert_gain): Account
82 for conversion instructions at chain boundary.
83 (general_scalar_chain::make_vector_copies): Generate a single
84 copy for a def by a specific insn.
85 (general_scalar_chain::convert_registers): First populate
86 defs_map, then make copies at out-of chain insns.
88 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
90 * config/arm/arm.md (stack_protect_set_insn): Add security-related
92 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
94 2019-08-27 Martin Liska <mliska@suse.cz>
96 * cgraph.c (cgraph_node::remove): Remove dead assignment before
98 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
99 Enclose in anonymous namespace.
100 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
101 hard_register initialization in braces.
102 * tree-vrp.h (value_range_base::supports_type_p): Return false
103 for function with boolean return type.
105 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
107 * config/i386/i386.c (emit_i387_cw_initialization)
108 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
110 2019-08-26 Martin Sebor <msebor@redhat.com>
113 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
114 (sprintf_dom_walker): Remove class.
115 (get_int_range): Make argument const.
116 (directive::fmtfunc, directive::set_precision): Same.
118 (build_intmax_type_nodes): Same.
119 (adjust_range_for_overflow): Same.
120 (format_floating): Same.
121 (format_character): Same.
122 (format_string): Same.
123 (format_plain): Same.
124 (get_int_range): Cast away constness.
125 (format_integer): Same.
126 (get_string_length): Call get_range_strlen_dynamic. Handle
127 null lendata.maxbound.
128 (should_warn_p): Adjust argument scope qualifier.
130 (format_directive): Same.
131 (parse_directive): Same.
132 (is_call_safe): Same.
133 (try_substitute_return_value): Same.
134 (sprintf_dom_walker::handle_printf_call): Rename...
135 (handle_printf_call): ...to this. Initialize target to host charmap
136 here instead of in pass_sprintf_length::execute.
137 (struct call_info): Make global.
138 (sprintf_dom_walker::compute_format_length): Make global.
139 (sprintf_dom_walker::handle_gimple_call): Same.
140 * passes.def (pass_sprintf_length): Replace with pass_strlen.
141 * print-rtl.c (print_pattern): Reduce the number of spaces to
142 avoid -Wformat-truncation.
143 * tree-pass.h (make_pass_warn_printf): New function.
144 * tree-ssa-strlen.c (strlen_optimize): New variable.
145 (get_string_length): Add comments.
146 (get_range_strlen_dynamic): New function.
147 (check_and_optimize_call): New function.
148 (handle_integral_assign): New function.
149 (strlen_check_and_optimize_stmt): Factor code out into
150 strlen_check_and_optimize_call and handle_integral_assign.
151 (strlen_dom_walker::evrp): New member.
152 (strlen_dom_walker::before_dom_children): Use evrp member.
153 (strlen_dom_walker::after_dom_children): Use evrp member.
154 (printf_strlen_execute): New function.
155 (pass_strlen::gate): Update to handle printf calls.
156 (dump_strlen_info): New function.
157 (pass_data_warn_printf): New variable.
158 (pass_warn_printf): New class.
159 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
160 (handle_printf_call): Same.
161 * tree-vrp.c (value_range_base::type): Adjust assertion.
162 * vr-values.c (vr_values::update_value_range): Use type of the first
163 argument rather than the second.
165 2019-08-26 Richard Biener <rguenther@suse.de>
167 * config/i386/i386-features.c (general_remove_non_convertible_regs):
169 (convert_scalars_to_vector): Do not call it.
171 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
172 Uros Bizjak <ubizjak@gmail.com>
174 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
175 CASE_MATHFN_FLOATN for roundeven.
176 * config/i386/i386.c (ix86_i387_mode_needed): Add case
178 (ix86_mode_needed): Likewise.
179 (ix86_mode_after): Likewise.
180 (ix86_mode_entry): Likewise.
181 (ix86_mode_exit): Likewise.
182 (ix86_emit_mode_set): Likewise.
183 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
184 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
185 (ix86_entity): Add I387_ROUNDEVEN.
186 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
187 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
188 (define_int_iterator): Likewise.
189 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
190 (define_constant): Define ROUND_ROUNDEVEN mode.
191 (define_attr): Add roundeven mode for i387_cw.
192 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
193 * internal-fn.def (ROUNDEVEN): New builtin function.
194 * optabs.def (roundeven_optab): New optab.
196 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
198 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
200 * builtins.def: Added function definitions for roundeven function
202 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
203 function call. Adjust condition for floor, ceil, trunc and round.
204 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
205 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
206 (integer_valued_real_call_p): Added case for roundeven function.
207 * real.c (is_even): New function. Returns true if real number is even,
208 otherwise returns false.
209 (is_halfway_below): New function. Returns true if real number is
210 halfway between two integers, else return false.
211 (real_roundeven): New function. Round real number to nearest integer,
212 rounding halfway cases towards even.
213 * real.h (real_value): Added descriptive comments. Added function
214 declaration for roundeven function.
215 * doc/extend.texi (Other Builtins): List roundeven variants among
216 functions which can be handled as builtins.
218 2019-08-26 Richard Biener <rguenther@suse.de>
222 * config/i386/i386-features.h (general_scalar_chain::defs_map):
224 (general_scalar_chain::replace_with_subreg): Remove.
225 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
226 (general_scalar_chain::convert_reg): Adjust signature.
227 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
228 iterate over all defs of a reg.
229 (general_scalar_chain::replace_with_subreg): Remove.
230 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
231 (general_scalar_chain::make_vector_copies): Populate defs_map,
232 place copy only after defs that are used as vectors in the chain.
233 (general_scalar_chain::convert_reg): Emit a copy for a specific
234 def in a specific instruction.
235 (general_scalar_chain::convert_op): All reg uses are converted here.
236 (general_scalar_chain::convert_insn): Emit copies for scalar
237 uses of defs here. Replace uses with the copies we created.
238 Replace and convert the def. Adjust REG_DEAD notes, remove
239 REG_EQUIV/EQUAL notes.
240 (general_scalar_chain::convert_registers): Only handle copies
243 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
245 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
247 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
249 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
250 Add nop_convert case.
251 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
252 Fold all statements if requested.
253 * tree-ssa-propagate.h (class substitute_and_fold_engine):
254 Allow to fold all statements.
255 * tree-vrp.c (class vrp_folder):
256 Let substitute_and_fold_engine fold all statements.
258 2019-08-26 Richard Biener <rguenther@suse.de>
260 PR tree-optimization/91526
261 * passes.def: Note that after late FRE we do TODO_update_address_taken.
262 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
263 TODO_update_address_taken.
265 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
267 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
270 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
272 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
273 machine mode for unspec_volatile operand.
275 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
277 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
278 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
279 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
280 (prefer_neon_for_64bits): Remove.
281 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
282 (tune_params): Remove PREF_NEON_64_FALSE uses.
283 (arm_option_override): Remove prefer_neon selection code.
284 (arm_print_tune_info): Remove prefer_neon_for_64bits.
285 * gcc/config/arm/arm-protos.h (tune_params): Remove
286 prefer_neon_for_64bits.
287 (prefer_neon_for_64bits): Remove.
289 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
292 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
293 and issue any diagnostics needed before collecting the pre-PCH
296 2019-08-23 Jakub Jelinek <jakub@redhat.com>
299 * common.opt (fexcess-precision=): Add Optimization flag. Use
300 flag_excess_precision variable instead of
301 flag_excess_precision_cmdline.
302 * flags.h (class target_flag_state): Remove x_flag_excess_precision
304 (flag_excess_precision): Don't define.
305 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
306 flag_excess_precision_cmdline. Remove comment.
307 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
308 and x_flag_excess_precision instead of
309 frontend_set_flag_excess_precision_cmdline and
310 x_flag_excess_precision_cmdline.
311 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
312 x_flag_excess_precision_cmdline.
313 * toplev.c (init_excess_precision): Remove.
314 (lang_dependent_init_target): Don't call it.
316 2019-08-23 Martin Liska <mliska@suse.cz>
318 * lto-wrapper.c (run_gcc): When setting jobserver
319 set also parallel to 1. This was done so before r273908.
321 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
323 * config/arm/arm-cpus.in (cortex-m35p): New entry.
324 (cortex-a76ae): Likewise.
325 (cortex-a77): Likewise
326 * config/arm/arm-tables.opt: Regenerate.
327 * config/arm/arm-tune.md: Likewise.
328 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
329 cortex-a77 CPU options.
331 2019-08-23 Martin Liska <mliska@suse.cz>
333 * profile.c (instrument_values): Do not set
335 * tree-profile.c (gimple_gen_interval_profiler): Remove
337 (gimple_gen_pow2_profiler): Likewise.
338 (gimple_gen_topn_values_profiler): Likewise.
339 (gimple_gen_ic_profiler): Likewise.
340 (gimple_gen_time_profiler): Likewise.
341 (gimple_gen_average_profiler): Likewise.
342 (gimple_gen_ior_profiler): Likewise.
343 * value-prof.c (dump_histogram_value): Use default
344 in switch statement instead of HIST_TYPE_MAX.
345 (stream_in_histogram_value): Likewise.
346 (gimple_duplicate_stmt_histograms): Do not
347 use NULL for implicitly set arguments.
348 (gimple_divmod_values_to_profile): Do not use
350 (gimple_indirect_call_to_profile): Likewise.
351 (gimple_find_values_to_profile): Use implicit
352 function call arguments.
353 * value-prof.h (gimple_alloc_histogram_value):
355 (gimple_gen_interval_profiler): Remove last argument.
356 (gimple_gen_pow2_profiler): Likewise.
357 (gimple_gen_topn_values_profiler): Likewise.
358 (gimple_gen_ic_profiler): Likewise.
359 (gimple_gen_time_profiler): Likewise.
360 (gimple_gen_average_profiler): Likewise.
361 (gimple_gen_ior_profiler): Likewise.
363 2019-08-22 Martin Sebor <msebor@redhat.com>
366 * builtins.c (c_strlen): Rename argument and introduce new local.
367 Set no-warning bit on original argument.
368 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
369 Fold empty and zero constructors into empty strings.
370 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
371 for missing initializers.
372 * tree.c (build_string_literal): Handle optional argument.
373 * tree.h (build_string_literal): Add defaulted argument.
374 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
375 no-warning bit on original expression.
377 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
380 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
382 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
384 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
385 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
386 (darn): Use an unspec_volatile, and UNSPECV_DARN.
388 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
390 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
391 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
392 * config/rs6000/rs6000.md (unspec): ... here.
393 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
394 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
395 cmpeqb, *cmpeqb_internal): Delete, move to...
396 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
397 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
398 cmpeqb, *cmpeqb_internal): ... here.
400 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
402 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
403 intrinsics if __ARM_FP.
404 Use __ARM_FEATURE_CRC32 ifdef guard.
406 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
408 * config/arm/arm.md (neon_for_64bits): Remove.
409 (avoid_neon_for_64bits): Remove.
410 (arm_adddi3): Always split early.
411 (arm_subdi3): Always split early.
412 (negdi2): Remove Neon expansion.
413 (split zero_extend): Split before reload.
414 (split sign_extend): Split before reload.
416 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
418 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
419 (qhs_extenddi_cstr): Likewise.
420 * config/arm/arm.md (ashldi3): Always expand early.
423 (zero_extend<mode>di2): Remove Neon variants.
424 (extend<mode>di2): Likewise.
425 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
426 (signed_shift_di3_neon): Likewise.
427 (unsigned_shift_di3_neon): Likewise.
428 (ashrdi3_neon_imm_noclobber): Likewise.
429 (lshrdi3_neon_imm_noclobber): Likewise.
430 (<shift>di3_neon): Likewise.
431 (split extend): Remove DI extend split patterns.
433 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
435 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
436 (split not): Add DImode not splitter.
437 (anddi3): Remove pattern.
438 (anddi3_insn): Likewise.
439 (anddi_zesidi_di): Likewise.
440 (anddi_sesdi_di): Likewise.
441 (anddi_notdi_di): Likewise.
442 (anddi_notzesidi_di): Likewise.
443 (anddi_notsesidi_di): Likewise.
445 (iordi3_insn): Likewise.
446 (iordi_zesidi_di): Likewise.
447 (iordi_sesidi_di): Likewise.
449 (xordi3_insn): Likewise.
450 (xordi_sesidi_di): Likewise.
451 (xordi_zesidi_di): Likewise.
452 (one_cmpldi2): Likewise.
453 (one_cmpldi2_insn): Likewise.
454 * config/arm/constraints.md: Remove De, Df, Dg constraints.
455 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
457 (iwmmxt_xordi3): Likewise.
458 (iwmmxt_anddi3): Likewise.
459 * config/arm/neon.md (orndi3_neon): Remove pattern.
460 (anddi_notdi_di): Likewise.
461 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
462 (arm_iordi_operand_neon): Likewise.
463 (arm_xordi_operand_neon): Likewise.
464 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
465 (iordi_notzesidi_di): Likewise.
466 (iordi_notdi_zesidi): Likewise.
467 (iordi_notsesidi_di): Likewise.
469 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
471 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
473 (iorsi3_compare0_scratch): Likewise.
475 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
477 * config/aarch64/aarch64-simd-builtins.def:
480 * config/aarch64/aarch64-simd.md:
481 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
482 (aarch64_st1x4<VALLDIF:mode>): Likewise.
483 (aarch64_ld1_x4_<mode>): Likewise.
484 (aarch64_st1_x4_<mode>): Likewise.
485 * config/aarch64/arm_neon.h:
486 (vld1_s8_x4): New function.
487 (vld1q_s8_x4): Likewise.
488 (vld1_s16_x4): Likewise.
489 (vld1q_s16_x4): Likewise.
490 (vld1_s32_x4): Likewise.
491 (vld1q_s32_x4): Likewise.
492 (vld1_u8_x4): Likewise.
493 (vld1q_u8_x4): Likewise.
494 (vld1_u16_x4): Likewise.
495 (vld1q_u16_x4): Likewise.
496 (vld1_u32_x4): Likewise.
497 (vld1q_u32_x4): Likewise.
498 (vld1_f16_x4): Likewise.
499 (vld1q_f16_x4): Likewise.
500 (vld1_f32_x4): Likewise.
501 (vld1q_f32_x4): Likewise.
502 (vld1_p8_x4): Likewise.
503 (vld1q_p8_x4): Likewise.
504 (vld1_p16_x4): Likewise.
505 (vld1q_p16_x4): Likewise.
506 (vld1_s64_x4): Likewise.
507 (vld1_u64_x4): Likewise.
508 (vld1_p64_x4): Likewise.
509 (vld1q_s64_x4): Likewise.
510 (vld1q_u64_x4): Likewise.
511 (vld1q_p64_x4): Likewise.
512 (vld1_f64_x4): Likewise.
513 (vld1q_f64_x4): Likewise.
514 (vst1_s8_x4): Likewise.
515 (vst1q_s8_x4): Likewise.
516 (vst1_s16_x4): Likewise.
517 (vst1q_s16_x4): Likewise.
518 (vst1_s32_x4): Likewise.
519 (vst1q_s32_x4): Likewise.
520 (vst1_u8_x4): Likewise.
521 (vst1q_u8_x4): Likewise.
522 (vst1_u16_x4): Likewise.
523 (vst1q_u16_x4): Likewise.
524 (vst1_u32_x4): Likewise.
525 (vst1q_u32_x4): Likewise.
526 (vst1_f16_x4): Likewise.
527 (vst1q_f16_x4): Likewise.
528 (vst1_f32_x4): Likewise.
529 (vst1q_f32_x4): Likewise.
530 (vst1_p8_x4): Likewise.
531 (vst1q_p8_x4): Likewise.
532 (vst1_p16_x4): Likewise.
533 (vst1q_p16_x4): Likewise.
534 (vst1_s64_x4): Likewise.
535 (vst1_u64_x4): Likewise.
536 (vst1_p64_x4): Likewise.
537 (vst1q_s64_x4): Likewise.
538 (vst1q_u64_x4): Likewise.
539 (vst1q_p64_x4): Likewise.
540 (vst1_f64_x4): Likewise.
541 (vst1q_f64_x4): Likewise.
543 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
545 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
547 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
548 Richard Sandiford <richard.sandiford@arm.com>
551 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
552 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
554 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
557 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
558 in reg if it fails aarch64_plus_operand predicate.
560 2019-08-21 Richard Biener <rguenther@suse.de>
562 PR tree-optimization/91482
563 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
564 BUILT_IN_ASSUME_ALIGNED calls.
566 2019-08-21 Richard Biener <rguenther@suse.de>
570 * config/i386/i386-features.c
571 (general_scalar_chain::make_vector_copies): Copy stack temporary
572 rtx when using it multiple times.
573 (general_scalar_chain::convert_reg): Likewise.
575 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
577 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
579 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
581 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
582 catch more redundant zero initialization cases.
583 (dse_dom_walker::dse_optimize_stmt): Likewise.
585 2019-08-20 Richard Biener <rguenther@suse.de>
588 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
589 by collect2 when targetm.have_ctors_dtors which avoids dragging
590 in temporary filenames from LTO input objects.
592 2019-08-20 Richard Biener <rguenther@suse.de>
594 PR tree-optimization/37242
595 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
596 to (T)a + (T)b if we know that a + b does not overflow.
598 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
600 PR rtl-optimization/91347
601 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
602 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
604 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
606 * calls.h (function_arg_info): Add a pass_by_reference field,
608 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
609 when applying pass-by-reference semantics.
610 (initialize_argument_information): Likewise.
611 (emit_library_call_value_1): Likewise.
612 * function.c (assign_parm_data_one): Remove passed_pointer field.
613 (assign_parm_find_data_types): Don't set it.
614 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
615 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
616 arg.pass_by_reference instead of passed_pointer.
618 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
620 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
621 into a single function_arg_info, updating its fields when we
622 apply pass-by-reference and promotion semantics. Use the
623 function_arg_info to track the mode rather than keeping it in
624 a separate local variable.
625 (initialize_argument_information): Likewise. Base the final
626 arg_to_skip on this new function_arg_info rather than creating
627 a new one from scratch.
629 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
631 * function.c (assign_parm_data_one): Replace passed_type,
632 promoted_mode and named_arg with a function_arg_info field.
633 (assign_parm_find_data_types): Remove local variables and
634 assign directly to "data". Make data->passed_mode shadow
635 data->arg.mode until promotion, then assign the promoted
636 mode to data->arg.mode.
637 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
638 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
639 (assign_parm_remove_parallels, assign_parm_setup_block_p)
640 (assign_parm_setup_block, assign_parm_setup_reg)
641 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
642 arg.mode instead of promoted_mode, arg.type instead of passed_type
643 and arg.named instead of named_arg. Use data->arg for
644 function_arg_info structures that had the field values passed_type,
645 promoted_mode and named_arg. Base other function_arg_infos on
646 data->arg, changing the necessary properties.
648 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
650 * calls.h (apply_pass_by_reference_rules): Declare.
651 * calls.c (apply_pass_by_reference_rules): New function.
652 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
653 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
654 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
655 * function.c (assign_parm_find_data_types): Likewise.
656 * var-tracking.c (prepare_call_arguments): Likewise.
658 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
660 * target.def (must_pass_in_stack): Take a function_arg_info instead
661 of a mode and a type.
662 * doc/tm.texi: Regenerate.
663 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
664 instead of a mode and a type.
665 (must_pass_in_stack_var_size_or_pad): Likewise.
666 * calls.c (must_pass_in_stack_var_size): Likewise.
667 (must_pass_in_stack_var_size_or_pad): Likewise.
668 (initialize_argument_information): Update call to
669 targetm.calls.must_pass_in_stack.
670 (must_pass_va_arg_on_stack): Likewise.
671 * function.c (assign_parm_find_entry_rtl): Likewise.
672 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
673 * config/alpha/alpha.c (alpha_function_arg): Likewise.
674 (alpha_function_arg_advance): Likewise.
675 * config/cr16/cr16.c (cr16_function_arg): Likewise.
676 (cr16_function_arg_advance): Likewise.
677 * config/cris/cris.c (cris_pass_by_reference): Likewise.
678 (cris_arg_partial_bytes): Likewise.
679 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
680 * config/lm32/lm32.c (lm32_function_arg): Likewise.
681 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
682 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
683 * config/mips/mips.c (mips_pass_by_reference): Likewise.
684 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
685 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
686 * config/sh/sh.c (sh_pass_by_reference): Likewise.
687 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
688 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
689 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
690 instead of a mode and a type.
691 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
692 (fr30_num_arg_regs): Likewise.
693 (fr30_setup_incoming_varargs): Update calls accordingly.
694 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
695 (fr30_function_arg_advance): Likewise.
696 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
697 instead of a mode and a type.
698 * config/gcn/gcn.c (num_arg_regs): Likewise.
699 (gcn_function_arg, gcn_function_arg_advance): Update calls to
700 num_arg_regs and targetm.calls.must_pass_in_stack.
701 (gcn_arg_partial_bytes): Likewise.
702 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
703 function_arg_info instead of a mode and a type.
704 (classify_argument): Update call accordingly.
705 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
706 function_arg_info instead of a mode and a type.
707 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
709 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
710 (rs6000_parm_needs_stack): Update call accordingly.
711 (setup_incoming_varargs): Likewise.
713 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
715 * target.def (callee_copies): Take a function_arg_info instead
716 of a mode, type and named flag.
717 * doc/tm.texi: Regenerate.
718 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
719 instead of a mode, type and named flag.
720 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
721 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
722 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
723 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
724 instead of a mode, type and named flag.
725 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
726 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
727 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
728 * calls.h (reference_callee_copied): Take a function_arg_info
729 instead of a mode, type and named flag.
730 * calls.c (reference_callee_copied): Likewise.
731 (initialize_argument_information): Update call accordingly.
732 (emit_library_call_value_1): Likewise.
733 * function.c (gimplify_parameters): Likewise.
734 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
735 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
736 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
737 * config/c6x/c6x.c (c6x_callee_copies): Delete.
738 (TARGET_CALLEE_COPIES): Define to
739 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
740 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
741 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
742 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
743 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
744 instead of a mode, type and named flag.
745 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
746 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
747 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
748 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
749 * config/msp430/msp430.c (msp430_callee_copies): Delete.
750 (TARGET_CALLEE_COPIES): Define to
751 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
752 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
753 instead of a mode, type and named flag.
754 * config/sh/sh.c (sh_callee_copies): Likewise.
755 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
756 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
757 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
759 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
761 * target.def (function_arg_advance): Take a function_arg_info instead
762 of a mode, type and named flag.
763 * doc/tm.texi: Regenerate.
764 * targhooks.h (default_function_arg_advance): Take a function_arg_info
765 instead of a mode, type and named flag.
766 * targhooks.c (default_function_arg_advance): Likewise.
767 * calls.c (initialize_argument_information): Update call to
768 targetm.calls.function_arg_advance.
769 (emit_library_call_value_1): Likewise.
770 * dse.c (get_call_args): Likewise.
771 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
772 * function.c (assign_parms, gimplify_parameters): Likewise.
773 * var-tracking.c (prepare_call_arguments): Likewise.
774 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
775 function_arg_info instead of a mode, type and named flag.
776 (aarch64_setup_incoming_varargs): Update call accordingly.
777 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
778 function_arg_info instead of a mode, type and named flag.
779 (alpha_setup_incoming_varargs): Update call accordingly.
780 * config/arc/arc.c (arc_function_arg_advance): Take a
781 function_arg_info instead of a mode, type and named flag.
782 (arc_setup_incoming_varargs): Update call accordingly.
783 * config/arm/arm.c (arm_function_arg_advance): Take a
784 function_arg_info instead of a mode, type and named flag.
785 (cmse_func_args_or_return_in_stack): Update call accordingly.
786 (arm_function_ok_for_sibcall): Likewise.
787 (cmse_nonsecure_call_clear_caller_saved): Likewise.
788 * config/avr/avr.c (avr_function_arg_advance): Take a
789 function_arg_info instead of a mode, type and named flag.
790 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
791 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
792 (c6x_call_saved_register_used): Update call accordingly.
793 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
794 function_arg_info instead of a mode, type and named flag.
795 * config/cris/cris.c (cris_function_arg_advance): Likewise.
796 * config/csky/csky.c (csky_function_arg_advance): Likewise.
797 (csky_setup_incoming_varargs): Update call accordingly.
798 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
799 function_arg_info instead of a mode, type and named flag.
800 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
801 * config/frv/frv.c (frv_function_arg_advance): Likewise.
802 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
803 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
804 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
805 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
806 (ix86_setup_incoming_varargs): Update call accordingly.
807 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
808 function_arg_info instead of a mode, type and named flag.
809 (ia64_setup_incoming_varargs): Update call accordingly.
810 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
811 function_arg_info instead of a mode, type and named flag.
812 (iq2000_expand_prologue): Update call accordingly.
813 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
814 function_arg_info instead of a mode, type and named flag.
815 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
816 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
817 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
818 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
819 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
821 (microblaze_expand_prologue): Update call accordingly.
822 * config/mips/mips.c (mips_function_arg_advance): Take a
823 function_arg_info instead of a mode, type and named flag.
824 (mips_setup_incoming_varargs): Update call accordingly.
825 (mips_output_args_xfer): Likewise.
826 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
827 function_arg_info instead of a mode, type and named flag.
828 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
829 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
830 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
831 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
832 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
833 (nios2_setup_incoming_varargs): Update call accordingly.
834 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
835 function_arg_info instead of a mode, type and named flag.
836 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
837 * config/pa/pa.c (pa_function_arg_advance): Likewise.
838 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
839 * config/pru/pru.c (pru_function_arg_advance): Likewise.
840 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
841 (riscv_setup_incoming_varargs): Update call accordingly.
842 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
843 function_arg_info instead of a mode, type and named flag.
844 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
846 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
847 (rs6000_parm_needs_stack): Update call accordingly.
848 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
849 instead of a mode, type and named flag.
850 * config/s390/s390.c (s390_function_arg_advance): Likewise.
851 (s390_call_saved_register_used): Update call accordingly.
852 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
853 instead of a mode, type and named flag.
854 (sh_output_mi_thunk): Update call accordingly.
855 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
856 function_arg_info instead of a mode, type and named flag.
857 * config/spu/spu.c (spu_function_arg_advance): Likewise.
858 (spu_setup_incoming_varargs): Update call accordingly.
859 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
860 function_arg_info instead of a mode, type and named flag.
861 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
862 (tilegx_setup_incoming_varargs): Update call accordingly.
863 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
864 function_arg_info instead of a mode, type and named flag.
865 (tilegx_setup_incoming_varargs): Update call accordingly.
866 * config/v850/v850.c (v850_function_arg_advance): Take a
867 function_arg_info instead of a mode, type and named flag.
868 * config/vax/vax.c (vax_function_arg_advance): Likewise.
869 * config/visium/visium.c (visium_function_arg_advance): Likewise.
870 (visium_setup_incoming_varargs): Update call accordingly.
871 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
872 function_arg_info instead of a mode, type and named flag.
874 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
876 * target.def (function_arg, function_incoming_arg): Take a
877 function_arg_info instead of a mode, tree and named flag.
878 * doc/tm.texi: Regenerate.
879 * targhooks.h (default_function_arg): Take a function_arg_info
880 instead of a mode, tree and named flag.
881 (default_function_incoming_arg): Likewise.
882 * targhooks.c (default_function_arg): Likewise.
883 (default_function_incoming_arg): Likewise.
884 * calls.h (function_arg_info::end_marker_p): New function.
885 (function_arg_info::end_marker): Likewise.
886 * calls.c (prepare_call_address, initialize_argument_information)
887 (expand_call, emit_library_call_value_1): Update calls to
888 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
889 * dse.c: Include calls.h.
890 (get_call_args): Update call to targetm.calls.function_arg.
891 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
892 * var-tracking.c (prepare_call_arguments): Likewise.
893 * function.c (assign_parm_find_entry_rtl): Update call to
894 targetm.calls.function_incoming_arg.
895 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
896 function_arg_info instead of a mode, tree and named flag.
897 * config/alpha/alpha.c (alpha_function_arg): Likewise.
898 * config/arc/arc.c (arc_function_arg): Likewise.
899 * config/arm/arm.c (arm_function_arg): Likewise.
900 (cmse_func_args_or_return_in_stack): Update call accordingly.
901 (arm_function_ok_for_sibcall): Likewise.
902 (cmse_nonsecure_call_clear_caller_saved): Likewise.
903 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
904 instead of a mode, tree and named flag.
905 * config/bfin/bfin.c (bfin_function_arg): Likewise.
906 * config/c6x/c6x.c (c6x_function_arg): Likewise.
907 (c6x_call_saved_register_used): Update call accordingly.
908 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
909 instead of a mode, tree and named flag.
910 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
911 (cris_function_arg_1): Likewise.
912 * config/csky/csky.c (csky_function_arg): Likewise.
913 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
914 * config/fr30/fr30.c (fr30_function_arg): Likewise.
915 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
916 (frv_function_arg_1): Likewise.
917 * config/ft32/ft32.c (ft32_function_arg): Likewise.
918 * config/gcn/gcn.c (gcn_function_arg): Likewise.
919 * config/h8300/h8300.c (h8300_function_arg): Likewise.
920 * config/i386/i386.c (ix86_function_arg): Likewise.
921 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
922 (ia64_function_arg_1): Likewise.
923 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
924 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
926 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
927 instead of a mode, tree and named flag.
928 * config/m32c/m32c.c (m32c_function_arg): Likewise.
929 * config/m32r/m32r.c (m32r_function_arg): Likewise.
930 * config/m68k/m68k.c (m68k_function_arg): Likewise.
931 * config/mcore/mcore.c (mcore_function_arg): Likewise.
932 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
933 (microblaze_expand_prologue): Update call accordingly.
934 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
935 instead of a mode, tree and named flag.
936 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
937 (mmix_function_arg_1): Likewise.
938 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
939 * config/moxie/moxie.c (moxie_function_arg): Likewise.
940 * config/msp430/msp430.c (msp430_function_arg): Likewise.
941 * config/nds32/nds32.c (nds32_function_arg): Likewise.
942 * config/nios2/nios2.c (nios2_function_arg): Likewise.
943 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
944 (nvptx_function_incoming_arg): Likewise.
945 * config/or1k/or1k.c (or1k_function_arg): Likewise.
946 * config/pa/pa.c (pa_function_arg): Likewise.
947 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
948 * config/pru/pru.c (pru_function_arg): Likewise.
949 * config/riscv/riscv.c (riscv_function_arg): Likewise.
950 * config/rl78/rl78.c (rl78_function_arg): Likewise.
951 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
952 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
953 (rs6000_parm_needs_stack): Update call accordingly.
954 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
955 instead of a mode, tree and named flag.
956 * config/s390/s390.c (s390_function_arg): Likewise.
957 (s390_call_saved_register_used): Update call accordingly.
958 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
959 instead of a mode, tree and named flag.
960 (sh_output_mi_thunk): Update call accordingly.
961 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
962 (sparc_function_incoming_arg): Take a function_arg_info instead of
963 a mode, tree and named flag.
964 * config/spu/spu.c (spu_function_arg): Likewise.
965 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
966 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
967 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
968 * config/v850/v850.c (v850_function_arg): Likewise.
969 * config/vax/vax.c (vax_function_arg): Likewise.
970 * config/visium/visium.c (visium_function_arg): Likewise.
971 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
972 (xtensa_function_incoming_arg): Likewise.
974 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
976 * target.def (setup_incoming_varargs): Take a function_arg_info
977 instead of a mode and tree.
978 * doc/tm.texi: Regenerate.
979 * targhooks.h (default_setup_incoming_varargs): Take a
980 function_arg_info instead of a mode and tree.
981 * targhooks.c (default_setup_incoming_varargs): Likewise.
982 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
983 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
984 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
985 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
986 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
987 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
988 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
989 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
991 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
992 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
993 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
994 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
995 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
996 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
997 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
998 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
999 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1000 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
1001 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1002 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1003 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
1004 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
1005 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
1006 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
1007 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
1008 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1009 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
1010 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
1011 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
1012 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
1013 * function.c (assign_parms_setup_varargs): Update call to
1014 targetm.calls.setup_incoming_varargs.
1016 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1018 * target.def (pass_by_reference): Take a function_arg_info instead
1019 of a mode, type and named flag.
1020 * doc/tm.texi: Regenerate.
1021 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
1023 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
1024 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
1025 function_arg_info instead of a mode, type and named flag.
1026 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
1027 * calls.h (pass_by_reference): Take a function_arg_info instead of a
1028 mode, type and named flag.
1029 * calls.c (pass_by_reference): Likewise.
1030 (pass_va_arg_by_reference): Update call accordingly.
1031 (initialize_argument_information): Likewise.
1032 (emit_library_call_value_1): Likewise.
1033 * function.c (assign_parm_find_data_types): Likewise.
1034 * var-tracking.c (prepare_call_arguments): Likewise.
1035 * stor-layout.c: Include calls.h.
1036 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
1037 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
1038 function_arg_info instead of a mode, type and named flag.
1039 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
1040 * config/arc/arc.c (arc_pass_by_reference): Likewise.
1041 * config/arm/arm.c (arm_pass_by_reference): Likewise.
1042 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
1043 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
1044 (c6x_call_saved_register_used): Update call to pass_by_reference.
1045 * config/cris/cris.c (cris_pass_by_reference): Take a
1046 function_arg_info instead of a mode, type and named flag.
1047 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
1048 function_arg_info instead of a mode, type and named flag.
1049 (epiphany_arg_partial_bytes): Update call accordingly.
1050 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
1051 function_arg_info instead of a mode, type and named flag.
1052 (ft32_arg_partial_bytes): Update call accordingly.
1053 * config/i386/i386.c (ix86_pass_by_reference): Take a
1054 function_arg_info instead of a mode, type and named flag.
1055 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
1056 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
1057 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
1058 (m32r_return_in_memory): Update call accordingly.
1059 * config/mips/mips.c (mips_pass_by_reference): Take a
1060 function_arg_info instead of a mode, type and named flag.
1061 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
1062 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1063 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
1064 (moxie_arg_partial_bytes): Update call accordingly.
1065 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
1066 function_arg_info instead of a mode, type and named flag.
1067 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
1068 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
1069 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1070 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
1071 (riscv_return_in_memory): Update call accordingly.
1072 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
1073 function_arg_info instead of a mode, type and named flag.
1074 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
1075 (rs6000_parm_needs_stack): Update call to pass_by_reference.
1076 * config/s390/s390.c (s390_pass_by_reference): Take a
1077 function_arg_info instead of a mode, type and named flag.
1078 (s390_call_saved_register_used): Update call accordingly.
1079 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
1080 instead of a mode, type and named flag.
1081 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
1082 * config/spu/spu.c (spu_pass_by_reference): Likewise.
1083 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
1084 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
1085 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1086 * config/visium/visium.c (visium_pass_by_reference): Likewise.
1088 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1090 * target.def (arg_partial_bytes): Take a function_arg_info instead
1091 of a mode, type and named flag.
1092 * doc/tm.texi: Regenerate.
1093 * target.h (function_arg_info): Declare.
1094 * calls.h (function_arg_info): New class.
1095 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
1096 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
1097 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
1098 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
1099 * calls.c (initialize_argument_information): Update call to
1100 targetm.calls.partial_bytes.
1101 (emit_library_call_value_1): Likewise.
1102 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1103 * function.c (assign_parm_find_entry_rtl): Likewise.
1104 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
1105 function_arg_info instead of a mode, type and named flag.
1106 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
1107 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
1108 (cmse_func_args_or_return_in_stack): Update accordingly.
1109 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
1110 function_arg_info instead of a mode, type and named flag.
1111 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
1112 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
1113 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
1114 * config/fr30/fr30.c: Include calls.h.
1115 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
1116 type and named flag.
1117 * config/frv/frv.c: Include calls.h.
1118 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
1119 type and named flag.
1120 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
1121 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
1122 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
1123 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
1124 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
1125 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
1126 * config/microblaze/microblaze.c (function_arg_partial_bytes):
1128 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
1129 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
1130 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
1131 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
1132 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
1133 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
1134 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
1135 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
1136 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
1137 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
1138 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
1139 (rs6000_parm_needs_stack): Update call accordingly.
1140 * config/sh/sh.c (sh_arg_partial_bytes): Take a
1141 function_arg_info instead of a mode, type and named flag.
1142 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
1143 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
1145 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1147 * calls.h (must_pass_va_arg_in_stack): Declare.
1148 * calls.c (must_pass_va_arg_in_stack): New function.
1149 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
1150 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
1151 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
1153 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1155 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1157 * calls.h (pass_va_arg_by_reference): Declare.
1158 * calls.c (pass_va_arg_by_reference): New function.
1159 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
1160 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
1161 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
1162 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1163 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1164 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
1165 (mips_gimplify_va_arg_expr): Likewise.
1166 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
1167 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1168 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
1169 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
1170 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1171 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
1172 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
1173 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
1174 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
1175 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1176 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
1178 2019-08-20 Richard Biener <rguenther@suse.de>
1181 * config/i386/i386-features.c (general_scalar_chain::convert_op):
1182 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
1183 (convert_scalars_to_vector): Add timode_p parameter and use it
1184 to guard TImode-only operation.
1185 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
1186 (pass_stv::execute): Pass down timode_p.
1188 2019-08-20 Lili Cui <lili.cui@intel.com>
1190 * common/config/i386/i386-common.c
1191 (processor_names): Add tigerlake and cooperlake.
1192 (processor_alias_table): Add tigerlake and cooperlake.
1193 * config.gcc: Add -march=tigerlake and cooperlake.
1194 * config/i386/driver-i386.c
1195 (host_detect_local_cpu): Detect tigerlake and cooperlake.
1196 Add "has_avx" to classify processor.
1197 * config/i386/i386-builtins.c (processor_model) :
1198 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
1199 (arch_names_table): Add tigerlake and cooperlake.
1200 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
1201 and PROCESSOR_COOPERLAKE.
1202 * config/i386/i386-c.c
1203 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
1204 * config/i386/i386-options.c
1205 (m_TIGERLAKE) : Define.
1206 (m_COOPERLAKE) : Ditto.
1207 (m_CORE_AVX512): Ditto.
1208 (processor_cost_table): Add cascadelake.
1209 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
1210 * config/i386/i386.h
1211 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
1212 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
1213 (PTA_MOVDIRI): Ditto.
1214 (PTA_MOVDIR64B): Ditto.
1215 (PTA_COOPERLAKE) : Ditto.
1216 (PTA_TIGERLAKE) : Ditto.
1217 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
1218 * doc/extend.texi: Add tigerlake and cooperlake.
1219 * doc/invoke.texi: Add tigerlake and cooperlake.
1221 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
1223 * doc/install.texi (Specific, alpha): Remove note to use
1224 binutils 2.11.2 or later.
1226 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1229 * function.c (assign_parm_find_stack_rtl): Use larger alignment
1232 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
1234 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
1235 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
1236 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
1237 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
1238 * config/aarch64/constraints.md (Dt): New constraint
1239 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
1241 2019-08-19 Richard Biener <rguenther@suse.de>
1243 PR tree-optimization/91403
1244 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
1245 cases we can handle with tail-recursion...
1246 (follow_ssa_edge_expr): ... here. Do so.
1248 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
1251 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
1252 implemented for -fsanitize=kernel-address, and merge check logic
1253 with -fsanitize=address.
1255 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
1257 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
1258 for cpu and machine. Factor 64/32b builtins.
1260 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
1262 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
1263 gone, point to sourceforge.net.
1265 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
1267 * doc/ux.texi (User Experience Guidelines): Update reference.
1269 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
1271 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
1274 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
1276 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
1277 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
1279 2019-08-16 Martin Sebor <msebor@redhat.com>
1281 * tree.def (TYPE_SIZE): Clarify.
1282 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
1284 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1286 PR tree-optimization/91109
1287 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
1288 * lra.c (lra): Use lra_need_for_scratch_reg_p.
1289 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
1291 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
1293 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
1294 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
1295 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
1296 (uavg<mode>3_ceil): New expander.
1297 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
1298 mode iterator when creating CONST1_RTX.
1299 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
1300 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
1301 mode iterator for const1_operand predicate.
1303 2019-08-16 Richard Biener <rguenther@suse.de>
1305 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
1306 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
1308 (follow_ssa_edge_in_condition_phi_branch): Likewise.
1309 (analyze_evolution_in_loop): Likewise.
1310 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
1311 (follow_ssa_edge_expr): ... here. Refactor code.
1313 2019-08-16 Richard Biener <rguenther@suse.de>
1316 * config/i386/i386-features.c
1317 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
1319 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1322 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
1323 only if subst_name matches curr_attr string.
1325 2019-08-16 Richard Biener <rguenther@suse.de>
1327 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
1328 stmt at gsi_p, instead replace it with a NOP removed later.
1329 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
1330 that became dead because of that.
1332 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
1334 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
1335 for which we can't represent a range.
1336 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
1338 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
1339 Set VR_UNDEFINED if type is not supported.
1340 * tree-ssanames.c (get_range_info): Pass type to set_varying.
1341 * tree-vrp.c (value_range_base::check): Assert that a varying has
1343 (value_range_base::equal_p): Early bail for undefines.
1344 (value_range_base::set_varying): Accept a type.
1345 (value_range::set_varying): Same.
1346 (value_range_base::type): VARYING can have a type, while UNDEFINE
1348 (value_range_base::dump): Print type for VARYING nodes.
1349 (value_range_base::set): Add type to VARYING.
1350 (extract_range_from_multiplicative_op): Pass type to set_varying.
1351 (extract_range_from_binary_expr): Same.
1352 (value_range_base::intersect_helper): Same.
1353 (value_range_base::union_helper): Same.
1354 (value_range_base::normalize_symbolics): Same.
1355 (determine_value_range_1): Same.
1356 * tree-vrp.h (class value_range_base): Add type to set_varying.
1357 Add prototype for dump(void).
1358 Add prototype for supports_type_p.
1359 (class value_range): Add type to set_varying.
1360 Add prototype for dump(void).
1361 * vr-values.c (set_value_range_to_truthvalue): Pass type to
1363 (vr_values::get_lattice_entry): Set varying even if propagation
1365 Pass type to set_varying.
1366 (vr_values::get_value_range): Remove vr_const_varying.
1367 Reallocate the lattice if needed.
1368 (vr_values::update_value_range): Pass type to set_varying.
1369 (vr_values::extract_range_for_var_from_comparison_expr): Same.
1370 (vr_values::extract_range_from_binary_expr): Same.
1371 (vr_values::extract_range_from_unary_expr): Same.
1372 (vr_values::extract_range_from_cond_expr): Same.
1373 (vr_values::check_for_binary_op_overflow): Same.
1374 (vr_values::extract_range_basic): Same.
1375 (vr_values::extract_range_from_assignment): Same.
1376 (vr_values::vr_values): Increase size of num_vr_values.
1377 (vr_values::extract_range_from_phi_node): Pass type to
1380 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
1383 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
1384 for costs of hard register moves.
1385 (ix86_register_move_cost): Likewise.
1386 * config/i386/i386.h (processor_costs): Move costs of hard
1387 register moves to hard_register. Add int_load, int_store,
1388 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1389 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
1390 for costs of RTL expressions.
1391 * config/i386/x86-tune-costs.h: Move costs of hard register
1392 moves to hard_register. Duplicate int_load, int_store,
1393 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1394 sse_load, sse_store for costs of RTL expressions.
1396 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1398 * target.def (setup_incoming_vararg_bounds): Remove.
1399 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
1400 * doc/tm.texi: Regenerate.
1401 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
1402 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
1403 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
1404 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
1406 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1408 MSP430: Fix lines over 80 characters long in
1409 config/msp430/*.{c,h} files
1411 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
1412 specifier in string.
1413 (msp430_select_hwmult_lib): Split line more than 80 characters long.
1414 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
1415 redundant old comment.
1416 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
1417 Split line more than 80 characters long.
1418 * config/msp430/msp430.c (msp430_option_override): Likewise.
1419 (msp430_return_in_memory): Likewise.
1420 (msp430_gimplify_va_arg_expr): Likewise.
1421 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
1422 (msp430_legitimate_constant): Likewise.
1423 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
1424 (msp430_attr): Likewise.
1425 (msp430_data_attr): Likewise.
1426 (msp430_start_function): Likewise.
1427 (gen_prefix): Likewise.
1428 (msp430_init_sections): Likewise.
1429 (msp430_select_section): Likewise.
1430 (msp430_function_section): Likewise.
1431 (msp430_unique_section): Likewise.
1432 (msp430_output_aligned_decl_common): Likewise.
1433 (msp430_do_not_relax_short_jumps): Likewise.
1434 (msp430_init_builtins): Likewise.
1435 (msp430_expand_delay_cycles): Likewise.
1436 (msp430_expand_prologue): Likewise.
1437 (msp430_expand_epilogue): Likewise.
1438 (msp430_expand_helper): Likewise.
1439 (msp430_split_movsi): Likewise.
1440 (msp430_print_operand): Likewise.
1441 (msp430_return_addr_rtx): Likewise.
1442 (msp430x_extendhisi): Likewise.
1443 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
1444 (ASM_SPEC): Likewise.
1445 Remove very obvious comments.
1446 (LIB_SPEC): Split line more than 80 characters long.
1447 (EH_RETURN_HANDLER_RTX): Likewise.
1448 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1450 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1452 MSP430: Fix whitespace errors and incorrect indentation in
1453 config/msp430/*.{c,h} files
1455 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
1456 (msp430_select_hwmult_lib): Likewise.
1457 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
1458 (msp430_extract_mcu_data): Likewise.
1459 (struct t_msp430_mcu_data): Likewise.
1460 * config/msp430/msp430.c (struct machine_function): Remove whitespace
1461 before left square bracket.
1462 (msp430_option_override): Fix indentation.
1463 (msp430_hard_regno_nregs_with_padding): Likewise.
1464 (msp430_initial_elimination_offset): Likewise.
1465 (msp430_special_register_convention_p): Remove whitespace before left
1466 square bracket and after exclamation mark.
1467 (msp430_evaluate_arg): Likewise.
1468 (msp430_callee_copies): Fix indentation.
1469 (msp430_gimplify_va_arg_expr): Likewise.
1470 (msp430_function_arg_advance): Remove whitespace before left square
1472 (reg_ok_for_addr): Likewise.
1473 (msp430_preserve_reg_p): Likewise.
1474 (msp430_compute_frame_info): Likewise.
1475 (msp430_asm_output_addr_const_extra): Add space between function name
1476 and open parenthesis.
1477 (has_section_name): Fix indentation.
1478 (msp430_attr): Remove trailing whitespace.
1479 (msp430_section_attr): Likewise.
1480 (msp430_data_attr): Likewise.
1481 (struct msp430_attribute_table): Fix comment and whitespace.
1482 (msp430_start_function): Remove whitespace before left square bracket.
1483 Add space between function name and open parenthesis.
1484 (msp430_select_section): Remove trailing whitespace.
1485 (msp430_section_type_flags): Remove trailing whitespace.
1486 (msp430_unique_section): Remove space before closing parenthesis.
1487 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
1488 (msp430_builtins): Remove whitespace before left square bracket.
1489 (msp430_init_builtins): Fix indentation.
1490 (msp430_expand_prologue): Remove whitespace before left square bracket.
1491 Remove space before closing parenthesis.
1492 (msp430_expand_epilogue): Remove whitespace before left square bracket.
1493 (msp430_split_movsi): Remove space before closing parenthesis.
1494 (helper_function_name_mappings): Fix indentation.
1495 (msp430_use_f5_series_hwmult): Fix whitespace.
1496 (use_32bit_hwmult): Likewise.
1497 (msp430_no_hwmult): Likewise.
1498 (msp430_output_labelref): Remove whitespace before left square bracket.
1499 (msp430_print_operand_raw): Likewise.
1500 (msp430_print_operand_addr): Likewise.
1501 (msp430_print_operand): Add two spaces after '.' in comment.
1502 Fix trailing whitespace.
1503 (msp430x_extendhisi): Fix indentation.
1504 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
1506 (PC_REGNUM): Likewise.
1507 (STACK_POINTER_REGNUM): Likewise.
1508 (CC_REGNUM): Likewise.
1510 2019-08-15 Richard Biener <rguenther@suse.de>
1513 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
1515 (general_scalar_chain::make_vector_copies): Use it.
1517 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
1519 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
1521 2019-08-15 Martin Liska <mliska@suse.cz>
1523 * tree-ssa-dce.c (propagate_necessity): We can't reach now
1524 operators with no arguments.
1525 (eliminate_unnecessary_stmts): Likewise here.
1527 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
1529 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
1530 <case COMPARE>: Revert 2019-08-14 change.
1531 (convertible_comparison_p): Revert 2019-08-14 change. Return false
1532 for (TARGET_64BIT || mode != DImode).
1534 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
1536 * tree-vrp.c (value_range_base::set): Merge in code from
1537 value_range_base::set_and_canonicalize.
1538 Enforce canonicalization at set time.
1539 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
1540 (value_range_base::set_undefined): Inline call to set().
1541 (value_range_base::set_varying): Same.
1542 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
1543 (vrp_val_max): New argument handle_pointers.
1544 (vrp_val_min): Same.
1545 (ranges_from_anti_range): Same.
1546 (extract_range_into_wide_ints): Use tree argument instead of sign
1548 (extract_range_from_multiplicative_op): Take in tree type instead
1549 of precision and sign. Adapt function for canonicalized ranges.
1550 (extract_range_from_binary_expr): Pass type to
1551 extract_range_from_multiplicative_op.
1552 Adapt for canonicalized ranges.
1553 (extract_range_from_unary_expr): Same.
1554 (value_range_base::intersect_helper): Adjust for canonicalized
1556 (value_range_base::union_helper): Same.
1557 (value_range_base::normalize_symbolics): New.
1558 * tree-vrp.h (class value_range_base): Remove
1559 set_and_canonicalize.
1560 New prototype for normalize_symbolics.
1561 (class value_range): Remove set_and_canonicalize.
1562 (vrp_val_min): Adjust prototype.
1563 (vrp_val_max): Same.
1565 (vr_values::extract_range_for_var_from_comparison_expr): Call set
1566 instead of set_and_canonicalize.
1568 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1571 * tree-vect-stmts.c (vectorizable_call): Check that the function
1572 is a BUILT_IN_MD function before passing it to
1573 targetm.vectorize.builtin_md_vectorized_function.
1575 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1577 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
1578 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
1579 (aarch64_select_early_remat_modes): Use it.
1581 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1583 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
1584 16 for SVE predicates even if they are fixed-length.
1586 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1588 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
1589 operand order match the MOV /Z alias.
1591 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1593 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
1594 the vector pattern as an aarch64_svpattern argument. Update the
1595 overloaded caller accordingly.
1596 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
1597 (aarch64_output_sve_vector_inc_dec): Likewise.
1599 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1601 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
1602 multiplication case, try to compute VG * (lowest set bit) directly
1603 rather than always basing the multiplication on VG. Use
1604 expand_mult for the multiplication if we can.
1606 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1608 * config/aarch64/aarch64-protos.h
1609 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
1610 (aarch64_sve_inc_dec_immediate_p): Rename to...
1611 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1612 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
1613 (aarch64_output_sve_scalar_inc_dec): Declare.
1614 (aarch64_output_sve_inc_dec_immediate): Rename to...
1615 (aarch64_output_sve_vector_inc_dec): ...this.
1616 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
1617 (aarch64_output_sve_scalar_inc_dec): New functions.
1618 (aarch64_output_sve_addvl_addpl): Remove the base and offset
1619 arguments. Only handle true ADDVL and ADDPL instructions;
1620 don't emit an INC or DEC.
1621 (aarch64_sve_inc_dec_immediate_p): Rename to...
1622 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1623 (aarch64_output_sve_inc_dec_immediate): Rename to...
1624 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
1625 aarch64_sve_vector_inc_dec_immediate_p.
1626 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
1627 (aarch64_sve_plus_immediate): New predicates.
1628 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
1629 rather than aarch64_sve_addvl_addpl_immediate.
1630 (aarch64_sve_inc_dec_immediate): Rename to...
1631 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
1632 aarch64_sve_vector_inc_dec_immediate_p.
1633 (aarch64_sve_add_operand): Update accordingly.
1634 * config/aarch64/constraints.md (Uai): New constraint.
1635 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
1636 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
1637 operand into a register if it satisfies aarch64_sve_plus_immediate.
1638 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
1639 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
1640 * config/aarch64/aarch64-sve.md (add<mode>3): Call
1641 aarch64_output_sve_vector_inc_dec instead of
1642 aarch64_output_sve_inc_dec_immediate.
1644 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1646 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
1647 (UNSPEC_REVW): New constants.
1648 (elem_bits): New mode attribute.
1649 (SVE_INT_UNARY): New int iterator.
1650 (optab): Handle UNSPEC_REV[BHW].
1651 (sve_int_op): New int attribute.
1652 (min_elem_bits): Handle VNx16QI and the predicate modes.
1653 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
1654 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
1655 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
1656 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
1657 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
1658 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
1659 unspecs based on the total width of the reversed data.
1660 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
1661 reinterpret followed by a subreg on big-endian targets.
1663 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1664 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1666 * config/aarch64/aarch64-sve.md
1667 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
1668 alternatives in which one of the inputs is in the same register
1671 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1673 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
1674 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
1676 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1678 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
1679 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
1681 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1682 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1684 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
1685 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
1686 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
1688 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1689 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1691 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
1692 Add an alternative that uses reversed shifts.
1694 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1696 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
1699 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1701 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
1702 a commutativity marker.
1704 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1705 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1707 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
1708 (aarch64_prepare_sve_cond_int_fma): Declare.
1709 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
1710 (aarch64_prepare_sve_int_fma): New functions.
1711 (aarch64_prepare_sve_cond_int_fma): Likewise.
1712 * config/aarch64/aarch64-sve.md
1713 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
1714 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
1715 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
1716 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
1717 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
1718 (*madd<mode>): Rename to...
1719 (*fma<mode>4): ...this.
1720 (*msub<mode>): Rename to...
1721 (*fnma<mode>4): ...this.
1723 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1724 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1726 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
1727 Print 2.0 naturally.
1728 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
1729 * config/aarch64/predicates.md
1730 (aarch64_sve_float_negated_arith_immediate): New predicate,
1731 renamed from aarch64_sve_float_arith_with_sub_immediate.
1732 (aarch64_sve_float_arith_with_sub_immediate): Test for both
1733 positive and negative constants.
1734 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
1735 or an aarch64_sve_float_arith_with_sub_immediate.
1736 * config/aarch64/constraints.md (vsN): Use
1737 aarch64_sve_float_negated_arith_immediate.
1738 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
1740 (sve_pred_fp_rhs2_immediate): New int attribute.
1741 * config/aarch64/aarch64-sve.md
1742 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
1743 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
1744 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
1745 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
1746 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
1747 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
1749 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1750 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1752 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
1753 (*aarch64_cond_abd<SVE_F:mode>_3)
1754 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
1756 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1757 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1759 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
1760 (*aarch64_cond_<su>abd<mode>_any): New patterns.
1762 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1763 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1765 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
1766 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
1767 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
1768 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
1770 * optabs.h (create_convert_operand_from): Expand comment.
1771 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
1772 when mapping scalar rtxes to vector operands.
1773 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
1774 ashiftrt and lshiftrt.
1775 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
1776 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
1777 (*cond_<optab><mode>_any_const): New patterns.
1779 2019-08-15 Martin Liska <mliska@suse.cz>
1782 * cgraph.c (cgraph_node::remove): When setting
1783 n->origin = NULL for all nested functions, reset
1786 2019-08-15 Martin Liska <mliska@suse.cz>
1788 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
1791 2019-08-15 Martin Liska <mliska@suse.cz>
1794 * passes.c (order): Remove.
1795 (uid_hash_t): Likewise).
1796 (remove_cgraph_node_from_order): Remove from set
1797 of pointers (cgraph_node *).
1798 (insert_cgraph_node_to_order): New.
1799 (duplicate_cgraph_node_to_order): New.
1800 (do_per_function_toporder): Register all 3 cgraph hooks.
1801 Skip removed_nodes now as we know about all of them.
1803 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
1805 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
1806 <case E_V8QImode>: Use vector_set path for
1807 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1808 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
1809 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1811 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1813 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
1815 2019-08-14 Martin Sebor <msebor@redhat.com>
1817 PR tree-optimization/91294
1818 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
1819 source length as exact.
1821 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
1823 * doc/extend.texi: Add "noinit" attribute documentation.
1824 * doc/sourcebuild.texi: Add noinit effective target documentation.
1825 * varasm.c (default_section_type_flags): Add support for "noinit"
1827 (default_elf_select_section): Add support for "noinit" attribute.
1828 * config/msp430/msp430.c (msp430_attribute_table): Remove
1831 2019-08-14 Richard Biener <rguenther@suse.de>
1832 Uroš Bizjak <ubizjak@gmail.com>
1835 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
1837 (scalar_chain::smode): New member.
1838 (scalar_chain::vmode): Likewise.
1839 (dimode_scalar_chain): Rename to...
1840 (general_scalar_chain): ... this.
1841 (general_scalar_chain::general_scalar_chain): Take mode arguments.
1842 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
1843 base with TImode and V1TImode.
1844 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
1845 (general_scalar_chain::vector_const_cost): Adjust for SImode
1847 (general_scalar_chain::compute_convert_gain): Likewise. Add
1848 {S,U}{MIN,MAX} support.
1849 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
1850 (general_scalar_chain::make_vector_copies): Likewise. Handle
1851 non-DImode chains appropriately.
1852 (general_scalar_chain::convert_reg): Likewise.
1853 (general_scalar_chain::convert_op): Likewise.
1854 (general_scalar_chain::convert_insn): Likewise. Add
1855 fatal_insn_not_found if the result is not recognized.
1856 (convertible_comparison_p): Pass in the scalar mode and use that.
1857 (general_scalar_to_vector_candidate_p): Likewise. Rename from
1858 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
1859 (scalar_to_vector_candidate_p): Remove by inlining into single
1861 (general_remove_non_convertible_regs): Rename from
1862 dimode_remove_non_convertible_regs.
1863 (remove_non_convertible_regs): Remove by inlining into single caller.
1864 (convert_scalars_to_vector): Handle SImode and DImode chains
1865 in addition to TImode chains.
1866 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
1867 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
1868 (*<maxmin>di3_doubleword): Likewise.
1870 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1871 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1873 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
1874 (*cond_bic<mode>_any): New patterns.
1876 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1878 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
1879 take the equivalent mask, as well as a bit count.
1880 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
1881 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
1882 (aarch64_sve_pred_and_operand): New predicates.
1883 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
1885 * config/aarch64/aarch64-sve.md
1886 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
1887 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
1889 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1891 * config/aarch64/aarch64-sve.md
1892 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1893 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
1896 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1897 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1899 * config/aarch64/aarch64-sve.md
1900 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
1901 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
1903 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1904 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1906 * config/aarch64/aarch64-sve.md
1907 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
1908 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
1910 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1912 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
1913 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
1916 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1917 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1919 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
1921 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1922 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1924 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
1925 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
1926 (aarch64_print_operand): Add support for %I.
1927 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
1928 Bitcast floating-point constants to the corresponding integer constant.
1929 (aarch64_float_const_representable_p): Handle vectors as well
1931 (aarch64_expand_sve_vcond): Make sure that the operands are valid
1932 for the new vcond_mask_<mode><vpred> expander.
1933 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
1934 test aarch64_float_const_representable_p.
1935 (aarch64_sve_reg_or_dup_imm): New predicate.
1936 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
1937 gen_vcond_mask_<mode><vpred> instead of
1938 gen_aarch64_sve_dup<mode>_const.
1939 (vcond_mask_<mode><vpred>): Turn into a define_expand that
1940 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
1941 for operands 1 and 2 respectively. Force operand 2 into a
1942 register if operand 1 is a register. Fold old define_insn...
1943 (aarch64_sve_dup<mode>_const): ...and this define_insn...
1944 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
1945 floating-point constants that can be moved as integers. Add
1946 alternatives for MOV /M and FMOV /M.
1947 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
1948 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
1949 1 and 2 respectively.
1950 * config/aarch64/constraints.md (Ufc): Handle vectors as well
1952 (vss): New constraint.
1954 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1956 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
1957 (aarch64_sve_float_maxmin_operand): New predicates.
1958 * config/aarch64/constraints.md (vsB): New constraint.
1960 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
1961 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
1963 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
1964 Use aarch64_sve_float_maxmin_operand for operand 2.
1965 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
1966 Add alternatives for the constant forms.
1968 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1970 * config/aarch64/constraints.md (vsb): New constraint.
1971 (vsm): Generalize description.
1972 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
1974 (sve_imm_con): Handle smax, smin, umax and umin.
1975 (sve_imm_prefix): New code attribute.
1976 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
1977 (aarch64_sve_vsb_operand): New predicates.
1978 (aarch64_sve_mul_immediate): Rename to...
1979 (aarch64_sve_vsm_immediate): ...this.
1980 (aarch64_sve_mul_operand): Rename to...
1981 (aarch64_sve_vsm_operand): ...this.
1982 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
1983 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
1984 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
1985 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
1986 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
1987 add movprfx support for the immediate alternatives.
1988 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
1990 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
1993 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1995 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
1996 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
1997 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
1999 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2001 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
2002 (optab, sve_int_op): Handle them.
2003 * config/aarch64/aarch64-sve.md: Expand comment.
2005 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2007 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
2008 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
2009 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
2011 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2013 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
2014 (aarch64_expand_sve_const_pred_trn): New functions.
2015 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
2016 use the above functions when the parameter is true.
2017 (aarch64_expand_sve_const_pred): Update call accordingly.
2018 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
2020 (@aarch64_sve_<perm_insn><mode>): ...this.
2022 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2024 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
2026 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
2027 (aarch64_sve_emit_int_cmp): New functions.
2028 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
2029 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
2030 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
2031 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
2032 (UNSPEC_PRED_Z): New unspec.
2033 (set_clobber_cc_nzc): Delete.
2034 * config/aarch64/aarch64-sve.md: Add a block comment about
2036 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
2037 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
2038 the old pattern with that name. Use UNSPEC_PRED_Z instead of
2040 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
2041 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
2042 check for compatible predicates.
2043 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
2044 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
2045 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
2048 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2050 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
2051 * config/aarch64/aarch64-sve.md: Add a section describing it.
2052 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
2053 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
2054 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
2055 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
2056 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
2057 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
2058 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
2059 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
2060 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
2061 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
2062 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
2063 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
2064 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
2065 (aarch64_evpc_rev_local): Update accordingly.
2067 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2069 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
2071 (SVE_BHSI, SVE_SDI): Tweak comment.
2072 (SVE_HSDI): Likewise. Fix definition.
2073 (SVE_SDF): New mode iterator.
2074 (elem_bits): New mode attribute.
2075 (SVE_COND_FCVT): New int iterator.
2076 * config/aarch64/aarch64-sve.md
2077 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
2078 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
2079 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
2080 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
2081 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
2082 ...these new patterns.
2083 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
2084 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
2085 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
2087 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
2088 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
2089 ...these new patterns.
2090 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
2091 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
2092 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
2093 ...this new pattern.
2094 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
2095 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
2096 ...this new pattern.
2097 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
2099 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2101 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
2102 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
2103 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
2105 (optab, su): Handle them.
2106 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
2107 * config/aarch64/aarch64-sve.md
2108 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
2109 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
2110 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
2111 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
2112 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
2113 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
2114 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
2115 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
2116 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
2118 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
2119 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
2120 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
2121 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
2122 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
2123 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
2124 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
2125 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
2126 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
2127 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
2128 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
2129 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
2130 of UNSPEC_FLOAT_CONVERT.
2131 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
2132 aarch64_sve_extend<mode><Vwide>2.
2134 2019-08-14 Richard Biener <rguenther@suse.de>
2137 * config/i386/i386-features.c
2138 (dimode_scalar_chain::compute_convert_gain): Compute and dump
2139 individual instruction gain. Fix reg-reg copy GRP cost. Use
2140 ix86_cost->sse_op for vector instruction costs.
2142 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2144 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
2145 (cmp_op): Handle it.
2146 (SVE_COND_FP_CMP): Rename to...
2147 (SVE_COND_FP_CMP_I0): ...this.
2148 (SVE_FP_CMP): Remove.
2149 * config/aarch64/aarch64-sve.md
2150 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
2151 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
2152 using unspecs to represent the comparison.
2153 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
2154 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
2156 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
2157 (aarch64_unspec_cond_code): Move after integer code. Handle
2159 (aarch64_emit_sve_predicated_cond): Replace with...
2160 (aarch64_emit_sve_fp_cond): ...this new function.
2161 (aarch64_emit_sve_or_conds): Replace with...
2162 (aarch64_emit_sve_or_fp_conds): ...this new function.
2163 (aarch64_emit_sve_inverted_cond): Replace with...
2164 (aarch64_emit_sve_invert_fp_cond): ...this new function.
2165 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
2167 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2169 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
2170 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
2171 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
2172 SVE_HSD instead of SVE_SD.
2174 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2175 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2177 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
2179 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
2181 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
2182 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
2183 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
2184 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
2185 (*div<SVE_F:mode>3): Generalize to...
2186 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
2188 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2189 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2191 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
2193 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
2195 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
2197 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
2199 * config/aarch64/aarch64-sve.md: Add a block comment about the
2200 handling of predicated FP operations.
2201 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
2202 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
2203 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
2204 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
2205 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
2207 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
2208 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
2210 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
2211 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
2212 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
2213 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
2214 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
2215 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
2216 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2217 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
2218 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
2219 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
2220 strictness operands. Use aarch64_sve_pred_dominates_p to check
2221 whether the predicate on the conditional operation is suitable
2222 for merging. Split patterns into the canonical equal-predicate form.
2223 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
2224 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
2226 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2227 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2229 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
2230 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
2231 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
2233 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
2234 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
2237 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2238 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2240 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
2241 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
2242 actually has, rather than relying on REG_EQUAL notes.
2243 Make the insn operand order match the SVE operand order.
2244 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
2245 the SVE operand order.
2247 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2249 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
2250 (aarch64_emit_set_immediate): Likewise.
2251 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
2252 (aarch64_pfalse_reg): Likewise.
2253 (aarch64_convert_sve_data_to_pred): New function.
2254 (aarch64_sve_move_pred_via_while): Take an optional target register
2255 and the required register mode.
2256 (aarch64_expand_sve_const_pred_1): New function.
2257 (aarch64_expand_sve_const_pred): Likewise.
2258 (aarch64_expand_mov_immediate): Build an all-true predicate
2259 if the significant bits of the immediate are all true. Use
2260 aarch64_expand_sve_const_pred for all compile-time predicate constants.
2261 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
2262 before register allocation.
2263 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
2264 a VNx16BI PTRUE when splitting the memory alternative.
2265 (vec_duplicate<mode>): Update accordingly.
2266 (*pred_cmp<cmp_op><mode>): Rename to...
2267 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
2269 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2271 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
2272 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
2273 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
2274 (UNSPEC_PTEST): New unspec.
2275 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
2276 * config/aarch64/iterators.md (data_bytes): New mode attribute.
2277 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
2278 * config/aarch64/aarch64-sve.md: Add a new section describing the
2279 handling of UNSPEC_PTEST.
2280 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
2281 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
2282 (ptest_ptrue<mode>): Replace with...
2283 (aarch64_ptest<mode>): ...this new pattern.
2284 (cbranch<mode>4): Update after above changes.
2285 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
2287 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
2288 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
2289 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
2291 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
2294 * builtins.c (builtin_with_linkage_p): New function.
2295 * builtins.h (builtin_with_linkage_p): New function.
2296 * symtab.c (write_symbol): Remove redundant assert.
2297 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
2298 Remove FIXME and use builtin_with_linkage_p.
2300 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2303 * tree-core.h (function_decl::function_code): Change type to
2305 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
2306 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
2307 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
2308 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
2310 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
2311 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
2312 (fndecl_built_in_p): Change the type of the "name" argument to
2314 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
2315 after check for DECL_BUILT_IN_CLASS.
2316 * cgraphclones.c (build_function_decl_skip_args): Use
2317 set_decl_built_in_function.
2318 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
2319 * ipa-split.c (split_function): Likewise.
2320 * langhooks.c (add_builtin_function_common): Likewise.
2321 * omp-simd-clone.c (simd_clone_create): Likewise.
2322 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
2323 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
2324 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
2326 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
2327 instead of DECL_FUNCTION_CODE.
2328 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
2329 instead of DECL_FUNCTION_CODE.
2330 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
2331 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
2332 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
2333 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
2334 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
2335 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
2336 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
2337 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
2338 (alpha_gimple_fold_builtin): Likewise.
2339 * config/arc/arc.c (arc_expand_builtin): Likewise.
2340 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
2341 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
2342 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
2343 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
2344 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
2345 * config/frv/frv.c (frv_expand_builtin): Likewise.
2346 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
2347 (gcn_expand_builtin): Likewise.
2348 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
2349 (fold_builtin_cpu): Likewise.
2350 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
2351 * config/i386/i386.c (ix86_fold_builtin): Likewise.
2352 (ix86_gimple_fold_builtin): Likewise.
2353 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
2354 (ia64_expand_builtin): Likewise.
2355 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
2356 * config/mips/mips.c (mips_expand_builtin): Likewise.
2357 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
2358 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
2359 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
2360 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
2361 * config/pa/pa.c (pa_expand_builtin): Likewise.
2362 * config/pru/pru.c (pru_expand_builtin): Likewise.
2363 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
2364 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2366 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
2367 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
2368 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
2369 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
2370 (rs6000_builtin_reciprocal): Likewise.
2371 * config/rx/rx.c (rx_expand_builtin): Likewise.
2372 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
2373 * config/s390/s390.c (s390_expand_builtin): Likewise.
2374 * config/sh/sh.c (sh_expand_builtin): Likewise.
2375 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
2376 (sparc_fold_builtin): Likewise.
2377 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
2378 * config/spu/spu.c (spu_expand_builtin): Likewise.
2379 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
2380 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
2381 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
2382 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2383 (xtensa_expand_builtin): Likewise.
2385 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2388 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
2389 before the DECL_FUNCTION_CODE.
2390 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
2391 to check for a BUILT_IN_ALLOCA call.
2392 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
2393 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
2394 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
2395 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2396 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
2397 for BUILT_IN_NORMAL functions.
2398 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
2399 test for BUILT_IN_TM_ABORT.
2400 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
2401 to check for a BUILT_IN_STACK_RESTORE call.
2402 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
2403 * tree-ssa-threadedge.c
2404 (record_temporary_equivalences_from_stmts_at_dest): Check for a
2405 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
2406 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
2407 test for a BUILT_IN_NORMAL call instead of a negative test for
2408 an internal function call.
2410 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2412 * tree.h (build_vector_a_then_b): Declare.
2413 * tree.c (build_vector_a_then_b): New function.
2414 * fold-const-call.c (fold_while_ult): Likewise.
2415 (fold_const_call): Use it to handle IFN_WHILE_ULT.
2416 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
2417 (aarch64_svpattern): New enum.
2418 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
2419 constants through aarch64_expand_mov_immediate.
2420 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
2421 than general_operand as the predicate for operand 1.
2422 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
2423 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
2425 (simd_immediate_info::simd_immediate_info): New overload that
2426 takes a scalar_int_mode and an svpattern.
2427 (simd_immediate_info::u): Add a "pattern" field.
2428 (svpattern_token): New function.
2429 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
2430 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
2431 (aarch64_sve_move_pred_via_while): New functions.
2432 (aarch64_expand_mov_immediate): Try using
2433 aarch64_sve_move_pred_via_while for predicates that contain N ones
2434 followed by M zeros but that do not correspond to a VLnnn pattern.
2435 (aarch64_sve_pred_valid_immediate): New function.
2436 (aarch64_simd_valid_immediate): Use it instead of dealing directly
2437 with PTRUE and PFALSE.
2438 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
2441 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
2443 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
2445 (darwin_override_options): Likewise.
2446 * config/darwin.h: Likewise.
2447 * config/darwin.opt: Likewise.
2448 * config/i386/i386.c (output_pic_addr_const): Likewise.
2449 * config/rs6000/darwin.h: Likewise.
2450 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
2451 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
2452 ... this TARGET_MACHO_SYMBOL_STUBS.
2453 (FUNCTION_PROFILER):Likewise.
2454 * config/i386/i386.h: Likewise.
2456 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2458 * config/i386/i386-expand.c (ix86_expand_vector_extract)
2459 <case E_V2SImode>: Use vec_extr path for
2460 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2461 <case E_V8QImode>: Ditto.
2462 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
2463 Use SWI48 mode iterator. Use %k to output operand 0.
2464 (*mmx_pextrw): New insn pattern.
2465 (*mmx_pextrb): Ditto.
2466 (*mmx_pextrb_zext): Ditto.
2468 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
2470 * target.def (libc_has_function, libc_has_fast_function): Improve
2471 documentation strings.
2472 * doc/tm.texi: Regenerate.
2474 2019-08-13 Caroline Tice <cmtice@google.com>
2477 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
2478 vtv_end.o or vtv_end_preinit.o files if !static.
2480 2019-08-13 Olivier Hainque <hainque@adacore.com>
2482 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
2484 2019-08-13 Olivier Hainque <hainque@adacore.com>
2486 * rtlanal.c (tablejump_casesi_pattern): New function, to
2487 determine if a tablejump insn is a casesi dispatcher. Extracted
2488 from patch_jump_insn.
2489 * rtl.h (tablejump_casesi_pattern): Declare.
2490 * cfgrtl.c (patch_jump_insn): Use it.
2491 * dwarf2cfi.c (create_trace_edges): Use it.
2493 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2496 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
2497 operand is larger than a long int.
2499 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2501 * machmode.h (opt_mode::else_mode): New function.
2502 (opt_mode::else_blk): Use it.
2503 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
2504 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
2505 (aarch64_gen_stepped_int_parallel): Likewise.
2506 (aarch64_stepped_int_parallel_p): Likewise.
2507 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2509 * config/aarch64/aarch64.c
2510 (aarch64_expand_sve_widened_duplicate): Delete.
2511 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
2512 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
2513 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2514 argument. Use early returns in the !CONST_INT_P handling.
2515 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
2516 than handling some inline.
2517 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
2519 (aarch64_simd_container_mode): ...here.
2520 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
2521 (aarch64_sve_ld1rq_operand_p): New functions.
2522 * config/aarch64/predicates.md (descending_int_parallel)
2523 (aarch64_sve_ld1rq_operand): New predicates.
2524 * config/aarch64/constraints.md (UtQ): New constraint.
2525 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
2526 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
2527 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
2528 (@aarch64_sve_reinterpret<mode>): New expander.
2529 (*aarch64_sve_reinterpret<mode>): New pattern.
2530 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
2531 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
2532 (*sve_ld1rq<Vesize>): Replace with...
2533 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
2535 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2537 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
2540 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2542 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
2543 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
2544 (msp430_check_path_for_devices): New.
2545 (parse_devices_csv_1): New.
2546 (parse_devices_csv): New.
2547 (msp430_extract_mcu_data): Try to find devices.csv and search for the
2548 MCU data in devices.csv before using the hard-coded data.
2549 Warn if devices.csv isn't found and the MCU wasn't found in the
2550 hard-coded data either.
2551 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
2552 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
2553 Search for devices.csv on -I and -L paths.
2554 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
2555 msp430_set_driver_var.
2556 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
2558 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
2559 searched for devices.csv.
2560 (mwarn-devices-csv): Document option.
2562 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2564 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
2565 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
2566 Use a single Dn alternative instead of separate Dz and Dm
2567 alternatives. Use aarch64_output_sve_move_immediate.
2568 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
2570 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
2572 (aarch64_output_sve_mov_immediate): Handle predicate modes.
2573 (aarch64_output_ptrue): Delete.
2575 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2577 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
2579 (simd_immediate_info::value, simd_immediate_info::step)
2580 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
2582 (simd_immediate_info::u): ...this new union.
2583 (simd_immediate_info::simd_immediate_info): Update accordingly.
2584 (aarch64_output_simd_mov_immediate): Likewise.
2585 (aarch64_output_sve_mov_immediate): Likewise.
2587 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2589 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
2591 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
2592 (msp430_select_cpu): New spec function.
2593 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
2595 * config/msp430/msp430-devices.c: New file.
2596 * config/msp430/msp430-devices.h: New file.
2597 * config/msp430/msp430.c: Remove msp430_mcu_data.
2598 (msp430_option_override): Use msp430_extract_mcu_data to extract
2600 (msp430_use_f5_series_hwmult): Likewise.
2601 (use_32bit_hwmult): Likewise.
2602 (msp430_no_hwmult): Likewise.
2603 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
2605 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
2607 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
2608 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
2609 Remove hard-coded MCU multilib data.
2611 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2613 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
2614 based on the mode instead of testing properties of it.
2616 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2618 * doc/md.texi: Document the x and y constraints for AArch64.
2619 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
2620 (FP_LO8_REGS): New reg_class.
2621 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
2622 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
2623 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
2624 * config/aarch64/predicates.md (aarch64_simd_register): Use
2625 FP_REGNUM_P instead of checking the classes manually.
2626 * config/aarch64/constraints.md (y): New constraint.
2628 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2630 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
2631 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
2632 * config/aarch64/aarch64-simd.md
2633 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
2634 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
2635 from the asm template.
2636 * config/aarch64/aarch64-sve.md
2637 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
2638 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
2639 from the asm template.
2640 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
2641 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
2642 from the asm template.
2643 * config/aarch64/aarch64-simd-builtins.def: Update comment.
2645 2019-08-13 Martin Liska <mliska@suse.cz>
2647 * value-prof.c (gimple_ic_transform): Add new line.
2648 Print details with MSG_NOTE.
2650 2019-08-13 Martin Liska <mliska@suse.cz>
2652 * doc/invoke.texi: Document automatic detection of jobserver.
2653 * lto-wrapper.c (run_gcc): Detect jobserver always.
2655 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2657 * config/i386/i386-expand.c (ix86_expand_vector_set)
2658 <case E_V2SImode>: Use vec_merge path for
2659 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2660 <case E_V8QImode>: Ditto.
2661 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
2662 (*mmx_pinsrb): Ditto.
2664 2019-08-12 Jakub Jelinek <jakub@redhat.com>
2668 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
2669 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
2670 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
2671 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
2672 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
2674 2019-08-12 Richard Biener <rguenther@suse.de>
2677 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
2680 2019-08-12 Richard Biener <rguenther@suse.de>
2683 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
2684 lang_mask option, always use CL_DRIVER.
2685 (get_options_from_collect_gcc_options): Adjust.
2686 (find_and_merge_options): Likewise.
2687 (run_gcc): Likewise.
2689 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2691 * ipa-predicate.c (add_condition): Restore inverted test.
2693 2019-08-10 Jakub Jelinek <jakub@redhat.com>
2695 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
2696 (enum omp_clause_device_type_kind): New enum.
2697 (struct tree_omp_clause): Add subcode.device_type_kind.
2698 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
2699 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2700 for device_type clause.
2701 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
2702 * tree-pretty-print.c (dump_omp_clause): Likewise.
2705 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
2708 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
2710 * reload1.c (finish_spills): Do not check ira_conflicts_p when
2711 handling spilled pseudos.
2713 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
2716 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
2717 to preserve the contents of the original insns.
2719 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
2721 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
2722 (addsi3_compare_op2): Likewise.
2724 2019-08-09 Martin Liska <mliska@suse.cz>
2726 * alias.c (alias_ptr_types_compatible_p): Strengten
2727 type comparison in LTO mode.
2729 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
2732 * tree-tailcall.c (find_tail_calls): Reject calls that might
2733 read from an escaped RESULT_DECL.
2735 2019-08-09 Martin Liska <mliska@suse.cz>
2737 * doc/invoke.texi: Document the option value.
2738 * lto-wrapper.c (run_gcc): Set auto_parallel
2739 only with -flto=auto.
2741 2019-08-09 Martin Liska <mliska@suse.cz>
2743 * opts.c (common_handle_option): Error for an invalid argument
2746 2019-08-09 Martin Liska <mliska@suse.cz>
2748 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
2749 use dump_printf to report optimization.
2750 (sem_variable::merge): Likwise.
2751 (sem_item_optimizer::merge_classes): Use dump_printf to report
2754 2019-08-09 Martin Liska <mliska@suse.cz>
2756 * value-prof.c (gimple_divmod_fixed_value_transform):
2757 Use dump_printf_loc.
2758 (gimple_mod_pow2_value_transform): Likewise.
2759 (gimple_mod_subtract_transform): Likewise.
2760 (init_node_map): Likewise.
2761 (gimple_ic_transform): Likewise.
2762 (gimple_stringops_transform): Likewise.
2764 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
2766 * doc/extend.texi: Add const qualifier to ld intrinsics.
2768 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2770 * config/rs6000/dfp.md (D64_D128): Rename to ...
2771 (DDTD): ... this, throughout.
2772 (dfp_suffix): Rename to ...
2773 (q): ... this, throughout.
2775 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2777 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
2778 (dfp_suffix): Ditto.
2779 (adddd3, addtd3): Merge to ...
2780 (add<mode>3 for D64_D128): ... this.
2781 (subdd3, subtd3): Merge to ...
2782 (sub<mode>3 for D64_D128): ... this.
2783 (muldd3, multd3): Merge to ...
2784 (mul<mode>3 for D64_D128): ... this.
2785 (divdd3, divtd3): Merge to ...
2786 (div<mode>3 for D64_D128): ... this.
2787 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
2788 (*cmp<mode>_internal1 for D64_D128): ... this.
2789 (ftruncdd2, ftrunctd2): Merge to ...
2790 (ftrunc<mode>2 for D64_D128): ... this.
2791 (fixdddi2, fixtddi2): Merge to ...
2792 (fix<mode>di2 for D64_D128): ... this.
2794 2019-08-08 Jim Wilson <jimw@sifive.com>
2797 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
2798 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
2799 Pass into recursive call.
2800 (riscv_flatten_aggregate_argument): New arg. Pass to
2801 riscv_flatten_aggregate_field.
2802 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
2803 riscv_flatten_aggregate_argument twice, with false and true as last
2804 arg. Process result twice. Compare results and warn if different.
2805 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
2807 2019-08-08 Martin Liska <mliska@suse.cz>
2810 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
2811 * lto-wrapper.c (jobserver_active_p): Likewise.
2813 2019-08-08 Martin Liska <mliska@suse.cz>
2815 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
2816 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
2817 (create_version_clone_with_body): Likewise.
2819 2019-08-08 Jakub Jelinek <jakub@redhat.com>
2821 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
2822 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
2823 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
2824 GOVD_EXPLICIT flags.
2825 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
2826 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
2827 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
2828 call install_var_field with mask 11 instead of 3.
2829 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
2830 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
2832 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2834 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
2835 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
2837 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2839 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
2840 MOVPRFX alternatives. Make the GPR alternatives more expensive
2843 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2845 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
2846 Disparage the GPR alternative relative to the FPR one.
2847 Fix handling of 8-bit and 16-bit FPR values.
2849 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2851 * config/aarch64/iterators.md (BITWISEV): Delete.
2852 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
2853 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
2854 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2855 UNSPEC_FMINNMV, UNSPEC_FMINV.
2856 (bit_reduc_op): Delete.
2857 (sve_int_op): New int attribute.
2858 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2859 UNSPEC_FMINNMV, UNSPEC_FMINV.
2860 * config/aarch64/aarch64-sve.md
2861 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2862 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2863 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
2864 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
2865 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
2866 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
2868 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
2869 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
2870 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
2871 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
2872 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
2875 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2877 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
2878 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
2879 (fms<mode>4, *fms<mode>4): Replace with...
2880 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2881 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
2882 Use unspecs instead of rtx codes.
2883 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
2884 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
2886 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2888 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
2890 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
2891 * config/aarch64/aarch64-sve.md
2892 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
2893 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
2894 use a single unspec for the rhs.
2895 (*<su><maxmin><mode>3): Delete.
2896 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
2898 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2900 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
2901 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
2902 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
2903 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
2904 (optab, sve_fp_op): Handle them.
2905 (SVE_FP_UNARY): Delete.
2906 (optab): Remove sqrt entry.
2907 (sve_fp_op): Remove neg, abs and sqrt entries.
2908 (SVE_COND_FP_UNARY): New int iterator.
2909 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
2910 (*<frint_pattern><mode>2): Delete.
2911 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2912 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2913 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2914 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2916 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2918 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
2920 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2922 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
2923 (UNSPEC_COND_FADD): ...this.
2924 (UNSPEC_COND_SUB): Rename to...
2925 (UNSPEC_COND_FSUB): ...this.
2926 (UNSPEC_COND_MUL): Rename to...
2927 (UNSPEC_COND_FMUL): ...this.
2928 (UNSPEC_COND_DIV): Rename to...
2929 (UNSPEC_COND_FDIV): ...this.
2930 (UNSPEC_COND_MAX): Rename to...
2931 (UNSPEC_COND_FMAXNM): ...this.
2932 (UNSPEC_COND_MIN): Rename to...
2933 (UNSPEC_COND_FMINNM): ...this.
2934 (UNSPEC_COND_LT): Rename to...
2935 (UNSPEC_COND_FCMLT): ...this.
2936 (UNSPEC_COND_LE): Rename to...
2937 (UNSPEC_COND_FCMLE): ...this.
2938 (UNSPEC_COND_EQ): Rename to...
2939 (UNSPEC_COND_FCMEQ): ...this.
2940 (UNSPEC_COND_NE): Rename to...
2941 (UNSPEC_COND_FCMNE): ...this.
2942 (UNSPEC_COND_GE): Rename to...
2943 (UNSPEC_COND_FCMGE): ...this.
2944 (UNSPEC_COND_GT): Rename to...
2945 (UNSPEC_COND_FCMGT): ...this.
2946 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
2947 (sve_fp_op_rev): Update accordingly.
2948 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
2950 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2952 * config/aarch64/aarch64-sve.md: Reorganize contents and add
2954 * config/aarch64/check-sve-md.awk: New file.
2955 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
2956 (insn-conditions.md): Depend on it.
2958 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
2961 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
2962 (*negsi2_cmpz_zext): Ditto.
2964 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2966 * config/aarch64/iterators.md (commutative): Remove.
2968 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
2971 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
2972 processing COLLECT_GCC_OPTIONS.
2973 (run_gcc): Likewise.
2975 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2977 PR tree-optimization/91109
2978 * lra-remat.c (update_scratch_ops): Remove assignment of the
2981 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2983 * data-streamer.h (streamer_write_poly_uint64): Declare.
2984 (streamer_read_poly_uint64): Likewise.
2985 * data-streamer-in.c (streamer_read_poly_uint64): New function.
2986 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
2987 * ipa-predicate.h (condition::size): Turn into a poly_int64.
2988 (add_condition): Take a poly_int64 size.
2989 * ipa-predicate.c (add_condition): Likewise.
2990 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
2991 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
2992 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
2993 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
2994 condition::size as a poly_int64.
2995 (unmodified_parm_1): Take a poly_int64 size pointer.
2996 (unmodified_parm): Likewise.
2997 (unmodified_parm_or_parm_agg_item): Likewise.
2998 (set_cond_stmt_execution_predicate): Update accordingly.
2999 (set_switch_stmt_execution_predicate): Likewise.
3000 (will_be_nonconstant_expr_predicate): Likewise.
3001 (will_be_nonconstant_predicate): Likewise.
3002 (inline_read_section): Stream condition::size as a poly_int.
3003 (ipa_fn_summary_write): Likewise.
3005 2019-08-07 Martin Liska <mliska@suse.cz>
3007 * fold-const.c (twoval_comparison_p): Replace int
3008 with bool as a return type.
3009 (simple_operand_p): Likewise.
3010 (operand_equal_p): Replace int with bool as a return type.
3011 * fold-const.h (operand_equal_p): Likewise.
3013 2019-08-07 Jakub Jelinek <jakub@redhat.com>
3015 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
3016 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
3017 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
3018 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
3019 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
3020 * tree-pretty-print.c (dump_omp_clause): Likewise.
3021 * tree-nested.c (convert_nonlocal_omp_clauses,
3022 convert_local_omp_clauses): Likewise.
3023 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
3025 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
3026 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
3027 clause with array or reference to array types, no matter what type
3028 except for reference it has.
3030 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
3032 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
3034 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
3036 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
3037 (arch_canonicalize): Support rv32g and rv64g and fix error
3040 2019-08-06 Martin Liska <mliska@suse.cz>
3042 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
3043 and DECL_IS_OPERATOR_DELETE_P.
3045 2019-08-06 Jakub Jelinek <jakub@redhat.com>
3047 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
3048 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
3049 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
3050 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
3051 (gimplify_omp_for): Don't do C++ random access iterator clause
3052 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
3053 don't predetermine the artificial iterator in case of C++ random
3054 access iterators as lastprivate, but private. For OMP_LOOP, force
3055 bind expr around simd body and force for_pre_body before the
3056 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
3057 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
3058 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
3059 diff var of C++ random access iterators. Handle
3060 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
3061 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
3062 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
3063 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
3064 * omp-low.c (lower_rec_input_clauses): For
3065 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
3066 variables instead of default constructing them.
3067 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
3068 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
3069 is_taskloop_ctx check from the assert to the guarding condition.
3071 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
3073 * config/riscv/multilib-generator: (canonical_order): New.
3074 (arch_canonicalize): Dito.
3075 Apply arch_canonicalize for alts.
3077 2019-08-05 Martin Sebor <msebor@redhat.com>
3079 * doc/extend.texi (Common Variable Attributes): Document alias
3082 2019-08-05 Marek Polacek <polacek@redhat.com>
3084 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
3085 * doc/invoke.texi: Document -Wcomma-subscript.
3087 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3089 * tree-core.h (tree_function_decl): Make function_code an
3090 independent field. Group the remaining bitfields into bytes
3091 and move decl_type so that it contines to be at a byte boundary.
3092 Leave 12 bits for future expansion.
3094 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3096 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
3097 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
3098 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
3101 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3103 * gimple.h (gimple_move_vops): Declare.
3104 * gimple.c (gimple_move_vops): New function
3105 * gimple-fold.c (replace_call_with_call_and_fold)
3106 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
3107 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
3108 (gimple_fold_call): Use it.
3109 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
3110 * tree-call-cdce.c (use_internal_fn): Likewise.
3111 * tree-if-conv.c (predicate_load_or_store): Likewise.
3112 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
3113 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3114 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
3115 (update_call_from_tree): Likewise.
3116 * tree-vect-stmts.c (vectorizable_load): Likewise.
3117 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
3119 2019-08-05 Martin Liska <mliska@suse.cz>
3122 * tree-ssa-dce.c (propagate_necessity): Handle new operators
3124 (eliminate_unnecessary_stmts): Likewise.
3126 2019-08-05 Richard Biener <rguenther@suse.de>
3129 * fold-const.c (get_array_ctor_element_at_index): Create
3130 offset_ints according to the sign of the index type and treat
3131 that as signed if it is obviously so.
3133 2019-08-05 Jakub Jelinek <jakub@redhat.com>
3136 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
3137 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
3138 _mm256_storeu2_m128i): New function.
3140 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
3142 * config/riscv/riscv.c (riscv_promote_function_mode): New.
3143 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
3145 2019-08-05 Alan Modra <amodra@gmail.com>
3148 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
3149 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
3151 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
3153 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
3154 bug that was fixed in Tcl 8.6.1.
3156 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
3158 * config/rs6000/future.md: New file.
3159 * config/rs6000/rs6000.md: Include future.md.
3160 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
3162 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3164 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
3165 check to use targetm.slow_unaligned_access instead.
3167 * function.c (assign_param_data_one): Remove unused data members.
3169 2019-08-02 Steve Ellcey <sellcey@marvell.com>
3171 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
3172 build_distinct_type_copy.
3173 (simd_clone_adjust_argument_types): Ditto.
3174 (simd_clone_adjust): Call build_distinct_type_copy here.
3175 (expand_simd_clones): Ditto.
3177 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
3180 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
3182 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
3184 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
3185 from 'const void *'.
3186 (sort_locs_in_loop_postorder_cmp): Likewise.
3188 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
3190 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
3191 (hot-bb-count-ws-permille): Likewise.
3192 (hot-bb-frequency-fraction): Likewise.
3193 (unlikely-bb-count-fraction): Likewise.
3194 * params.def (hot-bb-count-fraction): Rework description.
3195 (hot-bb-count-ws-permille): Likewise.
3196 (hot-bb-frequency-fraction): Likewise.
3197 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
3198 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
3200 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
3203 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
3206 2019-08-02 Richard Biener <rguenther@suse.de>
3208 * vec.h (vec::sort): Add gcc_qsort_r support.
3209 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
3210 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
3211 to gcc_qsort_r style callback.
3212 (sort_locs_in_loop_postorder_cmp): Likewise.
3213 (analyze_memory_references): Use gcc_sort_r interfaces.
3214 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
3216 2019-08-02 Martin Liska <mliska@suse.cz>
3219 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
3220 to detect working job server.
3221 (driver::detect_jobserver): Test whether jobserver
3222 is active from GCC driver. That will prevent situation where
3223 GCC is invoked from a LD plugin and the linker already uses
3224 file descriptors suggested by make. That leads to a wrong
3226 * gcc.h (driver): Add detect_jobserver.
3227 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
3228 not scanning for --jobserver-auth prefix.
3230 2019-08-02 Jakub Jelinek <jakub@redhat.com>
3232 PR tree-optimization/91201
3233 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
3234 V16QImode extraction without sse4.1 try to use V4SImode lowpart
3237 2019-08-01 Martin Sebor <msebor@redhat.com>
3240 * tree.c (type_initializer_zero_p): Define.
3241 * tree.h (type_initializer_zero_p): New function.
3243 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
3245 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
3247 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
3249 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
3250 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
3251 * predict.c (maybe_hot_count_p): Likewise.
3252 (maybe_hot_bb_p): Tweak comment.
3253 (maybe_hot_edge_p): Likewise.
3254 (probably_never_executed): Likewise. Minor tweak.
3255 (probably_never_executed_bb_p): Likewise.
3256 (unlikely_executed_edge_p): Likewise.
3257 (probably_never_executed_edge_p): Likewise.
3258 (optimize_function_for_size_p): Likewise.
3259 (optimize_function_for_speed_p): Likewise.
3260 (function_optimization_type): Likewise.
3261 (optimize_bb_for_size_p): Likewise.
3262 (optimize_bb_for_speed_p): Likewise.
3263 (bb_optimization_type): Likewise.
3264 (optimize_edge_for_size_p): Likewise.
3265 (optimize_edge_for_speed_p): Likewise.
3266 (optimize_insn_for_size_p): Likewise.
3267 (optimize_insn_for_speed_p): Likewise.
3268 (optimize_loop_for_size_p): Likewise.
3269 (optimize_loop_for_speed_p): Likewise.
3270 (optimize_loop_nest_for_speed_p): Likewise.
3271 (optimize_loop_nest_for_size_p): Likewise.
3272 (predictable_edge_p): Likewise.
3273 (handle_missing_profiles): Minor tweak.
3275 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
3277 * config/rs6000/predicates.md (pcrel_external_address): Update
3280 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
3283 * config/i386/mmx.md (usadv8qi): New expander.
3285 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
3288 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
3289 with reserved names that are in a system header.
3291 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
3293 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
3294 (*vec_extractv2si_0_zext_sse4): New insn pattern.
3295 (*vec_extractv2si_0_zext): Ditto.
3296 (*vec_extractv2si_1): Add (rm,x) alternative.
3297 (*vec_extractv2si_1_zext): New insn pattern.
3298 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
3301 2019-08-01 Richard Biener <rguenther@suse.de>
3303 * domwalk.c (bb_postorder): Remove static variable.
3304 (cmp_bb_postorder): Adjust.
3305 (sort_bbs_postorder): Adjust and use gcc_sort_r.
3306 (dom_walker::walk): Adjust.
3308 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
3310 * sort.cc (sort_r_ctx): New struct.
3311 (reorder23): Make templated on context type.
3313 (cmp1): Ditto. Adjust signature.
3316 [CHECKING_P] (cmp2to3): New static function. Use it...
3317 (gcc_qsort) [CHECKING_P]: ...here.
3318 (gcc_sort_r): New function.
3319 * system.h (sort_r_cmp_fn): New function typedef.
3320 (qsort_chk): Adjust signature.
3321 (gcc_sort_r): Declare.
3322 * vec.c (qsort_chk_error): Adjust.
3323 (qsort_chk): Adjust.
3325 2019-08-01 Richard Biener <rguenther@suse.de>
3327 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
3328 (compute_antic): Localize it here.
3330 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
3332 * common/config/riscv/riscv-common.c: Check -march string ends
3335 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
3337 * ipa-devirt.c (type_warning_cmp): Make static.
3338 (decl_warning_cmp): Ditto.
3340 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
3343 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
3344 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
3345 use of deleted rs6000_dejagnu_cpu_index variable.
3346 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
3347 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3348 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
3349 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
3350 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
3351 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3353 2019-07-31 Richard Biener <rguenther@suse.de>
3355 PR tree-optimization/91280
3356 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3357 Decompose MEM_REF manually for offset handling.
3359 2019-07-31 Richard Biener <rguenther@suse.de>
3361 PR tree-optimization/91293
3362 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
3365 2019-07-31 Matt Thomas <matt@3am-software.com>
3366 Nick Hudson <nick@nthcliff.demon.co.uk>
3367 Matthew Green <mrg@eterna.com.au>
3368 Maya Rashish <coypu@sdf.org>
3370 * config.gcc (hppa*-*-netbsd*): New target.
3371 * config/pa/pa-netbsd.h: New file.
3372 * config/pa/pa32-netbsd.h: New file.
3374 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3376 PR tree-optimization/91201
3377 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
3379 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
3381 * config/gcn/gcn-valu.md
3382 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
3383 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
3384 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
3385 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
3386 struct ilist. Add nops for delayeduse insns.
3387 * config/gcn/gcn.md (delayeduse): New attribute.
3388 (*movbi): Remove s_waitcnt from stores.
3389 (*mov<mode>_insn): Likewise.
3390 (*movti_insn): Likewise. Add delayeduse attribute.
3391 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
3392 (atomic_store<mode>): Remove or adjust s_waitcnt.
3394 2019-07-31 Richard Biener <rguenther@suse.de>
3396 * vr-values.h (vr_values::swap_vr_value): New.
3397 (vr_values::free_value_range): likewise.
3398 * vr-values.c (vr_values::swap_vr_value): Implement.
3399 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
3400 Do not return a range or take a var.
3401 (evrp_range_analyzer::stack): Change back to recording a non-const
3403 * gimple-ssa-evrp-analyze.c
3404 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
3406 (evrp_range_analyzer::pop_to_marker): Adjust.
3407 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
3408 (evrp_range_analyzer::pop_value_range): Likewise. Free the
3409 no longer needed value-range.
3411 2019-07-31 Martin Liska <mliska@suse.cz>
3413 * tree-ssa-dce.c (propagate_necessity): Delete operator can
3414 have size and (or) alignment as 2nd and later arguments.
3415 Mark all of them as necessary.
3417 2019-07-31 Richard Biener <rguenther@suse.de>
3419 PR tree-optimization/91178
3420 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3423 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3425 PR tree-optimization/91201
3426 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
3427 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
3429 (reduc_plus_scal_<mode>): Improve formatting by introducing
3432 2019-07-31 Sudakshina Das <sudi.das@arm.com>
3434 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
3435 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
3436 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
3437 (aarch64_init_tme_builtins): New.
3438 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
3439 (aarch64_expand_builtin_tme): New.
3440 (aarch64_expand_builtin): Handle TME builtins.
3441 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3442 __ARM_FEATURE_TME when enabled.
3443 * config/aarch64/aarch64-option-extensions.def: Add "tme".
3444 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
3446 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
3447 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
3449 (tstart, ttest, tcommit, tcancel): New instructions.
3450 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
3451 (__tcancel, __ttest): New.
3452 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
3453 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
3454 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
3455 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
3456 * config/arm/types.md: Add new tme type attr.
3457 * doc/invoke.texi: Document "tme".
3459 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
3461 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
3462 warn_unused_result attribute.
3463 (cmse_check_address_range): Add warn_unused_result attribute.
3465 2019-07-31 Richard Biener <rguenther@suse.de>
3467 PR tree-optimization/91257
3468 * tree-vrp.c (union_ranges): Unify equality and less tests
3469 by using compare_values. Re-order cheap tests first.
3471 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3474 * gimplify.c (gimplify_omp_for): If for class iterator on
3475 distribute parallel for there is no data sharing clause
3476 on inner_for_stmt, look for private clause on combined
3477 parallel too and if found, move it to inner_for_stmt.
3479 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
3481 * lra-int.h (lra_operand_data): Remove early_clobber field.
3482 (lra_insn_reg): Likewise.
3483 * lra.c (debug_operand_data): Update accordingly.
3484 (setup_operand_alternative): Likewise.
3485 (new_insn_reg): Likewise. Remove early_clobber parameter.
3486 (collect_non_operand_hard_regs): Update call accordingly.
3487 Don't assign to lra_insn_reg::early_clobber.
3488 (add_regs_to_insn_regno_info): Remove early_clobber parameter
3489 and update calls to new_insn_reg.
3490 (lra_update_insn_regno_info): Update calls accordingly.
3491 * lra-constraints.c (update_and_check_small_class_inputs): Take the
3492 alternative number as a parameter and test whether the operand
3493 is earlyclobbered in that particular alternative.
3494 (process_alt_operands): Update call accordingly. Use per-alternative
3495 checks for earyclobber here too.
3496 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
3497 against zero for IRA_UNKNOWN_ALT.
3499 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3501 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
3503 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
3505 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
3506 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3508 2019-07-30 Martin Liska <mliska@suse.cz>
3511 * cgraph.c (cgraph_edge::make_direct): Use
3512 edge->indirect_unknown_callee as edge->resolve_speculation can
3513 deallocate edge which is this pointer.
3515 2019-07-30 Richard Biener <rguenther@suse.de>
3517 PR tree-optimization/91257
3518 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
3520 2019-07-30 Martin Liska <mliska@suse.cz>
3522 * doc/invoke.texi: Document new behavior.
3523 * lto-wrapper.c (cpuset_popcount): New function
3524 is a copy of libgomp/config/linux/proc.c.
3525 (init_num_threads): Likewise.
3526 (run_gcc): Automatically detect core count for -flto.
3527 (jobserver_active_p): New function.
3529 2019-07-30 Richard Biener <rguenther@suse.de>
3531 PR tree-optimization/91257
3532 * bitmap.h (bitmap_ior_into_and_free): Declare.
3533 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
3534 whether to add the unliked element to the freelist.
3535 (bitmap_list_insert_element_after): Add defaulted param for
3536 an already allocated element.
3537 (bitmap_ior_into_and_free): New function.
3538 * tree-ssa-structalias.c (condense_visit): Reduce the
3539 ponts-to and edge bitmaps of the SCC members in a
3540 logarithmic fashion rather than all to one.
3542 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
3544 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
3545 parameter. When nonnull, make sure that the addition or subtraction
3546 has the same condition.
3547 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
3548 for CFN_COND_MUL too.
3550 2019-07-30 Richard Biener <rguenther@suse.de>
3552 PR tree-optimization/91291
3553 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
3556 2019-07-30 Jakub Jelinek <jakub@redhat.com>
3559 * omp-low.c (global_nonaddressable_vars): New variable.
3560 (use_pointer_for_field): For global decls, if they are non-addressable,
3561 remember it in the global_nonaddressable_vars bitmap, if they are
3562 addressable and in the global_nonaddressable_vars bitmap, ignore their
3563 TREE_ADDRESSABLE bit.
3564 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
3565 vars in global_nonaddressable_vars bitmap.
3566 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
3569 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
3570 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
3571 comparison to unsigned HOST_WIDE_INT before shifting it left.
3573 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3575 * config/i386/i386.md (movstrict<mode>): Use register_operand
3576 predicate for operand 0. Add expander condition. Assert that
3577 operand 0 is a SUBREG RTX.
3578 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
3579 Update operand constraints and insn condition.
3580 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
3581 (zero_extendqihi2_and): Do not call gen_movstrictqi.
3582 (*setcc_qi_slp): Use register_operand predicate for operand 0.
3583 Update operand 0 constraints.
3584 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
3586 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3588 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
3589 when -m{code,data}-region are used without -mlarge.
3590 * config/msp430/msp430.c (msp430_option_override): Error when a
3591 non-default code or data region is used without -mlarge.
3592 (msp430_section_attr): Emit a warning and do not add upper/lower/either
3593 attributes when they are used without -mlarge.
3595 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3598 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
3600 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3603 * wide-int.h (generic_wide_int::sext_elt): New function.
3604 * inchash.h (hash::add_wide_int): Use it instead of elt.
3606 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3608 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
3610 * config/arm/arm.md (<crc_variant>): Rename to...
3611 (arm_<crc_variant>): ... This.
3612 (<cdp>): Rename to...
3613 (arm_<cdp>): ... This.
3614 (<ldc>): Rename to...
3615 (arm_<ldc>): ... This.
3616 (<stc>): Rename to...
3617 (arm_<stc>): ... This.
3618 (<mcr>): Rename to...
3619 (arm_<mcr>): ... This.
3620 (<mrc>): Rename to...
3621 (arm_<mrc>): ... This.
3622 (<mcrr>): Rename to...
3623 (arm_<mcrr>): ... This.
3624 (<mrrc>): Rename to...
3625 (arm_<mrrc>): ... This.
3627 2019-07-29 Richard Biener <rguenther@suse.de>
3629 PR tree-optimization/91257
3630 * tree-ssa-sccvn.h (struct vn_avail): New.
3631 (struct vn_ssa_aux): Add avail member.
3632 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
3633 member, add m_avail_freelist one.
3634 (rpo_elim::~rpo_elim): Remove.
3635 (rpo_elim::eliminate_avail): Adjust to new avail tracking
3637 (rpo_elim::eliminate_push_avail): Likewise.
3638 (do_unwind): Likewise.
3639 (do_rpo_vn): Likewise.
3641 2019-07-29 Richard Biener <rguenther@suse.de>
3643 PR tree-optimization/91257
3644 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
3645 most cases, instead call compare_values which handles the
3646 symbolic ranges we handle specially.
3647 (compare_values_warnv): Do not call operand_less_p but open-code
3648 the effective fold calls. Avoid converting so much.
3650 2019-07-29 Martin Liska <mliska@suse.cz>
3652 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
3653 remove LHS of operator new call. It's handled latter.
3655 2019-07-29 Richard Biener <rguenther@suse.de>
3657 PR tree-optimization/91267
3658 * vr-values.c (vr_values::update_value_range): Add early return
3659 for effectively VARYING lattice entry.
3661 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3664 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
3665 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
3666 necessary if keep_all_vdefs_p is true.
3667 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
3668 that keep_all_vdefs_p is false.
3669 (mark_all_reaching_defs_necessary): Likewise.
3670 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
3672 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3674 * common.opt (Og): Change the initial value of flag_dse to 0.
3675 * opts.c (default_options_table): Move OPT_ftree_dse from
3676 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
3677 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
3678 entry before the OPT_ftree_sra entry.
3679 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
3680 of flags disabled by Og.
3682 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3684 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
3687 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3689 * doc/sourcebuild.texi (check-function-bodies): Document.
3691 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3693 * simplify-rtx.c (simplify_const_unary_operation): Fold a
3694 VEC_DUPLICATE of a fixed-length vector even if the result
3695 is variable-length. Likewise fold a duplicate of a
3696 variable-length vector if the variable-length vector is
3697 itself a duplicate of a fixed-length sequence.
3698 (test_vector_ops_duplicate): Test more cases.
3700 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3702 * vector-builder.h (vector_builder): Add a shape template parameter.
3703 (vector_builder::new_unary_operation): New function, generalizing
3704 the old tree_vector_builder function.
3705 (vector_builder::new_binary_operation): Likewise.
3706 (vector_builder::binary_encoded_nelts): Likewise.
3707 * int-vector-builder.h (int_vector_builder): Update template
3708 parameters to vector_builder.
3709 (int_vector_builder::shape_nelts): New function.
3710 * rtx-vector-builder.h (rtx_vector_builder): Update template
3711 parameters to vector_builder.
3712 (rtx_vector_builder::shape_nelts): New function.
3713 (rtx_vector_builder::nelts_of): Likewise.
3714 (rtx_vector_builder::npatterns_of): Likewise.
3715 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
3716 * tree-vector-builder.h (tree_vector_builder): Update template
3717 parameters to vector_builder.
3718 (tree_vector_builder::shape_nelts): New function.
3719 (tree_vector_builder::nelts_of): Likewise.
3720 (tree_vector_builder::npatterns_of): Likewise.
3721 (tree_vector_builder::nelts_per_pattern_of): Likewise.
3722 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
3723 (tree_vector_builder::new_binary_operation): Delete.
3724 (tree_vector_builder::binary_encoded_nelts): Likewise.
3725 * simplify-rtx.c: Include rtx-vector-builder.h.
3726 (distributes_over_addition_p): New function.
3727 (simplify_const_unary_operation)
3728 (simplify_const_binary_operation): Generalize handling of vector
3729 constants to include variable-length vectors.
3730 (test_vector_ops_series): Add more tests.
3732 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
3735 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
3736 than INDENTIFIER_POINTER.
3738 2019-07-28 Martin Liska <mliska@suse.cz>
3741 * cgraph.c (symbol_table::create_edge): Always allocate
3743 (symbol_table::free_edge): Store summary_id to
3744 edge_released_summary_ids if != -1;
3745 * cgraph.h (NEXT_FREE_NODE): Remove.
3746 (SET_NEXT_FREE_NODE): Likewise.
3747 (NEXT_FREE_EDGE): Likewise.
3748 (symbol_table::release_symbol): Store summary_id to
3749 cgraph_released_summary_ids if != -1;
3750 (symbol_table::allocate_cgraph_symbol): Always allocate
3753 2019-07-28 Alan Modra <amodra@gmail.com>
3755 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
3758 2019-07-28 Alan Modra <amodra@gmail.com>
3761 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
3763 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
3764 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
3765 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
3767 2019-07-28 Alan Modra <amodra@gmail.com>
3770 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
3771 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
3772 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
3773 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
3774 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
3775 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
3776 in asm_default spec.
3777 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
3778 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
3780 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
3782 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
3784 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3787 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
3788 * config/aarch64/aarch64-option-extensions.def: Add new comments
3789 and restore easier to read options.
3791 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3793 * convert.c (convert_to_real_1): Move part of conversion code...
3794 * match.pd: ...To here.
3796 2019-07-26 Martin Jambor <mjambor@suse.cz>
3799 * ipa-inline-transform.c (check_speculations_1): New function.
3800 (push_all_edges_in_set_to_vec): Likewise.
3801 (check_speculations): Use check_speculations_1, new parameter
3803 (inline_call): Pass new_edges to check_speculations.
3804 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
3806 (speculation_useful_p): Early return true if edge is inlined, remove
3807 later checks for inline_failed.
3809 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
3811 PR rtl-optimization/91223
3812 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
3813 matching with INOUT operand.
3815 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3817 * stmt.c (expand_case): Try to narrow the index type if it's larger
3818 than a word. Tidy up.
3820 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3822 * cif-code.def (NEVER_CALL): New code.
3823 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
3824 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
3826 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
3828 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
3829 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3831 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3833 * ipa-devirt.c (add_type_duplicate): Fix return value.
3835 2019-07-25 Richard Biener <rguenther@suse.de>
3837 * tree-vrp.c (extract_range_from_multiplicative_op): Add
3838 type parameter and use it instead of guessing expression
3839 type from the first operand.
3840 (extract_range_from_binary_expr): Pass expr_type down.
3842 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3844 * config/arm/arm.md (SATrev): Change to code attribute.
3845 (*satsi_<SAT:code>): Adjust for the above.
3846 (*satsi_<SAT:code>_shift): Likewise.
3848 2019-07-25 Richard Biener <rguenther@suse.de>
3850 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
3851 Make value_range * temporary const.
3852 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
3854 (evrp_range_analyzer::record_ranges_from_): Likewise.
3855 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
3856 deal with having recorded a const one.
3857 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
3858 Return a const value_range *.
3859 (evrp_range_analyzer::pop_value_range): Likewise.
3860 (evrp_range_analyzer::stack): Record const value_range *s.
3861 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
3863 * gimple-ssa-sprintf.c (get_int_range): Likewise.
3864 (format_integer): Likewise.
3865 (sprintf_dom_walker::handle_gimple_call): Likewise.
3866 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
3867 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
3868 (vrp_prop::get_value_range): Adjust.
3869 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
3870 modifying the lattice in-place.
3871 (vrp_prop::visit_stmt): Likewise.
3872 * vr-values.c (vr_values::get_lattice_entry): New private method.
3873 (vr_values::get_value_range): Wrap it and return a const
3875 (vr_values::set_def_to_varying): New.
3876 (vr_values::set_defs_to_varying): Use it.
3877 (vr_values::update_value_range): Likewise.
3878 (vr_values::vrp_stmt_computes_nonzero): Adjust.
3879 (values::op_with_constant_singleton_va): Likewise.
3880 (vr_values::extract_range_for_var_from_co): Likewise.
3881 (vr_values::extract_range_from_ssa_name): Likewise.
3882 (vr_values::extract_range_from_cond_expr): Likewise.
3883 (vr_values::extract_range_basic): Likewise.
3884 (compare_ranges): Take const value_range *, adjust.
3885 (compare_range_with_value): Likewise.
3886 (vrp_valueize): Adjust.
3887 (vrp_valueize_1): Likewise.
3888 (vr_values::get_vr_for_comparison): Return a const value_range *.
3889 (vr_values::compare_name_with_value): Adjust.
3890 (vr_values::compare_names): Likewise.
3891 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
3893 (vr_values::vrp_evaluate_conditional): Likewise.
3894 (find_case_label_ranges): Take a const value_range *.
3895 (vr_values::vrp_visit_switch_stmt): Adjust.
3896 (vr_values::extract_range_from_phi_node): Likewise.
3897 (vr_values::simplify_div_or_mod_using_ran): Likewise.
3898 (vr_values::simplify_abs_using_ranges): Likewise.
3899 (test_for_singularity): Take a const value_range *.
3900 (range_fits_type_p): Likewise.
3901 (vr_values::simplify_cond_using_ranges_1): Adjust.
3902 (vr_values::simplify_cond_using_ranges_2): Likewise.
3903 (vr_values::simplify_switch_using_ranges): Likewise.
3904 (vr_values::simplify_float_conversion_usi): Likewise.
3905 (vr_values::two_valued_val_range_p): Likewise.
3906 * vr-values.h (vr_values::get_value_range): Return a const
3908 (vr_values::set_def_to_varying): New.
3909 (vr_values::get_lattice_entry): New private method.
3910 (vr_values::get_vr_for_comparison): Return a const value_range *.
3912 2019-07-25 Martin Liska <mliska@suse.cz>
3913 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
3916 * common.opt: Add -fallocation-dce
3917 * gimple.c (gimple_call_operator_delete_p): New.
3918 * gimple.h (gimple_call_operator_delete_p): Likewise.
3919 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
3920 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
3921 DECL_IS_OPERATOR_DELETE_P.
3922 (mark_all_reaching_defs_necessary_1): Likewise.
3923 (propagate_necessity): Likewise.
3924 (eliminate_unnecessary_stmts): Handle
3925 gimple_call_operator_delete_p.
3926 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
3927 Add packing of OPERATOR_DELETE.
3928 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
3930 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
3931 (DECL_SET_IS_OPERATOR_DELETE): New.
3932 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
3934 2019-07-25 Martin Liska <mliska@suse.cz>
3936 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
3937 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
3938 * coverage.c (coverage_begin_function): Likewise.
3939 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
3940 * gimple.c (gimple_call_nonnull_result_p): Likewise.
3941 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
3942 (sem_item::hash_referenced_symbol_properties): Likewise.
3943 * lto-streamer-out.c (hash_tree): Likewise.
3944 * predict.c (expr_expected_value_1): Likewise.
3945 * tree-inline.c (expand_call_inline): Likewise.
3946 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
3947 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
3948 * tree-core.h (enum function_decl_type): New enum.
3949 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
3950 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
3951 (set_function_decl_type): Likewise.
3952 (DECL_IS_OPERATOR_NEW_P): New.
3953 (DECL_SET_IS_OPERATOR_NEW): Likewise.
3954 (DECL_LAMBDA_FUNCTION): Likewise.
3955 (DECL_LAMBDA_FUNCTION_P): Likewise.
3956 (DECL_IS_OPERATOR_NEW): Remove.
3957 (DECL_SET_LAMBDA_FUNCTION): Likewise.
3959 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
3961 * ipa-profile.c (get_most_common_single_value): Use
3962 get_nth_most_common_value.
3963 * profile.c (sort_hist_value): New function.
3964 (compute_value_histograms): Call sort_hist_value to sort the
3965 values after loading from disk.
3966 * value-prof.c (get_most_common_single_value): Rename to ...
3967 get_nth_most_common_value. Add input params n, return
3968 the n_th value and count.
3969 (gimple_divmod_fixed_value_transform): Use
3970 get_nth_most_common_value.
3971 (gimple_ic_transform): Likewise.
3972 (gimple_stringops_transform): Likewise.
3973 * value-prof.h (get_most_common_single_value): Add input params
3976 2019-07-25 Richard Biener <rguenther@suse.de>
3978 PR tree-optimization/91236
3979 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
3980 size of CONSTRUCTOR write. Fix buffer size we pass to
3983 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3985 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
3986 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
3989 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3991 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
3992 explicitly disabled with --disable-initfini-array.
3994 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3996 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
3999 2019-07-24 Martin Sebor <msebor@redhat.com>
4001 PR tree-optimization/91183
4002 PR tree-optimization/86688
4003 * builtins.c (compute_objsize): Handle MEM_REF.
4004 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
4005 (get_min_string_length): Remove.
4006 (count_nonzero_bytes): New function.
4007 (handle_char_store): Rename...
4008 (handle_store): to this. Handle multibyte stores via integer types.
4009 (strlen_check_and_optimize_stmt): Adjust conditional and the called
4012 2019-07-24 Martin Sebor <msebor@redhat.com>
4015 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
4016 (diagnostic_report_diagnostic): Same.
4017 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
4018 (diagnostic_context::lang_mask): New data member.
4019 * ipa-pure-const.c (suggest_attribute): Use
4020 lang_hooks.option_lang_mask ().
4021 * opts-common.c (option_enabled): Handle new argument.
4022 (get_option_state): Pass an additional argument.
4023 * opts.c (print_filtered_help): Print supported languages for
4024 unsupported options. Adjust printing of current state.
4025 * opts.h (option_enabled): Add argument.
4026 * toplev.c (print_switch_values): Use lang_mask.
4027 (general_init): Set global_dc->lang_mask.
4029 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
4032 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
4034 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
4036 * cgraphunit.c (symbol_table::compile): Start and stop
4037 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
4038 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
4040 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
4042 * gimplify.c (flag_instrument_functions_exclude_p): Include
4043 namespace/class information in the printable name.
4044 * opts.c (add_comma_separated_to_vector): Add NUL terminator
4045 to tokens entered into the vector.
4047 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
4049 * tree-nested.c (build_simple_mem_ref_notrap): New function.
4050 (get_static_chain): Call it instead of build_simple_mem_ref.
4051 (get_frame_field): Likewise.
4052 (get_nonlocal_debug_decl): Likewise.
4053 (convert_nonlocal_reference_op): Likewise.
4055 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
4057 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
4059 (arc_compute_frame_size): Millicode is disabled when compiling
4061 (arc_return_address_register): Likewise.
4062 (arc_compute_function_type): Likewise.
4063 (arc_compute_frame_size): Likewise.
4064 (secondary_reload_info): Likewise.
4065 (arc_get_unalign): Likewise.
4066 (arc_can_use_return_insn): Declare.
4067 * config/arc/arc.c (AUX_LP_START): Define
4068 (AUX_LP_END): Likewise.
4069 (arc_frame_info): Update gmask member to 64-bit datum.
4070 (GMASK_LEN): Update.
4071 (arc_compute_function_type): Make it static, move it forward.
4072 (arc_must_save_register): Update, consider the extra regs.
4073 (arc_compute_millicode_save_restore_regs): Update to use the 64
4075 (arc_compute_frame_size): Likewise.
4076 (arc_enter_leave_p): Likewise.
4077 (arc_save_callee_saves): Likewise.
4078 (arc_restore_callee_saves): Likewise.
4079 (arc_save_callee_enter): Likewise.
4080 (arc_restore_callee_leave): Likewise.
4081 (arc_save_callee_milli): Likewise.
4082 (arc_restore_callee_milli): Likewise.
4083 (arc_expand_prologue): Add new interrupt handling.
4084 (arc_return_address_register): Make it static, move it forward.
4085 (arc_expand_epilogue): Add new interrupt handling.
4086 (arc_get_unalign): Delete.
4087 (arc_epilogue_uses): Make sure we do not remove the extra
4088 saved/restored registers when interrupt.
4089 (arc_can_use_return_insn): New function.
4090 (push_reg): Likewise.
4091 (pop_reg): Likewise.
4092 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
4094 (arc_restore_callee_saves): Likewise, but restoring.
4095 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
4096 (R33_REG): Likewise.
4097 (R34_REG): Likewise.
4098 (R35_REG): Likewise.
4099 (R36_REG): Likewise.
4100 (R37_REG): Likewise.
4101 (R38_REG): Likewise.
4102 (R39_REG): Likewise.
4103 (R45_REG): Likewise.
4104 (R46_REG): Likewise.
4105 (R47_REG): Likewise.
4106 (R48_REG): Likewise.
4107 (R49_REG): Likewise.
4108 (R50_REG): Likewise.
4109 (R51_REG): Likewise.
4110 (R52_REG): Likewise.
4111 (R53_REG): Likewise.
4112 (R54_REG): Likewise.
4113 (R55_REG): Likewise.
4114 (R56_REG): Likewise.
4115 (R58_REG): Likewise.
4116 (type): Add rtie attribute.
4117 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
4118 (movsi_insn): Accept moves to lp_count.
4119 (rtie): Update pattern.
4120 (simple_return): Simplify it, don't use this pattern as a return
4122 (arc600_rtie): New pattern.
4123 (p_return_i): Clean up.
4125 * config/arc/builtins.def (rtie): Only available for non ARC6xx
4127 * config/arc/predicates.md (move_src_operand): Consider lp_count
4130 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
4132 * config/s390/predicates.md (addv_const_operand): New predicate.
4133 * config/s390/s390-modes.def (CCO): New condition code mode.
4134 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
4135 (s390_branch_condition_mask): Likewise.
4136 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
4137 ("mulv<mode>4"): New expanders.
4138 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
4139 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
4140 pattern definitions.
4142 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4145 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
4146 (define_predicates): Add entry for uniform_vector_p.
4147 (vec_same_elem_p): New match pattern.
4149 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
4152 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
4153 * config/i386/darwin32-biarch.h .. to here.
4154 * config/i386/darwin64-biarch.h: Adjust comments.
4155 * config/rs6000/darwin32-biarch.h: Likewise.
4156 * config/rs6000/darwin64-biarch.h: Likewise.
4157 * config.gcc: Missed commit from r273746
4158 (*-*-darwin*): Don't include CPU t-darwin here.
4159 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
4160 an error message if i686-darwin configuration is attempted for
4163 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
4166 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
4167 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
4168 an error message if i686-darwin configuration is attempted for
4170 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
4171 (powerpc-*-darwin*): Use biarch files where needed.
4172 (powerpc64-*-darwin*): Likewise.
4173 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
4174 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
4176 * config/i386/darwin32-biarch.h: New.
4177 * config/i386/darwin64.h: Rename.
4178 * config/i386/darwin64-biarch.h: To this.
4179 * config/i386/t-darwin: Rename.
4180 * config/i386/t-darwin32-biarch: To this.
4181 * config/i386/t-darwin64: Rename.
4182 * config/i386/t-darwin64-biarch: To this.
4183 * config/rs6000/darwin32-biarch.h: New.
4184 * config/rs6000/darwin64.h: Rename.
4185 * config/rs6000/darwin64-biarch.h: To this.
4186 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
4188 * config/rs6000/t-darwin8: Rename.
4189 * config/rs6000/t-darwin32-biarch: To this.
4190 * config/rs6000/t-darwin64 Rename.
4191 * config/rs6000/t-darwin64-biarch: To this.
4193 2019-07-23 Martin Sebor <msebor@redhat.com>
4195 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
4197 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
4199 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
4200 (rh): New alias for it.
4202 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
4204 * gdbhooks.py: Pass replace=True to
4205 gdb.printing.register_pretty_printer.
4207 2019-07-23 Richard Biener <rguenther@suse.de>
4210 * lto-streamer-in.c (input_function): Drop inline-entry markers
4211 that ended up with an unknown location block.
4213 2019-07-23 Richard Biener <rguenther@suse.de>
4215 PR tree-optimization/83518
4216 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
4217 init from a constant even when partial defs are already recorded.
4219 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4221 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
4222 * config/i386/znver1.md: Enable patterns for znver2 and add store
4223 variants which use extra AGU unit.
4225 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4227 * config/i386/i386-options.c (ix86_option_override_internal): Default
4228 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
4229 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
4232 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4234 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
4235 (znver2_costs): Update 256 bit SSE costs and multiplication.
4237 2019-07-23 Jan Beulich <jbeulich@suse.com>
4239 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
4240 Require only AVX512F.
4241 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
4242 alternative expanding to vpternlog.
4244 2019-07-23 Martin Liska <mliska@suse.cz>
4246 * dwarf2out.c (gen_producer_string): Canonize -flto=N
4247 to -flto in dwarf producer string.
4249 2019-07-23 Richard Biener <rguenther@suse.de>
4251 * tree-cfg.c (label_for_bb): Remove global var.
4252 (main_block_label): Take label_for_bb as argument.
4253 (cleanup_dead_labels_eh): Likewise, adjust.
4254 (cleanup_dead_labels): Adjust.
4256 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
4258 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
4259 Configurations): Add documentation for __builtin_mtfsf.
4261 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
4263 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
4264 * config/riscv/riscv.c (riscv_constant_alignment): Use
4265 riscv_align_data_type.
4266 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
4267 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
4268 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
4269 * config/riscv/riscv.opt (malign-data): New.
4270 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
4272 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
4274 * cgraph.c (dump_graphviz): New function.
4275 * cgraph.h (dump_graphviz): New function.
4276 * symtab.c (dump_graphviz): New function.
4278 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
4280 * config/aarch64/aarch64-simd.md
4281 (*aarch64_simd_sra<mode>): New.
4282 * config/aarch64/iterators.md
4283 (SHIFTRT): New iterator.
4284 (sra_op): New attribute.
4286 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4288 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
4289 callee-saved regs R4->R10 in an interrupt function that calls another
4292 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
4294 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
4295 (_mm_blendv_epi8): New.
4297 2019-07-22 Richard Biener <rguenther@suse.de>
4299 PR tree-optimization/91221
4300 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
4301 restrict partial-def handling of empty constructors and
4302 memset to refs with known offset.
4304 2019-07-22 Jan Beulich <jbeulich@suse.com>
4306 * config/i386/sse.md (ternlogsuffix): New.
4307 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
4309 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
4311 2019-07-22 Martin Liska <mliska@suse.cz>
4313 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
4315 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
4317 2019-07-22 Martin Liska <mliska@suse.cz>
4319 * lto-section-in.c (lto_get_section_data):
4320 Use new function get_compression.
4321 * lto-streamer-out.c (produce_lto_section): Use
4322 set_compression to encode compression algorithm.
4323 * lto-streamer.h (struct lto_section): Do not
4324 use bitfields in the format.
4326 2019-07-22 Martin Liska <mliska@suse.cz>
4329 * opts-common.c (decode_cmdline_option): Decode
4330 argument of -Werror and check it for a wrong language.
4331 * opts-global.c (complain_wrong_lang): Remove such case.
4333 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
4335 * config/arc/arc.c (prepare_move_operands): Always use an
4336 intermediate register when storing a TLS symbols.
4338 2019-07-22 Stafford Horne <shorne@gmail.com>
4340 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
4343 2019-07-22 Stafford Horne <shorne@gmail.com>
4345 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
4346 and munordered-float validations.
4347 * config/or1k/constraints.md (d): New register constraint.
4348 * config/or1k/predicates.md (fp_comparison_operator): New.
4349 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
4351 (or1k_expand_compare): Normalize unordered comparisons.
4352 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
4353 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
4354 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
4355 * config/or1k/or1k.md (type): Add fpu.
4356 (fpu): New instruction reservation.
4357 (F, f, fr, fi, FI, FOP, fop): New.
4358 (<fop><F:mode>3): New ALU instruction definition.
4359 (float<fi><F:mode>2): New conversion instruction definition.
4360 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
4361 (fpcmpcc): New code iterator.
4362 (*sf_fp_insn): New instruction definition.
4363 (cstore<F:mode>4): New expand definition.
4364 (cbranch<F:mode>4): New expand definition.
4365 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
4366 munordered-float): New options.
4367 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
4370 2019-07-22 Stafford Horne <shorne@gmail.com>
4372 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
4373 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
4374 documenation to be more clear.
4375 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
4377 * config/or1k/or1k.opt (mrori): New option.
4378 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
4379 msfimm, mshftimm): Rewrite documentation to be more clear.
4380 * config/or1k/or1k.md (insn_support): Add ror and rori.
4381 (enabled): Add conditions for ror and rori.
4382 (rotrsi3): Replace condition for shftimm with ror and rori.
4384 2019-07-22 Stafford Horne <shorne@gmail.com>
4387 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
4388 (extend<mode>si2): Update predicate.
4389 * config/or1k/predicates.md (volatile_mem_operand): New.
4390 (reg_or_mem_operand): New.
4392 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
4394 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
4395 * config/rs6000/rs6000-call.c: ... to here.
4397 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4399 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
4402 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4404 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
4406 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4408 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
4410 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4412 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
4413 (any_memory_operand): New predicate.
4414 (reg_or_mem_operand): Use it.
4416 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4419 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
4421 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
4423 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
4424 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
4426 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4428 * tree.def (OMP_LOOP): New tree code.
4429 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
4430 (enum omp_clause_bind_kind): New enum.
4431 (struct tree_omp_clause): Add subcode.bind_kind.
4432 * tree.h (OMP_LOOP_CHECK): Rename to ...
4433 (OMP_LOOPING_CHECK): ... this.
4434 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
4435 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
4436 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
4437 (OMP_CLAUSE_BIND_KIND): Define.
4438 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4439 bind clause entries.
4440 (walk_tree_1): Handle OMP_CLAUSE_BIND.
4441 * tree-pretty-print.c (dump_omp_clause): Likewise.
4442 (dump_generic_node): Handle OMP_LOOP.
4443 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
4444 (in_omp_construct): New variable.
4445 (is_gimple_stmt): Handle OMP_LOOP.
4446 (gimplify_scan_omp_clauses): For lastprivate don't set
4447 check_non_private if code == OMP_LOOP. For reduction clause
4448 on OMP_LOOP combined with parallel or teams propagate as shared
4449 on the combined construct. Handle OMP_CLAUSE_BIND.
4450 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
4451 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
4452 for constructs from a loop construct to gimplify_scan_omp_clauses.
4453 Don't predetermine iterator linear on OMP_SIMD from loop construct.
4454 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
4455 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
4456 to match the implicit ORT_TARGET construct around whole body.
4457 Temporarily clear in_omp_construct when processing body.
4458 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
4459 etc. temporarily set in_omp_construct when processing body.
4460 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
4461 * omp-low.c (struct omp_context): Add loop_p.
4462 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
4463 in that the original var might be private.
4464 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
4465 (check_omp_nesting_restrictions): Adjust nesting restrictions for
4466 addition of loop construct.
4467 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
4469 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
4470 lastprivate non-addressable iterator of a collapse(1) simd.
4472 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
4474 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
4477 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
4479 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
4480 refer to default conditions. Warn for the 'y' spec which is ignored
4483 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
4485 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
4486 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4487 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4488 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4489 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4490 init_cumulative_args, rs6000_promote_function_mode,
4491 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4492 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4493 rs6000_function_arg_boundary, rs6000_parm_offset,
4494 rs6000_parm_start, rs6000_arg_size,
4495 rs6000_darwin64_record_arg_advance_flush,
4496 rs6000_darwin64_record_arg_advance_recurse,
4497 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4498 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4499 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4500 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4501 rs6000_finish_function_arg, rs6000_function_arg,
4502 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4503 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4504 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4505 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4506 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4507 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4508 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4509 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4510 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4511 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4512 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4513 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4514 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4515 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4516 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4517 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4518 get_element_number, altivec_expand_vec_set_builtin,
4519 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4520 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4521 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4522 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4523 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4524 rs6000_expand_builtin, rs6000_vector_type,
4525 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4526 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4527 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
4529 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
4530 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4531 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4532 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4533 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4534 init_cumulative_args, rs6000_promote_function_mode,
4535 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4536 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4537 rs6000_function_arg_boundary, rs6000_parm_offset,
4538 rs6000_parm_start, rs6000_arg_size,
4539 rs6000_darwin64_record_arg_advance_flush,
4540 rs6000_darwin64_record_arg_advance_recurse,
4541 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4542 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4543 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4544 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4545 rs6000_finish_function_arg, rs6000_function_arg,
4546 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4547 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4548 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4549 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4550 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4551 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4552 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4553 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4554 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4555 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4556 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4557 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4558 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4559 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4560 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4561 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4562 get_element_number, altivec_expand_vec_set_builtin,
4563 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4564 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4565 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4566 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4567 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4568 rs6000_expand_builtin, rs6000_vector_type,
4569 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4570 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4571 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
4572 to here from rs6000.c.
4573 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
4574 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
4575 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
4576 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
4577 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
4578 rs6000_return_in_memory, rs6000_return_in_msb,
4579 rs6000_pass_by_reference, setup_incoming_varargs,
4580 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
4581 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
4582 rs6000_function_arg_padding, rs6000_function_arg,
4583 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
4584 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
4585 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
4586 rs6000_passes_long_double, rs6000_passes_vector,
4587 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
4588 altivec_builtin_mask_for_load) Add declarations.
4589 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
4590 * config/config.gcc: Add new source file rs6000-call.c to garbage
4591 collector and extra_objs.
4593 2019-07-19 Jeff Law <law@redhat.com>
4595 PR tree-optimization/86061
4596 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
4597 strncpy. Drop some trivial dead code.
4598 (maybe_trim_memstar_call): Handle strncpy.
4600 2019-07-19 Richard Biener <rguenther@suse.de>
4602 PR tree-optimization/91211
4603 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
4604 memset encoding size.
4606 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
4609 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
4611 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
4614 * ipa-inline.c (recursive_inlining): Fix limits check.
4616 2019-07-19 Richard Biener <rguenther@suse.de>
4618 PR tree-optimization/91200
4619 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
4620 no PHI nodes in middle-bb.
4622 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
4624 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
4626 * config/aarch64/aarch64-option-extensions.def: Likewise.
4628 2019-07-19 Jakub Jelinek <jakub@redhat.com>
4631 * function.c (insert_temp_slot_address): Store into the hash table
4632 a copy of address to avoid RTL sharing issues.
4634 2019-07-19 Richard Biener <rguenther@suse.de>
4636 PR tree-optimization/91207
4638 2019-07-17 Richard Biener <rguenther@suse.de>
4640 PR tree-optimization/91178
4641 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4642 loads with a gap larger than the vector size always use
4644 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4645 avoid loading vectors that are only contained in the gap
4646 and thus are not needed.
4648 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4650 * config/i386/i386.md (*addqi_2_slp): Remove.
4651 (*<code>qi_2_slp): Ditto.
4653 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
4655 * config/rs6000/predicates.md (prefixed_mem_operand): Call
4656 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
4657 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
4658 Rename function from rs6000_prefixed_address.
4659 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4661 (TARGET_TOC): Likewise.
4662 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4664 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4666 (TARGET_TOC): Likewise.
4667 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4669 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4671 (TARGET_TOC): Likewise.
4672 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4673 check to require -mcmodel=medium for pc-relative addressing.
4674 (create_TOC_reference): Add assertion for TARGET_TOC.
4675 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
4677 (rs6000_emit_move): Likewise.
4678 (TOC_alias_set): Rename TOC alias set static variable from 'set'
4680 (get_TOC_alias_set): Likewise.
4681 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
4683 (rs6000_can_eliminate): Likewise.
4684 (rs6000_prefixed_address_mode_p): Rename function from
4685 rs6000_prefixed_address.
4686 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
4687 TARGET_HAS_TOC and not pc-relative.
4688 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
4689 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4691 (TARGET_TOC): Likewise.
4692 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4695 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4698 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
4699 for operand 0. Do not use (match_dup) to match operand 1 with
4700 operand 0. Add check in insn constraint that either input operand
4701 matches operand 0. Use SWI12 mode iterator to also handle
4703 (*and<mode>_1_slp): Ditto.
4704 (*<code>qi_1_slp): Ditto.
4705 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
4706 Do not use (match_dup) to match operand 1 with operand 0. Add
4707 check in insn constraint that operand 1 matches operand 0.
4708 Use SWI12 mode iterator to also handle HImode operands.
4709 (*ashl<mode>3_1_slp): Ditto.
4710 (*<shift_insn><mode>3_1_slp): Ditto.
4711 (*<rotate_insn><mode>3_1_slp): Ditto.
4713 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4715 * config/arm/arm-builtins.c
4716 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
4717 (arm_expand_unop_builtin): Likewise.
4718 * config/arm/crypto.md
4719 (crypto_sha1h): Convert from define_insn to define_expand.
4720 (crypto_<crypto_pattern>): Likewise.
4721 (crypto_sha1h_lb): New define_insn.
4722 (crypto_<crypto_pattern>_lb): Likewise.
4724 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4727 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
4728 (vsha1cq_u32): Likewise.
4729 (vsha1pq_u32): Likewise.
4730 (vsha1mq_u32): Likewise.
4731 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
4733 (crypto_sha1c): Correct vec select.
4734 (crypto_sha1m): Likewise.
4735 (crypto_sha1p): Likewise.
4737 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
4739 * config/arm/predicates.md (arm_borrow_operation): New predicate.
4740 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
4741 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
4742 (subdi_zesidi_zesidi): Likewise.
4743 (negdi2_compare, negdi2_insn): Likewise.
4744 (negdi_extensidi): Likewise.
4745 (negdi_zero_extendsidi): Likewise.
4746 (arm_cmpdi_insn): Likewise.
4747 (subsi3_carryin): Use arm_borrow_operation.
4748 (subsi3_carryin_const): Likewise.
4749 (subsi3_carryin_const0): Likewise.
4750 (subsi3_carryin_compare): Likewise.
4751 (subsi3_carryin_compare_const): Likewise.
4752 (subsi3_carryin_compare_const0): Likewise.
4753 (subsi3_carryin_shift): Likewise.
4754 (rsbsi3_carryin_shift): Likewise.
4755 (negsi2_carryin_compare): Likewise.
4757 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
4759 PR tree-optimization/91137
4760 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
4761 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
4762 Init, use and fini the above new field.
4763 (determine_base_object_1): New function.
4764 (determine_base_object): Reimplement using walk_tree.
4766 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
4768 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
4769 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
4770 CLEANUP_FORCE_FAST_DCE is set.
4771 * ifcvt.c (rest_of_handle_if_conversion): Pass
4772 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
4773 if-conversion succeeded.
4775 2019-07-18 Richard Biener <rguenther@suse.de>
4777 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
4778 branches to make code less indented.
4780 2019-07-17 Alexandre Oliva <oliva@adacore.com>
4783 * attribs.c (decls_mismatched_attributes): Simplify the logic
4784 that avoids duplicates and false positives.
4786 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
4788 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
4789 data into data section when generating PIC code.
4790 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
4791 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
4792 generating code for SOM targets earlier than HP-UX 11. Otherwise,
4793 return 2 for SOM and 0 for other targets.
4795 2019-07-17 Jeff Law <law@redhat.com>
4797 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
4798 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
4799 avoid unexpected switch statement fallthru.
4801 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4803 * config/i386/i386.md (*add<dwi>3_doubleword):
4804 Remove redundant constraints.
4805 (*add<mode>_1): Ditto.
4808 (*addqi_1_slp): Ditto.
4809 (*add<mode>_2): Ditto.
4810 (*addv<mode>4): Ditto.
4811 (*sub<dwi>3_doubleword): Ditto.
4812 (*sub<mode>_1): Ditto.
4813 (*subqi_1_slp): Ditto.
4814 (*sub<mode>_2): Ditto.
4815 (*subv<mode>4): Ditto.
4816 (*sub<mode>_3): Ditto.
4817 (@add<mode>3_carry): Ditto.
4818 (@sub<mode>3_carry): Ditto.
4819 (*add<mode>3_cc_overflow_1): Ditto.
4820 (*add<mode>3_zext_cc_overflow_2): Ditto.
4822 (*and<mode>_1): Ditto.
4824 (*andqi_1_slp): Ditto.
4826 (*andqi_2_maybe_si): Ditto.
4827 (*and<mode>_2): Ditto.
4828 (*andqi_2_slp): Ditto.
4829 (*<code><mode>_1): Ditto.
4830 (*<code>qi_1): Ditto.
4831 (*<code>qi_1_slp): Ditto.
4832 (*<code><mode>_2): Ditto.
4833 (*<code>qi_2_slp): Ditto.
4835 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
4837 * alias.c (record_component_aliases): Do not simplify pointed-to
4840 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4842 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
4843 partial reg stall on alternative 2.
4845 2019-07-17 Richard Biener <rguenther@suse.de>
4847 PR tree-optimization/91178
4848 * tree-ssa.c (release_defs_bitset): Iterate from higher to
4849 lower SSA names to avoid quadratic behavior in the common case.
4850 * tree-data-ref.c (split_constant_offset): Add limit argument
4851 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4852 (split_constant_offset_1): Add limit argument and use it to
4853 limit SSA def walking. Optimize the common plus/minus case.
4855 2019-07-17 Richard Biener <rguenther@suse.de>
4857 PR tree-optimization/91178
4858 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4859 loads with a gap larger than the vector size always use
4861 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4862 avoid loading vectors that are only contained in the gap
4863 and thus are not needed.
4865 2019-07-17 Richard Biener <rguenther@suse.de>
4867 PR tree-optimization/91180
4868 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
4869 computation for memset partial defs.
4871 2019-07-17 Jakub Jelinek <jakub@redhat.com>
4873 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
4874 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
4875 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
4876 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
4877 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
4878 * omp-grid.c (grid_process_grid_body,
4879 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
4880 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
4881 == GF_OMP_FOR_KIND_SIMD.
4882 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
4883 check_omp_nesting_restrictions, scan_omp_1_stmt,
4884 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
4885 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
4886 omp_find_scan): Likewise.
4887 * omp-expand.c (expand_omp_for): Likewise.
4888 * omp-general.c (omp_extract_for_data): Likewise.
4890 PR tree-optimization/91157
4891 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
4892 a vector boolean with scalar mode.
4893 (expand_vector_condition): Handle first operand being a vector boolean
4895 (expand_vector_operations_1): For comparisons, don't bail out early
4896 if the return type is vector boolean with scalar mode, but comparison
4897 operand type is not.
4899 2019-07-17 Richard Biener <rguenther@suse.de>
4901 PR tree-optimization/91181
4902 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
4905 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
4907 * config/i386/i386.md (*testdi_1): Match CCZmode for
4908 constants that might have the SImode sign bit set.
4909 (*testqi_1_maybe_si): Remove "!" constraint modifier.
4910 Use correct constraints for pentium pairing.
4911 (*test<mode>_1): Ditto.
4913 2019-07-16 Jeff Law <law@redhat.com>
4915 PR rtl-optimization/91173
4916 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
4917 SSA_NAME with a constant value, fold its value into the offset
4918 and clear the base before calling gen_addr_rtx.
4920 2019-07-16 Jakub Jelinek <jakub@redhat.com>
4922 PR rtl-optimization/91164
4923 * dse.c (rest_of_handle_dse): If dead edges have been purged,
4924 invalidate dominance info.
4926 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4928 * read-md.h (md_reader::record_potential_iterator_use): Add a
4929 file_location parameter.
4930 * read-rtl.c (attribute_use::loc): New field.
4931 (map_attr_string): Take a file_location parameter. Report cases
4932 in which attributes map to multiple distinct values.
4933 (apply_attribute_uses): Update call accordingly.
4934 (md_reader::handle_overloaded_name): Likewise.
4935 (md_reader::apply_iterator_to_string): Likewise. Skip empty
4937 (record_attribute_use): Take a file_location parameter.
4938 Initialize attribute_use::loc.
4939 (md_reader::record_potential_iterator_use): Take a file_location
4940 parameter. Update call to record_attribute_use.
4941 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
4942 (rtx_reader::read_rtx_code): Likewise.
4943 (rtx_reader::read_rtx_operand): Likewise. Record a location
4944 for implicitly-expanded empty strings.
4946 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4948 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
4949 Use file_location instead of separate fields.
4950 (md_reader::set_md_ptr_loc): Take a file_location instead of a
4951 separate filename and line number.
4952 * read-md.c (ptr_loc): As above.
4953 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
4954 (md_reader::fprint_md_ptr_loc): Likewise.
4955 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
4956 instead of a separate filename and line number.
4957 (md_reader::read_string): Update call accordingly.
4959 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4961 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
4962 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
4963 leaving the choice between SFDF and P implicit.
4964 (*mov<mode>_update2): Likewise.
4965 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
4966 rather than leaving the choice betweem IBM128 and GPR implicit.
4967 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
4968 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
4970 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
4971 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
4972 * config/rs6000/vsx.md
4973 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
4974 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
4975 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
4976 and VSX_EXTRACT_I implicit.
4978 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4980 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
4981 Explicitly use <MOVEP1:MODE> for the mode attribute.
4983 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
4986 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
4988 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
4991 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
4994 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
4996 * config/i386/i386.md (@test<mode>_ccno_1):
4997 Rename from test<mode>_ccno_1.
4998 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
4999 (*testqi_1_maybe_si): Remove modrm attribute.
5000 (*test<mode>_1): Ditto.
5001 * config/i386/i386-expand.c (ix86_split_idivmod): Use
5002 gen_test_ccno_1 and gen_extend_insn.
5004 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
5006 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
5009 2019-07-15 Richard Biener <rguenther@suse.de>
5012 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
5013 node make sure to replace all uses with something valid.
5015 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
5017 PR tree-optimization/88497
5018 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
5019 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
5020 function undistribute_bitref_for_vector.
5021 (undistribute_bitref_for_vector): New function.
5022 (cleanup_vinfo_map): Likewise.
5023 (sort_by_mach_mode): Likewise.
5025 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
5027 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
5028 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
5029 and testdi_ccno_1 using SWI48 mode attribute.
5030 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
5031 x86_64_szext_general_operand.
5032 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
5033 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
5034 instead of genera_operand mode attribute.
5036 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
5038 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
5039 fopen and fclose to their respective types.
5040 (DotFn.invoke): Ditto.
5042 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
5044 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
5045 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
5046 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
5047 (array_index_predicate): Remove.
5048 (analyze_function_body): Account cost for variable ofsetted array
5050 (estimate_node_size_and_time): Do not compute array index hint.
5051 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
5052 (inline_read_section): Do not read array index hint.
5053 (ipa_fn_summary_write): Do not write array index hint.
5054 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
5055 * ipa-cp.c (hint_time_bonus): Remove.
5056 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
5057 (ipa_fnsummary): Remove array_index.
5058 * ipa-inline.c (want_inline_small_function_p): Do not use
5060 (edge_badness): Likewise.
5061 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
5063 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
5066 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
5067 superfluous "builtin function" phrasing.
5069 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
5071 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
5073 (aliasing_component_refs_walk): Break out from ...
5074 (aliasing_component_refs_p): ... here.
5076 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
5079 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
5080 "builtin function" phrasing.
5082 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5085 * recog.h (temporary_volatile_ok): New class.
5086 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
5087 volatile_ok temporarily to true using temporary_volatile_ok.
5088 * expr.c (emit_block_move_via_cpymem): Likewise.
5089 * optabs.c (maybe_legitimize_operand): Likewise.
5091 2019-07-13 Jakub Jelinek <jakub@redhat.com>
5093 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
5094 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
5095 uses inside of order(concurrent) constructs.
5096 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
5097 OMP_CLAUSE_ORDER is seen.
5098 * omp-low.c (struct omp_context): Add order_concurrent member.
5099 (scan_sharing_clauses): Set ctx->order_concurrent if
5100 OMP_CLAUSE_ORDER is seen.
5101 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
5102 of simd order(concurrent). Diagnose constructs not allowed inside of
5103 for order(concurrent).
5104 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
5105 complaining about static double setjmp (double); or class static
5106 methods or non-global namespace setjmps.
5107 (omp_runtime_api_call): New function.
5108 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
5109 order(concurrent) loops.
5111 2019-07-12 Martin Sebor <msebor@redhat.com>
5113 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
5114 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
5115 * tree-vrp.c (vrp_prop::check_mem_ref): Use
5116 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
5118 2019-07-12 Jan Hubicka <jh@suse.cz>
5120 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
5121 (indirect_refs_may_alias_p): ... here.
5122 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
5123 mem refs in the access paths.
5125 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
5127 PR tree-optimization/89430
5128 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
5129 store elimination for local variable without address escape.
5131 2019-07-12 Jeff Law <law@redhat.com>
5133 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
5134 for the ".far" section.
5136 2019-07-12 Richard Biener <rguenther@suse.de>
5138 PR tree-optimization/91145
5139 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
5142 2019-07-12 Alexandre Oliva <oliva@adacore.com>
5144 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
5145 rather than this_state as the lowering context for the ELSE
5146 seq in a GIMPLE_EH_ELSE.
5148 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5150 * vector-builder.h (vector_builder::elt): Allow already-supplied
5151 elements to be read back before building is complete.
5153 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
5155 PR rtl-optimization/91136
5156 * df-core.c (ACCESSING REFS): Fix typos in comment.
5157 * resource.c (mark_target_live_reg): Add artificial defs that occur at
5158 the beginning of the block to the initial set of live registers.
5160 2019-07-12 Richard Biener <rguenther@suse.de>
5162 * fold-const.h (get_array_ctor_element_at_index): Adjust.
5163 * fold-const.c (get_array_ctor_element_at_index): Add
5164 ctor_idx output parameter informing the caller where in
5165 the constructor the element was (not) found. Add early exit
5166 for when the ctor is sorted.
5167 * gimple-fold.c (fold_array_ctor_reference): Support constant
5168 folding across multiple array elements.
5170 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
5172 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
5173 doesn't have location, set the current location to the function's end.
5175 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5177 * config/aarch64/aarch64.md (*compare_condjump<mode>)
5178 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
5179 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
5180 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
5181 * config/aarch64/aarch64-simd.md
5182 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
5183 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
5184 * config/aarch64/aarch64-sve.md
5185 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
5186 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
5188 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5190 * doc/md.texi: Document that @ patterns can have different
5191 numbers of operands.
5192 * genemit.c (handle_overloaded_gen): Handle this case.
5193 * genopinit.c (handle_overloaded_gen): Likewise.
5194 * gensupport.c (replace_operands_with_dups): Iterate over
5195 the new rtx's format rather than the old one's.
5197 2019-07-12 Jakub Jelinek <jakub@redhat.com>
5199 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
5200 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
5201 order clause entries.
5202 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
5203 * tree-pretty-print.c (dump_omp_clause): Likewise.
5204 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
5206 * omp-low.c (scan_sharing_clauses): Likewise.
5207 * tree-nested.c (convert_nonlocal_omp_clauses,
5208 convert_local_omp_clauses): Likewise.
5210 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
5212 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
5213 fallthrough target of current basic block isn't the placed
5216 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
5219 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
5220 (_mm512_storeu_epi64): Likewise.
5221 (_mm512_loadu_epi32): Likewise.
5222 (_mm512_storeu_epi32): Likewise.
5223 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
5224 (_mm_storeu_epi64): Likewise.
5225 (_mm256_storeu_epi32): Likewise.
5226 (_mm_storeu_epi32): Likewise.
5228 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
5230 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
5232 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
5234 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
5237 2019-07-11 Jakub Jelinek <jakub@redhat.com>
5240 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
5241 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
5242 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
5243 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
5244 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
5245 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
5247 (ufix_truncv2dfv2si2<mask_name>): Change into ...
5248 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
5249 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
5251 (sse2_cvttpd2dq<mask_name>): Change into ...
5252 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
5253 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
5254 (*sse2_cvtpd2dq<mask_name>): Change into ...
5255 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
5256 Add "C" constraint to const0_operand.
5257 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
5258 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
5262 * config/i386/i386-builtin-types.def
5263 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
5264 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
5265 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
5266 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
5267 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
5268 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
5269 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
5270 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
5271 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
5272 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
5273 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
5274 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
5275 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
5276 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
5277 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
5278 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
5279 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
5280 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
5281 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
5282 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
5283 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
5284 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
5285 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
5286 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
5287 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
5288 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
5289 __builtin_ia32_vpdpbusd_v4si_maskz,
5290 __builtin_ia32_vpdpbusds_v16si_mask,
5291 __builtin_ia32_vpdpbusds_v16si_maskz,
5292 __builtin_ia32_vpdpbusds_v8si_mask,
5293 __builtin_ia32_vpdpbusds_v8si_maskz,
5294 __builtin_ia32_vpdpbusds_v4si_mask,
5295 __builtin_ia32_vpdpbusds_v4si_maskz,
5296 __builtin_ia32_vpdpwssd_v16si_mask,
5297 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
5298 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
5299 __builtin_ia32_vpdpwssd_v4si_maskz,
5300 __builtin_ia32_vpdpwssds_v16si_mask,
5301 __builtin_ia32_vpdpwssds_v16si_maskz,
5302 __builtin_ia32_vpdpwssds_v8si_mask,
5303 __builtin_ia32_vpdpwssds_v8si_maskz,
5304 __builtin_ia32_vpdpwssds_v4si_mask,
5305 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
5306 suffixed types rather than *_INT.
5307 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
5308 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
5309 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
5310 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
5311 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
5312 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
5314 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
5316 * tree-vrp.c (intersect_ranges): If we know the intersection is
5317 empty, there is no need to conservatively add anything else to
5320 2019-07-11 Richard Biener <rguenther@suse.de>
5323 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
5324 when the object is volatile and we have not cleared it even though
5325 there are no nonzero elements.
5327 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
5329 * config/rs6000/predicates.md (cint34_operand): Update
5330 SIGNED_34BIT_OFFSET_P call.
5331 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
5332 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
5333 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
5334 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
5335 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
5337 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
5338 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
5339 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
5340 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
5341 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
5343 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
5345 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
5346 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
5347 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
5348 (DEF_MIN_OSX_VERSION): New.
5350 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5352 * fold-const.c (fold_relational_const): Fix folding of
5353 vector-to-scalar NE_EXPRs.
5354 (test_vector_folding): Add more tests.
5356 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5359 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
5360 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
5361 (vec_setv2di_internal): Reexpress as...
5362 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
5363 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
5364 rather than gen_neon_vset_lane<mode>.
5366 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
5369 * lra-constraints.c (process_alt_operands): Don't match user
5370 defined regs only if they are early clobbers.
5372 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
5374 * wide-int.h (wi::lshift): Reject negative values for the fast path.
5376 2019-07-10 Richard Biener <rguenther@suse.de>
5378 PR tree-optimization/91126
5379 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
5380 native encoding offset for BYTES_BIG_ENDIAN.
5381 (vn_reference_lookup_3): Likewise.
5383 2019-07-10 Richard Biener <rguenther@suse.de>
5385 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
5386 LHS whenever possible.
5388 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
5390 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
5391 from ...; work also on duplicated types.
5392 (nonoverlapping_component_refs_since_match): ... here
5393 (ncr_type_uid): Break out from ...
5394 (ncr_compar): ... here; look for TYPE_UID of canonical type if
5396 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
5397 the types and nonoverlapping_component_refs_p_1 to disambiguate.
5399 2019-07-09 Martin Sebor <msebor@redhat.com>
5401 PR tree-optimization/90989
5402 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
5403 optimization to just single character stores.
5405 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
5407 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
5408 Swap operands only once.
5410 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
5412 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
5413 for both call instructions.
5415 2019-07-09 John Darrington <john@darrington.wattle.id.au>
5417 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
5418 rather than GET_MODE_BITSIZE to better handle partial integer modes.
5420 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
5422 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
5423 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
5424 function from rs6000-logue.c back to rs6000.c.
5425 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
5427 2019-07-09 Martin Sebor <msebor@redhat.com>
5430 * auto-profile.c: Change class-key of PODs to struct and others
5432 * basic-block.h: Same.
5433 * bitmap.c (bitmap_alloc): Same.
5435 * builtins.c (expand_builtin_prefetch): Same.
5436 (expand_builtin_interclass_mathfn): Same.
5437 (expand_builtin_strlen): Same.
5438 (expand_builtin_mempcpy_args): Same.
5439 (expand_cmpstr): Same.
5440 (expand_builtin___clear_cache): Same.
5441 (expand_ifn_atomic_bit_test_and): Same.
5442 (expand_builtin_thread_pointer): Same.
5443 (expand_builtin_set_thread_pointer): Same.
5444 * caller-save.c (setup_save_areas): Same.
5445 (replace_reg_with_saved_mem): Same.
5446 (insert_restore): Same.
5447 (insert_save): Same.
5448 (add_used_regs): Same.
5449 * cfg.c (get_bb_copy): Same.
5450 (set_loop_copy): Same.
5453 * cfgexpand.c (alloc_stack_frame_space): Same.
5454 (add_stack_var): Same.
5455 (add_stack_var_conflict): Same.
5456 (add_scope_conflicts_1): Same.
5457 (update_alias_info_with_stack_vars): Same.
5458 (expand_used_vars): Same.
5459 * cfghooks.c (redirect_edge_and_branch_force): Same.
5460 (delete_basic_block): Same.
5462 (make_forwarder_block): Same.
5463 (force_nonfallthru): Same.
5464 (duplicate_block): Same.
5465 (lv_flush_pending_stmts): Same.
5467 * cfgloop.c (flow_loops_cfg_dump): Same.
5468 (flow_loop_nested_p): Same.
5469 (superloop_at_depth): Same.
5470 (get_loop_latch_edges): Same.
5471 (flow_loop_dump): Same.
5472 (flow_loops_dump): Same.
5473 (flow_loops_free): Same.
5474 (flow_loop_nodes_find): Same.
5475 (establish_preds): Same.
5476 (flow_loop_tree_node_add): Same.
5477 (flow_loop_tree_node_remove): Same.
5478 (flow_loops_find): Same.
5479 (find_subloop_latch_edge_by_profile): Same.
5480 (find_subloop_latch_edge_by_ivs): Same.
5481 (mfb_redirect_edges_in_set): Same.
5482 (form_subloop): Same.
5483 (merge_latch_edges): Same.
5484 (disambiguate_multiple_latches): Same.
5485 (disambiguate_loops_with_multiple_latches): Same.
5486 (flow_bb_inside_loop_p): Same.
5488 (get_loop_body_with_size): Same.
5489 (get_loop_body): Same.
5490 (fill_sons_in_loop): Same.
5491 (get_loop_body_in_dom_order): Same.
5492 (get_loop_body_in_custom_order): Same.
5493 (release_recorded_exits): Same.
5494 (get_loop_exit_edges): Same.
5495 (num_loop_branches): Same.
5496 (remove_bb_from_loops): Same.
5497 (find_common_loop): Same.
5498 (delete_loop): Same.
5499 (cancel_loop): Same.
5500 (verify_loop_structure): Same.
5501 (loop_preheader_edge): Same.
5502 (loop_exit_edge_p): Same.
5503 (single_exit): Same.
5504 (loop_exits_to_bb_p): Same.
5505 (loop_exits_from_bb_p): Same.
5506 (get_loop_location): Same.
5507 (record_niter_bound): Same.
5508 (get_estimated_loop_iterations_int): Same.
5509 (max_stmt_executions_int): Same.
5510 (likely_max_stmt_executions_int): Same.
5511 (get_estimated_loop_iterations): Same.
5512 (get_max_loop_iterations): Same.
5513 (get_max_loop_iterations_int): Same.
5514 (get_likely_max_loop_iterations): Same.
5515 * cfgloop.h (simple_loop_desc): Same.
5519 (loop_iterator::next): Same.
5520 (loop_outermost): Same.
5521 * cfgloopanal.c (mark_irreducible_loops): Same.
5522 (num_loop_insns): Same.
5523 (average_num_loop_insns): Same.
5524 (expected_loop_iterations_unbounded): Same.
5525 (expected_loop_iterations): Same.
5526 (mark_loop_exit_edges): Same.
5527 (single_likely_exit): Same.
5528 * cfgloopmanip.c (fix_bb_placement): Same.
5529 (fix_bb_placements): Same.
5530 (remove_path): Same.
5531 (place_new_loop): Same.
5533 (scale_loop_frequencies): Same.
5534 (scale_loop_profile): Same.
5535 (create_empty_if_region_on_edge): Same.
5536 (create_empty_loop_on_edge): Same.
5539 (fix_loop_placements): Same.
5540 (copy_loop_info): Same.
5541 (duplicate_loop): Same.
5542 (duplicate_subloops): Same.
5543 (loop_redirect_edge): Same.
5544 (can_duplicate_loop_p): Same.
5545 (duplicate_loop_to_header_edge): Same.
5546 (mfb_keep_just): Same.
5547 (has_preds_from_loop): Same.
5548 (create_preheader): Same.
5549 (create_preheaders): Same.
5550 (lv_adjust_loop_entry_edge): Same.
5551 (loop_version): Same.
5552 * cfgloopmanip.h: Same.
5554 * cgraphbuild.c: Same.
5555 * combine.c (make_extraction): Same.
5556 * config/i386/i386-features.c: Same.
5557 * config/i386/i386-features.h: Same.
5558 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
5559 (ix86_emit_outlined_ms2sysv_restore): Same.
5560 (ix86_noce_conversion_profitable_p): Same.
5561 (ix86_init_cost): Same.
5562 (ix86_simd_clone_usable): Same.
5563 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
5565 * coretypes.h: Same.
5566 * data-streamer-in.c (string_for_index): Change class-key of PODs
5567 to struct and others to class.
5568 (streamer_read_indexed_string): Same.
5569 (streamer_read_string): Same.
5570 (bp_unpack_indexed_string): Same.
5571 (bp_unpack_string): Same.
5572 (streamer_read_uhwi): Same.
5573 (streamer_read_hwi): Same.
5574 (streamer_read_gcov_count): Same.
5575 (streamer_read_wide_int): Same.
5576 * data-streamer.h (streamer_write_bitpack): Same.
5577 (bp_unpack_value): Same.
5578 (streamer_write_char_stream): Same.
5579 (streamer_write_hwi_in_range): Same.
5580 (streamer_write_record_start): Same.
5581 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
5582 (add_cross_iteration_register_deps): Same.
5583 (build_intra_loop_deps): Same.
5584 * df-core.c (df_analyze): Same.
5585 (loop_post_order_compute): Same.
5586 (loop_inverted_post_order_compute): Same.
5587 * df-problems.c (df_rd_alloc): Same.
5588 (df_rd_simulate_one_insn): Same.
5589 (df_rd_local_compute): Same.
5590 (df_rd_init_solution): Same.
5591 (df_rd_confluence_n): Same.
5592 (df_rd_transfer_function): Same.
5594 (df_rd_dump_defs_set): Same.
5595 (df_rd_top_dump): Same.
5596 (df_lr_alloc): Same.
5597 (df_lr_reset): Same.
5598 (df_lr_local_compute): Same.
5600 (df_lr_confluence_n): Same.
5602 (df_lr_top_dump): Same.
5603 (df_lr_verify_transfer_functions): Same.
5604 (df_live_alloc): Same.
5605 (df_live_reset): Same.
5606 (df_live_init): Same.
5607 (df_live_confluence_n): Same.
5608 (df_live_finalize): Same.
5609 (df_live_free): Same.
5610 (df_live_top_dump): Same.
5611 (df_live_verify_transfer_functions): Same.
5612 (df_mir_alloc): Same.
5613 (df_mir_reset): Same.
5614 (df_mir_init): Same.
5615 (df_mir_confluence_n): Same.
5616 (df_mir_free): Same.
5617 (df_mir_top_dump): Same.
5618 (df_word_lr_alloc): Same.
5619 (df_word_lr_reset): Same.
5620 (df_word_lr_init): Same.
5621 (df_word_lr_confluence_n): Same.
5622 (df_word_lr_free): Same.
5623 (df_word_lr_top_dump): Same.
5624 (df_md_alloc): Same.
5625 (df_md_simulate_one_insn): Same.
5626 (df_md_reset): Same.
5629 (df_md_top_dump): Same.
5630 * df-scan.c (df_insn_delete): Same.
5631 (df_insn_rescan): Same.
5632 (df_notes_rescan): Same.
5633 (df_sort_and_compress_mws): Same.
5634 (df_install_mws): Same.
5635 (df_refs_add_to_chains): Same.
5636 (df_ref_create_structure): Same.
5637 (df_ref_record): Same.
5638 (df_def_record_1): Same.
5639 (df_find_hard_reg_defs): Same.
5640 (df_uses_record): Same.
5641 (df_get_conditional_uses): Same.
5642 (df_get_call_refs): Same.
5643 (df_recompute_luids): Same.
5644 (df_get_entry_block_def_set): Same.
5645 (df_entry_block_defs_collect): Same.
5646 (df_get_exit_block_use_set): Same.
5647 (df_exit_block_uses_collect): Same.
5648 (df_mws_verify): Same.
5649 (df_bb_verify): Same.
5650 * df.h (df_scan_get_bb_info): Same.
5651 * doc/tm.texi: Same.
5652 * dse.c (record_store): Same.
5654 * emit-rtl.c (const_fixed_hasher::equal): Same.
5655 (set_mem_attributes_minus_bitpos): Same.
5656 (change_address): Same.
5657 (adjust_address_1): Same.
5658 (offset_address): Same.
5660 * except.c (dw2_build_landing_pads): Same.
5661 (sjlj_emit_dispatch_table): Same.
5662 * explow.c (allocate_dynamic_stack_space): Same.
5663 (emit_stack_probe): Same.
5664 (probe_stack_range): Same.
5665 * expmed.c (store_bit_field_using_insv): Same.
5666 (store_bit_field_1): Same.
5667 (store_integral_bit_field): Same.
5668 (extract_bit_field_using_extv): Same.
5669 (extract_bit_field_1): Same.
5670 (emit_cstore): Same.
5671 * expr.c (emit_block_move_via_cpymem): Same.
5672 (expand_cmpstrn_or_cmpmem): Same.
5673 (set_storage_via_setmem): Same.
5674 (emit_single_push_insn_1): Same.
5675 (expand_assignment): Same.
5676 (store_constructor): Same.
5677 (expand_expr_real_2): Same.
5678 (expand_expr_real_1): Same.
5681 * function.c (try_fit_stack_local): Same.
5682 (assign_stack_local_1): Same.
5683 (assign_stack_local): Same.
5684 (cut_slot_from_list): Same.
5685 (insert_slot_to_list): Same.
5686 (max_slot_level): Same.
5687 (move_slot_to_level): Same.
5688 (temp_address_hasher::equal): Same.
5689 (remove_unused_temp_slot_addresses): Same.
5690 (assign_temp): Same.
5691 (combine_temp_slots): Same.
5692 (update_temp_slot_address): Same.
5693 (preserve_temp_slots): Same.
5696 * gcc-rich-location.h: Same.
5698 * genattrtab.c (check_attr_test): Same.
5699 (check_attr_value): Same.
5700 (convert_set_attr_alternative): Same.
5701 (convert_set_attr): Same.
5703 (copy_boolean): Same.
5704 (get_attr_value): Same.
5705 (expand_delays): Same.
5706 (make_length_attrs): Same.
5708 (make_alternative_compare): Same.
5709 (simplify_test_exp): Same.
5710 (tests_attr_p): Same.
5711 (get_attr_order): Same.
5712 (clear_struct_flag): Same.
5714 (compares_alternatives_p): Same.
5717 (find_attrs_to_cache): Same.
5718 (write_test_expr): Same.
5719 (walk_attr_value): Same.
5720 (write_attr_get): Same.
5721 (eliminate_known_true): Same.
5722 (write_insn_cases): Same.
5723 (write_attr_case): Same.
5724 (write_attr_valueq): Same.
5725 (write_attr_value): Same.
5726 (write_dummy_eligible_delay): Same.
5727 (next_comma_elt): Same.
5729 (make_internal_attr): Same.
5730 (copy_rtx_unchanging): Same.
5731 (gen_insn_reserv): Same.
5732 (check_tune_attr): Same.
5733 (make_automaton_attrs): Same.
5735 * genextract.c (gen_insn): Same.
5736 (VEC_char_to_string): Same.
5737 * genmatch.c (print_operand): Same.
5739 (parser::parse_operation): Same.
5740 (parser::parse_capture): Same.
5741 (parser::parse_c_expr): Same.
5742 (parser::parse_simplify): Same.
5744 * genoutput.c (output_operand_data): Same.
5745 (output_get_insn_name): Same.
5746 (compare_operands): Same.
5747 (place_operands): Same.
5748 (process_template): Same.
5749 (validate_insn_alternatives): Same.
5750 (validate_insn_operands): Same.
5752 (note_constraint): Same.
5753 * genpreds.c (write_one_predicate_function): Same.
5754 (add_constraint): Same.
5755 (process_define_register_constraint): Same.
5756 (write_lookup_constraint_1): Same.
5757 (write_lookup_constraint_array): Same.
5758 (write_insn_constraint_len): Same.
5759 (write_reg_class_for_constraint_1): Same.
5760 (write_constraint_satisfied_p_array): Same.
5761 * genrecog.c (optimize_subroutine_group): Same.
5762 * gensupport.c (process_define_predicate): Same.
5763 (queue_pattern): Same.
5764 (remove_from_queue): Same.
5765 (process_rtx): Same.
5766 (is_predicable): Same.
5767 (change_subst_attribute): Same.
5768 (subst_pattern_match): Same.
5769 (alter_constraints): Same.
5770 (alter_attrs_for_insn): Same.
5771 (shift_output_template): Same.
5772 (alter_output_for_subst_insn): Same.
5773 (process_one_cond_exec): Same.
5775 (process_define_cond_exec): Same.
5776 (mnemonic_htab_callback): Same.
5777 (gen_mnemonic_attr): Same.
5778 (read_md_rtx): Same.
5780 * gimple-loop-interchange.cc (dump_reduction): Same.
5781 (dump_induction): Same.
5782 (loop_cand::~loop_cand): Same.
5783 (free_data_refs_with_aux): Same.
5784 (tree_loop_interchange::interchange_loops): Same.
5785 (tree_loop_interchange::map_inductions_to_loop): Same.
5786 (tree_loop_interchange::move_code_to_inner_loop): Same.
5787 (compute_access_stride): Same.
5788 (compute_access_strides): Same.
5789 (proper_loop_form_for_interchange): Same.
5790 (tree_loop_interchange_compute_ddrs): Same.
5791 (prune_datarefs_not_in_loop): Same.
5792 (prepare_data_references): Same.
5793 (pass_linterchange::execute): Same.
5794 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
5795 (unroll_jam_possible_p): Same.
5797 (adjust_unroll_factor): Same.
5798 (tree_loop_unroll_and_jam): Same.
5799 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
5800 (loop_versioning::expensive_stmt_p): Same.
5801 (loop_versioning::version_for_unity): Same.
5802 (loop_versioning::dump_inner_likelihood): Same.
5803 (loop_versioning::find_per_loop_multiplication): Same.
5804 (loop_versioning::analyze_term_using_scevs): Same.
5805 (loop_versioning::record_address_fragment): Same.
5806 (loop_versioning::analyze_expr): Same.
5807 (loop_versioning::analyze_blocks): Same.
5808 (loop_versioning::prune_conditions): Same.
5809 (loop_versioning::merge_loop_info): Same.
5810 (loop_versioning::add_loop_to_queue): Same.
5811 (loop_versioning::decide_whether_loop_is_versionable): Same.
5812 (loop_versioning::make_versioning_decisions): Same.
5813 (loop_versioning::implement_versioning_decisions): Same.
5814 * gimple-ssa-evrp-analyze.c
5815 (evrp_range_analyzer::record_ranges_from_phis): Same.
5816 * gimple-ssa-store-merging.c (split_store::split_store): Same.
5817 (count_multiple_uses): Same.
5818 (split_group): Same.
5819 (imm_store_chain_info::output_merged_store): Same.
5820 (pass_store_merging::process_store): Same.
5821 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
5822 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
5824 (alloca_call_type): Same.
5825 (pass_walloca::execute): Same.
5826 * gimple-streamer-in.c (input_phi): Same.
5827 (input_gimple_stmt): Same.
5828 * gimple-streamer.h: Same.
5829 * godump.c (go_force_record_alignment): Same.
5830 (go_format_type): Same.
5831 (go_output_type): Same.
5832 (go_output_fndecl): Same.
5833 (go_output_typedef): Same.
5834 (keyword_hash_init): Same.
5835 (find_dummy_types): Same.
5836 * graph.c (draw_cfg_nodes_no_loops): Same.
5837 (draw_cfg_nodes_for_loop): Same.
5838 * hard-reg-set.h (hard_reg_set_iter_next): Same.
5840 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
5841 * hsa-dump.c (dump_hsa_cfun): Same.
5842 * hsa-gen.c (gen_function_def_parameters): Same.
5843 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
5844 * input.c (dump_line_table_statistics): Same.
5847 * internal-fn.c (get_multi_vector_move): Same.
5848 (expand_load_lanes_optab_fn): Same.
5849 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
5850 (expand_GOMP_SIMT_EXIT): Same.
5851 (expand_GOMP_SIMT_LAST_LANE): Same.
5852 (expand_GOMP_SIMT_ORDERED_PRED): Same.
5853 (expand_GOMP_SIMT_VOTE_ANY): Same.
5854 (expand_GOMP_SIMT_XCHG_BFLY): Same.
5855 (expand_GOMP_SIMT_XCHG_IDX): Same.
5856 (expand_addsub_overflow): Same.
5857 (expand_neg_overflow): Same.
5858 (expand_mul_overflow): Same.
5859 (expand_call_mem_ref): Same.
5860 (expand_mask_load_optab_fn): Same.
5861 (expand_scatter_store_optab_fn): Same.
5862 (expand_gather_load_optab_fn): Same.
5863 * ipa-cp.c (ipa_get_parm_lattices): Same.
5864 (print_all_lattices): Same.
5865 (ignore_edge_p): Same.
5866 (build_toporder_info): Same.
5867 (free_toporder_info): Same.
5868 (push_node_to_stack): Same.
5869 (ipcp_lattice<valtype>::set_contains_variable): Same.
5870 (set_agg_lats_to_bottom): Same.
5871 (ipcp_bits_lattice::meet_with): Same.
5872 (set_single_call_flag): Same.
5873 (initialize_node_lattices): Same.
5874 (ipa_get_jf_ancestor_result): Same.
5875 (ipcp_verify_propagated_values): Same.
5876 (propagate_scalar_across_jump_function): Same.
5877 (propagate_context_across_jump_function): Same.
5878 (propagate_bits_across_jump_function): Same.
5879 (ipa_vr_operation_and_type_effects): Same.
5880 (propagate_vr_across_jump_function): Same.
5881 (set_check_aggs_by_ref): Same.
5882 (set_chain_of_aglats_contains_variable): Same.
5883 (merge_aggregate_lattices): Same.
5884 (agg_pass_through_permissible_p): Same.
5885 (propagate_aggs_across_jump_function): Same.
5886 (call_passes_through_thunk_p): Same.
5887 (propagate_constants_across_call): Same.
5888 (devirtualization_time_bonus): Same.
5889 (good_cloning_opportunity_p): Same.
5890 (context_independent_aggregate_values): Same.
5891 (gather_context_independent_values): Same.
5892 (perform_estimation_of_a_value): Same.
5893 (estimate_local_effects): Same.
5894 (value_topo_info<valtype>::add_val): Same.
5895 (add_all_node_vals_to_toposort): Same.
5896 (value_topo_info<valtype>::propagate_effects): Same.
5897 (ipcp_propagate_stage): Same.
5898 (ipcp_discover_new_direct_edges): Same.
5899 (same_node_or_its_all_contexts_clone_p): Same.
5900 (cgraph_edge_brings_value_p): Same.
5901 (gather_edges_for_value): Same.
5902 (create_specialized_node): Same.
5903 (find_more_scalar_values_for_callers_subset): Same.
5904 (find_more_contexts_for_caller_subset): Same.
5905 (copy_plats_to_inter): Same.
5906 (intersect_aggregates_with_edge): Same.
5907 (find_aggregate_values_for_callers_subset): Same.
5908 (cgraph_edge_brings_all_agg_vals_for_node): Same.
5909 (decide_about_value): Same.
5910 (decide_whether_version_node): Same.
5911 (spread_undeadness): Same.
5912 (identify_dead_nodes): Same.
5913 (ipcp_store_vr_results): Same.
5914 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
5915 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
5916 (redirect_to_unreachable): Same.
5917 (edge_set_predicate): Same.
5918 (evaluate_conditions_for_known_args): Same.
5919 (evaluate_properties_for_edge): Same.
5920 (ipa_fn_summary_t::duplicate): Same.
5921 (ipa_call_summary_t::duplicate): Same.
5922 (dump_ipa_call_summary): Same.
5923 (ipa_dump_fn_summary): Same.
5924 (eliminated_by_inlining_prob): Same.
5925 (set_cond_stmt_execution_predicate): Same.
5926 (set_switch_stmt_execution_predicate): Same.
5927 (compute_bb_predicates): Same.
5928 (will_be_nonconstant_expr_predicate): Same.
5929 (phi_result_unknown_predicate): Same.
5930 (analyze_function_body): Same.
5931 (compute_fn_summary): Same.
5932 (estimate_edge_devirt_benefit): Same.
5933 (estimate_edge_size_and_time): Same.
5934 (estimate_calls_size_and_time): Same.
5935 (estimate_node_size_and_time): Same.
5936 (remap_edge_change_prob): Same.
5937 (remap_edge_summaries): Same.
5938 (ipa_merge_fn_summary_after_inlining): Same.
5939 (ipa_fn_summary_generate): Same.
5940 (inline_read_section): Same.
5941 (ipa_fn_summary_read): Same.
5942 (ipa_fn_summary_write): Same.
5943 * ipa-fnsummary.h: Same.
5944 * ipa-hsa.c (ipa_hsa_read_section): Same.
5945 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
5946 * ipa-icf.c (sem_function::param_used_p): Same.
5947 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
5948 * ipa-inline.c (edge_badness): Same.
5949 (inline_small_functions): Same.
5950 * ipa-polymorphic-call.c
5951 (ipa_polymorphic_call_context::stream_out): Same.
5952 * ipa-predicate.c (predicate::remap_after_duplication): Same.
5953 (predicate::remap_after_inlining): Same.
5954 (predicate::stream_out): Same.
5955 * ipa-predicate.h: Same.
5956 * ipa-profile.c (ipa_profile_read_summary): Same.
5957 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
5958 (count_formal_params): Same.
5959 (ipa_dump_param): Same.
5960 (ipa_alloc_node_params): Same.
5961 (ipa_print_node_jump_functions_for_edge): Same.
5962 (ipa_print_node_jump_functions): Same.
5963 (ipa_load_from_parm_agg): Same.
5964 (get_ancestor_addr_info): Same.
5965 (ipa_compute_jump_functions_for_edge): Same.
5966 (ipa_analyze_virtual_call_uses): Same.
5967 (ipa_analyze_stmt_uses): Same.
5968 (ipa_analyze_params_uses_in_bb): Same.
5969 (update_jump_functions_after_inlining): Same.
5970 (try_decrement_rdesc_refcount): Same.
5971 (ipa_impossible_devirt_target): Same.
5972 (update_indirect_edges_after_inlining): Same.
5973 (combine_controlled_uses_counters): Same.
5974 (ipa_edge_args_sum_t::duplicate): Same.
5975 (ipa_write_jump_function): Same.
5976 (ipa_write_indirect_edge_info): Same.
5977 (ipa_write_node_info): Same.
5978 (ipa_read_edge_info): Same.
5979 (ipa_prop_read_section): Same.
5980 (read_replacements_section): Same.
5981 * ipa-prop.h (ipa_get_param_count): Same.
5982 (ipa_get_param): Same.
5983 (ipa_get_type): Same.
5984 (ipa_get_param_move_cost): Same.
5985 (ipa_set_param_used): Same.
5986 (ipa_get_controlled_uses): Same.
5987 (ipa_set_controlled_uses): Same.
5988 (ipa_get_cs_argument_count): Same.
5989 * ipa-pure-const.c (analyze_function): Same.
5990 (pure_const_read_summary): Same.
5992 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
5993 * ipa-split.c (test_nonssa_use): Same.
5994 (dump_split_point): Same.
5995 (dominated_by_forbidden): Same.
5996 (split_part_set_ssa_name_p): Same.
5997 (find_split_points): Same.
5998 * ira-build.c (finish_loop_tree_nodes): Same.
5999 (low_pressure_loop_node_p): Same.
6000 * ira-color.c (ira_reuse_stack_slot): Same.
6002 * ira.c (setup_reg_equiv): Same.
6003 (print_insn_chain): Same.
6005 * loop-doloop.c (doloop_condition_get): Same.
6007 (record_reg_sets): Same.
6008 (doloop_optimize): Same.
6009 * loop-init.c (loop_optimizer_init): Same.
6010 (fix_loop_structure): Same.
6011 * loop-invariant.c (merge_identical_invariants): Same.
6012 (compute_always_reached): Same.
6014 (may_assign_reg_p): Same.
6015 (find_invariants_bb): Same.
6016 (find_invariants_body): Same.
6017 (replace_uses): Same.
6018 (can_move_invariant_reg): Same.
6019 (free_inv_motion_data): Same.
6020 (move_single_loop_invariants): Same.
6021 (change_pressure): Same.
6022 (mark_ref_regs): Same.
6023 (calculate_loop_reg_pressure): Same.
6024 * loop-iv.c (biv_entry_hasher::equal): Same.
6025 (iv_extend_to_rtx_code): Same.
6026 (check_iv_ref_table_size): Same.
6027 (clear_iv_info): Same.
6028 (latch_dominating_def): Same.
6029 (iv_get_reaching_def): Same.
6030 (iv_constant): Same.
6036 (get_biv_step): Same.
6038 (analyzed_for_bivness_p): Same.
6040 (iv_analyze_biv): Same.
6041 (iv_analyze_expr): Same.
6042 (iv_analyze_def): Same.
6043 (iv_analyze_op): Same.
6045 (iv_analyze_result): Same.
6047 (eliminate_implied_conditions): Same.
6048 (simplify_using_initial_values): Same.
6049 (shorten_into_mode): Same.
6050 (canonicalize_iv_subregs): Same.
6051 (determine_max_iter): Same.
6052 (check_simple_exit): Same.
6053 (find_simple_exit): Same.
6054 (get_simple_loop_desc): Same.
6055 * loop-unroll.c (report_unroll): Same.
6056 (decide_unrolling): Same.
6057 (unroll_loops): Same.
6058 (loop_exit_at_end_p): Same.
6059 (decide_unroll_constant_iterations): Same.
6060 (unroll_loop_constant_iterations): Same.
6061 (compare_and_jump_seq): Same.
6062 (unroll_loop_runtime_iterations): Same.
6063 (decide_unroll_stupid): Same.
6064 (unroll_loop_stupid): Same.
6065 (referenced_in_one_insn_in_loop_p): Same.
6066 (reset_debug_uses_in_loop): Same.
6067 (analyze_iv_to_split_insn): Same.
6068 * lra-eliminations.c (lra_debug_elim_table): Same.
6069 (setup_can_eliminate): Same.
6071 (lra_get_elimination_hard_regno): Same.
6072 (lra_eliminate_regs_1): Same.
6073 (eliminate_regs_in_insn): Same.
6074 (update_reg_eliminate): Same.
6075 (init_elimination): Same.
6076 (lra_eliminate): Same.
6078 * lra-lives.c (initiate_live_solver): Same.
6079 * lra-remat.c (create_remat_bb_data): Same.
6080 * lra-spills.c (lra_spill): Same.
6081 * lra.c (lra_set_insn_recog_data): Same.
6082 (lra_set_used_insn_alternative_by_uid): Same.
6083 (init_reg_info): Same.
6084 (expand_reg_info): Same.
6085 * lto-cgraph.c (output_symtab): Same.
6086 (read_identifier): Same.
6087 (get_alias_symbol): Same.
6089 (input_varpool_node): Same.
6092 (input_cgraph_1): Same.
6094 (input_symtab): Same.
6095 (input_offload_tables): Same.
6096 (output_cgraph_opt_summary): Same.
6097 (input_edge_opt_summary): Same.
6098 (input_cgraph_opt_section): Same.
6099 * lto-section-in.c (lto_free_raw_section_data): Same.
6100 (lto_create_simple_input_block): Same.
6101 (lto_free_function_in_decl_state_for_node): Same.
6102 * lto-streamer-in.c (lto_tag_check_set): Same.
6103 (lto_location_cache::revert_location_cache): Same.
6104 (lto_location_cache::input_location): Same.
6105 (lto_input_location): Same.
6106 (stream_input_location_now): Same.
6107 (lto_input_tree_ref): Same.
6108 (lto_input_eh_catch_list): Same.
6109 (input_eh_region): Same.
6110 (lto_init_eh): Same.
6111 (make_new_block): Same.
6113 (fixup_call_stmt_edges): Same.
6114 (input_struct_function_base): Same.
6115 (input_function): Same.
6116 (lto_read_body_or_constructor): Same.
6117 (lto_read_tree_1): Same.
6118 (lto_read_tree): Same.
6119 (lto_input_scc): Same.
6120 (lto_input_tree_1): Same.
6121 (lto_input_toplevel_asms): Same.
6122 (lto_input_mode_table): Same.
6123 (lto_reader_init): Same.
6124 (lto_data_in_create): Same.
6125 * lto-streamer-out.c (output_cfg): Same.
6126 * lto-streamer.h: Same.
6127 * modulo-sched.c (duplicate_insns_of_cycles): Same.
6128 (generate_prolog_epilog): Same.
6129 (mark_loop_unsched): Same.
6130 (dump_insn_location): Same.
6131 (loop_canon_p): Same.
6132 (sms_schedule): Same.
6133 * omp-expand.c (expand_omp_for_ordered_loops): Same.
6134 (expand_omp_for_generic): Same.
6135 (expand_omp_for_static_nochunk): Same.
6136 (expand_omp_for_static_chunk): Same.
6137 (expand_omp_simd): Same.
6138 (expand_omp_taskloop_for_inner): Same.
6139 (expand_oacc_for): Same.
6140 (expand_omp_atomic_pipeline): Same.
6141 (mark_loops_in_oacc_kernels_region): Same.
6142 * omp-offload.c (oacc_xform_loop): Same.
6143 * omp-simd-clone.c (simd_clone_adjust): Same.
6144 * optabs-query.c (get_traditional_extraction_insn): Same.
6145 * optabs.c (expand_vector_broadcast): Same.
6146 (expand_binop_directly): Same.
6147 (expand_twoval_unop): Same.
6148 (expand_twoval_binop): Same.
6149 (expand_unop_direct): Same.
6150 (emit_indirect_jump): Same.
6151 (emit_conditional_move): Same.
6152 (emit_conditional_neg_or_complement): Same.
6153 (emit_conditional_add): Same.
6154 (vector_compare_rtx): Same.
6155 (expand_vec_perm_1): Same.
6156 (expand_vec_perm_const): Same.
6157 (expand_vec_cond_expr): Same.
6158 (expand_vec_series_expr): Same.
6159 (maybe_emit_atomic_exchange): Same.
6160 (maybe_emit_sync_lock_test_and_set): Same.
6161 (expand_atomic_compare_and_swap): Same.
6162 (expand_atomic_load): Same.
6163 (expand_atomic_store): Same.
6164 (maybe_emit_op): Same.
6165 (valid_multiword_target_p): Same.
6166 (create_integer_operand): Same.
6167 (maybe_legitimize_operand_same_code): Same.
6168 (maybe_legitimize_operand): Same.
6169 (create_convert_operand_from_type): Same.
6170 (can_reuse_operands_p): Same.
6171 (maybe_legitimize_operands): Same.
6172 (maybe_gen_insn): Same.
6173 (maybe_expand_insn): Same.
6174 (maybe_expand_jump_insn): Same.
6175 (expand_insn): Same.
6176 * optabs.h (create_expand_operand): Same.
6177 (create_fixed_operand): Same.
6178 (create_output_operand): Same.
6179 (create_input_operand): Same.
6180 (create_convert_operand_to): Same.
6181 (create_convert_operand_from): Same.
6184 * predict.c (optimize_insn_for_speed_p): Same.
6185 (optimize_loop_for_size_p): Same.
6186 (optimize_loop_for_speed_p): Same.
6187 (optimize_loop_nest_for_speed_p): Same.
6188 (get_base_value): Same.
6189 (predicted_by_loop_heuristics_p): Same.
6190 (predict_extra_loop_exits): Same.
6191 (predict_loops): Same.
6192 (predict_paths_for_bb): Same.
6193 (predict_paths_leading_to): Same.
6194 (propagate_freq): Same.
6195 (pass_profile::execute): Same.
6197 * profile-count.c (profile_count::differs_from_p): Same.
6198 (profile_probability::differs_lot_from_p): Same.
6199 * profile-count.h: Same.
6200 * profile.c (branch_prob): Same.
6201 * regrename.c (free_chain_data): Same.
6202 (mark_conflict): Same.
6203 (create_new_chain): Same.
6204 (merge_overlapping_regs): Same.
6205 (init_rename_info): Same.
6206 (merge_chains): Same.
6207 (regrename_analyze): Same.
6208 (regrename_do_replace): Same.
6209 (scan_rtx_reg): Same.
6210 (record_out_operands): Same.
6211 (build_def_use): Same.
6212 * regrename.h: Same.
6214 * reload1.c (init_reload): Same.
6215 (maybe_fix_stack_asms): Same.
6216 (copy_reloads): Same.
6217 (count_pseudo): Same.
6218 (count_spilled_pseudo): Same.
6220 (find_reload_regs): Same.
6221 (select_reload_regs): Same.
6222 (spill_hard_reg): Same.
6223 (fixup_eh_region_note): Same.
6224 (set_reload_reg): Same.
6225 (allocate_reload_reg): Same.
6226 (compute_reload_subreg_offset): Same.
6227 (reload_adjust_reg_for_icode): Same.
6228 (emit_input_reload_insns): Same.
6229 (emit_output_reload_insns): Same.
6230 (do_input_reload): Same.
6231 (inherit_piecemeal_p): Same.
6233 * sanopt.c (maybe_get_dominating_check): Same.
6234 (maybe_optimize_ubsan_ptr_ifn): Same.
6235 (can_remove_asan_check): Same.
6236 (maybe_optimize_asan_check_ifn): Same.
6237 (sanopt_optimize_walker): Same.
6238 * sched-deps.c (add_dependence_list): Same.
6239 (chain_to_prev_insn): Same.
6240 (add_insn_mem_dependence): Same.
6241 (create_insn_reg_set): Same.
6242 (maybe_extend_reg_info_p): Same.
6243 (sched_analyze_reg): Same.
6244 (sched_analyze_1): Same.
6245 (get_implicit_reg_pending_clobbers): Same.
6246 (chain_to_prev_insn_p): Same.
6247 (deps_analyze_insn): Same.
6248 (deps_start_bb): Same.
6249 (sched_free_deps): Same.
6251 (init_deps_reg_last): Same.
6253 * sched-ebb.c: Same.
6254 * sched-int.h: Same.
6255 * sched-rgn.c (add_branch_dependences): Same.
6256 (concat_insn_mem_list): Same.
6258 (sched_rgn_compute_dependencies): Same.
6259 * sel-sched-ir.c (reset_target_context): Same.
6260 (copy_deps_context): Same.
6261 (init_id_from_df): Same.
6262 (has_dependence_p): Same.
6263 (change_loops_latches): Same.
6264 (bb_top_order_comparator): Same.
6265 (make_region_from_loop_preheader): Same.
6266 (sel_init_pipelining): Same.
6267 (get_loop_nest_for_rgn): Same.
6268 (make_regions_from_the_rest): Same.
6269 (sel_is_loop_preheader_p): Same.
6270 * sel-sched-ir.h (inner_loop_header_p): Same.
6271 (get_all_loop_exits): Same.
6273 * sese.c (sese_build_liveouts): Same.
6274 (sese_insert_phis_for_liveouts): Same.
6275 * sese.h (defined_in_sese_p): Same.
6276 * sreal.c (sreal::stream_out): Same.
6278 * streamer-hooks.h: Same.
6279 * target-globals.c (save_target_globals): Same.
6280 * target-globals.h: Same.
6283 * targhooks.c (default_has_ifunc_p): Same.
6284 (default_empty_mask_is_expensive): Same.
6285 (default_init_cost): Same.
6286 * targhooks.h: Same.
6288 * tree-affine.c (aff_combination_mult): Same.
6289 (aff_combination_expand): Same.
6290 (aff_combination_constant_multiple_p): Same.
6291 * tree-affine.h: Same.
6292 * tree-cfg.c (build_gimple_cfg): Same.
6293 (replace_loop_annotate_in_block): Same.
6294 (replace_uses_by): Same.
6296 (dump_cfg_stats): Same.
6297 (gimple_duplicate_sese_region): Same.
6298 (gimple_duplicate_sese_tail): Same.
6299 (move_block_to_fn): Same.
6300 (replace_block_vars_by_duplicates): Same.
6301 (move_sese_region_to_fn): Same.
6302 (print_loops_bb): Same.
6304 (print_loops): Same.
6306 (debug_loops): Same.
6308 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
6309 (chrec_fold_multiply_poly_poly): Same.
6310 (chrec_evaluate): Same.
6311 (chrec_component_in_loop_num): Same.
6312 (reset_evolution_in_loop): Same.
6313 (is_multivariate_chrec): Same.
6314 (chrec_contains_symbols): Same.
6315 (nb_vars_in_chrec): Same.
6316 (chrec_convert_1): Same.
6317 (chrec_convert_aggressive): Same.
6318 * tree-chrec.h: Same.
6319 * tree-core.h: Same.
6320 * tree-data-ref.c (dump_data_dependence_relation): Same.
6321 (canonicalize_base_object_address): Same.
6322 (data_ref_compare_tree): Same.
6323 (prune_runtime_alias_test_list): Same.
6324 (get_segment_min_max): Same.
6325 (create_intersect_range_checks): Same.
6326 (conflict_fn_no_dependence): Same.
6327 (object_address_invariant_in_loop_p): Same.
6328 (analyze_ziv_subscript): Same.
6329 (analyze_siv_subscript_cst_affine): Same.
6330 (analyze_miv_subscript): Same.
6331 (analyze_overlapping_iterations): Same.
6332 (build_classic_dist_vector_1): Same.
6333 (add_other_self_distances): Same.
6334 (same_access_functions): Same.
6335 (build_classic_dir_vector): Same.
6336 (subscript_dependence_tester_1): Same.
6337 (subscript_dependence_tester): Same.
6338 (access_functions_are_affine_or_constant_p): Same.
6339 (get_references_in_stmt): Same.
6340 (loop_nest_has_data_refs): Same.
6341 (graphite_find_data_references_in_stmt): Same.
6342 (find_data_references_in_bb): Same.
6343 (get_base_for_alignment): Same.
6344 (find_loop_nest_1): Same.
6345 (find_loop_nest): Same.
6346 * tree-data-ref.h (dr_alignment): Same.
6347 (ddr_dependence_level): Same.
6348 * tree-if-conv.c (fold_build_cond_expr): Same.
6349 (add_to_predicate_list): Same.
6350 (add_to_dst_predicate_list): Same.
6351 (phi_convertible_by_degenerating_args): Same.
6352 (idx_within_array_bound): Same.
6353 (all_preds_critical_p): Same.
6354 (pred_blocks_visited_p): Same.
6355 (predicate_bbs): Same.
6356 (build_region): Same.
6357 (if_convertible_loop_p_1): Same.
6358 (is_cond_scalar_reduction): Same.
6359 (predicate_scalar_phi): Same.
6360 (remove_conditions_and_labels): Same.
6361 (combine_blocks): Same.
6362 (version_loop_for_if_conversion): Same.
6363 (versionable_outer_loop_p): Same.
6364 (ifcvt_local_dce): Same.
6365 (tree_if_conversion): Same.
6366 (pass_if_conversion::gate): Same.
6367 * tree-if-conv.h: Same.
6368 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
6369 * tree-loop-distribution.c (bb_top_order_cmp): Same.
6371 (stmt_has_scalar_dependences_outside_loop): Same.
6372 (copy_loop_before): Same.
6373 (create_bb_after_loop): Same.
6374 (const_with_all_bytes_same): Same.
6375 (generate_memset_builtin): Same.
6376 (generate_memcpy_builtin): Same.
6377 (destroy_loop): Same.
6378 (build_rdg_partition_for_vertex): Same.
6379 (compute_access_range): Same.
6380 (data_ref_segment_size): Same.
6381 (latch_dominated_by_data_ref): Same.
6382 (compute_alias_check_pairs): Same.
6383 (fuse_memset_builtins): Same.
6384 (finalize_partitions): Same.
6385 (find_seed_stmts_for_distribution): Same.
6386 (prepare_perfect_loop_nest): Same.
6387 * tree-parloops.c (lambda_transform_legal_p): Same.
6388 (loop_parallel_p): Same.
6389 (reduc_stmt_res): Same.
6390 (add_field_for_name): Same.
6391 (create_call_for_reduction_1): Same.
6392 (replace_uses_in_bb_by): Same.
6393 (transform_to_exit_first_loop_alt): Same.
6394 (try_transform_to_exit_first_loop_alt): Same.
6395 (transform_to_exit_first_loop): Same.
6397 (gen_parallel_loop): Same.
6398 (gather_scalar_reductions): Same.
6399 (get_omp_data_i_param): Same.
6400 (try_create_reduction_list): Same.
6401 (oacc_entry_exit_single_gang): Same.
6402 (parallelize_loops): Same.
6403 * tree-pass.h: Same.
6404 * tree-predcom.c (determine_offset): Same.
6405 (last_always_executed_block): Same.
6406 (split_data_refs_to_components): Same.
6407 (suitable_component_p): Same.
6408 (valid_initializer_p): Same.
6409 (find_looparound_phi): Same.
6410 (insert_looparound_copy): Same.
6411 (add_looparound_copies): Same.
6412 (determine_roots_comp): Same.
6413 (predcom_tmp_var): Same.
6414 (initialize_root_vars): Same.
6415 (initialize_root_vars_store_elim_1): Same.
6416 (initialize_root_vars_store_elim_2): Same.
6417 (finalize_eliminated_stores): Same.
6418 (initialize_root_vars_lm): Same.
6419 (remove_stmt): Same.
6420 (determine_unroll_factor): Same.
6421 (execute_pred_commoning_cbck): Same.
6422 (base_names_in_chain_on): Same.
6423 (combine_chains): Same.
6424 (pcom_stmt_dominates_stmt_p): Same.
6425 (try_combine_chains): Same.
6426 (prepare_initializers_chain_store_elim): Same.
6427 (prepare_initializers_chain): Same.
6428 (prepare_initializers): Same.
6429 (prepare_finalizers_chain): Same.
6430 (prepare_finalizers): Same.
6431 (insert_init_seqs): Same.
6432 * tree-scalar-evolution.c (loop_phi_node_p): Same.
6433 (compute_overall_effect_of_inner_loop): Same.
6434 (add_to_evolution_1): Same.
6435 (add_to_evolution): Same.
6436 (follow_ssa_edge_binary): Same.
6437 (follow_ssa_edge_expr): Same.
6438 (backedge_phi_arg_p): Same.
6439 (follow_ssa_edge_in_condition_phi_branch): Same.
6440 (follow_ssa_edge_in_condition_phi): Same.
6441 (follow_ssa_edge_inner_loop_phi): Same.
6442 (follow_ssa_edge): Same.
6443 (analyze_evolution_in_loop): Same.
6444 (analyze_initial_condition): Same.
6445 (interpret_loop_phi): Same.
6446 (interpret_condition_phi): Same.
6447 (interpret_rhs_expr): Same.
6448 (interpret_expr): Same.
6449 (interpret_gimple_assign): Same.
6450 (analyze_scalar_evolution_1): Same.
6451 (analyze_scalar_evolution): Same.
6452 (analyze_scalar_evolution_for_address_of): Same.
6453 (get_instantiated_value_entry): Same.
6454 (loop_closed_phi_def): Same.
6455 (instantiate_scev_name): Same.
6456 (instantiate_scev_poly): Same.
6457 (instantiate_scev_binary): Same.
6458 (instantiate_scev_convert): Same.
6459 (instantiate_scev_not): Same.
6460 (instantiate_scev_r): Same.
6461 (instantiate_scev): Same.
6462 (resolve_mixers): Same.
6463 (initialize_scalar_evolutions_analyzer): Same.
6464 (scev_reset_htab): Same.
6466 (derive_simple_iv_with_niters): Same.
6467 (simple_iv_with_niters): Same.
6468 (expression_expensive_p): Same.
6469 (final_value_replacement_loop): Same.
6470 * tree-scalar-evolution.h (block_before_loop): Same.
6471 * tree-ssa-address.h: Same.
6472 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
6473 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
6474 (record_edge_info): Same.
6475 * tree-ssa-live.c (var_map_base_fini): Same.
6476 (remove_unused_locals): Same.
6477 * tree-ssa-live.h: Same.
6478 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
6479 (pass_ch_vect::execute): Same.
6480 (pass_ch::process_loop_p): Same.
6481 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
6482 (movement_possibility): Same.
6483 (outermost_invariant_loop): Same.
6485 (determine_max_movement): Same.
6486 (invariantness_dom_walker::before_dom_children): Same.
6487 (move_computations): Same.
6488 (may_move_till): Same.
6489 (force_move_till_op): Same.
6490 (force_move_till): Same.
6491 (memref_free): Same.
6492 (record_mem_ref_loc): Same.
6493 (set_ref_stored_in_loop): Same.
6494 (mark_ref_stored): Same.
6495 (sort_bbs_in_loop_postorder_cmp): Same.
6496 (sort_locs_in_loop_postorder_cmp): Same.
6497 (analyze_memory_references): Same.
6498 (mem_refs_may_alias_p): Same.
6499 (find_ref_loc_in_loop_cmp): Same.
6500 (rewrite_mem_ref_loc::operator): Same.
6501 (first_mem_ref_loc_1::operator): Same.
6502 (sm_set_flag_if_changed::operator): Same.
6503 (execute_sm_if_changed_flag_set): Same.
6505 (hoist_memory_references): Same.
6506 (ref_always_accessed::operator): Same.
6507 (refs_independent_p): Same.
6508 (record_dep_loop): Same.
6509 (ref_indep_loop_p_1): Same.
6510 (ref_indep_loop_p): Same.
6511 (can_sm_ref_p): Same.
6512 (find_refs_for_sm): Same.
6513 (loop_suitable_for_sm): Same.
6514 (store_motion_loop): Same.
6515 (store_motion): Same.
6516 (fill_always_executed_in): Same.
6517 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
6518 (estimated_unrolled_size): Same.
6519 (loop_edge_to_cancel): Same.
6520 (remove_exits_and_undefined_stmts): Same.
6521 (remove_redundant_iv_tests): Same.
6522 (unloop_loops): Same.
6523 (estimated_peeled_sequence_size): Same.
6524 (try_peel_loop): Same.
6525 (canonicalize_loop_induction_variables): Same.
6526 (canonicalize_induction_variables): Same.
6527 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
6529 (stmt_after_inc_pos): Same.
6530 (contains_abnormal_ssa_name_p): Same.
6531 (niter_for_exit): Same.
6534 (find_givs_in_bb): Same.
6535 (find_induction_variables): Same.
6536 (find_interesting_uses_cond): Same.
6537 (outermost_invariant_loop_for_expr): Same.
6538 (idx_find_step): Same.
6539 (add_candidate_1): Same.
6540 (add_iv_candidate_derived_from_uses): Same.
6541 (alloc_use_cost_map): Same.
6542 (prepare_decl_rtl): Same.
6543 (generic_predict_doloop_p): Same.
6544 (computation_cost): Same.
6545 (determine_common_wider_type): Same.
6546 (get_computation_aff_1): Same.
6547 (get_use_type): Same.
6548 (determine_group_iv_cost_address): Same.
6550 (difference_cannot_overflow_p): Same.
6551 (may_eliminate_iv): Same.
6552 (determine_set_costs): Same.
6553 (cheaper_cost_pair): Same.
6554 (compare_cost_pair): Same.
6555 (iv_ca_cand_for_group): Same.
6556 (iv_ca_recount_cost): Same.
6557 (iv_ca_set_remove_invs): Same.
6558 (iv_ca_set_no_cp): Same.
6559 (iv_ca_set_add_invs): Same.
6560 (iv_ca_set_cp): Same.
6561 (iv_ca_add_group): Same.
6563 (iv_ca_compare_deps): Same.
6564 (iv_ca_delta_reverse): Same.
6565 (iv_ca_delta_commit): Same.
6566 (iv_ca_cand_used_p): Same.
6567 (iv_ca_delta_free): Same.
6571 (iv_ca_extend): Same.
6572 (iv_ca_narrow): Same.
6573 (iv_ca_prune): Same.
6574 (cheaper_cost_with_cand): Same.
6575 (iv_ca_replace): Same.
6576 (try_add_cand_for): Same.
6577 (get_initial_solution): Same.
6578 (try_improve_iv_set): Same.
6579 (find_optimal_iv_set_1): Same.
6580 (create_new_iv): Same.
6581 (rewrite_use_compare): Same.
6582 (remove_unused_ivs): Same.
6583 (determine_scaling_factor): Same.
6584 * tree-ssa-loop-ivopts.h: Same.
6585 * tree-ssa-loop-manip.c (create_iv): Same.
6586 (compute_live_loop_exits): Same.
6587 (add_exit_phi): Same.
6588 (add_exit_phis): Same.
6589 (find_uses_to_rename_use): Same.
6590 (find_uses_to_rename_def): Same.
6591 (find_uses_to_rename_in_loop): Same.
6592 (rewrite_into_loop_closed_ssa): Same.
6593 (check_loop_closed_ssa_bb): Same.
6594 (split_loop_exit_edge): Same.
6596 (ip_normal_pos): Same.
6597 (copy_phi_node_args): Same.
6598 (gimple_duplicate_loop_to_header_edge): Same.
6599 (can_unroll_loop_p): Same.
6600 (determine_exit_conditions): Same.
6601 (scale_dominated_blocks_in_loop): Same.
6602 (niter_for_unrolled_loop): Same.
6603 (tree_transform_and_unroll_loop): Same.
6604 (rewrite_all_phi_nodes_with_iv): Same.
6605 * tree-ssa-loop-manip.h: Same.
6606 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
6607 (number_of_iterations_ne): Same.
6608 (assert_no_overflow_lt): Same.
6609 (assert_loop_rolls_lt): Same.
6610 (number_of_iterations_lt): Same.
6611 (adjust_cond_for_loop_until_wrap): Same.
6612 (tree_simplify_using_condition): Same.
6613 (simplify_using_initial_conditions): Same.
6614 (simplify_using_outer_evolutions): Same.
6615 (loop_only_exit_p): Same.
6616 (ssa_defined_by_minus_one_stmt_p): Same.
6617 (number_of_iterations_popcount): Same.
6618 (number_of_iterations_exit): Same.
6619 (find_loop_niter): Same.
6620 (finite_loop_p): Same.
6621 (chain_of_csts_start): Same.
6622 (get_val_for): Same.
6623 (loop_niter_by_eval): Same.
6624 (derive_constant_upper_bound_ops): Same.
6625 (do_warn_aggressive_loop_optimizations): Same.
6626 (record_estimate): Same.
6627 (get_cst_init_from_scev): Same.
6628 (record_nonwrapping_iv): Same.
6629 (idx_infer_loop_bounds): Same.
6630 (infer_loop_bounds_from_ref): Same.
6631 (infer_loop_bounds_from_array): Same.
6632 (infer_loop_bounds_from_pointer_arith): Same.
6633 (infer_loop_bounds_from_signedness): Same.
6634 (bound_index): Same.
6635 (discover_iteration_bound_by_body_walk): Same.
6636 (maybe_lower_iteration_bound): Same.
6637 (estimate_numbers_of_iterations): Same.
6638 (estimated_loop_iterations): Same.
6639 (estimated_loop_iterations_int): Same.
6640 (max_loop_iterations): Same.
6641 (max_loop_iterations_int): Same.
6642 (likely_max_loop_iterations): Same.
6643 (likely_max_loop_iterations_int): Same.
6644 (estimated_stmt_executions_int): Same.
6645 (max_stmt_executions): Same.
6646 (likely_max_stmt_executions): Same.
6647 (estimated_stmt_executions): Same.
6648 (stmt_dominates_stmt_p): Same.
6649 (nowrap_type_p): Same.
6650 (loop_exits_before_overflow): Same.
6651 (scev_var_range_cant_overflow): Same.
6652 (scev_probably_wraps_p): Same.
6653 (free_numbers_of_iterations_estimates): Same.
6654 * tree-ssa-loop-niter.h: Same.
6655 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
6656 (idx_analyze_ref): Same.
6657 (analyze_ref): Same.
6658 (gather_memory_references_ref): Same.
6659 (mark_nontemporal_store): Same.
6660 (emit_mfence_after_loop): Same.
6661 (may_use_storent_in_loop_p): Same.
6662 (mark_nontemporal_stores): Same.
6663 (should_unroll_loop_p): Same.
6664 (volume_of_dist_vector): Same.
6665 (add_subscript_strides): Same.
6666 (self_reuse_distance): Same.
6667 (insn_to_prefetch_ratio_too_small_p): Same.
6668 * tree-ssa-loop-split.c (split_at_bb_p): Same.
6669 (patch_loop_exit): Same.
6670 (find_or_create_guard_phi): Same.
6671 (easy_exit_values): Same.
6672 (connect_loop_phis): Same.
6673 (connect_loops): Same.
6674 (compute_new_first_bound): Same.
6676 (tree_ssa_split_loops): Same.
6677 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
6678 (is_maybe_undefined): Same.
6679 (tree_may_unswitch_on): Same.
6680 (simplify_using_entry_checks): Same.
6681 (tree_unswitch_single_loop): Same.
6682 (tree_unswitch_loop): Same.
6683 (tree_unswitch_outer_loop): Same.
6684 (empty_bb_without_guard_p): Same.
6685 (used_outside_loop_p): Same.
6686 (get_vop_from_header): Same.
6687 (hoist_guard): Same.
6688 * tree-ssa-loop.c (gate_oacc_kernels): Same.
6689 (get_lsm_tmp_name): Same.
6690 * tree-ssa-loop.h: Same.
6691 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
6692 (build_and_add_sum): Same.
6693 (no_side_effect_bb): Same.
6695 (linearize_expr): Same.
6696 (should_break_up_subtract): Same.
6697 (linearize_expr_tree): Same.
6698 * tree-ssa-scopedtables.c: Same.
6699 * tree-ssa-scopedtables.h: Same.
6700 * tree-ssa-structalias.c (condense_visit): Same.
6701 (label_visit): Same.
6702 (dump_pred_graph): Same.
6703 (perform_var_substitution): Same.
6704 (move_complex_constraints): Same.
6705 (remove_preds_and_fake_succs): Same.
6706 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
6707 (determine_bb_domination_status): Same.
6708 (duplicate_thread_path): Same.
6709 (thread_through_all_blocks): Same.
6710 * tree-ssa-threadupdate.h: Same.
6711 * tree-streamer-in.c (streamer_read_string_cst): Same.
6712 (input_identifier): Same.
6713 (unpack_ts_type_common_value_fields): Same.
6714 (unpack_ts_block_value_fields): Same.
6715 (unpack_ts_translation_unit_decl_value_fields): Same.
6716 (unpack_ts_omp_clause_value_fields): Same.
6717 (streamer_read_tree_bitfields): Same.
6718 (streamer_alloc_tree): Same.
6719 (lto_input_ts_common_tree_pointers): Same.
6720 (lto_input_ts_vector_tree_pointers): Same.
6721 (lto_input_ts_poly_tree_pointers): Same.
6722 (lto_input_ts_complex_tree_pointers): Same.
6723 (lto_input_ts_decl_minimal_tree_pointers): Same.
6724 (lto_input_ts_decl_common_tree_pointers): Same.
6725 (lto_input_ts_decl_non_common_tree_pointers): Same.
6726 (lto_input_ts_decl_with_vis_tree_pointers): Same.
6727 (lto_input_ts_field_decl_tree_pointers): Same.
6728 (lto_input_ts_function_decl_tree_pointers): Same.
6729 (lto_input_ts_type_common_tree_pointers): Same.
6730 (lto_input_ts_type_non_common_tree_pointers): Same.
6731 (lto_input_ts_list_tree_pointers): Same.
6732 (lto_input_ts_vec_tree_pointers): Same.
6733 (lto_input_ts_exp_tree_pointers): Same.
6734 (lto_input_ts_block_tree_pointers): Same.
6735 (lto_input_ts_binfo_tree_pointers): Same.
6736 (lto_input_ts_constructor_tree_pointers): Same.
6737 (lto_input_ts_omp_clause_tree_pointers): Same.
6738 (streamer_read_tree_body): Same.
6739 * tree-streamer.h: Same.
6740 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
6741 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
6742 (vect_analyze_possibly_independent_ddr): Same.
6743 (vect_analyze_data_ref_dependence): Same.
6744 (vect_compute_data_ref_alignment): Same.
6745 (vect_enhance_data_refs_alignment): Same.
6746 (vect_analyze_data_ref_access): Same.
6747 (vect_check_gather_scatter): Same.
6748 (vect_find_stmt_data_reference): Same.
6749 (vect_create_addr_base_for_vector_ref): Same.
6750 (vect_setup_realignment): Same.
6751 (vect_supportable_dr_alignment): Same.
6752 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
6753 (adjust_phi_and_debug_stmts): Same.
6754 (vect_set_loop_mask): Same.
6755 (add_preheader_seq): Same.
6756 (vect_maybe_permute_loop_masks): Same.
6757 (vect_set_loop_masks_directly): Same.
6758 (vect_set_loop_condition_masked): Same.
6759 (vect_set_loop_condition_unmasked): Same.
6760 (slpeel_duplicate_current_defs_from_edges): Same.
6761 (slpeel_add_loop_guard): Same.
6762 (slpeel_can_duplicate_loop_p): Same.
6763 (create_lcssa_for_virtual_phi): Same.
6765 (vect_update_ivs_after_vectorizer): Same.
6766 (vect_gen_vector_loop_niters_mult_vf): Same.
6767 (slpeel_update_phi_nodes_for_loops): Same.
6768 (slpeel_update_phi_nodes_for_guard1): Same.
6769 (find_guard_arg): Same.
6770 (slpeel_update_phi_nodes_for_guard2): Same.
6771 (slpeel_update_phi_nodes_for_lcssa): Same.
6772 (vect_do_peeling): Same.
6773 (vect_create_cond_for_alias_checks): Same.
6774 (vect_loop_versioning): Same.
6775 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
6776 (vect_inner_phi_in_double_reduction_p): Same.
6777 (vect_analyze_scalar_cycles_1): Same.
6778 (vect_fixup_scalar_cycles_with_patterns): Same.
6779 (vect_get_loop_niters): Same.
6780 (bb_in_loop_p): Same.
6781 (vect_get_max_nscalars_per_iter): Same.
6782 (vect_verify_full_masking): Same.
6783 (vect_compute_single_scalar_iteration_cost): Same.
6784 (vect_analyze_loop_form_1): Same.
6785 (vect_analyze_loop_form): Same.
6786 (vect_active_double_reduction_p): Same.
6787 (vect_analyze_loop_operations): Same.
6788 (neutral_op_for_slp_reduction): Same.
6789 (vect_is_simple_reduction): Same.
6790 (vect_model_reduction_cost): Same.
6791 (get_initial_def_for_reduction): Same.
6792 (get_initial_defs_for_reduction): Same.
6793 (vect_create_epilog_for_reduction): Same.
6794 (vectorize_fold_left_reduction): Same.
6795 (vectorizable_reduction): Same.
6796 (vectorizable_induction): Same.
6797 (vectorizable_live_operation): Same.
6798 (loop_niters_no_overflow): Same.
6799 (vect_get_loop_mask): Same.
6800 (vect_transform_loop_stmt): Same.
6801 (vect_transform_loop): Same.
6802 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
6803 (vect_determine_precisions): Same.
6804 (vect_pattern_recog_1): Same.
6805 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
6806 * tree-vect-stmts.c (stmt_vectype): Same.
6807 (process_use): Same.
6808 (vect_init_vector_1): Same.
6809 (vect_truncate_gather_scatter_offset): Same.
6810 (get_group_load_store_type): Same.
6811 (vect_build_gather_load_calls): Same.
6812 (vect_get_strided_load_store_ops): Same.
6813 (vectorizable_simd_clone_call): Same.
6814 (vectorizable_store): Same.
6815 (permute_vec_elements): Same.
6816 (vectorizable_load): Same.
6817 (vect_transform_stmt): Same.
6818 (supportable_widening_operation): Same.
6819 * tree-vectorizer.c (vec_info::replace_stmt): Same.
6820 (vec_info::free_stmt_vec_info): Same.
6821 (vect_free_loop_info_assumptions): Same.
6822 (vect_loop_vectorized_call): Same.
6823 (set_uid_loop_bbs): Same.
6824 (vectorize_loops): Same.
6825 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
6826 * tree.c (add_tree_to_fld_list): Same.
6827 (fld_type_variant_equal_p): Same.
6828 (fld_decl_context): Same.
6829 (fld_incomplete_type_of): Same.
6830 (free_lang_data_in_binfo): Same.
6831 (need_assembler_name_p): Same.
6832 (find_decls_types_r): Same.
6833 (get_eh_types_for_runtime): Same.
6834 (find_decls_types_in_eh_region): Same.
6835 (find_decls_types_in_node): Same.
6836 (assign_assembler_name_if_needed): Same.
6837 * value-prof.c (stream_out_histogram_value): Same.
6838 * value-prof.h: Same.
6839 * var-tracking.c (use_narrower_mode): Same.
6840 (prepare_call_arguments): Same.
6841 (vt_expand_loc_callback): Same.
6842 (resolve_expansions_pending_recursion): Same.
6843 (vt_expand_loc): Same.
6844 * varasm.c (const_hash_1): Same.
6845 (compare_constant): Same.
6846 (tree_output_constant_def): Same.
6847 (simplify_subtraction): Same.
6848 (get_pool_constant): Same.
6849 (output_constant_pool_2): Same.
6850 (output_constant_pool_1): Same.
6851 (mark_constants_in_pattern): Same.
6852 (mark_constant_pool): Same.
6853 (get_section_anchor): Same.
6854 * vr-values.c (compare_range_with_value): Same.
6855 (vr_values::extract_range_from_phi_node): Same.
6856 * vr-values.h: Same.
6857 * web.c (unionfind_union): Same.
6860 2019-07-09 Martin Sebor <msebor@redhat.com>
6863 * align.h: Change class-key from class to struct and vice versa
6864 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
6865 * alloc-pool.h: Same.
6866 * asan.c (shadow_mem_size): Same.
6867 * auto-profile.c: Same.
6868 * basic-block.h: Same.
6870 * cfgexpand.c (set_rtl): Same.
6871 (expand_one_stack_var_at): Same.
6875 * config/i386/i386.h: Same.
6876 * df-problems.c (df_print_bb_index): Same.
6878 * df.h (df_single_use): Same.
6879 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
6880 (layout::annotation_line_showed_range_p): Same.
6881 (get_printed_columns): Same.
6882 (correction::ensure_terminated): Same.
6883 (line_corrections::~line_corrections): Same.
6886 * dump-context.h: Same.
6888 * dwarf2out.c: Same.
6889 * edit-context.c: Same.
6890 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
6892 * function.c (assign_stack_local): Same.
6895 * gcov.c (block_info::block_info): Same.
6896 * genattrtab.c: Same.
6897 * genextract.c: Same.
6898 * genmatch.c (comparison_code_p): Same.
6899 (id_base::id_base): Same.
6900 (decision_tree::print): Same.
6901 * genoutput.c: Same.
6902 * genpreds.c (write_one_predicate_function): Same.
6903 * genrecog.c (validate_pattern): Same.
6904 (find_operand_positions): Same.
6905 (optimize_subroutine_group): Same.
6906 (merge_pattern_transition::merge_pattern_transition): Same.
6907 (merge_pattern_info::merge_pattern_info): Same.
6908 (merge_state_result::merge_state_result): Same.
6909 (merge_into_state): Same.
6910 * gensupport.c: Same.
6911 * gensupport.h: Same.
6912 * ggc-common.c (init_ggc_heuristics): Same.
6913 * ggc-tests.c (test_union): Same.
6914 * gimple-loop-interchange.cc (dump_induction): Same.
6915 * gimple-loop-versioning.cc: Same.
6916 * gimple-match.h (gimple_match_cond::any_else): Same.
6917 * gimple-ssa-backprop.c: Same.
6918 * gimple-ssa-sprintf.c: Same.
6919 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
6921 (store_immediate_info::store_immediate_info): Same.
6922 (merged_store_group::apply_stores): Same.
6923 (get_location_for_stmts): Same.
6924 * gimple-ssa-strength-reduction.c: Same.
6925 * gimple-ssa-warn-alloca.c: Same.
6926 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
6927 * godump.c (go_type_decl): Same.
6928 * hash-map-tests.c (test_map_of_strings_to_int): Same.
6930 * hash-set-tests.c (test_set_of_strings): Same.
6932 * hsa-common.h: Same.
6933 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
6934 * input.c (assert_loceq): Same.
6937 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
6938 * ipa-fnsummary.h: Same.
6939 * ipa-inline.h: Same.
6941 * ipa-split.c (visit_bb): Same.
6942 * ira-int.h (minmax_set_iter_next): Same.
6943 * loop-invariant.c: Same.
6945 * lra-eliminations.c: Same.
6947 * lra-lives.c (mark_regno_dead): Same.
6948 * lra-remat.c: Same.
6949 * lra-spills.c: Same.
6950 * lto-streamer.h: Same.
6951 * mem-stats.h: Same.
6952 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
6953 * omp-low.c (omp_clause_aligned_alignment): Same.
6954 * optabs-query.h (get_vcond_eq_icode): Same.
6956 * opts.c (wrap_help): Same.
6958 * predict.c (predict_paths_leading_to_edge): Same.
6959 * pretty-print.h: Same.
6960 * profile-count.h: Same.
6962 * read-rtl-function.c: Same.
6965 * regrename.c: Same.
6966 * regrename.h: Same.
6969 * rtl.h (costs_add_n_insns): Same.
6971 * sched-int.h: Same.
6972 * sel-sched-ir.h: Same.
6974 * sese.h (vec_find): Same.
6976 * target-globals.h: Same.
6977 * tree-affine.c (aff_combination_find_elt): Same.
6978 * tree-affine.h: Same.
6979 * tree-data-ref.h: Same.
6980 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
6981 * tree-predcom.c: Same.
6982 * tree-scalar-evolution.c (find_var_scev_info): Same.
6983 * tree-ssa-alias.h: Same.
6984 * tree-ssa-ccp.c: Same.
6985 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
6986 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
6987 (rewrite_mem_refs): Same.
6988 (execute_sm_if_changed): Same.
6989 (hoist_memory_references): Same.
6990 * tree-ssa-loop-ivopts.c (operator<=): Same.
6991 * tree-ssa-loop.h: Same.
6992 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
6993 * tree-ssa-structalias.c: Same.
6994 * tree-switch-conversion.h (cluster::cluster): Same.
6995 (simple_cluster::simple_cluster): Same.
6996 * tree-vect-patterns.c (type_conversion_p): Same.
6997 * tree-vectorizer.c (dump_stmt_cost): Same.
6998 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
6999 * tree.c (protected_set_expr_location): Same.
7000 * tree.h (desired_pro_or_demotion_p): Same.
7001 (fndecl_built_in_p): Same.
7002 * unique-ptr-tests.cc: Same.
7003 * var-tracking.c (delete_variable_part): Same.
7004 * varasm.c (assemble_real): Same.
7005 (tree_output_constant_def): Same.
7007 * wide-int-bitmask.h: Same.
7008 * wide-int.h (decompose): Same.
7010 2019-07-09 Richard Biener <rguenther@suse.de>
7012 PR tree-optimization/91114
7013 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
7014 find a vector type isn't fatal.
7016 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
7018 * config/aarch64/aarch64-simd.md
7019 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
7020 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
7021 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
7022 (*aarch64_crypto_aese_fused,
7023 *aarch64_crypto_aesd_fused): Update to new definition.
7024 * config/aarch64/aarch64.c
7025 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
7027 2019-07-09 Richard Biener <rguenther@suse.de>
7029 * gimple-match.h (gimple_match_op::resimplify): New.
7030 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
7031 gimple_resimplify4, gimple_resimplify5): Remove.
7032 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
7033 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
7035 (gimple_match_op::resimplify): New.
7036 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
7037 according to availability. Use gimple_match_op::resimplify.
7039 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
7041 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
7043 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
7045 * config/arm/crypto.md:
7046 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
7047 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
7048 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
7049 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
7051 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
7052 * config/arm/aarch-common-protos.h
7053 (aarch_crypto_can_dual_issue): Remove.
7054 * config/arm/aarch-common.c
7055 (aarch_crypto_can_dual_issue): Likewise.
7056 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
7057 * config/arm/cortex-a53.md: Likewise.
7058 * config/arm/cortex-a57.md: Likewise.
7059 * config/arm/iterators.md:
7060 (CRYPTO_BINARY): Redefine.
7061 (CRYPTO_UNARY): Removed.
7062 (CRYPTO_AES, CRYPTO_AESMC): New.
7064 2019-07-09 Richard Biener <rguenther@suse.de>
7066 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
7067 (vn_reference_lookup_3): If the main ref has no access path recorded
7068 but orig_ref has use it to do access-path based disambiguation.
7069 (vn_reference_lookup_pieces): Adjust.
7070 (vn_reference_lookup): Pass down original ref if we valueized.
7072 2019-07-09 Martin Liska <mliska@suse.cz>
7074 * doc/extend.texi: Document influence on loop
7077 2019-07-09 Martin Liska <mliska@suse.cz>
7079 * lto-compress.c (lto_normalized_zstd_level): Do not use
7080 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
7081 of libzstd. One can use 0 as a default compression level.
7083 2019-07-09 Martin Liska <mliska@suse.cz>
7085 * doc/invoke.texi: Add link from -fprofile-dir option.
7086 Use better wording for 'gcno filename'.
7088 2019-07-08 Martin Sebor <msebor@redhat.com>
7092 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
7094 (args_loc_t): New type.
7095 (args_loc_t, locmap_t): same.
7096 (diag_returned_locals): New function.
7097 (is_addr_local): Same.
7098 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
7099 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
7100 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
7102 2019-07-08 Jakub Jelinek <jakub@redhat.com>
7104 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
7105 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
7106 and casts in offset when different, both through gimple stmts
7107 and through trees. Rewritten using loops to minimize code duplication
7110 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
7112 * emit-rtl.c (set_insn_locations): New function moved from...
7113 * function.c (set_insn_locations): ...here.
7114 * ira-emit.c (emit_moves): Propagate location of the first instruction
7115 to the inserted move instructions.
7116 * reg-stack.c (compensate_edge): Set the location if the sequence is
7117 inserted on the edge.
7118 * rtl.h (set_insn_locations): Declare.
7120 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
7122 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
7123 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
7126 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
7128 PR rtl-optimization/88233
7129 * common.opt (fsplit-wide-types-early): New option.
7130 * common/config/rs6000/rs6000-common.c
7131 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
7133 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
7134 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
7135 flag_split_wide_types_early.
7136 (pass_data_lower_subreg3): New.
7137 (pass_lower_subreg3): New.
7138 (make_pass_lower_subreg3): New.
7139 * passes.def (pass_lower_subreg2): Move after the loop passes.
7140 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
7141 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
7142 the pass pipeline; its previous place is taken by ...
7143 (make_pass_lower_subreg3): ... this.
7145 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
7147 * config/s390/s390.c (s390_shift_truncation_mask): Define.
7148 (TARGET_SHIFT_TRUNCATION_MASK): Define.
7150 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
7152 * config/s390/constraints.md: Add new jsc constraint.
7153 * config/s390/predicates.md: New predicates.
7154 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
7155 * config/s390/s390.c (s390_valid_shift_count): New function.
7156 (print_shift_count_operand): Use s390_valid_shift_count.
7157 (print_operand): Likewise.
7158 * config/s390/s390.md: Use new predicate.
7159 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
7160 * config/s390/vector.md: Use new predicate.
7162 2019-07-08 Andrew Waterman <andrew@sifive.com>
7163 Jim Wilson <jimw@sifive.com>
7165 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
7166 bitsize instead of BITS_PER_WORD.
7168 2019-07-08 Martin Liska <mliska@suse.cz>
7170 * collect2.c (defined): Revert to before r254460.
7171 (scan_prog_file): Revert to before r254460.
7173 2019-07-08 Richard Biener <rguenther@suse.de>
7175 PR tree-optimization/83518
7176 * tree-ssa-sccvn.c: Include splay-tree.h.
7177 (struct pd_range, struct pd_data): New.
7178 (struct vn_walk_cb_data): Add data to track partial definitions.
7179 (vn_walk_cb_data::~vn_walk_cb_data): New.
7180 (vn_walk_cb_data::push_partial_def): New.
7181 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
7182 (vn_reference_lookup_2): When partial defs are registered give up.
7183 (vn_reference_lookup_3): Track partial defs for memset and
7184 constructor zeroing and for defs from constants.
7186 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
7188 * doc/install.texi (bootstrap-Og): Document.
7190 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
7192 * config/riscv/pic.md (*local_pic_load_s<mode>)
7193 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
7194 referenced by <mode>, giving...
7195 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
7196 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
7197 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
7198 use <X:MODE> for the mode attribute.
7200 2019-07-07 Jeff Law <law@redhat.com>
7202 PR tree-optimization/91090
7203 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
7204 in handling of ranges to simplify switch statements.
7206 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
7208 * config/darwin.c (darwin_override_options): Make a final check on PIC
7211 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
7213 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
7216 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
7219 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
7220 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
7221 instead of matching them to "l" output operands.
7223 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
7225 * config/mips/mips.c (mips_split_move): Zero-initialize addr
7226 and check whether addr.reg is nonnull before using it.
7228 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7230 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
7231 ctx->for_simd_scan_phase simd copy the outer var to the privatized
7232 variable(s). For conditional lastprivate look through outer
7233 GIMPLE_OMP_SCAN context.
7234 (lower_omp_1): For conditional lastprivate look through outer
7235 GIMPLE_OMP_SCAN context.
7237 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
7238 member to combined_into_simd_safelen1.
7239 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
7240 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
7241 clauses if ctx->combined_into_simd_safelen1 put statements after the
7242 predicate conditionalized block rather than into it.
7244 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7246 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
7248 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
7249 Make the choice of <mode> explicit, giving...
7250 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
7252 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7254 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
7255 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
7257 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
7258 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
7259 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
7260 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
7261 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
7262 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
7263 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
7264 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
7265 (*avx512f_scatterdi<mode>): Likewise.
7266 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
7268 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7270 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
7271 specify the mode iterator referenced by <mode>, giving...
7272 (*push1_h8300hs_<QHI:mode>): ...this.
7274 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7276 * config/gcn/gcn-valu.md
7277 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
7278 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
7279 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
7280 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
7281 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
7282 but using the _exec comparison patterns.
7283 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
7284 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
7285 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
7286 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
7287 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
7288 but using the _exec comparison patterns.
7290 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7292 * config/arm/sync.md
7293 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
7294 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
7295 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
7296 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
7299 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7301 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
7302 (maybe_lookup_ctx): Add forward declaration.
7303 (omp_find_scan): Likewise. Walk into body of simd if composited
7304 with worksharing loop.
7305 (scan_omp_simd_scan): New function.
7306 (scan_omp_1_stmt): Call it.
7307 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
7308 ctx->for_simd_scan_phase.
7309 (lower_rec_input_clauses): Do much less work for inscan reductions
7310 in ctx->for_simd_scan_phase is_simd regions.
7311 (lower_omp_scan): Set is_simd also on simd constructs composited
7312 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
7313 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
7314 emit their body after in simd constructs composited with worksharing
7316 (lower_omp_for_scan): Handle worksharing loop composited with simd.
7318 * omp-low.c (omp_find_scan): Make static.
7319 (lower_omp_for_scan): Fix order of merge arguments in input phase of
7320 the second loop, var2 represents the first partial sum and so needs
7321 to go before rprivb[ivar].
7323 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
7325 * config/rs6000/rs6000-logue.c: Remove unused code.
7327 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7329 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
7331 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
7334 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
7335 check with a frame laid out check.
7337 2019-07-05 Richard Biener <rguenther@suse.de>
7339 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
7340 when comparing against a store with possibly the same value.
7342 2019-07-05 Richard Biener <rguenther@suse.de>
7344 PR tree-optimization/91091
7345 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
7346 (walk_non_aliased_vuses): Likewise.
7347 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
7348 (get_continuation_for_phi): New tbaa_p parameter and pass
7350 (walk_non_aliased_vuses): Likewise.
7351 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
7352 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
7353 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
7355 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
7356 (adjust_offsets_for_equal_base_address): New function.
7357 (vn_reference_lookup_3): Use it to catch more base equivalences.
7358 Handle and pass down tbaa_p flag.
7359 (vn_reference_lookup_pieces): Adjust.
7360 (vn_reference_lookup): Remove alias-set altering, instead pass
7361 down false as tbaa_p.
7363 2019-07-05 Richard Biener <rguenther@suse.de>
7365 PR tree-optimization/91091
7366 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
7367 accesses can happen with -fno-strict-aliasing.
7369 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
7371 * tree-ssa-alias.c (alias_stats): Add
7372 nonoverlapping_component_refs_since_match_p_must_overlap.
7373 (dump_alias_stats): Print it.
7374 (nonoverlapping_component_refs_since_match_p): Add early exit.
7375 (nonoverlapping_component_refs_p): Do not account early exit.
7377 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7379 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
7380 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
7381 (emit_eh_dispatch): Delete.
7382 (lower_catch): Emit the eh_dispatch manually and set the location of
7383 the first catch statement onto it.
7384 (lower_eh_filter): Emit the eh_dispatch manually and set location.
7385 (lower_eh_dispatch): Propagate location.
7386 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
7387 (eliminate_build): Likewise.
7389 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7391 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
7392 phi nodes if possible.
7393 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
7394 location info on the newly created statement.
7395 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
7396 newly created increment if needed.
7398 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7401 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
7402 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
7403 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
7404 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
7405 ctx->add_safelen1 is set.
7407 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
7408 GOMP_loop_start at the start of second worksharing loop in a scan.
7409 For nowait, don't emit GOMP_loop_end_nowait at the end of first
7410 worksharing loop in a scan even if there are conditional lastprivates,
7411 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
7413 2019-07-04 Jan Hubicka <jh@suse.cz>
7415 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
7416 Fix check for match in the ref walk.
7418 2019-07-04 Martin Liska <mliska@suse.cz>
7420 * tree-ssa-loop-niter.c
7421 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
7422 (estimate_numbers_of_iterations):
7423 Support __builtin_expect_with_probability for analysis
7424 of # of loop iterations.
7426 2019-07-04 Alexandre Oliva <oliva@adacore.com>
7428 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
7429 * except.c: Likewise.
7430 * expr.c (expand_expr_real_1): Reject it.
7431 * gimplify.c (gimplify_expr): Gimplify it, within
7433 * tree-dump.c (dequeue_and_dump): Dump it.
7434 * tree-pretty-print.c (dump_generic_node): Likewise.
7435 * tree.c (block_may_fallthru): Handle it.
7436 * tree.def (EH_ELSE_EXPR): Introduce it.
7437 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
7438 with GIMPLE_EH_ELSE as try/finally/else.
7440 2019-07-04 Richard Biener <rguenther@suse.de>
7443 * tree-pass.h (execute_all_ipa_transforms): Add a flag
7444 parameter whether to disable GC collection.
7445 * passes.c (execute_one_ipa_transform_pass): Likewise, and
7447 (execute_all_ipa_transforms): Likewise and pass it down.
7448 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
7449 collection from applying IPA transforms.
7450 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
7451 from applying IPA transforms.
7453 2019-07-04 Richard Biener <rguenther@suse.de>
7455 PR tree-optimization/90911
7456 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
7457 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
7458 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7459 scalar_loop_scaling.
7460 (vect_transform_loop): Scale scalar loop profile if needed.
7461 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
7462 the loop copy from if-conversion adjust edge probabilities
7463 and scale the vectorized loop body profile, queue the scalar
7464 profile for updating after peeling.
7466 2019-07-04 Jan Hubicka <jh@suse.cz>
7468 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
7469 parameters; return early for must-alias.
7470 (indirect_ref_may_alias_decl_p): Likewise; when establishing
7471 outer types match, try nonoverlapping_component_refs
7472 if must-alias is not obvious.
7473 (indirect_refs_may_alias_p): Likewise.
7474 (refs_may_alias_p_2): Likewise.
7476 2019-07-04 Richard Biener <rguenther@suse.de>
7478 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
7480 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
7482 (struct vn_walk_cb_data): New callback data struct.
7483 (vn_reference_lookup_2): Adjust.
7484 (vn_reference_lookup_3): Likewise.
7485 (vn_reference_lookup_pieces): Likewise.
7486 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
7487 (visit_reference_op_load): Adjust.
7489 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7491 PR tree-optimization/91063
7492 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
7493 stmt from stmts sequence before calling vect_init_vector_1.
7496 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7499 * fwprop.c (reg_single_def_p): New function.
7500 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
7501 (forward_propagate_into): New parameter reg_prop_only
7502 with default value false.
7503 Propagate def's src into loop only if SET_SRC and SET_DEST
7504 of def_set have single definitions.
7505 Likewise if reg_prop_only is set to true.
7506 (fwprop): New param fwprop_addr_p.
7507 Integrate fwprop_addr into fwprop.
7508 (fwprop_addr): Remove.
7509 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
7511 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
7512 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
7513 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
7515 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7517 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
7518 in worksharing loop scans.
7520 PR tree-optimization/91074
7521 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
7524 PR rtl-optimization/90756
7525 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
7528 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
7530 * config/aarch64/aarch64.md: Remove redundant constraints from
7531 define_expand but keep some patterns untouched if they are
7532 specially selected by TARGET_SECONDARY_RELOAD hook.
7533 * config/aarch64/aarch64-sve.md: Likewise.
7534 * config/aarch64/atomics.md: Remove redundant constraints from
7536 * config/aarch64/aarch64-simd.md: Likewise.
7538 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7540 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
7541 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
7542 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
7544 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
7547 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7549 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
7550 (STARTFILE_SPEC): Split crt3 into a separate spec.
7551 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
7552 (DARWIN_CRT2_SPEC): New.
7553 (DARWIN_CRT3_SPEC): New.
7554 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
7555 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
7556 (DARWIN_CRT3_SPEC): New.
7558 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
7560 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
7561 Change the RTL attribute "length" from "4" to "*" to allow the
7562 length attribute to be adjusted automatically for prefixed load,
7563 store, and add immediate instructions.
7564 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
7566 (extendsi<mode>2, EXTSI iterator): Likewise.
7567 (movsi_internal1): Likewise.
7568 (movsi_from_sf): Likewise.
7569 (movdi_from_sf_zero_ext): Likewise.
7570 (mov<mode>_internal): Likewise.
7571 (movcc_internal1, QHI iterator): Likewise.
7572 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
7573 (movsf_from_si): Likewise.
7574 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
7575 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
7576 (mov<mode>, FMOVE128 iterator): Likewise.
7577 (movdi_internal64): Likewise.
7578 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
7580 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
7581 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
7582 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
7583 (vsx_splat_v4sf): Likewise.
7585 2019-07-03 Mark Wielaard <mark@klomp.org>
7588 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
7589 DW_AT_addr_base if there is actually a .debug_addr section with
7591 (output_addr_table): Add DWARF5 table header generation here after
7592 checking there are actually any addresses from...
7593 (dwarf2out_finish): ...here.
7595 2019-07-03 Richard Biener <rguenther@suse.de>
7598 * match.pd (vec_perm -> bit_insert): Fix element read from
7601 2019-07-03 Martin Liska <mliska@suse.cz>
7603 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
7604 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
7606 * generic-match-head.c: Include dbgcnt.h.
7607 * gimple-match-head.c: Likewise.
7609 2019-07-03 Martin Liska <mliska@suse.cz>
7611 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
7612 (GCOV_COUNTER_V_TOPN): New.
7613 (GCOV_COUNTER_V_INDIR): Use _topn.
7614 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
7615 (GCOV_TOPN_VALUES): New.
7616 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
7617 (GCOV_TOPN_VALUES_COUNTERS): New.
7618 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
7620 (gimple_init_gcov_profiler): Rename variables from one_value
7622 (gimple_gen_one_value_profiler): Remove.
7623 (gimple_gen_topn_values_profiler): New function.
7624 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
7625 names instead of SINGLE_VALUE.
7626 (stream_out_histogram_value): Likewise.
7627 (stream_in_histogram_value): Likewise.
7628 (get_most_common_single_value): Likewise.
7629 (gimple_divmod_fixed_value_transform): Likewise.
7630 (gimple_stringops_transform): Likewise.
7631 (gimple_divmod_values_to_profile): Likewise.
7632 (gimple_stringops_values_to_profile): Likewise.
7633 (gimple_find_values_to_profile): Likewise.
7634 * value-prof.h (enum hist_type): Rename to TOPN.
7635 (gimple_gen_one_value_profiler): Remove.
7636 (gimple_gen_topn_values_profiler): New.
7638 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
7640 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
7641 if it has the DW_AT_data_member_location attribute.
7643 2019-07-03 Richard Biener <rguenther@suse.de>
7645 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
7648 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
7650 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
7651 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
7652 (tlsdesc_small_sve_<mode>): Likewise.
7654 2019-07-03 Martin Liska <mliska@suse.cz>
7656 * Makefile.in: Define ZSTD_LIB.
7657 * common.opt: Adjust compression level
7658 to support also zstd levels.
7659 * config.in: Regenerate.
7660 * configure: Likewise.
7661 * configure.ac: Add --with-zstd and --with-zstd-include options
7663 * doc/install.texi: Mention zstd dependency.
7664 * gcc.c: Print supported LTO compression algorithms.
7665 * lto-compress.c (lto_normalized_zstd_level): Likewise.
7666 (lto_compression_zstd): Likewise.
7667 (lto_uncompression_zstd): Likewise.
7668 (lto_end_compression): Dispatch in between zlib and zstd.
7669 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
7670 (lto_uncompression_zlib): Make it static.
7671 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
7672 * lto-section-in.c (lto_get_section_data): Pass info
7673 about used compression.
7674 * lto-streamer-out.c: By default use zstd when possible.
7675 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
7676 (TV_IPA_LTO_COMPRESS): Likewise for compression.
7678 2019-07-03 Martin Liska <mliska@suse.cz>
7680 * lto-section-in.c (lto_get_section_data): Add "lto" section.
7681 * lto-section-out.c (lto_destroy_simple_output_block): Never
7682 compress LTO_section_lto section.
7683 * lto-streamer-out.c (produce_asm): Do not set major_version
7685 (lto_output_toplevel_asms): Likewise.
7686 (produce_lto_section): New function.
7687 (lto_output): Call produce_lto_section.
7688 (lto_write_mode_table): Do not set major_version and
7690 (produce_asm_for_decls): Likewise.
7691 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
7693 (struct lto_header): Remove.
7694 (struct lto_section): New struct.
7695 (struct lto_simple_header): Do not inherit from lto_header.
7696 (struct lto_file_decl_data): Add lto_section_header field.
7698 2019-07-03 Martin Liska <mliska@suse.cz>
7700 * lra-eliminations.c (eliminate_regs_in_insn): Remove
7702 * reg-stack.c (check_asm_stack_operands): Likewise.
7703 * tree-ssa-structalias.c (create_function_info_for): Likewise.
7704 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7705 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
7708 2019-07-03 Martin Liska <mliska@suse.cz>
7710 PR tree-optimization/90892
7711 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
7712 in string constants.
7714 2019-07-03 Martin Liska <mliska@suse.cz>
7717 * multiple_target.c (create_dispatcher_calls): Add to comdat
7718 group only if set for ifunc.
7720 2019-07-03 Martin Liska <mliska@suse.cz>
7723 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
7724 Define local_object_name in outer scope in order to handle
7725 use-after-scope issue.
7727 2019-07-03 Martin Liska <mliska@suse.cz>
7729 * common.opt: Add fprofile-note.
7730 * coverage.c (coverage_init): Append the option
7732 * doc/invoke.texi: Document -fprofile-note.
7734 2019-07-03 Jakub Jelinek <jakub@redhat.com>
7736 PR tree-optimization/91033
7737 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
7738 vect_analyze_data_refs): Add bool * arguments.
7739 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
7740 if failure is due to scatter/gather, set *fatal to false if non-NULL.
7741 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7742 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
7743 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
7744 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
7745 vect_analyze_data_refs caller.
7747 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
7749 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
7750 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
7751 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
7752 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
7753 OMP_CLAUSE__SCANTEMP_ entry.
7754 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
7755 * tree-pretty-print.c (dump_omp_clause): Likewise.
7756 * tree-nested.c (convert_nonlocal_omp_clauses,
7757 convert_local_omp_clauses): Likewise.
7758 * omp-general.h (struct omp_for_data): Add have_scantemp and
7759 have_nonctrl_scantemp members.
7760 * omp-general.c (omp_extract_for_data): Initialize them.
7761 * omp-low.c (struct omp_context): Add scan_exclusive member.
7762 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
7763 result again with GF_OMP_FOR_KIND_MASK. Initialize also
7764 ctx->scan_exclusive.
7765 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
7766 of !ctx->scan_inclusive.
7767 (lower_rec_input_clauses): Simplify gimplification of dtors using
7768 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
7769 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
7770 loops. Don't add barrier for reduction_omp_orig_ref if
7771 ctx->scan_??xclusive.
7772 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
7773 (lower_omp_scan): Use ctx->scan_exclusive instead
7774 of !ctx->scan_inclusive. Handle worksharing loops with inscan
7775 reductions. Use new_vard != new_var instead of repeated
7776 omp_is_reference calls.
7777 (omp_find_scan, lower_omp_for_scan): New functions.
7778 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
7780 * omp-expand.c (expand_omp_scantemp_alloc): New function.
7781 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
7782 and fd->have_scantemp.
7784 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
7785 on worksharing loop propagate it as shared clause to containing
7788 * omp-expand.c (expand_omp_for_static_nochunk,
7789 expand_omp_for_static_chunk): For nowait worksharing loop with
7790 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
7793 2019-07-02 qing zhao <qing.zhao@oracle.com>
7795 PR preprocessor/90581
7796 * doc/cppopts.texi: Add document for -fmax-include-depth.
7797 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
7799 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
7801 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
7802 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
7803 (mmx_packssdw): Ditto.
7804 (mmx_punpckhbw): Ditto.
7805 (mmx_punpcklbw): Ditto.
7806 (mmx_punpckhwd): Ditto.
7807 (mmx_punpcklwd): Ditto.
7808 (mmx_punpckhdq): Ditto.
7809 (mmx_punpckldq): Ditto.
7810 (*vec_dupv4hi): Ditto.
7811 (*vec_dupv2si): Ditto.
7812 (mmx_pmovmskb): Ditto.
7813 * config/i386/sse.md (sse_cvtpi2ps): Use
7814 TARGET_SSE2 && SSE_REG_P in split condition.
7815 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
7816 TARGET_SSSE3 && SSE_REGNO_P in split condition.
7817 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
7818 (ssse3_pshufbv8qi3): Ditto.
7819 (ssse3_palignrdi): Ditto.
7821 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
7823 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
7824 with inlined save and restore.
7826 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
7828 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
7829 to be inserted on single successor edge of the entry block. Then call
7830 commit_edge_insertions instead of inserting the instructions manually.
7831 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
7832 RTL expansion and rebuild jump labels chain.
7834 2019-07-02 Richard Biener <rguenther@suse.de>
7836 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
7838 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7840 * tree.c (build_common_tree_nodes): Initialize them.
7841 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7842 Make declarations comments.
7843 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
7844 chrec_known): Remove definitions.
7845 (initialize_scalar_evolutions_analyzer): Remove.
7846 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
7847 * tree-streamer.c (preload_common_nodes): Do not preload
7848 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
7850 2019-07-02 Jan Hubicka <jh@suse.cz>
7852 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
7855 2019-07-02 Jan Hubicka <jh@suse.cz>
7857 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
7859 (nonoverlapping_component_refs_since_match_p): ... this one;
7860 handle also non-decl bases; return -1 if search gave up.
7861 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
7862 nonoverlapping_component_refs_of_decl_p_no_alias to
7863 nonoverlapping_component_refs_since_match_p_may_alias,
7864 nonoverlapping_component_refs_since_match_p_no_alias.
7865 (dump_alias_stats): Update dumping.
7866 (aliasing_matching_component_refs_p): Break out from ...;
7867 dispatch to nonoverlapping_component_refs_for_decl_p
7868 and nonoverlapping_component_refs_since_match_p.
7869 (aliasing_component_refs_p): ... here; call
7870 nonoverlapping_component_refs_p in scenarios where we can not
7871 precisely determine base match.
7872 (decl_refs_may_alias_p): Use
7873 nonoverlapping_component_refs_since_match_p.
7874 (indirect_ref_may_alias_decl_p): Do not call
7875 nonoverlapping_component_refs_p.
7876 (indirect_refs_may_alias_p): Likewise.
7878 2019-07-02 Jan Hubicka <jh@suse.cz>
7880 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
7881 to clobber of return value.
7883 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7885 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
7886 for is_neon_type instructions that have not already been categorized.
7888 2019-07-02 Richard Biener <rguenther@suse.de>
7890 PR tree-optimization/58483
7891 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
7892 for MEM_REF base hashing.
7893 (equal_mem_array_ref_p): Likewise for base comparison.
7895 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7897 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
7899 (signbit<mode>2): Use that name. Simplify.
7901 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
7904 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
7905 Tune heuristic from PR71016 to allow MIN / MAX.
7907 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7909 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
7911 (abs<mode>2): Use that name. Simplify.
7913 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7915 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
7917 (neg<mode>2): Use that name. Simplify.
7919 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7921 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
7923 (abs<mode>2): Use that name. Simplify.
7925 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7927 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
7929 (neg<mode>2): Use that name. Simplify.
7931 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
7933 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
7934 ("enabled" attribute): Handle sse_noavx isa attribute.
7935 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
7936 Use TARGET_SSE && SSE_REGNO_P in split condition.
7937 (*vec_dupv2sf): Ditto.
7939 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7941 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
7943 (floatsi<mode>2): Use that name. Simplify.
7945 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7947 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
7949 (extenddf<mode>2_vsx): Make this a parameterized name.
7950 (extenddf<mode>2): Use those names. Simplify.
7952 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7954 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
7956 (eh_return): Use that name. Simplify.
7958 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7960 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
7961 (doloop_end): Use that name. Simplify.
7963 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7965 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
7967 (indirect_jump): Use that name. Simplify.
7969 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7971 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
7973 (abs<mode>2): Use that name. Simplify.
7975 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7977 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
7979 (fix_trunc<mode>si2): Use that name. Simplify.
7981 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7983 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
7984 (allocate_stack): Use that name. Simplify.
7986 2019-07-01 Martin Sebor <msebor@redhat.com>
7989 * hash-map.h (hash_map::put): On insertion invoke element ctor.
7990 (hash_map::get_or_insert): Same. Reformat comment.
7991 * hash-set.h (hash_set::add): On insertion invoke element ctor.
7992 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7993 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7994 * hash-table.h (hash_table::operator=): Prevent copy assignment.
7995 (hash_table::hash_table (const hash_table&)): Use copy ctor
7996 instead of assignment to copy elements.
7998 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
7999 John David Anglin <danglin@gcc.gnu.org>
8002 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
8003 using saved frame pointer.
8005 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
8008 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
8009 Add frame clobber and schedule blockage.
8011 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
8013 * doc/invoke.texi (Link Options): Further editorial changes to
8014 -flinker-output docs.
8016 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8018 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
8019 Load both operands of a PLUS into registers separately.
8021 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
8023 * config/s390/vector.md: Fix shift count operand printing.
8025 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8027 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
8029 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8031 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
8032 Use recog_data to test for an output operand.
8034 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8036 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
8037 exclude any others that are disparaged or that are bound to need
8039 (ira_get_dup_out_num): Expand comment.
8041 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8043 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
8044 constraint string for each operand/alternative combo. Only handle
8045 '%' at the start of constraint strings, and look for it outside
8048 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8050 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
8051 alternative_mask instead of HARD_REG_SET to represent a
8052 bitmask of alternatives.
8053 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8054 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
8056 2019-07-01 Martin Liska <mliska@suse.cz>
8058 * edit-context.c (test_applying_fixits_unreadable_file): Do not
8059 use () for a constructor call.
8060 (test_applying_fixits_line_out_of_range): Likewise.
8061 * ggc-page.c (alloc_page): Use (void *) for %p printf format
8063 (free_page): Likewise.
8065 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
8067 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
8068 parameter names to match usage (no functional change).
8069 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
8071 2019-07-01 Richard Biener <rguenther@suse.de>
8073 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
8075 (pass_fre::execute): Honor it.
8076 * passes.def: Adjust pass_fre invocations to allow iterating,
8077 add non-iterating pass_fre before late threading/dom.
8079 2019-07-01 Richard Biener <rguenther@suse.de>
8081 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
8082 TARGET_MEM_REF handling to also handle address-taken ones.
8084 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
8086 * doc/sourcebuild.texi (Effective-Target Keywords, Other
8087 hardware attributes): Document avx512vp2intersect.
8089 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8091 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
8092 (abs<mode>2): New expander.
8093 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
8094 Use CODE_FOR_ssse3_absv8qi2.
8095 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
8096 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
8098 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8100 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
8101 to sse, sse_noavx and avx. Update all uses.
8103 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8105 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
8106 (*mmx_<plusminus_insn><mode>3): Ditto.
8107 (*mmx_mulv4hi3"): Ditto.
8108 (*mmx_smulv4hi3_highpart): Ditto.
8109 (*mmx_umulv4hi3_highpart): Ditto.
8110 (*mmx_pmaddwd): Ditto.
8111 (*sse2_umulv1siv1di3): Ditto.
8112 (*mmx_<code>v4hi3): Ditto.
8113 (*mmx_<code>v8qi3): Ditto.
8114 (mmx_ashr<mode>3): Ditto.
8115 ("mmx_<shift_insn><mode>3): Ditto.
8116 (*mmx_eq<mode>3): Ditto.
8117 (mmx_gt<mode>3): Ditto.
8118 (mmx_andnot<mode>3): Ditto.
8119 (*mmx_<code><mode>3): Ditto.
8120 (*mmx_pinsrw): Ditto.
8121 (*mmx_pextrw): Ditto.
8122 (mmx_pshufw_1): Ditto.
8123 (*mmx_uavgv8qi3): Ditto.
8124 (*mmx_uavgv4hi3): Ditto.
8125 ("mmx_psadbw): Ditto.
8126 * config/i386/sse.md (sse_cvtps2pi): Ditto.
8127 (sse_cvttps2pi): Ditto.
8128 (ssse3_pmaddubsw): Ditto.
8129 (*ssse3_pmulhrswv4hi3): Ditto.
8130 (ssse3_psign<mode>3): Ditto.
8132 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
8134 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
8135 adjustment for bit-fields to all aggregate types.
8137 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
8139 * config/rs6000/predicates.md (pcrel_address): Use
8140 SYMBOL_REF_LOCAL_P to determine if a label is local.
8141 (pcrel_external_address): New predicate.
8142 (non_prefixed_mem_operand): Delete, predicate not used.
8143 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
8144 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
8146 (SYMBOL_REF_PCREL_P): Likewise.
8149 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
8151 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
8152 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
8153 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
8155 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
8157 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
8158 override on extra_headers.
8160 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
8162 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
8163 * config/darwin-driver.c (darwin_default_min_version): Remove newline
8165 (darwin_driver_init): Likewise.
8167 2019-06-28 Jan Beulich <jbeulich@suse.com>
8169 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
8170 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
8171 Eliminate redundant alternative.
8173 2019-06-28 Jan Beulich <jbeulich@suse.com>
8175 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
8176 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
8179 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
8181 * config/arc/arc.c (arc_rtx_costs): All short instructions are
8182 having a lower cost regardless of the speed option.
8184 2019-06-28 Jan Beulich <jbeulich@suse.com>
8186 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
8187 vector_operand plus, on both alternatives, "Bm" constraint.
8189 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
8191 * config/arm/arm.md: Remove redundant constraints from
8192 define_expand but leave reload_inm and reload_outm patterns
8193 untouched since they need special constraints to work.
8194 * config/arm/arm-fixed.md: Remove redundant constraints from
8196 * config/arm/iwmmxt.md: Likewise.
8197 * config/arm/neon.md: Likewise.
8198 * config/arm/sync.md: Likewise.
8199 * config/arm/thumb1.md: Likewise.
8200 * config/arm/vec-common.md: Likewise.
8202 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
8204 * doc/install.texi: Document --disable-tm-clone-registry.
8206 2019-06-27 Jakub Jelinek <jakub@redhat.com>
8209 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
8212 PR tree-optimization/91010
8213 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
8214 return true. Otherwise, don't call operand_equal_p if offset1 or
8215 offset2 is NULL and just return false.
8217 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8219 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
8220 user-specified float mode choice for kernel mode code.
8222 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8224 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
8227 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8229 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
8230 use longcall for 64b code.
8232 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
8234 * builtins.c (get_memory_rtx): Fix comment.
8235 * optabs.def (movmem_optab): Change to cpymem_optab.
8236 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
8237 (emit_block_move_hints): Change movmem to cpymem.
8238 * defaults.h: Change movmem to cpymem.
8239 * targhooks.c (get_move_ratio): Change movmem to cpymem.
8240 (default_use_by_pieces_infrastructure_p): Ditto.
8241 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
8242 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
8244 * config/aarch64/aarch64.h: Change movmem to cpymem.
8245 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
8246 * config/alpha/alpha.h: Change movmem to cpymem in comment.
8247 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
8249 * config/arc/arc-protos.h: Change movmem to cpymem.
8250 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
8251 * config/arc/arc.h: Change movmem to cpymem in comment.
8252 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
8253 * config/arm/arm-protos.h: Change movmem to cpymem in names.
8254 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
8255 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
8256 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
8257 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
8258 * config/avr/avr-protos.h: Change movmem to cpymem.
8259 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
8260 avr_out_movmem): Change movmem to cpymem.
8261 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
8262 Change movmem to cpymem.
8263 * config/bfin/bfin-protos.h: Change movmem to cpymem.
8264 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
8265 Change movmem to cpymem.
8266 * config/bfin/bfin.h: Change movmem to cpymem in comment.
8267 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
8268 * config/c6x/c6x-protos.h: Change movmem to cpymem.
8269 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
8270 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
8271 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
8272 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
8273 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
8274 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
8275 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
8276 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
8277 expand_small_cpymem_or_setmem,
8278 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
8279 expand_set_or_cpymem_constant_prologue,
8280 ix86_expand_set_or_cpymem): Change movmem to cpymem.
8281 * config/i386/i386-protos.h: Change movmem to cpymem.
8282 * config/i386/i386.h: Change movmem to cpymem in comment.
8283 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
8284 (setmem<mode>): Change expansion function name.
8285 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
8286 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
8287 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
8288 * config/m32c/m32c-protos.h: Change movmem to cpymem.
8289 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
8290 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
8291 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
8293 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
8294 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
8295 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
8296 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
8297 Change movmem to cpymem.
8298 * config/mips/mips.h: Change movmem to cpymem.
8299 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
8300 * config/nds32/nds32-memory-manipulation.c
8301 (nds32_expand_movmemsi_loop_unknown_size,
8302 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
8303 nds32_expand_movmemsi_unroll,
8304 nds32_expand_movmemsi): Change movmem to cpymem.
8305 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
8306 * config/nds32/nds32-protos.h: Change movmem to cpymem.
8307 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
8308 (pa_adjust_insn_length): Change call to compute_movmem_length.
8309 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
8310 movmemdi, movmemdi_prereload,
8311 movmemdi_postreload): Change movmem to cpymem.
8312 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
8313 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
8314 * config/riscv/riscv.c: Change movmem to cpymem in comment.
8315 * config/riscv/riscv.h: Change movmem to cpymem.
8316 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
8317 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
8318 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
8320 * config/s390/s390-protos.h: Change movmem to cpymem.
8321 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
8322 s390_expand_insv): Change movmem to cpymem.
8323 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
8324 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
8325 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
8326 * config/sparc/sparc.h: Change movmem to cpymem in comment.
8327 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
8328 for nonexistent function.
8329 * config/vax/vax.h: Change movmem to cpymem in comment.
8330 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
8331 * config/visium/visium.h: Change movmem to cpymem in comment.
8332 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
8333 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
8334 * doc/md.texi: Change movmem to cpymem and update description to match.
8335 * doc/rtl.texi: Change movmem to cpymem.
8336 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
8337 * doc/tm.texi: Regenerate.
8339 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
8341 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
8342 -fvariable-expansion-in-unroller by default.
8343 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
8346 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
8349 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8350 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8352 * config.gcc(rs6000-*-*): Define target_gtfiles.
8354 2019-06-27 Jan Hubicka <jh@suse.cz>
8356 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
8357 (add_type_duplicate): When odr hash is not allocated, to nothing.
8358 (odr_based_tbaa_p): New function.
8359 (set_type_canonical_for_odr_type): New function.
8360 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
8361 set_type_canonical_for_odr_type): New.
8362 * tree.c (gimple_canonical_types_compatible_p): ODR types with
8363 ODR based TBAA are not equivalent to non-ODR types.
8365 2019-06-27 Martin Liska <mliska@suse.cz>
8367 PR tree-optimization/90974
8368 PR rtl-optimization/90975
8369 PR rtl-optimization/90976
8371 PR tree-optimization/91017
8372 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
8374 * lra.c (lra_set_insn_recog_data): Remove a leftover from
8375 initial commit of IRA.
8376 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
8378 * tree-vect-loop.c (vect_create_epilog_for_reduction):
8379 Remove unused mode1.
8380 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
8383 2019-06-27 Jakub Jelinek <jakub@redhat.com>
8386 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
8387 instead of register_operand for operands[1], add m to its constraints
8388 if operands[2] uses "C" constraint. Ensure in condition that if
8389 operands[2] is not 0, then operands[1] is not a MEM. For last two
8390 alternatives, use unaligned loads instead of aligned if operands[1] is
8393 2019-06-27 Martin Liska <mliska@suse.cz>
8395 * asan.c (asan_emit_allocas_unpoison): Remove obviously
8397 * bt-load.c (move_btr_def): Likewise.
8398 * builtins.c (expand_builtin_apply_args_1): Likewise.
8399 (expand_builtin_apply): Likewise.
8400 * cfgexpand.c (expand_asm_stmt): Likewise.
8401 (construct_init_block): Likewise.
8402 * cfghooks.c (verify_flow_info): Likewise.
8403 * cfgloopmanip.c (remove_path): Likewise.
8404 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
8405 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
8406 * combine.c (simplify_if_then_else): Likewise.
8407 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
8408 (choose_basereg): Likewise.
8409 (ix86_expand_prologue): Likewise.
8410 (ix86_preferred_output_reload_class): Likewise.
8411 * cselib.c (cselib_record_sets): Likewise.
8412 * df-scan.c (df_scan_alloc): Likewise.
8413 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
8414 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
8415 * emit-rtl.c (try_split): Likewise.
8416 * graphite-scop-detection.c (assign_parameter_index_in_region):
8418 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
8419 * ira-color.c (setup_profitable_hard_regs): Likewise.
8420 * ira.c (rtx_moveable_p): Likewise.
8421 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8422 * read-rtl.c (read_subst_mapping): Likewise.
8423 * regrename.c (scan_rtx): Likewise.
8424 * reorg.c (fill_slots_from_thread): Likewise.
8425 * tree-inline.c (tree_function_versioning): Likewise.
8426 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
8427 * tree-ssa-sink.c (statement_sink_location): Likewise.
8428 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8429 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
8430 (vect_create_epilog_for_reduction): Likewise.
8431 * tree.c (build_nonstandard_integer_type): Likewise.
8433 2019-06-27 Richard Biener <rguenther@suse.de>
8435 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
8437 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
8439 PR tree-optimization/89772
8440 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
8441 out-of-bound accesses checking.
8443 2019-06-27 Martin Liska <mliska@suse.cz>
8445 PR tree-optimization/91014
8446 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
8447 when LHS is NULL_TREE.
8449 2019-06-27 Martin Liska <mliska@suse.cz>
8451 * symbol-summary.h (traverse): Pass
8452 argument a to the call of callback.
8453 (gt_ggc_mx): Mark arguments as unused.
8454 (gt_pch_nx): Likewise.
8456 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
8459 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
8462 2019-06-26 Jeff Law <law@redhat.com>
8464 PR tree-optimization/90883
8465 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
8466 (delete_dead_or_redundant_assignment): Likewise.
8468 PR tree-optimization/90883
8469 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
8470 * tree-ssa-dse.c: Update various comments to distinguish between
8471 dead and redundant stores.
8472 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
8473 (dse_optimize_redundant_stores): New function.
8474 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
8475 Distinguish between dead and redundant calls in dump output. All
8477 (delete_dead_or_redundant_assignment): Similarly for assignments.
8478 (dse_optimize_stmt): Handle _CHK variants. For statements which
8479 store 0 into multiple memory locations, try to prove a subsequent
8482 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
8485 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
8486 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
8488 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8490 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
8491 (branch_islands): New extern.
8492 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
8493 * config/rs6000/rs6000.c: .. here.
8495 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8497 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
8498 (powerpc*-*-*) ... to here.
8500 2019-06-26 Jeff Law <law@redhat.com>
8502 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
8503 memcpy, memmove and memset builtins.
8504 (maybe_trim_memstar_call): Likewise.
8506 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8508 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
8510 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8512 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8514 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8516 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
8518 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
8520 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
8523 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8525 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
8527 2019-06-26 Richard Biener <rguenther@suse.de>
8530 * tree-inline.c (remap_ssa_name): Copy SSA range info.
8532 2019-06-26 Richard Biener <rguenther@suse.de>
8534 * lto-streamer.h (lto_bitmap_alloc): Remove.
8535 (lto_bitmap_free): Likewise.
8536 * lto-streamer.c (lto_bitmap_alloc): Remove.
8537 (lto_bitmap_free): Likewise.
8538 (lto_obstack): Likewise.
8539 (lto_obstack_initialized): Likewise.
8540 * lto-streamer-out.c (lto_output): Use own obstack for local
8541 bitmap, free it consistently.
8543 2019-06-26 Jakub Jelinek <jakub@redhat.com>
8546 * config/i386/sse.md
8547 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
8548 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
8549 insns if operands[2] is misaligned_operand.
8551 2019-06-26 Li Jia He <helijia@linux.ibm.com>
8553 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
8555 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
8558 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8560 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
8562 2019-06-26 Martin Liska <mliska@suse.cz>
8564 PR tree-optimization/90973
8565 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
8566 epilogue_cost_vec instead of prologue_cost_vec for
8569 2019-06-26 Martin Liska <mliska@suse.cz>
8571 * bb-reorder.c (connect_better_edge_p): Add missing else
8572 statement in the middle of if-else statements.
8574 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
8575 H.J. Lu <hongjiu.lu@intel.com>
8576 Olga Makhotina <olga.makhotina@intel.com>
8578 * common/config/i386/i386-common.c
8579 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
8580 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
8581 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
8582 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
8583 (ix86_handle_option): Handle -mavx512vp2intersect.
8584 * config/i386/avx512vp2intersectintrin.h: New.
8585 * config/i386/avx512vp2intersectvlintrin.h: New.
8586 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
8587 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8589 * config/i386/i386-builtin-types.def: Add new types.
8590 * config/i386/i386-builtin.def: Add new builtins.
8591 * config/i386/i386-builtins.c: (enum processor_features): Add
8592 F_AVX512VP2INTERSECT.
8593 (static const _isa_names_table isa_names_table): Ditto.
8594 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8595 __AVX512VP2INTERSECT__.
8596 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
8597 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
8598 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
8599 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
8600 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
8601 * config/i386/i386-options.c (ix86_target_string): Add
8602 -mavx512vp2intersect.
8603 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
8604 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
8605 P2HImode and P2QImode.
8606 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
8607 number for P2QImode and P2HImode.
8608 (ix86_regmode_natural_size): New function.
8609 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
8610 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
8611 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
8612 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
8613 * config/i386/i386.opt: Add -mavx512vp2intersect.
8614 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
8615 avx512vp2intersectvlintrin.h.
8616 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
8617 (define_mode_iterator VI48_AVX512VP2VL): New.
8618 (avx512vp2intersect_2intersect<mode>,
8619 avx512vp2intersect_2intersectv16si): New define_insn patterns.
8620 * config.gcc: Add avx512vp2intersectvlintrin.h and
8621 avx512vp2intersectintrin.h to extra_headers.
8622 * doc/invoke.texi: Document -mavx512vp2intersect.
8624 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
8626 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
8628 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
8630 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
8631 savres_routine_syms, savres_routine_name, morestack_ref,
8632 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8633 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8634 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8635 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8636 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8637 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8638 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8639 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8640 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8641 get_stack_clash_protection_probe_interval,
8642 get_stack_clash_protection_guard_size,
8643 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8644 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8645 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8646 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8647 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8648 gen_frame_mem_offset, rs6000_savres_routine_name,
8649 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8650 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8651 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8652 rs6000_global_entry_point_prologue_needed_p,
8653 rs6000_get_separate_components, rs6000_components_for_bb,
8654 rs6000_disqualify_components, rs6000_emit_prologue_components,
8655 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8656 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8657 rs6000_output_savres_externs, rs6000_output_function_prologue,
8658 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8659 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8660 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8661 rs6000_output_function_epilogue, gen_add3_const,
8662 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8663 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8665 (machine_function): Moved to rs6000.h.
8666 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
8668 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
8669 savres_routine_syms, savres_routine_name, morestack_ref,
8670 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8671 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8672 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8673 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8674 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8675 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8676 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8677 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8678 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8679 get_stack_clash_protection_probe_interval,
8680 get_stack_clash_protection_guard_size,
8681 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8682 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8683 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8684 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8685 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8686 gen_frame_mem_offset, rs6000_savres_routine_name,
8687 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8688 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8689 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8690 rs6000_global_entry_point_prologue_needed_p,
8691 rs6000_get_separate_components, rs6000_components_for_bb,
8692 rs6000_disqualify_components, rs6000_emit_prologue_components,
8693 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8694 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8695 rs6000_output_savres_externs, rs6000_output_function_prologue,
8696 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8697 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8698 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8699 rs6000_output_function_epilogue, gen_add3_const,
8700 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8701 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8702 to here from rs6000.c.
8703 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
8704 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
8705 quad_address_offset_p) Moved to here from rs6000.c.
8706 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
8707 * config/config.gcc: Add new source file rs6000-logue.c to garbage
8710 2019-06-25 Martin Liska <mliska@suse.cz>
8712 * hash-table.c (hashtab_chk_error): Move here from ...
8713 * hash-table.h (hashtab_chk_error): ... here.
8715 2019-06-25 Martin Liska <mliska@suse.cz>
8717 PR tree-optimization/90978
8718 * df-scan.c (df_update_entry_block_defs): Remove dead else
8720 (df_update_exit_block_uses): Likewise.
8722 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
8723 Andrew Stubbs <ams@codesourcery.com>
8725 * config.gcc (thread_file): Set to gcn for AMD GCN.
8726 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
8727 (TARGET_EMUTLS_VAR_INIT): New hook.
8729 2019-06-25 Martin Jambor <mjambor@suse.cz>
8732 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
8734 2019-06-25 Richard Biener <rguenther@suse.de>
8736 PR tree-optimization/90930
8737 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
8738 into parallel form in the last pass instance.
8740 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
8742 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
8743 (arc_legitimize_pic_address): Simplify and cleanup the function.
8744 (SYMBOLIC_CONST): Remove.
8745 (prepare_pic_move): Likewise.
8746 (prepare_move_operands): Handle complex mov cases here.
8747 (arc_legitimize_address_0): Remove call to
8748 arc_legitimize_pic_address.
8749 (arc_legitimize_address): Remove call to
8750 arc_legitimize_tls_address.
8751 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
8752 (movhi_insn): Likewise.
8754 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8756 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
8758 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
8759 format of "__intN" types for UINTMAX_TYPE.
8760 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
8761 format of "__intN" types for SIZETYPE.
8762 * tree.c (build_common_tree_nodes): Accept "__intN__"
8763 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
8764 * doc/invoke.texi: Document that __intN__ disables pedantic
8767 2019-06-25 Jan Hubicka <jh@suse.cz>
8769 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
8770 base2_alias_set is non-zero before doing TBAA based disambiguation.
8772 2019-06-25 Martin Liska <mliska@suse.cz>
8774 PR tree-optimization/90973
8775 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
8776 of prologue and epilogue.
8778 2019-06-24 Jan Hubicka <jh@suse.cz>
8780 * ipa-utils.h (type_with_linkage_p): Verify that type is
8782 (odr_type_p): Remove extra return.
8783 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
8784 hash STRING_FLAG only for arrays and integers.
8785 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
8787 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8789 * print-tree.c (print_node): Print cxx-odr-p
8791 * tree.c (need_assembler_name_p): Also check that type
8793 (verify_type_variant): Update verification of SRING_FLAG;
8794 also check CXX_ODR_P.
8795 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
8796 (TYPE_STRING_FLAG): Use it.
8797 (TYPE_CXX_ODR_P): New macro.
8798 * dwarf2out.c (gen_array_type_die): First check that type
8799 is an array and then test string flag.
8801 2019-06-24 Richard Biener <rguenther@suse.de>
8803 PR tree-optimization/90972
8804 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
8805 in common code, dealing with STRING_CST properly.
8807 2019-06-24 Richard Biener <rguenther@suse.de>
8809 PR tree-optimization/90930
8810 PR tree-optimization/90316
8811 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
8814 2019-06-24 Martin Sebor <msebor@redhat.com>
8816 * tree-pretty-print.h: Remove unnecessary punctuation characters
8818 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
8820 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
8822 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
8823 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
8824 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
8826 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8828 * config/rs6000/darwin.h: Handle GCC target pragma.
8830 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8832 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
8834 2019-06-22 Jeff Law <law@redhat.com>
8836 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8838 2019-06-22 Jan Hubicka <jh@suse.cz>
8840 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
8841 give up on bitfields; continue searching for different refs
8844 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8846 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8847 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
8848 containing the offset as possible simd lane access. Look through
8849 widening conversion. Move the
8850 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
8852 2019-06-21 Richard Biener <rguenther@suse.de>
8854 PR tree-optimization/90930
8855 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
8856 flag on new stmts to avoid re-processing them.
8858 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
8860 PR c++/90875 - added -Wswitch-outside-range option
8861 * doc/invoke.texi (Wswitch-outside-range): Document.
8863 2019-06-21 Jeff Law <law@redhat.com>
8865 PR tree-optimization/90949
8866 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
8867 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
8869 2019-06-21 Richard Biener <rguenther@suse.de>
8872 * dwarf2out.c (prune_unused_types_walk): Always consider
8873 function-local extern declarations as used.
8875 2019-06-21 Richard Biener <rguenther@suse.de>
8877 PR tree-optimization/90913
8878 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
8879 the scalar variant of if-conversion versioning.
8881 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8883 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
8884 create another "omp scan inscan exclusive" array if
8885 !ctx->scan_inclusive.
8886 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
8887 (lower_omp_scan): Likewise.
8888 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
8889 2-bit bitfield for simd_lane_access_p member.
8890 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
8891 aux == (void *)-4 as simd lane access.
8892 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
8893 comment with permutations to show the canonical permutation order.
8894 (vectorizable_scan_store): Handle exclusive scan.
8895 (vectorizable_store): Call vectorizable_scan_store even for
8896 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
8898 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8899 "omp simd array" arrays with one byte elements.
8901 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
8903 * config/alpha/alpha.md (@unaligned_store<mode>):
8904 Rename from unaligned_store<mode>.
8905 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
8906 * config/alpha/sync.md (@load_locked_<mode>): Rename
8907 from load_locked_<mode>.
8908 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
8909 (@atomic_compare_and_swap<mode>_1): Rename
8910 from atomic_compare_and_swap<mode>_1.
8911 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
8912 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
8913 Use gen_reload_in_aligned and gen_unaligned_store.
8914 (emit_load_locked): Remove.
8915 (emit_store_conditional): Ditto.
8916 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
8917 (alpha_split_compare_and_swap): Ditto.
8918 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
8919 (alpha_split_compare_and_swap_12): Use gen_load_locked
8920 and gen_store_conditional.
8921 (alpha_split_atomic_exchange): Ditto.
8922 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
8923 (alpha_split_atomic_exchange_12): Use gen_load_locked
8924 and gen_store_conditional.
8926 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
8928 * config/aarch64/aarch64-errata.h: New file.
8929 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
8930 (CA53_ERR_843419_SPEC): Delete.
8931 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
8932 * config/aarch64/aarch64-linux.h: Likewise.
8933 * config/aarch64/aarch64-netbsd.h: Likewise.
8934 * config/aarch64/aarch64-freebsd.h: Likewise.
8936 2019-06-20 Marek Polacek <polacek@redhat.com>
8938 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
8940 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
8942 * config/rs6000/rs6000.md (isa attribute): Add support for
8943 for a future processor.
8945 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
8948 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
8949 standard scalar operation pattern for V2DF.
8950 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
8951 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
8952 (*ieee_<ieee_maxmin><mode>3): Likewise.
8953 (vec_setv2df_0): Likewise.
8955 2019-06-20 Jan Hubicka <jh@suse.cz>
8957 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
8958 parameter; it has no use in gimple memory model.
8959 (indirect_ref_may_alias_decl_p): Update.
8961 2019-06-20 Martin Liska <mliska@suse.cz>
8963 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
8966 2019-06-20 Jakub Jelinek <jakub@redhat.com>
8968 * tree-vect-stmts.c (enum scan_store_kind): New type.
8969 (scan_store_can_perm_p): Change last argument from int * to
8970 vec<enum scan_store_kind> *, record precisely which permutations
8971 need whole vector left shift or that plus VEC_COND_EXPR.
8972 (vectorizable_scan_store): Adjust caller, use whole vector left shift
8973 and additional VEC_COND_EXPR only for those iterations that need it.
8975 2019-06-20 Alexandre Oliva <oliva@adacore.com>
8977 * config.gcc: Fix ARM --with-fpu checking and error message.
8979 2019-06-19 Marek Polacek <polacek@redhat.com>
8981 PR c++/60364 - noreturn after first decl not diagnosed.
8982 * attribs.c (get_attribute_namespace): No longer static.
8983 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
8985 (attr_noreturn_exclusions): Make it extern.
8986 * attribs.h (get_attribute_namespace): Declare.
8987 * tree-inline.c (function_attribute_inlinable_p): Use
8990 2019-06-19 Martin Sebor <msebor@redhat.com>
8992 PR tree-optimization/90626
8993 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
8995 PR tree-optimization/90626
8996 * tree-ssa-strlen.c (strxcmp_unequal): New function.
8997 (handle_builtin_string_cmp): Call it.
8999 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
9001 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
9002 and DARWIN_NOPIE_SPEC.
9003 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
9004 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
9005 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
9006 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
9007 (DARWIN_EXPORT_DYNAMIC): Delete.
9008 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
9009 and pie options processing to darwin.h.
9010 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
9012 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
9014 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
9015 in computing the number of options to be moved.
9017 2019-06-19 Maya Rashish <coypu@sdf.org>
9019 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
9020 (CLEAR_INSN_CACHE) Use it.
9022 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
9024 * config/i386/i386.md (cmpstrnsi): Remove dead code.
9026 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
9029 * builtins.c (expand_builtin_setjmp_setup): Save
9030 hard_frame_pointer_rtx.
9031 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
9033 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
9035 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
9037 (remove_reg_equal_offset_note): Remove unused function.
9038 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
9040 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9041 (arc_builtin_setjmp_frame_value): Remove function.
9042 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9043 (avr_builtin_setjmp_frame_value): Remove function.
9044 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9045 (ix86_builtin_setjmp_frame_value): Remove function.
9046 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
9047 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9048 (sparc_builtin_setjmp_frame_value): Remove function.
9049 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9050 (vax_builtin_setjmp_frame_value): Remove function.
9051 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
9052 pointer if has_nonlocal_label.
9054 2019-06-19 Jakub Jelinek <jakub@redhat.com>
9056 * doc/md.texi: Document vec_shl_<mode> pattern.
9057 * optabs.def (vec_shl_optab): New optab.
9058 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
9059 argument, if == vec_shl_optab, check for left whole vector shift
9060 pattern rather than right shift.
9061 (expand_vec_perm_const): Add vec_shl_optab support.
9062 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
9064 * tree-vect-generic.c (lower_vec_perm): Support permutations which
9065 can be handled by vec_shl_optab.
9066 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
9067 (check_scan_store): Use it.
9068 (vectorizable_scan_store): If target can't do normal permutations,
9069 try to use whole vector left shifts and if needed a VEC_COND_EXPR
9071 * config/i386/sse.md (vec_shl_<mode>): New expander.
9073 * omp-low.c (lower_rec_input_clauses): Handle references properly
9075 (lower_omp_scan): Likewise.
9077 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9079 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
9080 mem_mode is BLKmode.
9082 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
9085 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
9086 pointer adjustment for the case of no callee-saved registers and
9087 stack frame bigger than 128 bytes.
9089 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9092 * omp-low.c (check_omp_nesting_restrictions): Handle
9093 GF_OMP_TARGET_KIND_OACC_DECLARE.
9095 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
9097 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
9098 (@add<mode>3_carry): Rename from add<mode>3_carry.
9099 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
9100 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
9101 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
9102 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
9103 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
9104 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
9105 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
9106 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
9107 (cmpstrnsi): Use gen_cmp_1.
9108 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
9109 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
9110 (@umonitor_<mode>): Rename from umonitor_<mode>.
9111 * config/i386/i386-expand.c (ix86_expand_copysign):
9112 Use gen_copysign3_const and gen_copysign3_var.
9113 (ix86_expand_xorsign): Use gen_xorsign3_1.
9114 (ix86_expand_branch): Use gen_sub3_carry_ccc,
9115 gen_sub3_carry_ccgz and gen_cmp1.
9116 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
9117 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
9118 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
9119 (ix86_split_lshr): Ditto.
9120 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
9122 2019-06-18 Jason Merrill <jason@redhat.com>
9124 * tree.c (build_constructor): Add MEM_STAT_DECL.
9126 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9128 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
9129 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
9130 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
9131 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
9132 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
9133 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
9134 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
9135 Use CC_NZC instead of CC.
9136 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
9137 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
9138 (aarch64_print_operand): Handle E_CC_NZCmode.
9139 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
9140 of gen_set_clobber_cc.
9142 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9144 * config/aarch64/aarch64-sve.md: Tabify file.
9146 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9148 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
9149 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
9150 * config/aarch64/aarch64-sve.md: Use it.
9152 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9154 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
9155 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
9156 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
9157 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
9158 (aarch64_expand_sve_vec_cmp_int): Use it.
9159 (aarch64_expand_sve_vec_cmp_float): Likewise.
9160 * config/aarch64/aarch64-sve.md: Likewise throughout.
9162 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9163 Kugan Vivekanandarajah <kuganv@linaro.org>
9165 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
9166 (*cond_<optab><mode>_z): Fold into...
9167 (*cond_<optab><mode>_any): ...here. Also handle cases in which
9168 operand 4 can be tied to operand 0 (either inherently or via RA).
9170 2019-06-18 Richard Biener <rguenther@suse.de>
9173 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
9174 as if optimized away.
9176 2019-06-18 Tom de Vries <tdevries@suse.de>
9178 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
9179 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
9180 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
9182 (define_insn "@set_softstack_<mode>"): ... this.
9183 (define_insn "omp_simt_enter_<mode>"): Rename to ...
9184 (define_insn "@omp_simt_enter_<mode>"): ... this.
9185 (define_insn "omp_simt_exit_<mode>"): Rename to ...
9186 (define_insn "@omp_simt_exit_<mode>"): ... this.
9188 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9190 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
9191 vf parameter. Restore the previous iv step of nscalars_step,
9192 but give it iv_type rather than compare_type. Tweak code order
9193 to match the comments.
9194 (vect_set_loop_condition_masked): Update accordingly.
9195 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
9196 for iv_precision. Tweak comment formatting.
9198 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
9200 * config/darwin.c: Strip trailing whitespace.
9202 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
9204 * config/darwin.c (darwin_emit_unwind_label): New default to false.
9205 (darwin_override_options): Set darwin_emit_unwind_label as needed.
9207 2019-06-18 Martin Jambor <mjambor@suse.cz>
9210 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
9211 caller does not have flag_ipa_cp set.
9213 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9215 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
9216 from "*fold_left_plus_<mode>", updated operands order.
9217 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
9218 * internal-fn.c (mask_fold_left_direct): New define.
9219 (expand_mask_fold_left_optab_fn): Likewise.
9220 (direct_mask_fold_left_optab_supported_p): Likewise.
9221 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
9222 * optabs.def (mask_fold_left_plus_optab): New optab.
9223 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
9224 masked internal_fn for a reduction ifn.
9225 (vectorize_fold_left_reduction): Add support for masking reductions.
9227 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
9230 * target.def (predict_doloop_p): New hook.
9231 * targhooks.h (default_predict_doloop_p): New declaration.
9232 * targhooks.c (default_predict_doloop_p): New function.
9233 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
9234 * doc/tm.texi: Regenerate.
9235 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
9236 (TARGET_PREDICT_DOLOOP_P): New macro.
9237 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
9239 2019-06-17 Jakub Jelinek <jakub@redhat.com>
9241 * omp-low.c (struct omp_context): Add scan_inclusive field.
9242 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
9244 (struct omplow_simd_context): Add lastlane member.
9245 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
9246 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
9248 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
9249 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
9250 (lower_omp_scan): New function.
9251 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
9252 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
9253 check 3rd argument if present rather than 2nd.
9254 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
9255 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
9257 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
9258 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
9260 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
9261 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
9262 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
9264 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
9265 IFN_GOMP_SIMD_LANE argument.
9266 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
9267 encoded ->aux value.
9268 * tree-vect-stmts.c: Include attribs.h.
9269 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
9270 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
9272 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
9273 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
9275 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
9278 * config/i386/i386.md (*nabstf2_1): New insn pattern.
9279 (*nabs<mode>2_1): Ditto.
9280 (nabs sse-reg splitter): New splitter.
9281 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
9283 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9286 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
9289 2019-06-17 Tom de Vries <tdevries@suse.de>
9291 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
9292 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
9293 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
9295 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
9297 (define_insn "omp_simt_enter_insn"): Rename to ...
9298 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
9299 match_operand 0, 1 and 2, as well as the unspec_volatile result.
9300 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
9301 gen_omp_simt_enter_si.
9302 (define_expand "omp_simt_exit"): New.
9303 (define_insn "omp_simt_exit"): Rename to ...
9304 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
9307 2019-06-17 Matthew Green <mrg@eterna.com.au>
9308 Maya Rashish <coypu@sdf.org>
9310 * config.gcc (aarch64*-*-netbsd*): New target.
9311 * config/aarch64/aarch64-netbsd.h: New file.
9312 * config/aarch64/t-aarch64-netbsd: Likewise.
9314 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9316 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
9317 the access path from base to first VIEW_CONVERT_EXPR or
9320 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9322 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
9323 access path on BIT_FIELD_REFs.
9325 2019-06-17 Martin Liska <mliska@suse.cz>
9328 * ipa-utils.h (odr_type_p): Remove dead code.
9330 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9332 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
9333 alternative Solaris 11.4 format.
9334 * configure: Regenerate.
9336 2019-06-17 Tom de Vries <tdevries@suse.de>
9338 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
9339 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
9341 (define_insn "call_value_insn"): Rename to ...
9342 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
9344 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
9347 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
9350 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
9351 frame clobbers and schedule block.
9352 (builtin_longjmp): Likewise.
9354 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9356 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
9357 describe how to perform MSPABI compliant 64-bit shift.
9358 * config/msp430/msp430.md (ashldi3): New define_expand.
9359 (ashrdi3): New define_expand.
9360 (lshrdi3): New define_expand.
9362 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9364 * doc/sourcebuild.texi: Document new effective target keyword
9367 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9369 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
9370 indirect_refs_may_alias_p): Revert accidental commits.
9372 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
9373 at the end of structures.
9375 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9377 * config/darwin.c (machopic_indirect_call_target): Use renamed
9378 darwin_picsymbol_stubs to decide on output.
9379 (darwin_override_options): Handle darwin_picsymbol_stubs.
9380 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
9381 (LD64_VERSION): Revise default.
9382 * config/darwin.opt: (mpic-symbol-stubs): New option.
9383 (darwin_picsymbol_stubs): New variable.
9384 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
9385 rename to TARGET_MACHO_PICSYM_STUBS.
9386 * config/i386/i386.c (output_pic_addr_const): Likewise.
9387 * config/i386/i386.h Likewise.
9388 * config/rs6000/darwin.h: Likewise.
9389 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
9390 darwin_picsymbol_stubs.
9392 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9394 * config/darwin.opt (prebind, noprebind, seglinkedit,
9395 noseglinkedit): Add RejectNegative.
9397 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9399 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
9400 in my previous patch.
9402 2019-06-16 Tom de Vries <tdevries@suse.de>
9404 PR tree-optimization/89376
9405 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
9407 2019-06-15 Maya Rashish <coypu@sdf.org>
9409 * doc/invoke.texi (Spec Files): Update location of the
9412 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
9414 * doc/extend.texi (Common Function Attributes): Clarify
9415 no_sanitize. Fix grammar.
9417 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
9419 * tree-ssa-alias.c (alias_stats): Add
9420 nonoverlapping_component_refs_p_may_alias,
9421 nonoverlapping_component_refs_p_no_alias,
9422 nonoverlapping_component_refs_of_decl_p_may_alias,
9423 nonoverlapping_component_refs_of_decl_p_no_alias.
9424 (dump_alias_stats): Dump them.
9425 (nonoverlapping_component_refs_of_decl_p): Add stats.
9426 (nonoverlapping_component_refs_p): Add stats; do not stop on first
9429 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
9431 * config/i386/i386.md (and<mode>3): Generate zero-extends for
9432 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
9434 (*anddi3_doubleword): Split before reload. Merge with
9435 anddi->zext pre-reload splitter.
9436 (*andndi3_doubleword): Split before reload.
9437 (*<code>di3_doubleword): Ditto.
9438 (*one_cmpldi2_doubleword): Ditto.
9440 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9443 * gimplify.c: Include omp-offload.h and context.h.
9444 (gimplify_bind_expr): Add "omp declare target" attributes
9445 to static block scope variables inside of target region or target
9448 2019-06-15 Tom de Vries <tdevries@suse.de>
9450 PR tree-optimization/90009
9451 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
9452 Return NULL if bb contains IFN_UNIQUE.
9454 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
9456 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
9457 (un): New define_mode_attr.
9458 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
9459 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
9460 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
9462 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
9464 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
9466 * config/darwin.opt: Add RejectNegative where needed, reorder
9467 and add minimal functional descriptions.
9469 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
9471 PR rtl-optimization/90765
9472 * calls.c (update_stack_alignment_for_call): New function.
9473 (expand_call): Call update_stack_alignment_for_call when
9474 outgoing parameter is passed in the stack.
9475 (emit_library_call_value_1): Likewise.
9476 * function.c (locate_and_pad_parm): Don't update
9477 stack_alignment_needed and preferred_stack_boundary.
9479 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
9482 * config/i386/i386-features.c
9483 (dimode_scalar_chain::compute_convert_gain): Replace
9484 mmxsse_to_integer with sse_to_integer.
9485 * config/i386/i386.c (ix86_register_move_cost): Verify that
9486 moves between MMX and non-MMX units require secondary memory.
9487 Correct costs of moves between SSE and integer units.
9488 * config/i386/i386.h (processor_costs): Rename cost of moving
9489 SSE register to integer to sse_to_integer. Rename cost of
9491 2019-06-14 Matt Thomas <matt@3am-software.com>
9492 Matthew Green <mrg@eterna.com.au>
9493 Nick Hudson <skrll@netbsd.org>
9494 Maya Rashish <coypu@sdf.org>
9495 Richard Earnshaw <rearnsha@arm.com>
9497 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
9498 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
9499 * config/arm/netbsd-eabi.h: New file.
9500 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
9502 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
9503 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
9504 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
9505 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
9507 2019-06-14 Richard Biener <rguenther@suse.de>
9509 * tree-loop-distribution.c (classify_partition): Return
9510 whether a reduction appeared in all partitions and do not
9511 stop builtin detection because of this.
9512 (distribute_loop): Sort a non-builtin partition last if
9513 there's a reduction in all partitions and make sure the
9514 partition prevailing as last is not a builtin.
9516 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
9519 * ipa-prop.c (add_to_agg_contents_list): New function.
9520 (clobber_by_agg_contents_list_p): Likewise.
9521 (extract_mem_content): Likewise.
9522 (get_place_in_agg_contents_list): Delete.
9523 (determine_known_aggregate_parts): Renamed from
9524 determine_locally_known_aggregate_parts. New parameter
9527 2019-06-13 Martin Sebor <msebor@redhat.com>
9529 PR tree-optimization/90662
9530 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
9533 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9536 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
9537 dbase is not TARGET_MEM_REF.
9539 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9541 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
9543 (and<mode>3): Use gen_extend_insn instead of indirect functions.
9544 Do not generate DImode extends for 32bit targets.
9545 (and->zext post-reload splitter): Use gen_extend_insn
9546 instead of indirect functions.
9547 (anddi->zext pre-reload splitter): New.
9548 (*zext<mode>_doubleword_and): Remove.
9549 (*zext<mode>_doubleword): Ditto.
9550 (*zextsi_doubleword): Dittto.
9552 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9554 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
9555 Use gen_sub3_insn instead of indirect function.
9556 (ix86_expand_ashl_const): Use gen_add2_insn instead of
9558 (ix86_adjust_counter): Ditto.
9560 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
9561 Lijia He <helijia@linux.ibm.com>
9563 PR tree-optimization/77820
9564 * tree-ssa-threadedge.c
9565 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
9567 (thread_across_edge): Add call to
9568 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
9570 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
9572 * config/darwin-driver.c (validate_macosx_version_min): New.
9573 (darwin_default_min_version): Cleanup and validate supplied version.
9574 (darwin_driver_init): Likewise and push cleaned version into opts.
9576 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9578 PR tree-optimization/90869
9579 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
9580 converts in MEM_REF referencing decl rather than view converts
9581 from decl type to MEM_REF type.
9583 2019-06-13 Richard Biener <rguenther@suse.de>
9585 PR tree-optimization/90856
9586 * tree-sra.c (build_ref_for_model): Only use
9587 build_reconstructed_reference when address-spaces are the same.
9589 2019-06-13 Jakub Jelinek <jakub@redhat.com>
9591 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
9592 wrap ei variable name in the declaration in ()s.
9593 (nvptx_single): Actually use mode_label variable. Formatting fix.
9595 2019-06-13 Richard Biener <rguenther@suse.de>
9597 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
9598 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
9599 also return the condition stmt.
9600 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
9601 loop we can version and version that, reusing the loop version
9602 created by if-conversion instead of versioning again.
9604 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
9606 * gimple-loop-versioning.cc (prune_loop_conditions): Use
9608 * tree-vrp (value_range_base::may_contain_p): Call into
9610 (value_inside_range): Make private inside value_range_base class.
9611 Take min/max from *this.
9612 (range_includes_p): Remove.
9613 * tree-vrp.h (value_range_base): Add value_inside_range.
9614 (range_includes_p): Remove.
9615 (range_includes_zero_p): Call may_contain_p.
9616 * vr-values.c (compare_range_with_value): Same.
9618 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
9620 * doc/extend.texi (ARC Function Attributes): Update info.
9622 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9624 PR tree-optimization/89713
9625 * doc/invoke.texi (-ffinite-loops): Document new option.
9626 * common.opt (-ffinite-loops): New option.
9627 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
9628 IFN_GOACC_LOOP calls as necessary.
9629 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
9631 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
9632 IFN_GOACC_LOOP call is not used.
9633 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
9635 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9638 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
9639 compare_type is not with Pmode size, we will create an IV with
9640 Pmode size with truncated use (i.e. converted to the correct type).
9641 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
9642 (vect_iv_limit_for_full_masking): New. Factored out of
9643 vect_set_loop_condition_masked.
9644 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
9645 (vect_iv_limit_for_full_masking): Declare.
9647 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9650 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
9651 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
9652 (get_alias_ptr_type_for_ptr_address): Likewise.
9653 (add_iv_candidate_for_use): Add scaled index candidate if useful.
9654 * tree-ssa-address.c (preferred_mem_scale_factor): New.
9655 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
9658 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9660 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
9662 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
9664 * common/config/pru/pru-common.c: New file.
9665 * config.gcc: Add PRU target.
9666 * config/pru/alu-zext.md: New file.
9667 * config/pru/constraints.md: New file.
9668 * config/pru/predicates.md: New file.
9669 * config/pru/pru-opts.h: New file.
9670 * config/pru/pru-passes.c: New file.
9671 * config/pru/pru-pragma.c: New file.
9672 * config/pru/pru-protos.h: New file.
9673 * config/pru/pru.c: New file.
9674 * config/pru/pru.h: New file.
9675 * config/pru/pru.md: New file.
9676 * config/pru/pru.opt: New file.
9677 * config/pru/t-pru: New file.
9678 * doc/extend.texi: Document PRU pragmas.
9679 * doc/invoke.texi: Document PRU-specific options.
9680 * doc/md.texi: Document PRU asm constraints.
9682 2019-06-12 Martin Sebor <msebor@redhat.com>
9685 * tree-pretty-print.c (dump_mem_ref): New function. Include
9686 MEM_REF type in output when different size than operand.
9687 (dump_generic_node): Move code to dump_mem_ref and call it.
9689 2019-06-12 Martin Sebor <msebor@redhat.com>
9691 PR tree-optimization/90662
9692 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
9695 2019-06-12 Tom de Vries <tdevries@suse.de>
9697 PR tree-optimization/90009
9698 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
9700 2019-06-12 Martin Liska <mliska@suse.cz>
9702 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
9704 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
9705 * mem-stats.h (mem_alloc_description::mem_alloc_description):
9706 Do not sanitize created maps.
9708 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
9710 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
9711 value_range::singleton_p.
9712 * tree-vrp.c (value_range_constant_singleton): Remove.
9713 * tree-vrp.h (value_range_constant_singleton): Remove.
9714 * vr-values.c (vr_values::singleton): Use
9715 value_range::singleton_p.
9717 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9720 * cfgexpand.c (align_local_variable): Add really_expand argument,
9721 don't SET_DECL_ALIGN if it is false.
9722 (add_stack_var): Add really_expand argument, pass it through to
9723 align_local_variable.
9724 (expand_one_stack_var_1): Pass true as really_expand to
9725 align_local_variable.
9726 (expand_one_ssa_partition): Pass true as really_expand to
9728 (expand_one_var): Pass really_expand through to add_stack_var.
9730 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9732 * config/arm/iterators.md (VABAL): New int iterator.
9733 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
9734 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
9735 UNSPEC_VABAL_U values.
9737 2019-06-12 Martin Liska <mliska@suse.cz>
9739 * value-prof.c (stream_out_histogram_value): Only first value
9742 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9745 * symtab.c (symtab_node::set_section): Allow being called on aliases
9746 as long as they aren't analyzed yet.
9748 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
9750 * config/mips/mips.c (mips_final_postscan_insn): Modify call
9751 to `mips_set_text_contents_type' to indicate whether a
9752 non-debug insn follows.
9754 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
9756 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
9757 enabling -mpcrel by default.
9758 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
9759 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
9760 that the test against -mcpu=future is done first. Then test if
9761 -mprefixed-addr is on for -mpcrel.
9762 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
9764 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9767 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
9770 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9772 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
9774 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
9776 PR c++/90449 - add -Winaccessible-base option.
9777 * doc/invoke.texi (Winaccessible-base): Document.
9779 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9781 PR tree-optimization/62041
9782 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
9784 2019-06-11 Jason Merrill <jason@redhat.com>
9786 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
9787 * tree.c (get_tree_code_name): Likewise.
9788 * print-tree.c (print_node): Only briefly print a node with an
9791 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9794 * trans-mem.c (tm_memopt_compute_available): Add assertion
9795 that blocks is not empty. Formatting fix.
9797 2019-06-11 Martin Liska <mliska@suse.cz>
9800 * hash-table.h: Extend create_gcc, add one parameter
9801 that is passed into hash_table::hash_table.
9803 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
9805 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
9807 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
9808 Emit clobber also for non-sse operations.
9809 (ix86_split_fp_absneg_operator): New function.
9810 * config/i386/i386.md (SSEMODEF): New mode iterator.
9811 (ssevecmodef): New mode attribute.
9812 (<code>tf2): Use absneg code iterator.
9813 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
9814 Add three-operand AVX alternatives.
9815 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
9816 Use absneg code iterator and X87MODEF mode iterator.
9817 (absneg fp_reg non-sse splitter): Call absneg code iterator
9818 and X87MODEF mode iterator.
9819 (absneg general_reg non-sse splitter): Use absneg code iterator
9820 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
9821 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
9822 code iterator. Add three-operand AVX alternative.
9823 (absneg sse_reg splitter): Use absneg code iterator
9824 and SSEMODEF mode iterator. Handle AVX operands.
9825 (absneg fp_reg splitter): Use absneg code iterator
9826 and MODEF mode iterator.
9827 (absneg general_reg splitter): Merge splitters using MODEF mode
9828 iterator. Use absneg code iterator. Call
9829 ix86_split_fp_absneg_operator.
9830 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
9831 Do not enable for non-sse modes before reload.
9834 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
9835 ssevecmodef mode attribute instaed of CSGNVMODE.
9836 (copysign<mode>3_const): Ditto.
9837 (copysign<mode>3_var): Ditto.
9838 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
9839 Use absneg code iterator. Simplify code using std::swap.
9840 * config/i386/predicates.md (absneg_operator): Remove.
9842 2019-06-10 Martin Sebor <msebor@redhat.com>
9844 * gimple-fold.c (get_range_strlen): Update comment that didn't
9845 make it into r267503 or related commits.
9847 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
9849 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
9850 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
9852 2019-06-10 Jakub Jelinek <jakub@redhat.com>
9854 * tree.def (OMP_SCAN): New tree code.
9855 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
9856 OMP_CLAUSE_EXCLUSIVE.
9857 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
9858 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
9859 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
9860 OMP_CLAUSE_{IN,EX}CLUSIVE.
9861 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9862 * tree-nested.c (convert_nonlocal_reference_stmt,
9863 convert_local_reference_stmt, convert_gimple_call): Handle
9865 * tree-pretty-print.c (dump_omp_clause): Handle
9866 OMP_CLAUSE_{IN,EX}CLUSIVE.
9867 (dump_generic_node): Handle OMP_SCAN.
9868 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
9869 * gimple.h (gomp_scan): New type.
9870 (is_a_helper <gomp_scan *>::test,
9871 is_a_helper <const gomp_scan *>::test): New templates.
9872 (gimple_build_omp_scan): Declare.
9873 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
9874 gimple_omp_scan_set_clauses): New inline functions.
9875 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
9876 * gimple.c (gimple_build_omp_scan): New function.
9877 (gimple_copy): Handle GIMPLE_OMP_SCAN.
9878 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
9879 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
9880 GIMPLE_OMP_TASKGROUP.
9881 (dump_gimple_omp_scan): New function.
9882 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
9883 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
9884 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
9885 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
9886 (is_gimple_stmt): Handle OMP_SCAN.
9887 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
9888 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9889 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
9890 mentioned in nested #pragma omp scan. Handle
9891 OMP_CLAUSE_{IN,EX}CLUSIVE.
9892 (gimplify_expr): Handle OMP_SCAN.
9893 * omp-low.c (check_omp_nesting_restrictions): For parent context,
9894 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
9896 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
9899 2019-06-10 Martin Liska <mliska@suse.cz>
9901 * ipa-cp.c (ignore_edge_p): New function.
9902 (build_toporder_info): Use it.
9903 * ipa-inline.c (ignore_edge_p): New function.
9904 (inline_small_functions): Use it.
9905 * ipa-pure-const.c (ignore_edge_for_nothrow):
9906 Verify opt_for_fn for caller and callee.
9907 (ignore_edge_for_pure_const): Likewise.
9908 * ipa-reference.c (ignore_edge_p): Extend to check
9910 * ipa-utils.c (searchc): Refactor.
9911 * ipa-utils.h: Fix coding style.
9913 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9915 * config/arc/arc.c (arc_rtx_costs): Update costs.
9917 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9919 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
9920 (arc_split_ior): Likewise.
9921 (arc_check_mov_const): Likewise.
9922 (arc_split_mov_const): Likewise.
9923 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
9924 (arc_rtx_costs): Replace check Crr with Cax constraint.
9925 (prepare_move_operands): Cleanup, remove unused code.
9926 (arc_split_ior): New function.
9927 (arc_check_ior_const): Likewise.
9928 (arc_split_mov_const): Likewise.
9929 (arc_check_mov_const): Likewise.
9930 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
9931 in define_insn_and_split pattern.
9933 (mulsi3_v2): Add new matching variant.
9934 (andsi3_i): Cleanup pattern.
9935 (rotrsi3_cnt1): Update pattern.
9936 (rotrsi3_cnt8): New pattern.
9937 (ashlsi2_cnt8): Likewise.
9938 (ashlsi2_cnt16): Likewise.
9939 * config/arc/constraints.md (C0p): Update constraint.
9944 2019-06-10 Martin Liska <mliska@suse.cz>
9946 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
9947 Update coding style.
9948 (sem_item_optimizer::dump_cong_classes):
9949 Print how many items are in a non-singular class. Improve
9952 2019-06-10 Martin Liska <mliska@suse.cz>
9954 * value-prof.c (dump_histogram_value): Change dump format.
9955 (gimple_mod_subtract_transform): Remove legacy comment.
9957 2019-06-10 Martin Liska <mliska@suse.cz>
9959 * value-prof.c (dump_histogram_value): Print histogram values
9962 2019-06-10 Martin Liska <mliska@suse.cz>
9964 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
9965 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
9966 * ipa-profile.c (ipa_profile_generate_summary):
9967 Use get_most_common_single_value.
9968 * tree-profile.c (gimple_init_gcov_profiler):
9969 Instrument with __gcov_one_value_profiler_v2
9970 and __gcov_indirect_call_profiler_v4.
9971 * value-prof.c (dump_histogram_value):
9972 Print all values for HIST_TYPE_SINGLE_VALUE.
9973 (stream_out_histogram_value): Update assert for
9975 (stream_in_histogram_value): Set number of
9976 counters for HIST_TYPE_SINGLE_VALUE.
9977 (get_most_common_single_value): New.
9978 (gimple_divmod_fixed_value_transform):
9979 Use get_most_common_single_value.
9980 (gimple_ic_transform): Likewise.
9981 (gimple_stringops_transform): Likewise.
9982 (gimple_find_values_to_profile): Set number
9983 of counters for HIST_TYPE_SINGLE_VALUE.
9984 * value-prof.h (get_most_common_single_value): New.
9986 2019-06-10 Martin Liska <mliska@suse.cz>
9988 * hash-map.h: Pass default value to hash_table ctor.
9989 * hash-table.h: Add default value to call of a ctor.
9991 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
9993 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
9994 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
9996 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
9999 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
10000 Call pa_output_function_label.
10001 (TARGET_ASM_FUNCTION_PROLOGUE): define.
10002 * config/pa/pa-protos.h (pa_output_function_label): Declare.
10003 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
10005 (pa_linux_output_function_prologue): Declare.
10006 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
10007 (pa_output_function_label): New.
10008 (pa_output_function_prologue): Revise to use pa_output_function_label.
10009 (pa_linux_output_function_prologue): New.
10010 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
10012 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
10014 * tree-vrp.h (value_range_base::intersect): New.
10015 (value_range::intersect_helper): Move from here...
10016 (value_range_base::intersect_helper): ...to here.
10017 * tree-vrp.c (value_range::intersect_helper): Rename to...
10018 (value_range_base::intersect_helper): ...this, and rewrite to
10019 return a value instead of modifying THIS in place.
10020 Also, move equivalence handling...
10021 (value_range::intersect): ...here, while calling intersect_helper.
10022 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
10024 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
10026 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
10028 2019-06-07 Jakub Jelinek <jakub@redhat.com>
10030 * Makefile.in (genprogerr): Add condmd.
10031 (genprog): Remove it here.
10033 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
10035 * doc/invoke.texi (AMD GCN Options): Add gfx906.
10037 2019-06-07 Richard Biener <rguenther@suse.de>
10040 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
10041 that appear after user labels.
10043 2019-06-07 Martin Liska <mliska@suse.cz>
10045 * cselib.c (cselib_init): Disable hash table
10047 * hash-set.h: Pass new default argument to m_table.
10048 * hash-table.c: Add global variable with hash table
10049 sanitization limit.
10050 * hash-table.h (Allocator>::hash_table): Add new argument
10052 (hashtab_chk_error): New.
10053 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
10054 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
10055 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
10057 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
10059 * common.opt (flto-odr-type-merging): Ignore.
10060 * invoke.texi (-flto-odr-type-merging): Remove.
10061 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
10062 (can_be_vtable_hashed_p): Remove.
10063 (hash_odr_vtable): Remove.
10064 (odr_vtable_hasher::hash): Remove.
10065 (types_same_for_odr): Remove.
10066 (types_odr_comparable): Remove.
10067 (odr_vtable_hasher::equal): Remove.
10068 (odr_vtable_hash_type, odr_vtable_hash): Remove.
10069 (add_type_duplicate): Do not synchronize vtable and name hashtables.
10070 (get_odr_type): Do not use vtable hash.
10071 (dump_odr_type): Remove commented out code.
10072 (build_type_inheritance_graph): Do not allocate vtable hash.
10073 (rebuild_type_inheritance_graph): Do not delete vtable hash.
10074 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
10075 (odr_type_p): Likewise.
10076 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
10079 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
10081 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
10082 immediately after same_types_for_tbaa_p returns -1 and continue
10083 looking for possible exact match; if matching types are arrays
10084 watch for partial overlaps.
10085 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
10086 (indirect_refs_may_alias_p): Do type based disambiguation first;
10089 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
10091 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
10093 2019-06-07 Martin Liska <mliska@suse.cz>
10095 * doc/invoke.texi: Remove param.
10096 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
10098 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
10099 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
10100 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
10101 * profile.c (instrument_values): Remove
10102 HIST_TYPE_INDIR_CALL_TOPN.
10103 * tree-profile.c (init_ic_make_global_vars):
10104 Always build __gcov_indirect_call only.
10105 (gimple_init_gcov_profiler): Remove usage
10106 of PARAM_INDIR_CALL_TOPN_PROFILE.
10107 (gimple_gen_ic_profiler): Likewise.
10108 * value-prof.c (dump_histogram_value): Likewise.
10109 (stream_in_histogram_value): Likewise.
10110 (gimple_indirect_call_to_profile): Likewise.
10111 (gimple_find_values_to_profile): Likewise.
10112 * value-prof.h (enum hist_type): Likewise.
10114 2019-06-07 Martin Liska <mliska@suse.cz>
10116 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
10119 2019-06-07 Martin Liska <mliska@suse.cz>
10121 PR tree-optimization/78902
10122 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
10123 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
10124 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
10125 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
10126 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
10127 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
10128 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
10129 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
10130 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
10131 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
10132 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
10133 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
10134 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
10136 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
10137 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
10138 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
10139 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
10140 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
10141 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
10142 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
10143 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
10144 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
10145 warn_unused_result attribute.
10146 (BUILT_IN_STRDUP): Likewise.
10147 (BUILT_IN_STRNDUP): Likewise.
10148 (BUILT_IN_ALLOCA): Likewise.
10149 (BUILT_IN_CALLOC): Likewise.
10150 (BUILT_IN_MALLOC): Likewise.
10151 (BUILT_IN_REALLOC): Likewise.
10153 2019-06-06 Jim Wilson <jimw@sifive.com>
10156 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
10157 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
10158 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
10160 2019-06-06 Martin Sebor <msebor@redhat.com>
10162 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
10163 (handle_builtin_malloc): Remove trailing spaces.
10164 (handle_builtin_memset): Same.
10165 (handle_builtin_memcmp): Same.
10166 (compute_string_length): Same.
10167 (determine_min_objsize): Same.
10168 (handle_builtin_string_cmp): Same.
10169 (handle_char_store): Same. Break up excessively long line.
10171 2019-06-06 Martin Jambor <mjambor@suse.cz>
10173 * tree-sra.c (build_reconstructed_reference): Drop the alignment
10176 2019-06-06 Martin Jambor <mjambor@suse.cz>
10178 * tree-sra.c (struct access): New field grp_same_access_path.
10179 (dump_access): Dump it.
10180 (build_reconstructed_reference): New function.
10181 (build_ref_for_model): Use it if possible.
10182 (path_comparable_for_same_access): New function.
10183 (same_access_path_p): Likewise.
10184 (sort_and_splice_var_accesses): Set the new flag.
10185 (analyze_access_subtree): Likewise.
10186 (propagate_subaccesses_across_link): Propagate zero value of the new
10187 flag down the access tree.
10189 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
10191 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
10192 * config/gcn/gcn.opt (gpu_type): Add gfx906.
10193 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
10194 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
10197 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10199 PR tree-optimization/90332
10200 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
10201 Handle VALS containing two vectors.
10202 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
10204 (@aarch64_combinez<mode>): ... This.
10205 (*aarch64_combinez_be<mode>): Rename to...
10206 (@aarch64_combinez_be<mode>): ... This.
10207 (vec_init<mode><Vhalf>): New define_expand.
10208 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
10210 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10212 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
10213 library functions only when not optimizing for size.
10214 (ashlsi3): Likewise.
10215 (ashrhi3): Likewise.
10216 (ashrsi3): Likewise.
10217 (lshrhi3): Likewise.
10218 (lshrsi3): Likewise.
10220 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
10222 PR rtl-optimization/88751
10223 * ira.c (ira): Use the number of the actually referenced registers
10224 when calculating the threshold.
10226 2019-06-06 Jakub Jelinek <jakub@redhat.com>
10228 * configure: Regenerate.
10230 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10232 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
10233 register if it is in memory, so the shift can be emulated with a rotate
10235 (ashrhi3): Likewise.
10236 (lshrhi3): Likewise.
10238 2019-06-06 Martin Liska <mliska@suse.cz>
10240 PR tree-optimization/87954
10241 * match.pd: Simplify mult where both arguments are 0 or 1.
10243 2019-06-06 Richard Biener <rguenther@suse.de>
10245 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
10246 put equivalences on UNDEFINED ranges.
10247 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
10248 Make sure to drop defs of stmts added during simplification
10251 2019-06-06 Richard Biener <rguenther@suse.de>
10253 * tree-ssa-structalias.c: Include tree-cfg.h.
10254 (make_heapvar): Do not make heap vars artificial.
10255 (find_func_aliases_for_builtin_call): Handle stack allocation
10257 (find_func_aliases): Delay processing of simple enough returns
10259 (set_uids_in_ptset): Adjust.
10260 (find_what_var_points_to): Likewise.
10261 (solve_constraints): Do not dump points-to sets here.
10262 (compute_points_to_sets): Post-process return statements,
10263 amending the escaped solution. Dump points-to sets afterwards.
10264 (ipa_pta_execute): Dump points-to sets.
10266 2019-06-06 Martin Liska <mliska@suse.cz>
10269 * doc/install.texi: Fix HTML headers and
10270 titles for 'Installing GCC' pages.
10272 2019-06-06 Martin Liska <mliska@suse.cz>
10274 * ipa-icf-gimple.h (dump_message_1): Remove.
10275 (dump_message): Likewise.
10276 (return_false_with_message_1): Print also file.
10277 (return_false_with_msg): Likewise.
10278 (return_with_result): Likewise.
10279 (return_with_debug): Likewise.
10280 * ipa-icf.c (sem_function::equals_private): Remove call
10283 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
10285 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
10286 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
10287 memory operand for it.
10288 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
10290 2019-06-05 Martin Sebor <msebor@redhat.com>
10292 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
10293 Adjust quoting and hyphenation.
10294 * convert.c (convert_to_real_1): Same.
10295 * gcc.c (driver_wrong_lang_callback): Same.
10296 (driver::handle_unrecognized_options): Same.
10297 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
10298 * opts-common.c (cmdline_handle_error): Same.
10299 (read_cmdline_option): Same.
10300 * opts-global.c (complain_wrong_lang): Same.
10301 (print_ignored_options): Same.
10302 (handle_common_deferred_options): Same.
10303 * pretty-print.h: Same.
10304 * print-rtl.c (debug_bb_n_slim): Same.
10305 * sched-rgn.c (make_pass_sched_fusion): Same.
10306 * tree-cfg.c (verify_gimple_assign_unary): Same.
10307 (verify_gimple_label): Same.
10308 * tree-ssa-operands.c (verify_ssa_operands): Same.
10309 * varasm.c (do_assemble_alias): Same.
10310 (assemble_alias): Same.
10312 2019-06-05 Richard Henderson <rth@twiddle.net>
10314 * config/alpha/alpha.c (direct_return): Move down after
10315 struct machine_function definition; use saved frame_size;
10317 (struct machine_function): Add sa_mask, sa_size, frame_size.
10318 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
10319 (alpha_compute_frame_layout): ... new function.
10320 (TARGET_COMPUTE_FRAME_LAYOUT): New.
10321 (alpha_initial_elimination_offset): Use saved sa_size.
10322 (alpha_vms_initial_elimination_offset): Likewise.
10323 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
10324 (alpha_expand_prologue): Use saved frame data. Merge integer
10325 and fp register save loops.
10326 (alpha_expand_epilogue): Likewise.
10327 (alpha_start_function): Use saved frame data.
10328 * config/alpha/alpha-protos.h (direct_return): Update.
10329 (alpha_sa_size): Remove.
10331 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
10333 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
10334 multiplication by a power-of-two value.
10335 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
10336 and turn the modulo operation into a masking operation.
10338 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10341 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
10342 with VOIDmode inner operands.
10344 2019-06-05 Richard Biener <rguenther@suse.de>
10346 PR middle-end/90726
10347 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10348 turn an expression graph into a tree.
10350 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10352 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
10354 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
10355 treat it like explicit monotonic schedule modifier.
10356 (expand_omp_for): Initialize has_lastprivate_conditional.
10357 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
10360 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
10361 references, lookup in in hash map MEM_REF operand instead of the
10363 (lower_omp_1): When looking for lastprivate conditional assignments,
10364 handle MEM_REFs with REFERENCE_TYPE operands.
10366 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
10367 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
10368 and references a VLA. Handle references to non-VLAs if is_simd
10369 all privatization clauses like reductions.
10370 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
10371 If omp_is_reference, use always omp simd arrays and set
10372 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
10373 fails, emit reference initialization.
10375 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
10378 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
10379 _mm_mask_fpclass_sd_mask): New intrinsics.
10380 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
10381 * config/i386/i386-builtin.def
10382 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
10384 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
10385 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
10386 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
10387 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
10388 case QI_FTYPE_V2SF_INT): Ditto.
10389 * config/i386/sse.md
10390 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
10391 Extended to insnstructions with mask operands.
10393 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10395 * config/rs6000/constraints.md (define_register_constraint "wp"):
10397 (define_register_constraint "wq"): Delete.
10398 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10399 (rs6000_init_hard_regno_mode_ok): Adjust.
10400 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10401 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
10402 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
10403 (define_mode_attr VSa): Delete.
10404 (define_mode_attr VSisa): New.
10405 (rest of file): Adjust.
10406 * doc/md.texi (Machine Constraints): Adjust.
10408 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10410 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
10411 (define_attr "enabled"): Handle those new isa values.
10413 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10415 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
10416 (define_mode_attr VSr5): Delete.
10417 (define_mode_attr VStype_sqrt): Delete.
10418 (define_mode_iterator VSX_SPDP): Delete.
10419 (define_mode_attr VS_spdp_res): Delete.
10420 (define_mode_attr VS_spdp_insn): Delete.
10421 (define_mode_attr VS_spdp_type): Delete.
10422 (*vsx_sqrt<mode>2): Adjust.
10423 (vsx_<VS_spdp_insn>): Delete, split to...
10424 (vsx_xscvdpsp): ... this. New. And...
10425 (vsx_xvcvspdp): ... this. New. And...
10426 (vsx_xvcvdpsp): ... this. New.
10428 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10430 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
10432 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
10433 (rest of file): Adjust.
10435 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10437 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
10438 (vsx_extract_<mode>_var): Ditto.
10440 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10442 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
10445 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10447 * config/rs6000/constraints.md (define_register_constraint "ww"):
10449 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10450 (rs6000_init_hard_regno_mode_ok): Adjust.
10451 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10452 RS6000_CONSTRAINT_ww.
10453 * config/rs6000/rs6000.md: Adjust.
10454 * config/rs6000/vsx.md: Adjust.
10455 * doc/md.texi (Machine Constraints): Adjust.
10457 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10459 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
10460 (define_mode_attr sd): New.
10461 (define_mode_attr s): New.
10462 (define_mode_attr Ftrad): Delete.
10463 (define_mode_attr Fvsx): Delete.
10464 (define_mode_attr Fs): Delete.
10465 (rest of file): Use the new mode attributes.
10466 * config.rs6000/vsx.md: Use the new mode attributes.
10468 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10470 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
10473 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10475 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
10476 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
10477 used with VSX_B, VSX_D, or VSX_F, with just "wa".
10479 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
10482 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
10483 C++ with strict ANSI requirements.
10485 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
10487 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
10488 computations when step is 1.
10490 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10492 * config/rs6000/constraints.md (define_register_constraint "wf"):
10494 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10495 (rs6000_init_hard_regno_mode_ok): Adjust.
10496 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10497 RS6000_CONSTRAINT_wf.
10498 * config/rs6000/rs6000.md: Adjust.
10499 * config/rs6000/vsx.md: Adjust.
10500 * doc/md.texi (Machine Constraints): Adjust.
10502 2019-06-04 Andrew Pinski <apinski@marvell.com>
10504 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
10507 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10509 * config/rs6000/constraints.md (define_register_constraint "wd"):
10511 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10512 (rs6000_init_hard_regno_mode_ok): Adjust.
10513 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10514 RS6000_CONSTRAINT_wd.
10515 * config/rs6000/rs6000.md: Adjust.
10516 * config/rs6000/vsx.md: Adjust.
10517 * doc/md.texi (Machine Constraints): Adjust.
10519 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10521 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
10522 (rest of file): Adjust.
10524 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10526 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
10527 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
10528 (vsx_splat_<mode>_reg): Adjust.
10530 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10532 * config/rs6000/constraints.md (define_register_constraint "ws"):
10534 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10535 (rs6000_init_hard_regno_mode_ok): Adjust.
10536 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10537 RS6000_CONSTRAINT_ws.
10538 * config/rs6000/rs6000.md: Adjust.
10539 * config/rs6000/vsx.md: Adjust.
10540 * doc/md.texi (Machine Constraints): Adjust.
10542 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10544 * config/rs6000/constraints.md (define_register_constraint "wv"):
10546 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10547 (rs6000_init_hard_regno_mode_ok): Adjust.
10548 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10549 RS6000_CONSTRAINT_wv.
10550 * config/rs6000/rs6000.md: Adjust.
10551 * config/rs6000/vsx.md: Adjust.
10552 * doc/md.texi (Machine Constraints): Adjust.
10554 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10556 * config/rs6000/constraints.md (define_register_constraint "wi"):
10558 (define_register_constraint "wt"): Delete.
10559 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10560 (rs6000_init_hard_regno_mode_ok): Adjust.
10561 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10562 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
10563 * config/rs6000/rs6000.md: Adjust.
10564 * config/rs6000/vsx.md: Adjust.
10565 * doc/md.texi (Machine Constraints): Adjust.
10567 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
10569 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
10571 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
10572 default_elf_asm_output_external.
10574 2019-06-04 Martin Liska <mliska@suse.cz>
10576 * ipa-icf.c (INCLUDE_LIST): Remove.
10577 (sem_item_optimizer::execute): Remove call to init_wpa.
10578 * ipa-icf.h (init_wpa): Remove.
10580 2019-06-04 Jakub Jelinek <jakub@redhat.com>
10582 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
10583 conditional on combined for simd.
10584 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
10586 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
10587 constructs, don't remove lastprivate_conditional_map, but instead set
10588 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
10589 to parent construct temporaries.
10590 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
10591 like !ctx->lastprivate_conditional_map.
10592 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
10593 use up->outer context instead of up.
10594 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
10595 gimple_omp_for_combined_p.
10596 (expand_omp_for_static_nochunk): Likewise.
10597 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
10598 probably moved over into expand_omp_for_generic rather than being copied
10601 2019-06-04 Martin Liska <mliska@suse.cz>
10603 * value-prof.c (dump_histogram_value): Fix typo.
10604 (gimple_mod_subtract_transform): Likewise.
10606 2019-06-04 Richard Biener <rguenther@suse.de>
10608 PR middle-end/90726
10609 * tree-chrec.c (chrec_contains_symbols): Add to visited.
10610 (tree_contains_chrecs): Likewise.
10611 (chrec_contains_symbols_defined_in_loop): Move here and avoid
10612 exponential behaivor from ...
10613 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10615 (expression_expensive_p): Avoid exponential behavior and compute
10616 expanded size, rejecting any expansion.
10617 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
10618 (idx_contains_abnormal_ssa_name_p): Likewise.
10619 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
10620 (contains_abnormal_ssa_name_p): Simplify and use
10621 walk_tree_without_duplicates.
10623 2019-06-04 Richard Biener <rguenther@suse.de>
10625 PR tree-optimization/90738
10627 2019-06-03 Richard Biener <rguenther@suse.de>
10629 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10630 full reference tree and record in ref->ref.
10631 (vn_reference_lookup_3): Pass in original ref to
10632 ao_ref_init_from_vn_reference.
10633 (vn_reference_lookup): Likewise.
10634 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10635 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10636 Handle non-decl bases in the original reference.
10638 2019-06-04 Martin Liska <mliska@suse.cz>
10640 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
10641 number of references.
10642 (sem_item_optimizer::do_congruence_step):
10643 (sem_item_optimizer::worklist_push): Dump how references
10645 (sem_item_optimizer::worklist_pop): Use heap.
10646 (sem_item_optimizer::process_cong_reduction): Likewise.
10647 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
10649 2019-06-04 Martin Liska <mliska@suse.cz>
10651 * ipa-icf.h (struct sem_usage_pair_hash): New.
10652 (sem_usage_pair_hash::hash): Likewise.
10653 (sem_usage_pair_hash::equal): Likewise.
10654 (struct sem_usage_hash): Likewise.
10655 * ipa-icf.c (sem_item::sem_item): Initialize
10656 referenced_by_count.
10657 (sem_item::add_reference): Register a reference
10658 in ref_map and not in target->usages.
10659 (sem_item::setup): Remove initialization of
10661 (sem_item::~sem_item): Remove usage of dead vectors.
10662 (sem_item::dump): Remove dump of references.
10663 (sem_item_optimizer::sem_item_optimizer): Initialize
10665 (sem_item_optimizer::read_section): Remove useless
10667 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
10668 (sem_item_optimizer::build_graph): Pass m_references
10669 to ::add_reference.
10670 (sem_item_optimizer::verify_classes): Remove usage of dead
10672 (sem_item_optimizer::traverse_congruence_split): Return true
10673 when a class is split.
10674 (sem_item_optimizer::do_congruence_step_for_index): Use
10675 hash_map for look up of (sem_item *, index). That brings
10676 significant speed up.
10677 (sem_item_optimizer::do_congruence_step): Return true
10678 when a split is done.
10679 (congruence_class::is_class_used): Use referenced_by_count.
10681 2019-06-04 Alan Modra <amodra@gmail.com>
10684 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
10687 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10689 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
10690 * config/rs6000/rs6000.c (direct_move_p): Adjust.
10691 (rs6000_secondary_reload_simple_move): Adjust.
10692 (rs6000_opt_masks): Neuter the "mfpgpr" option.
10693 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
10694 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
10697 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
10698 (floatunssi<mode>2_lfiwzx): Adjust.
10699 (fix_trunc<mode>si2_stfiwx): Adjust.
10700 (fixuns_trunc<mode>si2_stfiwx): Adjust.
10701 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
10702 (mfpgpr): Mark as deprecated.
10703 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
10704 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
10705 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
10707 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10709 * config/rs6000/constraints.md (define_register_constraint "wg"):
10711 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10712 RS6000_CONSTRAINT_wg.
10713 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10714 (rs6000_init_hard_regno_mode_ok): Adjust.
10715 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
10716 Delete "wg" alternatives.
10717 * doc/md.texi (Machine Constraints): Adjust.
10719 2019-06-03 Alan Modra <amodra@gmail.com>
10721 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
10722 (get_uncond_jump_length): Assert length less than INT_MAX and
10725 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10727 PR middle-end/64242
10728 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
10730 (expand_builtin_nonlocal_goto): Likewise.
10732 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10734 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
10735 (aarch64_asm_output_external): Declare.
10736 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
10737 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
10738 (aarch64_asm_output_alias): New.
10739 (aarch64_asm_output_external): New.
10740 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
10741 (ASM_OUTPUT_EXTERNAL): Define.
10743 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
10744 * tree-vrp.h (value_range_base::nonzero_p): New.
10745 (value_range_base::set_nonnull): Rename to...
10746 (value_range_base::set_nonzero): ...this.
10747 (value_range_base::set_null): Rename to...
10748 (value_range_base::set_zero): ...this.
10749 (value_range::set_nonnull): Remove.
10750 (value_range::set_null): Remove.
10751 * tree-vrp.c (range_is_null): Remove.
10752 (range_is_nonnull): Remove.
10753 (extract_range_from_binary_expr): Use value_range_base::*zero_p
10754 instead of range_is_*null.
10755 (extract_range_from_unary_expr): Same.
10756 (value_range_base::set_nonnull): Rename to...
10757 (value_range_base::set_nonzero): ...this.
10758 (value_range::set_nonnull): Remove.
10759 (value_range_base::set_null): Rename to...
10760 (value_range_base::set_zero): ...this.
10761 (value_range::set_null): Remove.
10762 (extract_range_from_binary_expr): Rename set_*null uses to
10764 (extract_range_from_unary_expr): Same.
10765 (union_helper): Same.
10766 * vr-values.c (get_value_range): Use set_*zero instead of
10768 (vr_values::extract_range_from_binary_expr): Same.
10769 (vr_values::extract_range_basic): Same.
10771 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10774 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
10776 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10778 * config/aarch64/iterators.md (MAX_OPP): New code attr.
10779 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
10781 (aarch64_<su>abd<mode>_3): ... This.
10782 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
10784 2019-06-03 Richard Biener <rguenther@suse.de>
10786 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10787 full reference tree and record in ref->ref.
10788 (vn_reference_lookup_3): Pass in original ref to
10789 ao_ref_init_from_vn_reference.
10790 (vn_reference_lookup): Likewise.
10791 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10792 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10793 Handle non-decl bases in the original reference.
10795 2019-06-03 Martin Liska <mliska@suse.cz>
10797 * doc/generic.texi: Remove Java Trees.
10799 2019-06-03 Martin Liska <mliska@suse.cz>
10801 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
10802 returns 0 when operands are equal.
10804 2019-06-03 Richard Biener <rguenther@suse.de>
10806 PR tree-optimization/90716
10807 * tree-loop-distribution.c (destroy_loop): Process blocks in
10810 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10813 * vector-builder.h (vector_builder::count_dups): New method.
10814 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
10816 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
10817 (vec_init<mode><Vel>): New pattern.
10818 * config/aarch64/aarch64.c (emit_insr): New function.
10819 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
10820 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
10821 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
10822 (aarch64_sve_expand_vector_init): Define two overloaded functions.
10824 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10826 PR tree-optimization/90681
10827 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
10828 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
10829 special case for SLP, but fail on non-groupped loads.
10831 2019-06-03 Martin Liska <mliska@suse.cz>
10833 * cfg.c (debug): Use TDF_DETAILS for debug and
10834 print edge info only once.
10836 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
10839 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
10841 2019-06-01 Martin Sebor <msebor@redhat.com>
10843 PR middle-end/90694
10844 * tree-pretty-print.c (dump_generic_node): Add parentheses.
10846 2019-05-31 Jan Hubicka <jh@suse.cz>
10848 * alias.c: Include ipa-utils.h.
10849 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
10850 * ipa-devirt.c (prevailing_odr_type): New.
10851 * ipa-utils.h (previaling_odr_type): Declare.
10853 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
10854 Hongtao Liu <hongtao.liu@intel.com>
10857 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
10858 NOTE_INSN_DELETED_LABEL check.
10860 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
10861 Robert Suchanek <robert.suchanek@mips.com>
10863 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
10864 and 3rd operands of the fmadd/fmsub/maddv builtin.
10866 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10868 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
10869 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10870 on OMP_SIMD if not nested inside of worksharing loop that also has
10871 lastprivate conditional clause for the same decl.
10872 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
10873 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
10875 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
10877 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
10879 (lower_lastprivate_clauses): Likewise.
10880 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
10881 calling lower_rec_input_clauses.
10882 (lower_omp_for): Likewise.
10883 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
10884 clause on simd construct.
10885 * omp-expand.c (expand_omp_simd): Initialize cond_var if
10886 OMP_CLAUSE__CONDTEMP_ clause is present.
10888 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
10891 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
10894 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
10895 TEX_D32, TEX_D64 or TEX_D128.
10897 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10899 * match.pd (~(vec?cst1:cst2)): New transformation.
10901 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10903 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
10904 ((size_t)(A /[ex] B) CMP C): New transformation.
10906 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
10908 * doc/md.texi: Document define_insn_and_rewrite.
10909 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
10910 * gensupport.c (queue_elem): Update comment.
10911 (replace_operands_with_dups): New function.
10912 (gen_rewrite_sequence): Likewise.
10913 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
10914 * read-rtl.c (apply_subst_iterator): Likewise.
10915 (add_condition_to_rtx, named_rtx_p): Likewise.
10916 (rtx_reader::read_rtx_operand): Likewise.
10917 * config/aarch64/aarch64-sve.md
10918 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
10919 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
10920 define_insn_and_rewrite.
10921 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
10922 Remove separate define_split.
10924 2019-05-31 Jan Hubicka <jh@suse.cz>
10926 * tree-ssa-alias.c (type_has_components_p): New function.
10927 (aliasing_component_refs_p): Use it.
10929 2019-05-31 Martin Liska <mliska@suse.cz>
10931 * gdbhooks.py: Add const_tree to TreePrinter.
10933 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
10936 * common.opt (feliminate-unused-debug-symbols): Enable by default.
10937 * doc/invoke.texi (Debugging Options): Document new default of
10938 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
10940 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10942 PR tree-optimization/90671
10943 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
10944 template_block used to be empty on the first call, don't use
10945 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
10946 seq with bb_seq and set it with set_bb_seq.
10948 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
10950 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
10952 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10953 Michael Meissner <meissner@linux.ibm.com>
10955 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
10956 (prefixed_mem_operand): Likewise.
10957 (non_prefixed_mem_operand): Likewise.
10958 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
10960 * config/rs6000/rs6000.c (print_operand_address): Handle
10961 PC-relative addresses.
10962 (mode_supports_prefixed_address_p): New function.
10963 (rs6000_prefixed_address): New function.
10964 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
10965 (SYMBOL_REF_PCREL_P): Likewise.
10967 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10969 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
10970 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
10971 (gimplify_omp_for): If worksharing loop with lastprivate conditional
10972 is nested inside of parallel region, add _condtemp_ clause to both.
10973 * tree-nested.c (convert_nonlocal_omp_clauses,
10974 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
10976 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
10978 * omp-general.c (omp_extract_for_data): Compute it.
10979 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
10980 (lower_rec_input_clauses): Likewise.
10981 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
10982 clause is already present, just add one further one after it.
10983 (lower_lastprivate_clauses): Handle cond_ptr with array type.
10984 (lower_send_shared_vars): Clear _condtemp_ vars.
10985 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
10986 or section or taskgroup.
10987 * omp-expand.c (determine_parallel_type): Disallow combining only if
10988 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
10989 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
10990 (expand_omp_for_generic, expand_omp_for_static_nochunk,
10991 expand_omp_for_static_chunk, expand_omp_for): Use
10992 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
10993 determine if a special set of API routines are needed and if condtemp
10994 needs to be initialized, while always initialize cond_var if
10995 fd->lastprivate_conditional is non-zero.
10997 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10998 Michael Meissner <meissner@linux.ibm.com>
11000 * config/rs6000/constraints.md (eI): New constraint.
11001 * config/rs6000/predicates.md (cint34_operand): New predicate.
11002 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
11003 (SIGNED_34BIT_OFFSET_P): Likewise.
11004 * doc/md.texi (eI): Document constraint.
11006 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
11008 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
11010 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11011 Michael Meissner <meissner@linux.ibm.com>
11013 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
11014 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
11015 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
11016 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
11017 (OTHER_FUTURE_MASKS): Likewise.
11018 (POWERPC_MASKS): Likewise.
11019 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
11020 specified without -mprefixed-addr or -mcpu=future. Error if
11021 -mprefixed-addr is specified without -mcpu=future.
11022 (rs6000_opt_masks): Add entry for prefixed-addr.
11023 * rs6000.opt (mprefixed-addr): New option.
11025 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
11027 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
11028 cfun->is_thunk check.
11030 2019-05-30 Jakub Jelinek <jakub@redhat.com>
11032 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
11035 2019-05-30 Martin Liska <mliska@suse.cz>
11037 * gdbinit.in: Fix 'ptc' command. Add trt
11038 that prints TREE_TYPE($).
11040 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
11041 Alan Modra <amodra@gmail.com>
11043 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
11045 (rs6000_indirect_call_template_1): ...and here.
11046 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
11047 plt16_ha, plt16_lo, mtctr indirect calls. Use
11048 rs6000_pltseq_enum.
11049 (rs6000_decl_ok_for_sibcall): New function.
11050 (rs6000_function_ok_for_sibcall): Refactor.
11051 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
11052 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
11053 when pcrel. Reorganize.
11054 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
11055 * rs6000.h (rs6000_pltseq_enum): New enum.
11056 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
11057 (*pltseq_tocsave): Use rs6000_pltseq_enum.
11058 (*pltseq_plt16_ha): Likewise.
11059 (*pltseq_plt16_lo): Likewise.
11060 (*pltseq_mtctr): Likewise.
11061 (*pltseq_plt_pcrel): New insn.
11062 (*call_local_aix): Handle @notoc calls.
11063 (*call_value_local_aix): Likewise.
11064 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
11065 (*call_value_nonlocal_aix): Likewise.
11066 (*call_indirect_pcrel): New insn.
11067 (*call_value_indirect_pcrel): Likewise.
11069 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
11071 * config/i386/sse.md (*save_multiple<mode>): Rename from
11072 save_multiple<mode>.
11073 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
11074 (*restore_multiple_and_return<mode>): Rename from
11075 restore_multiple_and_return<mode>.
11076 (*restore_multiple_leave_return<mode>): Rename from
11077 restore_multiple_leave_return<mode>.
11079 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
11081 * config.gcc (rx-*-linux*): New target.
11082 * config/rx/elf.opt: New file.
11083 * config/rx/linux.h: Likewise.
11084 * config/rx/t-linux: Likewise.
11085 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
11087 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
11088 (ASM_APP_OFF): Likewise.
11089 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
11092 2019-05-29 Jan Hubicka <jh@suse.cz>
11094 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
11095 variants are pointer equivalent.
11097 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11099 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
11100 * config/aarch64/aarch64-sve2.md: New file.
11101 (<u>avg<mode>3_floor): New pattern.
11102 (<u>avg<mode>3_ceil): Likewise.
11103 (*<sur>h<addsub><mode>): Likewise.
11104 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
11105 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
11107 2019-05-29 Jakub Jelinek <jakub@redhat.com>
11110 * optc-save-gen.awk: In cl_optimization_print, use correct condition
11111 for var_opt_string printing. In cl_optimization_print_diff, print
11112 (null) instead of invoking undefined behavior if one of the
11113 var_opt_string pointers is NULL and use && instead of first || in the
11114 guarding condition. For var_target_other options, handle const char *
11115 target variables similarly to const char * optimize node variables.
11117 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
11119 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
11120 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
11121 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
11122 Add autib1716 and pacib1716 initialisation.
11123 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
11124 for autib1716 and pacib1716.
11125 * config/aarch64/aarch64-protos.h (aarch64_key_type,
11126 aarch64_post_cfi_startproc): Define.
11127 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
11128 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
11129 aarch64_handle_pac_ret_protection): Set default sign key to A.
11130 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
11131 aarch64_expand_prologue): Add check for b-key.
11132 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
11133 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
11134 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
11135 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
11136 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
11137 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
11138 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11139 * config/aarch64/aarch64.md (do_return): Add check for b-key.
11140 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
11141 pauth_hint_num_a with pauth_hint_num.
11142 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
11143 pauth_hint_num_a with pauth_hint_num.
11144 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
11145 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
11146 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11147 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
11148 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
11149 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
11150 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
11151 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11152 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
11153 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
11154 UNSPEC_AUTIA1716 respectively.
11155 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
11156 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
11157 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
11158 * doc/invoke.texi (-mbranch-protection): Add b-key type.
11159 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
11160 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
11162 2019-05-29 Jakub Jelinek <jakub@redhat.com>
11164 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
11165 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
11166 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
11167 explicit clause on combined parallel into implicit shared clause.
11168 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
11169 and firstprivate if the decl has one too from combined parallel to
11170 the worksharing construct.
11172 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
11173 Michael Meissner <meissner@linux.ibm.com>
11175 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
11177 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
11179 * rtl.h (LABEL_REF_P): New #define.
11181 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
11183 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
11185 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11187 * internal-fn.c: Marked mask_load_direct as vectorizable.
11188 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
11189 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
11190 combined even if masks different with allow_slp_p param.
11191 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
11192 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
11193 dissolve SLP-only vectorizable groups when SLP has been discarded.
11194 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
11195 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
11197 (vect_build_slp_tree_1): Fixed comment typo.
11198 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
11199 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
11200 loads for SLP only.
11201 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
11203 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
11205 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11207 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
11208 Remove obsolete use_thunk reference.
11209 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
11210 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11211 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
11212 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
11213 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
11214 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11215 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11216 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
11217 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
11219 2019-05-28 Nathan Sidwell <nathan@acm.org>
11221 * tree.h (IDENTIFIER_ANON_P): New.
11222 (anon_aggrname_format, anon_aggname_p): Don't declare.
11223 (make_anon_name): Declare.
11224 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
11225 (hash_tree): Likewise.
11226 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
11227 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
11228 (anon_cnt, make_anon_name): New.
11230 2019-05-28 Martin Liska <mliska@suse.cz>
11233 * opts-global.c (decode_options): Print help for all
11234 help_option_arguments.
11235 * opts.c (print_help): Add new argument.
11236 (common_handle_option): Remember all values into
11237 help_option_arguments.
11238 * opts.h (print_help): Add new argument.
11240 2019-05-28 Martin Liska <mliska@suse.cz>
11243 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
11244 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
11245 (func_checker::compare_bb): Call compare_loops.
11247 2019-05-27 Jakub Jelinek <jakub@redhat.com>
11249 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
11250 on sections construct.
11251 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
11253 (lower_omp_sections): Handle lastprivate conditional.
11254 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
11255 lastprivate_conditional_map.
11256 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
11258 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
11259 critical, taskgroup and section regions when looking for a region
11260 with non-NULL lastprivate_conditional_map.
11262 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
11264 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
11265 (*ix86_gen_sub3): Ditto.
11266 (*ix86_gen_sub3_carry): Ditto.
11267 (*ix86_gen_one_cmpl2): Ditto.
11268 (*ix86_gen_andsp): Ditto.
11269 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
11270 (gen_and2_insn): New static function.
11271 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
11272 Use gen_add3_insn instead of ix86_gen_add3.
11273 (ix86_expand_split_stack_prologue): Use gen_add2_insn
11274 instead of ix86_gen_add3.
11275 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
11276 Use gen_sub3_insn instead of ix86_gen_sub3.
11277 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
11278 instead of ix86_gen_add3.
11279 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
11280 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
11281 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
11282 * config/i386/i386-options.c (ix86_option_override_internal):
11283 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11284 ix86_gen_one_cmpl2 and ix86_gen_andsp.
11286 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
11288 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
11289 and DW_OP_GNU_const_index opcodes.
11291 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
11293 * config/i386/i386.h (STACK_SIZE_MODE): Define.
11295 2019-05-27 Richard Biener <rguenther@suse.de>
11297 PR tree-optimization/90637
11298 * tree-ssa-sink.c (statement_sink_location): Honor the
11299 computed sink location for single-uses.
11301 2019-05-27 Richard Biener <rguenther@suse.de>
11303 PR middle-end/90610
11304 * match.pd (vec_perm): Avoid clobbering op0 when not generating
11307 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11309 * config/i386/i386.md (@sub<mode>3_carry): Rename
11310 from sub<mode>3_carry.
11311 (@leave_<mode>): New expander.
11312 (*leave): Rename from leave.
11313 (*leave_rex64): Rename from leave_rex64.
11314 (@monitorx_<mode>): Rename from monitorx_<mode>.
11315 (@clzero_<mode>): Rename from clzero_<mode>.
11316 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
11317 from sse3_monitor_<mode>.
11318 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
11319 (*ix86_gen_leave): Ditto.
11320 (*ix86_gen_monitor): Ditto.
11321 (*ix86_gen_monitorx): Ditto.
11322 (*ix86_gen_clzero): Ditto.
11323 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
11324 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
11325 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
11326 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
11327 Use gen_sse3_monitor instead of ix86_gen_monitor.
11328 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
11329 instead of ix86_gen_monitorx.
11330 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
11331 instead of ix86_gen_clzero.
11332 * config/i386/i386-options.c (ix86_option_override_internal):
11333 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
11334 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
11336 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11338 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
11339 Rename from tls_global_dynamic_64_<mode>.
11340 (@tls_local_dynamic_base_64_<mode>): Rename from
11341 tls_local_dynamic_base_64_<mode>.
11342 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
11343 Remove indirect function.
11344 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
11345 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
11346 instead of ix86_gen_tls_global_dynamic_64.
11347 Use gen_tls_local_dynamic_base_64 instead of
11348 ix86_gen_tls_local_dynamic_base_64.
11349 * config/i386/i386-options.c (ix86_option_override_internal):
11350 Do not initialize ix86_gen_tls_global_dynamic_64 and
11351 ix86_gen_tls_local_dynamic_base_64.
11353 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11355 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
11356 Rename from pro_epilogue_adjust_stack_<mode>_add.
11357 (@pro_epilogue_adjust_stack_sub_<mode>)
11358 Rename from pro_epilogue_adjust_stack_<mode>_sub.
11359 (@allocate_stack_worker_probe_<mode>):
11360 Rename from allocate_stack_worker_probe_<mode>.
11361 (allocate_stack): Use gen_allocate_stack_worker_probe.
11362 (probe_stack): Use gen_probe_stack_1.
11363 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
11364 (@adjust_stack_and_probe_<mode>): Rename from
11365 adjust_stack_and_probe<mode>.
11366 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
11367 (stack_protect_set): Use gen_stack_protect_set_1.
11368 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
11369 (stack_protect_test): Use gen_stack_protect_test_1.
11370 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
11371 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
11372 Remove indirect function.
11373 (*ix86_gen_adjust_stack_and_probe): Ditto.
11374 (*ix86_gen_probe_stack_range): Ditto.
11375 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
11376 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
11377 (ix86_adjust_stack_and_probe_stack_clash): Use
11378 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
11379 (ix86_adjust_stack_and_probe): Ditto.
11380 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
11381 of ix86_gen_probe_stack_range.
11382 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
11383 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
11384 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
11385 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
11386 CODE_FOR_stack_protect_test_{si,di}.
11387 * config/i386/i386-options.c (ix86_option_override_internal):
11388 Do not initialize ix86_gen_allocate_stack_worker,
11389 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
11391 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
11393 * doc/invoke.texi (Link Options): Many editorial changes around
11396 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11398 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
11399 pre-Solaris 11 referene and most Studio compiler details.
11401 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
11404 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
11405 DImode to SImode in floating-point registers on 64-bit target.
11406 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
11407 register_operand in xmpyu patterns.
11409 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11411 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
11412 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
11413 OMP_CLAUSE__REDUCTEMP_.
11414 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11415 OMP_CLAUSE__CONDTEMP_.
11416 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
11417 * tree-pretty-print.c (dump_omp_clause): Likewise.
11418 * tree-nested.c (convert_nonlocal_omp_clauses,
11419 convert_local_omp_clauses): Likewise.
11420 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
11421 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
11422 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
11424 (gimplify_omp_for): Warn and disable conditional modifier from
11425 lastprivate on loop iterators.
11426 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
11428 * omp-general.c (omp_extract_for_data): Initialize it.
11429 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
11431 (delete_omp_context): Delete it.
11432 (lower_lastprivate_conditional_clauses): New function.
11433 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
11434 handle lastprivate conditional clauses.
11435 (lower_reduction_clauses): Add CLIST argument, emit it into
11436 the critical section if any.
11437 (lower_omp_sections): Adjust lower_lastprivate_clauses and
11438 lower_reduction_clauses callers.
11439 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
11440 to lower_lastprivate_clauses.
11441 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
11442 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
11443 clist into a critical section if not emitted there already by
11444 lower_reduction_clauses.
11445 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
11447 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
11448 conditional variables.
11449 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
11451 (expand_omp_for_generic, expand_omp_for_static_nochunk,
11452 expand_omp_for_static_chunk): Handle lastprivate conditional.
11453 (expand_omp_for): Handle fd.lastprivate_conditional like
11456 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
11458 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
11459 kernel does not exit cleanly.
11460 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
11462 2019-05-24 Jason Merrill <jason@redhat.com>
11465 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11467 2019-05-24 Richard Biener <rguenther@suse.de>
11470 * tree-loop-distribution.c (struct partition): Add location
11472 (partition_alloc): Initialize all fields.
11473 (generate_memset_builtin): Use the location recorded in the
11474 partition for the generated call.
11475 (generate_memcpy_builtin): Likewise.
11476 (classify_partition): Record the location of a single store
11477 as location for the partition.
11479 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
11481 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
11484 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
11487 * common/config/aarch64/aarch64-common.c
11488 (aarch64_rewrite_selected_cpu): Change local temporary variable
11489 type from unsigned long to uint64_t.
11490 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
11491 aarch64_get_extension_string_for_isa_flags): Change declaration to
11492 match new definition by replacing unsigned long with uint64_t.
11494 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11497 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
11498 gen_attr_type just once instead of 4-7 times. Formatting fixes.
11499 Handle stack_protect_test_<mode> codegen similarly to corresponding
11502 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
11504 * config/i386/darwin.h: Reject -mfentry*.
11505 * doc/sourcebuild.texi: Document mfentry target support.
11507 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11509 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
11510 Rename to rs6000_global_entry_point_prologue_needed_p. Return
11511 false for PC-relative functions.
11512 (rs6000_output_function_prologue): Change called function name to
11513 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
11514 name,1" for PC-relative functions.
11515 (rs6000_elf_declare_function_name): Change called function name to
11516 rs6000_global_entry_point_prologue_needed_p.
11518 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
11521 * config/i386/i386.c (gen_rtx_cost):
11522 Use ix86_tune_cost instead of ix86_cost.
11524 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11525 Michael Meissner <meissner@linux.ibm.com>
11526 Segher Boessenkool <segher@kernel.crashing.org>
11528 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
11530 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
11531 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
11532 (rs6000_fndecl_pcrel_p): Likewise.
11533 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
11534 error if -mpcrel is requested without -mcpu=future.
11535 (rs6000_opt_masks): Add entry for pcrel.
11536 (rs6000_fndecl_pcrel_p): New function.
11537 (rs6000_pcrel_p): Likewise.
11538 * config/rs6000/rs6000.opt (mpcrel): New option.
11539 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
11541 2019-05-23 Jan Hubicka <jh@suse.cz>
11542 Martin Liska <mliska@suse.cz>
11544 PR tree-optimization/90576
11545 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
11547 (aliasing_component_refs_p): Fix three way size compare conditional;
11548 give up earlier in case we can not decide on equivalence.
11550 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11551 Michael Meissner <meissner@linux.ibm.com>
11552 Segher Boessenkool <segher@kernel.crashing.org>
11554 * config.gcc: Add future cpu.
11555 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
11556 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
11558 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
11559 (RS6000_CPU): New instantiation for future cpu.
11560 * config/rs6000/rs6000-opts.h (enum processor_type): Add
11562 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
11563 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
11564 * config/rs6000/rs6000-tables.opt: Regenerate.
11565 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
11566 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
11567 (rs6000_machine_from_flags): Handle future cpu.
11568 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
11569 PROCESSOR_POWER9 for now.
11570 (rs6000_adjust_cost): Likewise.
11571 (rs6000_issue_rate): Likewise.
11572 (rs6000_register_move_cost): Likewise.
11573 (rs6000_opt_masks): Add entry for future.
11574 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
11575 (MASK_FUTURE): New #define.
11576 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
11577 * config/rs6000/rs6000.opt (mfuture): New target option.
11578 * doc/invoke.texi (mcpu): Add future cpu.
11580 2019-05-23 Martin Liska <mliska@suse.cz>
11583 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
11584 operation points to a temporary (pointed via tree_to_wide_ref)
11585 that is out of scope after the &.
11587 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
11590 * doc/extend.texi (Function Names): Add missing word.
11592 2019-05-23 Richard Biener <rguenther@suse.de>
11594 PR tree-optimization/88440
11595 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
11597 * tree-loop-distribution.c (generate_memset_builtin): Fold the
11599 (generate_memcpy_builtin): Likewise.
11600 (distribute_loop): Pass in whether to only distribute patterns.
11601 (prepare_perfect_loop_nest): Also allow size optimization.
11602 (pass_loop_distribution::execute): When optimizing a loop
11603 nest for size allow pattern replacement.
11605 2019-05-23 Jakub Jelinek <jakub@redhat.com>
11608 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
11611 2019-05-23 Martin Liska <mliska@suse.cz>
11614 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
11615 expression similarly to gimplify_decl_expr.
11617 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11619 * cse.c (cse_dump_path): s/dump_file/f.
11621 2019-05-22 David Malcolm <dmalcolm@redhat.com>
11624 * diagnostic-format-json.cc: Include "selftest.h".
11625 (json_from_expanded_location): Only add "file" key for non-NULL
11627 (json_from_location_range): Don't add "start" and "finish"
11628 children if they are UNKNOWN_LOCATION.
11629 (selftest::test_unknown_location): New selftest.
11630 (selftest::test_bad_endpoints): New selftest.
11631 (selftest::diagnostic_format_json_cc_tests): New function.
11632 * json.cc (json::object::get): New function.
11633 (selftest::test_object_get): New selftest.
11634 (selftest::json_cc_tests): Call it.
11635 * json.h (json::object::get): New decl.
11636 * selftest-run-tests.c (selftest::run_tests): Call
11637 selftest::diagnostic_format_json_cc_tests.
11638 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
11641 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
11642 Andrew Stubbs <amd@codesourcery.com>
11644 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
11645 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
11646 (kernel): Rename to...
11647 (main_kernel): ... this.
11648 (load_image): Load _init_array and _fini_array kernels.
11649 (run): Add argument for kernel to run.
11650 (main): Run init_array_kernel before main_kernel, and
11651 fini_array_kernel after.
11652 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
11653 amdgpu_hsa_kernel attribute on functions.
11654 (gcn_disable_constructors): Delete.
11655 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
11656 * config/gcn/crt0.c (size_t): Define.
11657 (_init_array, _fini_array): New.
11658 (__preinit_array_start, __preinit_array_end,
11659 __init_array_start, __init_array_end,
11660 __fini_array_start, __fini_array_end): Declare weak references.
11662 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
11664 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
11666 2019-05-22 Jason Merrill <jason@redhat.com>
11668 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11670 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
11673 * config/i386/i386-options.c (ix86_init_machine_status): Set
11674 stack_frame_required to true.
11675 * config/i386/i386.c (ix86_get_frame_size): New function.
11676 (ix86_frame_pointer_required): Replace get_frame_size with
11677 ix86_get_frame_size.
11678 (ix86_compute_frame_layout): Likewise.
11679 (ix86_find_max_used_stack_alignment): Changed to void. Set
11680 stack_frame_required.
11681 (ix86_finalize_stack_frame_flags): Always call
11682 ix86_find_max_used_stack_alignment. Replace get_frame_size with
11683 ix86_get_frame_size.
11684 * config/i386/i386.h (machine_function): Add stack_frame_required.
11686 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
11688 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
11690 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
11692 * common/config/aarch64/aarch64-common.c
11693 (struct aarch64_option_extension, struct processor_name_to_arch,
11694 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
11695 aarch64_contains_opt,
11696 aarch64_get_extension_string_for_isa_flags): Change type of
11697 variables storing flags to uint64_t.
11698 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
11699 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
11700 * config/aarch64/aarch64.c (struct processor,
11701 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
11702 aarch64_validate_march, aarch64_override_options,
11703 aarch64_option_print, aarch64_handle_attr_isa_flags,
11704 aarch64_declare_function_name, aarch64_start_file): Make flag
11705 variables uint64_t.
11706 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
11707 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
11708 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
11709 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
11710 * config/aarch64/driver-aarch64.c
11711 (struct aarch64_arch_extension, struct aarch64_core_data,
11712 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
11713 flag variables uint64_t.
11714 * doc/invoke.texi: Add documentation for new arguments.
11716 2019-05-22 Richard Biener <rguenther@suse.de>
11718 * alias.c (ao_ref_from_mem): Move stack-slot sharing
11720 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
11722 2019-05-22 Martin Liska <mliska@suse.cz>
11725 * doc/extend.texi: Document the change.
11727 2019-05-22 Richard Biener <rguenther@suse.de>
11729 PR tree-optimization/90450
11730 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
11731 (mem_ref_hasher::equal): Check it.
11732 (mem_ref_alloc): Initialize it.
11733 (gather_mem_refs_stmt): Set it.
11735 2019-05-22 Richard Biener <rguenther@suse.de>
11737 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
11739 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
11742 2019-05-22 Alan Modra <amodra@gmail.com>
11744 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
11745 (ASM_CPU_SPEC): Conditionally add -many.
11746 * config/rs6000/rs6000.c (rs6000_machine): New static var.
11747 (rs6000_machine_from_flags, emit_asm_machine): New functions..
11748 (rs6000_file_start): ..extracted from here, and modified to
11750 (rs6000_output_function_prologue): Emit .machine as necessary.
11752 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
11754 PR middle-end/90553
11755 * ira-lives.c (process_bb_node_lives): Consider defs
11756 for a call insn to be die before the call, not after.
11758 * function.c (assign_parm_setup_block): Raise alignment of
11759 stacked parameter only for STRICT_ALIGNMENT targets.
11761 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11763 * config/rs6000/constraints.md (define_register_constraint "wz"):
11765 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11766 RS6000_CONSTRAINT_wz.
11767 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11768 (rs6000_init_hard_regno_mode_ok): Adjust.
11769 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
11770 * doc/md.texi (Machine Constraints): Adjust.
11772 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11774 * config/rs6000/constraints.md (define_register_constraint "wl"):
11776 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11777 RS6000_CONSTRAINT_wl.
11778 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11779 (rs6000_init_hard_regno_mode_ok): Adjust.
11780 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
11781 * doc/md.texi (Machine Constraints): Adjust.
11783 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11785 * config/rs6000/constraints.md (define_register_constraint "wm"):
11787 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11788 RS6000_CONSTRAINT_wm.
11789 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11790 (rs6000_init_hard_regno_mode_ok): Adjust.
11791 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
11792 * doc/md.texi (Machine Constraints): Adjust.
11794 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11796 * config/rs6000/constraints.md (define_register_constraint "wk"):
11798 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11799 RS6000_CONSTRAINT_wk.
11800 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11801 (rs6000_init_hard_regno_mode_ok): Adjust.
11802 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
11803 * doc/md.texi (Machine Constraints): Adjust.
11805 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11807 * config/rs6000/constraints.md (define_register_constraint "wj"):
11809 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11810 RS6000_CONSTRAINT_wj.
11811 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11812 (rs6000_init_hard_regno_mode_ok): Adjust.
11813 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
11815 * config/rs6000/vsx.md: Ditto.
11816 * doc/md.texi (Machine Constraints): Adjust.
11818 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11820 * config/rs6000/constraints.md (define_register_constraint "wh"):
11822 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11823 RS6000_CONSTRAINT_wh.
11824 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11825 (rs6000_init_hard_regno_mode_ok): Adjust.
11826 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
11827 * doc/md.texi (Machine Constraints): Adjust.
11829 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11832 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11833 Avoid calling gen_lowpart with CONST operand.
11835 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
11837 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
11838 field template_last_to_copy.
11839 (ssa_create_duplicates): Set it, and use it. Attempt to
11840 preserve more debug stmts.
11842 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11844 * config/i386/sse.md (VF1_AVX2): New mode iterator.
11845 (signbit<mode>2): New expander
11847 2019-05-21 James Clarke <jrtc27@jrtc27.com>
11850 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
11851 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
11853 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11855 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
11856 %ebx and %ecx bafore calling cpuid with leaf 1 or
11857 non-constant leaf argument.
11859 2019-05-21 Alan Modra <amodra@gmail.com>
11862 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
11863 power9 direct move cost.
11865 2019-05-21 Richard Biener <rguenther@suse.de>
11867 PR middle-end/90510
11868 * fold-const.c (fold_read_from_vector): New function.
11869 * fold-const.h (fold_read_from_vector): Declare.
11870 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
11871 single-element insert permutations. Canonicalize selector
11872 further and fix issue with last commit.
11874 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11876 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
11877 parameter with default value false to declaration.
11878 (split_edges_for_insertion): New inline function. Wrapper for
11879 split_critical_edges with for_edge_insertion_p = true.
11880 * tree-cfg.c (split_critical_edges): Don't split non-critical
11881 edges if for_edge_insertion_p is false. Fix whitespace.
11882 * tree-ssa-pre.c (pass_pre::execute): Call
11883 split_edges_for_insertion instead of split_critical_edges.
11884 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
11885 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
11886 (pass_data_sink_code): Update function name in the comment.
11888 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11890 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
11891 around is_value_included_in that knows how to handle BIT_AND_EXPR.
11892 (is_pred_expr_subset_of): Use the new function. Handle more cases where
11893 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
11896 2019-05-21 Martin Liska <mliska@suse.cz>
11898 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
11900 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
11901 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
11903 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11905 (rs6000_function_arg): Likewise.
11906 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
11907 (rs6000_expand_ternop_builtin): Use interval syntax.
11908 (get_element_number): Likewise.
11909 (altivec_expand_builtin): Likewise.
11910 (rs6000_get_function_versions_dispatcher): Quote target_clones.
11912 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11916 * function.h (struct function): Add calls_eh_return member.
11917 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
11918 gimplifying __builtin_eh_return call.
11919 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
11921 (expand_call_inline): Or in src_cfun->calls_eh_return into
11922 dst_cfun->calls_eh_return.
11923 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
11924 cfun->calls_eh_return.
11925 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
11926 * lto-streamer-out.c (output_struct_function_base): Write
11929 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
11931 PR rtl-optimization/43147
11932 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
11933 IX86_BUILTIN_SHUFPD.
11935 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11937 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
11938 (refs_may_alias_p_1): ... here; update stats.
11939 (refs_may_alias_p): Do not update stats here.
11941 2019-05-20 Richard Biener <rguenther@suse.de>
11943 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
11944 doesn't produce pointers.
11945 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
11946 the first operand points to.
11948 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11950 * tree-ssa-alias.c (compare_sizes): New function.
11951 (sompare_type_sizes): New function
11952 (aliasing_component_refs_p): Use it.
11953 (indirect_ref_may_alias_decl_p): Likewise.
11955 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11957 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
11959 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11961 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
11962 (LIBLSAN_EARLY_SPEC): Likewise.
11963 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
11965 2019-05-20 Martin Liska <mliska@suse.cz>
11967 * config/i386/i386.c (ix86_libc_has_fast_function):
11968 Add ATTRIBUTE_UNUSED for the argument.
11970 2019-05-20 Richard Biener <rguenther@suse.de>
11972 * gimple-match-head.c: Include vec-perm-indices.h.
11973 * generic-match-head.c: Likewise.
11974 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
11976 * fold-const.c (fold_vec_perm): Export.
11977 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
11978 (match.pd): ...here.
11980 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11982 * cfgloop.h (struct loop): Add simdlen member.
11983 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
11984 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
11985 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
11986 as new argument to autovectorize_vector_sizes target hook. If
11987 loop->simdlen, pick up vector size where the vectorization factor
11988 is equal to loop->simd, and if there is none, fall back to the first
11990 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
11992 * omp-low.c (omp_clause_aligned_alignment): Likewise.
11993 * omp-general.c (omp_max_vf): Likewise.
11994 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
11995 * tree-vect-slp.c (vect_slp_bb): Likewise.
11996 * target.def (autovectorize_vector_sizes): Add ALL argument and
11998 * doc/tm.texi: Adjust documentation.
11999 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
12000 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
12001 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
12003 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
12004 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
12005 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
12006 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
12007 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
12008 preferred vector size is not 512-bit or 256-bit, just put those
12009 unpreferred ones last.
12011 2019-05-20 Martin Liska <mliska@suse.cz>
12013 * targhooks.c (default_libc_has_fast_function): New function.
12014 * targhooks.h (default_libc_has_fast_function): Likewise.
12016 2019-05-20 Martin Liska <mliska@suse.cz>
12018 PR middle-end/90263
12019 * builtins.c (expand_builtin_memory_copy_args): When having a
12020 target with fast mempcpy implementation do now use memcpy.
12021 * config/i386/i386.c (ix86_libc_has_fast_function): New.
12022 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
12023 * doc/tm.texi: Likewise.
12024 * doc/tm.texi.in: Likewise.
12026 * expr.c (emit_block_move_hints): Add 2 new arguments.
12027 * expr.h (emit_block_move_hints): Bail out when libcall
12028 to memcpy would be used.
12030 2019-05-20 Martin Liska <mliska@suse.cz>
12032 * profile-count.c: Add vertical spacing in order
12033 to separate functions.
12034 * profile-count.h: Likewise.
12036 2019-05-20 Martin Liska <mliska@suse.cz>
12038 * profile-count.h: Do not use full qualified
12040 * profile-count.c (profile_count::to_frequency): Likewise.
12042 2019-05-20 Martin Liska <mliska@suse.cz>
12044 * profile-count.h (enum profile_quality): Use capital letters
12045 for enum value names. Use the adjusted names.
12046 * profile-count.c: Use the adjusted names.
12048 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12050 * config/rs6000/constraints.md (define_register_constraint "wH"):
12052 (define_register_constraint "wI"): Delete.
12053 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12054 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
12055 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12056 (rs6000_init_hard_regno_mode_ok): Adjust.
12057 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
12058 resp. "d", or with "wa" as appropriate, all with "p8v".
12059 * config/rs6000/vsx.md: Ditto.
12060 * doc/md.texi (Machine Constraints): Adjust.
12062 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12064 * config/rs6000/constraints.md (define_register_constraint "wy"):
12066 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12067 RS6000_CONSTRAINT_wy.
12068 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12069 (rs6000_init_hard_regno_mode_ok): Adjust.
12070 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
12071 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
12072 (define_mode_attr Fisa): New.
12073 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
12074 * doc/md.texi (Machine Constraints): Adjust.
12076 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12078 * config/rs6000/constraints.md (define_register_constraint "wu"):
12080 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12081 RS6000_CONSTRAINT_wu.
12082 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12083 (rs6000_init_hard_regno_mode_ok): Adjust.
12084 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
12086 (define_mode_attr Fa): Delete.
12087 * config/rs6000/vsx.md: Ditto.
12088 * doc/md.texi (Machine Constraints): Adjust.
12090 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12092 * config/rs6000/constraints.md (define_register_constraint "wJ"):
12094 (define_register_constraint "wK"): Delete.
12095 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12096 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
12097 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12098 (rs6000_init_hard_regno_mode_ok): Adjust.
12099 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
12100 Replace "wK" constraint by "wH" with "p9v".
12101 * config/rs6000/vsx.md: Ditto.
12102 * doc/md.texi (Machine Constraints): Adjust.
12104 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12106 * config/rs6000/constraints.md (define_register_constraint "wb"):
12108 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12109 RS6000_CONSTRAINT_wb.
12110 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12111 (rs6000_init_hard_regno_mode_ok): Adjust.
12112 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
12113 * config/rs6000/vsx.md: Ditto.
12114 * doc/md.texi (Machine Constraints): Adjust.
12116 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12118 * config/rs6000/constraints.md (define_register_constraint "wo"):
12120 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12121 RS6000_CONSTRAINT_wo.
12122 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12123 (rs6000_init_hard_regno_mode_ok): Adjust.
12124 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
12125 * config/rs6000/altivec.md: Ditto.
12126 * doc/md.texi (Machine Constraints): Adjust.
12128 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
12130 * config/darwin-c.c (darwin_register_objc_includes): Do not
12131 prepend the sysroot when building gnu-runtime header search
12134 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
12136 * config/darwin.c (darwin_file_end): Use switch_to_section ()
12137 instead of direct output of the asm.
12139 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
12141 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
12142 argument to be type bool (was int before).
12143 (rs6000_emit_epilogue): Simplify some code. Declare some variables
12144 at first use. Use type bool for some variables. Fix a theoretical
12145 eh_return bug for svr4.
12147 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
12149 * config/rs6000/rs6000.md (isa): New attribute.
12150 (enabled): New attribute.
12152 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
12154 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
12155 assemble_start_function and assemble_end_function.
12157 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
12159 PR middle-end/89433
12160 * omp-general.c (oacc_verify_routine_clauses): Change formal
12161 parameters. Add checking if already marked with an OpenACC
12162 'routine' directive. Adjust all users.
12164 PR middle-end/89433
12165 * omp-general.c (oacc_build_routine_dims): Move some of its
12167 (oacc_verify_routine_clauses): ... this new function.
12168 * omp-general.h (oacc_verify_routine_clauses): New prototype.
12170 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
12172 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
12173 formating of picbase labels to match other ports.
12175 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
12177 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
12178 in the generated code.
12180 2019-05-16 Martin Sebor <msebor@redhat.com>
12182 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
12183 identifiers, keywords, operators, and types in diagnostics. Correct
12184 quoting, spelling, and sentence capitalization issues.
12185 (expand_builtin_atomic_is_lock_free): Same.
12186 (fold_builtin_next_arg): Same.
12187 * cfgexpand.c (expand_one_var): Same.
12188 (tree_conflicts_with_clobbers_p): Same.
12189 (expand_asm_stmt): Same.
12190 (verify_loop_structure): Same.
12191 * cgraphunit.c (process_function_and_variable_attributes): Same.
12192 * collect-utils.c (collect_execute): Same.
12193 * collect2.c (maybe_run_lto_and_relink): Same.
12194 (is_lto_object_file): Same.
12195 (scan_prog_file): Same.
12196 * convert.c (convert_to_real_1): Same.
12197 * dwarf2out.c (dwarf2out_begin_prologue): Same.
12198 * except.c (verify_eh_tree): Same.
12199 * gcc.c (execute): Same.
12200 (eval_spec_function): Same.
12201 (run_attempt): Same.
12202 (driver::set_up_specs): Same.
12203 (compare_debug_auxbase_opt_spec_function): Same.
12204 * gcov-tool.c (unlink_gcda_file): Same.
12206 (do_rewrite): Same.
12207 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
12208 * gimplify.c (gimplify_asm_expr): Same.
12209 (gimplify_adjust_omp_clauses): Same.
12210 * hsa-gen.c (gen_hsa_addr_insns): Same.
12211 (gen_hsa_insns_for_load): Same.
12212 (gen_hsa_cmp_insn_from_gimple): Same.
12213 (gen_hsa_insns_for_operation_assignment): Same.
12214 (gen_get_level): Same.
12215 (gen_hsa_alloca): Same.
12216 (omp_simple_builtin::generate): Same.
12217 (gen_hsa_atomic_for_builtin): Same.
12218 (gen_hsa_insns_for_call): Same.
12219 * input.c (dump_location_info): Same.
12220 * ipa-devirt.c (compare_virtual_tables): Same.
12221 * ira.c (ira_setup_eliminable_regset): Same.
12222 * lra-assigns.c (lra_assign): Same.
12223 * lra-constraints.c (lra_constraints): Same.
12224 * lto-streamer-in.c (lto_input_mode_table): Same.
12225 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
12226 (merge_and_complain): Same.
12227 (compile_offload_image): Same.
12228 (compile_images_for_offload_targets): Same.
12229 (debug_objcopy): Same.
12232 * opts.c (print_specific_help): Same.
12233 (parse_no_sanitize_attribute): Same.
12234 (print_help): Same.
12235 (handle_param): Same.
12236 * plugin.c (add_new_plugin): Same.
12237 (parse_plugin_arg_opt): Same.
12238 (try_init_one_plugin): Same.
12239 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
12240 operators, and types in diagnostics. Correct quoting and spelling
12242 * read-rtl-function.c (parse_edge_flag_token): Same.
12243 (function_reader::parse_enum_value): Same.
12244 * reg-stack.c (check_asm_stack_operands): Same.
12245 * regcprop.c (validate_value_data): Same.
12246 * sched-rgn.c (make_pass_sched_fusion): Same.
12247 * stmt.c (check_unique_operand_names): Same.
12248 * targhooks.c (default_target_option_pragma_parse): Same.
12249 * tlink.c (recompile_files): Same.
12250 * toplev.c (process_options): Same.
12251 (do_compile): Same.
12252 * trans-mem.c (diagnose_tm_1): Same.
12253 (ipa_tm_scan_irr_block): Same.
12254 (ipa_tm_diagnose_transaction): Same.
12255 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
12256 format a tree code name in a diagnostic.
12257 (verify_types_in_gimple_min_lval): Same.
12258 (verify_types_in_gimple_reference): Same.
12259 (verify_gimple_call): Same.
12260 (verify_gimple_assign_unary): Same.
12261 (verify_gimple_assign_binary): Same.
12262 (verify_gimple_assign_ternary): Same.
12263 (verify_gimple_assign_single): Same.
12264 (verify_gimple_switch): Same.
12265 (verify_gimple_label): Same.
12266 (verify_gimple_phi): Same.
12267 (verify_gimple_in_seq): Same.
12268 (verify_eh_throw_stmt_node): Same.
12269 (collect_subblocks): Same.
12270 (gimple_verify_flow_info): Same.
12271 (do_warn_unused_result): Same.
12272 * tree-inline.c (expand_call_inline): Same.
12273 * tree-into-ssa.c (update_ssa): Same.
12274 * tree.c (tree_int_cst_elt_check_failed): Same.
12275 (tree_vec_elt_check_failed): Same.
12276 (omp_clause_operand_check_failed): Same.
12277 (verify_type_variant): Same.
12278 (verify_type): Same.
12279 * value-prof.c (verify_histograms): Same.
12280 * varasm.c (assemble_start_function): Same.
12282 2019-05-16 Martin Sebor <msebor@redhat.com>
12284 * config/i386/i386-expand.c (get_element_number): Quote keywords
12285 and other internal names in diagnostics. Adjust other diagnostic
12286 formatting issues noted by -Wformat-diag.
12287 * config/i386/i386-features.c
12288 (ix86_mangle_function_version_assembler_name): Same.
12289 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
12290 * config/i386/i386.c (ix86_function_type_abi): Same.
12291 (ix86_function_ms_hook_prologue): Same.
12292 (classify_argument): Same.
12293 (ix86_expand_prologue): Same.
12294 (ix86_md_asm_adjust): Same.
12295 (ix86_memmodel_check): Same.
12297 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
12299 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
12300 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
12303 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
12306 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
12307 intrinsics without SSE/SSE2/SSSE3.
12308 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
12310 (*mmx_uavgv8qi3): Likewise.
12312 2019-05-17 Richard Biener <rguenther@suse.de>
12314 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
12315 VEC_PERM_EXPR as __VEC_PERM with -gimple.
12317 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
12319 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
12320 vec_sldw insn pattern.
12322 2019-05-17 Richard Biener <rguenther@suse.de>
12324 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
12326 2019-05-17 Martin Liska <mliska@suse.cz>
12329 * toplev.c (output_stack_usage): With LTO and sanitizer it
12330 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
12331 has no file location.
12333 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12336 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
12337 sz0 is equal to sz1, instead return false in that case.
12339 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
12340 has non-constant expression, force sctx.lane and use two
12341 argument IFN_GOMP_SIMD_LANE instead of single argument.
12342 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
12343 two argument IFN_GOMP_SIMD_LANE without lhs.
12344 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
12346 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
12348 (LOOP_REQUIRES_VERSIONING): Or in
12349 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
12350 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
12352 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
12353 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
12354 from simd if clause if needed.
12356 2019-05-16 Richard Biener <rguenther@suse.de>
12358 * tree-affine.c (expr_to_aff_combination): New function split
12360 (tree_to_aff_combination): ... here.
12361 (aff_combination_expand): Avoid building a GENERIC tree.
12363 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
12365 * cgraphunit.c (cgraph_node::expand_thunk): Remove
12366 assemble_start_function and assemble_end_function calls.
12367 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
12368 assemble_start_function and assemble_end_function.
12369 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
12370 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
12371 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
12372 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
12373 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
12374 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
12375 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
12376 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
12377 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
12378 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12379 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12380 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
12382 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12383 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
12384 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
12385 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
12386 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
12387 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
12388 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
12389 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
12390 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12391 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
12392 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12393 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12394 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
12395 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
12397 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
12398 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
12399 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
12401 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
12403 * tree-ssa-alias.c (alias_stats): Add
12404 aliasing_component_refs_p_may_alias and
12405 aliasing_component_refs_p_no_alias.
12406 (dump_alias_stats): Print aliasing_component_refs_p stats.
12407 (aliasing_component_refs_p): Update stats.
12409 2019-05-16 Martin Liska <mliska@suse.cz>
12412 * multiple_target.c (expand_target_clones): Do not allow
12413 target_clones being used with a symbol that is an alias.
12415 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
12417 PR tree-optimization/90394
12418 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
12419 positives rather than ICE for cases where (code2 == NE_EXPR
12420 && code1 == BIT_AND_EXPR).
12422 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12425 * tree-core.h (struct tree_decl_common): Document
12426 decl_nonshareable_flag for PARM_DECLs.
12427 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
12428 * calls.c (expand_call): Don't try tail call if caller
12429 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
12430 passed on the stack and callee needs to pass any arguments on the
12432 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
12433 else if instead of series of mutually exclusive ifs. Handle
12434 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
12435 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
12437 * lto-streamer.h (LTO_major_version): Bump to 9.
12439 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
12441 PR tree-optimization/90106
12442 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
12443 new parameter as new internal function call, also move it to new
12445 (use_internal_fn): Pass internal function call to
12446 shrink_wrap_one_built_in_call_with_conds.
12448 2019-05-15 Jakub Jelinek <jakub@redhat.com>
12450 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
12452 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
12453 safelen_int and set loop->dont_vectorize.
12455 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12458 * config/i386/i386-builtin.def: Enable MMX intrinsics with
12460 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
12462 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
12463 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
12464 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
12467 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12470 * config/i386/mmx.md (*vec_dupv2sf): Changed to
12471 define_insn_and_split to support SSE emulation.
12472 (*vec_extractv2sf_0): Likewise.
12473 (*vec_extractv2sf_1): Likewise.
12474 (*vec_extractv2si_0): Likewise.
12475 (*vec_extractv2si_1): Likewise.
12476 (*vec_extractv2si_zext_mem): Likewise.
12477 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
12478 (vec_extractv2sf_1 splitter): Likewise.
12479 (vec_extractv2sfsf): Likewise.
12480 (vec_setv2si): Likewise.
12481 (vec_extractv2si_1 splitter): Likewise.
12482 (vec_extractv2sisi): Likewise.
12483 (vec_setv4hi): Likewise.
12484 (vec_extractv4hihi): Likewise.
12485 (vec_setv8qi): Likewise.
12486 (vec_extractv8qiqi): Likewise.
12487 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12488 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
12489 (vec_extractv2sisi): Likewise.
12490 (vec_extractv4hihi): Likewise.
12491 (vec_extractv8qiqi): Likewise.
12492 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12493 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
12494 (vec_initv2sisi): Likewise.
12495 (vec_initv4hihi): Likewise.
12496 (vec_initv8qiqi): Likewise.
12497 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
12498 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
12499 (vec_setv4hi): Likewise.
12500 (vec_setv8qi): Likewise.
12502 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12505 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
12506 TARGET_MMX_WITH_SSE.
12507 (MMXMODE:*mov<mode>_internal): Likewise.
12508 (MMXMODE:movmisalign<mode>): Likewise.
12510 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
12513 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
12514 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
12515 (sse2_cvtpd2pi): Ditto.
12516 (sse2_cvttpd2pi): Ditto.
12517 (*vec_concatv2sf_sse4_1): Ditto.
12518 (*vec_concatv2sf_sse): Ditto.
12519 (*vec_concatv2si_sse4_1): Ditto.
12520 (*vec_concatv2si): Ditto.
12521 (*vec_concatv4si_0): Ditto.
12522 (*vec_concatv2di_0): Ditto.
12524 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12527 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
12529 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12532 * config/i386/sse.md (ssse3_palignrdi): Changed to
12533 define_insn_and_split to support SSE emulation.
12535 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12538 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
12540 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12543 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
12544 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12547 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12550 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
12551 or TARGET_MMX_WITH_SSE.
12552 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
12554 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12557 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
12559 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12562 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
12563 Changed to define_insn_and_split to support SSE emulation.
12565 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12568 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
12569 Changed to define_insn_and_split to support SSE emulation.
12571 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12574 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
12575 (*mmx_<emms>): This.
12576 (mmx_<emms>): New expander.
12578 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12581 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
12583 (*sse2_umulv1siv1di3): Add SSE2 emulation.
12585 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12588 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
12590 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12593 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
12595 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12598 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
12599 TARGET_MMX_WITH_SSE.
12600 (*mmx_uavgv4hi3): Add SSE emulation.
12602 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12605 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
12606 and TARGET_MMX_WITH_SSE.
12607 (*mmx_uavgv8qi3): Add SSE emulation.
12609 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12612 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
12613 maskmovdqu for __MMX_WITH_SSE__.
12615 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12618 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
12619 TARGET_MMX and TARGET_MMX_WITH_SSE.
12620 (*mmx_umulv4hi3_highpart): Add SSE emulation.
12622 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12625 * config/i386/mmx.md (mmx_pmovmskb): Changed to
12626 define_insn_and_split to support SSE emulation.
12628 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12631 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
12632 and TARGET_MMX_WITH_SSE.
12633 (mmx_<code>v8qi3): Likewise.
12634 (smaxmin:<code>v4hi3): New.
12635 (umaxmin:<code>v8qi3): Likewise.
12636 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
12637 (umaxmin:*mmx_<code>v8qi3): Likewise.
12639 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12642 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
12643 TARGET_MMX_WITH_SSE.
12644 (*mmx_pinsrw): Add SSE emulation.
12646 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12649 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
12651 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12654 * config/i386/sse.md (sse_cvtpi2ps): Changed to
12655 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12658 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12661 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
12662 (sse_cvttps2pi): Likewise.
12664 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12667 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
12668 TARGET_MMX_WITH_SSE.
12669 (mmx_pshufw_1): Add SSE emulation.
12670 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
12671 TARGET_MMX_WITH_SSE to support SSE emulation.
12673 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12676 * config/i386/constraints.md (Yw): New constraint.
12677 * config/i386/mmx.md (*vec_dupv2si): Changed to
12678 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
12679 support SSE emulation.
12681 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12684 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
12685 TARGET_MMX_WITH_SSE.
12686 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12688 (mmx_gt<mode>3): Likewise.
12690 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12693 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
12694 TARGET_MMX_WITH_SSE. Add SSE support.
12696 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12699 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
12700 TARGET_MMX_WITH_SSE.
12701 (any_logic:<code><mode>3): New.
12702 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
12705 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12708 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
12709 TARGET_MMX_WITH_SSE. Add SSE emulation.
12710 (mmx_<shift_insn><mode>3): Likewise.
12711 (ashr<mode>3): New.
12712 (<shift_insn><mode>3): Likewise.
12714 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12717 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
12718 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
12720 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12723 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
12724 TARGET_MMX_WITH_SSE.
12725 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
12728 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12731 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
12732 TARGET_MMX_WITH_SSE.
12734 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12737 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12740 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
12741 (plusminus:mmx_<plusminus_insn><mode>3): Check
12742 TARGET_MMX_WITH_SSE.
12743 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
12744 (<plusminus_insn><mode>3): New.
12745 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
12746 (*mmx_<plusminus_insn><mode>3): Likewise.
12748 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12751 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
12752 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
12754 * config/i386/mmx.m (mmx_punpckhbw): Changed to
12755 define_insn_and_split to support SSE emulation.
12756 (mmx_punpcklbw): Likewise.
12757 (mmx_punpckhwd): Likewise.
12758 (mmx_punpcklwd): Likewise.
12759 (mmx_punpckhdq): Likewise.
12760 (mmx_punpckldq): Likewise.
12762 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12763 Uros Bizjak <ubizjak@gmail.com>
12766 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
12768 (ix86_split_mmx_pack): Likewise.
12769 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
12771 (ix86_split_mmx_pack): Likewise.
12772 * config/i386/i386.md (mmx_isa): New.
12773 (enabled): Also check mmx_isa.
12774 * config/i386/mmx.md (any_s_truncate): New code iterator.
12775 (s_trunsuffix): New code attr.
12776 (mmx_packsswb): Removed.
12777 (mmx_packssdw): Likewise.
12778 (mmx_packuswb): Likewise.
12779 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
12780 MMX packsswb/packuswb with SSE2.
12781 (mmx_packssdw): Likewise.
12782 * config/i386/predicates.md (register_mmxmem_operand): New.
12784 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12787 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12788 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
12789 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
12790 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
12791 (ix86_vector_mode_supported_p): Likewise.
12792 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
12794 2019-05-15 Martin Liska <mliska@suse.cz>
12796 PR middle-end/90478
12797 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12798 Check for overflow.
12800 2019-05-15 Richard Biener <rguenther@suse.de>
12802 * tree-into-ssa.c (pass_build_ssa::execute): Run
12803 update_address_taken before going into SSA.
12805 2019-05-15 Richard Biener <rguenther@suse.de>
12807 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
12808 as __BIT_FIELD_REF with type with -gimple.
12810 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
12812 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
12813 semantically equivalent branches (left over after prior refactorings).
12815 2019-05-15 Richard Biener <rguenther@suse.de>
12817 PR tree-optimization/88828
12818 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
12821 2019-05-14 Richard Biener <rguenther@suse.de>
12823 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
12824 as __VIEW_CONVERT with -gimple.
12826 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12829 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
12832 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12834 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
12835 define_split to become a define_insn_and_split.
12837 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12839 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
12841 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
12842 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
12843 (sibcall_epilogue): Adjust.
12844 (epilogue): Adjust.
12846 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12848 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
12849 to unsupported ones.
12850 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
12851 * config.host: Likewise.
12852 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
12853 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
12854 __svr4__]: Remove "brand" fallback.
12855 [!KSTAT_DATA_STRING]: Remove.
12856 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
12858 (comdat_group): Likewise.
12859 (set_have_as_tls): Likewise.
12860 (gcc_cv_target_dl_iterate_phdr): Likewise.
12861 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
12862 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
12863 * configure: Regenerate.
12864 * doc/install.texi: Simplify Solaris target triplets.
12865 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
12866 (Specific, *-*-solaris2*): Document Solaris 10 removal.
12867 Remove Solaris 10 references.
12868 Remove obsolete Solaris bug reference.
12869 (Specific, sparc-sun-solaris2.10): Remove.
12871 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
12873 * config/i386/i386.md (any_div): New code iterator.
12874 (paired_mod): New code attribute.
12875 (sgnprefix): Handle DIV and UDIV RTXes.
12877 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
12878 and udivmod<mode>4 patterns using any_div code iterator.
12879 (divmod splitters): Macroize splitters using any_div code iterator.
12880 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
12881 (*udivmodsi4_pow2_zext_2): Ditto.
12882 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
12883 and *udivmod<mode>4_noext patterns using any_div code iterator.
12884 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
12885 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
12886 patterns using any_div code iterator.
12887 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
12888 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
12889 patterns using any_div code iterator.
12890 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
12891 udivmodhiqi3 patterns using any_extend code iterator.
12893 2019-05-14 Richard Biener <rguenther@suse.de>
12894 H.J. Lu <hongjiu.lu@intel.com>
12896 PR tree-optimization/88828
12897 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
12898 permuting in a single non-constant element not extracted
12901 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
12903 * internal-fn.def (SIGNBIT): New.
12904 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
12906 (signbitv4sf2): Likewise.
12908 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
12911 * config/mips/mips.c (mips_split_move): Skip forward SRC into
12912 next insn when the SRC reg is dead.
12914 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
12916 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
12917 (alloc_cand_and_find_basis): Ditto.
12918 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
12919 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
12920 (create_add_imm_cand, slsr_process_cast): Ditto.
12921 (slsr_process_copy, replace_mult_candidate): Ditto.
12922 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
12923 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
12924 (pass_strength_reduction::execute): Init the first NULL element.
12926 2019-05-13 Nathan Sidwell <nathan@acm.org>
12928 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
12929 (run_attempt): Reformat line break.
12931 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
12934 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
12935 data registers in sibcall epilogues.
12936 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12938 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
12941 * configure.ac (--enable-frame-pointer):
12942 Disable by default for cygwin and mingw.
12943 * configure: Regenerate.
12945 2019-05-13 Nathan Sidwell <nathan@acm.org>
12947 * dwarf2out.c (breakout_comdat_types): Move comment to correct
12949 (const_ok_for_output_1): Balance parens around #if/#else/#endif
12950 (gen_member_die): Move abstract origin check earlier. Only VARs
12951 can be static_inline_p. Simplify splicing control flow.
12953 2019-05-13 Richard Biener <rguenther@suse.de>
12955 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
12957 (vect_build_slp_tree_1): Likewise.
12959 2019-05-13 Richard Biener <rguenther@suse.de>
12961 PR tree-optimization/90402
12962 * tree-if-conv.c (tree_if_conversion): Value number only
12963 the loop body by making the latch an exit of the region
12965 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
12967 (do_rpo_vn): Deal with multiple edges into the entry block
12968 that are not backedges inside the region by skipping PHIs
12969 of the entry block.
12971 2019-05-13 Richard Biener <rguenther@suse.de>
12973 PR tree-optimization/90316
12974 * tree-ssa-pre.c (insert_aux): Fold into ...
12975 (insert): ... this function. Use a RPO walk to reduce the
12976 number of required iterations.
12978 2019-05-13 Martin Liska <mliska@suse.cz>
12980 PR tree-optimization/90416
12981 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
12982 string instead of passing the second part as va_arg argument.
12984 2019-05-13 Martin Liska <mliska@suse.cz>
12986 PR gcov-profile/90380
12987 * gcov.c (handle_cycle): Do not support zero cycle count,
12988 it should not be possible.
12989 (path_contains_zero_cycle_arc): New function.
12990 (circuit): Ignore zero cycle arc counts.
12992 2019-05-13 Martin Liska <mliska@suse.cz>
12994 PR gcov-profile/90380
12995 * gcov.c (enum loop_type): Remove the enum and
12997 (handle_cycle): Assert that we should not reach
12999 (circuit): Use loop_found instead of a tri-state loop_type.
13000 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
13003 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13006 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
13007 (ix86_output_indirect_branch_via_reg): Use output mechanism
13008 accounting for __USER_LABEL_PREFIX__.
13009 (ix86_output_indirect_branch_via_push): Likewise.
13010 (ix86_output_function_return): Likewise.
13011 (ix86_output_indirect_function_return): Likewise.
13013 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
13015 * doc/md.texi: Document use of code attributes in rtx patterns.
13016 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
13017 * read-rtl.c (find_code): Split out search loops into...
13018 (maybe_find_code): ...this new function.
13019 (check_code_iterator): Make the error message more informative.
13020 (check_code_attribute): New function.
13021 (rtx_reader::rtx_alloc_for_name): Likewise.
13022 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
13023 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
13024 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
13025 <max_opp> directly as an rtx code instead of via a match_operator.
13026 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
13027 (<su>abd<mode>_3): Update accordingly.
13029 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13031 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
13032 is given, print the state of the EH "save world" computation for
13035 2019-05-11 Jakub Jelinek <jakub@redhat.com>
13038 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
13039 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
13041 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
13043 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
13044 Use pinsrd for TARGET_SSE4_1.
13045 * config/i386/sse.md (movdi_to_sse): Ditto.
13047 2019-05-10 Richard Biener <rguenther@suse.de>
13049 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
13050 (do_rpo_vn): Initialize next_value_id.
13052 2019-05-10 Martin Liska <mliska@suse.cz>
13054 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
13057 2019-05-10 Jakub Jelinek <jakub@redhat.com>
13059 PR tree-optimization/90385
13060 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
13061 arguments of the exit phis.
13064 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
13065 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
13067 (copy_tree_body_r): Likewise.
13068 (copy_fn): Set id.do_not_fold to true.
13070 2019-05-10 Martin Liska <mliska@suse.cz>
13072 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
13073 Reapply changes from r269790.
13075 2019-05-10 Martin Liska <mliska@suse.cz>
13077 PR middle-end/90340
13078 * doc/invoke.texi: New params.
13079 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
13080 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
13081 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
13083 * tree-switch-conversion.h (struct jump_table_cluster):
13086 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
13088 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
13090 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
13092 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
13094 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
13096 PR rtl-optimization/88879
13097 * sel-sched.c (sel_target_adjust_priority): Remove assert.
13099 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
13102 * config/arm/arm.c (callee_saved_reg_p): Move before
13103 thumb_find_work_register.
13104 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
13105 thumb_find_work_register. Only call df_get_live_out once.
13106 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
13107 (thumb_find_work_register): Use
13108 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
13109 algorithms to locate a spare call clobbered reg.
13111 2019-05-09 Martin Liska <mliska@suse.cz>
13113 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
13114 and MAX_EXPR in GIMPLE FE format.
13116 2019-05-09 Martin Liska <mliska@suse.cz>
13118 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
13119 * gimple-pretty-print.c (dump_gimple_bb_header):
13121 (pp_cfg_jump): Dump edge probability.
13122 * profile-count.c (profile_quality_as_string): Simplify
13123 with a static array.
13124 (parse_profile_quality): New function.
13125 (profile_count::dump): Simplify with a static array.
13126 (profile_count::from_gcov_type): Add new argument.
13127 * profile-count.h (parse_profile_quality): Likewise.
13128 * predict.h (set_hot_bb_threshold): New.
13129 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
13131 * predict.c (get_hot_bb_threshold): Set from the new param.
13132 (set_hot_bb_threshold): New.
13134 2019-05-09 Richard Biener <rguenther@suse.de>
13136 PR tree-optimization/90395
13137 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
13138 rewrite vector stores that throw internally.
13140 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
13142 * cif-code.def (CHKP): Remove.
13145 * configure.ac (--enable-frame-pointer): Disable by default for
13147 * configure: Regenerate.
13149 2019-05-09 Alan Modra <amodra@gmail.com>
13152 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
13153 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
13154 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
13155 cost for general <-> vsx when direct moves are available.
13156 Cost union classes at minimal cost for any reg in the class.
13157 Correct calculation for moves between vsx, float, and altivec.
13158 Don't return a low cost for moves between special regs. Don't
13159 use hard coded register numbers.
13160 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
13161 (rs6000_ira_change_pseudo_allocno_class): New function.
13162 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
13163 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
13165 (movsi_internal1): Don't disparage vector alternatives.
13166 (mov<mode>_internal): Likewise, excepting alternative that
13168 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
13169 we <- b alternative.
13171 2019-05-08 Jakub Jelinek <jakub@redhat.com>
13174 PR tree-optimization/89060
13175 * tree-ssa-live.h (live_vars_map): New typedef.
13176 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
13177 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
13178 (struct compute_live_vars_data): New type.
13179 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
13180 live_vars_at_stmt, destroy_live_vars): New functions.
13181 * tree-tailcall.c: Include tree-ssa-live.h.
13182 (live_vars, live_vars_vec): New global variables.
13183 (find_tail_calls): Perform variable life analysis before punting.
13184 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
13185 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
13187 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
13188 Perform variable life analysis to select variables that really need
13190 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
13191 instead set id->eh_landing_pad_dest and assert it is the same.
13192 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
13194 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
13195 Richard Earnshaw <rearnsha@arm.com>
13198 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
13200 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
13201 (thumb1_compute_save_core_reg_mask): Don't force a spare work
13202 register if both the epilogue and prologue can use call-clobbered
13204 (thumb1_unexpanded_epilogue): Use
13205 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
13206 picking temporaries for restoring high regs to match that of the
13207 prologue where possible.
13208 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
13209 the list of work registers. Detect if the return address is still live
13210 at the end of the prologue and avoid using it for a work register if so.
13211 If the return address is not live, add LR to the list of pushable regs
13212 after the first pass.
13214 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
13216 PR tree-optimization/90078
13217 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
13218 (INFTY): Increase the value for infinite cost.
13219 (struct comp_cost): Promote type of members to int64_t.
13220 (infinite_cost): Don't set complexity in initialization.
13221 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
13222 overflows to infinite_cost.
13223 (adjust_setup_cost): Promote type of parameter and cost computation
13225 (struct ainc_cost_data, struct iv_ca): Promote type of member to
13227 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
13228 cost computation to int64_t.
13229 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
13230 int64_t's format specifier in dump.
13232 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
13234 PR tree-optimization/90240
13235 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
13236 with respect to scaling factor pre-computed for each basic block.
13237 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
13238 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
13239 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
13240 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
13241 live range for array of loop's basic blocks. Cleanup aux field of
13242 loop's basic blocks.
13244 2019-05-08 Jakub Jelinek <jakub@redhat.com>
13246 PR tree-optimization/90356
13247 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
13249 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
13251 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
13252 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
13253 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
13254 (ix86_handle_option): Handle -mavx512bf16.
13255 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
13257 * config/i386/avx512bf16vlintrin.h: New.
13258 * config/i386/avx512bf16intrin.h: New.
13259 * config/i386/cpuid.h (bit_AVX512BF16): New.
13260 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
13261 * config/i386/i386-builtin-types.def: Add new types.
13262 * config/i386/i386-builtin.def: Add new builtins.
13263 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13265 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
13266 (ix86_option_override_internal): Handle BF16.
13267 (ix86_valid_target_attribute_inner_p): Ditto.
13268 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
13269 * config/i386/i386-builtin.c (enum processor_features): Add
13271 (static const _isa_names_table isa_names_table): Ditto.
13272 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
13273 (PTA_AVX512BF16): Ditto.
13274 * config/i386/i386.opt: Add -mavx512bf16.
13275 * config/i386/immintrin.h: Include avx512bf16intrin.h
13276 and avx512bf16vlintrin.h.
13277 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
13278 avx512f_cvtneps2bf16_<mode><mask_name>,
13279 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
13280 * config/i386/subst.md (mask_half): Add new subst.
13281 * doc/invoke.texi: Document -mavx512bf16.
13283 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
13285 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
13286 Delete declaration.
13287 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
13288 (rs6000_debug_legitimize_reload_address): Delete.
13289 (rs6000_legitimize_reload_address_ptr): Delete.
13290 (rs6000_option_override_internal): Adjust.
13291 (mem_operand_gpr): Adjust comment.
13292 (legitimate_lo_sum_address_p): Ditto.
13293 (rs6000_legitimize_reload_address): Delete.
13294 (rs6000_debug_legitimize_reload_address): Delete.
13295 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
13297 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
13300 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13301 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
13302 to compute vector element selector for both constant and variable
13305 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
13307 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
13308 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
13309 ashrdi3_cvt using SWI48 mode iterator.
13311 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13313 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
13314 (aarch64_<su>abd<mode>_3): Likewise.
13315 (*aarch64_<su>abd<mode>_3): New define_insn.
13316 (<sur>sad<vsi2qi>): New define_expand.
13317 * config/aarch64/iterators.md: Added MAX_OPP attribute.
13318 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
13319 (build_vect_cond_expr): Likewise.
13321 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
13323 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
13324 clobbers outside of accessible_reg_set.
13325 * config/i386/i386.c (ix86_conditional_register_usage):
13326 Disable register sets by clearing corresponding bits in
13327 accessible_reg_set. Do not set corresponding bits in fixed_regs,
13328 call_used_regs and don't clear corresponding reg_names array members.
13330 2019-05-07 Richard Biener <rguenther@suse.de>
13332 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
13333 not specified still compute a comp_vectype for invariant
13336 2019-05-07 Richard Biener <rguenther@suse.de>
13338 PR tree-optimization/90316
13339 * tree-ssa-pre.c (translate_vuse_through_block): When
13340 same_valid is NULL do not bother to search for a virtual
13342 (phi_translate_1): When operands changed we cannot keep
13343 the same value-number so do not bother to ask whether
13344 that's possible from translate_vuse_through_block.
13346 2019-05-07 Martin Liska <mliska@suse.cz>
13348 * bitmap.c (bitmap_register): Come up with
13349 alloc_descriptor_max_uid and assign it for
13351 (register_overhead): Use get_descriptor as
13353 (release_overhead): New.
13354 (bitmap_elem_to_freelist): Call it.
13355 (bitmap_elt_clear_from): Likewise.
13356 (bitmap_obstack_free): Likewise.
13357 (bitmap_move): Sensitively release memory.
13358 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
13359 (bitmap_initialize): Initialize alloc_descriptor to zero.
13360 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
13362 2019-05-07 Richard Biener <rguenther@suse.de>
13364 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
13365 we build a SLP node. Remove max_size and limiting.
13366 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
13368 2019-05-07 Richard Biener <rguenther@suse.de>
13370 PR tree-optimization/90316
13371 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
13372 limit by reference.
13373 (walk_non_aliased_vuses): Take walking limit argument.
13374 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
13375 walking if it is reached instead of just counting.
13376 (get_continuation_for_phi): Likewise.
13377 (walk_non_aliased_vuses): Likewise, instead of leaving counter
13378 limiting to the callback.
13379 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
13380 (vn_reference_lookup_3): Likewise.
13381 (vn_reference_lookup_pieces): Likewise.
13382 (vn_reference_lookup): Likewise.
13383 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
13384 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
13385 (avail_exprs_stack::lookup_avail_expr): Likewise.
13387 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
13389 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
13390 for comparaible types in the second direction even if first one
13391 hits incomparable type.
13393 2019-05-07 Richard Biener <rguenther@suse.de>
13396 * lto-wrapper.c (debug_objcopy): Use the original filename
13397 including archive offset for the filename used for -save-temps.
13399 2019-05-07 Li Jia He <helijia@linux.ibm.com>
13401 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
13404 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
13405 Hongtao Liu <hongtao.liu@intel.com>
13409 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
13410 Modified, original implementation isn't correct.
13412 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13414 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
13415 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
13416 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
13417 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
13418 (FRAME_POINTER_REGNUM): Change numbering.
13419 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
13420 (alt_reg_names): Adjust.
13421 (rs6000_conditional_register_usage): Don't mark hard register 64 as
13423 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13424 (DWARF_FRAME_REGISTERS): Delete.
13425 (DWARF2_FRAME_REG_OUT): Fix whitespace.
13426 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13428 (REG_ALLOC_ORDER): Adjust.
13429 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
13430 (REG_CLASS_CONTENTS): Adjust.
13431 (RETURN_ADDR_RTX): Change comment.
13432 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
13434 (REGISTER_NAMES): Adjust.
13435 (ADDITIONAL_REGISTER_NAMES): Adjust.
13436 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13438 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13440 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
13442 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13443 (DWARF_FRAME_REGISTERS): Adjust.
13444 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13446 (REG_ALLOC_ORDER): Adjust.
13447 (enum reg_class): Delete SPR_REGS.
13448 (REG_CLASS_NAMES): Delete SPR_REGS.
13449 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
13450 (REGISTER_NAMES): Adjust.
13451 (ADDITIONAL_REGISTER_NAMES): Adjust.
13452 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13453 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
13454 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
13455 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
13456 (htm_spr_regno): Delete.
13457 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
13459 (rs6000_dbx_register_number): Adjust.
13461 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13463 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
13465 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13467 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
13468 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
13470 2019-05-06 Jakub Jelinek <jakub@redhat.com>
13472 PR tree-optimization/88709
13473 PR tree-optimization/90271
13474 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
13475 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
13476 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
13478 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
13479 of the store merging group is larger than
13480 PARAM_STORE_MERGING_MAX_SIZE parameter.
13481 (split_group): Add bzero_first argument. If set, always emit first
13482 the first store which must be = {} of the whole area and then for the
13483 rest of the stores consider all zero bytes as paddings.
13484 (imm_store_chain_info::output_merged_store): Check if first store
13485 is = {} of the whole area and if yes, determine which setting of
13486 bzero_first for split_group gives smaller number of stores. Adjust
13487 split_group callers.
13488 (lhs_valid_for_store_merging_p): Allow decls.
13489 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
13491 (pass_store_merging::process_store): Likewise.
13493 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
13496 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
13497 handling of V1TImode.
13499 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
13502 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
13503 and enable_frame_pointer ...
13504 * configure.ac: ... here. Update help strings for
13505 --enable-frame-pointer.
13506 * configure: Regenerate.
13507 * config/i386/i386-options.c (ix86_option_override_internal): Remove
13508 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
13509 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
13510 (USE_X86_64_FRAME_POINTER): Ditto.
13512 2019-05-06 Martin Liska <mliska@suse.cz>
13514 * config.gcc: Append to target_gtfiles and fix indentation.
13516 2019-05-06 Richard Biener <rguenther@suse.de>
13518 PR tree-optimization/90358
13519 * tree-vect-stmts.c (get_group_load_store_type): Properly
13520 detect unused upper half of load.
13521 (vectorizable_load): Likewise.
13523 2019-05-06 Richard Biener <rguenther@suse.de>
13525 PR tree-optimization/88828
13526 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
13527 (simplify_vector_constructor): ...here. Handle constants in
13530 2019-05-06 Richard Biener <rguenther@suse.de>
13532 PR tree-optimization/90328
13533 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
13534 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
13535 is valid in the loop nest before using it.
13536 (initialize_data_dependence_relation): Adjust.
13537 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
13538 loop as loop-nest to dr_may_alias_p.
13540 2019-05-06 Richard Biener <rguenther@suse.de>
13542 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
13544 2019-05-06 Richard Biener <rguenther@suse.de>
13546 PR tree-optimization/90316
13547 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
13548 compute target on demand.
13549 (get_continuation_for_phi): Remove code walking stmts to
13550 get to a target virtual operand which could end up being
13553 2019-05-06 Martin Liska <mliska@suse.cz>
13556 * config/i386/i386-options.c (ix86_option_override_internal): Error only
13557 when -mabi is selected to a non-default version.
13559 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
13560 Martin Liska <mliska@suse.cz>
13562 * Makefile.in: Add lto-dump.texi.
13563 * cgraph.h: Add new functions get_visibility_string and
13564 get_symtab_type_string.
13565 * doc/gcc.texi: Include lto-dump section.
13566 * doc/lto-dump.texi: New file.
13567 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
13568 (parse_dump_option): Factor out this function.
13569 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
13570 (parse_dump_option): Export the function.
13571 * symtab.c (symtab_node::get_visibility_string): New function.
13572 (symtab_node::get_symtab_type_string): Likewise.
13574 2019-05-06 Martin Liska <mliska@suse.cz>
13576 * config/i386/i386-builtins.c: New file.
13577 * config/i386/i386-builtins.h: New file.
13578 * config/i386/i386-expand.c: New file.
13579 * config/i386/i386-expand.h: New file.
13580 * config/i386/i386-features.c: New file.
13581 * config/i386/i386-features.h: New file.
13582 * config/i386/i386-options.c: New file.
13583 * config/i386/i386-options.h: New file.
13584 * config.gcc: Add new files into extra_objs and
13586 * config/i386/i386.c: Split content of the file
13587 into newly introduced files.
13588 * config/i386/i386.h: Declare common variables
13590 * config/i386/t-i386: Define dependencies for new files.
13592 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
13595 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
13596 Restrict 'all' variant to 32-bit configurations.
13597 (unaligned_loadhiu): Likewise.
13598 (unaligned_storehi): Likewise.
13599 (unaligned_storesi): Likewise.
13600 (unaligned_loadhis): Disable when compiling for thumb1.
13602 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
13604 PR tree-optimization/90269
13605 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
13608 2019-05-03 Martin Liska <mliska@suse.cz>
13610 * hash-map.h: Add is_empty function.
13611 * hash-set.h: Likewise.
13612 * hash-table.h: Likewise.
13613 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
13614 elements () == 0 (and similar usages).
13615 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
13616 * gimplify.c (gimplify_bind_expr): Likewise.
13617 (gimplify_switch_expr): Likewise.
13618 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
13619 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
13620 * postreload-gcse.c (dump_hash_table): Likewise.
13621 (gcse_after_reload_main): Likewise.
13622 * predict.c (combine_predictions_for_bb): Likewise.
13623 * tree-parloops.c (reduction_phi): Likewise.
13624 (separate_decls_in_region): Likewise.
13625 (transform_to_exit_first_loop): Likewise.
13626 (gen_parallel_loop): Likewise.
13627 (gather_scalar_reductions): Likewise.
13628 (try_create_reduction_list): Likewise.
13629 * var-tracking.c (dump_vars): Likewise.
13630 (emit_notes_for_changes): Likewise.
13631 (vt_emit_notes): Likewise.
13633 2019-05-03 Richard Biener <rguenther@suse.de>
13635 PR tree-optimization/90316
13636 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
13639 2019-05-03 Richard Biener <rguenther@suse.de>
13641 * tree-vect-stmts.c (get_group_load_store_type): Avoid
13642 peeling for gaps by loading only lower halves of vectors
13644 (vectorizable_load): Likewise.
13646 2019-05-03 Richard Biener <rguenther@suse.de>
13648 PR middle-end/89518
13649 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
13651 2019-05-03 Richard Biener <rguenther@suse.de>
13653 PR middle-end/87314
13654 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
13655 Handle STRING_CST vs DECL or STRING_CST.
13657 2019-05-03 Richard Biener <rguenther@suse.de>
13659 PR tree-optimization/88963
13660 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
13661 vector loads feeding only BIT_FIELD_REFs to component
13662 loads. Rewrite stores fed by CONSTRUCTORs to component
13665 2019-05-03 Jakub Jelinek <jakub@redhat.com>
13667 * opts.h (finish_options): Remove lang_mask argument.
13668 (print_help, help_option_argument): Declare.
13669 * opts.c (print_help): Remove forward declaration, no longer static.
13670 (finish_options): Remove lang_mask argument, don't call print_help
13672 * opts-global.c (decode_options): Adjust finish_option caller, call
13675 PR tree-optimization/90303
13676 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
13677 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
13679 2019-05-03 Richard Biener <rguenther@suse.de>
13681 PR tree-optimization/89698
13682 * gimple-fold.c (canonicalize_constructor_val): Early out
13683 for constants, handle unfolded INTEGER_CSTs as they appear in
13684 C++ virtual table ctors.
13686 2019-05-03 Richard Biener <rguenther@suse.de>
13688 * passes.c (execute_function_todo): Remove dead code.
13690 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13692 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
13693 the internal register number, for any "real" register.
13695 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13697 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
13698 correct numbers for TFHAR, TFIAR, TEXASR.
13700 2019-05-02 Richard Biener <rguenther@suse.de>
13702 PR tree-optimization/89653
13703 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
13704 update-address-taken before the pass.
13705 * passes.def (pass_tree_loop_init): Put comment before it.
13707 2019-05-02 Richard Biener <rguenther@suse.de>
13709 PR tree-optimization/89509
13710 * tree-ssa-structalias.c (compute_dependence_clique): Look
13711 at the first subvar when determining whether it is restrict.
13713 2019-05-02 Richard Biener <rguenther@suse.de>
13715 PR tree-optimization/90273
13716 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
13717 useless debug stmts.
13719 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13721 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
13723 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
13725 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
13726 VEC_COND_EXPR be inserted to emulate a conditional internal function.
13727 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
13728 (vectorizable_reduction): Use the functions above to vectorize in a
13729 fully masked loop codes that don't have a conditional internal
13732 2019-05-02 Martin Liska <mliska@suse.cz>
13734 * cgraphclones.c: Call valid_attribute_p with 1 for
13736 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
13737 it's for target attribute.
13738 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
13739 Add new boolean argument.
13740 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
13742 (ix86_valid_target_attribute_tree): Pass target_clone_attr
13743 to ix86_valid_target_attribute_inner_p.
13744 (ix86_valid_target_attribute_p): Pass flags argument to
13745 ix86_valid_target_attribute_inner_p.
13746 (get_builtin_code_for_version): Use 0 as it's target attribute.
13748 2019-05-02 Martin Liska <mliska@suse.cz>
13750 * gcc.c (process_command): Add dummy file only
13752 * opts-global.c (decode_options): Pass lang_mask.
13753 * opts.c (print_help): New function.
13754 (finish_options): Print --help if help_option_argument
13756 (common_handle_option): Factor out content of OPT__help_
13758 * opts.h (finish_options): Add new argument.
13760 2019-05-02 Martin Liska <mliska@suse.cz>
13763 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
13764 With -minline-all-stringops use inline expansion using 4B loop.
13765 * doc/invoke.texi: Document the change of
13766 -minline-all-stringops.
13768 2019-05-01 Jeff Law <law@redhat.com>
13770 PR tree-optimization/88797
13771 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
13772 PHI feeds a conditional on the RHS of an assignment.
13774 2019-04-30 Andrew Waterman <andrew@sifive.com>
13775 Jim Wilson <jimw@sifive.com>
13777 * config/riscv/constraints.md (L): New.
13778 * config/riscv/predicates.md (lui_operand): New.
13779 (sfb_alu_operand): New.
13780 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
13781 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
13782 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
13783 * config/riscv/risc.md (type): Add sfb_alu.
13784 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
13785 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
13786 (branch_zero<mode>): Delete.
13787 (mov<mode>cc): New.
13788 (mov<GPR:mode><X:mode>cc): Likewise.
13789 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
13791 2019-04-30 Nathan Sidwell <nathan@acm.org>
13793 * tree.h (MARK_TS_EXP): New.
13795 2019-04-30 Martin Liska <mliska@suse.cz>
13797 * opts.c (enable_warning_as_error): Provide hints
13798 for unknown options.
13800 2019-04-30 Martin Liska <mliska@suse.cz>
13803 * doc/invoke.texi: Add missing dash for gas-locview-support
13804 and gno-as-locview-support.
13806 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13809 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
13810 whitespace at the start of target attribute string.
13812 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13815 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
13816 Define __ARM_FEATURE_ATOMICS.
13818 2019-04-30 Martin Liska <mliska@suse.cz>
13820 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
13821 into built_in_function enum. Remove code for endp == 2 and
13822 use BUILT_IN_* constants.
13823 (gimple_fold_builtin): Call the function with fcode.
13825 2019-04-30 Martin Liska <mliska@suse.cz>
13827 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
13828 DECL_FUNCTION_CODE into ix86_builtins enum before
13829 the switch statement.
13831 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13833 PR tree-optimization/89475
13834 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
13837 2019-04-30 Martin Liska <mliska@suse.cz>
13839 PR translation/90274
13840 * opts.c (print_filtered_help): Wrap string in _(...).
13842 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
13844 PR tree-optimization/90240
13846 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13848 PR tree-optimization/90078
13849 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13850 checks for infinite_cost overflow.
13852 2019-04-29 Jeff Law <law@redhat.com>
13854 * passes.def: Move -Wrestrict pass after copy propagation.
13856 2019-04-29 Maya Rashish <coypu@sdf.org>
13858 * config.gcc (default_gnu_indirect_function): Default to yes
13859 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
13860 sparc*-*-netbsd*, x86_64-*-netbsd*.
13862 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
13864 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
13865 where cond2 is NE_EXPR.
13866 (is_value_included_in): Update comment.
13868 2019-04-29 Richard Biener <rguenther@suse.de>
13870 PR tree-optimization/90278
13871 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
13872 EH on comparison simplification.
13874 2019-04-29 Jason Merrill <jason@redhat.com>
13876 PR c++/82081 - tail call optimization breaks noexcept
13877 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
13878 nothrow function to a might-throw function into a tail call.
13880 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
13882 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
13883 (DDR_INNER_LOOP): Likewise.
13884 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
13885 (initialize_data_dependence_relation): Likewise.
13886 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
13888 2019-04-29 Jakub Jelinek <jakub@redhat.com>
13890 PR rtl-optimization/90257
13891 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
13895 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13899 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13902 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13905 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13907 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13909 2019-04-29 Richard Biener <rguenther@suse.de>
13911 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
13914 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
13916 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
13917 varasm.h, and netbsd-protos.h.
13919 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
13922 * config/i386/i386-protos.h (ix86_data_alignment): Change
13923 the second argument type to unsigned int.
13924 * config/i386/i386.c (ix86_data_alignment): Change "align"
13925 argument type to unsigned int.
13927 2019-04-27 Martin Liska <mliska@suse.cz>
13929 PR middle-end/90258
13930 * opt-suggestions.c (option_proposer::build_option_suggestions):
13931 When get_valid_option_values returns empty values, add the
13932 misspelling candidate.
13934 2019-04-26 Jim Wilson <jimw@sifive.com>
13936 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
13938 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
13939 Pass orig_mode to riscv_build_integer.
13940 (riscv_split_integer): Pass mode to riscv_move_integer.
13941 (riscv_legitimize_const_move): Likewise.
13942 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
13943 promoted_mode. Replace force_reg call with code to load constant into
13944 promoted reg and then subreg it for the store.
13945 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
13946 riscv_move_integer.
13948 2018-04-26 Eugene Sharygin <eush@ispras.ru>
13950 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
13953 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
13955 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
13956 commentary about the encoding of precision.
13958 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
13960 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
13961 * config/i386/t-freebsd64: New file.
13962 * config.gcc: Add the t-freebsd64 for multilib support.
13964 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
13966 * doc/extend.texi (vector_size): Add missing comma after @xref.
13968 2019-04-25 Jakub Jelinek <jakub@redhat.com>
13970 * BASE-VER: Set to 10.0.0.
13972 2019-04-25 Richard Biener <rguenther@suse.de>
13974 PR middle-end/89765
13975 * gimplify.c (gimplify_expr): Avoid turning a lvalue
13976 VIEW_CONVERT_EXPR into one operating on an rvalue.
13978 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
13981 * config/i386/i386.c (feature_priority): Moved to file scope.
13982 (processor_features): Likewise.
13983 (processor_model): Likewise.
13984 (_arch_names_table): Likewise.
13985 (arch_names_table): Likewise.
13986 (_feature_list): Removed.
13987 (feature_list): Likewise.
13988 (_isa_names_table): Moved to file scope. Add priority.
13989 (isa_names_table): Likewise.
13990 (get_builtin_code_for_version): Replace feature_list with
13991 isa_names_table. Update error message for P_ZERO priority.
13993 2019-04-25 Richard Biener <rguenther@suse.de>
13995 * tree-pass.h (make_pass_phi_only_cprop): Remove.
13996 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
13998 2019-04-24 Jeff Law <law@redhat.com>
14000 PR tree-optimization/90037
14001 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
14002 * passes.def: Replace all instance of phi-only cprop with the
14003 lattice propagator. Move propagation pass from after erroneous
14004 path isolation to before erroneous path isolation.
14005 * tree-ssa-phionlycprop.c: Remove.
14007 2019-04-24 Richard Biener <rguenther@suse.de>
14009 PR middle-end/90213
14010 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
14011 by size and BITS_PER_UNIT on poly-wide-ints.
14013 2019-04-25 Richard Biener <rguenther@suse.de>
14015 PR middle-end/90194
14016 * match.pd: Add pattern to simplify view-conversion of an
14019 2019-04-24 Clement Chigot <clement.chigot@atos.net>
14021 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
14022 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
14023 for Go on 32 bit AIX.
14024 * config/rs6000/aix72.h: Likewise.
14026 2019-04-24 Jakub Jelinek <jakub@redhat.com>
14029 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
14030 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
14032 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
14035 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
14036 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
14037 for restored hard frame pointer.
14038 (s390_sched_dependencies_evaluation): Implement new target hook.
14039 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
14041 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
14043 * config/arc/arc-options.def: Fix typos and spelling mistakes.
14044 * config/arc/arc.c (arc_init): Cleanup warning message.
14045 (arc_override_options): Likewise.
14047 2019-04-24 Jakub Jelinek <jakub@redhat.com>
14050 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
14051 a register if both if_true and if_false are MEMs.
14053 PR tree-optimization/90208
14054 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
14055 after labels of new_bb, not before them.
14057 PR tree-optimization/90211
14058 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
14059 which are not SSA_NAMEs.
14061 2018-04-23 Sudakshina Das <sudi.das@arm.com>
14063 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
14065 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
14067 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
14069 PR rtl-optimization/87979
14070 * modulo-sched.c (sms_schedule): Start ii value "mii" should
14073 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
14075 PR rtl-optimization/84032
14076 * modulo-sched.c (ps_insn_find_column): Change condition so that
14077 branch will always be the last insn in a row inside partial
14080 2019-04-23 Richard Biener <rguenther@suse.de>
14083 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
14084 dest_single_pred_p argument.
14085 (remove_forwarder_block): Adjust.
14086 (remove_forwarder_block_with_phi): Likewise.
14088 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14089 Bernd Edlinger <bernd.edlinger@hotmail.de>
14090 Jakub Jelinek <jakub@redhat.com>
14093 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
14094 if used with general-regs-only.
14095 (arm_conditional_register_usage): Don't add non-general regs if
14097 (arm_valid_target_attribute_rec): Handle general-regs-only.
14098 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
14100 (TARGET_HARD_FLOAT_SUB): Define.
14101 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
14102 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
14103 (TARGET_REALLY_IWMMXT2): Likewise.
14104 * config/arm/arm.opt: Add -mgeneral-regs-only.
14105 * doc/extend.texi: Document ARM general-regs-only target.
14106 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
14108 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14110 PR tree-optimization/90078
14111 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
14112 checks for infinite_cost overflow.
14114 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14116 PR tree-optimization/90021
14117 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
14118 and check univariate against it.
14119 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
14120 * tree-data-ref.c (add_other_self_distances): Pass new argument.
14122 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
14126 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
14129 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
14132 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
14134 * lra-spills.c (lra_final_code_change): Remove useless move insns.
14136 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
14138 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
14139 names using operand format, rather than hard-wired.
14140 (speculation_barrier): Likewise.
14142 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
14144 PR tree-optimization/88055
14145 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
14146 (gen_one_condition): Use it if !HONOR_NANS.
14148 2019-04-19 Jakub Jelinek <jakub@redhat.com>
14150 PR middle-end/90139
14151 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
14152 assign_temp instead of gen_reg_rtx.
14154 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
14156 PR translation/90118
14157 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14158 Add missing space before %<.
14160 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
14162 PR rtl-optimization/87871
14163 * ira-lives.c (make_object_dead): Don't add conflicts to
14164 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
14166 2019-04-18 Martin Sebor <msebor@redhat.com>
14168 PR middle-end/89797
14169 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
14170 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
14171 assuming type size fits in SHWI.
14173 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
14176 * ipa-inline.c (flatten_function): New parameter UPDATE.
14177 (ipa_inline, early_inliner): Use it.
14179 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
14181 * fold-const.c (int_const_binop): Return early on failure.
14183 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
14185 PR middle-end/85164
14186 * combine.c (force_int_to_mode): Cast the argument rather than
14187 the result of known_alignment.
14188 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
14190 2019-04-18 Richard Biener <rguenther@suse.de>
14193 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
14195 (remove_forwarder_block): ... here.
14196 (remove_forwarder_block_with_phi): Also move debug stmts here.
14198 2019-04-18 Jakub Jelinek <jakub@redhat.com>
14200 PR translation/79183
14201 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
14202 inform where appropriate.
14204 2019-04-18 Richard Biener <rguenther@suse.de>
14206 * tree.c (get_qualified_type): Put found type variants at the
14207 head of the variant list.
14209 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14211 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
14213 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
14216 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
14217 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
14218 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
14219 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
14220 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
14222 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
14224 * ira-conflicts.c (print_allocno_conflicts): Always print something,
14225 even for allocno's with no conflicts.
14226 (print_conflicts): Print an extra newline.
14228 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14230 * auto-inc-dec.c (attempt_change): Set the alignment of the
14231 temporary memory to that of the original.
14233 2019-04-17 Joao Moreira <jmoreira@suse.de>
14235 * targhooks.c (default_print_patchable_function_entry): Emit
14236 __patchable_function_entries section with writable flags to allow
14237 relocation resolution.
14239 2019-04-17 Jonny Grant <jg@jguk.org>
14241 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
14243 2019-04-17 Jakub Jelinek <jakub@redhat.com>
14245 PR middle-end/90095
14246 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
14247 on lowpart SUBREGs.
14249 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
14251 * config/arc/arc.c (arc_init): Format diagnostic string.
14252 (arc_override_options): Likewise.
14253 (check_if_valid_regno_const): Likewise.
14254 (arc_reorg): Likewise.
14256 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14259 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
14261 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
14263 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
14264 (*movdi_update1): Use Pmode.
14265 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
14266 (movdi_<mode>_update_stack): Rename to ...
14267 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
14269 (*movsi_update1): Use Pmode.
14270 (*movsi_update2): Use Pmode.
14271 (movsi_update): Rename to ...
14272 (movsi_<mode>_update): ... this. Use Pmode.
14273 (movsi_update_stack): Fix condition.
14274 (*movhi_update1): Use Pmode. Fix argument to
14275 avoiding_indexed_address_p.
14276 (*movhi_update2): Ditto.
14277 (*movhi_update3): Ditto.
14278 (*movhi_update4): Ditto.
14279 (*movqi_update1): Ditto.
14280 (*movqi_update2): Ditto.
14281 (*movqi_update3): Ditto.
14282 (*movsf_update1, *movdf_update1): Merge, rename to...
14283 (*mov<mode>_update1): This. Use Pmode. Fix argument to
14284 avoiding_indexed_address_p. Add "size" attribute.
14285 (*movsf_update2, *movdf_update2): Merge, rename to...
14286 (*mov<mode>_update2): This. Ditto.
14287 (*movsf_update3): Use Pmode. Fix argument to
14288 avoiding_indexed_address_p.
14289 (*movsf_update4): Ditto.
14290 (allocate_stack): Simplify condition. Adjust pattern names.
14292 2019-04-17 Jakub Jelinek <jakub@redhat.com>
14295 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
14296 whitespace at the start of target attribute string.
14298 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
14301 * config/rs6000/power9.md: Add store forwarding bypass.
14303 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
14306 * valtrack.c (dead_debug_insert_temp): Reset debug references
14307 to the return value of a call being removed.
14309 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14311 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
14312 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
14313 implement target hook.
14314 (arc_memory_move_cost): New function.
14315 (TARGET_REGISTER_MOVE_COST): Define.
14316 (TARGET_MEMORY_MOVE_COST): Likewise.
14317 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
14318 (MEMORY_MOVE_COST): Likewise.
14320 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14322 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
14323 (sibcall_value_insn): Likewise.
14324 * config/arc/constraints.md (Rs5): Remove.
14326 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14328 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
14329 for last two fake registers.
14330 (arc_conditional_register_usage): Make sure fake frame and arg
14331 pointer regs are in general regs class.
14332 (FRAME_POINTER_MASK): Remove.
14333 (RETURN_ADDR_MASK): Remove.
14334 (arc_must_save_register): Use hard frame regnum.
14335 (frame_restore_reg): Use hard_frame_pointer_rtx.
14336 (arc_save_callee_saves): Likewise.
14337 (arc_restore_callee_saves): Likewise.
14338 (arc_save_callee_enter): Likewise.
14339 (arc_restore_callee_leave): Likewise.
14340 (arc_save_callee_milli): Likewise.
14341 (arc_eh_return_address_location): Likewise.
14342 (arc_check_multi): Use hard frame regnum.
14343 (arc_can_eliminate): Likewise.
14344 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
14345 for register allocator.
14346 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
14347 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
14348 (FRAME_POINTER_REGNUM): Change it to a fake register.
14349 (HARD_FRAME_POINTER_REGNUM): Defined.
14350 (ARG_POINTER_REGNUM): Change it to a new fake register.
14351 (ELIMINABLE_REGS): Update.
14352 (REGISTER_NAMES): Update names.
14353 * config/arc/arc.md (LP_START): Remove.
14354 (LP_END): Likewise.
14355 (shift_si3_loop): Update pattern.
14357 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14359 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
14360 to avoid delay slot scheduling.
14361 (arc_must_save_register): Don't save SP.
14362 * config/arc/arc.md (stack_tie): Remove.
14363 (UNSPEC_ARC_STKTIE): Likewise.
14365 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
14366 Shiva Chen <shiva0217@gmail.com>
14368 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
14369 code gen with large shift amount.
14371 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
14373 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
14376 2019-04-16 Jakub Jelinek <jakub@redhat.com>
14379 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
14380 print -m64/-mx32/-m32 if it is true.
14381 (ix86_debug_options, ix86_function_specific_print): Pass true as
14382 ADD_ABI_P to ix86_target_string.
14383 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
14384 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
14385 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
14387 PR rtl-optimization/90082
14388 * dce.c (can_delete_call): New function.
14389 (deletable_insn_p, mark_insn): Use it.
14391 PR tree-optimization/90090
14392 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
14394 (is_division_by_square): Likewise. Formatting fix.
14396 2019-04-16 Richard Biener <rguenther@suse.de>
14398 PR tree-optimization/56049
14399 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
14400 equality check if alias-set zero will prevail.
14402 2019-04-15 Jeff Law <law@redhat.com>
14404 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
14405 size and alignment as unsigned.
14407 2019-04-15 Richard Biener <rguenther@suse.de>
14410 * tree-loop-distribution.c (destroy_loop): Preserve correct
14413 2019-04-15 Richard Biener <rguenther@suse.de>
14415 PR tree-optimization/90071
14416 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
14417 abnormal operands from def stmts.
14419 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
14421 PR rtl-optimization/89794
14422 * combine.c (count_auto_inc): New function.
14423 (try_combine): Count how many auto_inc expressions there were in the
14424 original instructions. Ensure we have the same number in the new
14425 instructions. Remove the code that tried to ensure auto_inc side
14426 effects on i1 and i0 are not lost.
14428 2019-04-15 Richard Biener <rguenther@suse.de>
14431 * tree.h (auto_var_p): Declare.
14432 * tree.c (auto_var_p): New function, split out from ...
14433 (auto_var_in_fn_p): ... here.
14434 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
14436 (new_var_info): Initialize it.
14437 (set_uids_in_ptset): Also set the shadow variable uid if required.
14438 (ipa_pta_execute): Postprocess points-to solutions assigning
14439 shadow variable uids for locals that may reach their containing
14440 function recursively.
14441 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
14442 assert but instead check whether the points-to solution is
14445 2019-04-15 Martin Jambor <mjambor@suse.cz>
14448 * cgraph.c (clone_of_p): Loop over clone chain for each step in
14451 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
14453 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
14455 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
14456 Kito Cheng <kito.cheng@gmail.com>
14457 Shiva Chen <shiva0217@gmail.com>
14459 * config/nds32/nds32-md-auxiliary.c
14460 (nds32_legitimize_pic_address): Use new PIC pattern.
14461 (nds32_legitimize_tls_address): Use new TLS pattern.
14462 (nds32_output_symrel): New.
14463 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
14464 (nds32_alloc_relax_group_id): Ditto.
14465 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
14466 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
14468 (nds32_group_tls_insn): Ditto.
14469 (nds32_group_float_insns): Ditto.
14470 * config/nds32/nds32.md (tls_le): New.
14473 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
14475 * configure: Add nds32 target for dwarf2 debug_line checking.
14476 * configure.ac: Regenerated.
14478 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
14481 * ipa-devirt.c (skip_in_fields_list_p): New.
14482 (odr_types_equivalent_p): Use it.
14484 2019-04-13 Jakub Jelinek <jakub@redhat.com>
14487 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
14488 instead of strncmp when checking for thumb and arm. Formatting fixes.
14490 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
14492 * doc/install.texi: Document --with-target-system-zlib.
14494 2019-04-12 Martin Sebor <msebor@redhat.com>
14500 * targhooks.c (default_vector_alignment): Avoid assuming
14501 argument fits in SHWI.
14502 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
14503 a shift expression.
14504 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
14506 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14508 PR rtl-optimization/89965
14509 * dce.c: Include rtl-iter.h.
14510 (struct check_argument_load_data): New type.
14511 (check_argument_load): New function.
14512 (find_call_stack_args): Check for loads from stack slots still tracked
14513 in sp_bytes and punt if any is found.
14515 * config/mips/loongson-mmiintrin.h: Fix up #error message.
14517 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
14519 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
14520 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
14522 2019-04-12 Martin Liska <mliska@suse.cz>
14524 PR middle-end/89970
14525 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
14527 (separate_attrs): Handle multiple 'default's.
14528 (expand_target_clones): Rework error handling code.
14530 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
14533 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
14534 mode of vector rather than mode of destination for move instruction.
14535 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
14536 Use QI inner mode with V16QI vector mode.
14538 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14541 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
14542 "invalid %%t operand" in output_operand_lossage message.
14544 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
14546 * config/s390/predicates.md (permute_pattern_operand): New
14548 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
14549 operand for the permute pattern.
14550 ("*vec_perm<mode>"): New insn definition.
14551 ("bswap<mode>"): Generate the permute pattern operand in the
14552 expander and perform the operand reloads for pre arch13 level
14554 ("*bswap<mode>_emu"): Rename to ...
14555 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
14556 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
14557 Add the USE operand for the permute pattern.
14558 ("*vec_set_bswap_vec<mode>"): Likewise.
14560 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14563 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
14564 and gcc_unreachable if it fails, just call tree_to_uhwi which
14565 verifies that too. Test TREE_CHAIN instead of list_length > 1.
14566 Start warning message with a lower-case letter. Formatting fixes.
14568 PR rtl-optimization/90026
14569 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
14570 successors, look for BARRIERs inside of the whole BB_FOOTER chain
14571 rather than just at the start of it. If e->src BB_FOOTER is not NULL
14572 in cfglayout mode, use emit_barrier_after_bb.
14574 2018-04-11 Steve Ellcey <sellcey@marvell.com>
14576 PR rtl-optimization/87763
14577 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
14580 2019-04-11 Tom de Vries <tdevries@suse.de>
14582 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
14583 max macro using statement expression.
14585 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
14587 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
14588 * xcoffout.c (xcoff_private_rodata_section_name): Define.
14589 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
14590 read_only_private_data_section using xcoff_private_rodata_section_name.
14591 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
14593 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
14596 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
14598 2019-04-11 Jakub Jelinek <jakub@redhat.com>
14600 PR rtl-optimization/89965
14601 * dce.c (sp_based_mem_offset): New function.
14602 (find_call_stack_args): Use sp_based_mem_offset.
14604 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
14606 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
14608 2019-04-11 Richard Biener <rguenther@suse.de>
14610 PR tree-optimization/90020
14611 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
14612 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
14613 * tree-ssa-pre.c (compute_avail): Use it to not put
14614 possibly trapping references after a call that might not
14615 return into EXP_GEN.
14616 * gcse.c (compute_hash_table_work): Do not elide
14617 marking a block containing a call if the call might not
14620 2019-04-11 Richard Biener <rguenther@suse.de>
14622 PR tree-optimization/90018
14623 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
14624 Test both SLP and interleaving variants.
14626 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
14628 * config/s390/8561.md: New file.
14629 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14630 Add arch13 cpu model.
14631 * config/s390/s390-opts.h (enum processor_type): Likewise.
14632 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
14633 (s390_get_unit_mask): Likewise.
14634 (s390_is_fpd): Likewise.
14635 (s390_is_fxd): Likewise.
14636 * config/s390/s390.h (s390_tune_attr): Likewise.
14637 * config/s390/s390.md: Include arch13 pipeline description.
14638 * config/s390/s390.opt: Add arch13.
14640 2018-04-10 Steve Ellcey <sellcey@marvell.com>
14642 PR rtl-optimization/87763
14643 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
14645 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
14647 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
14649 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
14650 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
14651 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
14652 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
14654 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
14656 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
14657 "Although" in -fipa-icf documentation.
14659 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
14660 of using multiple -g options.
14662 2019-04-10 Martin Liska <mliska@suse.cz>
14664 PR gcov-profile/89959
14665 * doc/gcov.texi: Make documentation of -x option
14668 2019-04-10 Richard Biener <rguenther@suse.de>
14670 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
14672 (DR_GROUP_SAME_DR_STMT): Remove.
14673 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
14674 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
14675 replace with assert.
14676 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
14677 (vect_record_grouped_load_vectors): Remove unreachable code.
14679 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
14682 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
14683 obsolete reference to N.
14685 2019-04-10 Jakub Jelinek <jakub@redhat.com>
14687 PR middle-end/90025
14688 * expr.c (store_expr): Set properly size on the MEM passed to
14692 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
14693 with strlen in between hostsz-3 and hostsz-1 inclusive when no
14694 translation is needed, and when translation is needed, only append
14695 ... if the string length is hostsz or more bytes long. Avoid using
14698 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
14701 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
14702 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
14704 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
14705 differences directly.
14706 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
14708 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14710 PR translation/90011
14711 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
14713 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
14715 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
14716 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
14717 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
14718 trailing space from -gsplit-dwarf diagnostics.
14720 PR tree-optimization/89998
14721 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
14722 instead of integer_type_node if possible, don't add ranges if return
14723 type is not compatible with int.
14724 * gimple-fold.c (gimple_fold_builtin_sprintf,
14725 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
14728 2019-04-09 Martin Liska <mliska@suse.cz>
14730 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
14731 * doc/install.texi: Document the new config.
14733 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
14735 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
14736 use gimple_expr_type for load and store calls. Skip over the
14737 condition argument in a conditional internal function.
14738 Protect use of TREE_INT_CST_LOW.
14740 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14743 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
14744 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
14745 trailing period from it too.
14747 2019-04-08 wu yuan <wuyuan5@huawei.com>
14749 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
14750 * config/aarch64/aarch64.md : Add "tsv110.md"
14751 * config/aarch64/tsv110.md: New file.
14753 2019-04-08 Richard Biener <rguenther@suse.de>
14755 PR tree-optimization/90006
14756 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
14759 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
14762 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
14764 (fma_root_node): Likewise.
14765 (func_fma_steering): Likewise.
14767 2019-04-08 Jakub Jelinek <jakub@redhat.com>
14769 PR rtl-optimization/89865
14770 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
14772 PR rtl-optimization/89865
14773 * config/i386/i386.md
14774 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
14775 numbers not to clash with the additional operands[4].
14776 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
14777 with extra register copy in the middle.
14779 2019-04-08 Martin Liska <mliska@suse.cz>
14781 PR gcov-profile/89961
14782 * doc/gcov.texi: Document data_file.
14783 * gcov.c (generate_results): Add data_info into JSON output.
14785 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
14787 PR tree-optimization/89725
14788 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
14789 loop's chrec as invariant symbol.
14790 * tree-chrec.h (chrec_contains_symbols): New parameter.
14791 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
14792 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
14793 function of loops not in DDR's loop_nest.
14794 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
14796 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
14799 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
14802 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
14805 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
14806 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
14808 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
14810 * sched-deps.c (sched_macro_fuse_insns): Check return value of
14811 targetm.fixed_condition_code_regs.
14813 2019-04-05 Richard Biener <rguenther@suse.de>
14817 * tree-cfgcleanup.c (remove_forwarder_block): Always move
14818 debug bind stmts but reset them if they are not valid at the
14821 2019-04-05 Martin Liska <mliska@suse.cz>
14823 PR translation/89936
14824 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
14825 order to wrap keywords or arguments.
14826 * collect2.c (main): Likewise.
14827 (scan_prog_file): Likewise.
14828 (scan_libraries): Likewise.
14829 * common/config/riscv/riscv-common.c
14830 (riscv_subset_list::parsing_subset_version): Likewise.
14831 (riscv_subset_list::parse_std_ext): Likewise.
14832 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14834 * config/arm/arm.c (arm_option_override): Likewise.
14835 * config/cris/cris.c (cris_print_operand): Likewise.
14836 * config/darwin-c.c (darwin_pragma_options): Likewise.
14837 (darwin_pragma_unused): Likewise.
14838 (darwin_pragma_ms_struct): Likewise.
14839 * config/ft32/ft32.c (ft32_print_operand): Likewise.
14840 * config/i386/i386.c (print_reg): Likewise.
14841 (ix86_print_operand): Likewise.
14842 * config/i386/xm-djgpp.h: Likewise.
14843 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
14844 * config/m32c/m32c.c (m32c_option_override): Likewise.
14845 * config/msp430/msp430.c (msp430_option_override): Likewise.
14846 * config/nds32/nds32.c (nds32_option_override): Likewise.
14847 * config/nvptx/mkoffload.c (main): Likewise.
14848 * config/rx/rx.c (rx_print_operand): Likewise.
14849 (valid_psw_flag): Likewise.
14850 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
14851 (vms_pragma_nomember_alignment): Likewise.
14852 (vms_pragma_extern_model): Likewise.
14853 * lto-wrapper.c (compile_offload_image): Likewise.
14854 * omp-offload.c (oacc_parse_default_dims): Likewise.
14855 * symtab.c (symtab_node::verify_base): Likewise.
14856 * tlink.c (recompile_files): Likewise.
14857 (start_tweaking): Likewise.
14858 * tree-profile.c (parse_profile_filter): Likewise.
14860 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
14862 PR tree-optimization/89956
14863 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
14864 multiple negates of the same value.
14866 2019-04-04 Martin Sebor <msebor@redhat.com>
14868 PR middle-end/89957
14869 PR middle-end/89911
14870 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
14871 have the same precision since the function crashes otherwise.
14872 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
14873 has non-zero arguments.
14875 2019-04-04 Martin Sebor <msebor@redhat.com>
14877 PR middle-end/89934
14878 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
14879 out if the number of arguments is less than expected.
14881 2019-04-04 Jeff Law <law@redhat.com>
14883 PR rtl-optimization/89399
14884 * ree.c (combine_set_extension): Use single_set rather than
14885 digging into PATTERN for items on the candidate list.
14886 (combine_reaching_defs): Likewise.
14888 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
14890 PR rtl-optimization/46590
14891 * loop-invariant.c (find_defs): Move df_remove_problem and
14892 df_process_deferred_rescans to move_invariants.
14893 Move df_live_add_problem and df_live_set_all_dirty calls
14894 to move_invariants.
14895 (move_invariants): Likewise.
14896 (move_loop_invariants): Likewise, making the df_live calls
14897 conditional on -O. Remove the problem again if we added it
14900 2019-04-03 qing zhao <qing.zhao@oracle.com>
14902 PR tree-optimization/89730
14903 * ipa-inline.c (can_inline_edge_p): Delete the checking for
14904 -flive-patching=inline-only-static.
14905 (can_inline_edge_by_limits_p): Add the checking for
14906 -flive-patching=inline-only-static and grant always_inline
14907 even when -flive-patching=inline-only-static is specified.
14909 2019-04-03 Jeff Law <law@redhat.com>
14911 PR rtl-optimization/81025
14912 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
14914 2019-04-03 Richard Biener <rguenther@suse.de>
14916 PR tree-optimization/84101
14917 * tree-vect-stmts.c: Include explow.h for hard_function_value,
14918 regs.h for hard_regno_nregs.
14919 (cfun_returns): New helper.
14920 (vect_model_store_cost): When vectorizing a store to a decl
14921 we return and the function ABI returns in a multi-reg location
14922 account for the possible spilling that will happen.
14924 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
14926 * config/s390/s390.c (s390_legitimate_address_p): Reject long
14927 displacement addresses for vector mode operands.
14929 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
14931 * config/arc/arc.c (GMASK_LEN): Define.
14932 (arc_restore_callee_saves): Restore first blink when
14935 2019-04-03 Sudakshina Das <sudi.das@arm.com>
14937 * doc/extend.texi: Add deprecated comment on sign-return-address
14938 function attribute and add mbranch-protection.
14939 * doc/invoke.texi: Add bti to the options for mbranch-protection.
14941 2019-04-03 Richard Biener <rguenther@suse.de>
14944 * lto-wrapper.c (run_gcc): Avoid implicit rules making
14945 the all target phony.
14947 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
14951 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
14952 Return false for variable DImode shifts.
14953 (dimode_scalar_chain::compute_convert_gain): Do not handle
14954 register count operand in variable DImode shifts.
14955 (dimode_scalar_chain::make_vector_copies): Remove support to copy
14956 count argument of a variable shift instruction to a vector register.
14957 (dimode_scalar_chain::convert_reg): Remove support to convert
14958 count argument of a variable shift instruction.
14960 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14962 PR rtl-optimization/84206
14963 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
14964 iterating over loop headers.
14966 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14968 PR rtl-optimization/85876
14969 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
14970 beyond the original fence.
14972 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
14974 * config.gcc: Mark spu* targets as deprecated/obsolete.
14976 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14978 * config/s390/s390-builtin-types.def: New builtin function type
14979 definitions. Remove unused types.
14980 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
14981 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
14982 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
14983 overloaded builtins.
14984 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
14985 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
14986 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
14987 (vec_double, vec_signed, vec_unsigned): Define to use the new
14988 overloaded builtins.
14989 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
14992 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14994 * config/s390/s390-builtin-types.def: New builtin function type
14996 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
14997 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
14998 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
14999 (s390_vstrszh, s390_vstrszf): New low-level builtins.
15000 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
15001 constant definitions.
15002 * config/s390/vecintrin.h (vec_search_string_cc)
15003 (vec_search_string_until_zero_cc): New builtin name definitions.
15004 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
15006 ("vec_vstrs<mode>"): New insn definition.
15008 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15010 * config/s390/s390-builtin-types.def: Add new builtin function
15012 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
15013 New overloaded builtins.
15014 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
15016 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
15017 (UNSPEC_VEC_SLDBYTE): ... this.
15018 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
15019 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
15021 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
15022 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
15023 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
15025 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15027 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
15028 New insn definition.
15029 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
15030 * config/s390/vector.md (V_HW_HSD): ... here.
15032 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15034 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
15035 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
15036 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
15037 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
15038 New insn definitions.
15040 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15042 * config/s390/s390-builtin-types.def: Add new builtin function type.
15043 * config/s390/s390-builtins.def: Add overloaded builtin
15044 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
15045 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
15046 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
15047 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
15048 ("eltswap<mode>"): New expander.
15049 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
15052 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15054 * config/s390/s390-builtin-types.def: Add new builtin function types.
15055 * config/s390/s390-builtins.def: Add overloaded builtin
15056 s390_vec_revb. Add low-level builtins for vlbr and vstbr
15058 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
15059 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
15060 ("bswap<mode>"): New expander.
15061 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
15063 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15065 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
15066 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
15067 vector builtin version number in __VEC__.
15069 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15071 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
15073 (SFSI): New mode attribute.
15074 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
15075 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
15077 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
15078 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
15079 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
15080 ("floatsi<mode>2"): Add wcefb instruction.
15082 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15084 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
15085 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
15087 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
15088 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
15089 support 32 bit fp-int conversions. Rename to ...
15090 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
15091 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
15092 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
15093 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
15096 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15098 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
15099 if-then-else constructs if we can use the select instruction.
15100 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
15102 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15104 * config/s390/s390.md ("*popcountdi_arch13_cc")
15105 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
15107 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
15108 Append _z196 to make it ...
15109 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
15110 ("popcounthi2_z196"): ... this.
15111 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
15112 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
15114 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15116 * config/s390/s390.c (s390_canonicalize_comparison): Convert
15117 certain compares for arch13 in order to make use of the condition
15118 code result produced by the new instructions.
15119 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
15120 nxrk, and nxgrk instruction patterns.
15121 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
15122 (inv_no): Add new code iterator together with some attributes.
15123 ("*andc_split_<mode>"): Disable splitter for arch13.
15124 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
15125 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
15126 ("*<ANDOR:bitops_name>c<GPR:mode>")
15127 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
15128 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
15129 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
15130 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
15132 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15134 * common/config/s390/s390-common.c (processor_flags_table): New
15136 * config.gcc: Support arch13 with the --with-arch= configure flag.
15137 * config/s390/driver-native.c (s390_host_detect_local_cpu):
15138 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
15139 * config/s390/s390.c (s390_get_sched_attrmask)
15140 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
15141 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
15142 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
15143 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
15144 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
15146 * config/s390/s390.opt: Support arch13 as processor type in
15147 command line options.
15149 2019-04-02 Martin Liska <mliska@suse.cz>
15151 PR translation/89912
15152 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
15153 Fix param description of graphite-max-arrays-per-scop.
15155 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
15157 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
15158 (ASAN_CC1_SPEC): Use it in 64-bit mode.
15159 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
15161 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15163 PR rtl-optimization/85412
15164 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
15165 sel_sched_region_1, not after.
15167 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15169 PR rtl-optimization/86928
15170 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
15171 compute_live if necessary.
15172 (sel_redirect_edge_and_branch): Likewise.
15174 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
15176 PR rtl-optimization/89865
15177 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
15178 register if it is a part of small class.
15180 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15182 PR rtl-optimization/87273
15183 * sel-sched-ir.c (merge_fences): Remove assert.
15185 2019-04-01 Richard Biener <rguenther@suse.de>
15187 PR tree-optimization/46590
15188 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
15189 (dom_walker::m_reachability): Add in place of...
15190 (dom_walker::m_skip_unreachable_blocks): ...this.
15191 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
15192 Move complex initialization ...
15193 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
15194 lazily and initialize edge flags on each invocation.
15195 (dom_walker::bb_reachable): Use m_reachability.
15197 2019-04-01 Martin Liska <mliska@suse.cz>
15200 * opt-suggestions.c (option_proposer::build_option_suggestions):
15201 Add variant without any argument in order to provide better
15204 2019-04-01 Richard Biener <rguenther@suse.de>
15207 * gimple.c: Include langhooks.h.
15208 (gimple_get_alias_set): Treat enumeral types as the underlying
15211 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15212 Eric Botcazou <ebotcazou@adacore.com>
15214 PR rtl-optimization/89862
15215 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
15216 that operates on the full registers for WORD_REGISTER_OPERATIONS
15219 2019-03-29 Jim Wilson <jimw@sifive.com>
15221 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
15222 Clear MASK_RVC and then set if C subset supported.
15224 2019-03-29 Jakub Jelinek <jakub@redhat.com>
15227 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
15228 non-addressable complit into its initializer if it is volatile.
15230 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
15232 * opts-common.c (integral_argument): Set errno properly in one case.
15234 2019-03-29 Martin Liska <mliska@suse.cz>
15236 * doc/invoke.texi: Remove -Wchkp from documentation.
15238 2019-03-29 Martin Liska <mliska@suse.cz>
15240 * dbgcnt.c (print_limit_reach): New function.
15243 2019-03-29 Martin Liska <mliska@suse.cz>
15245 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
15246 (dbg_cnt_process_opt): Parse first tokens aas
15247 dbg_cnt_process_single_pair is also using strtok.
15249 2019-03-29 Jakub Jelinek <jakub@redhat.com>
15251 PR rtl-optimization/87485
15252 * function.c (expand_function_end): Move stack_protect_epilogue
15253 before loading of return value into hard register(s).
15255 2019-03-28 Jakub Jelinek <jakub@redhat.com>
15257 PR middle-end/89621
15258 * tree-inline.h (struct copy_body_data): Add
15259 dont_remap_vla_if_no_change flag.
15260 * tree-inline.c (remap_type_3, remap_type_2): New functions.
15261 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
15262 and remap_type_2 returns false.
15263 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
15264 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
15265 only from where it is copied to nested contexts.
15267 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
15270 * config/i386/i386.md (RMW operation with LEA peephole):
15271 Use LEAMODE mode attribute instead of SWI mode iterator for
15274 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
15277 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
15278 Also process XEXP (src, 0) of a shift insn.
15280 2019-03-28 David Malcolm <dmalcolm@redhat.com>
15282 PR middle-end/89725
15283 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
15284 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
15286 2019-03-28 Jakub Jelinek <jakub@redhat.com>
15288 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
15290 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
15291 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
15292 immediately after first one with df_analyze in between, but rather
15293 process all bbs, queueing ones that need second pass in a worklist,
15294 df_analyze, process queued debug insn changes and if second pass is
15295 needed, process bbs from worklist, df_analyze, process queued debug
15298 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
15299 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
15300 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
15302 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
15305 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
15308 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
15311 * config/i386/i386.c (ix86_function_value_1): Call the newly added
15312 function for 32-bit MS_ABI.
15313 (function_value_ms_32): New function.
15315 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
15317 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
15318 (movdi): Call gen_movdi_symbol_save_scc.
15319 (gen_movdi_symbol_save_scc): New insn and split.
15321 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
15323 PR rtl-optimization/89313
15324 * function.c (matching_constraint_num): New static function.
15325 (match_asm_constraints_1): Use it. Fixup white space and comment.
15326 Don't replace inputs with non-matching constraints which conflict
15327 with early clobber outputs.
15329 2019-03-27 Jeff Law <law@redhat.com>
15331 PR rtl-optimization/87761
15332 PR rtl-optimization/89826
15333 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
15335 (pass_cprop_hardreg::execute): Call df_analyze after adding the
15336 note problem to get REG_DEAD/REG_UNUSED notes updated.
15338 2019-03-27 Richard Biener <rguenther@suse.de>
15340 PR tree-optimization/89463
15341 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
15342 queue edges to remove.
15343 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
15344 dead stmts. Delay edge removal until PHIs are removed to
15345 make debug-stmt creation not confused by seemingly degenerate
15348 2019-03-27 Alan Modra <amodra@gmail.com>
15350 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
15352 * config/rs6000/darwin.h: Likewise.
15353 * config/rs6000/rs6000.c: Likewise.
15355 2019-03-27 Alan Modra <amodra@gmail.com>
15357 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
15358 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
15360 2019-03-26 Andrew Waterman <andrew@sifive.com>
15361 Jim Wilson <jimw@sifive.com>
15363 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
15364 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
15365 (generic_idivdi, generic_fmul_single, generic_fmul_double)
15366 (generic_fdiv, generic_fsqrt): Add check for generic tune.
15367 (generic_alu): Add auipc to type list.
15368 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
15369 (riscv_microarchitecture): Declare.
15370 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
15371 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
15373 (riscv_microarchitecture): New.
15374 (sifive_7_tune_info): New.
15375 (riscv_cpu_info_table): Add microarchitecture value for rocket and
15376 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
15378 (riscv_store_data_bypass_p): New.
15379 (riscv_option_override): Set riscv_microarchitecture from
15380 cpu->microarchitecture.
15381 * config/riscv/riscv.md: Include sifive-7.md.
15384 (auipc<mode>): Change type to auipc.
15385 (restore_stack_nonlocal): New.
15386 * config/riscv/sifive-7.md: New.
15387 * doc/invoke.texi (RISC-V Options): Update mtune docs.
15389 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
15392 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
15393 Also process XEXP (src, 0) of a shift insn.
15395 2019-03-26 Richard Biener <rguenther@suse.de>
15397 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
15398 (copy_debug_stmt): Likewise.
15399 (expand_call_inline): Likewise.
15400 (copy_bb): Avoid redundant lookup & set of gimple_block.
15401 * gimple-low.c (lower_gimple_return): Likewise.
15402 (lower_builtin_setjmp): Likewise.
15404 2019-03-26 Jakub Jelinek <jakub@redhat.com>
15406 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
15407 is constant 0, turn into static const data member initialized to false.
15408 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
15409 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
15411 2019-03-26 Jason Merrill <jason@redhat.com>
15412 Jakub Jelinek <jakub@redhat.com>
15414 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
15416 (mem_alloc_description::release_object_overhead): Fix comment typos.
15417 * hash-table.h (hash_table::~hash_table): Call
15418 release_instance_overhead only if m_entries is non-NULL, otherwise
15419 call unregister_descriptor.
15421 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
15423 PR tree-optimization/81740
15424 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15425 In case of outer loop vectorization, check for backward dependence
15426 at the inner loop if outer loop dependence is reversed.
15428 2019-03-26 Alan Modra <amodra@gmail.com>
15430 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
15431 rs6000_vector_mem init. Correct wI and wJ comment.
15433 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
15435 PR rtl-optimization/88347
15436 PR rtl-optimization/88423
15437 * sched-deps.c (sched_analyze_insn): Take into account that for
15438 tablejumps the barrier appears after a label and a jump_table_data.
15440 2019-03-25 Martin Sebor <msebor@redhat.com>
15443 * c-common.c (check_user_alignment): Rename local. Correct maximum
15444 alignment in diagnostic. Avoid assuming argument fits in SHWI,
15445 convert it to UHWI when it fits.
15447 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
15450 * dwarf2out.c (premark_used_variables): New function.
15451 (prune_unused_types_walk): Do not mark not premarked external
15453 (prune_unused_types): Call premark_used_variables.
15455 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
15457 PR rtl-optimization/89676
15458 * lra-constraints.c (curr_insn_transform): Do match reload for
15459 early clobbers when the match was successful only for different
15462 2019-03-25 Martin Sebor <msebor@redhat.com>
15464 * doc/extend.texi (Common Type Attributes): Document vector_size.
15465 (Common Variable Attributes): Mention size constraint. Correct
15467 (Vector Extensions): Use @dfn when defining bas type. Clarify
15468 base type and size constraints.
15470 2019-03-25 Richard Biener <rguenther@suse.de>
15472 PR tree-optimization/89789
15473 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
15474 changes from non-undefined back to undefined.
15476 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
15478 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
15479 heap string and a gc string, but since this variable is unknown to
15480 ggc the gc string might get reused and corrupted. Fixed by always
15481 using a heap string.
15483 2019-03-25 Richard Biener <rguenther@suse.de>
15485 PR tree-optimization/89779
15486 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
15487 to remove IV defs, delay actual removal.
15488 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
15489 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
15490 very end, properly also reset loop control IV information.
15492 2019-03-25 Richard Biener <rguenther@suse.de>
15494 PR tree-optimization/89802
15495 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
15496 move EH data to folded stmt.
15498 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15500 * config/s390/s390-builtin-types.def: Remove few unused types and
15501 fix sort order for others.
15503 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15505 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
15506 expected and found types with -mdebug during builtin matching.
15508 2019-03-25 Richard Biener <rguenther@suse.de>
15510 PR middle-end/89790
15511 * fold-const.c (operand_equal_p): Revert last change with
15514 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
15516 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
15517 notes for the result of the __tls_get_addr calls.
15518 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
15520 2019-03-24 Jeff Law <law@redhat.com>
15522 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
15524 PR rtl-optimization/87761
15525 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
15526 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
15528 (pass_cprop_hardreg::execute): Add df note problem and defer insn
15529 rescans. Reprocess blocks as needed, calling df_analyze before
15530 reprocessing. Always call df_analyze before fixing up debug bind
15533 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
15535 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
15538 2019-03-22 Andrew Pinski <apinski@marvell.com>
15540 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
15541 attrribute for uxtw.
15543 2019-03-26 Jeff Law <law@redhat.com>
15545 PR rtl-optimization/87761
15546 * config/mips/mips-protos.h (mips_split_move): Add new argument.
15547 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
15548 (mips_split_move): Accept new INSN argument. Try to forward SRC
15549 into the next instruction.
15550 (mips_split_move_insn): Pass INSN through to mips_split_move.
15552 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
15554 PR rtl-optimization/89676
15555 * lra-constraints.c (curr_insn_transform): Do match reload for
15556 early clobbers even if the match was successful.
15558 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15561 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
15563 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
15565 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
15567 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15569 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
15570 <avx512>_fmsub_<mode>_mask3<round_name>,
15571 <avx512>_fnmadd_<mode>_mask3<round_name>,
15572 <avx512>_fnmsub_<mode>_mask3<round_name>,
15573 avx512f_vmfmadd_<mode>_mask3<round_name>,
15574 avx512f_vmfmsub_<mode>_mask3<round_name>,
15575 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
15576 instead of register_operand and %v instead of v for match_operand 1.
15577 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
15578 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
15579 <round_nimm_predicate> instead of register_operand and %v instead of v
15580 for match_operand 1.
15582 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
15583 <avx512>_fmadd_<mode>_mask3<round_name>,
15584 <avx512>_fmsub_<mode>_mask<round_name>,
15585 <avx512>_fmsub_<mode>_mask3<round_name>,
15586 <avx512>_fnmadd_<mode>_mask<round_name>,
15587 <avx512>_fnmadd_<mode>_mask3<round_name>,
15588 <avx512>_fnmsub_<mode>_mask<round_name>,
15589 <avx512>_fnmsub_<mode>_mask3<round_name>,
15590 <avx512>_fmaddsub_<mode>_mask<round_name>,
15591 <avx512>_fmaddsub_<mode>_mask3<round_name>,
15592 <avx512>_fmsubadd_<mode>_mask<round_name>,
15593 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
15594 <round_nimm_predicate> instead of nonimmediate_operand.
15595 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
15596 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
15597 Use register_operand instead of <round_nimm_predicate> for the
15598 operand that needs to match output.
15599 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
15600 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
15601 Likewise. Formatting fixes.
15604 * config/i386/i386.c (enum ix86_builtins): Remove
15605 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
15606 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
15607 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
15608 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
15609 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
15610 __builtin_ia32_vfmsubss3_mask3): New builtins.
15611 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
15612 avx512f_vmfmadd_<mode>_mask3<round_name>,
15613 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
15614 *avx512f_vmfmsub_<mode>_mask<round_name>,
15615 avx512f_vmfmsub_<mode>_mask3<round_name>,
15616 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
15617 *avx512f_vmfnmadd_<mode>_mask<round_name>,
15618 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
15619 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
15620 *avx512f_vmfnmsub_<mode>_mask<round_name>,
15621 avx512f_vmfnmsub_<mode>_mask3<round_name>,
15622 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
15623 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
15624 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
15625 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
15626 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
15627 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
15628 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
15629 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
15630 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
15631 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
15632 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
15633 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
15634 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
15635 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
15636 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
15637 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
15638 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
15639 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
15640 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
15641 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
15642 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
15643 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
15645 2019-03-21 Martin Sebor <msebor@redhat.com>
15647 PR tree-optimization/89350
15648 * builtins.c (compute_objsize): Also ignore offsets whose upper
15650 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
15651 (builtin_memref::builtin_memref): Initialize new member.
15652 Allow EXPR to be null.
15653 (builtin_memref::extend_offset_range): Replace local with a member.
15654 Avoid assuming pointer offsets are unsigned.
15655 (builtin_memref::set_base_and_offset): Determine base object
15656 before computing offset range.
15657 (builtin_access::builtin_access): Handle memset.
15658 (builtin_access::generic_overlap): Replace local with a member.
15659 (builtin_access::strcat_overlap): Same.
15660 (builtin_access::overlap): Same.
15661 (maybe_diag_overlap): Same.
15662 (maybe_diag_access_bounds): Same.
15663 (wrestrict_dom_walker::check_call): Handle memset.
15664 (check_bounds_or_overlap): Same.
15666 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
15667 Jakub Jelinek <jakub@redhat.com>
15670 * tree.c (fld_type_variant, fld_incomplete_type_of,
15671 fld_process_array_type): Call fld->pset.add and don't call
15672 add_tree_to_fld_list if it returns true.
15673 (free_lang_data_in_type): Similarly with self-recursive call. Purge
15674 non-marked types from TYPE_NEXT_VARIANT list.
15675 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
15677 2019-03-21 Jakub Jelinek <jakub@redhat.com>
15679 * hash-table.h (hash_table): Add Lazy template parameter defaulted
15680 to false, if true, don't alloc_entries during construction, but defer
15681 it to the first method that needs m_entries allocated.
15682 (hash_table::hash_table, hash_table::~hash_table,
15683 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
15684 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
15685 hash_table::clear_slot, hash_table::traverse_noresize,
15686 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
15687 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
15689 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
15690 NO_INSERT instead of find_with_hash.
15691 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
15692 hash_set::m_table): Add Lazy to template params of hash_table.
15693 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
15694 * attribs.c (test_attribute_exclusions): Likewise.
15695 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
15696 hash_set. Add tests for hash_set with Lazy = true.
15698 2019-03-21 Richard Biener <rguenther@suse.de>
15700 PR tree-optimization/89779
15701 * tree.c (tree_nop_conversion): Consolidate and fix defensive
15702 checks with respect to released SSA names now having error_mark_node
15704 * fold-const.c (operand_equal_p): Likewise.
15706 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
15709 * config/s390/s390.c (global_not_special_regno_p): Move to make it
15711 (s390_optimize_register_info): Use global_not_special_regno_p to
15712 check for global regs.
15714 2019-03-20 Jakub Jelinek <jakub@redhat.com>
15717 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
15718 update this_alternative nor this_alternative_set.
15720 2019-03-19 Jim Wilson <jimw@sifive.com>
15723 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
15724 align, size, offset. Use them to handle a BLKmode reference. Update
15726 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
15728 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15730 PR rtl-optimization/89768
15731 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
15732 instead of GEN_INT.
15733 (unroll_loop_runtime_iterations): Likewise.
15735 2019-03-19 Martin Sebor <msebor@redhat.com>
15737 PR tree-optimization/89644
15738 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
15739 rather than endptr as an indicator of nul-termination.
15741 PR tree-optimization/89644
15742 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
15743 arrays in determining sequence sizes in strncpy and stpncpy.
15745 2019-03-19 Martin Liska <mliska@suse.cz>
15747 PR middle-end/89737
15748 * predict.c (combine_predictions_for_bb): Empty likely_edges and
15749 unlikely_edges if there's an edge that belongs to both these sets.
15751 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
15754 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
15755 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
15756 go via a stack temporary.
15758 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15761 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
15762 instead of gen_rtx_SUBREG.
15763 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
15765 2019-03-19 Richard Biener <rguenther@suse.de>
15768 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
15770 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
15774 * tree.c (free_lang_data_in_decl): Do not free context of C++
15777 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15780 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
15781 subs for the first alternative except when operands[3] is 1.
15784 * gimplify.c (gimplify_asm_expr): For output argument with
15785 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
15788 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
15790 PR rtl-optimization/89753
15791 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15792 explicit unrolling factor even more robust.
15794 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15797 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
15798 compensation use x2 += 1 instead of x2 -= -1 and when honoring
15799 signed zeros, do another copysign after the compensation.
15801 2019-03-18 Martin Sebor <msebor@redhat.com>
15803 PR tree-optimization/89720
15804 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
15805 more conservatively, the same as anti-range.
15807 2019-03-18 Richard Biener <rguenther@suse.de>
15809 PR middle-end/88945
15810 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
15811 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
15812 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
15813 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
15815 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
15817 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
15818 Extend queue to 1024 entries.
15819 Add "consumed" field.
15820 (gomp_print_output): Remove print_index parameter.
15821 Add final parameter.
15822 Change limit to unsigned.
15823 Use consumed field to implement circular buffer.
15824 Detect interrupted print in final pass.
15825 Flush output at the end.
15826 (run): Update gomp_print_output usage.
15827 (main): Initialize kernargs->output_data.consumed.
15829 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
15831 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
15832 calculation of the minimum number of scalar iterations for
15833 fully-predicated loops.
15835 2019-03-18 Martin Jambor <mjambor@suse.cz>
15837 PR tree-optimization/89546
15838 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
15839 any propagation to its children took place.
15841 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
15844 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
15845 parameter, and make use of it.
15846 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
15848 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15850 * config/arc/arc.opt (mcode-density-frame): Get the inital value
15851 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
15852 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15853 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15854 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
15855 match what the ops is doing.
15856 (push_multi_fp_blink): Likewise.
15857 * config/arc/arc.c (arc_override_options): Enable enter/leave when
15858 compiling for size and elf target.
15859 (arc_save_callee_enter): Adjust note to match what enter/leave
15862 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15864 * config/arc/arc.md (tst_movb): Fix constraint.
15866 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15868 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
15870 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15872 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
15873 * config/arc/arc.c (arc_conditional_register_usage): Remove all
15874 reg_alloc_order references.
15875 (size_alloc_order): Define.
15876 (arc_adjust_reg_alloc_order): New function.
15877 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
15879 (ADJUST_REG_ALLOC_ORDER): Define.
15880 (HONOR_REG_ALLOC_ORDER): Likewise.
15882 2019-03-18 Richard Biener <rguenther@suse.de>
15885 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
15886 loads and stores a bit more.
15888 2019-03-18 Richard Biener <rguenther@suse.de>
15891 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
15892 load pessimization to stores as well.
15894 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
15896 PR middle-end/86979
15897 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
15898 successor, use NULL as its av set.
15900 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
15902 PR rtl-optimization/89721
15903 * lra-constraints (invariant_p): Return false if side_effects_p holds.
15905 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
15908 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15909 When handling vec_extract, use modular arithmetic to allow
15910 constant selectors greater than vector length.
15911 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
15912 V1TImode vectors to have constant selector values greater than 0.
15913 Use modular arithmetic to compute vector index.
15914 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
15915 index for in-memory vectors. Correct code generation for
15916 in-register vectors.
15917 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
15920 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
15924 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
15927 2019-03-15 Jakub Jelinek <jakub@redhat.com>
15930 * tree.c (inchash::add_expr): Strip any location wrappers.
15931 * fold-const.c (operand_equal_p): Move stripping of location wrapper
15932 after hash verification.
15935 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
15936 SIGN_EXTEND and ZERO_EXTEND.
15938 2019-03-14 Jason Merrill <jason@redhat.com>
15939 Jakub Jelinek <jakub@redhat.com>
15941 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
15942 than if is_empty (*slot).
15943 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
15944 existing elt and for elt removal.
15945 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
15946 of already removed elt.
15948 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
15951 * config/i386/i386.c (remove_partial_avx_dependency): Handle
15952 REG_EH_REGION note.
15954 2019-03-14 Martin Liska <mliska@suse.cz>
15957 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
15959 2019-03-14 Richard Biener <rguenther@suse.de>
15962 * config/i386/i386.c (make_resolver_func): Properly set
15963 DECL_CONTEXT on the RESULT_DECL.
15964 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
15966 2019-03-14 Richard Biener <rguenther@suse.de>
15968 * gimple-pretty-print.c: Include cfgloop.h.
15969 (dump_gimple_phi): Adjust.
15970 (dump_gimple_bb_header): Dump loop header for GIMPLE.
15971 (pp_cfg_jump): Adjust.
15972 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
15973 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
15974 (lower_phi_internal_fn): Remove.
15975 (verify_gimple_call): Remove IFN_PHI special-casing.
15976 (dump_function_to_file): Dump IL state.
15977 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
15978 done to deal with PHI nodes being present in non-SSA state.
15980 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15983 * multiple_target.c (create_dispatcher_calls): Change
15984 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
15985 In the node->iterate_referring loop, push *ref rather than ref, call
15986 ref->remove_reference () and always pass 0 to iterate_referring.
15988 PR rtl-optimization/89679
15989 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
15990 would contain a paradoxical SUBREG.
15992 2019-03-14 Richard Biener <rguenther@suse.de>
15994 PR tree-optimization/89710
15995 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
15998 2019-03-14 Martin Liska <mliska@suse.cz>
16000 * coverage.c (coverage_begin_function): Stream also
16002 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
16003 documentation about function declaration location.
16004 * gcov-dump.c (tag_function): Print whole range
16005 of function declaration.
16006 * gcov.c (struct function_info): Add end_column field.
16007 (function_info::function_info): Initialize it.
16008 (output_json_intermediate_file): Output {start,end}_column
16010 (read_graph_file): Read end_column.
16012 2019-03-14 Richard Biener <rguenther@suse.de>
16014 PR middle-end/89698
16015 * fold-const.c (operand_equal_p): For INDIRECT_REF check
16016 that the access types are similar.
16018 2019-03-14 Jakub Jelinek <jakub@redhat.com>
16020 PR tree-optimization/89703
16021 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
16022 aren't compatible also with builtin_decl_explicit. Check pure
16023 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
16024 and BUILT_IN_STPNCPY{,_CHK}.
16026 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
16029 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
16030 addr32 prefix to VSIB address for X32.
16031 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
16033 (*avx512pf_gatherpf<mode>df_mask): Likewise.
16034 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
16035 (*avx512pf_scatterpf<mode>df_mask): Likewise.
16036 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
16037 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
16038 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
16039 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
16040 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
16041 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
16042 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
16043 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
16044 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
16045 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
16046 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
16047 (*avx512f_scatterdi<mode>): Likewise.
16049 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
16052 * lra-constraints.c (inherit_in_ebb): Update
16053 potential_reload_hard_regs along with live_hard_regs.
16055 2019-03-13 Jakub Jelinek <jakub@redhat.com>
16058 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
16060 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
16062 2019-03-13 Martin Sebor <msebor@redhat.com>
16064 PR tree-optimization/89662
16065 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
16068 2019-03-13 Richard Biener <rguenther@suse.de>
16070 PR middle-end/89677
16071 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
16072 throw FP expressions at tree-affine.
16074 2019-03-14 Richard Biener <rguenther@suse.de>
16076 * tree-pretty-print.c (dump_generic_node): For -gimple properly
16077 dump negative integer constants using _Literal (type) -num.
16079 2019-03-13 Jakub Jelinek <jakub@redhat.com>
16081 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
16082 nonlocal_value member.
16084 PR middle-end/88588
16085 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
16086 (ipa_simd_modify_function_body): Handle PHIs.
16088 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16090 * config/s390/s390.c (s390_option_override_internal): Use more
16091 aggressive inlining parameters.
16093 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16095 * config/s390/3906.md: New file.
16096 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
16097 (LONGRUNNING_THRESHOLD): Remove.
16098 (MAX_SCHED_MIX_SCORE): Decrease.
16099 (MAX_SCHED_MIX_DISTANCE): Decrease.
16100 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
16101 (struct s390_sched_state): New struct to hold scheduling state.
16102 (S390_SCHED_STATE_NORMAL): Remove.
16103 (S390_SCHED_STATE_CRACKED): Remove.
16104 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
16105 (s390_get_sched_attrmask): Use new attribute.
16106 (s390_get_unit_mask): Use new units.
16107 (s390_is_fpd): New function.
16108 (s390_is_fxd): New function.
16109 (s390_is_longrunning): New function.
16110 (s390_sched_score): Use new functions.
16111 (s390_sched_reorder): Likewise.
16112 (s390_sched_variable_issue): Rework and use new functions.
16113 (s390_sched_init): Use new functions.
16114 * config/s390/s390.h (s390_tune_attr): Add z14.
16115 * config/s390/s390.md: Add z14.
16117 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16119 * config/s390/2964.md: Update pipeline description.
16120 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
16121 (LONGRUNNING_THRESHOLD): Remove.
16122 (LATENCY_FACTOR): Remove.
16123 (s390_get_unit_mask): Add unit.
16124 (s390_sched_score): Use fxd/fpd.
16125 (s390_sched_variable_issue): Use fxd/fpd.
16127 2019-03-12 Martin Liska <mliska@suse.cz>
16129 * config/i386/i386.c: Reword an error message.
16131 2019-03-12 Martin Jambor <mjambor@suse.cz>
16133 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
16134 terminate with newline.
16136 2019-03-12 Jakub Jelinek <jakub@redhat.com>
16139 * config/s390/s390.md (tabort): Use %wd instead of
16140 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
16141 letters and periods.
16142 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
16143 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
16146 PR middle-end/89663
16147 * builtins.c (expand_builtin_int_roundingfn,
16148 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
16149 gcc_unreachable if validate_arglist fails.
16151 2019-03-12 Richard Biener <rguenther@suse.de>
16153 PR tree-optimization/89664
16154 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
16155 free the occurance tree after the early out.
16157 2019-03-11 Jakub Jelinek <jakub@redhat.com>
16159 PR middle-end/89655
16161 * vr-values.c (vr_values::update_value_range): If
16162 old_vr->varying_p (), don't update it, make new_vr also VARYING
16165 2019-03-11 Martin Liska <mliska@suse.cz>
16167 * config/aarch64/aarch64.c (aarch64_override_options_internal):
16168 Fix double string quoting.
16170 2019-03-11 Martin Liska <mliska@suse.cz>
16172 * collect-utils.c (collect_wait): Wrap apostrophes
16173 in gcc internal format with %'.
16174 * collect2.c (main): Likewise.
16175 (scan_prog_file): Likewise.
16176 (scan_libraries): Likewise.
16177 * config/i386/i386.c (ix86_expand_call): Likewise.
16178 (ix86_handle_interrupt_attribute): Likewise.
16179 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16180 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16181 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
16182 * lto-wrapper.c (find_crtoffloadtable): Likewise.
16183 * symtab.c (symtab_node::verify_base): Likewise.
16184 * tree-cfg.c (verify_gimple_label): Likewise.
16185 * tree.c (verify_type_variant): Likewise.
16187 2019-03-11 Martin Liska <mliska@suse.cz>
16189 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
16190 in a string format message and fix GNU coding style.
16191 (expand_builtin_set_thread_pointer): Likewise.
16192 * common/config/aarch64/aarch64-common.c
16193 (aarch64_rewrite_selected_cpu): Likewise.
16194 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
16195 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
16196 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
16197 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
16198 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
16199 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
16200 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
16201 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
16202 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
16203 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
16205 * common/config/riscv/riscv-common.c
16206 (riscv_subset_list::parsing_subset_version): Likewise.
16207 (riscv_subset_list::parse_std_ext): Likewise.
16208 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16209 (riscv_subset_list::parse): Likewise.
16210 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
16211 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
16212 (aarch64_override_options_internal): Likewise.
16213 (aarch64_validate_mcpu): Likewise.
16214 (aarch64_validate_march): Likewise.
16215 (aarch64_validate_mtune): Likewise.
16216 (aarch64_override_options): Likewise.
16217 * config/alpha/alpha.c (alpha_option_override): Likewise.
16218 * config/arc/arc.c (arc_init): Likewise.
16219 (parse_mrgf_banked_regs_option): Likewise.
16220 (arc_override_options): Likewise.
16221 (arc_expand_builtin_aligned): Likewise.
16222 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
16223 (arm_expand_builtin): Likewise.
16224 * config/arm/arm.c (arm_option_check_internal): Likewise.
16225 (arm_configure_build_target): Likewise.
16226 (arm_option_override): Likewise.
16227 (arm_options_perform_arch_sanity_checks): Likewise.
16228 (arm_handle_cmse_nonsecure_entry): Likewise.
16229 (arm_handle_cmse_nonsecure_call): Likewise.
16230 (arm_tls_referenced_p): Likewise.
16231 (thumb1_expand_prologue): Likewise.
16232 * config/avr/avr.c (avr_option_override): Likewise.
16233 * config/bfin/bfin.c (bfin_option_override): Likewise.
16234 * config/c6x/c6x.c (c6x_option_override): Likewise.
16235 * config/cr16/cr16.c (cr16_override_options): Likewise.
16236 * config/cris/cris.c (cris_option_override): Likewise.
16237 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
16238 * config/darwin-c.c (macosx_version_as_macro): Likewise.
16239 * config/darwin.c (darwin_override_options): Likewise.
16240 * config/frv/frv.c (frv_expand_builtin): Likewise.
16241 * config/h8300/h8300.c (h8300_option_override): Likewise.
16242 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
16243 (ix86_option_override_internal): Likewise.
16244 (warn_once_call_ms2sysv_xlogues): Likewise.
16245 (ix86_expand_prologue): Likewise.
16246 (split_stack_prologue_scratch_regno): Likewise.
16247 (ix86_warn_parameter_passing_abi): Likewise.
16248 * config/ia64/ia64.c (fix_range): Likewise.
16249 * config/m68k/m68k.c (m68k_option_override): Likewise.
16250 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
16251 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
16252 (mips_set_compression_mode): Likewise.
16253 * config/mmix/mmix.c (mmix_option_override): Likewise.
16254 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
16255 * config/msp430/msp430.c (msp430_option_override): Likewise.
16256 * config/nds32/nds32.c (nds32_option_override): Likewise.
16257 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
16258 (nios2_option_override): Likewise.
16259 (nios2_expand_custom_builtin): Likewise.
16260 * config/nvptx/mkoffload.c (main): Likewise.
16261 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
16262 * config/pa/pa.c (fix_range): Likewise.
16263 (pa_option_override): Likewise.
16264 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
16265 (riscv_option_override): Likewise.
16266 * config/rl78/rl78.c (rl78_option_override): Likewise.
16267 * config/rs6000/aix61.h: Likewise.
16268 * config/rs6000/aix71.h: Likewise.
16269 * config/rs6000/aix72.h: Likewise.
16270 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
16271 * config/rs6000/freebsd64.h: Likewise.
16272 * config/rs6000/linux64.h: Likewise.
16273 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
16274 (rs6000_expand_zeroop_builtin): Likewise.
16275 (rs6000_expand_mtfsb_builtin): Likewise.
16276 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
16277 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
16278 (rs6000_invalid_builtin): Likewise.
16279 (rs6000_expand_split_stack_prologue): Likewise.
16280 * config/rs6000/rtems.h: Likewise.
16281 * config/rx/rx.c (valid_psw_flag): Likewise.
16282 (rx_expand_builtin): Likewise.
16283 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16284 * config/s390/s390.c (s390_expand_builtin): Likewise.
16285 (s390_function_profiler): Likewise.
16286 (s390_option_override_internal): Likewise.
16287 (s390_option_override): Likewise.
16288 * config/sh/sh.c (sh_option_override): Likewise.
16289 (sh_builtin_saveregs): Likewise.
16290 (sh_fix_range): Likewise.
16291 * config/sh/vxworks.h: Likewise.
16292 * config/sparc/sparc.c (sparc_option_override): Likewise.
16293 * config/spu/spu.c (spu_option_override): Likewise.
16294 (fix_range): Likewise.
16295 * config/visium/visium.c (visium_option_override): Likewise.
16296 (visium_handle_interrupt_attr): Likewise.
16297 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
16298 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
16299 (dbg_cnt_process_opt): Likewise.
16300 * dwarf2out.c (output_dwarf_version): Likewise.
16301 * except.c (expand_eh_return): Likewise.
16302 * gcc.c (defined): Likewise.
16303 (driver_handle_option): Likewise.
16304 (process_command): Likewise.
16305 (compare_files): Likewise.
16306 (driver::prepare_infiles): Likewise.
16307 (driver::do_spec_on_infiles): Likewise.
16308 (driver::maybe_run_linker): Likewise.
16309 * omp-offload.c (oacc_parse_default_dims): Likewise.
16310 * opts-global.c (handle_common_deferred_options): Likewise.
16311 * opts.c (parse_sanitizer_options): Likewise.
16312 (common_handle_option): Likewise.
16313 (enable_warning_as_error): Likewise.
16314 * passes.c (enable_disable_pass): Likewise.
16315 * plugin.c (parse_plugin_arg_opt): Likewise.
16316 (default_plugin_dir_name): Likewise.
16317 * targhooks.c (default_expand_builtin_saveregs): Likewise.
16318 (default_pch_valid_p): Likewise.
16319 * toplev.c (init_asm_output): Likewise.
16320 (process_options): Likewise.
16321 (toplev::run_self_tests): Likewise.
16322 * tree-cfg.c (verify_gimple_call): Likewise.
16323 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
16324 (tree_inlinable_function_p): Likewise.
16325 * var-tracking.c (vt_find_locations): Likewise.
16327 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
16329 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
16330 only on the else branch.
16332 2019-03-11 Martin Liska <mliska@suse.cz>
16334 * gcov.c (output_intermediate_json_line): Print function
16336 (output_json_intermediate_file): Add new argument.
16337 * doc/gcov.texi: Document the change.
16339 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
16341 PR rtl-optimization/89588
16342 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
16343 explicit unrolling factor more robust.
16345 2019-03-11 Richard Biener <rguenther@suse.de>
16347 PR tree-optimization/89649
16348 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
16349 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
16350 on the prolog and epilog loops.
16351 (vect_loop_versioning): Return copy of loop.
16352 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
16353 on the non-vectorized version of the loop.
16355 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
16358 * config/i386/sse.md (*vec_extractv2di_0_sse):
16359 Add (=r,x) alternative and corresponding splitter.
16361 2019-03-10 Martin Jambor <mjambor@suse.cz>
16363 PR tree-optimization/85762
16364 PR tree-optimization/87008
16365 PR tree-optimization/85459
16366 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
16367 it points to if there is a type changing MEM_REF. Adjust all callers.
16368 (build_accesses_from_assign): Disable total scalarization if
16369 contains_vce_or_bfcref_p returns true through the new parameter, for
16372 2019-03-09 Jakub Jelinek <jakub@redhat.com>
16375 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
16376 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
16379 * common.opt (fdiagnostics-show-labels,
16380 fdiagnostics-show-line-numbers, fdiagnostics-format=,
16381 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
16382 gas-locview-support, ginline-points, ginternal-reset-location-views):
16383 Terminate description text with a dot.
16384 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
16385 * config/mcore/mcore.opt (m210, m340): Likewise.
16386 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
16387 mnops=): Start description text with a capital letter.
16388 * config/arc/arc.opt (msize-level=): Likewise.
16389 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
16390 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
16391 mnewlib): Likewise.
16392 * config/ft32/ft32.opt (msim): Likewise.
16393 (mft32b, mcompress): Likewise. Terminate description text with a dot.
16394 (mnodiv, mnopm): Terminate description text with a dot.
16395 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
16397 * config/i386/i386.opt (prefer_vector_width, instrument_return):
16399 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
16402 PR rtl-optimization/89634
16403 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
16404 are modified in BB_END (e->src) instruction.
16406 2019-03-08 David Malcolm <dmalcolm@redhat.com>
16409 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
16410 messages more amenable to translation, and improve wording.
16412 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
16414 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
16415 ud- and du-chains between phases.
16417 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
16420 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
16421 instead of POLY_INT_CST.
16423 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
16425 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
16428 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
16433 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
16434 (_mm_storeu_si64): Ditto.
16436 2019-03-08 Martin Liska <mliska@suse.cz>
16439 * config/i386/i386.c (ix86_option_override_internal): Disable
16440 jump tables when retpolines are used.
16442 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
16445 * ipa-split.c (execute_split_functions): Do not split
16446 'noinline' or 'section' function.
16448 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16451 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
16452 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
16453 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
16456 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
16457 from diagnostics. Formatting fixes.
16460 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
16461 warn_odr diagnostics.
16464 * lra-constraints.c (process_alt_operands): Avoid one space before
16465 " at the end of line and another after " on another line in a string
16467 * attribs.c (handle_dll_attribute): Likewise.
16468 * config/avr/avr-devices.c (avr_texinfo): Likewise.
16470 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
16471 warning_at or inform messages in G_() if there is no ?:.
16473 PR tree-optimization/89550
16474 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
16475 returned true. Formatting fixes.
16476 (expand_builtin_strnlen): Formatting fixes.
16477 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
16478 if warning_at returned true.
16479 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
16481 2019-03-08 Richard Biener <rguenther@suse.de>
16483 PR middle-end/89578
16484 * cfgloop.h (struct loop): Add owned_clique field.
16485 * cfgloopmanip.c (copy_loop_info): Copy it.
16486 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
16488 * tree-inline.c (copy_loops): Remap owned_clique.
16489 * lto-streamer-in.c (input_cfg): Stream owned_clique.
16490 * lto-streamer-out.c (output_cfg): Likewise.
16492 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16495 * config/darwin.c: Include intl.h.
16496 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
16497 composing the message out of two separate parts.
16499 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16502 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
16503 doesn't start with a capital letter and doesn't end with a dot.
16504 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
16505 with a capital letter.
16506 (ix86_mangle_function_version_assembler_name): Likewise.
16507 (ix86_generate_version_dispatcher_body): Likewise.
16508 (fold_builtin_cpu): Likewise.
16509 (get_builtin_code_for_version): Likewise. Remove extraneous space.
16510 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
16511 translators, wrap full type name in %qs.
16513 PR translation/79999
16514 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
16515 depend clause with source (or sink) modifier.
16516 * omp-expand.c (expand_omp_ordered_sink): Likewise.
16519 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
16520 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
16521 (avx512f_load<mode>_mask): New define_expand.
16522 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
16523 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
16524 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
16525 __builtin_ia32_movess_mask): New builtins.
16526 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
16527 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
16528 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
16529 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
16531 2019-03-07 Martin Jambor <mjambor@suse.cz>
16534 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
16535 for extern inline functions.
16537 2019-03-07 Martin Jambor <mjambor@suse.cz>
16540 * cgraph.h (cgraph_node): New inline method former_thunk_p.
16541 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
16542 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
16543 have multiple callees. At the end check if declarations match as
16544 opposed to cgraph_nodes.
16546 2019-03-07 Martin Liska <mliska@suse.cz>
16548 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
16549 which is equivalent to searching for this in clones chain.
16550 * symtab.c (symtab_node::verify_base): Similarly compare ASM
16551 names with a neighbour and special case first node in a chain.
16553 2019-01-25 Jason Merrill <jason@redhat.com>
16555 PR c++/80916 - spurious "static but not defined" warning.
16556 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
16557 for an internal symbol with DECL_EXTERNAL.
16559 2019-04-07 Richard Biener <rguenther@suse.de>
16561 PR middle-end/89618
16562 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
16563 * tree-inline.c (copy_loops): Simplify.
16565 2019-03-07 Martin Liska <mliska@suse.cz>
16567 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
16569 2019-03-07 Richard Biener <rguenther@suse.de>
16571 PR tree-optimization/89595
16572 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
16573 stmt iterator as reference, take boolean output parameter to
16574 indicate whether the stmt was removed and thus the iterator
16576 (dom_opt_dom_walker::before_dom_children): Re-iterate over
16577 stmts created by folding.
16579 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16582 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
16585 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
16587 PR rtl-optimization/88845
16588 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
16590 * lra.c (remove_scratches_1): New function.
16591 (remove_scratches): Use it.
16592 (lra_emit_move): Likewise.
16594 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
16596 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
16597 unaligned_access variable.
16598 * config/arc/arc.c (arc_override_options): Set unaligned access
16599 default on for HS CPUs.
16600 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
16602 2019-03-06 Martin Liska <mliska@suse.cz>
16604 PR gcov-profile/89577
16605 * doc/gcov.texi: Prefer to use --coverage.
16606 * doc/sourcebuild.texi: Likewise.
16608 2019-03-02 Jason Merrill <jason@redhat.com>
16610 PR c++/86485 - -Wmaybe-unused with empty class ?:
16611 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
16613 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16616 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
16619 PR middle-end/89590
16620 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
16621 exactly one argument.
16623 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16624 Richard Sandiford <richard.sandiford@arm.com>
16626 PR tree-optimization/89570
16627 * match.pd (vec_cond into cond_op simplification): Don't use
16628 get_conditional_internal_fn, use as_internal_fn (cond_op).
16630 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
16633 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
16634 to decide when to split off a non-zero offset from a symbol.
16635 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
16636 in function symbols.
16638 2019-03-05 Richard Biener <rguenther@suse.de>
16640 PR tree-optimization/89594
16641 * tree-if-conv.c (pass_if_conversion::execute): Handle
16642 case where .LOOP_VECTORIZED_FUNCTION was removed.
16644 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16647 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
16648 instead alloca it only when needed with the needed size.
16650 PR tree-optimization/89570
16651 * match.pd (vec_cond into cond_op simplification): Guard with
16652 vectorized_internal_fn_supported_p test and #if GIMPLE.
16654 PR tree-optimization/89566
16655 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
16656 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
16657 Punt if get_user_idx_format succeeds, but idx_format argument is
16658 not provided or doesn't have pointer type, or if idx_args is above
16659 number of provided arguments.
16661 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
16663 PR tree-optimization/89437
16664 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
16666 2019-03-04 Richard Biener <rguenther@suse.de>
16668 PR middle-end/89572
16669 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
16672 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
16674 PR tree-optimization/89487
16675 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
16676 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
16677 (distribute_loop): Don't do runtime alias check if there is non-
16678 addressable data reference.
16679 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
16680 is a register variable.
16682 2019-03-02 Jakub Jelinek <jakub@redhat.com>
16685 * config/arm/arm.md (cmpsi2_addneg): Use
16686 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
16687 If operands[2] is 0 or INT_MIN, force use of subs.
16688 (*compare_scc splitter): Use gen_int_mode.
16689 (*negscc): Likewise.
16690 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
16692 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
16693 Monk Chiang <sh.chiang04@gmail.com>
16695 * common/config/riscv/riscv-common.c: Include sstream.
16696 (riscv_subset_list::to_string): New.
16697 (riscv_arch_str): Likewise.
16698 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
16699 * config.in: Regen.
16700 * config/riscv/riscv-protos.h (riscv_arch_str): New.
16701 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
16702 (riscv_emit_attribute): New.
16703 (riscv_file_start): Emit attribute if needed.
16704 (riscv_option_override): Init riscv_emit_attribute_p.
16705 * config/riscv/riscv.opt (mriscv-attribute): New option.
16706 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
16707 * configure: Regen.
16708 * doc/install.texi: Document --with-riscv-attribute.
16709 * doc/invoke.texi: Document -mriscv-attribute.
16711 * common/config/riscv/riscv-common.c:
16712 Include config/riscv/riscv-protos.h.
16713 (INCLUDE_STRING): Defined.
16714 (RISCV_DONT_CARE_VERSION): Defined.
16715 (riscv_subset_t): Declare.
16716 (riscv_subset_t::riscv_subset_t): New.
16717 (riscv_subset_list): Declare.
16718 (riscv_subset_list::riscv_subset_list): New.
16719 (riscv_subset_list::~riscv_subset_list): Likewise.
16720 (riscv_subset_list::parsing_subset_version): Likewise.
16721 (riscv_subset_list::parse_std_ext): Likewise.
16722 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16723 (riscv_subset_list::add): Likewise.
16724 (riscv_subset_list::lookup): Likewise.
16725 (riscv_subset_list::xlen): Likewise.
16726 (riscv_subset_list::parse): Likewise.
16727 (riscv_supported_std_ext): Likewise.
16728 (current_subset_list): Likewise.
16729 (riscv_parse_arch_string): Using riscv_subset_list::parse to
16732 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
16734 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16735 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
16736 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
16738 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
16740 PR rtl-optimization/85899
16741 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
16742 fallthru edges leading to the exit block.
16744 2019-03-01 Tamar Christina <tamar.christina@arm.com>
16747 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
16748 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
16750 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
16752 PR tree-optimization/89535
16753 * tree-vect-stmts.c (vectorizable_call): Record the vector types
16754 for each operand. Calculate the fallback choice for mask operands
16755 and pass it to vect_get_vec_def_for_operand.
16757 2019-03-01 Richard Biener <rguenther@suse.de>
16759 PR middle-end/89541
16760 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
16761 get virtual operands.
16762 (get_expr_operands): Handle CONST_DECL like other decls.
16764 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16766 PR middle-end/89503
16767 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
16768 on DECL_P and EXPR_P.
16770 2019-03-01 Richard Biener <rguenther@suse.de>
16772 PR middle-end/89497
16773 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
16774 argument, defaulted to zero.
16775 * passes.c (execute_function_todo): Pass down SSA update flags
16776 to cleanup_tree_cfg.
16777 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
16778 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
16780 (cleanup_tree_cfg): Get and pass down SSA update flags.
16782 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16785 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
16786 early_lto_debug argument.
16788 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
16790 PR tree-optimization/89536
16791 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
16792 only whether bit #0 of the value is 0 instead of the entire value.
16794 2019-02-28 Marek Polacek <polacek@redhat.com>
16796 PR c++/87068 - missing diagnostic with fallthrough statement.
16797 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
16798 at the end of a seq, save its location to walk_stmt_info.
16799 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
16802 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
16805 * tree.c (find_atomic_core_type): Move ahead in file.
16806 (check_base_type): Correctly compare alignments of atomic types.
16808 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
16811 * config/i386/i386.c (get_builtin_code_for_version): Identify
16812 Westmere from PCLMUL, instead of AES.
16814 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16817 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
16818 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
16821 2019-02-28 Tamar Christina <tamar.christina@arm.com>
16824 * config/aarch64/aarch64-option-extensions.def: Document it.
16825 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
16828 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16831 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
16832 builtins if they don't have a single scalar floating point argument.
16835 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16837 PR rtl-optimization/89490
16838 * varasm.c (get_block_for_section): Bail out for mergeable sections.
16839 (default_use_anchors_for_symbol_p, output_object_block): Assert the
16840 block section is not mergeable.
16842 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16845 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
16846 old define_insn to ...
16847 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
16848 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
16849 Rename old define_insn to ...
16850 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
16851 (thumb2_casesi_internal_pic): New define_expand. Rename old
16853 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
16854 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
16855 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
16857 2019-02-27 Richard Biener <rguenther@suse.de>
16860 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
16862 2019-02-27 Richard Biener <rguenther@suse.de>
16864 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
16867 2019-02-27 Richard Biener <rguenther@suse.de>
16870 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
16871 parameter, prefix section name with .gnu.debuglto_ if true.
16872 (dwarf2out_finish): Pass false to output_comdat_type_unit.
16873 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
16875 2019-02-27 Richard Biener <rguenther@suse.de>
16878 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
16879 rather than on use_debug_types, doing what output_die does.
16880 (value_format): Likewise.
16882 2019-02-27 Martin Jambor <mjambor@suse.cz>
16883 Martin Sebor <msebor@redhat.com>
16885 * doc/invoke.texi (Warning Options): Reword description of
16886 -Wno-absolute-value.
16888 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16890 PR tree-optimization/89280
16891 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
16892 builtin_setjmp_setup_bb): New functions.
16893 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
16894 When visiting __builtin_setjmp_setup block, queue in special
16895 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
16896 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
16897 from visited after the loop if they don't have any visited successor
16900 2018-02-26 Steve Ellcey <sellcey@marvell.com>
16902 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
16904 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
16906 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16909 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
16910 with types other than sizetype/ssizetype.
16912 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16914 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
16915 (enum sparc_processor_type): ...this.
16916 (enum sparc_code_model_type): New enumeration type.
16917 (enum sparc_memory_model_type): Tweak comments.
16918 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
16920 (mcmodel): Use sparc_code_model enumeration and variable.
16921 (sparc_code_model): New enumeration.
16922 (mdebug): Add Undocumented marker.
16923 * config/sparc/sparc.h (enum cmodel): Delete.
16924 (sparc_cmodel): Likewise.
16925 (TARGET_CM_MEDLOW): Adjust to above renaming.
16926 (TARGET_CM_MEDMID): Likewise.
16927 (TARGET_CM_MEDANY): Likewise.
16928 (TARGET_CM_EMBMEDANY): Likewise.
16929 * config/sparc/sparc.c (sparc_cmodel): Delete.
16930 (sparc_option_override): Remove string/value mapping support for the
16931 code model. Move code and memory model support to after the handling
16932 of target flags. Do private machine setup last.
16933 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
16934 (sparc_legitimize_reload_address): Likewise.
16935 (sparc_output_mi_thunk): Likewise.
16936 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
16938 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16940 PR tree-optimization/89500
16941 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
16942 (handle_builtin_strlen): Remove noncst_bound variable. Always
16943 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
16944 cst if the first cst bytes starting at x are known to be non-zero,
16945 even if the string is not zero terminated. Don't try to modify
16946 *si for strnlen. Update strlen_to_stridx only for strlen or if
16947 we can prove strnlen returns the same value as strlen would.
16949 2019-02-26 Martin Liska <mliska@suse.cz>
16951 * alloc-pool.h (struct pool_usage): Remove extra
16953 * bitmap.h (struct bitmap_usage): Likewise.
16954 * ggc-common.c (struct ggc_usage): Likewise.
16955 * mem-stats.h (struct mem_usage): Likewise.
16956 (mem_alloc_description::dump): Print dash lines
16957 here and repeat header at the end of a table report.
16958 It's then more readable.
16959 * tree-phinodes.c (phinodes_print_statistics): Make
16960 horizontal alignment.
16961 * tree-ssanames.c (ssanames_print_statistics): Likewise.
16962 * vec.c (struct vec_usage): Remove extra print_dash_line.
16963 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
16965 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
16967 * doc/extend.texi (__builtin_object_size):
16968 Use @pxref instead of @xref inside parenthesis.
16969 (__builtin_has_attribute): Add missing comma after @xref.
16970 (__builtin_object_size): Ditto.
16971 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
16973 2019-02-26 Jeff Law <law@redhat.com>
16975 PR rtl-optimization/87761
16976 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
16977 detect obviously dead insns and delete them.
16979 2019-02-26 Richard Biener <rguenther@suse.de>
16981 PR tree-optimization/89505
16982 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
16983 to handle restrict pointed-to vars with multiple subvars
16986 2019-02-26 Richard Biener <rguenther@suse.de>
16988 PR tree-optimization/89489
16989 * tree-parloops.c (create_loop_fn): Copy over last_clique.
16991 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16993 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
16994 and move around comment.
16995 <BIT_AND_EXPR>: Likewise.
16996 <BIT_NOT_EXPR>: Add specific handling for boolean types.
16998 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17001 * config/i386/i386.c (remove_partial_avx_dependency): Call
17002 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
17003 after changing possibly many instructions to use that pseudo. Fix up
17004 insertion of v4sf_const0 setter at the start of bb.
17006 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
17009 * doc/extend.texi (Variadic Pointer Args): New section.
17011 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
17012 Martin Sebor <msebor@gmail.com>
17014 * common.opt (Wattribute-alias): Likewise.
17015 * doc/invoke.texi (Option Summary): List general form of
17016 -Wattribute-alias=. List positive form of -Wmissing-attributes.
17017 (-Wmissing-attributes): Invert entry, rewrite and correct default.
17018 Add cross-references.
17019 (-Wattribute-alias): Rewrite and correct default. Mention
17020 considered attributes (same as for -Wmissing-attributes).
17022 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
17024 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
17025 (_mm_cvtpd_ps): Likewise.
17026 (_mm_cvttpd_epi32): Likewise.
17029 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
17030 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
17033 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
17035 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17038 * common/config/aarch64/aarch64-common.c
17039 (struct aarch64_option_extension): Add is_synthetic.
17040 (all_extensions): Use it.
17041 (TARGET_OPTION_INIT_STRUCT): Define hook.
17042 (struct gcc_targetm_common): Moved to end.
17043 (all_extensions_by_on): New.
17044 (opt_ext_cmp, typedef opt_ext): New.
17045 (aarch64_option_init_struct): New.
17046 (aarch64_contains_opt): New.
17047 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
17048 * config/aarch64/aarch64-option-extensions.def
17049 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
17050 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
17051 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
17052 Set is_synthetic to false.
17053 (crypto): Set is_synthetic to true.
17054 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
17057 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17059 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
17060 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
17061 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
17062 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
17063 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
17064 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
17065 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
17066 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
17068 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
17069 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
17070 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
17071 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
17072 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
17073 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
17074 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
17075 vfmlsl_laneq_high_f16): ... To this.
17076 * config/arm/neon.md: Update comments.
17078 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17080 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
17081 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
17082 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
17083 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
17084 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
17085 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
17086 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
17087 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
17089 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
17090 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
17091 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
17092 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
17093 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
17094 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
17095 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
17096 vfmlslq_laneq_high_f16): ... To this.
17098 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
17100 PR rtl-optimization/86096
17101 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
17102 comparing mw_order values.
17104 2019-02-25 Jakub Jelinek <jakub@redhat.com>
17107 * config/arm/arm.md (*subsi3_carryin_const): Use
17108 arm_neg_immediate_operand predicate instead of
17109 arm_not_immediate_operand, "L" constraint instead of "K" and
17110 print it using %n2 instead of %B2.
17111 (*subsi3_carryin_const0): New define_insn.
17112 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
17113 instead of arm_not_operand and "I" constraint instead of "K" and
17114 print it using %n3 instead of %B2. Instead of using match_dup 2 add
17115 another match_operand and in the condition check that it is negation
17117 (*subsi3_carryin_compare_const0): New define_ins.
17118 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
17119 *subsi3_carryin_const.
17120 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
17121 split into *subsi3_carryin_compare_const0 if the highpart is zero.
17124 * config/arm.vfp.md (*negdf2_vfp): Use
17125 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
17126 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
17128 2019-02-24 Jakub Jelinek <jakub@redhat.com>
17130 PR rtl-optimization/89445
17131 * simplify-rtx.c (simplify_ternary_operation): Don't use
17132 simplify_merge_mask on operands that may trap.
17133 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
17134 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
17135 second operand is CONST_VECTOR, check if any element could be zero.
17136 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
17137 their operands can trap.
17139 2019-02-23 Martin Sebor <msebor@redhat.com>
17141 * gimple-ssa-sprintf.c (target_strtol): Rename...
17142 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
17143 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
17144 check for range error.
17146 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
17149 * opts-common.c (prune_options): Also prune joined switches
17150 with Negative and RejectNegative.
17151 * config/i386/i386.opt (march=): Add Negative(march=).
17152 (mtune=): Add Negative(mtune=).
17153 * doc/options.texi: Document Negative used together with Joined
17154 and RejectNegative.
17156 2019-02-22 Martin Sebor <msebor@redhat.com>
17158 * doc/extend.texi (Other Builtins): Add
17159 __builtin_is_constant_evaluated.
17161 2019-02-22 Richard Biener <rguenther@suse.de>
17163 PR tree-optimization/87609
17164 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
17166 2019-02-22 Jeff Law <law@redhat.com>
17168 PR rtl-optimization/87761
17169 * config/mips/mips.md: Add new combiner pattern to recognize
17170 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
17172 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
17175 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
17176 destination register in peepholes generating patterns for ADDS/SUBS.
17177 (add<mode>3_compare0,
17178 *addsi3_compare0_uxtw, add<mode>3_compareC,
17179 add<mode>3_compareV_imm, add<mode>3_compareV,
17180 *adds_<optab><ALLX:mode>_<GPI:mode>,
17181 *subs_<optab><ALLX:mode>_<GPI:mode>,
17182 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
17183 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
17184 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
17185 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
17186 sub<mode>3_compare1): Allow stack pointer for source register.
17187 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
17189 2019-02-22 Martin Sebor <msebor@redhat.com>
17191 PR tree-optimization/88993
17192 PR tree-optimization/88853
17193 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
17195 (sprintf_dom_walker::call_info::is_string_func): New helper.
17196 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
17197 for formatted string functions.
17198 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
17200 2019-02-22 Martin Sebor <msebor@redhat.com>
17203 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
17204 unreachable subexpressions.
17206 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
17207 Hongtao Liu <hongtao.liu@intel.com>
17208 Sunil K Pandey <sunil.k.pandey@intel.com>
17211 * config/i386/i386-passes.def: Add
17212 pass_remove_partial_avx_dependency.
17213 * config/i386/i386-protos.h
17214 (make_pass_remove_partial_avx_dependency): New.
17215 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
17217 (pass_data_remove_partial_avx_dependency): New.
17218 (pass_remove_partial_avx_dependency): Likewise.
17219 (make_pass_remove_partial_avx_dependency): Likewise.
17220 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
17221 (*extendsfdf2): Add avx_partial_xmm_update.
17222 (truncdfsf2): Likewise.
17223 (*float<SWI48:mode><MODEF:mode>2): Likewise.
17224 (SF/DF conversion splitters): Disabled for TARGET_AVX.
17226 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
17228 PR middle-end/85598
17229 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
17232 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
17235 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
17236 (PTA_SKYLAKE): Add PTA_AES.
17237 (PTA_GOLDMONT): Likewise.
17239 2019-02-22 Sudakshina Das <sudi.das@arm.com>
17241 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
17242 instruction if enabled.
17243 (aarch64_override_options): Remove reference to return address key.
17245 2019-02-22 Richard Biener <rguenther@suse.de>
17247 PR tree-optimization/89440
17248 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17249 not necessary assert.
17251 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
17254 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
17255 (oacc_replace_fn_attrib_attr): ... this new function.
17256 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
17257 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
17259 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17261 * config/arm/arm-cpus.in (ares): Rename to...
17262 (neoverse-n1): ... This. Add ares as alias.
17263 * config/arm/arm-tables.opt: Regenerate.
17264 * config/arm/arm-tune.md: Likewise.
17265 * doc/invoke.txt (ARM Options): Document neoverse-n1.
17267 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17269 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
17270 * config/aarch64/aarch64-tune.md: Regenerate.
17271 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
17273 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17275 * config/aarch64/aarch64.c (ares_tunings): Rename to...
17276 (neoversen1_tunings): ... This.
17277 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
17278 (neoverse-n1): New CPU.
17279 * config/aarch64/aarch64-tune.md: Regenerate.
17280 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
17282 2019-02-22 Richard Biener <rguenther@suse.de>
17284 PR middle-end/87609
17285 * cfghooks.h (dependence_hash): New typedef.
17286 (struct copy_bb_data): New type.
17287 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
17288 (duplicate_block): Likewise.
17289 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
17290 (copy_bbs): Create and pass down copy_bb_data.
17291 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
17292 (rtl_duplicate_bb): Likewise.
17293 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
17294 remap dependence info.
17296 2019-02-22 Richard Biener <rguenther@suse.de>
17298 PR tree-optimization/87609
17299 * tree-core.h (tree_base): Document special clique values.
17300 * tree-inline.c (remap_dependence_clique): Do not use the
17301 special clique value of one.
17302 (maybe_set_dependence_info): Use clique one.
17303 (clear_dependence_clique): New callback.
17304 (compute_dependence_clique): Clear clique one from all refs
17305 before assigning it (again).
17307 2019-02-21 Martin Sebor <msebor@redhat.com>
17309 * doc/extend.texi (__clear_cache): Correct signature.
17311 2019-02-21 Ian Lance Taylor <iant@golang.org>
17314 * varasm.c (decode_addr_const): Call lookup_constant_def rather
17315 than output_constant_def.
17316 (add_constant_to_table): New static function.
17317 (output_constant_def): Call add_constant_to_table.
17318 (tree_output_constant_def): Likewise.
17320 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17323 * builtins.c (fold_builtin_arith_overflow): If first two args are
17324 INTEGER_CSTs, set intres and ovfres to constants rather than calls
17327 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
17330 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
17331 error for -mindirect-branch/-mfunction-return with incompatible
17334 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17337 * constraints.md (q): Remove.
17338 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
17341 2019-02-21 Martin Jambor <mjambor@suse.cz>
17344 * omp-general.c (omp_extract_for_data): Removed a duplicate call
17345 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
17346 (omp_adjust_for_condition): ...here. Added necessary parameters.
17347 * omp-general.h (omp_adjust_for_condition): Updated declaration.
17348 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
17349 proper values to new parameters of omp_adjust_for_condition.
17351 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17353 PR middle-end/89412
17354 * expr.c (expand_assignment): If result is a MEM, use change_address
17355 instead of simplify_gen_subreg.
17357 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17358 David Malcolm <dmalcolm@redhat.com>
17360 PR middle-end/89091
17361 * fold-const.c (decode_field_reference): Return NULL_TREE if
17362 lang_hooks.types.type_for_size returns NULL. Check it before
17363 overwriting *exp_. Use return NULL_TREE instead of return 0.
17365 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17367 PR middle-end/88074
17368 PR middle-end/89415
17369 * toplev.c (do_compile): Double the emin/emax exponents to workaround
17372 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
17375 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
17376 TARGET_SSE in addition to TARGET_SSE_MATH.
17378 (ix86_excess_precision): Ditto.
17379 (ix86_float_exceptions_rounding_supported_p): Ditto.
17380 (use_rsqrt_p): Ditto.
17381 * config/i386/sse.md (rsqrt<mode>2): Ditto.
17383 2019-02-20 David Malcolm <dmalcolm@redhat.com>
17386 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
17387 linenum_arith_t when determining if two adjacent line spans are
17388 close enough to merge.
17389 (diagnostic_show_locus): Use linenum_arith_t when iterating over
17390 lines within each line_span.
17392 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
17395 * lra-constraints.c(uses_hard_regs_p): Fix handling of
17396 paradoxical SUBREGS.
17398 2019-02-20 Li Jia He <helijia@linux.ibm.com>
17401 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
17402 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
17403 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
17406 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
17408 * config/gcn/gcn.c (print_operand): Fix typo.
17410 2019-02-19 Richard Biener <rguenther@suse.de>
17412 PR middle-end/88074
17413 * toplev.c (do_compile): Initialize mpfr's exponent range
17414 based on available float modes.
17416 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
17418 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
17419 as long as the epilogue isn't completed.
17421 2019-02-18 Martin Sebor <msebor@redhat.com>
17423 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
17424 __has_cpp_attribute, and __has_include.
17426 2019-02-18 Martin Sebor <msebor@redhat.com>
17428 * doc/invoke.texi (-Wreturn-type): Correct and expand.
17430 2019-02-18 Martin Sebor <msebor@redhat.com>
17432 PR middle-end/89294
17433 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
17435 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
17437 2019-02-18 Richard Biener <rguenther@suse.de>
17439 PR tree-optimization/89296
17440 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
17441 of no-warning flag to cases that might emit the bogus warning.
17443 2019-02-18 Jakub Jelinek <jakub@redhat.com>
17446 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
17448 * config/arm/vfp.md (*movdi_vfp): Likewise.
17449 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
17450 "q" constraint for operands[0].
17453 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
17454 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
17455 pattern in a temporary buffer.
17456 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
17457 than 64-operands[2].
17460 * config/s390/s390.c (s390_indirect_branch_attrvalue,
17461 s390_indirect_branch_settings): Define unconditionally.
17462 (s390_set_current_function): Likewise, but guard the whole body except
17463 the s390_indirect_branch_settings call with
17464 #if S390_USE_TARGET_ATTRIBUTE.
17465 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
17467 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
17468 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
17469 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
17470 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
17471 HOST_WIDE_INT_1U instead of 1ULL.
17472 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
17473 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
17474 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
17475 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
17477 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
17480 2019-02-18 Martin Jambor <mjambor@suse.cz>
17482 PR tree-optimization/89209
17483 * tree-sra.c (create_access_replacement): New optional parameter
17484 reg_tree. Use it as a type if non-NULL and access type is not of
17486 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
17487 to create_access_replacement.
17488 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
17489 Check lacc is non-NULL before attempting to re-create it on the RHS.
17491 2019-02-18 Martin Liska <mliska@suse.cz>
17494 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
17496 (symbol_table::free_edge): Recycle m_summary_id.
17497 * cgraph.h (get_summary_id): New.
17498 (symbol_table::release_symbol): Set m_summary_id to -1
17500 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
17501 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
17502 function_summary to fast_function_summary.
17503 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
17504 * ipa-pure-const.c (class funct_state_summary_t):
17505 Switch from function_summary to fast_function_summary.
17506 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
17507 (class ipa_ref_opt_summary_t): Switch from function_summary
17508 to fast_function_summary.
17509 * symbol-summary.h (class function_summary_base): New class
17510 that is created from base of former function_summary.
17511 (function_summary_base::unregister_hooks): New.
17512 (class function_summary): Inherit from function_summary_base.
17513 (class call_summary_base): New class
17514 that is created from base of former call_summary.
17515 (class call_summary): Inherit from call_summary_base.
17516 (struct is_same): New.
17517 (class fast_function_summary): New summary class.
17518 (class fast_call_summary): New summary class.
17519 * vec.h (vec_safe_grow_cleared): New function.
17521 2019-02-18 Martin Liska <mliska@suse.cz>
17523 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
17524 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
17525 * doc/tm.texi: Document new target hook.
17526 * doc/tm.texi.in: Likewise.
17527 * target.def: Add new target macro.
17528 * gcc.c (find_fortran_preinclude_file): Do not search multilib
17531 2019-02-17 Alan Modra <amodra@gmail.com>
17534 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
17535 output reg on add insn.
17536 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
17538 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17541 * config/i386/sse.md (ssedoublemode): Remove V4HI.
17542 (PMULHRSW): Likewise.
17543 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
17545 (ssse3_pmulhrswv4hi3): New expander.
17547 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17549 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
17550 MMX. Add isa attribute.
17552 2019-02-16 Jakub Jelinek <jakub@redhat.com>
17554 PR rtl-optimization/66152
17555 * builtins.h (c_readstr): Declare.
17556 * builtins.c (c_readstr): Remove forward declaration. Add
17557 null_terminated_p argument, if false, read all bytes from the
17558 string instead of stopping after '\0'.
17559 * expr.c (string_cst_read_str): New function.
17560 (store_expr): Use string_cst_read_str instead of
17561 builtin_strncpy_read_str. Try to store by pieces the whole
17562 exp_len first, and only if that fails, split it up into
17563 store by pieces followed by clear_storage. Formatting fix.
17565 * config/i386/i386.md (*movqi_internal): Remove static from
17566 buf variable. Use output_asm_insn (buf, operands); return "";
17567 instead of return buf;.
17568 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
17569 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
17570 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
17572 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17574 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
17575 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
17576 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
17577 (CC1_SPEC): Likewise.
17578 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
17580 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17582 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
17583 the base address on 64-bit strict-alignment platforms.
17585 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
17587 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
17589 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17591 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
17593 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
17595 PR rtl-optimization/88308
17596 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
17597 on copied instruction.
17599 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17601 * final.c (insn_current_reference_address): Replace test on JUMP_P
17602 with test on jump_to_label_p.
17603 * config/visium/visium-passes.def: New file.
17604 * config/visium/t-visium (PASSES_EXTRA): Define.
17605 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
17606 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
17607 (TRAMPOLINE_ALIGNMENT): Define.
17608 * config/visium/visium.c (visium_option_override): Do not register
17609 the machine-specific reorg pass here.
17610 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
17612 (output_branch): Adjust threshold for long branch instruction.
17613 * config/visium/visium.md (cpu): Move around.
17614 (length): Adjust for the GR6.
17616 2019-02-15 Richard Biener <rguenther@suse.de>
17617 Jakub Jelinek <jakub@redhat.com>
17619 PR tree-optimization/89278
17620 * tree-loop-distribution.c: Include tree-eh.h.
17621 (generate_memset_builtin, generate_memcpy_builtin): Call
17622 rewrite_to_non_trapping_overflow on builtin->size before passing it
17623 to force_gimple_operand_gsi.
17625 2019-02-15 Jakub Jelinek <jakub@redhat.com>
17628 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
17630 * opth-gen.awk: Likewise.
17632 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17634 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
17635 Enable MMX, SSE and SSE2 by default.
17636 * config/i386/i386.c (ix86_option_override_internal): Do not
17637 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
17639 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17641 PR rtl-optimization/89354
17642 * combine.c (make_extraction): Punt if extraction_mode is narrower
17645 2019-02-14 Maya Rashish <coypu@sdf.org>
17647 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
17648 * config/netbsd-d.c: New file.
17649 * config/t-netbsd: Add netbsd-d.o
17651 2018-02-14 Steve Ellcey <sellcey@marvell.com>
17653 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
17654 affects_type_identity to true for aarch64_vector_pcs.
17655 (aarch64_comp_type_attributes): New function.
17656 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
17658 2019-02-14 Tamar Christina <tamar.christina@arm.com>
17661 * config/arm/iterators.md (ANY64): Add V4HF.
17663 2019-02-14 Martin Liska <mliska@suse.cz>
17665 PR rtl-optimization/89242
17666 * dce.c (delete_unmarked_insns): Call free_dominance_info we
17667 process a transformation.
17669 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17671 PR tree-optimization/89314
17672 * fold-const.c (fold_binary_loc): Cast strlen argument to
17673 const char * before dereferencing it. Formatting fixes.
17675 PR middle-end/89284
17676 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
17678 2019-02-13 Ian Lance Taylor <iant@golang.org>
17680 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
17681 and set current index for other optimizations.
17683 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
17685 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
17686 nonimmediate_operand as operand 2 predicate.
17687 (vec_set<VF2_512_256:mode>_0): Ditto.
17688 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
17689 (*vec_concatv2si): Remove alternative 2.
17690 (*vec_concatv4si_0): Use vm constraint for alternative 0.
17691 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
17692 (vec_concatv2di): Split alternatives 4,5,6 to ...
17693 (*vec_concatv2di_0) ... new pattern.
17695 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
17698 * config/arm/arm.c (ldm_stm_operation_p) Set
17699 addr_reg_in_reglist correctly for first register.
17700 (load_multiple_sequence): Remove dead base check.
17701 (gen_ldm_seq): Correctly set write_back for Thumb-1.
17703 2019-02-13 Tamar Christina <tamar.christina@arm.com>
17706 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
17707 Expose as @aarch64_pred_mov.
17708 * config/aarch64/aarch64.c (aarch64_classify_address):
17709 Use expand_insn which legitimizes operands.
17711 2019-02-13 Martin Liska <mliska@suse.cz>
17713 * builtins.h (expand_builtin_with_bounds): Remove declaration.
17714 * calls.c (struct arg_data): Remove special_slot, pointer_arg
17715 and pointer_offset fields.
17716 (initialize_argument_information): Remove usage of dead
17718 * cgraph.h (struct cgraph_thunk_info): Remove
17719 add_pointer_bounds_args.
17720 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
17722 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
17724 * config/i386/i386.c (ix86_function_arg_advance): Remove
17726 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
17727 (def_builtin): Remove usage of dead fields.
17728 (ix86_add_new_builtins): Likewise.
17729 * ipa-fnsummary.c (compute_fn_summary): Likewise.
17730 * ipa-icf.c (sem_function::equals_wpa): Likewise.
17731 (sem_function::init): Likewise.
17732 (sem_variable::merge): Likewise.
17733 * ipa-visibility.c (function_and_variable_visibility): Likewise.
17734 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
17735 * lto-cgraph.c (lto_output_node): Likewise.
17736 (lto_output_varpool_node): Likewise.
17737 (input_node): Likewise.
17738 (input_varpool_node): Likewise.
17739 * lto-streamer-out.c (lto_output): Likewise.
17740 * tree-inline.c (expand_call_inline): Remove usage of
17742 * tree-inline.h (struct copy_body_data): Likewise.
17743 * varpool.c (varpool_node::dump): Likewise.
17745 2019-02-13 Jakub Jelinek <jakub@redhat.com>
17747 PR middle-end/89303
17748 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
17749 into pt->vars_contains_escaped_heap instead of setting
17750 pt->vars_contains_escaped_heap to it.
17752 PR middle-end/89281
17753 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
17754 INTVAL (size), compare it to GET_MODE_MASK instead of
17755 1 << GET_MODE_BITSIZE.
17758 * config/i386/predicates.md (x86_64_immediate_operand): Allow
17759 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
17762 2019-02-13 Martin Liska <mliska@suse.cz>
17765 * cfgrtl.c (remove_barriers_from_footer): New function.
17766 (try_redirect_by_replacing_jump): Use it.
17767 (cfg_layout_redirect_edge_and_branch): Likewise.
17769 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
17771 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
17772 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
17773 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
17774 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
17775 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
17776 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
17778 * config/rs6000/rs6000.c (builtin_function_type)
17779 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
17780 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
17781 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
17782 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
17783 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
17785 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
17787 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
17788 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
17790 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
17793 * config/i386/i386.md (*movoi_internal_avx): Revert revision
17794 268678 and revision 268657.
17795 (*movti_internal): Likewise.
17797 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
17800 * config/s390/s390.c (s390_decompose_address): Update comment.
17801 (s390_check_qrst_address): Reject invalid address forms after
17804 2019-02-12 Martin Liska <mliska@suse.cz>
17807 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
17808 we need default values of funct_state for a function that
17811 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
17813 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
17814 the object to pick the size of stores on strict-alignment platforms.
17816 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
17817 (*movdi_insn_sp32): Likewise.
17818 (*movdi_insn_sp64): Likewise.
17820 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
17823 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
17824 types that needs constructiong.
17825 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
17827 2019-02-12 Richard Biener <rguenther@suse.de>
17829 PR tree-optimization/89253
17830 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
17831 duplicate the loop.
17833 2019-02-11 David Malcolm <dmalcolm@redhat.com>
17836 * input.c (selftest::test_line_offset_overflow): New selftest.
17837 (selftest::input_c_tests): Call it.
17839 2019-02-11 Martin Sebor <msebor@redhat.com>
17841 PR tree-optimization/88771
17842 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
17843 when -Wstringop-overflow is set.
17844 (builtin_memref::builtin_memref): Adjust excessive upper bound
17845 only when lower bound is not excessive.
17846 (maybe_diag_overlap): Detect and diagnose excessive bounds via
17847 -Wstringop-ovefflow.
17848 (maybe_diag_offset_bounds): Rename...
17849 (maybe_diag_access_bounds): ...to this.
17850 (check_bounds_or_overlap): Adjust for name change above.
17852 2019-02-11 Martin Sebor <msebor@redhat.com>
17855 * builtins.c (max_object_size): Move from here...
17856 * builtins.h (max_object_size): ...and here...
17857 * tree.c (max_object_size): ...to here...
17858 * tree.h (max_object_size): ...and here.
17860 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
17862 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
17863 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
17864 for correct semantics.
17866 2019-02-11 Alan Modra <amodra@gmail.com>
17868 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
17869 -mlongcall and -mpltseq.
17870 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
17871 (RS/6000 and PowerPC Options <-mpltseq>): Document.
17872 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
17873 * config/rs6000/sysv4.opt (mpltseq): New option.
17874 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
17875 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
17876 support is lacking. Don't allow -mpltseq with -mbss-plt.
17877 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
17878 -mpltseq given for ELFv1.
17879 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
17880 Only use UNSPEC_PLTSEQ for inline PLT calls.
17881 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
17882 use UNSPEC_PLTSEQ for inline PLT calls.
17883 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
17884 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
17885 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
17886 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17887 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17888 (pltseq_mtctr_<mode>): Likewise.
17890 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17892 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
17894 * configure: Regenerate.
17896 2019-02-11 Jakub Jelinek <jakub@redhat.com>
17899 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
17902 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17904 * function.c (assign_parm_setup_block): Use the stored
17905 size, not the passed size, when allocating stack-space,
17906 also for a parameter with alignment larger than
17907 MAX_SUPPORTED_STACK_ALIGNMENT.
17909 2019-02-11 Martin Liska <mliska@suse.cz>
17912 * ipa-cp.c (build_toporder_info): Remove usage of a param.
17913 * ipa-inline.c (inline_small_functions): Likewise.
17914 * ipa-pure-const.c (propagate_pure_const): Likewise.
17915 (propagate_nothrow): Likewise.
17916 * ipa-reference.c (propagate): Likewise.
17917 * ipa-utils.c (struct searchc_env): Remove unused field.
17918 (searchc): Always search across AVAIL_INTERPOSABLE.
17919 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
17920 the only called IPA pure const can properly not propagate
17921 across interposable boundary.
17922 * ipa-utils.h (ipa_reduced_postorder): Remove param.
17924 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
17926 * config/nds32/nds32.md (call_internal, call_value_internal,
17927 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
17929 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17931 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
17934 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
17936 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
17939 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17941 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
17943 2019-02-10 Jakub Jelinek <jakub@redhat.com>
17945 PR tree-optimization/89268
17946 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
17947 if preds is non-NULL.
17949 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17952 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
17955 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17957 * config/nds32/nds32.md (trap): New pattern.
17959 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17961 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
17964 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17966 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
17969 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17971 * ipa-visibility.c (localize_node): Also do not localize
17972 LDPR_PREVAILING_DEF_IRONLY_EXP.
17974 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17977 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
17978 instead of type_with_linkage.
17980 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17983 * params.def (uninlined-function-insns, uninlined-function-time,
17984 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
17985 bound so we don't get overflows.
17987 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
17989 * config/rs6000/rs6000-string.c (expand_compare_loop,
17990 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
17993 2019-02-09 Jakub Jelinek <jakub@redhat.com>
17995 PR middle-end/89246
17996 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17997 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
17998 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
18000 2019-02-09 Alan Modra <amodra@gmail.com>
18003 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
18004 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
18007 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
18009 PR middle-end/88560
18010 * lra-constraints.c (process_alt_operands): Don't increase reject
18011 for memory when offset memory is required.
18013 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
18015 * config/s390/vector.md: Implement vector copysign.
18017 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
18019 * expr.c (expand_constructor): Correct indentations.
18021 2019-02-08 Richard Biener <rguenther@suse.de>
18023 PR tree-optimization/89247
18024 * tree-if-conv.c: Include tree-cfgcleanup.h.
18025 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
18026 (tree_if_conversion): Pass through predicate vector.
18027 (pass_if_conversion::execute): Do CFG cleanup and SSA update
18028 inline, see if any if-converted loops we refrece in
18029 LOOP_VECTORIZED calls vanished and fixup.
18030 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
18032 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
18034 * config/s390/constraints.md (jdd): New constraint.
18036 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
18039 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
18040 upper 16 vector registers without TARGET_AVX512VL.
18041 (*movti_internal): Likewise.
18043 2019-02-08 Jakub Jelinek <jakub@redhat.com>
18045 PR rtl-optimization/89234
18046 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
18047 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
18048 (copy_reg_eh_region_note_backward): Likewise.
18050 2019-02-08 Richard Biener <rguenther@suse.de>
18052 PR middle-end/89223
18053 * tree-data-ref.c (initialize_matrix_A): Fail if constant
18054 doesn't fit in HWI.
18055 (analyze_subscript_affine_affine): Handle failure from
18056 initialize_matrix_A.
18058 2019-02-08 Jakub Jelinek <jakub@redhat.com>
18060 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
18063 2019-02-07 David Malcolm <dmalcolm@redhat.com>
18065 PR tree-optimization/86637
18066 PR tree-optimization/89235
18067 * tree-vect-loop.c (optimize_mask_stores): Add an
18068 auto_purge_vect_location sentinel to ensure that vect_location is
18070 * tree-vectorizer.c
18071 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
18072 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
18073 to ensure that vect_location is purged on exit.
18074 (pass_slp_vectorize::execute): Likewise, replacing the manual
18076 * tree-vectorizer.h (class auto_purge_vect_location): New class.
18078 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18080 * config/aarch64/iterators.md (max_opp): New code_attr.
18081 (USMAX): New code iterator.
18082 * config/aarch64/predicates.md (aarch64_smin): New predicate.
18083 (aarch64_smax): Likewise.
18084 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
18085 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
18088 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
18091 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
18092 for TARGET_AVX512VL.
18093 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
18095 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
18097 * config/s390/s390-builtin-types.def: Add new types.
18098 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
18099 (s390_vec_xlw4): Make the memory operand into a const pointer.
18100 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
18102 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
18103 a new vector type with the alignment of the scalar memory operand.
18105 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
18106 Jakub Jelinek <jakub@redhat.com>
18109 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
18110 arm_count_ldrdstrd_insns): New declarations.
18111 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
18113 (valid_operands_ldrd_strd): New function.
18114 (arm_count_ldrdstrd_insns): New function.
18115 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
18116 sets instead of single DImode set and define new insns to match this.
18118 2019-02-07 Tamar Christina <tamar.christina@arm.com>
18120 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
18121 Make it a C initializer.
18123 2019-02-07 Tamar Christina <tamar.christina@arm.com>
18126 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
18128 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18130 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
18131 Use neon_dot<q> for type.
18132 (neon_<sup>dot_lane<vsi2qi>): Likewise.
18134 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18136 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
18137 Use neon_dot<q> for type.
18138 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
18139 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
18141 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
18143 PR rtl-optimization/89225
18144 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
18147 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
18149 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
18150 after restoring registers saved to allocate the frame on Windows.
18152 2019-02-06 Richard Biener <rguenther@suse.de>
18154 PR tree-optimization/89182
18155 * graphite.h (cached_scalar_evolution_in_region): Declare.
18156 * graphite.c (struct seir_cache_key): New.
18157 (struct sese_scev_hash): Likewise.
18158 (seir_cache): New global.
18159 (cached_scalar_evolution_in_region): New function.
18160 (graphite_transform_loops): Allocate and release seir_cache.
18161 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
18162 cached_scalar_evolution_in_region.
18163 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18165 (scop_detection::graphite_can_represent_expr: Use
18166 cached_scalar_evolution_in_region.
18167 (scop_detection::stmt_simple_for_scop_p): Likewise.
18168 (find_params_in_bb): Likewise.
18169 (gather_bbs::before_dom_children): Likewise.
18170 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
18171 (add_loop_constraints): Likewise.
18173 2019-02-06 Jakub Jelinek <jakub@redhat.com>
18175 PR middle-end/89210
18176 * fold-const-call.c (fold_const_vec_convert): Pass true as last
18177 operand to new_unary_operation only if both element types are integral
18178 and it isn't a widening conversion. Return NULL_TREE if
18179 new_unary_operation failed.
18181 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
18184 * config/s390/s390.md: Remove load and test FP splitter.
18186 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
18189 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
18190 expand_compare_loop, expand_block_compare_gpr,
18191 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
18192 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
18193 #include "profile-count.h" and "predict.h" for types and functions
18194 needed to work with REG_BR_PROB notes.
18196 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
18199 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
18200 for the long branch case.
18202 2019-02-05 Jakub Jelinek <jakub@redhat.com>
18205 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
18206 can throw, non-call exceptions are enabled and we can't delete
18207 dead exceptions or alter cfg. Set must_clean if
18208 delete_insn_and_edges returns true, don't set it blindly for calls.
18209 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
18211 PR rtl-optimization/89195
18212 * combine.c (make_extraction): For MEMs, don't extract bytes outside
18213 of the original MEM.
18215 2019-02-05 Martin Liska <mliska@suse.cz>
18217 PR gcov-profile/89000
18218 * gcov.c (function_summary): Remove argument.
18219 (file_summary): New function.
18220 (print_usage): Replace tabs with spaces.
18221 (generate_results): Use new function file_summary.
18223 2019-02-05 Jakub Jelinek <jakub@redhat.com>
18226 * optabs.c (prepare_cmp_insn): Pass x and y to
18227 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
18229 2019-02-05 Richard Biener <rguenther@suse.de>
18231 PR middle-end/89150
18232 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
18233 (struct bitmap_element): Drop chain_prev so we properly recurse on
18234 the prev member, supporting tree views.
18235 (struct bitmap_head): GTY skip the obstack member.
18237 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
18240 * doc/extend.texi (Vector Extensions): Add an example of using vector
18241 types together with x86 intrinsics.
18243 2019-02-04 Alan Modra <amodra@gmail.com>
18245 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
18246 str[] size to 160, and comment.
18248 2019-02-04 Alan Modra <amodra@gmail.com>
18250 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
18251 (rs6000_pltseq_template): Guard output of TLS markers with
18252 TARGET_TLS_MARKERS.
18253 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
18254 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
18255 to use inline PLT sequences.
18256 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
18257 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
18258 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
18260 2019-02-04 Martin Liska <mliska@suse.cz>
18263 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
18264 out when ipa_fn_summaries does not contain entry for callee.
18266 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
18268 * config/sparc/sparc.h: Remove superfluous blank lines.
18269 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
18270 (got_register_rtx): ...this.
18271 (sparc_got): Adjust to above renaming.
18272 (sparc_tls_got): Likewise.
18273 (sparc_delegitimize_address): Likewise.
18274 (sparc_output_mi_thunk): Likewise.
18275 (sparc_init_pic_reg): Likewise.
18276 (save_local_or_in_reg_p): Fix test on the GOT register.
18277 (USE_HIDDEN_LINKONCE): Move around.
18278 (get_pc_thunk_name): Likewise.
18279 (gen_load_pcrel_sym): Likewise.
18280 (load_got_register): Likewise.
18282 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
18284 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
18285 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
18287 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
18289 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
18290 into consideration.
18292 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
18294 * config.gcc (with_nds32_lib, glibc):
18295 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
18296 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
18297 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
18299 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
18302 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
18303 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
18304 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
18305 (*rcpsf2_sse): Ditto.
18306 (*rsqrtsf2_sse): Ditto.
18307 (sse4_1_round<mode<2): Ditto.
18309 2019-02-03 Richard Biener <rguenther@suse.de>
18312 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
18315 2019-02-02 Jakub Jelinek <jakub@redhat.com>
18317 PR middle-end/87887
18318 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18319 Punt with warning on aggregate return or argument types. Ignore
18320 type/mode checking for uniform arguments.
18322 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
18324 * combine.c (try_combine): Do not print "Can't combine" messages unless
18325 printing failed combination attempts.
18327 2019-02-01 Martin Jambor <mjambor@suse.cz>
18330 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
18331 segment and global segment variables before making them static.
18333 2019-02-01 Martin Jambor <mjambor@suse.cz>
18335 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
18336 missed optimization dump with dump_enabled_p.
18338 2019-02-01 Richard Biener <rguenther@suse.de>
18340 PR middle-end/88597
18341 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
18342 the instantiate cache.
18343 (instantiate_scev_binary): Elide second operand procesing
18344 if equal to the first.
18345 * tree-chrec.c (chrec_contains_symbols): Add visited set.
18346 (chrec_contains_undetermined): Likewise.
18347 (tree_contains_chrecs): Likewise.
18349 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
18351 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
18353 2019-02-01 Jakub Jelinek <jakub@redhat.com>
18355 PR tree-optimization/89143
18356 * wide-int-range.h (wide_int_range_absu): Declare.
18357 * wide-int-range.cc (wide_int_range_absu): New function.
18358 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
18360 PR tree-optimization/88107
18361 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
18362 instead of assertion that eh_region_outermost is non-NULL, if it
18363 is NULL, set *ALL to true and return NULL.
18364 (move_sese_region_to_fn): Adjust caller, if all is set, call
18365 duplicate_eh_regions with NULL region.
18367 2019-02-01 Richard Biener <rguenth@suse.de>
18369 PR rtl-optimization/88593
18370 * mode-switching.c (optimize_mode_switching): Free dominators before
18371 calling cleanup_cfg.
18373 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
18375 PR tree-optimization/88932
18376 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
18378 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18380 PR middle-end/89137
18381 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
18382 bogus clang warning.
18384 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
18387 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
18388 alternative to avoid partial SSE register stall for TARGET_AVX.
18389 (truncdfsf2): Ditto.
18390 (sse4_1_round<mode>2): Ditto.
18392 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
18394 PR tree-optimization/89008
18395 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
18396 process anything of the form X * 0.
18398 2019-01-31 Richard Biener <rguenther@suse.de>
18400 PR tree-optimization/89135
18401 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
18402 with abnormal preds.
18404 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18407 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
18408 always_inline callees into no_sanitize_address callers.
18410 2019-01-31 Richard Biener <rguenther@suse.de>
18412 PR rtl-optimization/89115
18413 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
18415 2019-01-30 Martin Sebor <msebor@redhat.com>
18418 * doc/extend.texi (cast to a union): Correct and expand.
18420 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
18422 PR rtl-optimization/87246
18423 * lra-constraints.c (simplify_operand_subreg): Reload memory
18424 in subreg if the address became invalid.
18426 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
18429 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
18430 Disable for little-endian.
18432 2019-01-30 Richard Biener <rguenther@suse.de>
18434 PR rtl-optimization/89115
18435 * opts.c (default_options_optimization): Reduce
18436 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
18437 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
18440 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18442 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
18443 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
18444 type of vector element when vec_extract is implemented by direct
18447 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
18449 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
18451 2019-01-30 Richard Biener <rguenther@suse.de>
18453 PR tree-optimization/89111
18454 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
18455 canonicalization to appropriately sized access types.
18457 2019-01-30 Jakub Jelinek <jakub@redhat.com>
18460 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
18461 for arguments to functions that are TU-local and shouldn't be
18462 referenced by assembly.
18464 2019-01-30 Ulrich Drepper <drepper@redhat.com>
18466 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
18469 2019-01-29 Martin Sebor <msebor@redhat.com>
18472 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
18474 2019-01-29 Jakub Jelinek <jakub@redhat.com>
18478 * omp-simd-clone.c (simd_clone_clauses_extract)
18479 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
18480 OMP_CLAUSE_ALIGNED_ALIGNMENT.
18482 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
18484 * config.gcc: Force .init_array for ARC.
18486 2019-01-29 Richard Biener <rguenther@suse.de>
18489 * dwarf2out.c (collect_skeleton_dies): New helper.
18490 (copy_decls_for_unworthy_types): Call it.
18491 (build_abbrev_table): Assert we do not try to replace
18492 DW_AT_signature refs with local refs.
18494 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18496 PR middle-end/89002
18497 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
18498 for lastprivate/linear IV, push gimplify context around gimplify_assign
18499 and, if it needed any temporaries, pop it into a gimple bind around the
18502 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18504 * common.opt (-Wattribute-alias): Remove "no-" from name.
18505 Make -Wattribute-alias command line option and
18506 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
18508 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18511 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
18512 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
18514 (bmi2): Add missing @opindex.
18515 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
18516 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
18517 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
18518 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
18519 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
18520 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
18521 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
18522 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
18523 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
18524 xsavec, xsaveopt and xsaves options.
18526 2019-01-28 Richard Biener <rguenther@suse.de>
18529 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
18532 2019-01-28 Richard Biener <rguenther@suse.de>
18534 PR tree-optimization/88739
18535 * tree-cfg.c (verify_types_in_gimple_reference): Verify
18536 BIT_FIELD_REFs only are applied to mode-precision operands
18537 when they are integral.
18538 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
18539 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
18540 BIT_FIELD_REFs of non-mode-precision integral operands.
18542 2019-01-27 Jakub Jelinek <jakub@redhat.com>
18545 * config/i386/sse.md
18546 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
18547 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
18548 first constants in pairs are multiples of 2. Formatting fixes.
18549 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
18550 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
18551 first constants in each quadruple are multiples of 4. Formatting fixes.
18553 2019-01-26 Martin Jambor <mjambor@suse.cz>
18556 * tree-inline.c: Include tree-cfgcleanup.h.
18557 (delete_unreachable_blocks_update_callgraph): Move...
18558 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
18559 ...here, make externally visible, make second argument bool, adjust
18561 * tree-cfgcleanup.c: Include cgraph.h.
18562 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
18564 * ipa-prop.c: Include tree-cfgcleanup.h.
18565 (ipcp_transform_function): Call
18566 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
18568 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
18570 PR rtl-optimization/88846
18571 * ira.c (process_set_for_memref_referenced_p): New.
18572 (memref_referenced_p): Add new param. Use
18573 process_set_for_memref_referenced_p. Add new switch cases.
18574 (memref_used_between_p): Pass new arg to memref_referenced_p.
18576 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
18579 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
18580 argument ABI_BREAK. Set to true if the calculated alignment has
18581 changed in gcc-9. Check bit-fields for their base type alignment.
18582 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
18583 (aarch64_function_arg_boundary): Likewise.
18584 (aarch64_gimplify_va_arg_expr): Likewise.
18586 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18588 PR middle-end/89037
18589 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
18590 instead of accessing TREE_INT_CST_ELT directly.
18592 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
18594 * doc/sourcebuild.texi (Environment attributes): Add fenv and
18595 fenv_exceptions description.
18597 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
18599 PR rtl-optimization/87763
18600 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
18601 Allow SUBREG when matching CC_NZmode compare.
18603 2019-01-25 Richard Biener <rguenther@suse.de>
18605 PR tree-optimization/89049
18606 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
18607 Look at the pattern stmt to determine if the stmt is vectorized.
18609 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18611 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
18612 (pred_mov<mode>): Handle all-register forms using both a new
18613 alternative and a split.
18615 2019-01-25 Richard Biener <rguenther@suse.de>
18617 PR tree-optimization/86865
18618 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18619 Reject non-do-while loops.
18621 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
18623 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
18624 * config/rs6000/constraints.md (Q constraint): Use REG_P.
18625 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
18626 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18627 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
18628 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18629 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
18630 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
18631 vlogical_operand, gpc_reg_operand, int_reg_operand,
18632 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
18633 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
18634 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
18635 (save_world_operation, restore_world_operation, lmw_operation,
18636 stmw_operation): Use MEM_P and REG_P.
18637 (tie_operand): Use MEM_P.
18638 (vrsave_operation, crsave_operation): Use REG_P.
18639 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
18640 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
18641 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
18642 (call_operand): Use HARD_REGISTER_P.
18643 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
18645 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
18646 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
18647 quad_aligned_load_p, replace_swapped_aligned_store,
18648 recombine_lvx_pattern, replace_swapped_aligned_load,
18649 recombine_stvx_pattern): Use MEM_P.
18650 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
18651 Use MEM_P and SYMBOL_REF_P.
18652 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
18653 (insn_is_swappable_p): Use REG_P and MEM_P.
18654 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
18655 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
18657 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
18658 Use CONST_DOUBLE_P.
18659 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
18661 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
18662 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
18663 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
18664 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
18666 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18667 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
18668 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
18669 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
18670 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
18671 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
18672 rs6000_split_logical_di): Use CONST_INT_P.
18673 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
18674 REG_P and SYMBOL_REF_P.
18675 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
18676 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
18677 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
18678 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
18679 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
18680 (small_data_operand, print_operand_address): Use CONST_INT_P and
18682 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
18683 (rs6000_init_hard_regno_mode_ok, direct_move_p):
18684 Use HARD_REGISTER_NUM_P.
18685 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
18686 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
18687 SUBREG_P and SYMBOL_REF_P.
18688 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
18689 and HARD_REGISTER_NUM_P.
18690 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
18692 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
18693 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
18695 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
18696 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
18697 find_addr_reg): Use REG_P.
18698 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
18699 (rs6000_emit_le_vsx_move): Use SUBREG_P.
18700 (offsettable_ok_by_alignment, constant_pool_expr_p,
18701 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
18702 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
18703 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
18704 rs6000_assemble_integer, create_TOC_reference,
18705 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
18706 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
18707 (rs6000_split_vec_extract_var): Use reg_or_subregno.
18708 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18709 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18710 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18711 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18712 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
18713 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
18714 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
18715 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
18716 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
18717 and cbranch<mode>4): Use CONST_INT_P.
18718 (multiple define_splits): Use REG_P and SUBREG_P.
18719 (define_expands call, call_value): Use MEM_P.
18720 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
18721 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
18722 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
18723 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
18724 and HARD_REGISTER_NUM_P.
18725 (multiple define_splits): Use HARD_REGISTER_NUM_P.
18727 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
18729 PR rtl-optimization/88948
18730 * rtl.h (prepare_copy_insn): New prototype.
18731 * gcse.c (prepare_copy_insn): New function, split out from
18732 process_insert_insn.
18733 (process_insert_insn): Use prepare_copy_insn.
18734 * store-motion.c (replace_store_insn): Use prepare_copy_insn
18735 instead of gen_move_insn.
18737 2019-01-24 Jakub Jelinek <jakub@redhat.com>
18740 * config/i386/i386.c (ix86_pic_register_p): Return true for
18741 UNSPEC_SET_GOT too.
18743 PR tree-optimization/88964
18744 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
18745 punt if HONOR_SNANS (chrec).
18747 PR middle-end/89015
18748 * tree-nested.c (convert_nonlocal_reference_stmt,
18749 convert_local_reference_stmt, convert_tramp_reference_stmt,
18750 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
18751 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
18752 or GIMPLE_OMP_TASK.
18754 PR tree-optimization/89027
18755 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
18756 for "omp simd array" variables.
18758 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
18761 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
18762 force the alignment of m_val.
18764 2019-01-24 Richard Biener <rguenther@suse.de>
18767 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
18768 When in "legacy" debug mode make sure to reset self-origins.
18770 2019-01-24 Martin Liska <mliska@suse.cz>
18772 PR gcov-profile/88994
18773 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
18774 result will be always smaller or equal to the original.
18775 * gcov.c (mangle_name): Fix else branch where we should
18776 also copy to PTR and shift the pointer.
18778 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
18780 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
18781 * vr-values.c (find_case_label_ranges): Fix a comment typo.
18783 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
18785 * common/config/i386/i386-common.c
18786 (OPTION_MASK_ISA_ENQCMD_SET,
18787 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
18788 (ix86_handle_option): Handle -menqcmd.
18789 * config.gcc (enqcmdintrin.h): New header file.
18790 * config/i386/cpuid.h (bit_ENQCMD): New bit.
18791 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18793 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
18795 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
18796 __builtin_ia32_enqcmds): New builtins.
18797 * config/i386/i386-c.c (__ENQCMD__): New macro.
18798 * config/i386/i386-option.c (ix86_target_string): Add
18800 (ix86_valid_target_attribute_inner_p): Likewise.
18801 * config/i386/i386-expand.c
18802 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
18803 IX86_BUILTIN_ENQCMDS.
18804 * config/i386/i386.h (TARGET_ENQCMD): New.
18805 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
18806 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
18807 (movdir64b_<mode>): Parameterize to enable share expansion code
18808 with ENQCMD in function ix86_expand_builtin.
18809 * config/i386/i386.opt: Add -menqcmd.
18810 * config/i386/immintrin.h: Include enqcmdintrin.h.
18811 * config/i386/enqcmdintrin.h: New intrinsic file.
18812 * doc/invoke.texi: Add -menqcmd.
18814 2019-01-23 Bin Cheng <bin.cheng@arm.com>
18815 Steve Ellcey <sellcey@marvell.com>
18818 * recog.c (address_operand): Return false on wrong mode for address.
18819 (constrain_operands): Check for mode with 'p' constraint.
18821 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
18824 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
18825 Disparage MMX alternative.
18826 (sse2_cvtpd2pi): Ditto.
18827 (sse2_cvttpd2pi): Ditto.
18829 2019-01-23 David Malcolm <dmalcolm@redhat.com>
18832 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
18833 use-after-free of the result of
18834 aarch64_get_extension_string_for_isa_flags.
18836 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18839 * doc/extend.texi: Document break and continue behavior in
18840 statement expressions.
18842 2019-01-23 Richard Biener <rguenther@suse.de>
18844 PR tree-optimization/89008
18845 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
18846 not leave another stray operand.
18848 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18850 * BASE-VER: Bump to 9.0.1.
18852 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
18854 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
18855 thunk that returns by reference, use the type of the return object
18856 of the thunk instead of that of the alias to build the dereference.
18858 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
18860 * config/arc/atomic.md: Add operand to DMB instruction.
18862 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18864 PR tree-optimization/88964
18865 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
18866 build_zero_cst instead of build_int_cst. Return false for loop
18867 invariants which honor signed zeros.
18869 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
18871 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
18873 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18876 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
18877 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
18878 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
18880 PR middle-end/88968
18881 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
18882 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
18885 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
18886 Disable for little endian.
18888 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18891 * config/arm/arm.c (arm_needs_double_word_align): Check
18892 DECL_BIT_FIELD_TYPE.
18894 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
18895 H.J. Lu <hongjiu.lu@intel.com>
18898 * config/i386/i386-builtin.def: Add mask2 to all builtin
18899 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
18901 * config/i386/i386.c (BDESC): Add mask2 to the definition.
18902 (BDESC_FIRST): Likewise.
18903 (define_builtin): Add an argument for mask2. Updated to handle
18904 both ix86_isa_flags and ix86_isa_flags2.
18905 (define_builtin_const): Likewise.
18906 (define_builtin_pure): Likewise.
18907 (define_builtin2): Deleted.
18908 (define_builtin_const2): Likewise.
18909 (builtin_description): Add a member, mask2.
18910 (bdesc_*): Add mask2 to builtin initializations.
18911 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
18912 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
18914 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
18916 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
18919 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
18922 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18925 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
18926 alignment is dominated by a bitfield with 64-bit aligned base type.
18927 (arm_function_arg): Emit a warning if the alignment has changed since
18928 earlier GCC releases.
18929 (arm_function_arg_boundary): Likewise.
18930 (arm_setup_incoming_varargs): Likewise.
18932 2019-01-22 Richard Biener <rguenther@suse.de>
18934 PR tree-optimization/88862
18935 * graphite-scop-detection.c
18936 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
18938 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
18940 * doc/extend.tex (AMD GCN Function Attributes): New section.
18941 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
18942 * doc/invoke.texi (AMD GCN Options): New section.
18943 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
18945 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
18947 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
18948 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
18950 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18952 PR tree-optimization/88044
18953 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
18954 is false in the first iteration, but !every_iteration, return false
18955 instead of true with niter->niter zero.
18957 PR rtl-optimization/88904
18958 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
18959 any nonequal registers before processing BB_END (b).
18962 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
18964 (expand_binop_directly, expand_doubleword_clz,
18965 expand_doubleword_popcount, expand_ctz, expand_ffs,
18966 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
18968 PR rtl-optimization/49429
18970 PR rtl-optimization/86334
18972 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
18973 addressable from here...
18974 (emit_block_op_via_libcall): ... to here.
18976 2019-01-22 Richard Biener <rguenther@suse.de>
18978 * tree-vect-loop.c (vect_analyze_loop_operations): Use
18979 auto_vec for cost vector to fix memleak.
18980 (vectorize_fold_left_reduction): Properly gather SLP defs.
18981 (vectorizable_comparison): Do not swap operands to properly
18984 2019-01-22 Alan Modra <amodra@gmail.com>
18987 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
18988 stays a reg. Allow a const_int.
18989 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
18990 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
18991 (IS_NOMARK_TLSGETADDR): Define.
18992 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
18993 (rs6000_output_tlsargs): New function.
18994 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
18995 __tls_get_addr call takes an arg.
18996 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
18997 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
18999 (call_value_nonlocal_sysv): ..or here, delete split.
19000 (tls_gdld_nomark): Delete.
19001 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
19002 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
19003 (call_value_nonlocal_sysv): Likewise.
19004 (call_value_nonlocal_sysv_secure): Likewise.
19005 (call_value_nonlocal_aix): Likewise.
19006 (call_value_indirect_aix): Likewise.
19007 (call_value_indirect_elfv2): Likewise.
19008 (call_value_local32, call_value_local64): Disable for no-mark tls.
19009 (call_value_local_aix): Likewise.
19011 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
19014 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
19015 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
19017 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
19019 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
19020 string contents as hash_map keys.
19022 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
19025 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
19026 for rvalue context. Handle rvalues correctly. Use min_align_of_type
19027 instead of TYPE_ALIGN.
19028 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
19029 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
19030 pointer from TYPE_STUB_DECL.
19032 2019-01-21 Richard Biener <rguenther@suse.de>
19034 PR tree-optimization/88934
19035 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
19036 at the possibly non-constant operand.
19037 (vect_get_constant_vectors): Adjust.
19039 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
19042 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
19043 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
19044 instead of _X86INTRIN_H_INCLUDED.
19045 * onfig/i386/clwbintrin.h: Likewise.
19046 * config/i386/pkuintrin.h: Likewise.
19047 * config/i386/prfchwintrin.h: Likewise.
19048 * config/i386/rdseedintrin.h: Likewise.
19049 * config/i386/wbnoinvdintrin.h: Likewise.
19050 * config/i386/xsavecintrin.h: Likewise.
19051 * config/i386/xsavesintrin.h: Likewise.
19052 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
19053 * config/i386/xsaveintrin.h: Likewise.
19054 * config/i386/xsaveoptintrin.h: Likewise.
19055 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
19056 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
19057 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
19058 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
19059 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
19060 * config/i386/immintrin.h: Here.
19062 2019-01-20 Martin Jambor <mjambor@suse.cz>
19065 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
19066 with aa_walk_budget.
19067 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
19068 aa_walk_budget_p parameter.
19069 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
19070 walk. Updated all callers.
19071 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
19072 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
19074 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
19075 parameter info. Extract info from fbi. Pass fbi to recursive calls
19076 and to unmodified_parm.
19077 (phi_result_unknown_predicate): New parameter fbi, removed parameter
19078 info, updated call to will_be_nonconstant_expr_predicate.
19079 (param_change_prob): New parameter fbi, limit AA walking.
19080 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
19081 calls to various above functions.
19082 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
19083 parameter. Use it to limit AA walking.
19084 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
19085 fbi, limit AA walk.
19086 (detect_type_change): New parameter fbi, pass it on to
19087 detect_type_change_from_memory_writes.
19088 (detect_type_change_ssa): Likewise.
19089 (aa_overwalked): Removed.
19090 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
19091 accordingly, adjust to the neew AA limiting scheme.
19092 (parm_ref_data_preserved_p): Likewise.
19093 (ipa_compute_jump_functions_for_edge): Adjust call to
19095 (ipa_analyze_call_uses): Likewise.
19096 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
19097 (ipa_analyze_node): Initialize aa_walk_budget.
19098 (ipcp_transform_function): Likewise.
19099 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
19100 to get_dynamic_type.
19102 2019-01-19 Jakub Jelinek <jakub@redhat.com>
19104 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
19105 outside of #if CHECKING_P code.
19107 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
19109 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
19110 New function, split out from...
19111 (loop_versioning::analyze_stride): ...here.
19112 (loop_versioning::find_per_loop_multiplication): Use gassign.
19113 (loop_versioning::analyze_term_using_scevs): Return a success code.
19114 (loop_versioning::analyze_arbitrary_term): New function.
19115 (loop_versioning::analyze_address_fragment): Use
19116 analyze_arbitrary_term if all else fails.
19118 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
19121 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
19124 2019-01-18 Richard Biener <rguenther@suse.de>
19126 PR tree-optimization/88903
19127 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
19128 scalar stmts a SLP shift amount is composed of when detecting
19131 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
19134 * config/arm/arm-cpus.in (mp): New feature.
19135 (sec): New feature.
19136 (fgroup ARMv7ve): Add mp and sec features.
19137 (arch armv7-a): Add options to allow mp and sec extensions.
19138 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
19139 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
19140 extenstions to the base architecture.
19141 (cpu cortex-a8): Add sec extension to the base architecture.
19142 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
19143 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
19144 variants down to the base v7-a varaint.
19145 * config/arm/t-multilib (v7_a_arch_variants): New variable.
19146 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
19147 of permitted extensions for -march=armv7-a and for
19148 -mcpu=generic-armv7-a.
19150 2019-01-18 Martin Liska <mliska@suse.cz>
19152 * params.def: Fix comment.
19153 * tree-profile.c (gimple_init_gcov_profiler): Bump function
19155 (gimple_gen_ic_func_profiler): Likewise.
19157 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19159 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
19160 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
19161 and put in error checks for stack protector guard options.
19162 (aarch64_stack_protect_guard): New.
19163 (TARGET_STACK_PROTECT_GUARD): Define.
19164 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
19165 (reg_stack_protect_address<mode>): New.
19166 (stack_protect_set): Adjust for SSP_GLOBAL.
19167 (stack_protect_test): Likewise.
19168 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
19169 (-mstack-protector-guard): Likewise.
19170 (-mstack-protector-guard-offset): Likewise.
19172 2019-01-18 Jakub Jelinek <jakub@redhat.com>
19174 PR tree-optimization/86214
19175 * tree-inline.h (struct copy_body_data): Add
19176 add_clobbers_to_eh_landing_pads member.
19177 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
19178 (copy_edges_for_bb): Call it if EH edge destination is <
19179 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
19180 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
19181 if flag_stack_reuse != SR_NONE and clear it afterwards.
19183 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
19186 * doc/install.texi (with-multilib-list): Document for aarch64.
19188 2019-01-18 Jakub Jelinek <jakub@redhat.com>
19191 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
19192 (("..."))) with ("...").
19194 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
19196 * doc/extend.texi (Built-in Functions for Memory Model Aware
19197 Atomic Operations): Document atomic fetch and nand.
19199 2019-01-18 Martin Liska <mliska@suse.cz>
19200 Richard Biener <rguenther@suse.de>
19202 PR middle-end/88587
19203 * cgraph.h (create_version_clone_with_body): Add new argument
19205 * cgraphclones.c (cgraph_node::create_version_clone): Add
19206 DECL_ATTRIBUTES to a newly created decl. And call
19207 valid_attribute_p so that proper cl_target_optimization_node
19208 is set for the newly created declaration.
19209 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
19211 (expand_target_clones): Do not call valid_attribute_p, it must
19213 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
19216 2019-01-17 Jakub Jelinek <jakub@redhat.com>
19219 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
19220 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
19221 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
19223 2019-01-17 Martin Sebor <msebor@redhat.com>
19225 PR middle-end/88273
19226 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
19227 Handle anti-ranges the same as no range at all.
19229 2018-01-17 Steve Ellcey <sellcey@cavium.com>
19231 * config/aarch64/aarch64.c (cgraph.h): New include.
19232 (intl.h): New include.
19233 (supported_simd_type): New function.
19234 (currently_supported_simd_type): Ditto.
19235 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
19236 (aarch64_simd_clone_adjust): Ditto.
19237 (aarch64_simd_clone_usable): Ditto.
19238 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
19239 (TARGET_SIMD_CLONE_ADJUST): Ditto.
19240 (TARGET_SIMD_CLONE_USABLE): Ditto.
19241 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
19242 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
19245 2019-01-17 Martin Sebor <msebor@redhat.com>
19247 PR tree-optimization/88800
19248 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
19249 NO_WARNING bit here. Avoid folding out-of-bounds calls.
19250 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
19251 redundant argument. Add new argument and issue diagnostics under
19252 its control. Detect out-of-bounds access even with warnings
19254 (check_bounds_or_overlap): Change return type. Add argument.
19255 (wrestrict_dom_walker::check_call): Adjust.
19256 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
19257 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
19258 check_bounds_or_overlap's return value.
19259 (handle_builtin_stxncpy): Same.
19260 (handle_builtin_strcat): Same.
19262 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19263 Kwok Cheung Yeung <kcy@codesourcery.com>
19264 Julian Brown <julian@codesourcery.com>
19265 Tom de Vries <tom@codesourcery.com>
19267 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
19269 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19271 * doc/sourcebuild.texi: Document dg-require-effective-target
19272 llvm_binutils and offload_gcn.
19274 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19275 Kwok Cheung Yeung <kcy@codesourcery.com>
19276 Julian Brown <julian@codesourcery.com>
19277 Tom de Vries <tom@codesourcery.com>
19279 * doc/sourcebuild.texi: Document dg-required-effective-target
19282 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19283 Kwok Cheung Yeung <kcy@codesourcery.com>
19284 Julian Brown <julian@codesourcery.com>
19285 Tom de Vries <tom@codesourcery.com>
19286 Jan Hubicka <hubicka@ucw.cz>
19287 Martin Jambor <mjambor@suse.cz>
19289 * config.gcc: Add amdgcn*-*-amdhsa configuration.
19290 * configure.ac: Check for dlopen.
19291 * configure: Regenerate.
19293 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19294 Kwok Cheung Yeung <kcy@codesourcery.com>
19295 Julian Brown <julian@codesourcery.com>
19296 Tom de Vries <tom@codesourcery.com>
19297 Jan Hubicka <hubicka@ucw.cz>
19298 Martin Jambor <mjambor@suse.cz>
19300 * common/config/gcn/gcn-common.c: New file.
19301 * config/gcn/driver-gcn.c: New file.
19302 * config/gcn/gcn-builtins.def: New file.
19303 * config/gcn/gcn-hsa.h: New file.
19304 * config/gcn/gcn-modes.def: New file.
19305 * config/gcn/gcn-opts.h: New file.
19306 * config/gcn/gcn-passes.def: New file.
19307 * config/gcn/gcn-protos.h: New file.
19308 * config/gcn/gcn-run.c: New file.
19309 * config/gcn/gcn-tree.c: New file.
19310 * config/gcn/gcn.c: New file.
19311 * config/gcn/gcn.h: New file.
19312 * config/gcn/gcn.opt: New file.
19313 * config/gcn/t-gcn-hsa: New file.
19315 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19316 Kwok Cheung Yeung <kcy@codesourcery.com>
19317 Julian Brown <julian@codesourcery.com>
19318 Tom de Vries <tom@codesourcery.com>
19319 Jan Hubicka <hubicka@ucw.cz>
19320 Martin Jambor <mjambor@suse.cz>
19322 * config/gcn/constraints.md: New file.
19323 * config/gcn/gcn-valu.md: New file.
19324 * config/gcn/gcn.md: New file.
19325 * config/gcn/predicates.md: New file.
19327 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
19329 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
19330 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
19331 (stmt_uses_0_or_null_in_undefined_way): Likewise.
19332 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
19334 2019-01-17 Tamar Christina <tamar.christina@arm.com>
19337 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
19338 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
19339 it and document registers.
19341 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19343 * config/aarch64/aarch64.c (ares_tunings): Define.
19344 * config/aarch64/aarch64-cores.def (ares): Use the above.
19346 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19350 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
19352 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
19353 (_mm512_fixupimm_round_pd): Update parameters and builtin.
19354 (_mm512_maskz_fixupimm_round_pd): Ditto.
19355 (_mm512_fixupimm_round_ps): Ditto.
19356 (_mm512_maskz_fixupimm_round_ps): Ditto.
19357 (_mm_fixupimm_round_sd): Ditto.
19358 (_mm_maskz_fixupimm_round_sd): Ditto.
19359 (_mm_fixupimm_round_ss): Ditto.
19360 (_mm_maskz_fixupimm_round_ss): Ditto.
19361 (_mm512_fixupimm_pd): Ditto.
19362 (_mm512_maskz_fixupimm_pd): Ditto.
19363 (_mm512_fixupimm_ps): Ditto.
19364 (_mm512_maskz_fixupimm_ps): Ditto.
19365 (_mm_fixupimm_sd): Ditto.
19366 (_mm_maskz_fixupimm_sd): Ditto.
19367 (_mm_fixupimm_ss): Ditto.
19368 (_mm_maskz_fixupimm_ss): Ditto.
19369 (_mm512_mask_fixupimm_round_pd): Update builtin.
19370 (_mm512_mask_fixupimm_round_ps): Ditto.
19371 (_mm_mask_fixupimm_round_sd): Ditto.
19372 (_mm_mask_fixupimm_round_ss): Ditto.
19373 (_mm512_mask_fixupimm_pd): Ditto.
19374 (_mm512_mask_fixupimm_ps): Ditto.
19375 (_mm_mask_fixupimm_sd): Ditto.
19376 (_mm_mask_fixupimm_ss): Ditto.
19377 * config/i386/avx512vlintrin.h:
19378 (_mm256_fixupimm_pd): Update parameters and builtin.
19379 (_mm256_maskz_fixupimm_pd): Ditto.
19380 (_mm256_fixupimm_ps): Ditto.
19381 (_mm256_maskz_fixupimm_ps): Ditto.
19382 (_mm_fixupimm_pd): Ditto.
19383 (_mm_maskz_fixupimm_pd): Ditto.
19384 (_mm_fixupimm_ps): Ditto.
19385 (_mm_maskz_fixupimm_ps): Ditto.
19386 (_mm256_mask_fixupimm_pd): Update builtin.
19387 (_mm256_mask_fixupimm_ps): Ditto.
19388 (_mm_mask_fixupimm_pd): Ditto.
19389 (_mm_mask_fixupimm_ps): Ditto.
19390 * config/i386/i386-builtin-types.def: Add new types and remove
19392 * config/i386/i386-builtin.def: Update builtin definitions.
19393 * config/i386/i386.c: Handle new builtin types and remove useless ones.
19394 * config/i386/sse.md: Update VFIXUPIMM* patterns.
19395 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19396 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19397 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
19398 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19399 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19400 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
19401 * config/i386/subst.md:
19402 (round_saeonly_sd_mask_operand4): Add new subst_attr.
19403 (round_saeonly_sd_mask_op4): Ditto.
19404 (round_saeonly_expand_operand5): Ditto.
19405 (round_saeonly_expand): Update.
19407 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19411 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
19413 * config/i386/sse.md: Combine VFIXUPIMM* patterns
19414 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19415 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19416 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
19417 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19418 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19419 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
19421 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19425 2018-12-15 Jakub Jelinek <jakub@redhat.com>
19428 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
19429 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
19430 instead of UNSPEC_FIXUPIMM.
19432 2019-01-17 Richard Biener <rguenther@suse.de>
19435 * dwarf2out.c (want_pubnames): Never generate pubnames sections
19436 and friends for the LTO part of debug info.
19438 2019-01-17 Jakub Jelinek <jakub@redhat.com>
19440 PR tree-optimization/86214
19441 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
19444 PR rtl-optimization/88870
19445 * dce.c (deletable_insn_p): Never delete const/pure calls that can
19446 throw if we can't alter the cfg or delete dead exceptions.
19447 (mark_insn): Don't call find_call_stack_args for such calls.
19449 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
19451 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
19452 prototypes for vec_st.
19453 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
19454 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
19455 mainly on signed/unsigned long long and double.
19457 2019-01-16 David Malcolm <dmalcolm@redhat.com>
19460 * combine.c (delete_noop_moves): Convert to "bool" return,
19461 returning true if any edges are eliminated.
19462 (combine_instructions): Also return true if delete_noop_moves
19465 2019-01-16 Tamar Christina <tamar.christina@arm.com>
19467 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
19468 correct max nunits for endian swap.
19469 (aarch64_expand_fcmla_builtin): Correct subreg code.
19470 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19471 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
19474 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
19476 * config/alpha/alpha.c (alpha_gimplify_va_arg):
19477 Handle split indirect COMPLEX_TYPE arguments.
19479 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
19482 * config/aarch64/aarch64-modes.def: Add comment about how the carry
19483 bit is set by add and compare.
19484 (CC_ADC): New CC_MODE.
19485 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
19486 to cache the code and mode of X. Adjust the shape of a CC_Cmode
19487 comparison. Add detection for CC_ADCmode.
19488 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
19490 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
19491 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
19492 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
19493 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
19494 to eliminate the need for zero-extending the operands.
19495 (add<mode>3_compareC_imm): Delete. Merge into ...
19496 (add<mode>3_compareC): ... this. Restructure the comparison to
19497 eliminate the need for zero-extending the operands.
19498 (add<mode>3_carryin): Use LTU for the overflow detection.
19499 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
19500 Reexpress comparison for overflow.
19501 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
19502 (add<mode>3_carryinC): Likewise.
19503 (add<mode>3_carryinV): Use LTU for carry between partials.
19504 * config/aarch64/predicates.md (aarch64_carry_operation): Update
19505 handling of CC_Cmode and add CC_ADCmode.
19506 (aarch64_borrow_operation): Likewise.
19508 2019-01-16 Tamar Christina <tamar.christina@arm.com>
19510 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
19511 Remove patternmode.
19512 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
19513 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19514 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
19515 Remove endianness conversion.
19517 2019-01-16 Martin Liska <mliska@suse.cz>
19519 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
19521 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
19523 * gcc.c (add_sysrooted_hdrs_prefix): New function.
19524 (path_prefix_reset): Move up in the source file.
19525 (find_fortran_preinclude_file): Make complex search for the
19526 fortran header files.
19528 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
19530 * godump.c (go_output_typedef): When outputting a typedef, refer
19531 to the underlying type by its name and not its structure.
19533 2019-01-15 David Malcolm <dmalcolm@redhat.com>
19536 * tree.c (build_function_type): Assert that arg_types is not
19539 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
19541 PR inline-asm/52813
19542 * doc/extend.texi: Document that listing the stack pointer in the
19543 clobber list of an asm is a deprecated feature.
19544 * common.opt (Wdeprecated): Moved from c-family/c.opt.
19545 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
19546 warning instead of an error for clobbers of the stack pointer.
19547 Add a note explaining why.
19549 2019-01-15 Richard Biener <rguenther@suse.de>
19552 * dwarf2out.c (gen_member_die): Do not generate inheritance
19555 2019-01-15 Richard Biener <rguenther@suse.de>
19557 PR tree-optimization/88855
19558 * tree-if-conv.c (combine_blocks): Collect
19559 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
19561 2019-01-15 Tom de Vries <tdevries@suse.de>
19564 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
19565 lhs == NULL_TREE for gang-level reduction.
19567 2019-01-15 Richard Biener <rguenther@suse.de>
19568 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19571 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
19572 return true if SSA_NAME is already marked in visited bitmap.
19573 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
19575 2019-01-15 Jakub Jelinek <jakub@redhat.com>
19577 PR tree-optimization/88775
19578 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
19579 equal == 0 equality pointer comparisons some more if compared in
19580 integral types and either one points to an automatic var and the
19581 other to a global, or we can prove at least one points to the middle
19582 or both point to start or both point to end.
19584 2019-01-14 Andi Kleen <ak@linux.intel.com>
19586 * Makefile.in: Lower autofdo sampling rate by 10x.
19587 * Makefile.tpl: Dito.
19589 2019-01-14 Tom Honermann <tom@honermann.net>
19591 * defaults.h: Define CHAR8_TYPE.
19593 2019-01-14 Martin Sebor <msebor@redhat.com>
19596 * doc/extend.texi (Darwin Format Checks): Clarify.
19598 2019-01-14 Richard Biener <rguenther@suse.de>
19600 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
19601 whether we are in (simplify ...) or (match ...) context.
19603 2019-01-14 Jakub Jelinek <jakub@redhat.com>
19605 PR rtl-optimization/88796
19606 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
19607 * cfgexpand.c (stack_protect_prologue): Initialize
19608 crtl->stack_protect_guard_decl.
19609 * function.c (stack_protect_epilogue): Use it instead of calling
19610 targetm.stack_protect_guard again.
19611 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
19612 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
19613 crtl->stack_protect_guard_decl.
19614 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
19615 on the returned MEM_EXPR.
19617 2019-01-12 Tom de Vries <tdevries@suse.de>
19619 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
19620 vector length using -fopenacc-dim.
19622 2019-01-12 Tom de Vries <tdevries@suse.de>
19624 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
19625 lengths into account.
19627 2019-01-12 Svante Signell <svante.signell@gmail.com>
19629 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
19630 (TARGET_CAN_SPLIT_STACK): Define.
19631 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
19633 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19635 * params.def (inline-unit-growth): Set to 40.
19637 2019-01-12 Jakub Jelinek <jakub@redhat.com>
19639 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
19641 2019-01-12 Tom de Vries <tdevries@suse.de>
19643 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
19644 region calling vector-partitionable routine, set default_vector_length
19647 2019-01-12 Tom de Vries <tdevries@suse.de>
19649 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
19650 variable default_vector_length.
19652 2019-01-12 Tom de Vries <tdevries@suse.de>
19654 PR middle-end/88703
19655 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
19656 from oacc_default_dims, as oacc_validate_dims would do it, and apply
19659 2019-01-12 Tom de Vries <tdevries@suse.de>
19661 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
19662 (nvptx_goacc_validate_dims): Add used parameter.
19663 * doc/tm.texi: Regenerate.
19664 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
19665 argument to call to targetm.goacc.validate_dims.
19666 (default_goacc_validate_dims): Add used
19668 * target.def (validate_dims): Add used parameter in DEFHOOK.
19669 * targhooks.h (default_goacc_validate_dims): Add used parameter.
19671 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19673 PR middle-end/85956
19675 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
19677 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
19678 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
19679 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
19680 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
19682 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
19684 PR rtl-optimization/87305
19686 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
19687 for little endian pseudos used as paradoxical subreg.
19689 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19691 PR tree-optimization/88693
19692 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
19693 for STRING_CSTs that don't contain any NUL characters in the first
19694 TREE_STRING_LENGTH bytes.
19696 2019-01-11 Alan Modra <amodra@gmail.com>
19700 * genattrtab.c (min_fn): Don't translate values.
19701 (min_attr_value): Return INT_MAX when the value can't be calculated.
19702 Return minimum among any values that can be calculated.
19703 (max_attr_value): Adjust.
19705 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19707 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
19709 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19711 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19712 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
19713 (aarch64_return_call_with_max_clobbers): New function.
19714 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
19715 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
19717 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
19718 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
19719 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
19720 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
19721 * cselib.c (cselib_process_insn): Add argument to
19722 targetm.hard_regno_call_part_clobbered call.
19723 * ira-conflicts.c (ira_build_conflicts): Ditto.
19724 * ira-costs.c (ira_tune_allocno_costs): Ditto.
19725 * lra-constraints.c (inherit_reload_reg): Ditto.
19726 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
19727 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
19728 argument. Call targetm.return_call_with_max_clobbers.
19729 Add argument to targetm.hard_regno_call_part_clobbered call.
19730 (calls_have_same_clobbers_p): New function.
19731 (process_bb_lives): Add call_insn and last_call_insn variables.
19732 Pass call_insn to check_pseudos_live_through_calls.
19733 Modify if stmt to check targetm.return_call_with_max_clobbers.
19734 Update setting of flush variable.
19735 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
19737 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
19738 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
19739 targetm.hard_regno_call_part_clobbered call.
19740 * reginfo.c (choose_hard_reg_mode): Ditto.
19741 * regrename.c (check_new_reg_p): Ditto.
19742 * reload.c (find_equiv_reg): Ditto.
19743 * reload1.c (emit_reload_insns): Ditto.
19744 * sched-deps.c (deps_analyze_insn): Ditto.
19745 * sel-sched.c (init_regs_for_mode): Ditto.
19746 (mark_unavailable_hard_regs): Ditto.
19747 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
19748 * target.def (hard_regno_call_part_clobbered): Add insn argument.
19749 (return_call_with_max_clobbers): New target function.
19750 * doc/tm.texi: Regenerate.
19751 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
19752 * hooks.c (hook_bool_uint_mode_false): Change to
19753 hook_bool_insn_uint_mode_false.
19754 * hooks.h (hook_bool_uint_mode_false): Ditto.
19756 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19758 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19759 (aarch64_remove_extra_call_preserved_regs): New function.
19760 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
19761 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
19762 * doc/tm.texi: Regenerate.
19763 * final.c (get_call_reg_set_usage): Call new hook.
19764 * target.def (remove_extra_call_preserved_regs): New hook.
19765 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
19766 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
19768 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19771 * passes.c (finish_optimization_passes): Call print_combine_total_stats
19772 inside of pass_combine_1 dump rather than pass_profile_1.
19774 2019-01-11 Tom de Vries <tdevries@suse.de>
19776 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
19777 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
19778 (PTX_NUM_PER_WORKER_BARRIERS): Define.
19779 (nvptx_apply_dim_limits): Prevent vector_length 64 and
19782 2019-01-11 Tom de Vries <tdevries@suse.de>
19784 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
19786 2019-01-11 Jan Beulich <jbeulich@suse.com>
19788 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
19789 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
19790 sse2_cvtsi2sd): Add {l}.
19791 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
19794 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19797 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
19799 (*float<floatunssuffix>v2div2sf2): New define_insn.
19800 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
19801 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
19802 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
19803 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
19804 match_operands with "const0_operand" "C".
19806 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19808 * config/aarch64/aarch64-builtins.c
19809 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
19810 (aarch64_init_simd_builtins): ...Here
19812 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
19814 PR rtl-optimization/87305
19816 (setup_live_pseudos_and_spill_after_risky_transforms): Check
19817 allocation for big endian pseudos used as paradoxical subregs and
19818 spill them if it is wrong.
19819 * lra-constraints.c (lra_constraints): Add a comment.
19821 2019-01-10 Richard Biener <rguenther@suse.de>
19823 PR tree-optimization/88792
19824 * tree-ssa-pre.c (get_representative_for): Do not return a
19827 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19829 PR middle-end/84877
19831 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
19832 (assign_parm_setup_block): Do the argument slot realignment here
19835 2019-01-10 Stefan Agner <stefan@agner.ch>
19838 * config/arm/arm.c (arm_option_override_internal): Force
19839 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
19841 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19844 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
19847 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19849 * config/arm/arm-builtins.c
19850 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
19851 (MAC_LANE_PAIR_QUALIFIERS): New.
19852 (arm_expand_builtin_args): Use it.
19853 (arm_expand_builtin_1): Likewise.
19854 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
19855 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
19856 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
19857 * config/arm/arm_neon.h:
19858 (vcadd_rot90_f16): New.
19859 (vcaddq_rot90_f16): New.
19860 (vcadd_rot270_f16): New.
19861 (vcaddq_rot270_f16): New.
19864 (vcmla_lane_f16): New.
19865 (vcmla_laneq_f16): New.
19866 (vcmlaq_lane_f16): New.
19867 (vcmlaq_laneq_f16): New.
19868 (vcmla_rot90_f16): New.
19869 (vcmlaq_rot90_f16): New.
19870 (vcmla_rot90_lane_f16): New.
19871 (vcmla_rot90_laneq_f16): New.
19872 (vcmlaq_rot90_lane_f16): New.
19873 (vcmlaq_rot90_laneq_f16): New.
19874 (vcmla_rot180_f16): New.
19875 (vcmlaq_rot180_f16): New.
19876 (vcmla_rot180_lane_f16): New.
19877 (vcmla_rot180_laneq_f16): New.
19878 (vcmlaq_rot180_lane_f16): New.
19879 (vcmlaq_rot180_laneq_f16): New.
19880 (vcmla_rot270_f16): New.
19881 (vcmlaq_rot270_f16): New.
19882 (vcmla_rot270_lane_f16): New.
19883 (vcmla_rot270_laneq_f16): New.
19884 (vcmlaq_rot270_lane_f16): New.
19885 (vcmlaq_rot270_laneq_f16): New.
19886 (vcadd_rot90_f32): New.
19887 (vcaddq_rot90_f32): New.
19888 (vcadd_rot270_f32): New.
19889 (vcaddq_rot270_f32): New.
19892 (vcmla_lane_f32): New.
19893 (vcmla_laneq_f32): New.
19894 (vcmlaq_lane_f32): New.
19895 (vcmlaq_laneq_f32): New.
19896 (vcmla_rot90_f32): New.
19897 (vcmlaq_rot90_f32): New.
19898 (vcmla_rot90_lane_f32): New.
19899 (vcmla_rot90_laneq_f32): New.
19900 (vcmlaq_rot90_lane_f32): New.
19901 (vcmlaq_rot90_laneq_f32): New.
19902 (vcmla_rot180_f32): New.
19903 (vcmlaq_rot180_f32): New.
19904 (vcmla_rot180_lane_f32): New.
19905 (vcmla_rot180_laneq_f32): New.
19906 (vcmlaq_rot180_lane_f32): New.
19907 (vcmlaq_rot180_laneq_f32): New.
19908 (vcmla_rot270_f32): New.
19909 (vcmlaq_rot270_f32): New.
19910 (vcmla_rot270_lane_f32): New.
19911 (vcmla_rot270_laneq_f32): New.
19912 (vcmlaq_rot270_lane_f32): New.
19913 (vcmlaq_rot270_laneq_f32): New.
19914 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
19915 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
19916 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
19917 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
19918 vcmlaq_lane270): New.
19919 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19920 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
19921 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
19922 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
19923 (arm_option_reconfigure_globals): Use them.
19924 * config/arm/iterators.md (VDF, VQ_HSF): New.
19925 (VCADD, VCMLA): New.
19926 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
19927 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
19929 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
19930 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
19932 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19934 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19935 Add qualifier_lane_pair_index.
19936 (emit-rtl.h): Include.
19937 (TYPES_QUADOP_LANE_PAIR): New.
19938 (aarch64_simd_expand_args): Use it.
19939 (aarch64_simd_expand_builtin): Likewise.
19940 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
19942 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
19943 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
19944 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
19945 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
19946 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
19947 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
19948 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
19949 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
19950 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
19951 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
19952 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
19953 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
19954 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
19955 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19956 Add __ARM_FEATURE_COMPLEX.
19957 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
19958 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
19959 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
19960 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
19961 fcmlaq_lane270): New.
19962 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19963 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
19964 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
19965 * config/aarch64/arm_neon.h:
19966 (vcadd_rot90_f16): New.
19967 (vcaddq_rot90_f16): New.
19968 (vcadd_rot270_f16): New.
19969 (vcaddq_rot270_f16): New.
19972 (vcmla_lane_f16): New.
19973 (vcmla_laneq_f16): New.
19974 (vcmlaq_lane_f16): New.
19975 (vcmlaq_rot90_lane_f16): New.
19976 (vcmla_rot90_laneq_f16): New.
19977 (vcmla_rot90_lane_f16): New.
19978 (vcmlaq_rot90_f16): New.
19979 (vcmla_rot90_f16): New.
19980 (vcmlaq_laneq_f16): New.
19981 (vcmla_rot180_laneq_f16): New.
19982 (vcmla_rot180_lane_f16): New.
19983 (vcmlaq_rot180_f16): New.
19984 (vcmla_rot180_f16): New.
19985 (vcmlaq_rot90_laneq_f16): New.
19986 (vcmlaq_rot270_laneq_f16): New.
19987 (vcmlaq_rot270_lane_f16): New.
19988 (vcmla_rot270_laneq_f16): New.
19989 (vcmlaq_rot270_f16): New.
19990 (vcmla_rot270_f16): New.
19991 (vcmlaq_rot180_laneq_f16): New.
19992 (vcmlaq_rot180_lane_f16): New.
19993 (vcmla_rot270_lane_f16): New.
19994 (vcadd_rot90_f32): New.
19995 (vcaddq_rot90_f32): New.
19996 (vcaddq_rot90_f64): New.
19997 (vcadd_rot270_f32): New.
19998 (vcaddq_rot270_f32): New.
19999 (vcaddq_rot270_f64): New.
20003 (vcmla_lane_f32): New.
20004 (vcmla_laneq_f32): New.
20005 (vcmlaq_lane_f32): New.
20006 (vcmlaq_laneq_f32): New.
20007 (vcmla_rot90_f32): New.
20008 (vcmlaq_rot90_f32): New.
20009 (vcmlaq_rot90_f64): New.
20010 (vcmla_rot90_lane_f32): New.
20011 (vcmla_rot90_laneq_f32): New.
20012 (vcmlaq_rot90_lane_f32): New.
20013 (vcmlaq_rot90_laneq_f32): New.
20014 (vcmla_rot180_f32): New.
20015 (vcmlaq_rot180_f32): New.
20016 (vcmlaq_rot180_f64): New.
20017 (vcmla_rot180_lane_f32): New.
20018 (vcmla_rot180_laneq_f32): New.
20019 (vcmlaq_rot180_lane_f32): New.
20020 (vcmlaq_rot180_laneq_f32): New.
20021 (vcmla_rot270_f32): New.
20022 (vcmlaq_rot270_f32): New.
20023 (vcmlaq_rot270_f64): New.
20024 (vcmla_rot270_lane_f32): New.
20025 (vcmla_rot270_laneq_f32): New.
20026 (vcmlaq_rot270_lane_f32): New.
20027 (vcmlaq_rot270_laneq_f32): New.
20028 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
20029 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
20030 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
20031 (FCADD, FCMLA): New.
20033 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
20035 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
20039 * config/pa/pa.c: Change "can not" to "cannot".
20040 * gimple-ssa-evrp-analyze.c: Likewise.
20041 * ipa-icf.c: Likewise.
20042 * ipa-polymorphic-call.c: Likewise.
20043 * ipa-pure-const.c: Likewise.
20044 * lra-constraints.c: Likewise.
20045 * lra-remat.c: Likewise.
20046 * reload1.c: Likewise.
20047 * reorg.c: Likewise.
20048 * tree-ssa-uninit.c: Likewise.
20050 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
20054 * Makefile.in: Mechanically replace "can not" with "cannot".
20055 * alias.c: Likewise.
20056 * builtins.c: Likewise.
20057 * calls.c: Likewise.
20058 * cgraph.c: Likewise.
20059 * cgraph.h: Likewise.
20060 * cgraphclones.c: Likewise.
20061 * cgraphunit.c: Likewise.
20062 * combine-stack-adj.c: Likewise.
20063 * combine.c: Likewise.
20064 * common/config/i386/i386-common.c: Likewise.
20065 * config/aarch64/aarch64.c: Likewise.
20066 * config/alpha/sync.md: Likewise.
20067 * config/arc/arc.c: Likewise.
20068 * config/arc/predicates.md: Likewise.
20069 * config/arm/arm-c.c: Likewise.
20070 * config/arm/arm.c: Likewise.
20071 * config/arm/arm.h: Likewise.
20072 * config/arm/arm.md: Likewise.
20073 * config/arm/cortex-r4f.md: Likewise.
20074 * config/csky/csky.c: Likewise.
20075 * config/csky/csky.h: Likewise.
20076 * config/darwin-f.c: Likewise.
20077 * config/epiphany/epiphany.md: Likewise.
20078 * config/i386/i386.c: Likewise.
20079 * config/i386/sol2.h: Likewise.
20080 * config/m68k/m68k.c: Likewise.
20081 * config/mcore/mcore.h: Likewise.
20082 * config/microblaze/microblaze.md: Likewise.
20083 * config/mips/20kc.md: Likewise.
20084 * config/mips/sb1.md: Likewise.
20085 * config/nds32/nds32.c: Likewise.
20086 * config/nds32/predicates.md: Likewise.
20087 * config/pa/pa.c: Likewise.
20088 * config/rs6000/e300c2c3.md: Likewise.
20089 * config/rs6000/rs6000.c: Likewise.
20090 * config/s390/s390.h: Likewise.
20091 * config/sh/sh.c: Likewise.
20092 * config/sh/sh.md: Likewise.
20093 * config/spu/vmx2spu.h: Likewise.
20094 * cprop.c: Likewise.
20095 * dbxout.c: Likewise.
20096 * df-scan.c: Likewise.
20097 * doc/cfg.texi: Likewise.
20098 * doc/extend.texi: Likewise.
20099 * doc/fragments.texi: Likewise.
20100 * doc/gty.texi: Likewise.
20101 * doc/invoke.texi: Likewise.
20102 * doc/lto.texi: Likewise.
20103 * doc/md.texi: Likewise.
20104 * doc/objc.texi: Likewise.
20105 * doc/rtl.texi: Likewise.
20106 * doc/tm.texi: Likewise.
20108 * emit-rtl.c: Likewise.
20109 * emit-rtl.h: Likewise.
20110 * except.c: Likewise.
20111 * expmed.c: Likewise.
20112 * expr.c: Likewise.
20113 * fold-const.c: Likewise.
20114 * genautomata.c: Likewise.
20115 * gimple-fold.c: Likewise.
20116 * hard-reg-set.h: Likewise.
20117 * ifcvt.c: Likewise.
20118 * ipa-comdats.c: Likewise.
20119 * ipa-cp.c: Likewise.
20120 * ipa-devirt.c: Likewise.
20121 * ipa-fnsummary.c: Likewise.
20122 * ipa-icf.c: Likewise.
20123 * ipa-inline-transform.c: Likewise.
20124 * ipa-inline.c: Likewise.
20125 * ipa-polymorphic-call.c: Likewise.
20126 * ipa-profile.c: Likewise.
20127 * ipa-prop.c: Likewise.
20128 * ipa-pure-const.c: Likewise.
20129 * ipa-reference.c: Likewise.
20130 * ipa-split.c: Likewise.
20131 * ipa-visibility.c: Likewise.
20133 * ira-build.c: Likewise.
20134 * ira-color.c: Likewise.
20135 * ira-conflicts.c: Likewise.
20136 * ira-costs.c: Likewise.
20137 * ira-int.h: Likewise.
20138 * ira-lives.c: Likewise.
20141 * loop-invariant.c: Likewise.
20142 * loop-unroll.c: Likewise.
20143 * lower-subreg.c: Likewise.
20144 * lra-assigns.c: Likewise.
20145 * lra-constraints.c: Likewise.
20146 * lra-eliminations.c: Likewise.
20147 * lra-lives.c: Likewise.
20148 * lra-remat.c: Likewise.
20149 * lra-spills.c: Likewise.
20151 * lto-cgraph.c: Likewise.
20152 * lto-streamer-out.c: Likewise.
20153 * postreload-gcse.c: Likewise.
20154 * predict.c: Likewise.
20155 * profile-count.h: Likewise.
20156 * profile.c: Likewise.
20157 * recog.c: Likewise.
20159 * reload.c: Likewise.
20160 * reload1.c: Likewise.
20161 * reorg.c: Likewise.
20162 * resource.c: Likewise.
20163 * rtl.def: Likewise.
20165 * rtlanal.c: Likewise.
20166 * sched-deps.c: Likewise.
20167 * sched-ebb.c: Likewise.
20168 * sched-rgn.c: Likewise.
20169 * sel-sched-ir.c: Likewise.
20170 * sel-sched.c: Likewise.
20171 * shrink-wrap.c: Likewise.
20172 * simplify-rtx.c: Likewise.
20173 * symtab.c: Likewise.
20174 * target.def: Likewise.
20175 * toplev.c: Likewise.
20176 * tree-call-cdce.c: Likewise.
20177 * tree-cfg.c: Likewise.
20178 * tree-complex.c: Likewise.
20179 * tree-core.h: Likewise.
20180 * tree-eh.c: Likewise.
20181 * tree-inline.c: Likewise.
20182 * tree-loop-distribution.c: Likewise.
20183 * tree-nrv.c: Likewise.
20184 * tree-profile.c: Likewise.
20185 * tree-sra.c: Likewise.
20186 * tree-ssa-alias.c: Likewise.
20187 * tree-ssa-dce.c: Likewise.
20188 * tree-ssa-dom.c: Likewise.
20189 * tree-ssa-forwprop.c: Likewise.
20190 * tree-ssa-loop-im.c: Likewise.
20191 * tree-ssa-loop-ivcanon.c: Likewise.
20192 * tree-ssa-loop-ivopts.c: Likewise.
20193 * tree-ssa-loop-niter.c: Likewise.
20194 * tree-ssa-phionlycprop.c: Likewise.
20195 * tree-ssa-phiopt.c: Likewise.
20196 * tree-ssa-propagate.c: Likewise.
20197 * tree-ssa-threadedge.c: Likewise.
20198 * tree-ssa-threadupdate.c: Likewise.
20199 * tree-ssa-uninit.c: Likewise.
20200 * tree-ssanames.c: Likewise.
20201 * tree-streamer-out.c: Likewise.
20202 * tree.c: Likewise.
20203 * tree.h: Likewise.
20204 * vr-values.c: Likewise.
20206 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
20208 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
20209 (ix86_split_xorsign): Ditto.
20210 * config/i386/i386.c (ix86_expand_xorsign): New function.
20211 (ix86_split_xorsign): Ditto.
20212 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
20213 (xorsign<mode>3): New expander.
20214 (xorsign<mode>3_1): New insn_and_split pattern.
20215 * config/i386/sse.md (xorsign<mode>3): New expander.
20217 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20219 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
20220 (*tablejump_sp64): Likewise.
20221 (*tablejump<P:mode>): ...this.
20222 (*call_address_sp32): Merge into...
20223 (*call_address_sp64): Likewise.
20224 (*call_address<P:mode>): ...this.
20225 (*call_symbolic_sp32): Merge into...
20226 (*call_symbolic_sp64): Likewise.
20227 (*call_symbolic<P:mode>): ...this.
20228 (call_value): Remove constraint and add predicate.
20229 (*call_value_address_sp32): Merge into...
20230 (*call_value_address_sp64): Likewise.
20231 (*call_value_address<P:mode>): ...this.
20232 (*call_value_symbolic_sp32): Merge into...
20233 (*call_value_symbolic_sp64): Likewise.
20234 (*call_value_symbolic<P:mode>): ...this.
20235 (*sibcall_symbolic_sp32): Merge into...
20236 (*sibcall_symbolic_sp64): Likewise.
20237 (*sibcall_symbolic<P:mode>): ...this.
20238 (sibcall_value): Remove constraint and add predicate.
20239 (*sibcall_value_symbolic_sp32): Merge into...
20240 (*sibcall_value_symbolic_sp64): Likewise.
20241 (*sibcall_value_symbolic<P:mode>): ...this.
20242 (window_save): Minor tweak.
20243 (*branch_sp32): Merge into...
20244 (*branch_sp64): Likewise.
20245 (*branch<P:mode>): ...this.
20247 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20248 James Clarke <jrtc27@jrtc27.com>
20251 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
20252 consistently in TLS address generation and adjust code to the renaming
20253 of patterns. Mark calls to __tls_get_addr as const.
20254 * config/sparc/sparc.md (tgd_hi22): Turn into...
20255 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
20256 (tgd_lo10): Turn into...
20257 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
20258 (tgd_add32): Merge into...
20259 (tgd_add64): Likewise.
20260 (tgd_add<P:mode>): ...this and use Pmode throughout.
20261 (tldm_hi22): Turn into...
20262 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
20263 (tldm_lo10): Turn into...
20264 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
20265 (tldm_add32): Merge into...
20266 (tldm_add64): Likewise.
20267 (tldm_add<P:mode>): ...this and use Pmode throughout.
20268 (tldm_call32): Merge into...
20269 (tldm_call64): Likewise.
20270 (tldm_call<P:mode>): ...this and use Pmode throughout.
20271 (tldo_hix22): Turn into...
20272 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
20273 (tldo_lox10): Turn into...
20274 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
20275 (tldo_add32): Merge into...
20276 (tldo_add64): Likewise.
20277 (tldo_add<P:mode>): ...this and use Pmode throughout.
20278 (tie_hi22): Turn into...
20279 (tie_hi22<P:mode>): ...this and use Pmode throughout.
20280 (tie_lo10): Turn into...
20281 (tie_lo10<P:mode>): ...this and use Pmode throughout.
20282 (tie_ld64): Use DImode throughout.
20283 (tie_add32): Merge into...
20284 (tie_add64): Likewise.
20285 (tie_add<P:mode>): ...this and use Pmode throughout.
20286 (tle_hix22_sp32): Merge into...
20287 (tle_hix22_sp64): Likewise.
20288 (tle_hix22<P:mode>): ...this and use Pmode throughout.
20289 (tle_lox22_sp32): Merge into...
20290 (tle_lox22_sp64): Likewise.
20291 (tle_lox22<P:mode>): ...this and use Pmode throughout.
20292 (*tldo_ldub_sp32): Merge into...
20293 (*tldo_ldub_sp64): Likewise.
20294 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
20295 (*tldo_ldub1_sp32): Merge into...
20296 (*tldo_ldub1_sp64): Likewise.
20297 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
20298 (*tldo_ldub2_sp32): Merge into...
20299 (*tldo_ldub2_sp64): Likewise.
20300 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
20301 (*tldo_ldsb1_sp32): Merge into...
20302 (*tldo_ldsb1_sp64): Likewise.
20303 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
20304 (*tldo_ldsb2_sp32): Merge into...
20305 (*tldo_ldsb2_sp64): Likewise.
20306 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
20307 (*tldo_ldub3_sp64): Use DImode throughout.
20308 (*tldo_ldsb3_sp64): Likewise.
20309 (*tldo_lduh_sp32): Merge into...
20310 (*tldo_lduh_sp64): Likewise.
20311 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
20312 (*tldo_lduh1_sp32): Merge into...
20313 (*tldo_lduh1_sp64): Likewise.
20314 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
20315 (*tldo_ldsh1_sp32): Merge into...
20316 (*tldo_ldsh1_sp64): Likewise.
20317 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
20318 (*tldo_lduh2_sp64): Use DImode throughout.
20319 (*tldo_ldsh2_sp64): Likewise.
20320 (*tldo_lduw_sp32): Merge into...
20321 (*tldo_lduw_sp64): Likewise.
20322 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
20323 (*tldo_lduw1_sp64): Use DImode throughout.
20324 (*tldo_ldsw1_sp64): Likewise.
20325 (*tldo_ldx_sp64): Likewise.
20326 (*tldo_stb_sp32): Merge into...
20327 (*tldo_stb_sp64): Likewise.
20328 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
20329 (*tldo_sth_sp32): Merge into...
20330 (*tldo_sth_sp64): Likewise.
20331 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
20332 (*tldo_stw_sp32): Merge into...
20333 (*tldo_stw_sp64): Likewise.
20334 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
20335 (*tldo_stx_sp64): Use DImode throughout.
20337 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20339 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
20340 check configure option to set BTI and Return Address Signing.
20341 * configure.ac: Add --enable-standard-branch-protection and
20342 --disable-standard-branch-protection.
20343 * configure: Regenerated.
20344 * doc/install.texi: Document the same.
20346 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20347 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20349 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
20350 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
20351 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
20353 * config/aarch64/aarch64-bti-insert.c: New file.
20354 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
20356 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
20358 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
20359 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
20360 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
20361 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
20363 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20365 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
20366 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
20367 Disable bti for -mbranch-protection=none.
20368 (aarch64_handle_standard_branch_protection): Enable bti for
20369 -mbranch-protection=standard.
20370 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
20371 -mbranch-protection.
20372 (aarch64_bti_enabled): Check if bti is enabled.
20373 * config/aarch64/aarch64.opt: Declare target variable.
20374 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
20376 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20378 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
20379 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
20380 (aarch64_expand_epilogue): Likewise.
20381 (aarch64_output_mi_thunk): Likewise.
20382 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
20383 TAILCALL_ADDR_REGS to x16 and x17.
20384 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
20386 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20388 * config/aarch64/aarch64-option-extensions.def: Define
20389 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
20390 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
20391 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
20392 (AARCH64_FL_PREDRES): New.
20393 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
20394 AARCH64_FL_PREDRES by default.
20395 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
20397 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20399 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
20401 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
20402 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
20403 * doc/invoke.texi: Document ARMv8.5-A.
20405 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20407 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
20408 (xorsign<mode>3): Likewise.
20410 2019-01-09 Jelinek <jakub@redhat.com>
20412 PR middle-end/88758
20413 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
20414 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
20416 PR rtl-optimization/88331
20417 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
20418 not currently_expanding_to_rtl.
20420 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20422 * doc/invoke.texi (-Os): Remove trailing spaces.
20423 (-finline-functions): Remove reference to -O2.
20425 2019-01-08 Jakub Jelinek <jakub@redhat.com>
20427 PR rtl-optimization/79593
20428 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
20430 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
20431 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
20433 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
20436 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
20440 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
20441 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
20443 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
20446 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
20447 ix86_avx_u128_mode_entry.
20449 2019-01-08 Martin Liska <mliska@suse.cz>
20451 PR tree-optimization/88753
20452 * tree-switch-conversion.c (switch_conversion::build_one_array):
20453 Come up with local variable constructor. Convert first to
20454 type of constructor values.
20456 2019-01-08 Richard Biener <rguenther@suse.de>
20458 PR tree-optimization/86554
20459 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
20460 rpo_avail): Move earlier.
20461 (visit_nary_op): When value-numbering to expressions
20462 with different overflow behavior make sure there's an
20463 available expression on the path.
20465 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
20467 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
20468 aarch64_parse_branch_protection,
20469 struct aarch64_branch_protect_type,
20470 aarch64_handle_no_branch_protection,
20471 aarch64_handle_standard_branch_protection,
20472 aarch64_validate_mbranch_protection,
20473 aarch64_handle_pac_ret_protection,
20474 aarch64_handle_attr_branch_protection,
20475 accepted_branch_protection_string,
20476 aarch64_pac_ret_subtypes,
20477 aarch64_branch_protect_types,
20478 aarch64_handle_pac_ret_leaf): Define.
20479 (aarch64_override_options_after_change_1, aarch64_override_options):
20480 Add check for accepted_branch_protection_string.
20481 (aarch64_option_save): Save accepted_branch_protection_string.
20482 (aarch64_option_restore): Save accepted_branch_protection_string.
20483 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
20484 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
20485 msign-return-address.
20486 * doc/invoke.texi: Add mbranch-protection.
20488 2019-01-08 Alan Modra <amodra@gmail.com>
20491 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
20492 Delete "unknownp" parameter. Adjust callers. Handle
20493 CONST_INT, PLUS, MINUS, and MULT.
20494 (attr_value_aligned): Renamed from or_attr_value.
20495 (min_attr_value): Return INT_MIN for unhandled rtl case..
20496 (min_fn): ..and translate to INT_MAX here.
20497 (write_length_unit_log): Modify to cope without "unknown".
20498 (write_attr_value): Handle IF_THEN_ELSE.
20500 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20502 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
20503 optimization for masked stores.
20505 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20507 PR middle-end/88567
20508 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
20509 output vector directly to duplicate_and_interleave instead of
20510 going through a temporary. Postpone insertion of ctor_seq to
20511 the end of the loop.
20513 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
20516 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
20517 unsigned_p. Handle signed and unsigned overflow correction as
20519 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
20521 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
20523 (add<mode>3_compareV_imm): Make this callable for expanding.
20524 (subv<GPI:mode>4): Use register_operand for operand 1. Use
20525 aarch64_plus_operand for operand 2.
20526 (subv<GPI:mode>_insn): New insn pattern.
20527 (subv<GPI:mode>_imm): Likewise.
20528 (negv<GPI:mode>3): New expand pattern.
20529 (negv<GPI:mode>_insn): New insn pattern.
20530 (negv<GPI:mode>_cmp_only): Likewise.
20531 (cmpv<GPI:mode>_insn): Likewise.
20532 (subvti4): Use register_operand for operand 1. Update call to
20533 aarch64_expand_subvti.
20534 (usubvti4): Likewise.
20535 (negvti3): New expand pattern.
20536 (negdi_carryout): New insn pattern.
20537 (negvdi_carryinV): New insn pattern.
20538 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
20539 version the named version.
20540 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
20542 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
20544 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
20546 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
20547 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
20548 (sub<mode>3_carryinCV): Delete.
20549 (sub<GPI:mode>3_carryinV): New expand pattern.
20550 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
20552 2019-01-07 Richard Biener <rguenther@suse.de>
20554 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
20555 of tree_operand_hash.
20557 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20559 PR tree-optimization/88598
20560 * tree.h (single_nonzero_element): Declare.
20561 * tree.c (single_nonzero_element): New function.
20562 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
20563 if I is the only nonzero element of CST.
20565 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20567 PR tree-optimization/88598
20568 * tree.h (initializer_each_zero_or_onep): Declare.
20569 * tree.c (initializer_each_zero_or_onep): New function.
20570 (signed_or_unsigned_type_for): Handle float types too.
20571 (unsigned_type_for, signed_type_for): Update comments accordingly.
20572 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
20573 x & { 0 or -1, 0 or -1, ... }.
20575 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
20577 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
20578 with x86_64-pc-linux-gnu.
20580 2019-01-07 Tom de Vries <tdevries@suse.de>
20583 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
20585 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
20588 2019-01-07 Jakub Jelinek <jakub@redhat.com>
20590 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
20591 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
20592 TARGET_AVX512F as condition.
20595 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
20596 const_not_ok_for_debug_p target hook.
20597 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
20598 on UNSPEC and subexpressions thereof if all subexpressions of the
20599 UNSPEC are CONSTANT_P.
20601 PR tree-optimization/88676
20602 * tree-ssa-phiopt.c (two_value_replacement): New function.
20603 (tree_ssa_phiopt_worker): Call it.
20606 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
20607 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
20610 * tree-vect-generic.c: Include insn-config.h and recog.h.
20611 (expand_vector_piecewise): Add defaulted ret_type argument,
20612 if non-NULL, use that in preference to type for the result type.
20613 (expand_vector_parallel): Formatting fix.
20614 (do_vec_conversion, do_vec_narrowing_conversion,
20615 expand_vector_conversion): New functions.
20616 (expand_vector_operations_1): Call expand_vector_conversion
20617 for VEC_CONVERT ifn calls.
20618 * internal-fn.def (VEC_CONVERT): New internal function.
20619 * internal-fn.c (expand_VEC_CONVERT): New function.
20620 * fold-const-call.c (fold_const_vec_convert): New function.
20621 (fold_const_call): Use it for CFN_VEC_CONVERT.
20622 * doc/extend.texi (__builtin_convertvector): Document.
20624 2019-01-07 Tom de Vries <tdevries@suse.de>
20626 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
20627 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
20628 vector_red_partition, vector_red_sym): New global variables.
20629 (nvptx_option_override): Initialize vector_red_sym.
20630 (nvptx_declare_function_name): Restore red_partition register.
20631 (nvptx_file_end): Emit code to declare the vector reduction variables.
20632 (nvptx_output_red_partition): New function.
20633 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
20634 large vector reductions.
20635 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
20636 (nvptx_init_builtins): Add VECTOR_ADDR.
20637 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
20638 Handle nvptx_expand_shared_addr.
20639 (nvptx_get_shared_red_addr): Add vector argument and handle large
20641 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
20643 (nvptx_goacc_reduction_init): Likewise.
20644 (nvptx_goacc_reduction_fini): Likewise.
20645 (nvptx_goacc_reduction_teardown): Likewise.
20646 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
20647 init,fini,teardown}.
20648 (nvptx_init_axis_predicate): Initialize vector_red_partition.
20649 (nvptx_set_current_function): Init vector_red_partition.
20650 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
20651 (nvptx_red_partition): New insn.
20652 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
20654 2019-01-07 Tom de Vries <tdevries@suse.de>
20657 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
20660 2019-01-07 Tom de Vries <tdevries@suse.de>
20662 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
20663 (nvptx_option_override): Init oacc_bcast_partition.
20664 (nvptx_init_oacc_workers): New function.
20665 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
20666 (nvptx_needs_shared_bcast): New function.
20667 (nvptx_find_par): Generalize to enable vectors to use shared-memory
20668 to propagate state.
20669 (nvptx_shared_propagate): Initialize vector bcast partition and
20670 synchronization state.
20671 (nvptx_single): Generalize to enable vectors to use shared-memory
20672 to propagate state.
20673 (nvptx_process_pars): Likewise.
20674 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
20675 * config/nvptx/nvptx.h (struct machine_function): Add
20676 bcast_partition and sync_bar members.
20678 2019-01-07 Tom de Vries <tdevries@suse.de>
20680 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
20681 (nvptx_apply_dim_limits): New function.
20682 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
20685 2019-01-07 Tom de Vries <tdevries@suse.de>
20687 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
20688 as late as possible.
20690 2019-01-07 Tom de Vries <tdevries@suse.de>
20692 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
20693 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
20694 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
20695 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
20696 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
20698 2019-01-07 Tom de Vries <tdevries@suse.de>
20700 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
20702 2019-01-07 Tom de Vries <tdevries@suse.de>
20704 * omp-offload.c (oacc_get_min_dim): New function.
20705 * omp-offload.h (oacc_get_min_dim): Declare.
20707 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
20710 * config/i386/i386.c (function_value_ms_64): Return small sturct in
20711 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
20713 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20717 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
20719 * ipa-inline.c (edge_badness): Use inlined_time instead of
20720 inline_summaries->get.
20722 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20724 * opts.c (enable_fdo_optimizations): Enable
20725 version-loops-for-strides, loop-interchange, unrol-and-jam
20726 and tree-loop-distribution.
20727 * invoke.texi: Document newly enabled options.
20729 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20731 * doc/invoke.texi (max-inline-insns-small): New parameters.
20732 * ipa-inline.c (want_early_inline_function_p): simplify.
20733 (want_inline_small_function_p): Fix pasto from previous patch;
20734 use max-inline-insns-small bound.
20735 * params.def (max-inline-insns-small): New param.
20736 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
20737 variables correctly.
20739 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20741 * doc/invoke.texi: Document max-inline-insns-size,
20742 uninlined-function-insns, uninlined-function-time,
20743 uninlined-thunk-insns and uninlined-thunk-time.
20744 * params.def: Add max-inline-insns-size,
20745 uninlined-function-insns, uninlined-function-time,
20746 uninlined-thunk-insns and uninlined-thunk-time.
20747 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
20749 * ipa-inline.c (can_inline_edge_by_limits_p,
20750 want_inline_small_function_p): Use new parameters.
20752 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20754 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
20756 2019-01-05 Jakub Jelinek <jakub@redhat.com>
20758 PR middle-end/82564
20760 * expr.c (expand_assignment): For calls returning VLA structures
20761 if to_rtx is not a MEM, force it into a stack temporary.
20764 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
20765 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
20766 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
20767 subexpressions of both operands.
20768 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
20769 subrtxes are CONSTANT_P.
20770 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
20771 2018-11-09 changes.
20773 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
20775 * params.def (hot-bb-count-ws-permille): Set to 990.
20777 2019-01-04 Martin Sebor <msebor@redhat.com>
20780 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
20783 2019-01-04 Martin Sebor <msebor@redhat.com>
20786 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
20788 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20790 * gdbinit.in: Turn off pagination for the skip commands, restore
20791 it to previous state afterwards.
20793 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20796 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
20797 of GET_MODE (opN) as modes of the libcall arguments.
20799 2019-01-04 Jan Beulich <jbeulich@suse.com>
20801 * config/i386/sse.md
20802 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
20803 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
20804 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20805 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20806 avx512f_vmcmp<mode>3<round_saeonly_name>,
20807 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
20808 avx512f_maskcmp<mode>3,
20809 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20810 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20811 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20812 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20813 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20814 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20815 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20816 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20817 <avx512>_testm<mode>3<mask_scalar_merge_name>,
20818 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
20819 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
20820 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
20821 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
20822 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
20823 avx512cd_maskb_vec_dup<mode>,
20824 avx512cd_maskw_vec_dup<mode>,
20825 avx512dq_fpclass<mode><mask_scalar_merge_name>,
20826 avx512dq_vmfpclass<mode>,
20827 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
20830 2019-01-03 Martin Sebor <msebor@redhat.com>
20832 PR tree-optimization/88659
20833 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
20835 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
20837 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
20838 unaligned vsx and avoid lxvd2x/stxvd2x.
20839 (gen_lvx_v4si_move): New function.
20841 2019-01-03 Tom de Vries <tdevries@suse.de>
20843 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
20844 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
20846 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
20848 2019-01-03 Tom de Vries <tdevries@suse.de>
20850 * config/nvptx/nvptx.c (struct offload_attrs): New.
20851 (populate_offload_attrs): New function. Factor mask extraction out of
20852 nvptx_reorg. Add extraction of dimensions.
20853 (nvptx_reorg): Use populate_offload_attrs.
20855 2019-01-03 Tom de Vries <tdevries@suse.de>
20857 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
20858 cases for oacc_min_dims_p and routine_p. Add asserts for
20859 oacc_default_dims_p and offload_region_p.
20861 2019-01-03 Tom de Vries <tdevries@suse.de>
20863 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
20864 factored out of ...
20865 (nvptx_goacc_validate_dims): ... here.
20867 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20869 PR tree-optimization/85574
20870 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
20872 (struct ssa_equip_hash_traits): Declare.
20873 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
20875 2019-01-03 Jakub Jelinek <jakub@redhat.com>
20878 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
20879 change it to qualified_type.
20881 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20883 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
20884 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
20886 2019-01-02 Martin Sebor <msebor@redhat.com>
20887 Jeff Law <law@redhat.com>
20889 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
20890 (get_range_strlen_tree): Update appropriately.
20892 * gimple-fold.h (get_range_strlen): Drop unused last argument.
20894 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
20895 rather than set_range_info.
20896 * tree-ssa-strlen.c (set_strlen_range): Extracted from
20897 maybe_set_strlen_range. Handle potentially boundary crossing
20898 cases more conservatively.
20899 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
20900 Call set_strlen_range.
20901 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
20903 PR middle-end/88663
20904 * gimple-fold.c (get_range_strlen): Update prototype to no longer
20905 need the flexp argument.
20906 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
20907 from calls to get_range_strlen. Update comments. Just update
20908 VAL for an unterminated const char array and let the reset of the
20909 code handle it normally. No longer try to set *flexp. Adjust
20911 (get_range_strlen): Update for the new get_range_strlen API.
20912 (get_maxval_strlen): Similarly.
20913 (gimple_fold_builtin_strlen): Handle update meaning of return value
20914 from get_range_strlen.
20915 * gimple-ssa-sprintf.c (get_string_length): Update for the new
20916 get_range_strlen API.
20918 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
20921 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
20922 false at WPA time when body was removed.
20924 2019-01-02 Martin Liska <mliska@suse.cz>
20926 PR tree-optimization/88650
20927 * predict.c (set_even_probabilities): Calculate probability
20928 remainer only when really used.
20930 2019-01-02 Richard Biener <rguenther@suse.de>
20932 PR middle-end/88651
20933 * tree-data-ref.c (analyze_subscript_affine_affine): Use
20934 widest_ints when mangling max_stmt_execution results.
20936 2019-01-02 Richard Biener <rguenther@suse.de>
20938 PR tree-optimization/88621
20939 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
20940 bitfields when canoncalizing.
20942 2019-01-02 Richard Biener <rguenther@suse.de>
20945 * config/i386/x86-tune-costs.h (intel_cost): Adjust
20946 cost of cheap SSE instruction.
20948 2019-01-02 Richard Biener <rguenther@suse.de>
20951 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
20952 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
20954 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
20955 set after UIDs before splitting them.
20957 2019-01-01 Martin Sebor <msebor@redhat.com>
20958 Jeff Law <law@redhat.com>
20960 * gimple-fold.c (get_range_strlen_tree): Record if the computed
20961 length is optimistic. If it is, then arrange to compute the
20962 conservative length as well.
20964 * gimple-fold.h (get_range_strlen): Update prototype.
20965 * builtins.c (check_access): Update call to get_range_strlen to use
20966 c_strlen_data pointer. Change various variable accesses to instead
20967 pull data from the c_strlen_data structure.
20968 (check_strncat_sizes, expand_builtin_strncat): Likewise.
20969 * calls.c (maybe_warn_nonstring_arg): Likewise.
20970 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
20971 minimum length if maximum lengh is unknown.
20972 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
20973 that used c_strlen, it's no longer needed. Restructure slightly.
20974 (format_string): Set unlikely range appropriately.
20975 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
20977 (get_range_strlen): Accept c_strlen_data pointer for external
20978 call sites as well. Pass through to call to internal get_range_strlen.
20979 Adjust minlen, maxlen and maxbound as needed.
20980 (get_maxval_strlen): Update comments.
20981 (gimple_fold_builtin_strlen): Update call to get_range_strlen
20982 to use c_strlen_data pointer. Change variable accesses to instead
20983 use c_strlen_data data members.
20985 * gimple-fold.c (get_range_strlen): Update prototype.
20986 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
20987 local variables. Use pdata to return information to caller.
20988 Update calls to get_range_strlen. Update pdata->maxbound.
20989 (get_range_strlen -- static version): Similarly.
20990 (get_range_strlen -- extern version): Update for internal
20991 get_range_strlen API change. Convert to external data format.
20992 (get_maxval_strlen): Similarly.
20994 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
20996 * coverage.c (get_coverage_counts): Use current_function_decl.
20997 * profile.c (read_thunk_profile): New function.
20998 (branch_prob): Add THUNK parameter.
20999 * tree-profile.c (tree_profiling): Handle thunks.
21000 * value-prof.c (init_node_map): Handle thunks.
21001 * value-prof.h (branch_prob): Upate prototype.
21002 (read_thunk_profile): Declare.
21004 2019-01-01 Jakub Jelinek <jakub@redhat.com>
21006 Update copyright years.
21008 * gcc.c (process_command): Update copyright notice dates.
21009 * gcov-dump.c (print_version): Ditto.
21010 * gcov.c (print_version): Ditto.
21011 * gcov-tool.c (print_version): Ditto.
21012 * gengtype.c (create_file): Ditto.
21013 * doc/cpp.texi: Bump @copying's copyright year.
21014 * doc/cppinternals.texi: Ditto.
21015 * doc/gcc.texi: Ditto.
21016 * doc/gccint.texi: Ditto.
21017 * doc/gcov.texi: Ditto.
21018 * doc/install.texi: Ditto.
21019 * doc/invoke.texi: Ditto.
21021 Copyright (C) 2019 Free Software Foundation, Inc.
21023 Copying and distribution of this file, with or without modification,
21024 are permitted in any medium without royalty provided the copyright
21025 notice and this notice are preserved.