1 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
3 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4 use new register constraint letters.
6 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
8 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
9 as well, if interesting recover the symbol and re-legitimize the
12 2019-11-11 Martin Liska <mliska@suse.cz>
14 * dbgcnt.def (DEBUG_COUNTER): Sort counters
17 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
19 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
20 account when checking if there are enough iterations to vectorize
23 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
24 Kwok Cheung Yeung <kcy@codesourcery.com>
26 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
27 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
28 (LANG_HOOKS_DECLS): Rename also here.
29 * langhooks.h (lang_hooks_for_decls): Rename
30 omp_is_optional_argument to omp_check_optional_argument; take
31 additional bool argument.
32 * omp-general.h (omp_check_optional_argument): Likewise.
33 * omp-general.h (omp_check_optional_argument): Likewise.
34 * omp-low.c (lower_omp_target): Update calls; handle absent
35 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
37 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
40 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
41 -fPIC and -shared the last to create offload image.
43 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
45 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
48 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
49 (config.status): Use/depend on it.
50 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
51 * configure: Regenerate.
53 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
55 PR tree-optimization/88760
56 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
57 * gcc/common/config/rs6000/rs6000-common.c
58 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
59 Turn on -funroll-loops and -munroll-only-small-loops.
60 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
61 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
62 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
63 Turn off -munroll-only-small-loops for explicit -funroll-loops.
64 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
65 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
67 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
69 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
70 Make scalar_load, vector_load, unaligned_load and
71 vector_gather_load cost more to conform hardware latency and
74 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
76 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
77 (MACHO_SYMBOL_LINKER_VIS_P): New.
79 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
81 * lra-spills.c (assign_spill_hard_regs): Do not spill into
82 registers in eliminable_regset.
84 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
86 * ipa-inline.c (compute_uninlined_call_time,
87 compute_inlined_call_time): Take edge frequency as
88 parameter rather than computing it by itself.
89 (big_speedup_p, edge_badness): Manually CSE sreal
90 frequency calculations.
92 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
94 * profile-count.c (profile_count::to_sreal_scale): Short circuit
95 case where profiles are same.
97 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
99 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
101 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
103 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
104 args summaries of inlined edge unless it holds info about
107 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
109 * config/rs6000/rs6000.md (CC_any): New mode iterator.
110 (*movcc_internal1): Rename to...
111 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
113 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
115 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
116 (cgraph_node::create_virtual_clone): Copy it.
117 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
119 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
120 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
122 (propagate_constants_across_call): If callee is not analyzed, give up.
123 (propagate_constants_topo): Lower to bottom latties of all callees of
124 functions with ipa-cp disabled.
125 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
126 (cgraph_edge_brings_value_p): Check for availability first.
127 (create_specialized_node): Set ipcp_clone.
128 (ipcp_store_bits_results): Check that info is present.
129 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
131 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
132 conservative when callee summary is missing.
133 (remap_edge_summaries): Lookup call summary only when needed.
134 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
135 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
137 (ipa_analyze_node): Use get_create.
138 (propagate_controlled_uses): Do not propagate when function is not
140 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
141 (ipa_read_node_info): Use get_create.
142 * ipa-prop.h (IPA_NODE_REF): Use get.
143 (IPA_NODE_REF_GET_CREATE): New.
145 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
147 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
150 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
152 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
153 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
154 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
155 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
157 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
159 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
160 capping the growth cumulated.
161 (offline_size): Break out from ...
162 (estimate_growth): ... here.
163 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
165 (growth_likely_positive): Turn to ...
166 (growth_positive_p): Re-implement.
167 * ipa-inline.h (growth_likely_positive): Remove.
168 (growth_positive_p): Declare.
169 * ipa-inline.c (want_inline_small_function_p): Use
171 (want_inline_function_to_all_callers_p): Likewise.
173 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
175 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
176 calculation of min_size.
177 (ipa_update_overall_fn_summary): Likewise.
179 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
181 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
182 estimate_edge_devirt_benefit when not computing hints;
183 do not compute time when not asked for.
184 (estimate_calls_size_and_time): Pass NULL hints and time when
185 these are not computed; do not evaluate hint predicates when these are
187 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
190 2019-11-09 Jakub Jelinek <jakub@redhat.com>
192 PR tree-optimization/92401
193 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
194 if res_op->code is an expression with code length 1.
195 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
196 if res_op->code is an expression with code length 2.
197 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
198 if res_op->code is an expression with code length 3.
200 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
202 * config/darwin.c (machopic_mcount_stub_name): Validate the
203 symbol stub name when it is created.
204 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
207 2019-11-09 Jakub Jelinek <jakub@redhat.com>
209 * symtab.c: Fix comment typos.
210 * cgraphunit.c: Likewise.
211 * cgraph.h: Likewise.
212 * cgraphclones.c: Likewise.
213 * cgraph.c: Likewise.
214 * varpool.c: Likewise.
215 * tree-ssa-strlen.c: Likewise.
216 * ipa-sra.c: Likewise.
217 (scan_expr_access, check_all_callers_for_issues): Fix typo
220 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
222 * config/darwin-protos.h: Add include quard.
224 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
226 * range-op.h (range_operator::fold_range): Return result in a
227 reference parameter instead of by value.
228 (range_operator::wi_fold): Same.
229 * range-op.cc (range_operator::wi_fold): Return result in a reference
230 parameter instead of by value.
231 (range_operator::fold_range): Same.
232 (value_range_from_overflowed_bounds): Same.
233 (value_range_with_overflow): Same
234 (create_possibly_reversed_range): Same.
235 (operator_equal::fold_range): Same.
236 (operator_not_equal::fold_range): Same.
237 (operator_lt::fold_range): Same.
238 (operator_le::fold_range): Same.
239 (operator_gt::fold_range): Same.
240 (operator_ge::fold_range): Same.
241 (operator_plus::wi_fold): Same.
242 (operator_plus::op1_range): Change call to fold_range.
243 (operator_plus::op2_range): Change call to fold_range.
244 (operator_minus::wi_fold): Return result via reference parameter.
245 (operator_minus::op1_range): Change call to fold_range.
246 (operator_minus::op2_range): Change call to fold_range.
247 (operator_min::wi_fold): Return result via reference parameter.
248 (operator_max::wi_fold): Same.
249 (cross_product_operator::wi_cross_product): Same.
250 (operator_mult::wi_fold): Same.
251 (operator_div::wi_fold): Same.
252 (operator_div op_floor_div): Fix whitespace.
253 (operator_exact_divide::op1_range): Change call to fold_range.
254 (operator_lshift::fold_range): Return result via reference parameter.
255 (operator_lshift::wi_fold): Same.
256 (operator_rshift::fold_range): Same.
257 (operator_rshift::wi_fold): Same.
258 (operator_cast::fold_range): Same.
259 (operator_cast::op1_range): Change calls to fold_range.
260 (operator_logical_and::fold_range): Return result via reference.
261 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
262 (operator_bitwise_and::wi_fold): Return result via reference.
263 (operator_logical_or::fold_range): Same.
264 (operator_bitwise_or::wi_fold): Same.
265 (operator_bitwise_xor::wi_fold): Same.
266 (operator_trunc_mod::wi_fold): Same.
267 (operator_logical_not::fold_range): Same.
268 (operator_bitwise_not::fold_range): Same.
269 (operator_bitwise_not::op1_range): Change call to fold_range.
270 (operator_cst::fold_range): Return result via reference.
271 (operator_identity::fold_range): Same.
272 (operator_abs::wi_fold): Same.
273 (operator_absu::wi_fold): Same.
274 (operator_negate::fold_range): Same.
275 (operator_negate::op1_range): Change call to fold_range.
276 (operator_addr_expr::fold_range): Return result via reference.
277 (operator_addr_expr::op1_range): Change call to fold_range.
278 (operator_pointer_plus::wi_fold): Return result via reference.
279 (operator_pointer_min_max::wi_fold): Same.
280 (operator_pointer_and::wi_fold): Same.
281 (operator_pointer_or::wi_fold): Same.
282 (range_op_handler): Change call to fold_range.
284 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
286 (range_fold_unary_symbolics_p): Same.
287 (range_fold_binary_expr): Same.
288 (range_fold_unary_expr): Same.
290 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
292 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
293 vector type as an argument rather than reading it from the
295 (vect_create_epilog_for_reduction): Update accordingly.
296 (vectorizable_reduction): Likewise.
297 (vect_transform_cycle_phi): Likewise.
299 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
301 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
302 the comparison codes that make sense for the mode used, and only the
303 codes that can be done with a single branch instruction.
305 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
307 PR tree-optimization/92351
308 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
309 peeling the main loop for alignment, make sure to set the misalignment
310 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
312 2019-11-08 Richard Biener <rguenther@suse.de>
314 * dbgcnt.def (ivopts_loop): Add.
315 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
316 ivopts_loop before optimizing a loop.
318 2019-11-08 Richard Biener <rguenther@suse.de>
321 * tree-inline.c (declare_return_variable): Properly handle
322 type mismatches for the return slot.
324 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
327 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
328 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
330 (got_helper_needed): New static variable.
331 (output_load_pcrel_sym): New function.
332 (get_pc_thunk_name): Remove after inlining...
333 (load_got_register): ...here. Rework the initialization of the GOT
334 register and of the GOT helper.
335 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
336 (sparc_file_end): Test got_helper_needed to decide whether the GOT
337 helper must be emitted. Use output_asm_insn instead of fprintf.
338 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
339 if optimization is enabled.
340 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
341 by calling output_load_pcrel_sym.
343 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
345 * tree-sra.c (create_access): Delay disqualifying the base
346 for poly_int values until we know we have a base.
348 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
350 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
351 for loops with SIMDUID set. Enable epilogue vectorization for loops
352 with SIMDLEN set after finding a main loop with a VF that matches it.
354 2019-11-08 Jakub Jelinek <jakub@redhat.com>
357 * gimple-ssa-store-merging.c (find_constituent_stores): For return
358 value only, return non-NULL if there is a single non-clobber
359 constituent store even if there are constituent clobbers and return
360 one of clobber constituent stores if all constituent stores are
362 (split_group): Handle clobbers.
363 (imm_store_chain_info::output_merged_store): When computing
364 bzero_first, look after all clobbers at the start. Don't count
365 clobber stmts in orig_num_stmts, except if the first orig store is
366 a clobber covering the whole area and split_stores cover the whole
367 area, consider equal number of stmts ok. Punt if split_stores
368 contains only ->orig stores and their number plus number of original
369 clobbers is equal to original number of stmts. For ->orig, look past
370 clobbers in the constituent stores.
371 (imm_store_chain_info::output_merged_stores): Don't remove clobber
373 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
375 (store_valid_for_store_merging_p): Allow clobber stmts.
376 (verify_clear_bit_region_be): Fix up a thinko in function comment.
379 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
380 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
382 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
383 force creation of a unique data.stack_parm slot.
385 2019-11-08 Richard Biener <rguenther@suse.de>
387 * genmatch.c (expr::gen_transform): Use the resimplify
388 member function instead of hard-coding the gimple_resimplifyN variant.
389 (dt_simplify::gen_1): Likewise.
391 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
393 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
396 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
398 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
399 instead of INTEGER_CST.
401 2019-11-08 Richard Biener <rguenther@suse.de>
403 PR tree-optimization/92324
404 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
405 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
406 sign-conversions as necessary.
407 (vectorizable_reduction): Reject conversions in the chain
408 that are not sign-conversions, base analysis on a non-converting
409 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
410 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
412 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
413 (STMT_VINFO_REDUC_VECTYPE): Likewise.
415 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
418 * config/avr/avr.opt (-mdouble=, -mlong-double=):
419 Fix a missing '-' when displaying these options in the
422 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
424 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
426 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
428 * config/aarch64/aarch64-builtins.c
429 (aarch64_builtin_vectorized_function): Remove bswap handling.
431 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
433 * tree-core.h (tree_type_common::indivisible_p): New member variable.
434 * tree.h (TYPE_INDIVISIBLE_P): New macro.
435 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
436 Treat the vector types as indivisible.
438 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
440 * optabs.def (gather_load_optab, mask_gather_load_optab)
441 (scatter_store_optab, mask_scatter_store_optab): Turn into
442 conversion optabs, with the offset mode given explicitly.
443 * doc/md.texi: Update accordingly.
444 * config/aarch64/aarch64-sve-builtins-base.cc
445 (svld1_gather_impl::expand): Likewise.
446 (svst1_scatter_impl::expand): Likewise.
447 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
448 (expand_scatter_store_optab_fn): Likewise.
449 (direct_gather_load_optab_supported_p): Likewise.
450 (direct_scatter_store_optab_supported_p): Likewise.
451 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
453 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
454 (internal_gather_scatter_fn_supported_p): Replace the offset sign
455 argument with the offset vector type. Require the two vector
456 types to have the same number of elements but allow their element
457 sizes to be different. Treat the optabs as conversion optabs.
458 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
459 prototype accordingly.
460 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
461 (supports_vec_convert_optab_p): ...this new function.
462 (supports_vec_gather_load_p): Update accordingly.
463 (supports_vec_scatter_store_p): Likewise.
464 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
465 Replace the offset sign and bits parameters with a scalar type tree.
466 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
467 Pass back the offset vector type instead of the scalar element type.
468 Allow the offset to be wider than the memory elements. Search for
469 an offset type that the target supports, stopping once we've
470 reached the maximum of the element size and pointer size.
471 Update call to internal_gather_scatter_fn_supported_p.
472 (vect_check_gather_scatter): Update calls accordingly.
473 When testing a new scale before knowing the final offset type,
474 check whether the scale is supported for any signed or unsigned
475 offset type. Check whether the target supports the source and
476 target types of a conversion before deciding whether to look
477 through the conversion. Record the chosen offset_vectype.
478 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
479 (vect_recog_gather_scatter_pattern): Get the scalar offset type
480 directly from the gs_info's offset_vectype instead. Pass a zero
481 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
482 * tree-vect-stmts.c (check_load_store_masking): Update call to
483 internal_gather_scatter_fn_supported_p, passing the offset vector
484 type recorded in the gs_info.
485 (vect_truncate_gather_scatter_offset): Update call to
486 vect_check_gather_scatter, leaving it to search for a valid
488 (vect_use_strided_gather_scatters_p): Convert the offset to the
489 element type of the gs_info's offset_vectype.
490 (vect_get_gather_scatter_ops): Get the offset vector type directly
492 (vect_get_strided_load_store_ops): Likewise.
493 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
494 and IFN_MASK_GATHER_LOAD.
495 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
496 (gather_load<mode><v_int_equiv>): ...this.
497 (mask_gather_load<mode>): Rename to...
498 (mask_gather_load<mode><v_int_equiv>): ...this.
499 (scatter_store<mode>): Rename to...
500 (scatter_store<mode><v_int_equiv>): ...this.
501 (mask_scatter_store<mode>): Rename to...
502 (mask_scatter_store<mode><v_int_equiv>): ...this.
504 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
507 * config/rs6000/predicates.md
508 (signed_or_equality_comparison_operator): New predicate.
509 (unsigned_or_equality_comparison_operator): Likewise.
510 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
511 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
512 * config/rs6000/vector.md
513 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
514 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
515 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
516 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
517 vector modes and same-size integer vector modes.
518 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
519 (vector_lt<mode> for VEC_F): New expand.
520 (vector_le<mode> for VEC_F): Likewise.
521 (vector_ne<mode> for VEC_F): Likewise.
522 (vector_unge<mode> for VEC_F): Likewise.
523 (vector_ungt<mode> for VEC_F): Likewise.
524 (vector_unle<mode> for VEC_F): Likewise.
525 (vector_unlt<mode> for VEC_F): Likewise.
526 (vector_uneq<mode>): Expose name.
527 (vector_ltgt<mode>): Likewise.
528 (vector_unordered<mode>): Likewise.
529 (vector_ordered<mode>): Likewise.
531 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
534 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
535 Enhance ix86_expand_vector_init_concat.
537 2019-11-08 Joseph Myers <joseph@codesourcery.com>
539 * doc/invoke.texi (-Wold-style-definition): Document () not being
540 considered an old-style definition for C2x.
542 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
544 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
546 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
547 insn patterns using ldcw instruction.
548 (memory_barrier): Remove insn pattern using sync instruction.
549 * config/pa/pa.opt (coherent-ldcw): New option.
550 (ordered): New option.
552 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
554 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
557 2019-11-07 Jakub Jelinek <jakub@redhat.com>
559 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
560 typo - mistmatch -> mismatch.
561 * ipa-profile.c (ipa_profile): Likewise.
562 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
563 - mistmatch -> mismatch.
565 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
567 * simplify-rtx.c (comparison_to_mask): New function.
568 (mask_to_comparison): New function.
569 (simplify_logical_relational_operation): New function.
570 (simplify_binary_operation_1): Call
571 simplify_logical_relational_operation.
573 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
576 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
577 modes for integer constants.
579 2019-11-07 Jan Hubicka <jh@suse.cz>
582 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
585 2019-11-07 Jan Hubicka <jh@suse.cz>
587 * optc-save-gen.awk: Generate cl_target_option_free
588 and cl_optimization_option_free.
589 * opth-en.awk: Declare cl_target_option_free
590 and cl_optimization_option_free.
591 * tree.c (free_node): Use it.
593 2019-11-06 Jan Hubicka <jh@suse.cz>
595 * lto-streamer-in.c: Include alloc-pool.h.
596 (freeing_string_slot_hasher): Remove.
597 (string_slot_allocator): New object allocator.
598 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
599 (file_name_obstack): New obstack.
600 (canon_file_name): Allocate in obstack and allocator.
601 (lto_reader_init): Initialize obstack and allocator.
602 (lto_free_file_name_hash): New function.
603 * lto-streamer.h (lto_free_file_name_hash): New.
605 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
607 PR tree-optimization/89134
608 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
609 * params.def: Add min-loop-cond-split-prob.
610 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
611 outside checks on loop into the function.
612 (split_info): New class.
613 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
614 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
615 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
616 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
617 (stmt_semi_invariant_p, branch_removable_p): Likewise.
618 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
619 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
620 (split_loop_on_cond): Likewise.
621 (tree_ssa_split_loops): Add loop split on conditional statement.
623 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
625 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
628 2019-11-07 Richard Biener <rguenther@suse.de>
630 PR tree-optimization/92405
631 * tree-vect-loop.c (vectorizable_reduction): Appropriately
632 restrict lane-reducing ops to single stmt chains.
634 2019-11-07 Martin Jambor <mjambor@suse.cz>
637 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
638 * cgraph.h (gimple_check_call_matching_types): Remove
639 * cgraph.c (gimple_check_call_args): Likewise.
640 (gimple_check_call_matching_types): Likewise.
641 (symbol_table::create_edge): Do not call
642 gimple_check_call_matching_types.
643 (cgraph_edge::make_direct): Likewise.
644 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
645 * value-prof.h (check_ic_target): Remove.
646 * value-prof.c (check_ic_target): Remove.
647 (gimple_ic_transform): Do nat call check_ic_target.
648 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
649 (afdo_indirect_call): Likewise.
650 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
651 gimple_check_call_matching_types.
652 * ipa-inline.c (early_inliner): Likewise.
654 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
656 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
657 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
658 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
659 * config/arm/arm_acle_builtins.def: Define builtins for the above.
660 * config/arm/iterators.md (USSAT16): New int_iterator.
661 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
663 * config/arm/predicates.md (ssat16_imm): New predicate.
664 (usat16_imm): Likewise.
665 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
667 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
669 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
671 (arm_<simd32_op>): New define_expands.
672 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
673 __smuad, __smuadx): Define.
674 * config/arm/arm_acle_builtins.def: Define builtins for the above.
675 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
676 (SIMD32_BINOP_Q): Likewise.
677 (simd32_op): Handle the above.
678 * config/arm/unspecs.md: Define unspecs for the above.
680 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
682 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
683 * config/arm/arm.md (APSRGE_REGNUM): Define.
684 (arm_<simd32_op>): New define_insn.
686 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
687 (CALL_USED_REGISTERS): Likewise.
688 (REG_ALLOC_ORDER): Likewise.
689 (FIRST_PSEUDO_REGISTER): Update value.
690 (ARM_GE_BITS_READ): Define.
691 * config/arm/arm.c (arm_conditional_register_usage): Clear
692 APSRGE_REGNUM from operand_reg_set.
693 (arm_ge_bits_access): Define.
694 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
696 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
697 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
698 FAIL if ARM_GE_BITS_READ.
699 (*arm_add<mode>3): New define_insn.
700 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
701 (*arm_sub<mode>3): New define_insn.
702 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
703 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
705 * config/arm/arm_acle_builtins.def: Define builtins for the above.
706 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
707 (simd32_op): Handle the above.
708 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
709 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
710 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
711 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
713 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
715 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
716 (arm_smlabb): New define_expand.
717 (*maddhisi4tb): Rename to...
718 (maddhisi4tb): ... This.
719 (*maddhisi4tt): Rename to...
720 (maddhisi4tt): ... This.
721 (arm_smlatb_setq): New define_insn.
722 (arm_smlatb): New define_expand.
723 (arm_smlatt_setq): New define_insn.
724 (arm_smlatt): New define_expand.
725 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
726 (arm_<smlaw_op>): New define_expand.
727 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
728 __smlawb, __smlawt): Define.
729 * config/arm_acle_builtins.def: Define builtins for the above.
730 * config/arm/iterators.md (SMLAWBT): New int_iterator.
731 (slaw_op): New int_attribute.
732 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
734 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
736 * config/arm/arm.md (arm_<ss_op>): New define_expand.
737 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
738 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
739 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
740 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
741 (ss_op): New code_attr.
743 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
745 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
746 * config/arm/arm.md (APSRQ_REGNUM): Define.
747 (add_setq): New define_subst.
748 (add_clobber_q_name): New define_subst_attr.
749 (add_clobber_q_pred): Likewise.
750 (maddhisi4): Change to define_expand. Split into mult and add if
752 (arm_maddhisi4): New define_insn.
753 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
754 (*maddhisi4tt): Likewise.
755 (arm_ssat): New define_expand.
756 (arm_usat): Likewise.
757 (arm_get_apsr): New define_insn.
758 (arm_set_apsr): Likewise.
759 (arm_saturation_occurred): New define_expand.
760 (arm_set_saturation): Likewise.
761 (*satsi_<SAT:code>): Rename to...
762 (satsi_<SAT:code><add_clobber_q_name>): ... This.
763 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
764 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
765 (CALL_USED_REGISTERS): Mark apsrq.
766 (FIRST_PSEUDO_REGISTER): Update value.
767 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
768 (machine_function): Add q_bit_access.
769 (ARM_Q_BIT_READ): Define.
770 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
771 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
773 (arm_q_bit_access): Define.
774 * config/arm/arm-builtins.c: Include stringpool.h.
775 (arm_sat_binop_imm_qualifiers,
776 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
777 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
778 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
779 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
780 SET_SAT_QUALIFIERS): Likewise.
781 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
782 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
783 Handle 0 argument expander.
784 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
785 (arm_check_builtin_call): Define.
786 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
787 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
788 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
789 (arm_q_bit_access): Likewise.
790 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
791 __saturation_occurred, __set_saturation_occurred): Define.
792 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
793 saturation_occurred, set_saturation_occurred.
794 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
795 (UNSPEC_APSR_READ): Likewise.
796 (VUNSPEC_APSR_WRITE): Likewise.
797 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
798 (*arm_ssadd<mode>3): New define_insn.
799 (sssub<mode>3): Convert to define_expand.
800 (*arm_sssub<mode>3): New define_insn.
801 (ssmulsa3): Convert to define_expand.
802 (*arm_ssmulsa3): New define_insn.
803 (usmulusa3): Convert to define_expand.
804 (*arm_usmulusa3): New define_insn.
805 (ssmulha3): FAIL if ARM_Q_BIT_READ.
806 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
807 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
809 2019-11-07 Martin Liska <mliska@suse.cz>
812 * cgraph.c (delete_function_version): Clear global
813 variable version_info_node if equal to deleted
816 2019-11-07 Martin Liska <mliska@suse.cz>
818 * fold-const.c (operand_compare::operand_equal_p): Add comparison
819 of CONSTRUCTOR_NO_CLEARING.
820 (operand_compare::hash_operand): Likewise.
822 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
824 Support 64-bit double and 64-bit long double configurations.
827 * config.gcc (tm_defines) [avr]: Set from --with-double=,
829 * config/avr/t-multilib: Remove.
830 * config/avr/t-avr: Output of genmultilib.awk is now fully
831 dynamically generated and no more part of the repo.
832 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
834 * config/avr/genmultilib.awk: ...here and handle them.
835 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
836 (-mlong-double=, avr_long_double). New option and var.
837 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
838 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
839 Set default as requested by --with-double=
840 (TARGET_HANDLE_OPTION): Define to this...
841 (avr_handle_option): ...new hook worker.
842 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
843 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
844 (avr_double_lib): New proto for spec function.
845 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
846 (DRIVER_SELF_SPECS): Call %:double-lib.
847 * config/avr/avr.c (avr_option_override): Assert
848 sizeof(long double) >= sizeof(double) for the target.
849 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
850 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
851 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
852 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
853 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
854 New built-in define depending on --with-double=, --with-long-double=.
855 * config/avr/driver-avr.c (avr_double_lib): New spec function.
856 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
857 * doc/install.texi (Cross-Compiler-Specific Options)
858 <--with-double=, --with-long-double=>: Doc.
860 2019-11-07 Richard Biener <rguenther@suse.de>
862 * dbgcnt.def (gimple_unroll): New.
863 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
864 gimple_unroll debug counter before applying transform.
865 (try_peel_loop): Likewise.
867 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
869 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
870 frame pointer in multiple registers.
871 (ira_setup_eliminable_regset): Setup eliminable_regset,
872 ira_no_alloc_regs and regs_ever_live for frame pointer in
875 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
877 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
880 2019-11-06 Jan Hubicka <jh@suse.cz>
882 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
884 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
885 Do not silently ignore summary corruptions.
887 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
889 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
890 the epilogue if there are peeled iterations for it to handle.
892 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
894 * config/arc/arc.c (arc_split_ior): Add asserts.
895 (arc_split_mov_const): Likewise.
896 (arc_check_ior_const): Do not match known short immediate values.
897 * config/arc/arc.md (movsi): Don't split predicated instructions
900 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
902 * config/arc/arc.opt (mea): Update help string.
903 * doc/invoke.texi(ARC): Update mea option info.
905 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
907 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
908 (zero_extendqisi2_ac): Likewise.
909 (zero_extendhisi2_i): Likewise.
910 (extendqihi2_i): Likewise.
911 (extendqisi2_ac): Likewise.
912 (extendhisi2_i): Likewise.
914 2019-11-06 Richard Biener <rguenther@suse.de>
916 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
917 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
918 Simplify single_defuse_cycle condition.
920 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
922 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
923 epilogue loop, make sure that the VF is small enough or that
924 the epilogue loop can be fully-masked.
926 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
928 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
929 loop when we've finished, rather than returning directly from
930 the loop. Use a local variable to track whether we're still
931 searching for the preferred simdlen. Make vect_epilogues
932 record whether the next iteration should try to treat the
935 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
937 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
938 __arc_hard_float__, __ARC_HARD_FLOAT__,
939 __arc_soft_float__, __ARC_SOFT_FLOAT__
941 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
943 PR tree-optimization/92317
944 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
945 update phi's with constant phi arguments.
947 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
948 Alexandre Oliva <oliva@adacore.com>
950 * common.opt (-fcallgraph-info[=]): New option.
951 * doc/invoke.texi (Developer options): Document it.
952 * opts.c (common_handle_option): Handle it.
953 * builtins.c (expand_builtin_alloca): Record allocation if
955 * calls.c (expand_call): If -fcallgraph-info, record the call.
956 (emit_library_call_value_1): Likewise.
957 * flag-types.h (enum callgraph_info_type): New type.
958 * explow.c: Include stringpool.h.
959 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
960 * function.c (allocate_stack_usage_info): New.
961 (allocate_struct_function): Call it for -fcallgraph-info.
962 (prepare_function_start): Call it otherwise.
963 (record_final_call, record_dynamic_alloc): New.
964 * function.h (struct callinfo_callee): New.
965 (CALLEE_FROM_CGRAPH_P): New.
966 (struct callinfo_dalloc): New.
967 (struct stack_usage): Add callees and dallocs.
968 (record_final_call, record_dynamic_alloc): Declare.
969 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
970 object if -fcallgraph-info=da.
971 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
972 * print-tree.h (print_decl_identifier): Declare.
973 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
974 * print-tree.c: Include print-tree.h.
975 (print_decl_identifier): New function.
976 * toplev.c: Include print-tree.h.
977 (callgraph_info_file): New global variable.
978 (callgraph_info_external_printed): Likewise.
979 (output_stack_usage): Rename to...
980 (output_stack_usage_1): ... this. Make it static, add cf
981 parameter. If -fcallgraph-info=su, print stack usage to cf.
982 If -fstack-usage, use print_decl_identifier for
984 (INDIRECT_CALL_NAME): New.
985 (dump_final_node_vcg_start): New.
986 (dump_final_callee_vcg, dump_final_node_vcg): New.
987 (output_stack_usage): New.
988 (lang_dependent_init): Open and start file if
989 -fcallgraph-info. Allocated callgraph_info_external_printed.
990 (finalize): If callgraph_info_file is not null, finish it,
991 close it, and release callgraph_info_external_printed.
993 2019-11-06 Gergö Barany <gergo@codesourcery.com>
994 Frederik Harwath <frederik@codesourcery.com>
995 Thomas Schwinge <thomas@codesourcery.com>
997 * omp-low.c (struct omp_context): New fields
998 local_reduction_clauses, outer_reduction_clauses.
999 (new_omp_context): Initialize these.
1000 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
1001 (scan_omp_for): Check reduction clauses for incorrect nesting.
1003 2019-11-06 Jakub Jelinek <jakub@redhat.com>
1006 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
1007 operands with non-memory constraints.
1009 2019-11-05 Martin Sebor <msebor@redhat.com>
1011 PR tree-optimization/92373
1012 * tree.c (component_ref_size): Only consider initializers of objects
1013 of matching struct types.
1014 Return null for instances of interior zero-length arrays.
1016 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
1018 * doc/md.texi (Insn Splitting): Fix combiner documentation.
1020 2019-11-05 Jason Merrill <jason@redhat.com>
1022 PR tree-optimization/91825
1023 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
1025 2019-11-05 Jim Wilson <jimw@sifive.com>
1028 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
1029 optimize_insn_for_speed_p is true.
1031 2019-11-05 Martin Sebor <msebor@redhat.com>
1035 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
1037 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
1038 name and location for a temporary variable.
1040 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
1042 * tree-vrp.c (value_range::value_range): Fix whitespace.
1043 (defined_ranges_p): Same.
1044 (range_fold_binary_symbolics_p): Same.
1045 (value_range::intersect_helper): Same.
1046 (value_range::union_helper): Same.
1047 * tree-vrp.h (range_fold_binary_expr): Same.
1049 2019-11-04 Martin Sebor <msebor@redhat.com>
1053 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
1054 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
1055 of message printed in a warning for empty arrays.
1056 (vrp_prop::check_mem_ref): Also handle function parameters and
1059 2019-11-05 Richard Biener <rguenther@suse.de>
1061 PR tree-optimization/92371
1062 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
1063 on the original stmt of live stmts in the chain.
1064 (vectorizable_live_operation): Look at the original stmt when
1065 checking STMT_VINFO_REDUC_DEF.
1067 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
1069 * gimple-fold.c, gimple-loop-versioning.cc,
1070 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
1071 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
1072 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
1073 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
1074 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
1075 value_range_equiv, and value_range_base to value_range.
1077 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
1079 * expr.c (build_personality_function): Fix generated type to
1080 match actual personality functions.
1082 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
1084 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
1085 enough bytes for the NULL character.
1087 2019-11-05 Richard Biener <rguenther@suse.de>
1089 PR tree-optimization/92280
1090 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
1091 had a single use do not create a new CTOR.
1092 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
1093 BIT_FIELD_REF of a CTOR via GENERIC.
1095 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
1097 * config/s390/s390.c (s390_vector_alignment): Check if the value
1098 fits into uhwi before using it.
1100 2019-11-05 Martin Liska <mliska@suse.cz>
1102 * symbol-summary.h: Use ggc_delete.
1104 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1106 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
1107 Change vec_perm field to 10.
1109 2019-11-05 Arnaud Charlet <charlet@adacore.com>
1111 * doc/install.texi: Further fix syntax for html generation.
1113 2019-11-05 Martin Liska <mliska@suse.cz>
1115 * symbol-summary.h: Rename allocator to m_allocator and
1118 2019-11-05 Richard Biener <rguenther@suse.de>
1120 PR tree-optimization/92324
1121 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
1122 all signed or unsigned operations.
1124 2019-11-05 Jan Hubicka <jh@suse.cz>
1126 * hsa-brig.c: Include alloc-pool.h
1127 * hsa-dump.c: Likewise.
1128 * hsa-gen.c: Likewise.
1129 * hse-regalloc.c: Likewise.
1130 * ipa-hsa.c: Likewise.
1131 * ipa-predicate.c: Likewise.
1132 * ipa-reference.c: Likewise.
1133 * ipa-sra.c: Likewise.
1134 * omp-expand.c: Likewise.
1135 * omp-general.c: Likewise.
1136 * omp-low.c: Likewise.
1137 * sumbol-summary.h (function_summary_base): Add allocator.
1138 (function_summary<T *>::function_summary): Update construction.
1139 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
1140 (call_summary_base): Add allcator.
1141 (call_summary<T *>::call_summary): Update construction.
1142 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
1144 2019-11-05 Jakub Jelinek <jakub@redhat.com>
1146 PR tree-optimization/91945
1147 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
1148 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
1151 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
1153 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
1154 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
1155 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
1156 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
1157 (vrp_set_zero_nonzero_bits): Move to...
1158 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
1159 (vr_values::simplify_bit_ops_using_ranges): Rename
1160 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
1162 2019-11-05 Martin Liska <mliska@suse.cz>
1165 * fold-const.c (operand_compare::hash_operand): Remove
1166 FIELD_DECL handling.
1168 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
1170 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
1171 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
1174 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
1176 * tree-vrp.c (value_range_base::operator==): Use equal_p to
1177 properly handle symbolics.
1178 (range_compatible_p): Remove.
1180 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
1182 * common.opt (-fabi-version): Document =14.
1183 * doc/invoke.texi (C++ Dialect Options): Likewise.
1185 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
1187 * tree-vrp.c (value_range_base::set): Do not special case pointers.
1189 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1191 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
1192 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
1193 gcn_omp_device_kind_arch_isa.
1194 * config/gcn/t-omp-device: New file.
1195 * configure.ac: Support gcn for omp_device_property.
1196 * configure: Regenerate.
1198 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
1200 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
1201 (vrp_val_max): Same.
1202 (vrp_val_is_min): Same.
1203 (vrp_val_is_max): Same.
1204 (value_range_base::nonzero_p): Remove last argument to
1206 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
1207 (vrp_val_max): Same.
1208 (vrp_val_is_min): Same.
1209 (vrp_val_is_max): Same.
1210 (value_range_base::set_varying): Remove last argument to vrp_val*.
1211 (value_range_base::dump): Same.
1212 (value_range_base::set): Same.
1213 (value_range_base::normalize_symbolics): Same.
1214 (value_range_base::num_pairs): Same.
1215 (value_range_base::lower_bound): Same.
1216 (value_range_base::upper_bound): Same.
1217 (ranges_from_anti_range): Remove handle_pointers argument.
1218 (value_range_base::singleton_p): Remove last argument to
1219 ranges_from_anti_range.
1221 2019-11-04 Jan Hubicka <jh@suse.cz>
1223 * ipa-reference.c (init_function_info): Initialize
1224 info->global.statics_read.
1226 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
1228 * tree-vrp.c (value_range_base::invert): Use constructors to build
1231 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
1233 * tree-vrp.c (range_int_cst_singleton_p): Remove.
1234 * tree-vrp.h (range_int_cst_singleton_p): Remove.
1236 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
1238 * tree-vrp.c (value_range_base::normalize_addresses): Handle
1241 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
1243 * tree-vrp.c (dump_assert_info): New.
1244 (dump_asserts_info): New.
1246 2019-11-04 Jan Hubicka <jh@suse.cz>
1248 * ipa-inline-transform.c: Include ipa-utils.h
1249 (inline_call): Set thunk_expansion flag.
1250 * ipa-utils.h (thunk_expansion): Declare.
1251 * ipa-devirt.c (thunk_expansion): New global var.
1252 (devirt_node_removal_hook): Do not invalidate cache while
1253 doing thunk expansion.
1255 2019-11-04 Tamar Christina <tamar.christina@arm.com>
1257 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
1259 2019-11-04 Martin Sebor <msebor@redhat.com>
1261 PR tree-optimization/92349
1262 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
1263 memebers have constant sizes.
1265 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
1267 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
1269 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
1270 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
1273 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
1275 * expr.c (store_constructor): Modify to handle single element vectors.
1276 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
1278 (vect_slp_check_for_constructors): New function.
1279 (vect_slp_analyze_bb_1): Call new function to check for vector
1281 (vectorize_slp_instance_root_stmt): New function.
1282 (vect_schedule_slp): Call new function to vectorize root stmt of vector
1284 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
1286 2019-11-04 Richard Biener <rguenther@suse.de>
1288 PR tree-optimization/92345
1289 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
1290 we produced a reduction chain.
1291 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
1292 LOOP_VINFO_REDUCTIONS.
1294 2019-11-04 Jan Hubicka <jh@suse.cz>
1296 * cgraphclones.c (cgraph_node::create_version_clone): Do not
1297 duplicate summaries.
1298 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
1300 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
1301 access call summaries.
1302 (dump_ipa_call_summary): Be ready for missing edge summaries.
1303 (analyze_function_body): Use get instead of get_create to access
1305 (estimate_calls_size_and_time): Do not access summaries of
1306 inlined edges; sanity check they are missing.
1307 (ipa_call_context::estimate_size_and_time): Use get instead
1308 of get_create to access node summary.
1309 (inline_update_callee_summaries): Do not update depth of
1311 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
1313 (ipa_merge_fn_summary_after_inlining): Use get instead
1315 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
1316 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
1318 (initialize_growth_caches): Update.
1319 (do_estimate_edge_time): Remove redundant copy of context.
1320 (ipa_remove_from_growth_caches): New function.
1321 * ipa-inline.c (flatten_function): Update overall summary
1322 only when optimizing.
1323 (inline_to_all_callers): Update overall summary of function
1325 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
1326 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
1329 2019-11-04 Richard Biener <rguenther@suse.de>
1331 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
1332 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
1334 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
1336 * ggc-common.c: Include system.h before malloc.h.
1338 2019-11-04 Alexandre Oliva <oliva@adacore.com>
1340 * configure.ac: Pass --enable-obsolete=* and
1341 --enable-option-checking=* down to build configure, and fail
1342 if it fails. AC_SUBST HAVE_AUTO_BUILD.
1343 * configure: Rebuild.
1344 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
1345 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
1347 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1349 * config.in: Regenerate.
1350 * config/msp430/msp430.c (msp430_option_override): Emit an error if
1351 -mtiny-printf is used without GCC being configured with
1352 --enable-newlib-nano-formatted-io.
1353 * config/msp430/msp430.h (LINK_SPEC): Pass
1354 "--wrap puts --wrap printf" when -mtiny-printf is used.
1355 * config/msp430/msp430.opt: Document -mtiny-printf.
1356 * configure: Regenerate.
1357 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
1358 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
1359 --enable-newlib-nano-formatted-io is passed.
1360 * doc/invoke.texi: Document -mtiny-printf.
1362 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1364 * configure: Regenerate.
1366 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1368 * config/msp430/driver-msp430.c
1369 (msp430_get_linker_devices_include_path): New spec function.
1370 * config/msp430/msp430-devices.c (msp430_dirname): New function.
1371 (extract_devices_dir_from_exec_prefix): New function.
1372 (extract_devices_dir_from_collect_gcc): New function.
1373 (msp430_check_env_var_for_devices): New function.
1374 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
1375 (parse_devices_csv): Call msp430_check_env_var_for_devices if
1376 devices.csv was not found using other methods.
1377 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
1379 (msp430_dirname): Likewise.
1380 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
1381 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
1382 msp430_get_linker_devices_include_path.
1383 (TARGET_EXTRA_PRE_INCLUDES): Define.
1384 * doc/invoke.texi: Document new ways of searching for support files.
1386 2019-11-04 Richard Biener <rguenther@suse.de>
1388 PR tree-optimization/92301
1389 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
1390 as required by epilogue generation
1392 2019-11-04 Martin Liska <mliska@suse.cz>
1395 * fold-const.c (operand_compare::hash_operand): Fix field
1396 hashing of CONSTRUCTOR.
1398 2019-11-04 Martin Liska <mliska@suse.cz>
1400 * ggc.h (ggc_delete): New function.
1401 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
1402 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
1403 (ipa_free_all_node_params): Likewise.
1404 * ipa-sra.c (ipa_sra_analysis): Likewise.
1406 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
1408 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
1409 set_switch_stmt_execution_predicate, compute_bb_predicates,
1410 will_be_nonconstant_expr_predicate,
1411 phi_result_unknown_predicate,
1412 analyze_function_body): Pass arround params summary.
1413 (ipa_call_context::duplicate_from): New comment;
1414 only duplicate useful values.
1415 (ipa_call_context::equal_to): Only compare useful values.
1416 (remap_edge_summaries): Pass params_summary.
1417 (remap_hint_predicate): Likewise.
1418 (ipa_merge_fn_summary_after_inlining): Likewise.
1419 (inline_read_section): Initialize params summary used flags.
1420 * ipa-predicate.c (predicate::remap_after_inlining): Pass
1421 around param_summary.
1422 (add_condition): Initialized used params summary flags.
1423 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
1424 (inline_param_summary::useless_p): New predicate.
1425 (remap_after_inlining, add_condition): Update prototype
1426 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
1428 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
1430 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
1431 (ipa_analyze_virtual_call_uses): Likewise.
1432 (update_indirect_edges_after_inlining): Update param summaries.
1433 (ipa_print_node_params): Print used flags.
1434 (ipa_read_indirect_edge_info): Update param summareis.
1435 * ipa-prop.h (ipa_param_descriptor): Add
1436 used_by_ipa_predicates, used_by_indirect_call
1437 and used_by_polymorphic_call.
1438 (ipa_set_param_used_by_ipa_predicates,
1439 ipa_set_param_used_by_indirect_call,
1440 ipa_set_param_used_by_polymorphic_call,
1441 ipa_is_param_used_by_ipa_predicates,
1442 ipa_is_param_used_by_indirect_call,
1443 ipa_is_param_used_by_polymorphic_call): New inline functions.
1445 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
1447 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
1449 (ipa_call_context::release): Add ALL parameter.
1450 (ipa_call_context::equal_to): New member function.
1451 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
1452 duplicate_form, release, equal_to and exists_p member functoins.
1453 * ipa-inline-analysis.c (node_context_cache_entry): New
1455 (node_context_summary): Likewise.
1456 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
1457 node_context_clear): New static vars.
1458 (initialize_growth_caches): New function.
1459 (free_growth_caches): Also delete node_context_cache; output stats.
1460 (do_estimate_edge_time): Cache contexts.
1461 (reset_node_cache): New function.
1462 * ipa-inline.c (reset_edge_caches): Reset also node cache.
1463 (inline_small_functions): Initialize growth caches.
1464 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
1466 * ipa-predicate.h (inline_param_summary::equal_to): New.
1467 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
1468 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
1469 (ipa_agg_jump_function): Implement equal_to member function.
1471 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
1473 * ipa-fnsummary.c (inline_read_section): Set vector size
1476 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
1478 * ipa-fnsummary.c (ipa_call_context): New constructor.
1479 (estimate_node_size_and_time): Turn to ...
1480 (ipa_call_context::estimate_size_and_time): ... this one.
1481 (ipa_call_context::release): New.
1482 * ipa-fnsummary.h (ipa_call_context): New class.
1483 (estimate_node_size_and_time): Remove.
1484 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
1485 do_estimate_edge_hints): Update.
1487 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
1489 * config.in: Regenerate.
1490 * configure: Regenerate.
1491 * configure.ac: Check for mallinfo.
1492 * ggc-common.c: Include malloc.h if available;
1494 (report_heap_memory_use): New functoin.
1495 * ggc-page.c (ggc_grow): Do not print "start".
1496 * ggc.h (report_heap_memory_use): Declare.
1497 * pases.c (execute_one_pass): Report memory after IPA passes.
1498 (ipa_read_summaries_1): Likewise.
1499 (ipa_read_optimization_summaries_1): Likewise.
1501 2019-11-02 Jakub Jelinek <jakub@redhat.com>
1503 * gimplify.h (omp_construct_selector_matches): Change return
1504 type to int, add a new SCORES argument.
1505 * gimplify.c (omp_construct_selector_matches): Likewise. If
1506 SCORES is non-NULL, compute scores of each construct.
1507 * omp-general.h (omp_get_context_selector): Declare.
1508 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
1509 Adjust omp_construct_selector_matches callers.
1510 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
1511 (omp_context_compute_score): New function.
1512 (omp_resolve_declare_variant): Compute scores and decide based on
1516 * configure.ac: Don't look for omp-device-properties files from
1517 installed offloading compilers. Instead add tmake_file snippets
1518 for configured offloading targets and use files they generate.
1519 * Makefile.in (install): Don't depend on
1520 install-omp-device-properties.
1521 (install-omp-device-properties): Remove goal.
1522 * config/i386/t-omp-device: New file.
1523 * config/i386/t-intelmic (omp-device-properties): Remove goal.
1524 * config/nvptx/t-omp-device: New file.
1525 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
1526 * configure: Regenerated.
1528 * omp-general.h (omp_context_selector_set_compare): Declare.
1529 * omp-general.c (omp_construct_simd_compare,
1530 omp_context_selector_props_compare, omp_context_selector_set_compare,
1531 omp_context_selector_compare): New functions.
1532 (omp_resolve_declare_variant): Prune variants that are strict subset
1535 2019-11-01 Martin Sebor <msebor@redhat.com>
1541 * doc/invoke.texi (-Wzero-length-bounds): Document.
1542 * gimple-match-head.c (try_conditional_simplification): Use memcpy
1543 instead of a hand-rolled loop to avoid PR 92323.
1544 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
1546 (vrp_prop::check_mem_ref): Handle declared struct objects.
1547 * tree.c (last_field): New function.
1548 (array_at_struct_end_p): Handle MEM_REF.
1549 (get_initializer_for): New helper.
1550 (component_ref_size): Add argument. Rename locals. Call
1551 get_initializer_for instead of fold_ctor_reference. Correct handling
1552 of flexible array members.
1553 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
1555 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
1557 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
1558 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
1559 UNSPEC_VSX_CVSPUXDS): Remove.
1560 (vsx_xvcvspdp): New define_expand, old define_insn split to...
1561 (vsx_xvcvspdp_be): ... this. New. And...
1562 (vsx_xvcvspdp_le): ... this. New.
1563 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
1564 (vsx_xvcv<su>xwdp_be): ... this. New. And...
1565 (vsx_xvcv<su>xwdp_le): ... this. New.
1566 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
1567 (vsx_xvcvsp<su>xds_be): ... this. New. And...
1568 (vsx_xvcvsp<su>xds_le): ... this. New.
1570 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
1572 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
1573 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
1574 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
1575 UNSPEC_VSX_XVCVSPSXWS): Remove.
1576 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
1577 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
1579 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
1581 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
1582 (UNSPEC_VSX_XVCDPSP): Remove.
1583 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
1584 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
1586 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
1588 * hooks.c (hook_tree_tree_bool_null): New.
1589 * hooks.h (hook_tree_tree_bool_null): Declare.
1590 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
1591 (LANG_HOOKS_DECLS): Add it.
1592 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
1593 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
1594 (lower_omp_target): Handle Fortran array with descriptor in
1595 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
1597 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
1599 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
1600 Assert that the type we store in abi_vector_types is its own
1602 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
1604 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
1606 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
1607 from a CONST_INT address when TARGET_THUMB2.
1609 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
1611 * config/arm/arm.md (add_not_cin): New insn.
1612 (add_not_shift_cin): Likewise.
1614 2019-10-31 Martin Liska <mliska@suse.cz>
1616 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
1617 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
1618 and compare_memory_operand.
1620 2019-10-31 Jakub Jelinek <jakub@redhat.com>
1622 * configure.ac: Compute and substitute omp_device_properties and
1623 omp_device_property_deps.
1624 * Makefile.in (generated_files): Add omp-device-properties.h.
1625 (omp-general.o): Depend on omp-device-properties.h.
1626 (omp_device_properties): New make variable.
1627 (omp-device-properties.h, s-omp-device-properties-h,
1628 install-omp-device-properties): New goals.
1629 (install): Depend on install-omp-device-properties for accelerators.
1630 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
1631 * target.h (enum omp_device_kind_arch_isa): New enum.
1632 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
1634 * omp-general.c: Include omp-device-properties.h.
1635 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
1636 colon instead of comma.
1637 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
1639 (omp_context_selector_matches): Implement device set arch/isa
1640 selectors, improve device set kind selector handling.
1641 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
1642 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
1643 TARGET_SIMD_CLONE_USABLE): Formatting fix.
1644 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
1645 ix86_omp_device_kind_arch_isa.
1646 * config/i386/i386-options.c (struct ix86_target_opts): Move type
1647 definition from ix86_target_string to file scope.
1648 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
1650 (ix86_omp_device_kind_arch_isa): New function.
1651 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
1652 isa_opts definitions to file scope.
1653 * config/i386/t-intelmic (omp-device-properties): New goal.
1654 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
1655 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
1656 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
1657 nvptx_omp_device_kind_arch_isa.
1658 * configure: Regenerate.
1659 * doc/tm.texi: Regenerate.
1662 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
1663 DECL_BUILT_IN in comment. Remove redundant ()s around return
1665 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
1666 before calling fndecl_built_in_p.
1667 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
1668 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
1669 fndecl_built_in_p on it.
1671 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
1673 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
1675 2019-10-31 Martin Liska <mliska@suse.cz>
1677 * config/arm/arm.c (arm_get_pcs_model): Remove usage
1678 of cgraph_local_info and use local_info_node instead.
1679 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
1680 (bfin_function_ok_for_sibcall): Likewise.
1681 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
1682 (must_reload_pic_reg_p): Likewise.
1684 2019-10-31 Jakub Jelinek <jakub@redhat.com>
1687 * tree.h (type_initializer_zero_p): Remove.
1688 * tree.c (type_initializer_zero_p): Remove.
1690 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
1692 * doc/invoke.texi (-Wshadow, -Wshadow=global
1693 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
1695 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1697 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
1698 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
1699 and 'target exit data'.
1701 2019-10-30 Martin Jambor <mjambor@suse.cz>
1704 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
1705 availability comparison.
1707 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1709 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
1710 calls to __mspabi_mpy* functions.
1711 * config/msp430/msp430.md (mulhisi3): New define_expand.
1712 (umulhisi3): New define_expand.
1713 (*mulhisi3_inline): Use old mulhisi3 define_insn.
1714 (*umulhisi3_inline): Use old umulhisi3 define_insn.
1716 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1718 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
1719 (msp430_check_plus_not_high_mem): New.
1720 (msp430_op_not_in_high_mem): Use new functions to check if the operand
1721 might be in low memory.
1722 Indicate that a 16-bit absolute address is in lower memory.
1724 2019-10-30 Martin Jambor <mjambor@suse.cz>
1726 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
1727 ultimate_alias_target.
1729 2019-10-30 Richard Biener <rguenther@suse.de>
1731 PR tree-optimization/92275
1732 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
1733 Copy all loop-closed PHIs.
1735 2019-10-30 Martin Liska <mliska@suse.cz>
1737 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
1738 const_tree as function argument.
1739 (func_checker::compare_decl): Likewise.
1740 (func_checker::operand_equal_p): Likewise.
1741 (func_checker::compare_variable_decl): Likewise.
1742 (func_checker::parse_labels): Likewise.
1743 * ipa-icf-gimple.h: Likewise.
1745 2019-10-30 Martin Liska <mliska@suse.cz>
1747 * ipa-icf-gimple.c (func_checker::compatible_types_p):
1748 Do not compare alias sets. It's handled by operand_equal_p.
1750 2019-10-30 Martin Liska <mliska@suse.cz>
1752 * ipa-icf-gimple.c (func_checker::func_checker): Do not
1753 initialize m_compare_polymorphic.
1754 (func_checker::compare_decl): Do not compare polymorphic types.
1755 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
1756 * ipa-icf.c (sem_function::equals_private): Do not call
1757 compare_polymorphic_p.
1759 2019-10-30 Martin Liska <mliska@suse.cz>
1761 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
1763 (func_checker::compare_memory_operand): Remove.
1764 (func_checker::compare_cst_or_decl): Remove.
1765 (func_checker::operand_equal_valueize): Do not handle
1767 (func_checker::compare_gimple_call): Call compare_operand.
1768 (func_checker::compare_gimple_assign): Likewise.
1769 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
1770 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
1771 * ipa-icf.h (icf_handled_component_p): Remove.
1773 2019-10-30 Martin Liska <mliska@suse.cz>
1775 * ipa-icf-gimple.c (func_checker::hash_operand): New.
1776 (func_checker::compare_cst_or_decl): Remove handling
1778 (func_checker::compare_operand): Transform to ...
1779 (func_checker::operand_equal_p): ... this.
1780 * ipa-icf-gimple.h (class func_checker): Add
1781 operand_equal_p and hash_operand.
1782 * ipa-icf.c (sem_function::equals_private): Fix
1783 pushing and popping of cfun.
1785 2019-10-30 Martin Liska <mliska@suse.cz>
1787 * fold-const.c (operand_equal_p): Move to ...
1788 (operand_compare::operand_equal_p): ... here.
1789 (operand_compare::verify_hash_value): New.
1790 (add_expr): Move to ...
1791 (operand_compare::hash_operand): ... here.
1792 * fold-const.h (operand_equal_p): Move to the class.
1793 (class operand_compare): New.
1794 * tree.c (add_expr): Remove.
1796 2019-10-30 Martin Liska <mliska@suse.cz>
1798 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
1799 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
1801 2019-10-30 Martin Liska <mliska@suse.cz>
1805 * cgraph.c (cgraph_node::get_create): Overwrite node->order
1806 from a first_clone in order to get proper LTO section
1808 (cgraph_node::get_untransformed_body):
1809 Use lto_get_section_data where symtab_node::order
1811 * cgraphclones.c (cgraph_node::find_replacement):
1812 Update also symbol order.
1813 * ipa-fnsummary.c (ipa_fn_summary_read):
1814 Use new function lto_get_summary_section_data.
1815 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
1816 * ipa-icf.c (sem_item_optimizer::read_summary):
1818 * ipa-prop.c (ipa_prop_read_jump_functions):
1820 (ipcp_read_transformation_summaries): Likewise.
1821 * ipa-sra.c (ipa_sra_read_summary): Likewise.
1822 * lto-cgraph.c (input_node): Add also order_base.
1823 (input_varpool_node): Likewise.
1824 (input_cgraph_1): Assign the order_base.
1825 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
1826 * lto-opts.c (lto_write_options): Pass new argument.
1827 * lto-section-in.c (lto_get_section_data): Add new argumente order.
1828 (lto_get_summary_section_data): New.
1829 (lto_get_raw_section_data): Add order argument.
1830 (lto_create_simple_input_block): Likewise.
1831 * lto-section-out.c (lto_destroy_simple_output_block):
1833 * lto-streamer-in.c (lto_input_toplevel_asms):
1834 Use lto_get_summary_section_data.
1835 (lto_input_mode_table): Likewise.
1836 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
1837 (lto_output_toplevel_asms): Pass new argument.
1838 (copy_function_or_variable): Likewise.
1839 (produce_lto_section):Likewise.
1840 (produce_symtab): Likewise.
1841 (lto_write_mode_table): Likewise.
1842 (produce_asm_for_decls): Likewise.
1843 * lto-streamer.c (lto_get_section_name): Concat symbol name
1845 * lto-streamer.h (lto_get_section_data): Add order argument.
1846 (lto_get_summary_section_data): New.
1847 (lto_get_raw_section_data): Add order argument.
1848 (lto_get_section_name): Likewise.
1849 * varpool.c (varpool_node::get_constructor): Pass order argument.
1851 2019-10-30 Jakub Jelinek <jakub@redhat.com>
1853 PR tree-optimization/92262
1854 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
1855 ubase or cbase here.
1856 (remove_unused_ivs): Unshare comp before using it.
1858 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
1860 * ipa-prop.c (update_jump_functions_after_inlining):
1861 Watch for missing summaries.
1863 2019-10-30 Richard Biener <rguenther@suse.de>
1865 PR tree-optimization/65930
1866 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
1867 chains also allow a leading and trailing conversion.
1868 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
1869 intermediate reduction chains.
1870 (vect_analyze_slp_instance): Likewise. Build a SLP
1871 node for a trailing conversion manually.
1873 2019-10-30 Martin Liska <mliska@suse.cz>
1875 * cgraph.c (cgraph_node::local_info): Transform to ...
1876 (cgraph_node::local_info_node): ... this.
1877 (cgraph_node::dump): Remove cgraph_local_info and
1878 put its fields directly into cgraph_node.
1879 (cgraph_node::get_availability): Likewise.
1880 (cgraph_node::make_local): Likewise.
1881 (cgraph_node::verify_node): Likewise.
1882 * cgraph.h (struct GTY): Likewise.
1883 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
1884 (duplicate_thunk_for_node): Likewise.
1885 (cgraph_node::create_clone): Likewise.
1886 (cgraph_node::create_virtual_clone): Likewise.
1887 (cgraph_node::create_version_clone): Likewise.
1888 * cgraphunit.c (cgraph_node::reset): Likewise.
1889 (cgraph_node::finalize_function): Likewise.
1890 (cgraph_node::add_new_function): Likewise.
1891 (analyze_functions): Likewise.
1892 * combine.c (setup_incoming_promotions): Likewise.
1893 * config/i386/i386.c (ix86_function_regparm): Likewise.
1894 (ix86_function_sseregparm): Likewise.
1895 (init_cumulative_args): Likewise.
1896 * ipa-cp.c (determine_versionability): Likewise.
1897 (count_callers): Likewise.
1898 (set_single_call_flag): Likewise.
1899 (initialize_node_lattices): Likewise.
1900 (estimate_local_effects): Likewise.
1901 (create_specialized_node): Likewise.
1902 (identify_dead_nodes): Likewise.
1903 * ipa-fnsummary.c (compute_fn_summary): Likewise.
1904 (ipa_fn_summary_generate): Likewise.
1905 * ipa-hsa.c (check_warn_node_versionable): Likewise.
1906 (process_hsa_functions): Likewise.
1907 * ipa-icf.c (set_local): Likewise.
1908 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
1909 * ipa-inline.c (speculation_useful_p): Likewise.
1910 * ipa-profile.c (ipa_propagate_frequency): Likewise.
1911 (ipa_profile): Likewise.
1912 * ipa-split.c (split_function): Likewise.
1913 (execute_split_functions): Likewise.
1914 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
1915 (ipa_sra_ipa_function_checks): Likewise.
1916 * ipa-visibility.c (function_and_variable_visibility): Likewise.
1917 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
1918 * lto-cgraph.c (lto_output_node): Likewise.
1919 (input_overwrite_node): Likewise.
1920 * multiple_target.c (expand_target_clones): Likewise.
1921 * omp-simd-clone.c (simd_clone_create): Likewise.
1922 * trans-mem.c (expand_call_tm): Likewise.
1923 (ipa_tm_mayenterirr_function): Likewise.
1924 (ipa_tm_diagnose_tm_safe): Likewise.
1925 (ipa_tm_diagnose_transaction): Likewise.
1926 (ipa_tm_create_version): Likewise.
1927 (ipa_tm_transform_calls_redirect): Likewise.
1928 (ipa_tm_execute): Likewise.
1929 * tree-inline.c (expand_call_inline): Likewise.
1931 2019-10-29 Martin Liska <mliska@suse.cz>
1933 * symbol-summary.h (function_summary): Pass memory location
1934 to underlaying hash_map (or vec).
1935 (V>::fast_function_summary): Likewise.
1937 2019-10-29 Martin Liska <mliska@suse.cz>
1939 * ggc.h (ggc_alloc_no_dtor): New function.
1940 * ipa-fnsummary.c (ipa_free_fn_summary): Call
1941 destructor and ggc_free.
1942 (ipa_free_size_summary): Call delete instead
1944 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
1945 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
1946 (ipa_free_all_edge_args): Call destructor and ggc_free.
1947 (ipa_free_all_node_params): Likewise.
1948 (ipcp_free_transformation_sum): Likewise.
1949 * ipa-prop.h (ipa_check_create_node_params):
1950 Call new ggc_alloc_no_dtor.
1951 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
1952 (ipa_sra_analysis): Call destructor and ggc_free.
1953 Replace release with delete operator.
1954 * symbol-summary.h (release): Remove ..
1955 (V>::~fast_function_summary): and move logic here.
1956 Likewise for other classes.
1958 2019-10-29 Richard Biener <rguenther@suse.de>
1960 PR tree-optimization/92260
1961 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
1964 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
1966 PR tree-optimization/88915
1967 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
1968 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
1969 and make the valueize function pointer also take a void pointer.
1970 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
1971 around vn_valueize, to call it without a context.
1972 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
1973 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
1974 (~_loop_vec_info): Release epilogue_vinfos.
1975 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
1976 number of iterations of epilogue.
1977 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
1978 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
1979 versioning threshold needed for main loop.
1980 (vect_analyze_loop): Likewise.
1981 (find_in_mapping): New helper function.
1982 (update_epilogue_loop_vinfo): New function.
1983 (vect_transform_loop): When vectorizing epilogues re-use analysis done
1984 on main loop and call update_epilogue_loop_vinfo to update it.
1985 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
1986 stmts on loop preheader edge.
1987 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
1988 we decided to vectorize epilogues. Update epilogues NITERS and
1989 construct ADVANCE to update epilogues data references where needed.
1990 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
1991 (vect_do_peeling, vect_update_inits_of_drs,
1992 determine_peel_for_niter, vect_analyze_loop): Add or update
1994 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
1995 created loop_vec_info's for epilogues when available. Otherwise analyse
1996 epilogue separately.
1998 2019-10-29 Richard Biener <rguenther@suse.de>
2000 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
2003 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
2005 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
2006 index for the COND_EXPR from stmt_info rather than reduc_info.
2008 2019-10-29 Richard Biener <rguenther@suse.de>
2010 PR tree-optimization/65930
2011 * tree-vect-loop.c (check_reduction_path): Relax single-use
2012 check allowing out-of-loop uses.
2013 (vect_is_simple_reduction): SLP reduction chains cannot have
2014 intermediate stmts used outside of the loop.
2015 (vect_create_epilog_for_reduction): The adjustment might need
2017 (vectorizable_reduction): Annotate live stmts of the reduction
2018 chain with STMT_VINFO_REDUC_DEF.
2019 * tree-vect-stms.c (process_use): Remove no longer true asserts.
2021 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
2023 * calls.c (pass_by_reference): Leave the target to decide whether
2024 POLY_INT_CST-sized arguments should be passed by value or reference,
2025 rather than forcing them to be passed by reference.
2026 (must_pass_in_stack_var_size): Likewise.
2027 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
2028 V31_REGNUM to P15_REGNUM.
2029 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
2030 Take an extra "silent_p" parameter, defaulting to false.
2031 (aarch64_sve::svbool_type_p): Declare.
2032 (aarch64_sve::nvectors_if_data_type): Likewise.
2033 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
2034 (aarch64_frame::reg_offset): Turn into poly_int64s.
2035 (aarch64_frame::save_regs_size): Likewise.
2036 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
2037 (aarch64_frame::sve_callee_adjust): Likewise.
2038 (aarch64_frame::spare_reg_reg): Likewise.
2039 (ARM_PCS_SVE): New arm_pcs value.
2040 (CUMULATIVE_ARGS::aapcs_nprn): New field.
2041 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
2042 (CUMULATIVE_ARGS::silent_p): Likewise.
2043 (BITS_PER_SVE_PRED): New macro.
2044 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
2045 function. Reject aarch64_vector_pcs attributes on SVE functions.
2046 (aarch64_attribute_table): Use the above handler.
2047 (aarch64_sve_abi): New function.
2048 (aarch64_sve_argument_p): Likewise.
2049 (aarch64_returns_value_in_sve_regs_p): Likewise.
2050 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
2051 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
2052 descriptor for them.
2053 (aarch64_simd_decl_p): Delete.
2054 (aarch64_emit_cfi_for_reg_p): New function.
2055 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
2056 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
2057 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
2058 as partly clobbered for the SVE PCS.
2059 (aarch64_function_ok_for_sibcall): Check whether the two functions
2060 use the same ABI, rather than checking specifically for whether
2061 they're aarch64_vector_pcs functions.
2062 (aarch64_pass_by_reference): Raise an error for attempts to pass
2063 SVE arguments when SVE is disabled. Pass SVE arguments by reference
2064 if there are not enough free registers left, or if the argument is
2066 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
2067 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
2069 (aarch64_layout_arg): Take a function_arg_info rather than
2070 individual properties. Handle SVE predicates, vectors and tuples.
2071 Raise an error if they are passed to unprototyped functions.
2072 (aarch64_function_arg): If the silent_p flag is set, suppress the
2073 usual error about using float registers without TARGET_FLOAT.
2074 (aarch64_init_cumulative_args): Take a silent_p parameter and store
2075 it in the cumulative_args structure. Initialize aapcs_nprn and
2076 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
2077 error about using float registers without TARGET_FLOAT.
2078 If the silent_p flag is not set, also raise an error about
2079 using SVE functions when SVE is disabled.
2080 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
2081 and call it for SVE functions too. Update aapcs_nprn similarly
2082 to the other register counts.
2083 (aarch64_layout_frame): If a big-endian function needs to save
2084 and restore Z8-Z15, search for a spare predicate that it can use.
2085 Store SVE predicates at the bottom of the register save area,
2086 followed by SVE vectors, then followed by the normal slots.
2087 Keep pointing the hard frame pointer at the base of the normal slots,
2088 above the SVE vectors. Update the various frame creation and
2089 tear-down strategies for the new layout, initializing the new
2090 sve_callee_adjust field. Add an additional layout for frames
2091 whose saved registers are all SVE registers.
2092 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
2093 (aarch64_return_address_signing_enabled): Likewise.
2094 (aarch64_push_regs, aarch64_pop_regs): Update calls to
2095 aarch64_reg_save_mode.
2096 (aarch64_adjust_sve_callee_save_base): New function.
2097 (aarch64_add_cfa_expression): Move earlier in file. Take the
2098 saved register as an rtx rather than a register number and use
2099 its mode for the MEM slot.
2100 (aarch64_save_callee_saves): Remove the mode argument and instead
2101 use aarch64_reg_save_mode to get the mode of each save slot.
2102 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
2103 offsets. Allow GP offsets to be saved at a VL-based offset from
2104 the stack, handling this case using the frame pointer if available
2105 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
2106 big-endian SVE functions; use normal moves for other SVE saves.
2107 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
2108 returns true. Add explicit CFA notes when not storing via the
2109 stack pointer. Do not try to pair SVE saves.
2110 (aarch64_restore_callee_saves): Cope with poly_int64 register
2111 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
2112 use normal moves for other SVE restores. Only add CFA restore notes
2113 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
2115 (aarch64_get_separate_components): Always keep the first SVE save
2116 in the prologue if we need to use it as a stack probe. Don't allow
2117 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
2118 Likewise the spare predicate register that they need. Update the
2119 offset calculation to account for the SVE save area. Use the
2120 appropriate range check for SVE LDR and STR instructions.
2121 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
2122 (aarch64_process_components): Likewise. Update the offset
2123 calculation to account for the SVE save area. Only mark the
2124 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
2125 Do not try to pair SVE saves.
2126 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
2127 reg_offsets. When handling the final allocation, expect the
2128 first SVE register save to be part of the initial allocation
2129 and for it to act as a probe at SP. Account for the SVE callee
2130 save area in the dump information.
2131 (aarch64_expand_prologue): Update the frame diagram. Fold the
2132 SVE callee allocation into the initial allocation if stack clash
2133 protection is enabled. Use new variables to track the offset
2134 of the frame chain (and hard frame pointer) from the current
2135 stack pointer, and likewise the offset of the bottom of the
2136 register save area. Update calls to aarch64_save_callee_saves
2137 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
2138 saving the FP&SIMD registers. Save the predicate registers.
2139 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
2140 into account when setting the stack pointer from the frame pointer,
2141 and when deciding whether we can inherit the initial adjustment
2142 amount from the prologue. Restore the predicate registers after
2143 the vector registers, then apply sve_callee_adjust, then restore
2144 the general registers.
2145 (aarch64_secondary_reload): Don't use secondary SVE reloads
2147 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
2148 (aarch64_short_vector_p): Return false for SVE types.
2149 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
2150 at the start of the function. Return false for SVE types.
2151 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
2153 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
2154 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
2155 to big-endian targets for bytewise moves.
2156 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
2158 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
2159 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2160 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2162 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
2163 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
2164 aarch64-sve-builtins-base.o to extra_objs. Add
2165 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
2166 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
2167 (aarch64-sve-builtins-shapes.o): Likewise.
2168 (aarch64-sve-builtins-base.o): New rules.
2169 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
2170 (aarch64_resolve_overloaded_builtin): Likewise.
2171 (aarch64_check_builtin_call): Likewise.
2172 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
2173 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
2175 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
2176 (aarch64_svprfop): New enum.
2177 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
2178 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
2179 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
2180 (aarch64_output_sve_cnt_pat_immediate): Likewise.
2181 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
2182 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
2183 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
2184 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
2185 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
2186 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
2187 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
2188 (aarch64_sve::mangle_builtin_type): Likewise.
2189 (aarch64_sve::resolve_overloaded_builtin): Likewise.
2190 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
2191 (aarch64_sve::expand_builtin): Likewise.
2192 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
2193 (aarch64_sve_int_mode): Likewise.
2194 (aarch64_ptrue_all_mode): New function.
2195 (aarch64_convert_sve_data_to_pred): Make public.
2196 (svprfop_token): New function.
2197 (aarch64_output_sve_prefetch): Likewise.
2198 (aarch64_fold_sve_cnt_pat): Likewise.
2199 (aarch64_output_sve_cnt_pat_immediate): Likewise.
2200 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
2201 instead of gen_while_ult.
2202 (aarch64_replace_reg_mode): Make public.
2203 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
2204 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
2205 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
2206 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
2207 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
2208 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
2209 (aarch64_sve_ptrue_svpattern_p): Likewise.
2210 (aarch64_sve_pred_valid_immediate): Check
2211 aarch64_sve_ptrue_svpattern_p.
2212 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
2213 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
2215 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
2216 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
2217 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
2218 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
2219 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
2220 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
2222 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
2223 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
2224 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
2225 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
2226 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
2227 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
2228 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
2229 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
2230 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
2231 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
2232 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
2233 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
2234 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
2235 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
2236 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
2237 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
2238 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
2239 (Vesize): Handle partial vector modes.
2240 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
2242 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
2244 (s, paired_extend, inc_dec): New code attributes.
2245 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
2246 (SVE_INT_UNARY): Add UNSPEC_RBIT.
2247 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
2248 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
2249 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
2250 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
2252 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
2253 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
2254 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
2255 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
2256 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
2257 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
2258 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
2259 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
2260 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
2261 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
2262 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
2263 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
2264 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
2265 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
2266 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
2267 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
2269 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
2270 (binqops_op, binqops_op_rev, last_op): New int attributes.
2271 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
2272 (fn, ab): New int attributes.
2273 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
2274 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
2275 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
2276 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
2278 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
2279 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
2280 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
2281 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
2282 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
2284 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
2285 (brk_reg_con, brk_reg_opno): New int attributes.
2286 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
2287 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
2288 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
2290 (max_elem_bits): New int attribute.
2291 (min_elem_bits): Handle UNSPEC_RBIT.
2292 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
2293 TRUNCATE as well as SUBREG.
2294 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
2295 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
2296 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
2297 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
2298 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
2299 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
2300 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
2301 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
2302 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
2303 (aarch64_gather_scale_operand_h): New predicates.
2304 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
2305 (vgd, vgh, vgw, vsQ, vsS): New constraints.
2306 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
2307 (*aarch64_sve_reinterpret<mode>): Allow any source register
2308 instead of requiring an exact match.
2309 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
2310 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
2311 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
2312 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
2313 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
2314 (aarch64_update_ffrt): New patterns.
2315 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2316 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2317 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2318 (@aarch64_ld<fn>f1<mode>): New patterns.
2319 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2320 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2321 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2322 (@aarch64_ldnt1<mode>): New patterns.
2323 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
2324 the scalar part of the address.
2325 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
2326 scalar part of the addresse and add an alternative for handling
2328 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
2329 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
2330 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2331 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2332 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
2333 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
2334 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
2335 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
2336 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2337 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2338 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
2339 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
2340 (@aarch64_sve_prefetch<mode>): New patterns.
2341 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
2342 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
2343 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
2344 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
2345 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
2346 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
2347 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
2348 (@aarch64_stnt1<mode>): New patterns.
2349 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
2350 the scalar part of the address.
2351 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
2352 the scalar part of the addresse and add an alternative for handling
2354 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
2355 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
2356 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
2357 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
2358 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
2359 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
2361 (vec_duplicate<mode>): Use QI as the mode of the input operand.
2362 (extract_last_<mode>): Generalize to...
2363 (@extract_<LAST:last_op>_<mode>): ...this.
2364 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
2365 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
2366 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
2367 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
2368 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
2369 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
2370 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
2371 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
2372 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
2373 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
2374 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
2375 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
2376 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
2377 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
2378 (*aarch64_adr_uxtw_unspec): Likewise.
2379 (*aarch64_adr_uxtw): Rename to...
2380 (*aarch64_adr_uxtw_and): ...this.
2381 (@aarch64_adr<mode>_shift): New expander.
2382 (*aarch64_adr_shift_sxtw): New pattern.
2383 (aarch64_<su>abd<mode>_3): Rename to...
2384 (@aarch64_pred_<su>abd<mode>): ...this.
2385 (<su>abd<mode>_3): Update accordingly.
2386 (@aarch64_cond_<su>abd<mode>): New expander.
2387 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
2388 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
2389 (*<su>mul<mode>3_highpart): Rename to...
2390 (@aarch64_pred_<optab><mode>): ...this.
2391 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
2392 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
2393 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
2394 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
2395 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
2396 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
2397 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
2398 (*v<ASHIFT:optab><mode>3): Rename to...
2399 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
2400 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
2401 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
2402 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
2403 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
2404 (@cond_asrd<mode>): New expander.
2405 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
2406 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
2407 (*sdiv_pow2<mode>3): Delete.
2408 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
2409 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
2410 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
2411 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
2412 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
2413 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
2414 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
2415 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
2416 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
2417 (*add<SVE_F:mode>3): Rename to...
2418 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
2420 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
2421 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
2422 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
2423 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
2424 (*sub<SVE_F:mode>3): Rename to...
2425 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
2427 (@aarch64_pred_abd<SVE_F:mode>): New expander.
2428 (*fabd<SVE_F:mode>3): Rename to...
2429 (*aarch64_pred_abd<SVE_F:mode>): ...this.
2430 (@aarch64_cond_abd<SVE_F:mode>): New expander.
2431 (*mul<SVE_F:mode>3): Rename to...
2432 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
2434 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
2435 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
2437 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
2438 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
2439 (*<nlogical><PRED_ALL:mode>3): Rename to...
2440 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
2441 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
2442 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
2443 (*<logical_nn><PRED_ALL:mode>3): Rename to...
2444 (aarch64_pred_<logical_nn><mode>_z): ...this.
2445 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
2446 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
2447 (*fma<SVE_I:mode>4): Rename to...
2448 (@aarch64_pred_fma<SVE_I:mode>): ...this.
2449 (*fnma<SVE_I:mode>4): Rename to...
2450 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
2451 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
2452 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
2453 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
2454 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
2455 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
2456 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
2457 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
2458 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
2459 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
2460 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
2461 (@aarch64_sve_tmad<mode>): Likewise.
2462 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
2463 (*aarch64_sel_dup<mode>): Rename to...
2464 (@aarch64_sel_dup<mode>): ...this.
2465 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
2466 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
2467 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
2468 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
2469 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
2470 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
2471 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
2472 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
2473 (*fcm<cmp_op><mode>): Rename to...
2474 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
2475 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
2476 (*fcmuo<mode>): Rename to...
2477 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
2478 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
2479 (@aarch64_pred_fac<cmp_op><mode>): New expander.
2480 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
2481 (fold_extract_last_<mode>): Generalize to...
2482 (@fold_extract_<last_op>_<mode>): ...this.
2483 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
2484 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
2485 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
2486 DImode result explicit.
2487 (reduc_plus_scal_<mode>): Update accordingly.
2488 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
2489 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
2490 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
2491 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
2492 (*aarch64_sve_tbl<mode>): Rename to...
2493 (@aarch64_sve_tbl<mode>): ...this.
2494 (@aarch64_sve_compact<mode>): New pattern.
2495 (*aarch64_sve_dup_lane<mode>): Rename to...
2496 (@aarch64_sve_dup_lane<mode>): ...this.
2497 (@aarch64_sve_dupq_lane<mode>): New pattern.
2498 (@aarch64_sve_splice<mode>): Likewise.
2499 (aarch64_sve_<perm_insn><mode>): Rename to...
2500 (@aarch64_sve_<perm_insn><mode>): ...this.
2501 (*aarch64_sve_ext<mode>): Rename to...
2502 (@aarch64_sve_ext<mode>): ...this.
2503 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
2504 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
2506 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
2507 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
2509 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
2511 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
2512 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
2513 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
2514 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
2516 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
2517 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
2519 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
2520 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
2521 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
2523 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
2524 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
2525 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
2526 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
2527 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
2529 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
2530 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
2531 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
2532 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
2533 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
2534 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
2535 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
2536 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
2537 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
2538 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
2539 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
2540 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
2541 (aarch64_sve_cnt_pat): Likewise.
2542 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
2543 (*aarch64_sve_incsi_pat): Likewise.
2544 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
2545 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
2546 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
2547 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
2548 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
2549 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
2550 (*aarch64_sve_decsi_pat): Likewise.
2551 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
2552 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
2553 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
2554 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
2555 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
2556 (@aarch64_pred_cntp<mode>): Likewise.
2557 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
2559 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
2560 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
2561 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
2563 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
2565 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
2566 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
2567 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
2568 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
2569 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
2570 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
2571 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
2573 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
2574 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
2575 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
2577 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
2579 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
2581 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
2582 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
2584 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
2585 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
2587 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
2588 * config/aarch64/arm_sve.h: New file.
2589 * config/aarch64/aarch64-sve-builtins.h: Likewise.
2590 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
2591 * config/aarch64/aarch64-sve-builtins.def: Likewise.
2592 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
2593 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
2594 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
2595 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
2596 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
2597 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
2599 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
2601 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
2603 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
2606 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
2608 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
2609 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
2611 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
2612 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
2613 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
2614 (aarch64_hard_regno_nregs): Handle the new register classes.
2615 (aarch64_hard_regno_mode_ok): Likewise.
2616 (aarch64_regno_regclass): Likewise.
2617 (aarch64_class_max_nregs): Likewise.
2618 (aarch64_register_move_cost): Likewise.
2619 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
2620 as general register_operands.
2622 2019-10-29 Martin Liska <mliska@suse.cz>
2624 * ggc-common.c: One can't subtract unsigned types
2625 in compare function.
2627 2019-10-29 Martin Liska <mliska@suse.cz>
2629 * cgraphunit.c (symbol_table::compile): Pass
2630 title as dump_memory_report argument.
2631 * toplev.c (dump_memory_report): New argument.
2632 (finalize): Pass new argument.
2633 * toplev.h (dump_memory_report): Add argument.
2635 2019-10-29 Martin Liska <mliska@suse.cz>
2637 * ggc-common.c: Move Leak to the first column.
2639 2019-10-29 Martin Liska <mliska@suse.cz>
2641 * cgraphunit.c (symbol_table::compile): Remove argument
2642 for dump_memory_report.
2643 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
2644 (compare_final): Remove in order to make report
2646 * ggc.h (dump_ggc_loc_statistics): Remove argument.
2647 * mem-stats.h (mem_alloc_description::get_list):
2649 (mem_alloc_description::dump): Likewise here.
2650 * toplev.c (dump_memory_report): Remove final
2652 (finalize): Likewise.
2653 * toplev.h (dump_memory_report): Remove argument.
2655 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
2657 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
2658 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
2659 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
2660 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
2663 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
2665 * coretypes.h (string_int_pair): New typedef.
2666 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
2667 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
2668 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
2670 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
2672 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
2673 (simulate_builtin_function_decl): Declare.
2674 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
2675 (LANG_HOOKS_INITIALIZER): Include it.
2676 * langhooks.c (add_builtin_function_common): Rename to...
2677 (build_builtin_function): ...this. Add a location parameter and use
2678 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
2680 (add_builtin_function): Update accordingly, passing the returned
2681 decl to the lang hook.
2682 (add_builtin_function_ext_scope): Likewise
2683 (simulate_builtin_function_decl): New function.
2685 2019-10-29 Jakub Jelinek <jakub@redhat.com>
2687 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
2688 example, use actual names of supported offload targets.
2691 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
2693 2019-10-28 Martin Sebor <msebor@redhat.com>
2695 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
2696 (handle_store): Pass argument to get_addr_stridx.
2698 2019-10-28 Martin Sebor <msebor@redhat.com>
2700 PR tree-optimization/92226
2701 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
2702 the offset is in the open range outlined by SI's length.
2704 2019-10-28 Martin Sebor <msebor@redhat.com>
2707 * doc/cpp.texi (__has_builtin): Document.
2708 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
2710 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
2713 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
2714 doubleword and low doubleword result of multiplication on
2717 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
2718 pure qualifier to the built-in.
2719 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
2721 (struct mips_builtin_description): Add is_pure flag.
2722 (mips_init_builtins): Mark built-in as pure if the flag in the
2723 corresponding mips_builtin_description struct is set.
2725 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
2726 alternative which covers the floating-point input value. Also
2727 forbid the split of insert.d pattern for floating-point values.
2729 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
2731 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
2732 * config/riscv/riscv-sr.c: New file.
2733 * config/riscv/riscv.c (riscv_reorg): New function.
2734 (TARGET_MACHINE_DEPENDENT_REORG): Define.
2735 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
2736 (riscv_remove_unneeded_save_restore_calls): Declare.
2737 * config/riscv/t-riscv (riscv-sr.o): New build rule.
2739 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2741 PR tree-optimization/92163
2742 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
2743 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
2744 before calling bitmap_set_bit.
2745 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
2746 delete_dead_or_redundant_assignment.
2747 (dse_dom_walker::dse_optimize_stmt): Likewise.
2748 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
2750 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2753 * tree-vect-stmts.c (vectorizable_condition): Support
2754 EXTRACT_LAST_REDUCTION with fully-masked loops.
2756 2019-10-28 Richard Biener <rguenther@suse.de>
2758 PR tree-optimization/92252
2759 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
2760 STMT_VINFO_REDUC_IDX when swapping operands.
2762 2019-10-28 Richard Biener <rguenther@suse.de>
2764 PR tree-optimization/92241
2765 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
2766 we failed to update the reduction index do not use the pattern
2767 stmts for the reduction chain.
2768 (vectorizable_reduction): When the reduction chain is corrupt,
2770 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
2771 fail to update the reduction chain.
2773 2019-10-28 Richard Biener <rguenther@suse.de>
2775 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
2776 STMT_VINFO_REDUC_IDX from the actual stmt.
2777 (vect_transform_reduction): Likewise.
2778 (vectorizable_reduction): Compute the reduction chain length,
2779 do not recompute the reduction operand index. Remove no longer
2780 necessary restriction for condition reduction chains.
2782 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
2785 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
2786 condition for V2DImode.
2788 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
2790 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
2791 Remove %k operand modifier.
2792 (*vec_extractv2df_1_sse): Remove %q operand modifier.
2794 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
2796 PR rtl-optimization/92007
2797 * cfgcleanup.c (thread_jump): Add an assertion that we don't
2798 call it after reload if hot/cold partitioning has been done.
2799 (class pass_postreload_jump): Rename to
2800 pass_jump_after_combine.
2801 (make_pass_postreload_jump): Rename to
2802 make_pass_jump_after_combine.
2803 * passes.def(pass_postreload_jump): Move before reload, rename
2804 to pass_jump_after_combine.
2805 * tree-pass.h (make_pass_postreload_jump): Rename to
2806 make_pass_jump_after_combine.
2808 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
2811 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
2812 for missing EDGE_REF
2813 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
2815 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
2817 PR tree-optimization/88760
2818 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
2819 Enable -funroll-loops for -O2 and above.
2820 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
2821 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
2822 do not turn on web and rngreg implicitly, if the unroller is not
2825 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
2827 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
2830 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
2832 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
2833 * cgraph.h (cgraph_node::rtl_info): Likewise.
2835 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
2837 * ipa-cp.c (propagate_constants_across_call): If args are not available
2838 just drop everything to varying.
2839 (find_aggregate_values_for_callers_subset): Watch for missing
2841 (find_more_scalar_values_for_callers_subs): Likewise.
2842 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
2843 update_jump_functions_after_inlining, propagate_controlled_uses):
2844 Watch for missing summaries.
2845 (ipa_propagate_indirect_call_infos): Remove summary after propagation
2847 (ipa_write_node_info): Watch for missing summaries.
2848 (ipa_read_edge_info): Create new ref.
2849 (ipa_edge_args_sum_t): Add remove.
2850 (IPA_EDGE_REF_GET_CREATE): New macro.
2851 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
2853 (remap_edge_change_prob): Likewise.
2855 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
2857 * ipa-inline-transform.c (inline_call): update function summaries
2858 after expanidng thunk.
2860 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
2862 * ipa-icf.c (sem_function::merge): Update function summaries.
2863 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
2865 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
2867 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
2868 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
2869 operand already has scalar mode.
2870 (iptr): Remove SF/DF.
2872 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
2875 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
2876 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
2879 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
2881 * config/i386/sse.md
2882 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
2883 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
2884 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
2885 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
2886 <sse>_vmmaskcmp<mode>3):
2887 Change predicates from vector_operand to nonimmediate_operand,
2888 constraints xBm to xm, since scalar operations don't need
2889 memory address alignment.
2890 (avx512f_vmcmp<mode>3<round_saeonly_name>,
2891 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
2892 round_saeonly_nimm_predicate with
2893 round_saeonly_nimm_scalar_predicate.
2894 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
2895 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
2896 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
2897 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
2898 avx512f_vmfmadd_<mode>_mask3<round_name>,
2899 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
2900 *avx512f_vmfmsub_<mode>_mask<round_name>,
2901 avx512f_vmfmsub_<mode>_mask3<round_name>,
2902 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
2903 *avx512f_vmfnmadd_<mode>_mask<round_name>,
2904 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
2905 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
2906 *avx512f_vmfnmsub_<mode>_mask<round_name>,
2907 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
2908 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
2909 cvtusi2<ssescalarmodesuffix>32<round_name>,
2910 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
2911 round_nimm_predicate with round_nimm_scalr_predicate.
2912 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
2913 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
2914 avx512er_vmrcp28<mode><round_saeonly_name>,
2915 avx512er_vmrsqrt28<mode><round_saeonly_name>,
2916 ): Replace round_saeonly_nimm_predicate with
2917 round_saeonly_nimm_scalar_predicate.
2918 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
2919 vector_operand with nonimmediate_operand.
2920 * config/i386/subst.md (round_scalar_nimm_predicate,
2921 round_saeonly_scalar_nimm_predicate): Replace
2922 vector_operand with nonimmediate_operand.
2924 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
2927 * config/i386/i386.md (*rcpsf2_sse): Add
2928 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
2929 (*rsqrtsf2_sse): Ditto.
2930 (*sqrt<mode>2_sse): Ditto.
2931 (sse4_1_round<mode>2): separate constraint vm, add
2932 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
2933 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
2935 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
2937 (*sse_vmrsqrtv4sf2): Ditto.
2938 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
2939 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
2940 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
2941 <iptr> pointer size modifier since vround support memory operand.
2943 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
2946 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
2949 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
2950 Tobias Burnus <tobias@codesourcery.com>
2952 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
2953 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
2956 2019-10-25 Richard Biener <rguenther@suse.de>
2958 PR tree-optimization/92222
2959 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
2960 (_slp_oprnd_info::second_pattern): Likewise.
2961 (_slp_oprnd_info::any_pattern): New.
2962 (vect_create_oprnd_info): Adjust.
2963 (vect_get_and_check_slp_defs): Compute whether any stmt is
2965 (vect_build_slp_tree_2): Avoid building up a node from scalars
2966 if any of the operand defs, not just the first, is in a pattern.
2968 2019-10-25 Richard Biener <rguenther@suse.de>
2970 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
2971 swapping if we actually have to modify the IL on a shared stmt.
2972 (vect_build_slp_tree_2): Never fail swapping on shared stmts
2973 because we no longer modify the IL.
2975 2019-10-25 Martin Liska <mliska@suse.cz>
2977 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
2979 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
2981 * tree-vect-loop.c (vectorizable_reduction): Restrict the
2982 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
2983 handled by vect_transform_reduction. Allow fully-masked loops
2984 to be used with reduction chains.
2985 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
2986 operations in fully-masked loops.
2987 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
2988 operations in fully-masked loops.
2990 2019-10-25 Richard Biener <rguenther@suse.de>
2992 * tree-vect-loop.c (vectorizable_reduction): Verify
2993 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
2995 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
2996 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
2999 2019-10-24 Jakub Jelinek <jakub@redhat.com>
3001 * gimplify.h (omp_construct_selector_matches): Declare.
3002 * gimplify.c (struct gimplify_omp_ctx): Add code member.
3003 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
3004 called function if needed for flag_openmp.
3005 (gimplify_scan_omp_clauses): Set ctx->code.
3006 (omp_construct_selector_matches): New function.
3007 * omp-general.h (omp_constructor_traits_to_codes,
3008 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
3009 * omp-general.c (omp_constructor_traits_to_codes,
3010 omp_context_selector_matches, omp_resolve_declare_variant): New
3013 * config/arc/arc.c (hwloop_optimize): Add missing space in string
3015 * config/rx/rx.c (rx_print_operand): Likewise.
3016 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
3017 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
3018 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
3020 * genemit.c (emit_c_code): Likewise.
3021 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
3023 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
3025 * symbols-summary.h (fast_function_summary<T *, V>::release,
3026 fast_call_summary<T *, V>::release): Free m_vector.
3028 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
3030 * cgraphunit.c (symbol_table::process_new_functions): Call
3031 ipa_free_size_summary.
3032 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
3033 (devirtualization_time_bonus): Update.
3034 (ipcp_propagate_stage): Update.
3035 * ipa-fnsummary.c (ipa_size_summaries): New.
3036 (ipa_fn_summary_alloc): Alloc size summary.
3037 (dump_ipa_call_summary): Update.
3038 (ipa_dump_fn_summary): Update.
3039 (analyze_function_body): Update.
3040 (compute_fn_summary): Likewise.
3041 (ipa_get_stack_frame_offset): New function.
3042 (inline_update_callee_summaries): Do not update frame offsets.
3043 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
3044 remove call and function summary.
3045 (ipa_update_overall_fn_summary): Update.
3046 (inline_read_section): Update.
3047 (ipa_fn_summary_write): Update.
3048 (ipa_free_fn_summary): Do not remove summaries.
3049 (ipa_free_size_summary): New.
3050 (release summary pass): Also run at WPA.
3051 * ipa-fnsummary.h (ipa_size_summary): Declare.
3052 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
3053 estimated_self_stack_size.
3054 (ipa_size_summary_t): New type.
3055 (ipa_size_summaries): Declare.
3056 (ipa_free_size_summary): Declare.
3057 (ipa_get_stack_frame_offset): Declare.
3058 * ipa-icf.c (sem_function::merge): Update.
3059 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
3060 (estimate_growth): Update.
3061 (growth_likely_positive): Update.
3062 (clone_inlined_nodes): Update.
3063 (inline_call): Update.
3064 * ipa-inline.c (caller_growth_limits): Update.
3065 (edge_badness): Update.
3066 (recursive_inlining): Update.
3067 (inline_small_functions): Update.
3068 (inline_to_all_callers_1): Update.
3069 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
3071 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
3073 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
3074 (uavg<mode>3_ceil): ... This.
3075 (altivec_vavgs<VI_char>): Rename to...
3076 (avg<mode>3_ceil): ... This.
3077 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
3078 VAVGUW, VAVGSW): Adjust.
3080 2019-10-24 Nathan Sidwell <nathan@acm.org>
3082 * dumpfile.c (dump_begin): Reorder decls to use RAII.
3084 2019-10-24 Martin Liska <mliska@suse.cz>
3086 * symbol-summary.h (gt_pch_nx): Mark all functions
3087 with gcc_unreachable as we do not expect to be called.
3089 2019-10-24 Richard Biener <rguenther@suse.de>
3091 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
3092 chains try harder with operand swapping and instead of
3093 putting a shifted chain into the reduction operands put
3094 a repetition of the final reduction op there as if we'd
3095 reassociate the expression.
3097 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
3099 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
3100 statics_not_read and statics_not_written to statics_read and
3101 statics_written respectively.
3102 (no_module_statics): New static var.
3103 (ipa_reference_get_not_read_global): Rename to ...
3104 (ipa_reference_get_read_global): ... this.
3105 (ipa_reference_get_not_written_global): Rename to ...
3106 (ipa_reference_get_written_global): ... this.
3107 (dump_static_vars_set_to_file): Dump no_module_statics.
3108 (copy_static_var_set): Add for propagation parameter.
3109 (ipa_init): Initialize no_module_statics.
3110 (ipa_ref_opt_summary_t::duplicate): Update.
3111 (ipa_ref_opt_summary_t::remove): Update.
3112 (propagate): Update.
3113 (write_node_summary_p): Look correctly for bitmap differences.
3114 (ipa_reference_write_optimization_summary): Update.
3115 (ipa_reference_read_optimization_summary): Update.
3117 (ipa_reference_get_not_read_global): Rename to ...
3118 (ipa_reference_get_read_global): ... this.
3119 (ipa_reference_get_not_written_global): Rename to ...
3120 (ipa_reference_get_written_global): ... this.
3121 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
3122 (call_may_clobber_ref_p_1): Update.
3124 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3126 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
3128 (msp430_hard_regno_nregs_with_padding): Remove.
3130 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3132 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
3133 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
3134 shift amount is between 1 and 4.
3135 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
3138 2019-10-24 Richard Biener <rguenther@suse.de>
3140 PR tree-optimization/92205
3141 * tree-vect-loop.c (vectorizable_reduction): Restrict
3142 search for alternate vectype_in to lane-reducing patterns
3145 2019-10-24 Richard Biener <rguenther@suse.de>
3147 PR tree-optimization/92203
3148 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
3149 Skip eliminating conversion stmts inserted by insertion.
3151 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
3153 * config/s390/s390.c (s390_get_thread_pointer): Use
3154 gen_get_thread_pointer.
3155 (s390_expand_split_stack_prologue): Likewise.
3156 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
3157 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
3158 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
3159 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
3162 2019-10-24 Richard Biener <rguenther@suse.de>
3164 * tree-vect-slp.c (vect_analyze_slp): When reduction group
3165 SLP discovery fails try to handle the reduction as part
3166 of SLP reduction discovery.
3168 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
3170 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
3172 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
3173 attribute if it exists, rather than the insn size. If we use the
3174 insn size, adjust the size to remove the extra size that prefixed
3176 (rs6000_adjust_insn_length): New function.
3177 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
3178 update the instruction sized if prefixed instructions are used.
3179 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
3180 (non_prefixed_length attribute): Delete.
3181 (num_insns attribute): New insn attribute to return the number of
3183 (max_prefixed_insns attribute): New insn attribute to return the
3184 maximum number of prefixed instructions in an insn.
3185 (length attribute): Do not adjust for prefix instructions here,
3186 punt to ADJUST_INSN_LENGTH.
3187 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
3188 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
3189 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
3190 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
3191 max_prefixed_insns and num_insns.
3193 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
3194 (movtd_64bit_nodm): Reformat.
3195 (mov<mode>_32bit): Reformat.
3196 (mov<mode>_softfloat): Reformat.
3197 (FMOVE128_GPR splitter): Reformat.
3198 (DIFD splitter): Reformat.
3199 (TI2 splitter): Reformat.
3200 * config/rs6000/predicates.md (lwa_operand): If the bottom two
3201 bits of the offset for the memory address are non-zero, use PLWA
3202 if prefixed instructions are available.
3204 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
3206 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
3208 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
3210 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
3213 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
3215 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
3216 (cmp_symbol_files): New.
3217 (lto_output): Copy sections in file order.
3218 * lto-streamer.h (lto_file_decl_data): Add field order.
3220 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
3222 * ipa-reference.h (ipa_reference_var_uid): Move offline.
3223 * ipa-reference.c (reference_vars_map_t): new type.
3224 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
3225 (ipa_reference_var_uid): Implement.
3226 (varpool_node_hooks): New static var.
3227 (varpool_removal_hook): New function.
3228 (is_improper): Do not check bitmap for id==-1
3229 (get_static_name): Update.
3230 (ipa_init): Initialize new datastructures.
3231 (analyze_function): Do not recompute ids.
3232 (propagate): Free reference_vars_to_consider.
3233 (stream_out_bitmap): Update.
3234 (ipa_reference_read_optimization_summary): Update.
3236 2019-10-23 qing zhao <qing.zhao@oracle.com>
3238 PR gcov-profile/91971
3239 * coverage.c (coverage_init): Mangle the full path of filename when
3240 filename is a absolute path.
3242 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3244 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
3245 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
3246 (msp430_has_hwmult): New.
3247 (msp430_output_labelref):
3248 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
3249 * config/msp430/msp430.md (mulhisi3): Likewise.
3250 (umulhisi3): Likewise.
3251 (mulsidi3): Likewise.
3252 (umulsidi3): Likewise.
3254 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
3257 * params.def (inline-heuristics-hint-percent): Set to 600.
3259 2019-10-23 Richard Biener <rguenther@suse.de>
3261 PR tree-optimization/65930
3262 * tree-vect-loop.c (check_reduction_path): Allow conversions
3263 that only change the sign.
3264 (vectorizable_reduction): Relax latch def stmts we handle further.
3266 2019-10-23 Jakub Jelinek <jakub@redhat.com>
3269 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
3270 (remove_unused_ivs): Use it instead of get_computation_at. When
3271 choosing best candidate, only consider candidates where
3272 get_debug_computation_at actually returns non-NULL.
3274 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
3276 PR tree-optimization/92131
3277 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
3278 range would be symbolic, drop to varying for any explicit overflow
3279 in the constant part or if neither range is a singleton.
3281 2019-10-23 Martin Liska <mliska@suse.cz>
3284 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
3287 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
3289 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
3290 int_mode_for_mode rather than mode_for_int_vector for scalars.
3292 2019-10-23 Richard Biener <rguenther@suse.de>
3294 PR tree-optimization/92179
3295 * tree-vect-stmts.c (vectorizable_shift): For shift args
3296 that are all the same remove type restriction in the SLP case.
3297 Adjust SLP code to handle converting of the shift arg to
3298 only apply in case the modes are different.
3300 2019-10-23 Martin Liska <mliska@suse.cz>
3303 * ipa-inline.c (recursive_inlining): Do not print
3304 when curr->count is not initialized.
3306 2019-10-23 Richard Biener <rguenther@suse.de>
3308 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
3309 op from scalars in case there's a constant operand in its
3312 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
3314 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
3315 against out of range max skip or log values.
3317 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
3319 * cgraph.c (dump_graphviz): Change name to dump_name
3321 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
3323 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
3324 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
3325 subtraction from a carry operation.
3327 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
3329 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
3331 2019-10-22 Richard Biener <rguenther@suse.de>
3333 PR tree-optimization/92173
3334 * tree-vect-loop.c (vectorizable_reduction): If
3335 vect_transform_reduction cannot handle code-generation try without
3336 the single-def-use-cycle optimization. Pass optab_vector to
3337 optab_for_tree_code to get vector shifts as that's what we'd
3340 2019-10-22 Michael Matz <matz@suse.de>
3343 * gimple-loop-jam.c (any_access_function_variant_p): New function.
3344 (adjust_unroll_factor): Use it to constrain safety, new parameter.
3345 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
3347 2019-10-22 Richard Biener <rguenther@suse.de>
3349 PR tree-optimization/92173
3350 * tree-vect-loop.c (vectorizable_reduction): If
3351 vect_transform_reduction cannot handle code-generation try without
3352 the single-def-use-cycle optimization. Pass optab_vector to
3353 optab_for_tree_code to get vector shifts as that's what we'd
3356 2019-10-22 Martin Liska <mliska@suse.cz>
3358 * diagnostic-format-json.cc (json_from_expanded_location):
3359 Use json::integer_number.
3360 * gcov.c (output_intermediate_json_line): Use new
3361 json::integer_number.
3362 (output_json_intermediate_file): Likewise.
3363 * json.cc (number::print): Move to ...
3364 (float_number::print): ... this.
3365 (integer_number::print): New.
3366 (test_writing_numbers): Move to ...
3367 (test_writing_float_numbers): ... this.
3368 (test_writing_integer_numbers): New.
3369 (json_cc_tests): Register test_writing_integer_numbers.
3370 * json.h (class value): Add forward declaration
3371 for float_number and integer_number.
3372 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
3373 (class number): Move to ...
3374 (class float_number): ... this.
3375 (class integer_number): New.
3376 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
3377 Use json::integer_number.
3378 (optrecord_json_writer::location_to_json): Likewise.
3379 (optrecord_json_writer::profile_count_to_json): Likewise.
3380 (optrecord_json_writer::pass_to_json): Likewise.
3382 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
3384 * tree-vect-slp.c (vect_slp_bb_region): Check whether
3385 autodetected_vector_size rather than vector_size is zero.
3386 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3387 Set autodetected_vector_size immediately after calling
3388 vect_analyze_loop_2. Check for a fatal error before advancing
3391 2019-10-21 Jason Merrill <jason@redhat.com>
3393 * lock-and-run.sh: Check for process existence rather than timeout.
3395 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3397 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
3398 widening multiplication.
3400 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
3402 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
3403 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
3405 (subsi3_carryin_shift): Separate into register and constant controlled
3406 alternatives. Use shift_amount_operand for operand 4. Set shift
3407 attribute and simplify type attribute.
3408 (subsi3_carryin_shift_alt): Likewise.
3409 (rsbsi3_carryin_shift): Likewise.
3410 (rsbsi3_carryin_shift_alt): Likewise.
3411 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
3412 and register controlled shifts into distinct alternatives.
3413 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3414 (andsi_not_shiftsi_si_scc): Likewise.
3415 (arm_cmpsi_negshiftsi_si): Likewise.
3416 (not_shiftsi): Remove redundant M constraint from alternative 1.
3417 (not_shiftsi_compare0): Likewise.
3418 (arm_cmpsi_insn): Remove redundant alternative 2.
3419 (cmpsi_shift_swp): Likewise.
3420 (sub_shiftsi): Likewise.
3421 (sub_shiftsi_compare0_scratch): Likewise.
3422 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
3423 (thumb2_cmpsi_neg_shiftsi): Likewise.
3425 2019-10-21 Richard Biener <rguenther@suse.de>
3427 PR tree-optimization/92162
3428 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
3429 STMT_VINFO_REDUC_IDX in reduc_info.
3430 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3432 2019-10-21 Richard Biener <rguenther@suse.de>
3434 * tree-vectorizer.h (_slp_tree::ops): New member.
3435 (SLP_TREE_SCALAR_OPS): New.
3436 (vect_get_slp_defs): Adjust prototype.
3437 * tree-vect-slp.c (vect_free_slp_tree): Release
3438 SLP_TREE_SCALAR_OPS.
3439 (vect_create_new_slp_node): Initialize it. New overload for
3440 initializing by an operands array.
3441 (_slp_oprnd_info::ops): New member.
3442 (vect_create_oprnd_info): Initialize it.
3443 (vect_free_oprnd_info): Release it.
3444 (vect_get_and_check_slp_defs): Populate the operands array.
3445 Do not swap operands in the IL when not necessary.
3446 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
3447 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
3448 swap operands in the operands array. Do not swap operands in
3450 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
3451 (vect_gather_slp_loads): Fix.
3452 (vect_detect_hybrid_slp_stmts): Likewise.
3453 (vect_slp_analyze_node_operations_1): Search for a internal
3454 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
3455 (vect_slp_analyze_node_operations): Skip ops-only stmts for
3456 the def-type push/pop dance.
3457 (vect_get_constant_vectors): Compute number_of_vectors here.
3458 Use SLP_TREE_SCALAR_OPS and simplify greatly.
3459 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
3460 (vect_get_slp_defs): Simplify greatly.
3461 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
3462 (vect_transform_reduction): Likewise.
3463 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
3464 (vectorizable_call): Likewise.
3465 (vectorizable_operation): Likewise.
3466 (vectorizable_load): Likewise.
3467 (vectorizable_condition): Likewise.
3468 (vectorizable_comparison): Likewise.
3470 2019-10-21 Richard Biener <rguenther@suse.de>
3472 PR tree-optimization/92161
3473 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
3476 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3478 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
3479 (aarch64_rndr): New define_insn.
3480 (aarch64_rndrrs): Likewise.
3481 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
3482 (TARGET_RNG): Likewise.
3483 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
3485 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
3486 Add fourth argument in prototype.
3487 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
3488 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
3489 (aarch64_init_rng_builtins): Define.
3490 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
3491 (aarch64_expand_rng_builtin): Define.
3492 (aarch64_general_expand_builtin): Use IGNORE argument, handle
3494 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3495 __ARM_FEATURE_RNG when TARGET_RNG.
3496 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
3498 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
3500 * tree-vect-stmts (ensure_base_align): Only change alignment if new
3501 alignment is more restrictive.
3503 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
3505 * tree-vectorizer.h (vec_info::vector_size): New member variable.
3506 (vect_update_max_nunits): Update comment.
3507 (current_vector_size): Delete.
3508 * tree-vect-stmts.c (current_vector_size): Likewise.
3509 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
3510 of current_vector_size.
3511 (get_mask_type_for_scalar_type): Likewise.
3512 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3513 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
3514 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
3515 (vect_double_mask_nunits, vect_transform_loop): Likewise.
3516 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3517 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3519 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
3521 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
3522 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
3523 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
3526 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
3528 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
3529 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3530 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
3532 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
3534 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
3536 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
3538 (vect_set_loop_condition_masked): Update call accordingly.
3540 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
3542 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
3543 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
3544 (simple_integer_narrowing): Update call accordingly.
3545 (vectorizable_conversion): Likewise.
3547 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
3549 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
3550 (vectorizable_call): Update call accordingly.
3552 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
3554 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
3555 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3556 (duplicate_and_interleave): Update call accordingly.
3557 * tree-vect-loop.c (vectorizable_reduction): Likewise.
3559 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
3561 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
3562 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
3563 (vect_get_constant_vectors): Update call accordingly.
3564 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
3566 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
3568 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
3569 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3570 (vect_prologue_cost_for_slp_op): Update call accordingly.
3571 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
3572 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
3573 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
3574 (get_mask_type_for_scalar_type): Likewise.
3575 (vect_get_vector_types_for_stmt): Likewise.
3576 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
3577 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
3578 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
3579 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
3580 (vect_split_statement, vect_convert_input): Likewise.
3581 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
3582 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
3583 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
3584 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
3585 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
3586 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
3587 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
3588 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
3589 (vect_recog_mask_conversion_pattern): Likewise.
3590 (vect_add_conversion_to_pattern): Likewise.
3591 (vect_recog_gather_scatter_pattern): Likewise.
3592 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
3593 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
3595 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
3597 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
3598 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
3599 (vect_check_load_store_mask): Update call accordingly.
3600 (vect_get_mask_type_for_stmt): Likewise.
3601 * tree-vect-patterns.c (check_bool_pattern): Likewise.
3602 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
3603 (vect_convert_mask_for_vectype): Likewise.
3605 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
3607 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
3609 (vect_recog_dot_prod_pattern): Update call accordingly.
3610 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
3611 (vect_recog_widen_sum_pattern): Likewise.
3613 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
3615 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
3616 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
3617 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
3620 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
3622 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
3623 get_vectype_for_scalar_type_and_size instead of
3624 get_vectype_for_scalar_type.
3626 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
3628 * common.opt (-fcommon): Fix description.
3630 2019-10-20 Jakub Jelinek <jakub@redhat.com>
3632 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
3633 * config/i386/i386.c (ix86_pre_reload_split): New function.
3634 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
3635 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
3636 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
3637 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
3638 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
3639 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
3640 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
3641 *<shift_insn><dwi>3_doubleword_mask,
3642 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
3643 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
3644 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
3645 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
3646 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
3647 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
3648 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
3649 *avx2_<code>v8qiv8si2<mask_name>_2,
3650 *sse4_1_<code>v4qiv4si2<mask_name>_2,
3651 *sse4_1_<code>v4hiv4si2<mask_name>_2,
3652 *avx512f_<code>v8qiv8di2<mask_name>_2,
3653 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
3654 *sse4_1_<code>v2hiv2di2<mask_name>_2,
3655 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
3656 sse4_2_pcmpistr): Likewise.
3658 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
3660 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
3661 now defaults to https.
3663 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
3665 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
3666 skip non-zero array accesses.
3668 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
3670 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
3671 and return a boolean success value. Move the allocation and
3672 initialization of the bb_vec_info to...
3673 (vect_slp_bb_region): ...here. Update call accordingly.
3674 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
3675 than in vect_slp_analyze_bb_1.
3677 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
3679 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
3680 when processing the given datarefs for the first time and
3681 check_datarefs subsequently.
3682 (vect_slp_bb_region): New function, split out of...
3683 (vect_slp_bb): ...here. Don't recompute the region bounds and
3684 dataref sets when retrying with a different vector size.
3686 2019-10-19 Jakub Jelinek <jakub@redhat.com>
3687 Uroš Bizjak <ubizjak@gmail.com>
3690 * config/i386/predicates.md (int_nonimmediate_operand): New special
3692 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
3693 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
3694 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
3695 define_insn_and_split patterns.
3697 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
3699 * config/rs6000/rs6000.md: Delete out--of-date comment about
3700 special-casing integer loads.
3702 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
3704 * escaped_string.h (escaped_string): New header.
3705 * tree.c (escaped_string): Remove escaped_string class.
3707 2019-10-18 Martin Sebor <msebor@redhat.com>
3709 PR tree-optimization/92157
3710 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
3711 compute_string_length to return a negative result.
3713 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3715 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
3716 (negvsi3, negvdi3): Delete.
3717 (negdi2_compare): Delete.
3719 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3721 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
3723 (subdi3_compare1): Delete pattern.
3724 (subvsi3_borrow): New insn pattern.
3725 (subvsi3_borrow_imm): Likewise.
3727 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3729 * config/arm/arm.md (subv<mode>4): Delete.
3730 (subvdi4): New expander pattern.
3731 (subvsi4): Likewise. Handle some immediate values.
3732 (subvsi3_intmin): New insn pattern.
3733 (subvsi3): Likewise.
3734 (subvsi3_imm1): Likewise.
3735 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
3738 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3740 * config/arm/arm.md (usubvdi4): Allow registers or integers for
3741 incoming operands. Early split the calculation into SImode
3743 (usubvsi3_borrow): New insn pattern.
3744 (usubvsi3_borrow_imm): Likewise.
3746 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3748 * config/arm/arm.md (usubv<mode>4): Delete expansion.
3749 (usubvsi4): New pattern. Allow some immediate values for inputs.
3750 (usubvdi4): New pattern.
3752 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3754 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
3755 or second operand of the PLUS inside a DImode equality test to be
3756 sign-extend when selecting CC_Vmode.
3757 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
3759 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
3761 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
3762 (addsi3_cin_vout_0): Likewise.
3763 (adddi3_compareV): Delete.
3765 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3767 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
3768 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
3769 to transform this back into the summation version when that leads
3772 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3774 * config/arm/arm.md (addv<mode>4): Delete.
3775 (addvsi4): New pattern. Handle immediate values that the architecture
3777 (addvdi4): New pattern.
3778 (addsi3_compareV): Rename to ...
3779 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
3780 and use COMPARE rather than NE.
3781 (addsi3_compareV_imm): New pattern.
3782 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
3783 a signed-overflow check.
3785 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3787 * config/arm/arm-modes.def (CC_ADC): New CC mode.
3788 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
3790 (maybe_get_arm_condition_code): Handle CC_ADCmode.
3791 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
3793 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
3795 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
3796 (addsi3_cin_cout_imm_insn): Likewise.
3797 (adddi3_compareC): Delete insn.
3798 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
3800 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3802 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
3803 * (uaddv<mode>4): Delete expansion pattern.
3804 (uaddvsi4): New pattern.
3805 (uaddvdi4): Likewise.
3806 (addsi3_compareC): Delete pattern, change callers to use
3808 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
3809 reduce the number of alternatives and re-work type attribute handling.
3810 (addsi3_compare_op2): Clean up constraints to reduce the number of
3811 alternatives and re-work type attribute handling.
3812 (compare_addsi2_op0): Likewise.
3813 (compare_addsi2_op1): Likewise.
3815 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3817 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
3818 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
3819 for DImode operands.
3820 (arm_gen_dicompare_reg): Remove unreachable expansion code.
3821 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
3823 * config/arm/arm.md (arm_cmpdi_insn): Delete.
3824 (arm_cmpdi_unsigned): Delete.
3826 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3828 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
3829 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
3830 unchanged only if that will be cheaper.
3831 (arm_select_cc_mode): Recognize a swapped comparison that will
3832 be regenerated using RSBS or RSCS. Relax restriction on selecting
3834 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
3836 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
3838 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
3840 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
3841 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
3843 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3845 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
3846 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
3848 (arm_gen_dicompare_reg): New code to early expand the sub-operations
3849 of EQ, NE, LT, GE, LTU and GEU.
3850 * config/arm/iterators.md (CC_EXTEND): New code attribute.
3851 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
3852 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
3853 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
3854 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
3856 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3858 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
3860 (cstoredi4): Similarly, but for operand 3.
3861 * config/arm/arm.c (arm_canoncialize_comparison): Allow
3862 canonicalization of unsigned compares with a constant on Arm.
3863 Prefer using const+1 and adjusting the comparison over swapping the
3864 operands whenever the original constant was not valid.
3865 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
3867 (arm_validize_comparison): Do not force invalid DImode operands to
3870 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3872 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
3873 return CC_Zmode if comparing against a constant where one word is
3875 (arm_gen_compare_reg): Split DImode handling to ...
3876 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
3877 against simple constants.
3878 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
3880 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3882 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
3883 (rsbsi3_carryin_shift_alt): Likewise.
3885 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3887 * config/arm/arm.md (negscc_borrow): New pattern.
3888 (mov_negscc): Don't split if the insn would match negscc_borrow.
3889 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
3890 (thumb2_mov_negscc_strict_it): Likewise.
3892 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3894 * config/arm/arm.c (arm_insn_cost): New function.
3895 (TARGET_INSN_COST): Override default definition.
3897 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3899 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
3902 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3904 * config/arm/arm.c (strip_carry_operation): New function.
3905 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
3908 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3910 * config/arm/predicates.md (arm_carry_operation): New special
3912 * config/arm/iterators.md (LTUGEU): Delete iterator.
3913 (cnb): Delete code attribute.
3914 (optab): Delete ltu and geu elements.
3915 * config/arm/arm.md (addsi3_carryin): Renamed from
3916 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
3917 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
3918 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
3919 (addsi3_carryin_clobercc): Similarly.
3920 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
3923 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3925 * config/arm/arm.md (arm_subdi3): Delete insn.
3926 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
3928 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3930 * config/arm/arm-modes.def (CC_RSB): New CC mode.
3931 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
3932 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
3934 (maybe_get_arm_condition_code): Handle CC_RSBmode.
3935 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
3937 (subdi3): Rewrite to early-expand the sub-operations.
3938 (rsb_im_compare): New pattern.
3940 (negdi2_insn): Delete.
3941 (arm_negsi2): Correct type attribute to alu_imm.
3942 (negsi2_0compare): New insn pattern.
3943 (negsi2_carryin): New insn pattern.
3945 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3947 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
3950 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3952 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
3953 to match canonical form.
3955 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3957 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
3958 (extend<mode>di2): Likewise.
3960 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3962 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
3963 * config/arm/arm.c (arm_decompose_di_binop): New function.
3964 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
3965 If not generating Thumb-1 code, decompose the operation into 32-bit
3967 * add0si_carryin_<optab>: New pattern.
3969 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
3971 * arm.md (adddi3): Only accept register operands.
3972 (arm_adddi3): Convert to simple insn with no split. Do not accept
3974 (adddi_sesidi_di): Delete patern.
3975 (adddi_zesidi_di): Likewise.
3976 (uaddv<mode>4): Use LTU as condition for branch.
3977 (adddi3_compareV): Convert to simple insn with no split.
3978 (addsi3_compareV_upper): Delete pattern.
3979 (adddi3_compareC): Convert to simple insn with no split. Correct
3980 flags setting expression.
3981 (addsi3_compareC_upper): Delete pattern.
3982 (addsi3_compareC): Correct flags setting expression.
3983 (subdi3_compare1): Convert to simple insn with no split.
3984 (subsi3_carryin_compare): Delete pattern.
3985 (arm_subdi3): Convert to simple insn with no split.
3986 (subdi_zesidi): Delete pattern.
3987 (subdi_di_sesidi): Delete pattern.
3988 (subdi_zesidi_di): Delete pattern.
3989 (subdi_sesidi_di): Delete pattern.
3990 (subdi_zesidi_zesidi): Delete pattern.
3991 (negvdi3): Use s_register_operand.
3992 (negdi2_compare): Convert to simple insn with no split.
3993 (negdi2_insn): Likewise.
3994 (negsi2_carryin_compare): Delete pattern.
3995 (negdi_zero_extendsidi): Delete pattern.
3996 (arm_cmpdi_insn): Convert to simple insn with no split.
3997 (negdi2): Don't call gen_negdi2_neon.
3998 * config/arm/neon.md (adddi3_neon): Delete pattern.
3999 (subdi3_neon): Delete pattern.
4000 (negdi2_neon): Delete pattern.
4001 (splits for negdi2_neon): Delete splits.
4003 2019-10-18 Jakub Jelinek <jakub@redhat.com>
4006 * ggc-page.c (release_pages): Read g->alloc_size before free rather
4009 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
4011 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
4012 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
4013 new multilib variants and new mappings.
4015 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
4018 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
4020 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4021 Richard Sandiford <richard.sandiford@arm.com>
4024 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
4025 and define hashmap traits for it.
4026 (loop_vec_info::scalar_cond_masked_set): New member.
4027 (vect_record_loop_mask): Adjust prototype.
4028 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
4030 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
4031 vect_record_loop_mask.
4032 (vectorizable_live_operation): Likewise.
4033 (vect_record_loop_mask): New param scalar_mask. Add entry
4034 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
4035 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
4036 Pass it as last arg to vect_record_loop_mask.
4037 (vectorizable_call): Pass scalar_mask as last arg to
4038 vect_record_loop_mask.
4039 (vectorizable_store): Likewise.
4040 (vectorizable_load): Likewise.
4041 (vectorizable_condition): Check if another part of vectorized code
4042 applies loop_mask to condition or to it's inverse, and if yes,
4043 apply loop_mask to result of vector comparison.
4045 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
4047 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
4049 2019-10-18 Jakub Jelinek <jakub@redhat.com>
4051 PR tree-optimization/92056
4052 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
4053 before calling compute_builtin_object_size.
4055 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
4058 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
4059 (movdi_low_st): Delete.
4060 * config/rs6000/rs6000.c
4061 (darwin_rs6000_legitimate_lo_sum_const_p): New.
4062 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
4063 * config/rs6000/rs6000.md (movsi_low): Delete.
4065 2019-10-17 Jason Merrill <jason@redhat.com>
4067 * gimplify.h (get_initialized_tmp_var): Add default argument to
4069 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
4070 NULL post_p argument.
4071 * targhooks (std_gimplify_va_arg_expr): Likewise.
4073 2019-10-17 Richard Biener <rguenther@suse.de>
4075 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
4076 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
4077 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
4078 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
4079 * tree-vect-loop.c (vect_is_simple_reduction): Set
4080 STMT_VINFO_REDUC_CODE.
4081 (vectorizable_reduction): Remove dead and redundant code, use
4082 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
4084 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
4086 Fix breakage introduced by r276985.
4088 * config/avr/avr.c (avr_option_override): Remove set of
4089 PARAM_ALLOW_STORE_DATA_RACES.
4090 * common/config/avr/avr-common.c (avr_option_optimization_table)
4091 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
4093 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
4095 * config/i386/i386.h (processor_costs): Add clear_ratio.
4096 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
4097 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
4098 of 6 and move_ratio in all cost models.
4100 2019-10-17 Richard Biener <rguenther@suse.de>
4102 * tree-vect-loop.c (check_reduction_path): Compute reduction
4104 (vect_is_simple_reduction): Remove special-case of single-stmt
4105 reduction path detection.
4107 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
4109 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
4111 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
4113 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
4114 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
4115 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
4116 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
4117 New combine patterns.
4118 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
4120 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
4122 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
4124 * tree-vrp.c (value_range_base::dump): Display +INF for both
4125 pointers and integers when appropriate.
4127 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
4129 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
4130 when to use versioning threshold.
4132 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
4134 * tree-vect-loop.c (determine_peel_for_niter): New function contained
4135 outlined code from ...
4136 (vect_analyze_loop_2): ... here.
4138 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
4140 * tree-vect-loop.c (vect_transform_loop): Move code from here...
4141 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
4142 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
4144 2019-10-17 Richard Biener <rguenther@suse.de>
4146 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
4147 (vect_is_simple_reduction): Move all validity checks ...
4148 (vectorizable_reduction): ... here. Compute whether we
4149 need a fold-left reduction here.
4150 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
4151 both overloads, check needs_fold_left_reduction_p directly.
4152 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
4154 2019-10-17 Richard Biener <rguenther@suse.de>
4156 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
4157 TARGET_MEM_REF creation.
4159 2019-10-17 Richard Biener <rguenther@suse.de>
4161 PR tree-optimization/92129
4162 * tree-vect-loop.c (vectorizable_reduction): Also fail
4163 on GIMPLE_SINGLE_RHS.
4165 2019-10-17 Jakub Jelinek <jakub@redhat.com>
4167 PR tree-optimization/92056
4168 * tree-object-size.c (cond_expr_object_size): Return early if then_
4169 processing resulted in unknown size.
4171 PR tree-optimization/92115
4172 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
4173 temporary if it could trap.
4175 2019-10-17 Richard Biener <rguenther@suse.de>
4178 * dwarf2out.c (gen_formal_parameter_die): Also try to match
4179 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
4181 2019-10-16 Jakub Jelinek <jakub@redhat.com>
4183 * tree-ssa-strlen.c (maybe_invalidate): Use
4184 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
4186 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
4187 Jim Wilson <jimw@sifive.com>
4189 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
4190 regs to SIBCALL_REGS.
4191 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
4192 passing regs to SIBCALL_REGS.
4194 2019-10-16 Martin Sebor <msebor@redhat.com>
4196 PR tree-optimization/83821
4197 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
4198 the length of a string when available.
4199 (handle_builtin_memset) Add argument.
4200 (handle_store, strlen_check_and_optimize_call): Same.
4201 (check_and_optimize_stmt): Same. Pass it to callees.
4203 2019-10-16 Martin Sebor <msebor@redhat.com>
4205 PR tree-optimization/91996
4206 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
4208 (compare_nonzero_chars): Add an overload.
4209 (count_nonzero_bytes): Add an argument. Call overload above.
4210 Handle non-constant lengths in some range.
4211 (handle_store): Add an argument.
4212 (check_and_optimize_stmt): Pass an argument to handle_store.
4214 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
4216 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
4218 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
4220 * config/mips/mips.c (mips_expand_builtin_insn): Force the
4221 operands which correspond to the same input-output register to
4222 have the same pseudo assigned to them.
4224 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
4226 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
4228 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
4230 * config/aarch64/aarch64.c (aarch64_classify_symbol):
4231 Apply reasonable limit to symbol offsets.
4233 2019-10-16 Richard Biener <rguenther@suse.de>
4235 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
4236 (vect_is_simple_reduction): Delay checking to
4237 vectorizable_reduction and relax the checking.
4238 (vectorizable_reduction): Check we have a simple use. Check
4239 for bogus condition reductions.
4240 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
4241 are looking at the last stmt in a pattern sequence when
4242 filling in backedge PHI values.
4244 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
4245 Jiufu Guo <guojiufu@linux.ibm.com>
4248 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
4249 the callee explicitly disables some isa_flags the caller is using.
4251 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
4253 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
4255 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
4257 * genmodes.c (mode_data::order): New field.
4258 (blank_mode): Update accordingly.
4259 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
4260 (make_vector_modes): Likewise.
4261 (VECTOR_MODES): Update use accordingly.
4262 (cmp_modes): Sort by the new order field ahead of sorting by size.
4263 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
4264 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
4265 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
4266 (aarch64_classify_vector_mode): Handle the new partial modes.
4267 (aarch64_vl_bytes): New function.
4268 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
4269 when counting the number of registers in an SVE mode.
4270 (aarch64_class_max_nregs): Likewise.
4271 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
4273 (aarch64_classify_address): Treat partial vectors analogously
4275 (aarch64_print_address_internal): Consolidate the printing of
4276 MUL VL addresses, using aarch64_vl_bytes as the number of
4277 bytes represented by "VL".
4278 (aarch64_vector_mode_supported_p): Reject partial vector modes.
4280 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
4282 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
4283 rather than known_lt when choosing frame layouts.
4285 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
4287 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
4288 that all the adjustments add up to the full frame size.
4289 Use crtl->outgoing_args_size directly as the final adjustment
4292 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
4294 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
4295 "frame" reference instead of always referring directly to
4296 "cfun->machine->frame".
4298 2019-10-16 Richard Biener <rguenther@suse.de>
4300 PR tree-optimization/92119
4301 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
4302 against missing bswap lhs.
4304 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
4307 * poly-int.h (constant_lower_bound_with_limit): New function.
4308 (constant_upper_bound_with_limit): Likewise.
4309 * doc/poly-int.texi: Document them.
4310 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
4311 into the worst-case INTEGER_CST bounds.
4313 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
4316 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
4317 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
4318 * ipa-predicat.h (struct expr_eval_op): New struct.
4319 (expr_eval_ops): New typedef.
4320 (struct condition): Add type and param_ops fields, remove size field.
4321 (add_condition): Replace size parameter with type parameter, add
4322 param_ops parameter.
4323 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
4324 (predicate::add_clause): Add comparisons on type and param_ops.
4325 (dump_condition): Add debug dump for param_ops.
4326 (remap_after_inlining): Adjust call arguments to add_condition.
4327 (add_condition): Replace size parameter with type parameter, add
4328 param_ops parameter. Unshare constant value used in conditions.
4329 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
4330 parameter expressions using param_ops.
4331 (decompose_param_expr): New function.
4332 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
4333 to replace call to unmodified_parm_or_parm_agg_item.
4334 (set_switch_stmt_execution_predicate): Likewise.
4335 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
4337 (inline_read_section): Read param_ops from summary stream.
4338 (ipa_fn_summary_write): Write param_ops to summary stream.
4340 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
4342 PR rtl-optimization/92107
4343 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
4346 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
4348 * config/darwin.c: Update description of fix and continue.
4350 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
4352 * config/darwin.c (darwin_binds_local_p): Update to call
4353 default_binds_local_p_3 () directly. amend comments.
4355 2019-10-15 Richard Biener <rguenther@suse.de>
4357 * lto-streamer-out.c (lto_variably_modified_type_p): New.
4358 (tree_is_indexable): Use it.
4359 * tree-streamer-out.c (pack_ts_type_common_value_fields):
4360 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
4361 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
4363 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4365 * config/msp430/msp430.md (zero_extendqipsi2): New.
4366 (zero_extendqisi2): Optimize case where src register and base dst
4367 register are the same.
4368 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
4369 (zero_extendpsisi2): Optimize r->m case.
4370 Add unnamed insn patterns to catch insns combine searches for when
4371 optimizing pointer manipulation.
4373 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4375 * config/msp430/msp430.md: Group zero_extend* insns together.
4377 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4379 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
4381 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
4383 (msp430_subreg): Likewise.
4384 (msp430_split_addsi): Likewise.
4385 (msp430_print_operand_addr): Likewise.
4386 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
4387 (USE_STORE_POST_INCREMENT): Define.
4388 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
4389 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
4390 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
4391 (msp430_general_dst_operand): New.
4392 (msp430_general_dst_nonv_operand): New.
4393 (msp430_nonsubreg_operand): Remove.
4394 (msp430_nonsubreg_dst_operand): New.
4395 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
4396 of defunct msp430_nonsubreg_operand.
4397 (msp430_nonsubregnonpostinc_or_imm_operand): New.
4399 2019-10-15 Richard Biener <rguenther@suse.de>
4401 PR tree-optimization/91929
4402 * tree-ssa-pre.c (pre_expr_d::loc): New member.
4403 (get_or_alloc_expr_for_name): Initialize it.
4404 (get_or_alloc_expr_for_constant): Likewise.
4405 (phi_translate_1): Copy it.
4406 (create_expression_by_pieces): Use the original location
4407 of the expression for the inserted stmt.
4408 (compute_avail): Record the location of the stmt for the
4409 expressions created.
4411 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
4413 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
4414 before using tree_to_uhwi.
4416 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
4418 * config/s390/s390.md: Run %a0:DI splitters only after reload.
4420 2019-10-15 Richard Biener <rguenther@suse.de>
4422 PR tree-optimization/92094
4423 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
4424 do not adjust the reduction definition def type.
4425 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
4426 defines the latch argument of the PHI.
4428 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
4431 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
4432 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
4433 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
4434 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
4435 _mm_maskz_roundscale_round_sd): New intrinsics.
4436 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
4437 __builtin_ia32_rndscales?_mask_round builtins instead of
4438 __builtin_ia32_rndscales?_round.
4439 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
4440 __builtin_ia32_rndscalesd_round): Remove.
4441 (__builtin_ia32_rndscaless_mask_round,
4442 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
4443 * config/i386/sse.md
4444 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
4445 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
4446 ... this, adjust and add subst atrributes to make it maskable.
4448 2019-10-15 Richard Biener <rguenther@suse.de>
4451 * common.opt (fallow-store-data-races): New.
4452 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
4453 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
4454 * doc/invoke.texi (fallow-store-data-races): Document.
4455 (--param allow-store-data-races): Remove docs.
4456 * opts.c (default_options_table): Enable -fallow-store-data-races
4458 (default_options_optimization): Do not enable --param
4459 allow-store-data-races at -Ofast.
4460 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
4461 instead of PARAM_ALLOW_STORE_DATA_RACES.
4462 * tree-ssa-loop-im.c (execute_sm): Likewise.
4464 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4466 PR tree-optimization/92085
4467 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
4468 instead of calling it unconditionally after
4469 delete_dead_or_redundant_assignment and fix indentation.
4471 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
4473 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
4475 (*fmsub<SDF:mode>4): Likewise.
4476 *fnmsub<SDF:mode>4): Likewise.
4477 (*fnmadd<SDF:mode>4): Likewise.
4479 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
4481 * doc/tree-ssa.texi: Update renamed macro name.
4483 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
4485 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
4488 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
4490 * config/darwin.c: Use unsigned ints for the picbase label
4491 counters, initialise the vars explicitly.
4492 (update_pic_label_number_if_needed): Move a variable declaration
4493 to where it's needed.
4494 (machopic_output_function_base_name): Use a more strict checking
4495 assert, and and unsigned int for the picbase label counter.
4496 (machopic_get_function_picbase): Likewise.
4498 2019-10-14 Richard Biener <rguenther@suse.de>
4501 * dse.c (scan_insn): Use param max_active_local_stores.
4502 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
4503 based on optimization level.
4504 * loop-invariant.c (move_loop_invariants): Adjust
4505 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
4506 * opts.c (default_options_optimization): Do not adjust
4507 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
4508 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
4510 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
4512 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
4514 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
4516 * config/arm/arm.c (arm_option_override): Don't override sched
4519 2019-10-14 Richard Biener <rguenther@suse.de>
4521 PR tree-optimization/92069
4522 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
4523 cycles do not set vect_nested_cycle on the latch definition.
4525 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
4527 * function-abi.h (expr_callee_abi): Declare.
4528 * function-abi.cc (expr_callee_abi): New function.
4530 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
4532 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
4534 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
4535 non-zero being represented as [1,MAX].
4537 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
4539 * tree-sra.c (dump_access): Add missing braces.
4541 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
4543 * config/darwin.c (machopic_indirection_name): Rework the
4544 function to emit linker-visible symbols only for indirections
4545 in the data section. Clean up the code and update comments.
4547 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
4549 * config/darwin.c (machopic_indirect_data_reference): Remove
4552 2019-10-13 Nathan Sidwell <nathan@acm.org>
4554 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
4556 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4558 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
4561 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
4563 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
4564 so non-virutal are before virutals.
4565 (output_function): Avoid body modifications.
4567 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
4569 * config/pa/pa.c (pa_output_call): Load descriptor address to register
4570 %r22. Load function address before global pointer.
4571 (pa_attr_length_indirect_call): Adjust length of inline versions of
4573 (pa_output_indirect_call): Remove fast inline version of $$dyncall
4574 before normal cases. Update inline $$dyncall sequences to preserve
4575 function descriptor address in register %r22.
4576 (TRAMPOLINE_CODE_SIZE): Adjust.
4577 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
4578 register %r22 contains trampoline address.
4579 (pa_trampoline_init): Adjust offsets.
4580 (pa_trampoline_adjust_address): Likewise.
4581 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
4583 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
4586 * config/darwin.c (machopic_indirection): New field to flag
4587 non-lazy-symbol-pointers in the data section.
4588 (machopic_indirection_name): Compute if an indirection should
4589 appear in the data section.
4590 (machopic_output_data_section_indirection): New callback split
4591 from machopic_output_indirection.
4592 (machopic_output_stub_indirection): Likewise.
4593 (machopic_output_indirection): Retain the code for non-lazy
4594 symbol pointers in their regular section.
4595 (machopic_finish): Use the new callbacks to order the indirection
4598 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
4600 * config/darwin-protos.h (machopic_finish): Delete.
4601 * config/darwin.c (machopic_finish): Make static.
4603 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
4605 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
4606 sections when building kernel extension code.
4608 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
4610 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
4613 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
4615 * config/pa/pa.c (pa_option_override): Remove trailing comma
4618 2019-10-12 Jakub Jelinek <jakub@redhat.com>
4621 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
4622 <case VEC_COND_EXPR>: Return false with *handled = false.
4623 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
4624 recursing on the first operand.
4625 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
4626 instead of tree_could_trap_p.
4627 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
4629 2019-10-11 Jim Wilson <jimw@sifive.com>
4631 PR rtl-optimization/91860
4632 * combine.c (subst): If new_rtx is a constant, also check for
4633 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
4635 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
4637 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
4638 INTVAL when calling store_bit_field.
4640 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
4642 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
4645 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
4647 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
4648 vectorizable_live_operation.
4649 (vectorizable_live_operation): Adjust parameters.
4650 * tree-vect-stmts.c (vect_init_vector,
4651 vect_gen_widened_results_half): Fix typo in function comment.
4652 (can_vectorize_live_stmts): Adjust function comment.
4653 Adjust parameters. Adjust call to vectorizable_live_operation.
4654 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
4655 (vect_transform_stmt): Adjust function comment. Adjust call to
4656 can_vectorize_live_stmts.
4657 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
4659 2019-10-11 Richard Biener <rguenther@suse.de>
4661 PR tree-optimization/90883
4662 PR tree-optimization/91091
4663 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
4664 alias-sets both for recording VN table entries and continuing
4665 walking after translating through copies. Handle same-sized
4666 reads from SSA names by returning the plain SSA name.
4667 (eliminate_dom_walker::eliminate_stmt): Properly handle
4668 non-size precision stores in redundant store elimination.
4670 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
4672 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
4673 (ggc_collect): Dump later to not interfere with release_page dump.
4674 (ggc_trim): New function.
4675 * ggc-none.c (ggc_trim): New.
4676 * ggc.h (ggc_trim): Declare.
4678 2019-10-11 Richard Biener <rguenther@suse.de>
4680 PR tree-optimization/92066
4681 PR tree-optimization/92046
4682 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4683 Fix bogus cost model check.
4685 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
4687 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
4688 (LANG_HOOKS_DECLS): Add it.
4689 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
4690 update comment for omp_is_optional_argument.
4691 * omp-general.c (omp_is_allocatable_or_ptr): New.
4692 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
4693 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
4694 Fortran's optional arguments and allocatable/pointer scalars
4695 with use_device_addr.
4697 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
4700 * config/s390/2827.md: Add new opcodes.
4701 * config/s390/2964.md: Likewise.
4702 * config/s390/3906.md: Likewise.
4703 * config/s390/8561.md: Likewise.
4704 * config/s390/s390-builtins.def (s390_vfchesb): Use
4705 the new vec_cmpgev4sf_quiet_nocc.
4706 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
4707 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
4708 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
4709 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
4710 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
4711 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
4712 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
4713 * config/s390/s390-modes.def (CCSFPS): New mode.
4714 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
4715 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
4716 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
4717 (s390_expand_vec_compare): Use non-signaling patterns where
4719 (s390_reverse_condition): Support CCSFPS.
4720 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
4721 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
4722 (asm_fcmp_op): Likewise.
4723 (*smaxv2df3_vx): Use pattern for quiet comparison.
4724 (*sminv2df3_vx): Likewise.
4725 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
4726 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
4727 (vec_cmpgt<mode>_quiet_nocc): Likewise.
4728 (vec_cmplt<mode>_quiet_nocc): New expander.
4729 (vec_cmpge<mode>_quiet_nocc): New pattern.
4730 (vec_cmple<mode>_quiet_nocc): New expander.
4731 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
4732 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
4733 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
4734 (*vec_cmpge<mode>_signaling_nocc): Likewise.
4735 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
4736 (vec_cmpungt<mode>): New expander.
4737 (vec_cmpunge<mode>): Likewise.
4738 (vec_cmpuneq<mode>): Use quiet patterns.
4739 (vec_cmpltgt<mode>): Allow only on z14+.
4740 (vec_cmpordered<mode>): Use quiet patterns.
4741 (vec_cmpunordered<mode>): Likewise.
4742 (VEC_CMP_EXPAND): Add ungt and unge.
4744 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
4746 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
4748 * lto-streamer-out.c: Include tree-dfa.h.
4749 (output_cfg): Do not use cfun.
4750 (lto_prepare_function_for_streaming): New.
4751 (output_function): Do not push cfun; do not initialize loop optimizer.
4752 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
4753 * passes.c (ipa_write_summaries): Use it.
4754 (ipa_write_optimization_summaries): Do not modify bodies.
4755 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
4756 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
4757 * tree-ssa-dse.c (pass_dse::execute): Update use of
4758 renumber_gimple_stmt_uids.
4759 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
4761 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
4763 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
4764 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
4766 2019-10-10 Joseph Myers <joseph@codesourcery.com>
4768 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
4770 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
4771 Also define DFP macros for these conditions.
4772 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
4773 DEC128_SUBNORMAL_MIN): Do not define.
4774 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
4775 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
4777 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
4778 Sandra Loosemore <sandra@codesourcery.com>
4781 * doc/lto.texi (IPA): Reference to the IPA passes.
4782 * doc/passes.texi (Pass manager): Add node IPA passes and
4783 description for each IPA pass.
4785 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
4787 * ipa-reference.c: Do not include splay-tree.h
4788 (reference_vars_to_consider): Turn to hash map.
4789 (get_static_name, ipa_init, analyze_function, propagate,
4790 stream_out_bitmap, ipa_reference_write_optimization_summary,
4791 ipa_reference_write_optimization_summary): Update.
4793 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
4795 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
4797 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
4799 * config/darwin.c: Lookup Objective C metadata and force indirection
4802 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
4804 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
4806 (mem_operand_gpr): Add check for prefixed addresses.
4807 (mem_operand_ds_form): Add check for prefixed addresses.
4808 (rs6000_legitimate_offset_address_p): If we support prefixed
4809 addresses, check for a 34-bit offset instead of 16-bit.
4810 (rs6000_legitimate_address_p): Add check for prefixed addresses.
4811 Do not allow load/store with update if the address is prefixed.
4812 (rs6000_mode_dependent_address): If we support prefixed
4813 addresses, check for a 34-bit offset instead of 16-bit.
4815 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
4818 * config/s390/vector.md (vcond_comparison_operator): New
4820 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
4822 2019-10-10 David Malcolm <dmalcolm@redhat.com>
4825 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
4827 * configure.ac (--with-documentation-root-url): New option.
4828 * configure: Regenerate.
4829 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
4830 option URL, add it as a new string field of the diagnostic option.
4831 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
4832 (print_option_information): If get_option_url is non-NULL, call
4833 it, and if the result is non-NULL, potentially emit an escape
4834 sequence to markup the option text with the resulting URL.
4835 * diagnostic.h (diagnostic_context::get_option_url): New callback.
4836 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
4837 example of JSON output.
4838 * opts-diagnostic.h (get_option_url): New decl.
4839 * opts.c (get_option_url): New function.
4840 * toplev.c (general_init): Initialize the get_option_url callback.
4842 2019-10-10 David Malcolm <dmalcolm@redhat.com>
4845 * common.opt (fdiagnostics-urls=): New option.
4846 (diagnostic-url.h): Add SourceInclude.
4847 (diagnostic_url_rule): New enum.
4848 * diagnostic-color.c: Include "diagnostic-url.h".
4849 (diagnostic_urls_enabled_p): New function.
4850 * diagnostic-url.h: New file.
4851 * diagnostic.c: Include "diagnostic-url.h".
4852 (diagnostic_urls_init): New function.
4853 * diagnostic.h (diagnostic_urls_init): New decl.
4854 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
4855 -fdiagnostics-urls to the list.
4856 (-fdiagnostics-urls): New option.
4857 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
4858 (driver::global_initializations): Call diagnostic_urls_init.
4859 * opts-global.c (init_options_once): Likewise.
4860 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
4861 * pretty-print.c (pretty_printer::pretty_printer): Initialize
4863 (pp_begin_url): New function.
4864 (pp_end_url): New function.
4865 (selftest::test_urls): New selftest.
4866 (selftest::pretty_print_c_tests): Call it.
4867 * pretty-print.h (pretty_printer::show_urls): New field.
4868 (pp_begin_url): New decl.
4869 (pp_end_url): New decl.
4871 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
4874 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
4876 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
4879 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
4880 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
4881 also for TARGET_FPU_SH4_300.
4882 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
4884 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
4885 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
4886 (*negsf2_i): Split into ...
4887 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
4888 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
4889 (**abssf2_i): Split into ...
4890 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
4891 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
4892 (*negdf2_i): Split into ...
4893 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
4894 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
4895 (**abssf2_i): Split into ...
4896 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
4898 2019-10-10 Richard Biener <rguenther@suse.de>
4901 * opts.c (finish_options): Do not influence global --params
4902 from options that are adjustable per function.
4903 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4904 Apply --param adjustment based on active cost-model.
4905 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
4906 further store-sinking when vectorization or if-conversion
4909 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
4912 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
4913 rather than ggc_alloc_cleared to alloc symbol table.
4914 * toplev.c (general_init): Likewise.
4915 * cgraph.h (symbol_table): Explicitly construct every field.
4917 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
4919 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
4921 * config.gcc: Add z15 as option for --with-arch and --with-tune
4923 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
4924 error reporting for unsupported builtins.
4925 * config/s390/s390-opts.h (enum processor_type): Rename
4926 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
4927 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
4928 * config/s390/driver-native.c (s390_host_detect_local_cpu):
4930 * config/s390/s390-builtins.def: Likewise.
4931 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
4932 (s390_expand_builtin): Add missing check for unsupported builtins.
4933 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
4934 (s390_rtx_costs): Likewise.
4935 (s390_get_sched_attrmask): Rename arch13 to z15.
4936 (s390_get_unit_mask): Likewise.
4937 (s390_is_fpd): Likewise.
4938 (s390_is_fxd): Likewise.
4939 * config/s390/s390.h (enum processor_flags): Likewise.
4940 * config/s390/s390.md: Likewise.
4941 * config/s390/vector.md: Likewise.
4942 * config/s390/vx-builtins.md: Likewise.
4943 * config/s390/s390.opt: Add z15 to processor_type value.
4945 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
4948 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
4950 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
4951 ("split_stack_data", "split_stack_call")
4952 ("split_stack_call_<mode>", "split_stack_cond_call")
4953 ("split_stack_cond_call_<mode>"): Remove.
4954 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
4956 * config/s390/s390.c (s390_output_split_stack_data): New function.
4957 (s390_expand_split_stack_prologue): Use the merged expander.
4959 2019-10-09 Martin Sebor <msebor@redhat.com>
4961 PR tree-optimization/90879
4962 * builtins.c (check_access): Avoid using maxbound when null.
4963 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
4964 * doc/invoke.texi (-Wstring-compare): Document new warning option.
4965 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
4967 (get_range_strlen): Overwrite initial maxbound when non-null.
4968 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
4970 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
4971 (used_only_for_zero_equality): New function.
4972 (handle_builtin_memcmp): Call it.
4973 (determine_min_objsize): Return an integer instead of tree.
4974 (get_len_or_size, strxcmp_eqz_result): New functions.
4975 (maybe_warn_pointless_strcmp): New function.
4976 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
4977 between a longer string and a smaller array.
4978 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
4980 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
4982 * config/darwin.c (darwin_override_options): Make the check for
4983 Objective-C ABI version more specific for 64bit code.
4985 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
4987 * config/darwin.c (machopic_indirect_data_reference): Set flag to
4988 indicate that the new symbol is an indirection.
4989 (machopic_indirect_call_target): Likewise.
4990 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
4991 (MACHO_SYMBOL_INDIRECTION_P): New.
4992 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
4994 2019-10-08 Jason Merrill <jason@redhat.com>
4996 * doc/invoke.texi: Document -fconcepts-ts.
4998 2019-10-09 Richard Biener <rguenther@suse.de>
5000 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
5001 allow stmts other than GIMPLE_ASSIGN in nested cycles.
5003 2019-10-08 Richard Biener <rguenther@suse.de>
5005 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
5006 (_stmt_vec_info::force_single_cycle): Likewise.
5007 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
5008 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
5009 * tree-vect-loop.c (vectorizable_reduction): Set
5010 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
5011 (vect_transform_reduction): Use them to remove redundant code.
5012 (vect_transform_cycle_phi): Likewise.
5014 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
5016 PR tree-optimization/90836
5017 * match.pd (popcount): New pattern.
5019 2019-10-08 Martin Sebor <msebor@redhat.com>
5023 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
5024 again once nbytes has been set. Set the access size when not yet set.
5026 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
5028 * config/darwin.c (machopic_select_section): Remove dead code for
5029 old Objective-C section selection method, replace with unreachable.
5031 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
5033 * config/darwin.c (machopic_indirect_data_reference): Check for
5034 required indirections before making direct access to defined
5036 (machopic_output_indirection): Place the indirected pointes for
5037 required indirections into the non-lazy symbol pointers section.
5038 (darwin_encode_section_info):
5039 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
5040 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
5042 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
5045 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
5046 instead of ALL_SSE_REG to check if function call preserves some
5047 256-bit SSE registers.
5049 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5051 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
5052 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
5053 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
5055 2019-10-08 Richard Biener <rguenther@suse.de>
5057 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
5058 (_stmt_vec_info::is_reduc_info): Add.
5059 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
5060 (vectorizable_condition): Remove.
5061 (vectorizable_shift): Likewise.
5062 (vectorizable_reduction): Adjust.
5063 (info_for_reduction): New.
5064 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
5065 (vect_analyze_scalar_cycles_1): ... here.
5066 (vect_analyze_loop_operations): Adjust.
5067 (needs_fold_left_reduction_p): Simplify for single caller.
5068 (vect_is_simple_reduction): Likewise. Remove stmt restriction
5069 for nested cycles not part of double reductions.
5070 (vect_model_reduction_cost): Pass in the reduction type.
5071 (info_for_reduction): New function.
5072 (vect_create_epilog_for_reduction): Use it, access reduction
5073 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
5074 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
5075 (vectorize_fold_left_reduction): Remove pointless assert.
5076 (vectorizable_reduction): Analyze the full reduction when
5077 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
5078 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
5079 stmt code-generation to vectorizable_* in most cases. Verify
5080 code-generation only for cases handled by
5081 vect_transform_reductuon.
5082 (vect_transform_reduction): Use info_for_reduction to get at
5083 reduction meta. Simplify.
5084 (vect_transform_cycle_phi): Likewise.
5085 (vectorizable_live_operation): Likewise.
5086 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
5087 at the PHI node for STMT_VINFO_REDUC_TYPE.
5088 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
5089 longer necessary code.
5090 * tree-vect-stmts.c (vectorizable_shift): Make static again.
5091 (vectorizable_condition): Likewise. Get at reduction related
5092 info via info_for_reduction.
5093 (vect_analyze_stmt): Adjust.
5094 (vect_transform_stmt): Likewise.
5095 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
5096 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
5098 2019-10-08 Joseph Myers <joseph@codesourcery.com>
5100 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
5101 -fno-fp-int-builtin-inexact default for C2X.
5103 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5104 Richard Biener <rguenther@suse.de>
5106 PR tree-optimization/91532
5107 * tree-if-conv.c: Include tree-ssa-dse.h.
5108 (ifcvt_local_dce): Change param from bb to loop,
5109 and call dse_classify_store.
5110 (tree_if_conversion): Pass loop instead of loop->header as arg
5112 * tree-ssa-dse.c: Include tree-ssa-dse.h.
5113 (delete_dead_or_redundant_assignment): Remove static qualifier from
5114 declaration, and add prototype in tree-ssa-dse.h.
5115 (dse_store_status): Move to tree-ssa-dse.h.
5116 (dse_classify_store): Remove static qualifier and add new tree param
5117 stop_at_vuse, and add prototype in tree-ssa-dse.h.
5118 * tree-ssa-dse.h: New header.
5120 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
5122 * config/darwin.c (machopic_output_indirection): Don't put
5123 hidden symbol indirections into the .data section, use the
5124 non-lazy symbol pointers section as normal.
5125 (darwin_encode_section_info): Record if a symbol is hidden.
5126 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
5127 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
5129 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
5131 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
5132 predicates instead of accessing bits directly.
5133 (machopic_indirect_call_target): Likewise.
5134 (machopic_output_indirection): Likewise.
5135 (darwin_encode_section_info): Improve description. Use renamed
5136 symbol flags. Use predicate macros for variables and functions.
5138 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
5139 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
5140 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
5141 (MACHO_SYMBOL_VARIABLE_P): New.
5142 (MACHO_SYMBOL_DEFINED_P):New.
5143 (MACHO_SYMBOL_STATIC_P): New.
5144 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
5145 (SYMBOL_FLAG_SUBT_DEP): New.
5146 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
5148 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5150 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
5151 (msp430_expand_epilogue): Likewise.
5152 * config/msp430/predicates.md: Likewise.
5153 * config/msp430/msp430.md: Likewise.
5154 Replace blocks of 8 spaces with tabs.
5156 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5158 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
5159 * config/msp430/msp430.c (msp430_split_addsi): New.
5160 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
5161 a block of C code for splitting addsi.
5163 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
5165 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
5166 ix86_expand_rounddf_32): Reorder functions.
5167 * config/i386/i386-protos.h: Update.
5169 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5171 * config.in: Regenerate.
5172 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
5173 Add new "Yx" constraint.
5174 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
5176 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
5178 * config/msp430/msp430.c (msp430_option_override): Allow the lower
5179 code/data region to be selected in the small memory model.
5180 (msp430_section_attr): Don't warn if the "section" and "lower"
5181 attributes are used together.
5182 (msp430_handle_generic_attribute): Likewise.
5183 (msp430_var_in_low_mem): New function.
5184 (TARGET_ENCODE_SECTION_INFO): Define.
5185 (msp430_encode_section_info): New function.
5186 (gen_prefix): Return early in the small memory model.
5187 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
5188 ".lower" prefix if -m{code,data}-region=lower have been passed.
5189 (msp430_output_aligned_decl_common): Emit common symbols when
5190 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
5192 (TARGET_ASM_FILE_END): Define.
5193 (msp430_file_end): New function.
5194 (msp430_do_not_relax_short_jumps): Allow relaxation when
5195 function will be in the lower region.
5196 (msp430_op_not_in_high_mem): New function.
5197 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
5198 the 'X' operand selector.
5199 Clarify comment for 'x' operand selector.
5200 * config/msp430/msp430.h (LINK_SPEC): Propagate
5201 -m{code,data}-region to the linker via spec function
5202 msp430_propagate_region_opt.
5203 (msp430_propagate_region_opt): New prototype.
5204 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
5205 (SYMBOL_FLAG_LOW_MEM): Define.
5206 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
5208 (zero_extendqihi2): Fix operand number used by "%X" selector.
5209 (zero_extendqisi2): Likewise.
5210 (zero_extendhisi2): Likewise.
5211 (movqi): Use "Yx" constraint in place of "%X" operand selector.
5216 (addhi3_cy): Likewise.
5217 (addchi4_cy): Likewise.
5221 (bic<mode>3): Likewise.
5222 (and<mode>3): Likewise.
5223 (ior<mode>3): Likewise.
5224 (xor<mode>3): Likewise.
5225 (slli_1): Add missing "%X" operand selector.
5233 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
5235 (cbranchhi4_real): Likewise.
5236 (cbranchqi4_reversed): Likewise.
5237 (cbranchhi4_reversed): Likewise.
5238 (*bitbranch<mode>4): Likewise.
5239 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
5240 * config/msp430/msp430.opt (mcode-region=): Set default to
5241 MSP430_REGION_LOWER. Improve docstring.
5242 (mdata-region=): Likewise.
5243 (muse-lower-region-prefix): New option.
5244 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
5245 mdata-region=none multilib.
5246 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
5247 mdata-region=none multilib.
5248 MULTILIB_EXCEPTIONS: Remove.
5249 MULTILIB_REQUIRED: Define.
5250 * configure: Regenerate.
5251 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
5252 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
5253 * doc/extend.texi: Clarify comment for {upper,lower,either}
5254 function attributes.
5255 Add separate description for "lower" variable attribute.
5257 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
5260 * optabs-tree.c (vcond_icode_p): New function.
5261 (vcond_eq_icode_p): Likewise.
5262 (expand_vec_cond_expr_p): Use vcond_icode_p and
5264 * optabs.c (can_vcond_compare_p): New function.
5265 * optabs.h (can_vcond_compare_p): Likewise.
5267 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
5270 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
5271 caller passes a non-trapping condition.
5272 (is_gimple_condexpr): Allow trapping conditions.
5273 (is_gimple_condexpr_1): New helper function.
5274 (is_gimple_condexpr_for_cond): New function, acts like old
5276 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
5277 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
5278 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
5279 * gimplify.c (gimplify_cond_expr): Use
5280 is_gimple_condexpr_for_cond.
5281 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
5282 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
5284 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
5285 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
5286 is_gimple_condexpr_for_cond, remove pointless tmp check
5287 (forward_propagate_into_cond): Remove pointless tmp check.
5289 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
5291 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
5292 match that of other gsi_next_* functions. Adjust the comment.
5293 (gsi_start_nonvirtual_phis): New function.
5294 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
5295 gsi_next_nonvirtual_phi accordingly. (No functional change.)
5297 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
5299 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
5300 setjmp situation here. Fix a verb's ending: "the exact variables or
5301 elements for which there are warnings depends" -> "... depend".
5303 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
5305 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
5307 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
5309 * ipa-prop.c (ipa_vr::nonzero_p): New.
5310 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
5312 * ipa-prop.h (class ipa_vr): Add nonzero_p.
5313 * tree-vrp.c (range_has_numeric_bounds_p): New.
5314 (range_int_cst_p): Use range_has_numeric_bounds_p.
5315 (get_range_op_handler): New.
5316 (supported_types_p): New.
5317 (defined_ranges_p): New.
5318 (drop_undefines_to_varying): New.
5319 (range_fold_binary_symbolics_p): New.
5320 (range_fold_unary_symbolics_p): New.
5321 (range_fold_unary_expr): Extract out into above functions.
5322 (range_fold_binary_expr): Same.
5323 (value_range_base::normalize_addresses): New.
5324 (value_range_base::normalize_symbolics): Normalize addresses.
5325 * tree-vrp.h (class value_range_base): Add normalize_addresses.
5327 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
5329 * tree-vrp.c (value_range_base::singleton_p): Use
5330 value_range_base::num_pairs instead of vrp_val_is* to check
5331 if a range has one sub-range.
5333 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
5335 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
5336 DEF is not a true earlyclobber but is tied to a specific input
5337 operand, and so is effectively earlyclobber wrt inputs that have
5339 (make_early_clobber_and_input_conflicts): Pass this case to the above.
5341 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
5343 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
5344 (pod_mode): Mark operators likewise.
5345 (scalar_int_mode): Mark non-default constructors and
5346 operators with CONSTEXPR.
5347 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
5348 (fixed_size_mode): Likewise.
5350 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
5353 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
5354 and wrap the unspec_volatile in a parallel.
5355 (*avx_vzeroupper): New define_insn. Use a match_parallel around
5356 the unspec_volatile.
5357 * config/i386/predicates.md (vzeroupper_pattern): Expect the
5358 unspec_volatile to be wrapped in a parallel.
5359 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
5360 (ix86_add_reg_usage_to_vzerouppers): New functions.
5361 (rest_of_handle_insert_vzeroupper): Use them to add register
5362 usage information to the vzeroupper instructions.
5364 2019-10-07 Richard Biener <rguenther@suse.de>
5366 PR tree-optimization/91975
5367 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
5370 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
5372 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
5373 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
5375 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
5377 * config/darwin.c (darwin_override_options): Adjust objective-c
5378 ABI version error messages to avoid punctuation and contracted
5381 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
5383 * ipa-inline.c: Fix type; compute size rather than self_size
5384 for size of caller function.
5386 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
5389 * config/darwin.c (darwin_rodata_section): Add relocation flag,
5390 choose const_data section for constants with relocations.
5391 (machopic_select_section): Pass relocation flag to
5392 darwin_rodata_section ().
5394 2019-10-05 Jakub Jelinek <jakub@redhat.com>
5396 PR tree-optimization/91734
5397 * generic-match-head.c: Include fold-const-call.h.
5398 * match.pd (sqrt(x) cmp c): Check the boundary value and
5399 in case inexact computation of c*c affects comparison of the boundary,
5400 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
5401 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
5402 for -frounding-math. For c2, try the next smaller or larger floating
5403 point constant depending on comparison code and if it has the same
5404 sqrt as c2, use it instead of c2.
5406 2019-10-04 Martin Sebor <msebor@redhat.com>
5409 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
5410 MEM_REF right operand. Avoid failing for MEM_REF assignments from
5411 uninitialized objects.
5413 2019-10-04 Martin Sebor <msebor@redhat.com>
5415 * builtins.c (compute_objsize): Add an argument.
5416 * tree-object-size.c (addr_object_size): Same.
5417 (compute_builtin_object_size): Same.
5418 * tree-object-size.h (compute_builtin_object): Same.
5420 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
5422 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
5424 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
5426 * match.pd (sinh (x) / cosh (x)): New simplification rule.
5428 2019-10-04 Martin Jambor <mjambor@suse.cz>
5430 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
5431 fntype when switching to calling memcpy instead of memset.
5433 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
5435 * hash-table.h (hash_table::empty_slow): Don't assign
5436 size_t values to int variables.
5438 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
5440 * expr.c (convert_mode_scalar): Remove shadowing local var.
5441 (emit_block_move): Rename local vars.
5442 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
5443 (emit_push_insn): Rename local vars.
5444 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
5445 shadowing local vars.
5446 (store_constructor): Remove shadowing local vars. Rename local var.
5447 (store_field, expand_cond_expr_using_cmove,
5448 expand_expr_real_2): Remove shadowing local vars.
5449 (expand_expr_real_1,
5450 do_store_flag): Remove shadowing local vars. Rename local vars.
5452 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
5454 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
5456 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
5458 * genmatch.c (commutate): Rename local var.
5459 (lower_cond): Reuse local var.
5460 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
5461 dt_operand::gen, dt_operand::gen_gimple_expr,
5462 dt_simplify::gen): Add a param. Rename generated vars.
5463 (decision_tree::insert_operand,
5464 (capture_info::walk_match, capture_info::walk_result,
5465 capture_info::walk_c_expr): Rename local vars.
5466 (expr::gen_transform): Rename generated vars.
5467 Use snprintf. Rename local vars.
5468 (capture::gen_transform, dt_operand::get_name,
5469 dt_operand::gen_opname): Rename generated vars.
5470 (write_predicate): Adjust call to gen_kids.
5471 (parser::get_internal_capture_id): Rename generated vars.
5472 (parser::parse_expr): Rename local vars.
5473 (parser::parse_if): Remove local var.
5474 (parser::parse_pattern, add_operator): Rename local vars.
5476 2019-10-04 Joseph Myers <joseph@codesourcery.com>
5478 * builtins.def (DEF_C2X_BUILTIN): New macro.
5479 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
5480 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
5481 (strndup): Use DEF_C2X_BUILTIN.
5482 * coretypes.h (enum function_class): Add function_c2x_misc.
5484 2019-10-04 Maya Rashish <coypu@sdf.org>
5486 * ira-color.c (update_costs_from_allocno): Call
5487 ira_init_register_move_cost_if_necessary.
5489 2019-10-04 Jeff Law <law@redhat.com>
5491 * config/h8300/h8300.md (cpymemsi): Disable.
5492 (movmd, movmd_internal_<mode>, movstr, movsd):
5493 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
5494 (movmd splitter, movsd splitter): Likewise.
5496 * range-op.cc (range_tests): Avoid two tests when ints and
5497 shorts are the same size.
5499 2019-10-04 Richard Biener <rguenther@suse.de>
5502 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
5505 2019-10-04 Richard Biener <rguenther@suse.de>
5507 PR tree-optimization/91982
5508 * tree-vect-loop.c (vectorizable_live_operation): Also guard
5509 against EXTRACT_LAST_REDUCTION.
5510 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
5512 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
5514 * range-op.o (value_range_from_overflowed_bounds): Rename from
5515 adjust_overflow_bound.
5516 (value_range_with_overflow): Rename from
5517 create_range_with_overflow.
5518 (create_possibly_reversed_range): Adjusted for above renames.
5519 (operator_*::wi_fold): Same.
5520 (cross_product_operator::wi_cross_productor): Same.
5522 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
5524 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
5525 -Wshadow=compatible-local): Fix description.
5526 Add an example where -Wshadow=compatible-local does not
5529 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
5531 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
5533 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
5534 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
5536 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
5538 * expr.c (emit_block_move_hints): Slightly cleaner fix to
5539 can_move_by_pieces issue.
5541 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
5544 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
5545 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
5546 is available and the user has not set one on the command line.
5548 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
5551 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
5552 instead of REGNO equality check on addr.reg.
5554 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
5556 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
5557 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
5558 * doc/invoke.texi (inline-heuristics-hint-percent,
5559 inline-heuristics-hint-percent-O2): Document.
5560 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
5562 (can_inline_edge_by_limits_p): Use it.
5564 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
5566 * config/arm/arm.c (arm_print_value): Use real_to_decimal
5567 to print CONST_DOUBLEs.
5569 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
5571 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
5572 * ipa-prop.c (ipcp_free_transformation_sum): New function.
5573 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
5575 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
5577 * Makefile.in (OBJS): Add range.o and range-op.o.
5578 Remove wide-int-range.o.
5579 * function-tests.c (test_ranges): New.
5580 (function_tests_c_tests): Call test_ranges.
5581 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
5582 range_fold_unary_expr instead of extract_range_from_unary_expr.
5583 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
5584 * range-op.cc: New file.
5585 * range-op.h: New file.
5586 * range.cc: New file.
5587 * range.h: New file.
5588 * selftest.h (range_tests): New prototype.
5589 * ssa.h: Include range.h.
5590 * tree-vrp.c (value_range_base::value_range_base): New
5592 (value_range_base::singleton_p): Do not call
5593 ranges_from_anti_range until sure we will need to.
5594 (value_range_base::type): Rename gcc_assert to
5595 gcc_checking_assert.
5596 (vrp_val_is_max): New argument.
5597 (vrp_val_is_min): Same.
5598 (wide_int_range_set_zero_nonzero_bits): Move from
5600 (extract_range_into_wide_ints): Remove.
5601 (extract_range_from_multiplicative_op): Remove.
5602 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
5603 from extract_range_from_binary_expr.
5604 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
5605 from extract_range_from_binary_expr.
5606 (extract_range_from_binary_expr): Remove.
5607 (normalize_for_range_ops): New.
5608 (range_fold_binary_expr): New.
5609 (range_fold_unary_expr): New.
5610 (value_range_base::num_pairs): New.
5611 (value_range_base::lower_bound): New.
5612 (value_range_base::upper_bound): New.
5613 (value_range_base::upper_bound): New.
5614 (value_range_base::contains_p): New.
5615 (value_range_base::invert): New.
5616 (value_range_base::union_): New.
5617 (value_range_base::intersect): New.
5618 (range_compatible_p): New.
5619 (value_range_base::operator==): New.
5620 (determine_value_range_1): Call range_fold_*expr instead of
5621 extract_range_from_*expr.
5622 * tree-vrp.h (class value_range_base): Add new constructors.
5623 Add methods for union_, intersect, operator==, contains_p,
5624 num_pairs, lower_bound, upper_bound, invert.
5625 (vrp_val_is_min): Add handle_pointers argument.
5626 (vrp_val_is_max): Same.
5627 (extract_range_from_unary_expr): Remove.
5628 (extract_range_from_binary_expr): Remove.
5629 (range_fold_unary_expr): New.
5630 (range_fold_binary_expr): New.
5631 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
5632 range_fold_binary_expr instead of extract_range_from_binary_expr.
5633 (vr_values::extract_range_basic): Same.
5634 (vr_values::extract_range_from_unary_expr): Call
5635 range_fold_unary_expr instead of extract_range_from_unary_expr.
5636 * wide-int-range.cc: Remove.
5637 * wide-int-range.h: Remove.
5639 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
5641 * config/rs6000/rs6000.c (mem_operand_gpr): Use
5642 SIGNED_16BIT_OFFSET_EXTRA_P macro.
5643 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
5644 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
5647 2019-10-02 Joseph Myers <joseph@codesourcery.com>
5649 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
5650 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
5651 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
5652 * glimits.h: Likewise.
5654 2019-10-03 Jakub Jelinek <jakub@redhat.com>
5656 PR rtl-optimization/91976
5657 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
5658 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
5659 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
5661 2019-10-02 Martin Sebor <msebor@redhat.com>
5663 PR tree-optimization/80936
5664 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
5666 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
5668 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
5669 instead of reg_class_contents[ALL_REGS].
5671 2019-09-30 Jason Merrill <jason@redhat.com>
5673 Add some hash_map_safe_* functions like vec_safe_*.
5674 * hash-map.h (default_hash_map_size): New variable.
5675 (create_ggc): Use it as default argument.
5676 (hash_map_maybe_create, hash_map_safe_get)
5677 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
5679 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
5681 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
5682 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
5683 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
5684 (can_inline_edge_by_limits_p): Use it.
5685 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
5686 (want_inline_small_function_p): Use O2 bounds.
5687 (edge_badness): LIkewise.
5688 * opts.c (default_options): Add OPT_finline_functions.
5689 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
5690 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
5692 * doc/invoke.texi (-finline-functions): Update documentation.
5693 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
5694 inline-min-speedup-O2): Document.
5695 (early-inlining-insns-O2): Simplify docs.
5697 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
5699 PR rtl-optimization/87047
5700 * ifcvt.c (average_cost): New static function. Use it...
5701 (noce_process_if_block): ... here.
5703 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
5705 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
5706 * config/rs6000/rs6000-string.c (expand_block_move): Add
5708 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
5709 (cpymemsi): Add might_overlap parm to expand_block_move() call.
5711 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
5713 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
5714 (expand_builtin_memcpy): Use might_overlap parm.
5715 (expand_builtin_mempcpy_args): Use might_overlap parm.
5716 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
5717 (expand_builtin_memory_copy_args): Add might_overlap parm.
5718 * expr.c (emit_block_move_via_cpymem): Rename to
5719 emit_block_move_via_pattern, add might_overlap parm, use cpymem
5720 or movmem optab as appropriate.
5721 (emit_block_move_hints): Add might_overlap parm, do the right
5722 thing for might_overlap==true.
5723 * expr.h (emit_block_move_hints): Update prototype.
5725 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
5727 * tree-eh.h (unsplit_eh_edges): Declare.
5728 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
5729 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
5730 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
5731 (struct store_immediate_info): Add lp_nr field.
5732 (store_immediate_info::store_immediate_info): Add NR2 parameter and
5733 initialize lp_nr with it.
5734 (struct merged_store_group): Add lp_nr and only_constants fields.
5735 (merged_store_group::merged_store_group): Initialize them.
5736 (merged_store_group::can_be_merged_into): Deal with them.
5737 (pass_store_merging): Rename terminate_and_release_chain into
5738 terminate_and_process_chain.
5739 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
5740 renaming and remove useless assertions.
5741 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
5742 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
5743 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
5744 instead of always recomputing it and compare lp_nr.
5745 (imm_store_chain_info::output_merged_store): If the group is in an
5746 active EH region, register new stores if they can throw. Moreover,
5747 if the insertion has created new basic blocks, adjust the PHI nodes
5748 of the post landing pad.
5749 (imm_store_chain_info::output_merged_stores): If the original stores
5750 are in an active EH region, deregister them.
5751 (lhs_valid_for_store_merging_p): Prettify.
5752 (adjust_bit_pos): New function extracted from...
5753 (mem_valid_for_store_merging): ...here. Use it for the base address
5754 and also for the offset if it is the addition of a constant.
5755 (lp_nr_for_store): New function.
5756 (pass_store_merging::process_store): Change return type to bool.
5757 Call lp_nr_for_store to initialize the store info. Propagate the
5758 return status of various called functions to the return value.
5759 (store_valid_for_store_merging_p): New predicate.
5760 (enum basic_block_status): New enumeration.
5761 (get_status_for_store_merging): New function.
5762 (pass_store_merging::execute): If the function can throw and catch
5763 non-call exceptions, unsplit the EH edges on entry and clean up the
5764 CFG on exit if something changed. Call get_status_for_store_merging
5765 for every basic block and keep the chains open across basic blocks
5766 when possible. Terminate and process open chains at the end, if any.
5768 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
5770 * reginfo.c (globalize_reg): Fix shadowed variable in
5773 2019-10-02 Martin Jambor <mjambor@suse.cz>
5775 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
5776 do not compute some stuff when set.
5777 (cgraph_node::create_edge): Likewise.
5778 (cgraph_node::create_indirect_edge): Renamed last parameter to
5779 coning_p and flipped its meaning, don't even calculate
5780 inline_failed when set.
5781 * cgraph.h (cgraph_node::create_edge): Add new parameter.
5782 (symbol_table::::create_edge): Likewise.
5783 (cgraph_node::create_indirect_edge): Rename last parameter, flip
5785 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
5786 call graph edge creating functions.
5788 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
5791 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
5794 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
5796 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
5798 2019-10-02 Richard Biener <rguenther@suse.de>
5800 * tree-vectorizer.h (vect_transform_reduction): Declare.
5801 * tree-vect-stmts.c (vect_transform_stmt): Use it.
5802 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
5803 stmt transform to ...
5804 (vect_transform_reduction): ... this.
5806 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
5808 * omp-low.c (lower_omp_target): Dereference optional argument
5809 to work with the right pointer.
5811 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
5813 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
5815 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
5816 * langhooks.h (omp_is_optional_argument): New hook.
5817 * omp-general.c (omp_is_optional_argument): New.
5818 * omp-general.h (omp_is_optional_argument): New declaration.
5819 * omp-low.c (lower_omp_target): Create temporary for received value
5820 and take the address for new_var if the original variable was a
5821 DECL_BY_REFERENCE. Use size of referenced object when a
5822 pass-by-reference optional argument used as argument to firstprivate.
5824 2019-10-02 Jakub Jelinek <jakub@redhat.com>
5826 PR tree-optimization/91940
5827 * tree-vect-patterns.c: Include tree-vector-builder.h and
5829 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
5830 unpromoting the argument back to uint16_t, or by converting into a
5831 rotate, or into shifts plus ior.
5833 2019-10-02 Richard Biener <rguenther@suse.de>
5835 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
5837 (vect_transform_cycle_phi): Declare.
5838 * tree-vect-stmts.c (vect_transform_stmt): Call
5839 vect_transform_cycle_phi.
5840 * tree-vect-loop.c (vectorizable_reduction): Split out
5841 PHI transformation stage to ...
5842 (vect_transform_cycle_phi): ... here.
5844 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
5847 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
5848 eliminable registers.
5849 (make_hard_regno_live): Likewise, and don't make them live.
5851 2019-10-01 David Malcolm <dmalcolm@redhat.com>
5853 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
5854 Call pp_emit_prefix.
5855 (layout::print_source_line): Likewise.
5856 (layout::start_annotation_line): Likewise.
5857 (diagnostic_show_locus): Remove call to temporarily clear the
5859 (selftest::test_one_liner_fixit_remove): Add test coverage for the
5860 interaction of pp_set_prefix with rulers and fix-it hints.
5861 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
5862 prefix when calling diagnostic_show_locus, rather than destroying
5864 (print_parseable_fixits): Temporarily clear prefix.
5865 * pretty-print.c (pp_format): Save and restore line_length, rather
5866 than assuming it is zero.
5867 (pp_output_formatted_text): Remove assertion that line_length is
5870 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
5872 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
5874 (nonoverlapping_refs_since_match_p): ... this; handle also
5876 (alias_stats): Update stats.
5877 (dump_alias_stats): Likewise.
5878 (cheap_array_ref_low_bound): New function.
5879 (aliasing_matching_component_refs_p): Add partial_overlap
5881 pass it to nonoverlapping_refs_since_match_p.
5882 (aliasing_component_refs_walk): Update call of
5883 aliasing_matching_component_refs_p
5884 (nonoverlapping_array_refs_p): New function.
5885 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
5886 indirect_refs_may_alias_p): Update calls of
5887 nonoverlapping_refs_since_match_p.
5889 2019-10-01 Maya Rashish <coypu@sdf.org>
5892 * ira-color.c (allocno_copy_cost_saving): Call
5893 ira_init_register_move_cost_if_necessary.
5895 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
5897 * Makefile.in (gnat_install_lib): New variable.
5898 * configure.ac: Substitute it.
5899 * configure: Regenerate.
5901 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
5904 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
5905 is matched with non-C++ type
5907 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5909 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
5912 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
5914 * doc/invoke.texi (early-inlining-insns-O2): Document.
5915 (early-inlining-insns): Update.
5916 * params.def (early-inlining-insns-O2): New bound.
5917 (early-inlining-insns): Update docs.
5918 * ipa-inline.c (want_early_inline_function_p): Use new bound.
5920 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
5923 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
5924 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
5925 a memory access insn.
5927 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
5929 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
5932 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
5935 * config/s390/s390.c (s390_expand_vec_compare): Use
5936 gen_vec_cmpordered and gen_vec_cmpunordered.
5937 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
5938 vec_unordered): Delete.
5939 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
5940 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
5941 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
5942 (vec_cmp<code>): Generic dispatcher.
5944 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
5947 * config/s390/vector.md (V_HW): Add V1TI in order to make
5948 vcond$a$b generate vcondv1tiv1tf.
5950 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
5952 PR rtl-optimization/91948
5953 * ira-build.c (ira_create_allocno): Initialize
5954 ALLOCNO_CROSSED_CALLS_ABIS.
5955 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
5956 than regno to ira_need_caller_save_p.
5958 2019-10-01 Alexandre Oliva <oliva@adacore.com>
5960 * config/i386/i386-options.c
5961 (ix86_recompute_optlev_based_flags): New, moved out of...
5962 (ix86_option_override_internal): ... this. Call it.
5963 (ix86_override_options_after_change): Call it here too.
5966 * dwarf2out.c (override_type_for_decl_p): New.
5967 (gen_variable_die): Use it.
5969 2019-10-01 Richard Biener <rguenther@suse.de>
5971 * tree-vect-loop.c (vectorizable_reduction): Move variables
5972 to where they are used.
5974 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5976 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
5977 (build_def_use): Use PC instead of CC0 in a comment.
5979 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
5981 * rtl.def (CLOBBER_HIGH): Delete.
5982 * doc/rtl.texi (clobber_high): Remove documentation.
5983 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
5984 (reg_is_clobbered_by_clobber_high): Delete.
5985 (gen_hard_reg_clobber_high): Likewise.
5986 * alias.c (record_set): Remove CLOBBER_HIGH handling.
5987 * cfgexpand.c (expand_gimple_stmt): Likewise.
5988 * combine-stack-adj.c (single_set_for_csa): Likewise.
5989 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
5990 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
5991 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
5992 * cse.c (invalidate_reg): Remove clobber_high parameter.
5993 (invalidate): Update call accordingly.
5994 (canonicalize_insn): Remove CLOBBER_HIGH handling.
5995 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
5996 (count_reg_usage, insn_live_p): Likewise.
5997 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
5998 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
5999 (cselib_invalidate_rtx_note_stores): Update call accordingly.
6000 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
6001 (cselib_invalidate_regno, cselib_process_insn): Likewise.
6002 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
6003 (mark_nonreg_stores_2): Likewise.
6004 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
6005 (df_get_call_refs): Likewise.
6006 * dwarf2out.c (mem_loc_descriptor): Likewise.
6007 * emit-rtl.c (verify_rtx_sharing): Likewise.
6008 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
6009 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
6010 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
6011 * genemit.c (gen_exp, gen_insn): Likewise.
6012 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
6013 * haifa-sched.c (haifa_classify_rtx): Likewise.
6014 * ira-build.c (create_insn_allocnos): Likewise.
6015 * ira-costs.c (scan_one_insn): Likewise.
6016 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
6017 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
6018 * jump.c (mark_jump_label_1): Likewise.
6019 * lra-int.h (lra_insn_reg::clobber_high): Delete.
6020 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
6022 (mark_not_eliminable): Likewise.
6023 * lra-lives.c (process_bb_lives): Likewise.
6024 * lra.c (new_insn_reg): Remove clobber_high parameter.
6025 (collect_non_operand_hard_regs): Likewise. Update call to new
6026 insn_reg. Remove CLOBBER_HIGH handling.
6027 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
6028 to collect_non_operand_hard_regs.
6029 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
6030 Update call to new_insn_reg.
6031 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
6032 * postreload.c (reload_cse_simplify, reload_combine_note_use)
6033 (move2add_note_store): Likewise.
6034 * print-rtl.c (print_pattern): Likewise.
6035 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
6036 (if_test_bypass_p): Likewise.
6037 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
6038 * reginfo.c (reg_scan_mark_refs): Likewise.
6039 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
6040 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
6041 (forget_old_reloads_1): Likewise.
6042 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
6043 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
6044 (dbr_schedule): Likewise.
6045 * resource.c (update_live_status, mark_referenced_resources)
6046 (mark_set_resources): Likewise.
6047 * rtl.c (copy_rtx): Likewise.
6048 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
6049 (note_pattern_stores): Likewise.
6050 (reg_is_clobbered_by_clobber_high): Delete.
6051 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
6052 CLOBBER_HIGH handling.
6054 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
6057 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
6058 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
6059 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
6060 Handle ARM_PCS_TLSDESC.
6061 (aarch64_tlsdesc_abi_id): New function.
6062 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
6063 rtx instead of a list of clobbers and clobber_highs.
6064 (tlsdesc_small_<mode>): Update accordingly.
6066 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
6068 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
6069 extra callee_abi argument.
6070 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
6071 Insert a CALLEE_ABI unspec into the call pattern as the second
6072 element in the PARALLEL.
6073 (aarch64_simd_call_p): Delete.
6074 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
6075 the new CALLEE_ABI element of the PARALLEL.
6076 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
6077 from the function type, if given.
6078 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
6079 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
6080 when passed the function_arg_info end marker.
6081 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
6082 final argument of gen_sibcall.
6083 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
6084 (call): Make operand 2 a const_int_operand and pass it to expand_call.
6085 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
6087 (call_value): Likewise operand 3.
6088 (sibcall): Likewise operand 2. Place the unspec before rather than
6090 (sibcall_value): Likewise operand 3.
6091 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
6092 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
6093 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
6095 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
6097 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
6099 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
6100 choose_hard_reg_mode.
6101 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6103 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
6105 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
6106 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
6107 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
6109 2019-09-30 David Malcolm <dmalcolm@redhat.com>
6111 * diagnostic-show-locus.c (line_label::line_label): Initialize
6113 (line_label::comparator): Reverse the sort order by m_state_idx,
6114 so that when the list is walked backwards the labels appear in
6115 order of insertion into the rich_location.
6116 (line_label::m_has_vbar): New field.
6117 (layout::print_any_labels): When dealing with multiple labels at
6118 the same line and column, only print vertical bars for the one
6119 with the highest label_line.
6120 (selftest::test_one_liner_labels): Update test for multiple labels
6121 to expect the labels to be in the order of insertion into the
6122 rich_location. Add a test for many such labels, where the column
6123 numbers are out-of-order relative to the insertion order.
6125 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6127 * config/i386/i386.h (ix86_frame::expensive_p): New field.
6128 (ix86_frame::expensive_count): Likewise.
6129 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
6130 of use_fast_prologue_epilogue robust against incidental changes
6133 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
6136 * config/s390/vector.md (vec_unordered<mode>): Call
6137 gen_vec_ordered<mode>.
6139 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
6141 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
6142 New pattern for ASRD.
6143 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
6144 * internal-fn.def (IFN_DIV_POW2): New internal function.
6145 * optabs.def (sdiv_pow2_optab): New optab.
6146 * tree-vect-patterns.c (vect_recog_divmod_pattern):
6147 Modify pattern to support new operation.
6148 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
6149 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
6150 Document new target selector.
6152 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6154 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
6155 to test whether we're compiling a vector PCS function and to test
6156 whether the function needs to save a particular register.
6157 Remove the vector PCS handling of df_set_regs_ever_live.
6158 (aarch64_components_for_bb): Use crtl->abi to test whether
6159 the function needs to save a particular register.
6160 (aarch64_process_components): Use crtl->abi to test whether
6161 we're compiling a vector PCS function.
6162 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
6163 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
6165 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6167 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
6169 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
6170 whether the block calls a function that clobbers more registers
6171 than the current function is allowed to.
6172 (aarch64_use_simple_return_insn_p): Delete.
6173 * config/aarch64/aarch64.md (simple_return): Remove condition.
6175 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6177 * function-abi.h (function_abi_aggregator): New class.
6178 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
6180 * ira.c (update_equiv_regs_prescan): New function. Call
6181 set_paradoxical_subreg here rather than...
6182 (update_equiv_regs): ...here.
6183 (ira): Call update_equiv_regs_prescan.
6185 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6187 * hard-reg-set.h (regs_invalidated_by_call): Only define if
6189 (call_used_or_fixed_regs): Likewise.
6190 (call_used_or_fixed_reg_p): Likewise.
6191 * reginfo.c (regs_invalidated_by_call): New macro.
6193 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6195 * shrink-wrap.c: Include function-abi.h.
6196 (requires_stack_frame_p): Use crtl->abi to test whether the
6197 current function can use a register without saving it first.
6199 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6201 * sel-sched-ir.h (_def::crosses_call): Replace with...
6202 (_def::crossed_call_abis): ..this new field.
6203 (def_list_add): Take a mask of ABIs instead of a crosses_call
6205 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
6206 of _def accordingly.
6207 * sel-sched.c: Include function-abi.h.
6208 (hard_regs_data::regs_for_call_clobbered): Delete.
6209 (reg_rename::crosses_call): Replace with...
6210 (reg_rename::crossed_call_abis): ...this new field.
6211 (fur_static_params::crosses_call): Replace with...
6212 (fur_static_params::crossed_call_abis): ...this new field.
6213 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
6214 (init_hard_regs_data): Use crtl->abi to test which registers the
6215 current function would need to save before it uses them.
6216 (mark_unavailable_hard_regs): Update handling of call-clobbered
6217 registers, using call_clobbers_in_region to find out which registers
6218 might be call-clobbered (but without taking -fipa-ra into account
6219 for now). Remove separate handling of partially call-clobbered
6221 (verify_target_availability): Use crossed_call_abis instead of
6223 (get_spec_check_type_for_insn, find_used_regs): Likewise.
6224 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
6226 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6228 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
6229 function to test whether a register is fully or partly clobbered.
6231 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6233 * rtlanal.c: Include function-abi.h.
6234 (reg_set_p): Use insn_callee_abi to get the ABI of the called
6235 function and clobbers_reg_p to test whether the register
6237 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
6238 to get the ABI of the called function and full_reg_clobbers to
6239 get the set of fully call-clobbered registers. Warn about the
6240 pitfalls of using this mode.
6242 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6244 * reload.c: Include function-abi.h.
6245 (find_equiv_reg): Use clobbers_reg_p to test whether either
6246 of the equivalent registers is clobbered by a call.
6247 * reload1.c: Include function-abi.h.
6248 (reg_reloaded_call_part_clobbered): Delete.
6249 (reload): Use crtl->abi to test which registers would need
6250 saving in the prologue before use.
6251 (find_reg): Likewise.
6252 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
6253 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
6254 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
6256 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6258 * regrename.h (du_head::call_clobber_mask): New field.
6259 (du_head::need_caller_save_reg): Replace with...
6260 (du_head::call_abis): ...this new field.
6261 * regrename.c: Include function-abi.h.
6262 (call_clobbered_in_chain_p): New function.
6263 (check_new_reg_p): Use crtl->abi when deciding whether a register
6264 is free for use after RA. Use call_clobbered_in_chain_p to test
6265 whether a candidate register would be clobbered by a call.
6266 (find_rename_reg): Don't add call-clobber conflicts here.
6267 (rename_chains): Check call_abis instead of need_caller_save_reg.
6268 (merge_chains): Update for changes to du_head.
6269 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
6270 target. Record the ABI identifier in call_abis and the set of
6271 fully or partially clobbered registers in call_clobber_mask.
6272 Add fully-clobbered registers to hard_conflicts here rather
6273 than in find_rename_reg.
6274 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
6275 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
6276 * config/aarch64/falkor-tag-collision-avoidance.c: Include
6278 * config/c6x/c6x.c: Likewise.
6280 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6282 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
6283 mode of the register when deciding whether it is no longer
6284 available after a call.
6286 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6288 * recog.c: Include function-abi.h.
6289 (peep2_find_free_register): Use crtl->abi when deciding whether
6290 a register is free for use after RA.
6292 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6294 * postreload-gcse.c: Include regs.h and function-abi.h.
6295 (record_opr_changes): Use insn_callee_abi to get the ABI of the
6296 call insn target. Conservatively assume that partially-clobbered
6297 registers are altered.
6299 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6301 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
6302 when deciding whether a register is free for use after RA.
6303 (reload_combine): Remove unnecessary use of fixed_reg_set.
6304 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
6305 call insn target. Use reg_mode when testing whether a register
6306 is no longer available.
6308 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6310 * target.def (return_call_with_max_clobbers): Delete.
6311 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
6312 * doc/tm.texi: Regenerate.
6313 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
6314 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
6315 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
6316 (lra_reg::call_insn): Delete.
6317 * lra.c: Include function-abi.h.
6318 (initialize_lra_reg_info_element): Don't initialize the fields above.
6319 (lra): Use crtl->abi to test whether the current function needs to
6320 save a register in the prologue. Remove special pre-inheritance
6321 lra_create_live_ranges pass for flag_ipa_ra.
6322 * lra-assigns.c: Include function-abi.h
6323 (find_hard_regno_for_1): Use crtl->abi to test whether the current
6324 function needs to save a register in the prologue.
6325 (lra_assign): Assert that registers aren't allocated to a
6326 conflicting register, rather than checking only for overlaps
6327 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
6328 and for registers that are not live across a call.
6329 * lra-constraints.c (last_call_for_abi): New variable.
6330 (full_and_partial_call_clobbers): Likewise.
6331 (setup_next_usage_insn): Remove the register from
6332 full_and_partial_call_clobbers.
6333 (need_for_call_save_p): Use call_clobbered_in_region_p to test
6334 whether the register needs a caller save.
6335 (need_for_split_p): Use full_and_partial_reg_clobbers instead
6336 of call_used_or_fixed_regs.
6337 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
6338 full_and_partial_call_clobbers.
6339 * lra-lives.c (check_pseudos_live_through_calls): Replace
6340 last_call_used_reg_set and call_insn arguments with an abi argument.
6341 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
6342 as the set of conflicting registers.
6343 (calls_have_same_clobbers_p): Delete.
6344 (process_bb_lives): Track the ABI of the last call instead of an
6345 insn/HARD_REG_SET pair. Update calls to
6346 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
6347 the set of registers that could be clobbered by an EH edge.
6348 Include partially-clobbered as well as fully-clobbered registers.
6349 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
6350 * lra-remat.c: Include function-abi.h.
6351 (call_used_regs_arr_len, call_used_regs_arr): Delete.
6352 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
6353 registers and bitmap_view to combine them into dead_regs.
6354 (call_used_input_regno_present_p): Take a function_abi argument
6355 and use it to test whether a register is call-clobbered.
6356 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
6357 call insn target. Update tje call to call_used_input_regno_present_p.
6358 (do_remat): Likewise.
6359 (lra_remat): Remove the initialization of call_used_regs_arr_len
6360 and call_used_regs_arr.
6362 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6364 * loop-iv.c: Include regs.h and function-abi.h.
6365 (simplify_using_initial_values): Use insn_callee_abi to get the
6366 ABI of the call insn target. Conservatively assume that
6367 partially-clobbered registers are altered.
6369 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6371 * function-abi.h (call_clobbers_in_region): Declare.
6372 (call_clobbered_in_region_p): New function.
6373 * function-abi.cc (call_clobbers_in_region): Likewise.
6374 * ira-int.h: Include function-abi.h.
6375 (ira_allocno::crossed_calls_abis): New field.
6376 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
6377 (ira_need_caller_save_regs): New function.
6378 (ira_need_caller_save_p): Likewise.
6379 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
6380 of call_used_or_fixed_regs.
6381 (do_reload): Use crtl->abi to test whether the current function
6382 needs to save a register in the prologue. Count registers that
6383 need to be saved rather than registers that don't.
6384 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
6385 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6386 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
6387 (propagate_some_info_from_allocno): Likewise.
6388 (copy_info_to_removed_store_destinations): Likewise.
6389 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
6390 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
6391 (ira_build): Use ira_need_caller_save_regs instead of
6392 call_used_or_fixed_regs.
6393 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
6394 whether the current function would need to save a register
6396 (calculate_spill_cost): Likewise.
6397 (allocno_reload_assign): Use ira_need_caller_save_regs and
6398 ira_need_caller_save_p instead of call_used_or_fixed_regs.
6399 * ira-conflicts.c (ira_build_conflicts): Use
6400 ira_need_caller_save_regs rather than call_used_or_fixed_regs
6401 as the set of call-clobbered registers. Remove the
6402 call_used_or_fixed_regs mask from the calculation of
6403 temp_hard_reg_set and mask its use instead. Remove special
6404 handling of partially-clobbered registers.
6405 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
6406 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
6407 calculate the set of conflicting registers for calls that
6408 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
6409 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
6410 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6411 Use eh_edge_abi to calculate the set of registers that could
6412 be clobbered by an EH edge. Include partially-clobbered as
6413 well as fully-clobbered registers.
6415 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6417 * haifa-sched.c: Include function-abi.h.
6418 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
6419 the function would need to save a register before using it.
6421 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6423 * gcse.c: Include function-abi.h.
6424 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
6425 the call insn target. Invalidate partially call-clobbered
6426 registers as well as fully call-clobbered ones.
6428 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6430 * function.c (aggregate_value_p): Work out which ABI the
6431 function is using before testing which registers are at least
6432 partly preserved by a call.
6434 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6436 * early-remat.c: Include regs.h and function-abi.h.
6437 (early_remat::maybe_add_candidate): Don't check for call-clobbered
6439 (early_remat::restrict_remat_for_unavail_regs): New function.
6440 (early_remat::restrict_remat_for_call): Likewise.
6441 (early_remat::process_block): Before calling emit_remat_insns
6442 for a previous call in the block, invalidate any candidates
6443 that would clobber call-preserved registers.
6444 (early_remat::emit_remat_insns_for_block): Likewise for the
6445 final call in a block. Do the same thing for live-in registers
6446 when calling emit_remat_insns at the head of a block.
6448 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6450 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
6451 whether the current function needs to save at least part of a
6452 register before using it.
6453 (df_get_exit_block_use_set): Likewise for epilogue restores.
6455 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6457 * df-problems.c: Include regs.h and function-abi.h.
6458 (df_rd_problem_data): Rename sparse_invalidated_by_call to
6459 sparse_invalidated_by_eh and dense_invalidated_by_call to
6460 dense_invalidated_by_eh.
6461 (df_print_bb_index): Update accordingly.
6462 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
6463 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
6464 that are clobbered by an EH edge. Clobber partially-clobbered
6465 registers as well as fully-clobbered ones.
6466 (df_md_confluence_n): Likewise.
6467 (df_rd_local_compute): Likewise. Update for changes to
6469 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
6470 of registers that are clobbered by an EH edge. Includde partially-
6471 clobbered registers as well as fully-clobbered ones.
6473 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6475 * cselib.c (cselib_process_insn): If we know what mode a
6476 register was set in, check whether it is clobbered in that
6477 mode by a call. Only fall back to reg_raw_mode if that fails.
6479 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6481 * cse.c: Include regs.h and function-abi.h.
6482 (invalidate_for_call): Take the call insn as an argument.
6483 Use insn_callee_abi to get the ABI of the call and invalidate
6484 partially clobbered registers as well as fully clobbered ones.
6485 (cse_insn): Update call accordingly.
6487 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6489 * combine.c: Include function-abi.h.
6490 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
6491 of the target of call insns. Invalidate partially-clobbered
6492 registers as well as fully-clobbered ones.
6494 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6496 * cfgloopanal.c: Include regs.h and function-abi.h.
6497 (init_set_costs): Use default_function_abi to test whether
6498 a general register is call-clobbered.
6500 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6502 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
6503 instead of the call-clobbered sets.
6505 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6507 * caller-save.c (setup_save_areas): Remove redundant |s of
6509 (save_call_clobbered_regs): Likewise. Use the call ABI rather
6510 than call_used_or_fixed_regs to decide whether a REG_RETURNED
6513 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6515 * rtl.h (predefined_function_abi): Declare.
6516 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
6517 instead of a boolean call_save flag.
6518 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
6520 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6521 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6522 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
6523 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6524 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6525 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
6526 * reginfo.c (init_reg_modes_target): Likewise.
6527 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
6528 instead of a boolean call_save flag.
6529 * targhooks.c: Include function-abi.h.
6530 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
6531 using eh_edge_abi to choose the mode.
6533 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6535 * target.def (hard_regno_call_part_clobbered): Take an ABI
6536 identifier instead of an rtx_insn.
6537 * doc/tm.texi: Regenerate.
6538 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
6539 (hook_bool_uint_uint_mode_false): New function.
6540 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
6541 (hook_bool_uint_uint_mode_false): New function.
6542 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
6543 Take an ABI identifier instead of an rtx_insn.
6544 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
6545 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
6546 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
6547 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
6548 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
6550 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
6551 * cselib.c: Include function-abi.h.
6552 (cselib_process_insn): Update call to
6553 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
6554 to get the appropriate ABI identifier.
6555 * function-abi.cc (predefined_function_abi::initialize): Update call
6556 to targetm.hard_regno_call_part_clobbered.
6557 * ira-conflicts.c (ira_build_conflicts): Likewise.
6558 * ira-costs.c (ira_tune_allocno_costs): Likewise.
6559 * lra-constraints.c: Include function-abi.h.
6560 (need_for_call_save_p): Update call to
6561 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
6562 to get the appropriate ABI identifier.
6563 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
6564 * regcprop.c (copyprop_hardreg_forward_1): Update call
6565 to targetm.hard_regno_call_part_clobbered.
6566 * reginfo.c (choose_hard_reg_mode): Likewise.
6567 * regrename.c (check_new_reg_p): Likewise.
6568 * reload.c (find_equiv_reg): Likewise.
6569 * reload1.c (emit_reload_insns): Likewise.
6570 * sched-deps.c: Include function-abi.h.
6571 (deps_analyze_insn): Update call to
6572 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
6573 to get the appropriate ABI identifier.
6574 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
6575 call to targetm.hard_regno_call_part_clobbered.
6576 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
6578 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6580 * config/i386/i386.c: Include function-abi.h.
6581 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
6582 if they preserve some 256-bit or 512-bit SSE registers.
6584 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6586 * target.def (insn_callee_abi): New hook.
6587 (remove_extra_call_preserved_regs): Delete.
6588 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
6589 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
6590 * doc/tm.texi: Regenerate.
6591 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
6592 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
6593 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
6595 (aarch64_remove_extra_call_preserved_regs): Delete.
6596 (aarch64_insn_callee_abi): New function.
6597 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
6598 (TARGET_INSN_CALLEE_ABI): New macro.
6599 * rtl.h (get_call_fndecl): Declare.
6600 (cgraph_rtl_info): Fix formatting. Tweak comment for
6601 function_used_regs. Remove function_used_regs_valid.
6602 * rtlanal.c (get_call_fndecl): Moved from final.c
6603 * function-abi.h (insn_callee_abi): Declare.
6604 (target_function_abi_info): Mention insn_callee_abi.
6605 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
6606 way to get_call_reg_set_usage did.
6607 (insn_callee_abi): New function.
6608 * regs.h (get_call_reg_set_usage): Delete.
6609 * final.c: Include function-abi.h.
6610 (collect_fn_hard_reg_usage): Add fixed and stack registers to
6611 function_used_regs before the main loop rather than afterwards.
6612 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
6613 if function_used_regs ends up not being useful.
6614 (get_call_fndecl): Move to rtlanal.c
6615 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
6616 * caller-save.c: Include function-abi.h.
6617 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
6618 instead of get_call_reg_set_usage.
6619 * cfgcleanup.c: Include function-abi.h.
6620 (old_insns_match_p): Use insn_callee_abi instead of
6621 get_call_reg_set_usage.
6622 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
6624 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
6626 * df-scan.c: Include function-abi.h.
6627 (df_get_call_refs): Use insn_callee_abi instead of
6628 get_call_reg_set_usage.
6629 * ira-lives.c: Include function-abi.h.
6630 (process_bb_node_lives): Use insn_callee_abi instead of
6631 get_call_reg_set_usage.
6632 * lra-lives.c: Include function-abi.h.
6633 (process_bb_lives): Use insn_callee_abi instead of
6634 get_call_reg_set_usage.
6635 * postreload.c: Include function-abi.h.
6636 (reload_combine): Use insn_callee_abi instead of
6637 get_call_reg_set_usage.
6638 * regcprop.c: Include function-abi.h.
6639 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
6640 get_call_reg_set_usage.
6641 * resource.c: Include function-abi.h.
6642 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
6643 instead of get_call_reg_set_usage.
6644 * var-tracking.c: Include function-abi.h.
6645 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
6646 get_call_reg_set_usage.
6648 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6650 * target.def (fntype_abi): New target hook.
6651 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
6652 * doc/tm.texi: Regenerate.
6653 * target.h (predefined_function_abi): Declare.
6654 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
6656 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
6657 * config/aarch64/aarch64.c: Include function-abi.h.
6658 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
6659 (TARGET_FNTYPE_ABI): Define.
6661 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6663 * Makefile.in (OBJS): Add function-abi.o.
6664 (GTFILES): Add function-abi.h.
6665 * function-abi.cc: New file.
6666 * function-abi.h: Likewise.
6667 * emit-rtl.h (rtl_data::abi): New field.
6668 * function.c: Include function-abi.h.
6669 (prepare_function_start): Initialize crtl->abi.
6670 * read-rtl-function.c: Include regs.h and function-abi.h.
6671 (read_rtl_function_body): Initialize crtl->abi.
6672 (read_rtl_function_body_from_file_range): Likewise.
6673 * reginfo.c: Include function-abi.h.
6674 (init_reg_sets_1): Initialize default_function_abi.
6675 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
6676 when making a register global.
6677 * target-globals.h (this_target_function_abi_info): Declare.
6678 (target_globals::function_abi_info): New field.
6679 (restore_target_globals): Copy it.
6680 * target-globals.c: Include function-abi.h.
6681 (default_target_globals): Initialize the function_abi_info field.
6682 (target_globals): Allocate it.
6683 (save_target_globals): Free it.
6685 2019-09-30 Nick Clifton <nickc@redhat.com>
6688 * config/frv/frv.c (frv_register_move_cost): Add break statements
6689 to avoid falling through to the wrong cases. Tidy code.
6691 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
6693 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
6694 For multi-registers modes, test how big each register part is.
6696 2019-09-30 Nick Clifton <nickc@redhat.com>
6699 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
6700 (TARGET_ASM_SELECT_SECTION): Remove definition.
6701 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
6703 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
6705 * emit-rtl.c (init_raw_REG): New function.
6706 (gen_raw_REG): Use init_raw_REG.
6707 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
6709 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
6710 * rtl.h (rtx_init): New function.
6711 (rtx_alloca): New function.
6712 (init_raw_REG): New function.
6713 (alloca_raw_REG): New macro.
6715 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
6717 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
6718 (pcrel_local_address): Replace pcrel_address predicate, use the
6719 new function address_to_insn_form.
6720 (pcrel_external_address): Replace with new implementation using
6721 address_to_insn_form..
6722 (prefixed_mem_operand): Delete predicate which is now unused.
6723 (pcrel_external_mem_operand): Delete predicate which is now
6725 * config/rs6000/rs6000-protos.h (enum insn_form): New
6727 (enum non_prefixed_form): New enumeration.
6728 (address_to_insn_form): New declaration.
6729 (prefixed_load_p): New declaration.
6730 (prefixed_store_p): New declaration.
6731 (prefixed_paddi_p): New declaration.
6732 (rs6000_asm_output_opcode): New declaration.
6733 (rs6000_final_prescan_insn): Move declaration and update calling
6735 (address_is_prefixed): New helper inline function.
6736 * config/rs6000/rs6000.c(print_operand_address): Check for either
6737 PC-relative local symbols or PC-relative external symbols.
6738 (rs6000_emit_move): Support loading PC-relative addresses.
6739 (mode_supports_prefixed_address_p): Delete, no longer used.
6740 (rs6000_prefixed_address_mode_p): Delete, no longer used.
6741 (address_to_insn_form): New function to decode an address format.
6742 (reg_to_non_prefixed): New function to identify what the
6743 non-prefixed memory instruction format is for a register.
6744 (prefixed_load_p): New function to identify prefixed loads.
6745 (prefixed_store_p): New function to identify prefixed stores.
6746 (prefixed_paddi_p): New function to identify prefixed load
6748 (next_insn_prefixed_p): New static state variable.
6749 (rs6000_final_prescan_insn): New function to determine if an insn
6750 uses a prefixed instruction.
6751 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
6752 prefixed instruction.
6753 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
6754 (ASM_OUTPUT_OPCODE): New target hook.
6755 * config/rs6000/rs6000.md (prefixed): New insn attribute for
6756 prefixed instructions.
6757 (prefixed_length): New insn attribute for the size of prefixed
6759 (non_prefixed_length): New insn attribute for the size of
6760 non-prefixed instructions.
6761 (pcrel_local_addr): New insn to load up a local PC-relative
6763 (pcrel_extern_addr): New insn to load up an external PC-relative
6765 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
6766 GPR and loading a 128-bit floating point type to a GPR.
6768 2019-09-30 Richard Biener <rguenther@suse.de>
6770 * gimple.c (gimple_get_lhs): For PHIs return the result.
6771 * tree-vectorizer.h (vectorizable_live_operation): Also get the
6772 SLP instance as argument.
6773 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
6774 double-reduction PHIs with vectorizable_lc_phi.
6775 (vect_analyze_loop_operations): Adjust.
6776 (vect_create_epilog_for_reduction): Remove all code not dealing
6777 with reduction LC PHI or epilogue generation.
6778 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
6779 for live stmts of reductions.
6780 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
6781 do not handle defs that are not vect_internal_def.
6782 (can_vectorize_live_stmts): Adjust.
6783 (vect_analyze_stmt): When the vectorized stmt defined a value
6784 used on backedges adjust the backedge uses of vectorized PHIs.
6786 2019-09-30 Martin Jambor <mjambor@suse.cz>
6789 * tree-inline.c (force_value_to_type): New function.
6790 (setup_one_parameter): Use force_value_to_type to convert type.
6791 * tree-inline.c (force_value_to_type): Declare.
6792 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
6793 with register type mismatches.
6795 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
6797 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
6799 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
6800 * config/rs6000/t-freebsd64: Make use of the above define and build
6801 the 32-bit libraries with secure-plt.
6803 2019-09-30 Jakub Jelinek <jakub@redhat.com>
6806 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
6807 gen_int_mode instead of GEN_INT.
6809 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
6811 * config/darwin.c (gen_macho_low): Amend to include the mode
6813 (machopic_indirect_data_reference): Amend gen_macho_low call
6814 to include mode argument
6815 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
6816 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
6817 the macho_high expander and two define_insn entries.
6819 2019-09-29 Jakub Jelinek <jakub@redhat.com>
6822 * optc-save-gen.awk: Fix up printing string option differences.
6824 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
6826 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
6827 vec_perm cost to 1 for non-Power7 VSX architectures.
6829 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
6831 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
6832 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
6833 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
6835 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
6837 * config/darwin.c (gen_macho_high): Amend to include the mode
6839 (machopic_indirect_data_reference): Amend gen_macho_high call
6840 to include mode argument.
6841 (machopic_legitimize_pic_address): Likewise.
6842 * config/rs6000/rs6000.c (rs6000_legitimize_address):
6843 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
6844 the macho_high expander and two define_insn entries.
6846 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
6849 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
6851 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
6854 * config/sh/sh.c (parse_validate_atomic_model_option): Use
6855 std::string::compare instead of std::string::find.
6857 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
6859 * configure: Regenerate.
6861 2019-09-27 Jakub Jelinek <jakub@redhat.com>
6864 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
6865 variables as shared.
6867 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
6869 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
6870 replaces the expander and two define_insn entries.
6871 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
6873 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
6875 2019-09-27 David Malcolm <dmalcolm@redhat.com>
6877 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
6878 (fibonacci_heap::nodes): Likewise.
6879 (fibonacci_heap::min_key): Likewise.
6880 (fibonacci_heap::min): Likewise.
6882 2019-09-27 David Malcolm <dmalcolm@redhat.com>
6884 * cgraph.c (cgraph_node::get_fun): Make const.
6885 * cgraph.h (cgraph_node::get_fun): Likewise.
6887 2019-09-27 Jakub Jelinek <jakub@redhat.com>
6890 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
6893 2019-09-27 Richard Biener <rguenther@suse.de>
6895 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
6896 (STMT_VINFO_REDUC_FN): Likewise.
6897 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
6898 STMT_VINFO_REDUC_FN.
6899 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
6900 for condition reductions.
6901 (vect_create_epilog_for_reduction): Compute all required state
6902 from the stmt to be vectorized.
6903 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
6904 invocation and remove then dead code. For single def-use chains
6905 record only a single vector stmt.
6907 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
6909 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
6910 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
6911 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
6912 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
6913 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
6914 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
6915 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
6916 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
6917 (aarch64_general_builtin_rsqrt): Declare.
6918 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
6920 (aarch64_mangle_builtin_type): Rename to...
6921 (aarch64_general_mangle_builtin_type): ...this.
6922 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
6923 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
6924 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
6925 aarch64_general_add_builtin instead of add_builtin_function.
6926 (aarch64_init_builtins): Rename to...
6927 (aarch64_general_init_builtins): ...this. Use
6928 aarch64_general_add_builtin instead of add_builtin_function.
6929 (aarch64_builtin_decl): Rename to...
6930 (aarch64_general_builtin_decl): ...this and remove the unused
6932 (aarch64_expand_builtin): Rename to...
6933 (aarch64_general_expand_builtin): ...this and remove the unused
6935 (aarch64_builtin_rsqrt): Rename to...
6936 (aarch64_general_builtin_rsqrt): ...this.
6937 (aarch64_fold_builtin): Rename to...
6938 (aarch64_general_fold_builtin): ...this. Take the function subcode
6939 and return type as arguments. Remove the "ignored" argument.
6940 (aarch64_gimple_fold_builtin): Rename to...
6941 (aarch64_general_gimple_fold_builtin): ...this. Take the function
6942 subcode and gcall as arguments, and return the new function call.
6943 * config/aarch64/aarch64.c (aarch64_init_builtins)
6944 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
6945 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
6946 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
6947 instead of aarch64_builtin_rsqrt.
6948 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
6949 instead of aarch64_mangle_builtin_type.
6951 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
6953 * target.def (check_builtin_call): New target hook.
6954 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
6955 * doc/tm.texi: Regenerate.
6957 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
6959 PR tree-optimization/91909
6960 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
6961 reduc_index parameter. When handling COND_REDUCTION, make sure
6962 that the reduction phi operand is in the correct arm of the
6964 (vectorizable_reduction): Pass reduc_index to the above.
6966 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
6968 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
6969 New combine pattern.
6971 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
6973 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
6974 loop instruction into new basic block before the loop when basic
6975 block that precedes the loop is empty.
6977 2019-09-26 Jakub Jelinek <jakub@redhat.com>
6979 * function.c (gimplify_parameters): Use build_clobber function.
6980 * tree-ssa.c (execute_update_addresses_taken): Likewise.
6981 * tree-inline.c (expand_call_inline): Likewise.
6982 * tree-sra.c (clobber_subtree): Likewise.
6983 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
6984 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
6985 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
6986 lower_omp_target): Likewise.
6987 * omp-expand.c (expand_omp_for_generic): Likewise.
6988 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
6990 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
6992 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
6993 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
6994 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
6995 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
6996 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
6997 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
6998 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
6999 LD_ELEMREV_V16QI): Use the PURE attribute.
7001 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
7003 * config/rs6000/darwin.md: Replace the expanders for
7004 load_macho_picbase and reload_macho_picbase with use of '@'
7005 and <mode> in their respective define_insns.
7006 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
7007 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
7008 Pmode to gen_load_macho_picbase.
7009 * config/rs6000/rs6000.md: Likewise.
7011 2019-09-25 Richard Biener <rguenther@suse.de>
7013 PR tree-optimization/91896
7014 * tree-vect-loop.c (vectorizable_reduction): The single
7015 def-use cycle optimization cannot apply when there's more
7016 than one pattern stmt involved.
7018 2019-09-26 Richard Biener <rguenther@suse.de>
7020 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
7021 loop-closed PHIs that are vect_internal_def.
7022 (vect_create_epilog_for_reduction): Exit early for nested cycles.
7024 (vectorizable_lc_phi): New.
7025 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
7026 (vect_transform_stmt): Likewise.
7027 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
7028 (vectorizable_lc_phi): Declare.
7030 2019-09-26 Richard Biener <rguenther@suse.de>
7032 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
7033 vectorizable_reduction for vect_double_reduction_def.
7034 (vect_transform_loop): Likewise.
7035 (vect_create_epilog_for_reduction): Move double-reduction
7036 PHI creation and preheader argument setting of PHIs ...
7037 (vectorizable_reduction): ... here. Also process
7038 vect_double_reduction_def PHIs, creating the vectorized
7039 PHI nodes, remembering the scalar adjustment computed for
7040 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
7041 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
7042 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
7043 Initialize STMT_VINFO_REDUC_CODE.
7044 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
7045 (_stmt_vec_info::reduc_code): Likewise.
7046 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
7047 (STMT_VINFO_REDUC_CODE): Likewise.
7049 2019-09-26 Matt Turner <mattst88@gmail.com>
7052 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
7053 (mtune=): Add Negative(mtune=).
7054 (mcpu=): Add Negative(mcpu=).
7055 * config/arm/arm.opt: Likewise.
7057 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7059 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
7060 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
7062 * config/arm/arm_acle.h: Define builtins for the above.
7063 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
7064 (simd32_op): Handle the above.
7065 * config/arm/unspecs.md: Define unspecs for the above.
7067 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7069 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
7070 (arm_<sup>xtb16): Likewise.
7071 (arm_usada8): Likewise.
7072 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
7073 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
7074 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
7075 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
7076 __sxtb16, __uxtab16, __uxtb16): Define.
7077 * config/arm/arm_acle_builtins.def: Define builtins for the above.
7078 * config/arm/unspecs.md: Define unspecs for the above.
7079 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
7080 (USXTB16): Likewise.
7081 (simd32_op): New int_attribute.
7082 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
7083 * doc/sourcebuild.exp (arm_simd32_ok): Document.
7085 2019-09-26 Martin Jambor <mjambor@suse.cz>
7087 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
7090 2019-09-26 Martin Jambor <mjambor@suse.cz>
7092 * ipa-sra.c (process_scan_results): Fix continue condition.
7094 2019-09-26 Martin Liska <mliska@suse.cz>
7096 PR tree-optimization/91885
7097 * tree-vectorizer.c (try_vectorize_loop_1): Add
7098 TODO_update_ssa_only_virtuals similarly to what slp pass does.
7100 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
7102 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
7103 aarch64_plus_immediate rather than aarch64_uimm12_shift
7104 to test for valid PLUS immediates.
7106 2019-09-25 Martin Jambor <mjambor@suse.cz>
7108 * tree-sra.c (no_accesses_p): Remove.
7109 (no_accesses_representant): Likewise.
7111 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7113 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
7115 (vaba_s16): Likewise.
7116 (vaba_s32): Likewise.
7117 (vaba_u8): Likewise.
7118 (vaba_u16): Likewise.
7119 (vaba_u32): Likewise.
7120 (vabal_high_s8): Likewise.
7121 (vabal_high_s16): Likewise.
7122 (vabal_high_s32): Likewise.
7123 (vabal_high_u8): Likewise.
7124 (vabal_high_u16): Likewise.
7125 (vabal_high_u32): Likewise.
7126 (vabal_s8): Likewise.
7127 (vabal_s16): Likewise.
7128 (vabal_s32): Likewise.
7129 (vabal_u8): Likewise.
7130 (vabal_u16): Likewise.
7131 (vabal_u32): Likewise.
7132 (vabaq_s8): Likewise.
7133 (vabaq_s16): Likewise.
7134 (vabaq_s32): Likewise.
7135 (vabaq_u8): Likewise.
7136 (vabaq_u16): Likewise.
7137 (vabaq_u32): Likewise.
7138 (vabd_s8): Likewise.
7139 (vabd_s16): Likewise.
7140 (vabd_s32): Likewise.
7141 (vabd_u8): Likewise.
7142 (vabd_u16): Likewise.
7143 (vabd_u32): Likewise.
7144 (vabdl_high_s8): Likewise.
7145 (vabdl_high_s16): Likewise.
7146 (vabdl_high_s32): Likewise.
7147 (vabdl_high_u8): Likewise.
7148 (vabdl_high_u16): Likewise.
7149 (vabdl_high_u32): Likewise.
7150 (vabdl_s8): Likewise.
7151 (vabdl_s16): Likewise.
7152 (vabdl_s32): Likewise.
7153 (vabdl_u8): Likewise.
7154 (vabdl_u16): Likewise.
7155 (vabdl_u32): Likewise.
7156 (vabdq_s8): Likewise.
7157 (vabdq_s16): Likewise.
7158 (vabdq_s32): Likewise.
7159 (vabdq_u8): Likewise.
7160 (vabdq_u16): Likewise.
7161 (vabdq_u32): Likewise.
7162 (vaddlv_s8): Likewise.
7163 (vaddlv_s16): Likewise.
7164 (vaddlv_u8): Likewise.
7165 (vaddlv_u16): Likewise.
7166 (vaddlvq_s8): Likewise.
7167 (vaddlvq_s16): Likewise.
7168 (vaddlvq_s32): Likewise.
7169 (vaddlvq_u8): Likewise.
7170 (vaddlvq_u16): Likewise.
7171 (vaddlvq_u32): Likewise.
7172 (vcvtx_f32_f64): Likewise.
7173 (vcvtx_high_f32_f64): Likewise.
7174 (vcvtxd_f32_f64): Likewise.
7175 (vmla_n_f32): Likewise.
7176 (vmla_n_s16): Likewise.
7177 (vmla_n_s32): Likewise.
7178 (vmla_n_u16): Likewise.
7179 (vmla_n_u32): Likewise.
7180 (vmla_s8): Likewise.
7181 (vmla_s16): Likewise.
7182 (vmla_s32): Likewise.
7183 (vmla_u8): Likewise.
7184 (vmla_u16): Likewise.
7185 (vmla_u32): Likewise.
7186 (vmlal_high_n_s16): Likewise.
7187 (vmlal_high_n_s32): Likewise.
7188 (vmlal_high_n_u16): Likewise.
7189 (vmlal_high_n_u32): Likewise.
7190 (vmlal_high_s8): Likewise.
7191 (vmlal_high_s16): Likewise.
7192 (vmlal_high_s32): Likewise.
7193 (vmlal_high_u8): Likewise.
7194 (vmlal_high_u16): Likewise.
7195 (vmlal_high_u32): Likewise.
7196 (vmlal_n_s16): Likewise.
7197 (vmlal_n_s32): Likewise.
7198 (vmlal_n_u16): Likewise.
7199 (vmlal_n_u32): Likewise.
7200 (vmlal_s8): Likewise.
7201 (vmlal_s16): Likewise.
7202 (vmlal_s32): Likewise.
7203 (vmlal_u8): Likewise.
7204 (vmlal_u16): Likewise.
7205 (vmlal_u32): Likewise.
7206 (vmlaq_n_f32): Likewise.
7207 (vmlaq_n_s16): Likewise.
7208 (vmlaq_n_s32): Likewise.
7209 (vmlaq_n_u16): Likewise.
7210 (vmlaq_n_u32): Likewise.
7211 (vmlaq_s8): Likewise.
7212 (vmlaq_s16): Likewise.
7213 (vmlaq_s32): Likewise.
7214 (vmlaq_u8): Likewise.
7215 (vmlaq_u16): Likewise.
7216 (vmlaq_u32): Likewise.
7217 (vmls_n_f32): Likewise.
7218 (vmls_n_s16): Likewise.
7219 (vmls_n_s32): Likewise.
7220 (vmls_n_u16): Likewise.
7221 (vmls_n_u32): Likewise.
7222 (vmls_s8): Likewise.
7223 (vmls_s16): Likewise.
7224 (vmls_s32): Likewise.
7225 (vmls_u8): Likewise.
7226 (vmls_u16): Likewise.
7227 (vmls_u32): Likewise.
7228 (vmlsl_high_n_s16): Likewise.
7229 (vmlsl_high_n_s32): Likewise.
7230 (vmlsl_high_n_u16): Likewise.
7231 (vmlsl_high_n_u32): Likewise.
7232 (vmlsl_high_s8): Likewise.
7233 (vmlsl_high_s16): Likewise.
7234 (vmlsl_high_s32): Likewise.
7235 (vmlsl_high_u8): Likewise.
7236 (vmlsl_high_u16): Likewise.
7237 (vmlsl_high_u32): Likewise.
7238 (vmlsl_n_s16): Likewise.
7239 (vmlsl_n_s32): Likewise.
7240 (vmlsl_n_u16): Likewise.
7241 (vmlsl_n_u32): Likewise.
7242 (vmlsl_s8): Likewise.
7243 (vmlsl_s16): Likewise.
7244 (vmlsl_s32): Likewise.
7245 (vmlsl_u8): Likewise.
7246 (vmlsl_u16): Likewise.
7247 (vmlsl_u32): Likewise.
7248 (vmlsq_n_f32): Likewise.
7249 (vmlsq_n_s16): Likewise.
7250 (vmlsq_n_s32): Likewise.
7251 (vmlsq_n_u16): Likewise.
7252 (vmlsq_n_u32): Likewise.
7253 (vmlsq_s8): Likewise.
7254 (vmlsq_s16): Likewise.
7255 (vmlsq_s32): Likewise.
7256 (vmlsq_u8): Likewise.
7257 (vmlsq_u16): Likewise.
7258 (vmlsq_u32): Likewise.
7259 (vmovl_high_s8): Likewise.
7260 (vmovl_high_s16): Likewise.
7261 (vmovl_high_s32): Likewise.
7262 (vmovl_high_u8): Likewise.
7263 (vmovl_high_u16): Likewise.
7264 (vmovl_high_u32): Likewise.
7265 (vmovl_s8): Likewise.
7266 (vmovl_s16): Likewise.
7267 (vmovl_s32): Likewise.
7268 (vmovl_u8): Likewise.
7269 (vmovl_u16): Likewise.
7270 (vmovl_u32): Likewise.
7271 (vmovn_high_s16): Likewise.
7272 (vmovn_high_s32): Likewise.
7273 (vmovn_high_s64): Likewise.
7274 (vmovn_high_u16): Likewise.
7275 (vmovn_high_u32): Likewise.
7276 (vmovn_high_u64): Likewise.
7277 (vmovn_s16): Likewise.
7278 (vmovn_s32): Likewise.
7279 (vmovn_s64): Likewise.
7280 (vmovn_u16): Likewise.
7281 (vmovn_u32): Likewise.
7282 (vmovn_u64): Likewise.
7283 (vmull_high_n_s16): Likewise.
7284 (vmull_high_n_s32): Likewise.
7285 (vmull_high_n_u16): Likewise.
7286 (vmull_high_n_u32): Likewise.
7287 (vmull_high_p8): Likewise.
7288 (vmull_high_s8): Likewise.
7289 (vmull_high_s16): Likewise.
7290 (vmull_high_s32): Likewise.
7291 (vmull_high_u8): Likewise.
7292 (vmull_high_u16): Likewise.
7293 (vmull_high_u32): Likewise.
7294 (vmull_n_s16): Likewise.
7295 (vmull_n_s32): Likewise.
7296 (vmull_n_u16): Likewise.
7297 (vmull_n_u32): Likewise.
7298 (vmull_p8): Likewise.
7299 (vmull_s8): Likewise.
7300 (vmull_s16): Likewise.
7301 (vmull_s32): Likewise.
7302 (vmull_u8): Likewise.
7303 (vmull_u16): Likewise.
7304 (vmull_u32): Likewise.
7305 (vpadal_s8): Likewise.
7306 (vpadal_s16): Likewise.
7307 (vpadal_s32): Likewise.
7308 (vpadal_u8): Likewise.
7309 (vpadal_u16): Likewise.
7310 (vpadal_u32): Likewise.
7311 (vpadalq_s8): Likewise.
7312 (vpadalq_s16): Likewise.
7313 (vpadalq_s32): Likewise.
7314 (vpadalq_u8): Likewise.
7315 (vpadalq_u16): Likewise.
7316 (vpadalq_u32): Likewise.
7317 (vpaddl_s8): Likewise.
7318 (vpaddl_s16): Likewise.
7319 (vpaddl_s32): Likewise.
7320 (vpaddl_u8): Likewise.
7321 (vpaddl_u16): Likewise.
7322 (vpaddl_u32): Likewise.
7323 (vpaddlq_s8): Likewise.
7324 (vpaddlq_s16): Likewise.
7325 (vpaddlq_s32): Likewise.
7326 (vpaddlq_u8): Likewise.
7327 (vpaddlq_u16): Likewise.
7328 (vpaddlq_u32): Likewise.
7329 (vpaddq_s8): Likewise.
7330 (vpaddq_s16): Likewise.
7331 (vpaddq_s32): Likewise.
7332 (vpaddq_s64): Likewise.
7333 (vpaddq_u8): Likewise.
7334 (vpaddq_u16): Likewise.
7335 (vpaddq_u32): Likewise.
7336 (vpaddq_u64): Likewise.
7337 (vqdmulh_n_s16): Likewise.
7338 (vqdmulh_n_s32): Likewise.
7339 (vqdmulhq_n_s16): Likewise.
7340 (vqdmulhq_n_s32): Likewise.
7341 (vqmovn_high_s16): Likewise.
7342 (vqmovn_high_s32): Likewise.
7343 (vqmovn_high_s64): Likewise.
7344 (vqmovn_high_u16): Likewise.
7345 (vqmovn_high_u32): Likewise.
7346 (vqmovn_high_u64): Likewise.
7347 (vqmovun_high_s16): Likewise.
7348 (vqmovun_high_s32): Likewise.
7349 (vqmovun_high_s64): Likewise.
7350 (vqrdmulh_n_s16): Likewise.
7351 (vqrdmulh_n_s32): Likewise.
7352 (vqrdmulhq_n_s16): Likewise.
7353 (vqrdmulhq_n_s32): Likewise.
7354 (vrsqrte_u32): Likewise.
7355 (vrsqrteq_u32): Likewise.
7356 (vtst_p8): Likewise.
7357 (vtst_p16): Likewise.
7358 (vtst_p64): Likewise.
7359 (vtstq_p8): Likewise.
7360 (vtstq_p16): Likewise.
7361 (vtstq_p64): Likewise.
7362 (vaddlv_s32): Likewise.
7363 (vaddlv_u32): Likewise.
7364 (vqtbl1_p8): Likewise.
7365 (vqtbl1_s8): Likewise.
7366 (vqtbl1_u8): Likewise.
7367 (vqtbl1q_p8): Likewise.
7368 (vqtbl1q_s8): Likewise.
7369 (vqtbl1q_u8): Likewise.
7370 (vqtbx1_s8): Likewise.
7371 (vqtbx1_u8): Likewise.
7372 (vqtbx1_p8): Likewise.
7373 (vqtbx1q_s8): Likewise.
7374 (vqtbx1q_u8): Likewise.
7375 (vqtbx1q_p8): Likewise.
7376 (vtbl1_s8): Likewise.
7377 (vtbl1_u8): Likewise.
7378 (vtbl1_p8): Likewise.
7379 (vtbl2_s8): Likewise.
7380 (vtbl2_u8): Likewise.
7381 (vtbl2_p8): Likewise.
7382 (vtbl3_s8): Likewise.
7383 (vtbl3_u8): Likewise.
7384 (vtbl3_p8): Likewise.
7385 (vtbl4_s8): Likewise.
7386 (vtbl4_u8): Likewise.
7387 (vtbl4_p8): Likewise.
7388 (vtbx2_s8): Likewise.
7389 (vtbx2_u8): Likewise.
7390 (vtbx2_p8): Likewise.
7391 (vld1_f32): Likewise.
7392 (vld1_f64): Likewise.
7393 (vld1_p8): Likewise.
7394 (vld1_p16): Likewise.
7395 (vld1_p64): Likewise.
7396 (vld1_s8): Likewise.
7397 (vld1_s16): Likewise.
7398 (vld1_s32): Likewise.
7399 (vld1_s64): Likewise.
7400 (vld1_u8): Likewise.
7401 (vld1_u16): Likewise.
7402 (vld1_u32): Likewise.
7403 (vld1_u64): Likewise.
7404 (vld1q_f32): Likewise.
7405 (vld1q_f64): Likewise.
7406 (vld1q_p8): Likewise.
7407 (vld1q_p16): Likewise.
7408 (vld1q_p64): Likewise.
7409 (vld1q_s8): Likewise.
7410 (vld1q_s16): Likewise.
7411 (vld1q_s32): Likewise.
7412 (vld1q_s64): Likewise.
7413 (vld1q_u8): Likewise.
7414 (vld1q_u16): Likewise.
7415 (vld1q_u32): Likewise.
7416 (vld1q_u64): Likewise.
7417 (vpmax_s8): Likewise.
7418 (vpmax_s16): Likewise.
7419 (vpmax_s32): Likewise.
7420 (vpmax_u8): Likewise.
7421 (vpmax_u16): Likewise.
7422 (vpmax_u32): Likewise.
7423 (vpmaxq_s8): Likewise.
7424 (vpmaxq_s16): Likewise.
7425 (vpmaxq_s32): Likewise.
7426 (vpmaxq_u8): Likewise.
7427 (vpmaxq_u16): Likewise.
7428 (vpmaxq_u32): Likewise.
7429 (vpmax_f32): Likewise.
7430 (vpmaxq_f32): Likewise.
7431 (vpmaxq_f64): Likewise.
7432 (vpmaxqd_f64): Likewise.
7433 (vpmaxs_f32): Likewise.
7434 (vpmaxnm_f32): Likewise.
7435 (vpmaxnmq_f32): Likewise.
7436 (vpmaxnmq_f64): Likewise.
7437 (vpmaxnmqd_f64): Likewise.
7438 (vpmaxnms_f32): Likewise.
7439 (vpmin_s8): Likewise.
7440 (vpmin_s16): Likewise.
7441 (vpmin_s32): Likewise.
7442 (vpmin_u8): Likewise.
7443 (vpmin_u16): Likewise.
7444 (vpmin_u32): Likewise.
7445 (vpminq_s8): Likewise.
7446 (vpminq_s16): Likewise.
7447 (vpminq_s32): Likewise.
7448 (vpminq_u8): Likewise.
7449 (vpminq_u16): Likewise.
7450 (vpminq_u32): Likewise.
7451 (vpmin_f32): Likewise.
7452 (vpminq_f32): Likewise.
7453 (vpminq_f64): Likewise.
7454 (vpminqd_f64): Likewise.
7455 (vpmins_f32): Likewise.
7456 (vpminnm_f32): Likewise.
7457 (vpminnmq_f32): Likewise.
7458 (vpminnmq_f64): Likewise.
7459 (vpminnmqd_f64): Likewise.
7460 (vpminnms_f32): Likewise.
7461 (vmla_f32): Likewise.
7462 (vmlaq_f32): Likewise.
7463 (vmlaq_f64): Likewise.
7464 (vmls_f32): Likewise.
7465 (vmlsq_f32): Likewise.
7466 (vmlsq_f64): Likewise.
7467 (vqtbl2_s8): Likewise.
7468 (vqtbl2_u8): Likewise.
7469 (vqtbl2_p8): Likewise.
7470 (vqtbl2q_s8): Likewise.
7471 (vqtbl2q_u8): Likewise.
7472 (vqtbl2q_p8): Likewise.
7473 (vqtbl3_s8): Likewise.
7474 (vqtbl3_u8): Likewise.
7475 (vqtbl3_p8): Likewise.
7476 (vqtbl3q_s8): Likewise.
7477 (vqtbl3q_u8): Likewise.
7478 (vqtbl3q_p8): Likewise.
7479 (vqtbl4_s8): Likewise.
7480 (vqtbl4_u8): Likewise.
7481 (vqtbl4_p8): Likewise.
7482 (vqtbl4q_s8): Likewise.
7483 (vqtbl4q_u8): Likewise.
7484 (vqtbl4q_p8): Likewise.
7485 (vqtbx2_s8): Likewise.
7486 (vqtbx2_u8): Likewise.
7487 (vqtbx2_p8): Likewise.
7488 (vqtbx2q_s8): Likewise.
7489 (vqtbx2q_u8): Likewise.
7490 (vqtbx2q_p8): Likewise.
7491 (vqtbx3_s8): Likewise.
7492 (vqtbx3_u8): Likewise.
7493 (vqtbx3_p8): Likewise.
7494 (vqtbx3q_s8): Likewise.
7495 (vqtbx3q_u8): Likewise.
7496 (vqtbx3q_p8): Likewise.
7497 (vqtbx4_s8): Likewise.
7498 (vqtbx4_u8): Likewise.
7499 (vqtbx4_p8): Likewise.
7500 (vqtbx4q_s8): Likewise.
7501 (vqtbx4q_u8): Likewise.
7502 (vqtbx4q_p8): Likewise.
7503 (vrev16_p8): Likewise.
7504 (vrev16_s8): Likewise.
7505 (vrev16_u8): Likewise.
7506 (vrev16q_p8): Likewise.
7507 (vrev16q_s8): Likewise.
7508 (vrev16q_u8): Likewise.
7509 (vrev32_p8): Likewise.
7510 (vrev32_p16): Likewise.
7511 (vrev32_s8): Likewise.
7512 (vrev32_s16): Likewise.
7513 (vrev32_u8): Likewise.
7514 (vrev32_u16): Likewise.
7515 (vrev32q_p8): Likewise.
7516 (vrev32q_p16): Likewise.
7517 (vrev32q_s8): Likewise.
7518 (vrev32q_s16): Likewise.
7519 (vrev32q_u8): Likewise.
7520 (vrev32q_u16): Likewise.
7521 (vrev64_f32): Likewise.
7522 (vrev64_p8): Likewise.
7523 (vrev64_p16): Likewise.
7524 (vrev64_s8): Likewise.
7525 (vrev64_s16): Likewise.
7526 (vrev64_s32): Likewise.
7527 (vrev64_u8): Likewise.
7528 (vrev64_u16): Likewise.
7529 (vrev64_u32): Likewise.
7530 (vrev64q_f32): Likewise.
7531 (vrev64q_p8): Likewise.
7532 (vrev64q_p16): Likewise.
7533 (vrev64q_s8): Likewise.
7534 (vrev64q_s16): Likewise.
7535 (vrev64q_s32): Likewise.
7536 (vrev64q_u8): Likewise.
7537 (vrev64q_u16): Likewise.
7538 (vrev64q_u32): Likewise.
7539 (vsha1cq_u32): Likewise.
7540 (vsha1mq_u32): Likewise.
7541 (vsha1pq_u32): Likewise.
7542 (vsha1h_u32): Likewise.
7543 (vsha1su0q_u32): Likewise.
7544 (vsha1su1q_u32): Likewise.
7545 (vsha256hq_u32): Likewise.
7546 (vsha256h2q_u32): Likewise.
7547 (vsha256su0q_u32): Likewise.
7548 (vsha256su1q_u32): Likewise.
7549 (vmull_p64): Likewise.
7550 (vmull_high_p64): Likewise.
7551 (vsqrt_f32): Likewise.
7552 (vsqrtq_f32): Likewise.
7553 (vsqrt_f64): Likewise.
7554 (vsqrtq_f64): Likewise.
7555 (vst1_f32): Likewise.
7556 (vst1_f64): Likewise.
7557 (vst1_p8): Likewise.
7558 (vst1_p16): Likewise.
7559 (vst1_p64): Likewise.
7560 (vst1_s8): Likewise.
7561 (vst1_s16): Likewise.
7562 (vst1_s32): Likewise.
7563 (vst1_s64): Likewise.
7564 (vst1_u8): Likewise.
7565 (vst1_u16): Likewise.
7566 (vst1_u32): Likewise.
7567 (vst1_u64): Likewise.
7568 (vst1q_f32): Likewise.
7569 (vst1q_f64): Likewise.
7570 (vst1q_p8): Likewise.
7571 (vst1q_p16): Likewise.
7572 (vst1q_p64): Likewise.
7573 (vst1q_s8): Likewise.
7574 (vst1q_s16): Likewise.
7575 (vst1q_s32): Likewise.
7576 (vst1q_s64): Likewise.
7577 (vst1q_u8): Likewise.
7578 (vst1q_u16): Likewise.
7579 (vst1q_u32): Likewise.
7580 (vst1q_u64): Likewise.
7581 (vst1_s64_x2): Likewise.
7582 (vst1_u64_x2): Likewise.
7583 (vst1_f64_x2): Likewise.
7584 (vst1_s8_x2): Likewise.
7585 (vst1_p8_x2): Likewise.
7586 (vst1_s16_x2): Likewise.
7587 (vst1_p16_x2): Likewise.
7588 (vst1_s32_x2): Likewise.
7589 (vst1_u8_x2): Likewise.
7590 (vst1_u16_x2): Likewise.
7591 (vst1_u32_x2): Likewise.
7592 (vst1_f16_x2): Likewise.
7593 (vst1_f32_x2): Likewise.
7594 (vst1_p64_x2): Likewise.
7595 (vst1q_s8_x2): Likewise.
7596 (vst1q_p8_x2): Likewise.
7597 (vst1q_s16_x2): Likewise.
7598 (vst1q_p16_x2): Likewise.
7599 (vst1q_s32_x2): Likewise.
7600 (vst1q_s64_x2): Likewise.
7601 (vst1q_u8_x2): Likewise.
7602 (vst1q_u16_x2): Likewise.
7603 (vst1q_u32_x2): Likewise.
7604 (vst1q_u64_x2): Likewise.
7605 (vst1q_f16_x2): Likewise.
7606 (vst1q_f32_x2): Likewise.
7607 (vst1q_f64_x2): Likewise.
7608 (vst1q_p64_x2): Likewise.
7609 (vst1_s64_x3): Likewise.
7610 (vst1_u64_x3): Likewise.
7611 (vst1_f64_x3): Likewise.
7612 (vst1_s8_x3): Likewise.
7613 (vst1_p8_x3): Likewise.
7614 (vst1_s16_x3): Likewise.
7615 (vst1_p16_x3): Likewise.
7616 (vst1_s32_x3): Likewise.
7617 (vst1_u8_x3): Likewise.
7618 (vst1_u16_x3): Likewise.
7619 (vst1_u32_x3): Likewise.
7620 (vst1_f16_x3): Likewise.
7621 (vst1_f32_x3): Likewise.
7622 (vst1_p64_x3): Likewise.
7623 (vst1q_s8_x3): Likewise.
7624 (vst1q_p8_x3): Likewise.
7625 (vst1q_s16_x3): Likewise.
7626 (vst1q_p16_x3): Likewise.
7627 (vst1q_s32_x3): Likewise.
7628 (vst1q_s64_x3): Likewise.
7629 (vst1q_u8_x3): Likewise.
7630 (vst1q_u16_x3): Likewise.
7631 (vst1q_u32_x3): Likewise.
7632 (vst1q_u64_x3): Likewise.
7633 (vst1q_f16_x3): Likewise.
7634 (vst1q_f32_x3): Likewise.
7635 (vst1q_f64_x3): Likewise.
7636 (vst1q_p64_x3): Likewise.
7637 (vst2_s64): Likewise.
7638 (vst2_u64): Likewise.
7639 (vst2_f64): Likewise.
7640 (vst2_s8): Likewise.
7641 (vst2_p8): Likewise.
7642 (vst2_s16): Likewise.
7643 (vst2_p16): Likewise.
7644 (vst2_s32): Likewise.
7645 (vst2_u8): Likewise.
7646 (vst2_u16): Likewise.
7647 (vst2_u32): Likewise.
7648 (vst2_f16): Likewise.
7649 (vst2_f32): Likewise.
7650 (vst2_p64): Likewise.
7651 (vst2q_s8): Likewise.
7652 (vst2q_p8): Likewise.
7653 (vst2q_s16): Likewise.
7654 (vst2q_p16): Likewise.
7655 (vst2q_s32): Likewise.
7656 (vst2q_s64): Likewise.
7657 (vst2q_u8): Likewise.
7658 (vst2q_u16): Likewise.
7659 (vst2q_u32): Likewise.
7660 (vst2q_u64): Likewise.
7661 (vst2q_f16): Likewise.
7662 (vst2q_f32): Likewise.
7663 (vst2q_f64): Likewise.
7664 (vst2q_p64): Likewise.
7665 (vst3_s64): Likewise.
7666 (vst3_u64): Likewise.
7667 (vst3_f64): Likewise.
7668 (vst3_s8): Likewise.
7669 (vst3_p8): Likewise.
7670 (vst3_s16): Likewise.
7671 (vst3_p16): Likewise.
7672 (vst3_s32): Likewise.
7673 (vst3_u8): Likewise.
7674 (vst3_u16): Likewise.
7675 (vst3_u32): Likewise.
7676 (vst3_f16): Likewise.
7677 (vst3_f32): Likewise.
7678 (vst3_p64): Likewise.
7679 (vst3q_s8): Likewise.
7680 (vst3q_p8): Likewise.
7681 (vst3q_s16): Likewise.
7682 (vst3q_p16): Likewise.
7683 (vst3q_s32): Likewise.
7684 (vst3q_s64): Likewise.
7685 (vst3q_u8): Likewise.
7686 (vst3q_u16): Likewise.
7687 (vst3q_u32): Likewise.
7688 (vst3q_u64): Likewise.
7689 (vst3q_f16): Likewise.
7690 (vst3q_f32): Likewise.
7691 (vst3q_f64): Likewise.
7692 (vst3q_p64): Likewise.
7693 (vst4_s64): Likewise.
7694 (vst4_u64): Likewise.
7695 (vst4_f64): Likewise.
7696 (vst4_s8): Likewise.
7697 (vst4_p8): Likewise.
7698 (vst4_s16): Likewise.
7699 (vst4_p16): Likewise.
7700 (vst4_s32): Likewise.
7701 (vst4_u8): Likewise.
7702 (vst4_u16): Likewise.
7703 (vst4_u32): Likewise.
7704 (vst4_f16): Likewise.
7705 (vst4_f32): Likewise.
7706 (vst4_p64): Likewise.
7707 (vst4q_s8): Likewise.
7708 (vst4q_p8): Likewise.
7709 (vst4q_s16): Likewise.
7710 (vst4q_p16): Likewise.
7711 (vst4q_s32): Likewise.
7712 (vst4q_s64): Likewise.
7713 (vst4q_u8): Likewise.
7714 (vst4q_u16): Likewise.
7715 (vst4q_u32): Likewise.
7716 (vst4q_u64): Likewise.
7717 (vst4q_f16): Likewise.
7718 (vst4q_f32): Likewise.
7719 (vst4q_f64): Likewise.
7720 (vst4q_p64): Likewise.
7721 (vtbx4_s8): Likewise.
7722 (vtbx4_u8): Likewise.
7723 (vtbx4_p8): Likewise.
7724 (vtrn_f32): Likewise.
7725 (vtrn_p8): Likewise.
7726 (vtrn_p16): Likewise.
7727 (vtrn_s8): Likewise.
7728 (vtrn_s16): Likewise.
7729 (vtrn_s32): Likewise.
7730 (vtrn_u8): Likewise.
7731 (vtrn_u16): Likewise.
7732 (vtrn_u32): Likewise.
7733 (vtrnq_f32): Likewise.
7734 (vtrnq_p8): Likewise.
7735 (vtrnq_p16): Likewise.
7736 (vtrnq_s8): Likewise.
7737 (vtrnq_s16): Likewise.
7738 (vtrnq_s32): Likewise.
7739 (vtrnq_u8): Likewise.
7740 (vtrnq_u16): Likewise.
7741 (vtrnq_u32): Likewise.
7742 (vrsqrte_f16): Likewise.
7743 (vrsqrteq_f16): Likewise.
7744 (vsqrt_f16): Likewise.
7745 (vsqrtq_f16): Likewise.
7746 (vabd_f16): Likewise.
7747 (vabdq_f16): Likewise.
7748 (vpadd_f16): Likewise.
7749 (vpaddq_f16): Likewise.
7750 (vpmax_f16): Likewise.
7751 (vpmaxq_f16): Likewise.
7752 (vpmaxnm_f16): Likewise.
7753 (vpmaxnmq_f16): Likewise.
7754 (vpmin_f16): Likewise.
7755 (vpminq_f16): Likewise.
7756 (vpminnm_f16): Likewise.
7757 (vpminnmq_f16): Likewise.
7758 (vrsqrts_f16): Likewise.
7759 (vrsqrtsq_f16): Likewise.
7761 2019-09-25 Richard Biener <rguenther@suse.de>
7763 PR tree-optimization/91896
7764 * tree-vect-loop.c (vectorizable_reduction): The single
7765 def-use cycle optimization cannot apply when there's more
7766 than one pattern stmt involved.
7768 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
7770 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
7771 the 'P' mode iterator, replacing the (removed) SI and DI variants.
7772 (reload_macho_picbase_<mode>): Likewise.
7774 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
7776 * config/rs6000/rs6000.md: Move darwin.md include until
7777 after the definition of the mode iterators.
7779 2019-09-23 Martin Sebor <msebor@redhat.com>
7781 PR tree-optimization/91570
7782 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
7783 non-constant minlen, maxlen and maxbound.
7785 2019-09-24 Richard Biener <rguenther@suse.de>
7787 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
7789 (_stmt_vec_info::cond_reduc_code): ... this.
7790 (_stmt_vec_info::induc_cond_initial_val): Add.
7791 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
7792 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
7793 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
7794 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
7795 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
7797 (vect_create_epilog_for_reduction): Drop special
7798 induction condition reduction params, pass in reduction code
7800 (vectorizable_reduction): Perform condition reduction kind
7801 selection only at analysis time. Adjust passing on state.
7803 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7805 * config/aarch64/aarch64.md (mov<mode>): Don't call
7806 aarch64_split_dimode_const_store on volatile MEM.
7808 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
7810 * config/aarch64/aarch64-option-extensions.def (fp16fml):
7811 Update hwcap string for fp16fml.
7813 2019-09-24 Jakub Jelinek <jakub@redhat.com>
7816 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
7817 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
7819 2019-09-24 Martin Liska <mliska@suse.cz>
7821 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
7822 instead of if-elseif-elseif-...
7823 * gimple-expr.c (extract_ops_from_tree): Likewise.
7824 * gimple.c (get_gimple_rhs_num_ops): Likewise.
7825 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
7827 2019-09-24 Martin Jambor <mjambor@suse.cz>
7830 * ipa-param-manipulation.c (carry_over_param): Make a method of
7831 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
7832 in case of a context mismatch.
7833 (ipa_param_body_adjustments::common_initialization): Adjust call to
7835 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
7836 private method carry_over_param.
7838 2019-09-24 Martin Jambor <mjambor@suse.cz>
7841 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
7843 2019-09-24 Richard Biener <rguenther@suse.de>
7845 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
7848 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7850 * config/arm/t-arm (arm-builtins.o): Add dependency on
7851 arm_acle_builtins.def.
7853 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
7856 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
7857 canonical CONST_INTs. Use gen_rtvec.
7859 2019-09-23 Richard Biener <rguenther@suse.de>
7861 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
7862 avoid adjusting by + 0 or * 1.
7863 (vect_create_epilog_for_reduction): Get reduction code only
7864 when necessary. Deal with adjustment_def only when necessary.
7866 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
7868 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
7871 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7874 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
7877 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
7879 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
7880 code. Merge code blocks with common conditionals. Use declared
7881 macro instead of a magic number for PIC level.
7883 2019-09-21 Martin Sebor <msebor@redhat.com>
7886 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
7887 Simplify computation of the offset of the referenced subobject.
7889 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
7891 * config/darwin.c (machopic_legitimize_pic_address): Check
7894 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
7896 * ira-conflicts.c (can_use_same_reg_p): New function.
7897 (process_reg_shuffles): Take an insn parameter. Ignore cases
7898 in which input operand op_num could seemingly never be allocated
7899 to the same register as the destination.
7900 (add_insn_allocno_copies): Update call to process_reg_shuffles.
7902 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
7904 * simplify-rtx.c (neg_const_int): Replace with...
7905 (neg_poly_int_rtx): ...this new function.
7906 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
7907 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
7908 (simplify_plus_minus): Likewise for constant terms here.
7910 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
7912 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
7913 HOST_WIDE_PRINT_UNSIGNED.
7915 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
7917 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
7920 2019-09-20 Maya Rashish <coypu@sdf.org>
7923 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
7924 Define to speculation_safe_value_not_needed.
7926 2019-09-20 Richard Biener <rguenther@suse.de>
7927 Uros Bizjak <ubizjak@gmail.com>
7930 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
7932 (general_scalar_chain::convert_op): Force not suitable memory
7933 operands to a register.
7935 2019-09-20 Richard Biener <rguenther@suse.de>
7937 PR tree-optimization/91821
7938 * tree-vect-loop.c (check_reduction_path): Check we can compute
7940 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
7941 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
7942 operands in canonical order.
7943 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
7944 STMT_VINFO_REDUC_IDX.
7945 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
7946 (STMT_VINFO_REDUC_IDX): Likewise.
7948 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
7951 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7953 2019-09-20 Richard Biener <rguenther@suse.de>
7955 PR tree-optimization/91822
7956 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
7958 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
7959 for reduc_index in nested cycles, adjust vectorizable_condition
7961 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
7963 (vect_analyze_stmt): Adjust.
7964 (vect_transform_stmt): Likewise.
7966 2019-09-20 Richard Biener <rguenther@suse.de>
7969 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
7970 Ensure there's a sequence point between allocating the new register
7971 and passing a reference to a reg via regno_reg_rtx.
7973 2019-09-20 Martin Jambor <mjambor@suse.cz>
7975 * coretypes.h (cgraph_edge): Declare.
7976 * ipa-param-manipulation.c: Rewrite.
7977 * ipa-param-manipulation.h: Likewise.
7978 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
7979 (OBJS): Added ipa-sra.o.
7980 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
7981 and ref_p, added fields param_adjustments and performed_splits.
7982 (struct cgraph_clone_info): Remove ags_to_skip and
7983 combined_args_to_skip, new field param_adjustments.
7984 (cgraph_node::create_clone): Changed parameters to use
7985 ipa_param_adjustments.
7986 (cgraph_node::create_virtual_clone): Likewise.
7987 (cgraph_node::create_virtual_clone_with_body): Likewise.
7988 (tree_function_versioning): Likewise.
7989 (cgraph_build_function_type_skip_args): Removed.
7990 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
7991 using ipa_param_adjustments.
7992 (clone_of_p): Likewise.
7993 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
7994 (build_function_decl_skip_args): Likewise.
7995 (duplicate_thunk_for_node): Adjust parameters using
7996 ipa_param_body_adjustments, copy param_adjustments instead of
7998 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
7999 (cgraph_node::create_virtual_clone): Likewise.
8000 (cgraph_node::create_version_clone_with_body): Likewise.
8001 (cgraph_materialize_clone): Likewise.
8002 (symbol_table::materialize_all_clones): Likewise.
8003 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
8004 ipa_replace_map check.
8005 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
8006 (initialize_node_lattices): Make aware that some parameters might have
8007 already been removed.
8008 (want_remove_some_param_p): New function.
8009 (create_specialized_node): Convert to using ipa_param_adjustments and
8010 deal with possibly pre-existing adjustments.
8011 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
8012 (output_node_opt_summary): Do not stream removed fields. Stream
8013 parameter adjustments instead of argumetns to skip.
8014 (input_node_opt_summary): Likewise.
8015 (input_node_opt_summary): Likewise.
8016 * lto-section-in.c (lto_section_name): Added ipa-sra section.
8017 * lto-streamer.h (lto_section_type): Likewise.
8018 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
8020 (copy_decl_to_var): Declare.
8021 * tree-inline.c (update_clone_info): Do not remap old_tree.
8022 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
8023 statements, walk all extra generated statements and remap their
8025 (redirect_all_calls): Add killed SSA names to a hash set.
8026 (remap_ssa_name): Do not remap killed SSA names.
8027 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
8028 half of functionality moved to ipa_param_body_adjustments.
8029 (copy_decl_to_var): Make exported.
8030 (copy_body): Destroy killed_new_ssa_names hash set.
8031 (expand_call_inline): Remap performed splits.
8032 (update_clone_info): Likewise.
8033 (tree_function_versioning): Simplify tree_map processing. Updated to
8034 accept ipa_param_adjustments and use ipa_param_body_adjustments.
8035 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
8036 for the new interface.
8037 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
8038 (simd_clone_compute_base_data_type): Likewise.
8039 (simd_clone_init_simd_arrays): Adjust for the new interface.
8040 (simd_clone_adjust_argument_types): Likewise.
8041 (struct modify_stmt_info): Likewise.
8042 (ipa_simd_modify_stmt_ops): Likewise.
8043 (ipa_simd_modify_function_body): Likewise.
8044 (simd_clone_adjust): Likewise.
8045 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
8046 (type_internals_preclude_sra_p): Make public.
8047 * tree-sra.h: New file.
8048 * ipa-inline-transform.c (save_inline_function_body): Update to
8049 refelct new tree_function_versioning signature.
8050 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
8051 ipa_param_adjustments to get current parameter indices.
8052 (ipcp_modif_dom_walker::before_dom_children): Likewise.
8053 (ipcp_update_bits): Likewise.
8054 (ipcp_update_vr): Likewise.
8055 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
8056 * ipa-sra.c: New file.
8057 * multiple_target.c (create_target_clone): Update to reflet new type
8058 of create_version_clone_with_body.
8059 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
8060 tree_function_versioning.
8061 (modify_function): Update to reflect new type of
8062 tree_function_versioning.
8063 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
8064 * passes.def: Remove old IPA-SRA and add new one.
8065 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
8066 (make_pass_ipa_sra): Declare.
8067 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
8069 * doc/invoke.texi (ipa-sra-max-replacements): New.
8071 2019-09-19 Martin Sebor <msebor@redhat.com>
8074 * builtins.c (component_size): Correct trailing array computation,
8075 rename to component_ref_size and move...
8076 (compute_objsize): Adjust.
8077 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
8078 (builtin_access::strict): Do not consider memmove.
8079 (builtin_access::write_off): New function.
8080 (builtin_memref::builtin_memref): Initialize refsize.
8081 (builtin_memref::set_base_and_offset): Adjust refoff and compute
8083 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
8085 (builtin_access::builtin_access): Initialize dstoff to destination
8086 refeence offset here instead of in maybe_diag_overlap. Adjust
8087 referencess even to unrelated objects. Adjust sizrange of bounded
8088 string functions to reflect bound. For strcat, adjust destination
8089 sizrange by that of source.
8090 (builtin_access::strcat_overlap): Adjust offsets and sizes
8091 to reflect the increase in destination sizrange above.
8092 (builtin_access::overlap): Do not set dstoff here but instead
8093 in builtin_access::builtin_access.
8094 (check_bounds_or_overlap): Use builtin_access::write_off.
8095 (maybe_diag_access_bounds): Add argument. Add informational notes.
8096 (dump_builtin_memref, dump_builtin_access): New functions.
8097 * tree.c (component_ref_size): ...to here.
8098 * tree.h (component_ref_size): Declare.
8099 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
8100 nul in the size of the source string.
8102 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
8105 * doc/cpp.texi: Document support for extended characters in
8107 * doc/cppopts.texi: Likewise.
8109 2019-09-19 Richard Biener <rguenther@suse.de>
8111 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
8112 (check_reduction_path): New overload having the path as result.
8113 (vect_is_simple_reduction): From the detected reduction
8114 path build a SLP reduction chain if possible.
8116 2019-09-19 Richard Biener <rguenther@suse.de>
8119 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
8120 Force operand to a register if it isn't nonimmediate_operand.
8122 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
8124 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
8125 * config/arm/iterators.md (optab): Add and, ior, xor entries.
8126 (logical_op): Remove code attribute.
8127 (logical_OP): Likewise.
8129 2019-09-19 Martin Liska <mliska@suse.cz>
8131 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
8134 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
8136 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
8139 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
8140 for NE comparison of TImode values.
8141 (aarch64_emit_load_exclusive): Add support for TImode.
8142 (aarch64_emit_store_exclusive): Likewise.
8143 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
8144 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
8145 Change iterator from ALLI to ALLI_TI.
8146 (@atomic_compare_and_swap<JUST_TI>): New.
8147 (@atomic_compare_and_swap<JUST_TI>_lse): New.
8148 (aarch64_load_exclusive_pair): New.
8149 (aarch64_store_exclusive_pair): New.
8150 * config/aarch64/iterators.md (JUST_TI): New.
8152 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
8153 strong_zero_p for aarch64_track_speculation; unify some code paths;
8154 use aarch64_gen_compare_reg instead of open-coding.
8156 * config/aarch64/aarch64.opt (-moutline-atomics): New.
8157 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
8158 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
8159 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
8160 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
8161 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
8162 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
8163 (atomic_<atomic_op><ALLI>): Likewise.
8164 (atomic_fetch_<atomic_op><ALLI>): Likewise.
8165 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
8166 * doc/invoke.texi: Document -moutline-atomics.
8168 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
8170 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
8171 trivial predicate for condition branch.
8172 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
8174 (compute_bb_predicates): Update predicate based on post-dominating
8176 (analyze_function_body): Calculate post-dominating information.
8178 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
8180 * tree-vectorizer.h (vectorizable_condition): Take an int
8181 reduction index instead of a boolean flag.
8182 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8183 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
8184 reductions if the reduction accumulator is the "then" rather
8185 than the "else" value.
8186 (vect_analyze_stmt): Update call accordingly.
8187 (vect_transform_stmt): Likewise.
8188 * tree-vect-loop.c (vectorizable_reduction): Likewise,
8189 asserting that the index is > 0.
8191 2019-09-19 Martin Liska <mliska@suse.cz>
8193 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
8194 (sort_congruence_classes_by_decl_uid): Likewise.
8195 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
8197 (sem_item_optimizer::merge_classes): Likewise.
8199 2019-09-19 Richard Biener <rguenther@suse.de>
8201 PR tree-optimization/91812
8202 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
8205 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
8207 * defaults.h (TARGET_UNIT): New macro.
8208 (target_unit): New type.
8209 * rtl.h (native_encode_rtx, native_decode_rtx)
8210 (native_decode_vector_rtx, subreg_size_lsb): Declare.
8211 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
8212 * rtlanal.c (subreg_lsb_1): Delete.
8213 (subreg_size_lsb): New function.
8214 * simplify-rtx.c: Include rtx-vector-builder.h
8215 (simplify_immed_subreg): Delete.
8216 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
8217 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
8219 (simplify_subreg): Use them.
8220 (test_vector_subregs_modes, test_vector_subregs_repeating)
8221 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
8222 (test_vector_subregs): New functions.
8223 (test_vector_ops): Call test_vector_subregs for integer vector
8224 modes with at least 2 elements.
8226 2019-09-19 Richard Biener <rguenther@suse.de>
8228 * tree-parloops.c (parloops_is_slp_reduction): Do not set
8229 LOOP_VINFO_OPERANDS_SWAPPED.
8230 (parloops_is_simple_reduction): Likewise.
8231 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
8232 initialize operands_swapped.
8233 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
8234 (vect_is_slp_reduction): Do not swap operands.
8235 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
8236 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
8238 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
8241 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
8242 Add avx_partial_xmm_update.
8244 2019-09-18 Jim Wilson <jimw@sifive.com>
8247 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
8248 (riscv_move_integer): Likewise.
8249 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
8250 riscv_move_integer arg.
8251 (riscv_legitimize_move): Likewise.
8252 (riscv_force_temporary): New parameter in_splitter. Don't call
8254 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
8256 (riscv_add_offset): Likewise.
8257 (riscv_split_symbol): New parameter in_splitter. Pass to
8258 riscv_force_temporary.
8259 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
8261 (riscv_move_integer): New parameter in_splitter. New local
8262 can_create_psuedo. Don't call riscv_split_integer or force_reg when
8264 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
8265 riscv_split_symbol, and riscv_force_temporary args.
8266 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
8267 riscv_move_integer arg.
8268 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
8270 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
8273 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
8274 hard register store cost to 6.
8276 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
8279 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
8280 pseudo register store cost from 3 to 6 to make it the same as
8283 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
8286 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
8287 (one_cmpldi2): Likewise.
8288 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
8289 of the constant parts is simple.
8290 * config/arm/iterators.md (LOGICAL): Add new code iterator.
8291 (logical_op): Add new code attribute.
8292 (logical_OP): Likewise.
8293 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
8294 (arm_iordi_operand): Add predicate.
8295 (arm_xordi_operand): Add predicate.
8297 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
8299 * config/arm/arm.md (maddsidi4): Remove expander.
8300 (mulsidi3adddi): Remove pattern.
8301 (mulsidi3adddi_v6): Likewise.
8302 (mulsidi3_nov6): Likewise.
8303 (mulsidi3_v6): Likewise.
8304 (umulsidi3): Remove expander.
8305 (umulsidi3_nov6): Remove pattern.
8306 (umulsidi3_v6): Likewise.
8307 (umulsidi3adddi): Likewise.
8308 (umulsidi3adddi_v6): Likewise.
8309 (<Us>mulsidi3): Add combined expander.
8310 (<Us>maddsidi4): Likewise.
8311 (<US>mull): Add combined umull and smull pattern.
8312 (<US>mlal): Likewise.
8313 * config/arm/iterators.md (Us): Add new iterator.
8315 2019-09-18 Richard Biener <rguenther@suse.de>
8317 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
8319 (vectorize_fold_left_reduction): Remove assert.
8320 (vectorizable_reduction): Also expect COND_EXPR non-reduction
8321 operand in position 2. Remove assert.
8323 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
8325 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
8326 (smulsi3_highpart_nov6): Remove pattern.
8327 (smulsi3_highpart_v6): Likewise.
8328 (umulsi3_highpart): Likewise.
8329 (umulsi3_highpart_nov6): Likewise.
8330 (umulsi3_highpart_v6): Likewise.
8331 (<US>mull_high): Add new combined multiply pattern.
8333 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
8335 * config/arm/arm.md (arm_mulsi3): Remove pattern.
8336 (arm_mulsi3_v6): Likewise.
8337 (mulsi3addsi_v6): Likewise.
8338 (mulsi3subsi): Likewise.
8339 (mul): Add new multiply pattern.
8343 2019-09-18 Richard Biener <rguenther@suse.de>
8345 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
8346 (parloops_valid_reduction_input_p): Copy from
8347 valid_reduction_input_p.
8348 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
8349 (parloops_needs_fold_left_reduction_p): Copy from
8350 needs_fold_left_reduction_p.
8351 (parloops_is_simple_reduction): Copy from
8352 vect_is_simple_reduction.
8353 (parloops_force_simple_reduction): Copy from
8354 vect_force_simple_reduction.
8355 (gather_scalar_reductions): Adjust.
8356 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
8357 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
8359 2019-09-18 Richard Biener <rguenther@suse.de>
8361 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
8362 * tree-vect-loop.c (get_initial_def_for_reduction): Make
8364 (vect_create_epilog_for_reduction): Remove dead code.
8366 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
8368 * varasm.c (assemble_real): Generate canonical const_ints.
8370 2019-09-18 Richard Biener <rguenther@suse.de>
8373 * lto-streamer-in.c (input_eh_regions): Move EH init to
8374 lto_materialize_function.
8375 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
8378 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
8380 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
8383 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
8385 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
8386 of checking specifically for INTEGER_CST.
8388 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
8390 * stor-layout.c (compute_record_mode): Operate on poly_uint64
8391 sizes instead of uhwi sizes.
8393 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
8395 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
8396 (add_const_value_attribute): Handle CONST_POLY_INT.
8398 2019-09-18 Martin Liska <mliska@suse.cz>
8400 * dbgcnt.def (store_merging): New counter.
8401 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
8402 Use it in store merging.
8404 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
8406 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
8408 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
8409 * config/arm/arm.c (arm_sched_variable_issue): New function.
8410 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
8412 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
8414 * config/arm/types.md (no_reservation): New reservation.
8415 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
8417 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
8418 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
8419 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
8420 * config/arm/arm1020e.md (1020alu_op): Likewise.
8421 * config/arm/arm1026ejs.md (alu_op): Likewise.
8422 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8423 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8424 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8425 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
8426 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8427 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8428 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
8429 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
8430 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8431 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8432 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8433 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
8434 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
8435 * config/arm/fa526.md (526_alu_op): Likewise.
8436 * config/arm/fa606te.md (606te_alu_op): Likewise.
8437 * config/arm/fa626te.md (626te_alu_op): Likewise.
8438 * config/arm/fa726te.md (726te_alu_op): Likewise.
8439 * config/arm/xgene1.md (xgene1_nop): Likewise.
8441 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
8443 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
8444 "no_insn" to "branch".
8446 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
8448 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
8450 2019-09-17 Richard Biener <rguenther@suse.de>
8453 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
8454 was missing generate locations only once.
8456 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
8459 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
8461 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
8462 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
8463 for switch default case using range analysis information.
8465 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
8468 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
8469 mode attributed is supported by FDPIC.
8471 2019-09-17 Richard Biener <rguenther@suse.de>
8473 PR tree-optimization/91790
8474 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
8475 use the correct DR for setting up realignment.
8477 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
8480 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
8481 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
8482 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
8483 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
8485 2019-09-16 Jason Merrill <jason@redhat.com>
8487 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
8489 2019-09-16 Martin Liska <mliska@suse.cz>
8491 * gimple-fold.c (or_comparisons_1): Remove rules moved
8493 * match.pd: ... here.
8495 2019-09-16 Martin Liska <mliska@suse.cz>
8497 * gimple-fold.c (or_comparisons_1): Remove rules
8499 * match.pd: ... here.
8501 2019-09-16 Martin Liska <mliska@suse.cz>
8503 * genmatch.c (dt_node::append_simplify): Do not print
8504 warning when we have duplicate patterns belonging
8505 to a same simplify rule.
8506 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
8507 (maybe_fold_comparisons_from_match_pd): Handle
8508 tcc_comparison as a results.
8509 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
8511 2019-09-16 Li Jia He <helijia@linux.ibm.com>
8512 Qi Feng <ffengqi@linux.ibm.com>
8515 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
8516 (x > y && x == XXX_MIN): Optimize into 'false'.
8517 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
8518 (x < y && x != XXX_MAX): Optimize into 'x < y'.
8519 (x < y && x == XXX_MAX): Optimize into 'false'.
8520 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
8521 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
8522 (x <= y || x != XXX_MIN): Optimize into 'true'.
8523 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
8524 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
8525 (x >= y || x != XXX_MAX): Optimize into 'true'.
8526 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
8528 2019-09-16 Li Jia He <helijia@linux.ibm.com>
8529 Martin Liska <mliska@suse.cz>
8531 * gimple-fold.c (and_comparisons_1): Add type as first
8533 (and_var_with_comparison): Likewise.
8534 (and_var_with_comparison_1): Likewise.
8535 (or_comparisons_1): Likewise.
8536 (or_var_with_comparison): Likewise.
8537 (or_var_with_comparison_1): Likewise.
8538 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
8539 (maybe_fold_or_comparisons): Likewise.
8540 (maybe_fold_comparisons_from_match_pd): New.
8541 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
8542 (maybe_fold_or_comparisons): Likewise.
8543 * gimple.c (gimple_size): Make it public and add num_ops argument.
8544 (gimple_init): New function.
8545 (gimple_alloc): Call gimple_init.
8546 * gimple.h (gimple_size): New.
8547 (gimple_init): Likewise.
8548 * tree-if-conv.c (fold_or_predicates): Pass type.
8549 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
8550 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
8551 (optimize_vec_cond_expr): Likewise.
8552 (ovce_extract_ops): Return type of conditional expression.
8553 * tree-ssanames.c (init_ssa_name_imm_use): New.
8554 (make_ssa_name_fn): Use init_ssa_name_imm_use.
8555 * tree-ssanames.h (init_ssa_name_imm_use): New.
8557 2019-09-16 Richard Biener <rguenther@suse.de>
8559 PR tree-optimization/91756
8560 PR tree-optimization/87132
8561 * tree-ssa-alias.h (enum translate_flags): New.
8562 (get_continuation_for_phi): Use it instead of simple bool flag.
8563 (walk_non_aliased_vuses): Likewise.
8564 * tree-ssa-alias.c (maybe_skip_until): Adjust.
8565 (get_continuation_for_phi): When looking across backedges only
8566 disallow valueization.
8567 (walk_non_aliased_vuses): Adjust.
8568 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
8571 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
8574 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
8575 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
8576 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
8577 * target.def (have_count_reg_decr_p): New hook.
8578 (doloop_cost_for_generic): Likewise.
8579 (doloop_cost_for_address): Likewise.
8580 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
8581 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
8582 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
8583 * doc/tm.texi: Regenerate.
8584 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
8586 (record_group): Init doloop_p.
8587 (add_candidate_1): Add optional argument doloop, change the handlings
8589 (add_candidate): Likewise.
8590 (generic_predict_doloop_p): Update attribute.
8591 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
8592 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
8593 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
8595 (get_computation_cost): Update for doloop IV cand extra cost.
8596 (determine_group_iv_cost_cond): Update for doloop IV cand.
8597 (determine_iv_cost): Likewise.
8598 (ivopts_estimate_reg_pressure): Likewise.
8599 (may_eliminate_iv): Update handlings for doloop IV cand.
8600 (add_iv_candidate_for_doloop): New function.
8601 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
8602 (iv_ca_set_no_cp): Update for doloop IV cand.
8603 (iv_ca_set_cp): Likewise.
8604 (iv_ca_dump): Dump register cost.
8605 (find_doloop_use): New function.
8606 (analyze_and_mark_doloop_use): Likewise.
8607 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
8609 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
8612 * cse.c (cse_insn): Do not replace anything with a
8615 2019-09-13 Ian Lance Taylor <iant@golang.org>
8617 * doc/invoke.texi (Optimize Options): Fix typo.
8619 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
8621 PR tree-optimization/89386
8622 * config/i386/sse.md (smulhrs<mode>3): New expander.
8623 (smulhrsv4hi3): Ditto.
8625 2019-09-12 Richard Biener <rguenther@suse.de>
8627 PR tree-optimization/91750
8628 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
8629 in the type of the evolution.
8631 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
8633 PR tree-optimization/89386
8634 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
8635 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
8636 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
8637 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
8638 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
8639 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
8640 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
8641 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
8642 (su, r): Handle the unspecs above.
8643 (bt): New int attribute.
8644 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
8645 * internal-fn.c (first_commutative_argument): Commutativity info for
8647 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
8648 (umulhrs_optab): New optabs.
8649 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
8650 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
8651 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
8653 (vect_vect_recog_func_ptrs): Add it.
8655 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
8657 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
8660 2019-09-11 Nathan Sidwell <nathan@acm.org>
8662 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
8663 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
8665 2019-09-11 Richard Biener <rguenther@suse.de>
8667 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
8668 * lto-wrapper.c (merge_and_complain): Pick up -g.
8669 (append_compiler_options): Likewise.
8670 (run_gcc): Re-instantiate handling -g0 at link-time.
8671 * doc/invoke.texi (flto): Document debug info generation.
8673 2019-09-11 Richard Biener <rguenther@suse.de>
8675 PR tree-optimization/90387
8676 * vr-values.c (vr_values::extract_range_basic): After inlining
8677 simplify non-constant __builtin_constant_p to false.
8679 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
8681 PR rtl-optimization/89795
8682 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
8683 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
8685 2019-09-11 Jakub Jelinek <jakub@redhat.com>
8687 PR tree-optimization/91723
8688 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
8689 instead of pointer equality when checking if argument vectypes are
8693 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
8694 of get_nonzero_bits, only call it for integral types.
8696 2019-09-11 Richard Biener <rguenther@suse.de>
8699 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
8701 * match.pd: Add flag_unsafe_math_optimizations check
8702 before deciding on the widest type in a binary math operation.
8704 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
8706 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
8707 and CALL_REALLY_USED_REGISTERS must be defined, and that
8708 CALL_REALLY_USED_REGISTERS is preferred.
8709 * doc/tm.texi: Regenerate.
8710 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
8711 (call_really_used_regs): Likewise.
8712 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
8713 CALL_REALLY_USED_REGISTERS are defined.
8714 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
8715 initial value if defined.
8716 (initial_call_really_used_regs): Delete.
8717 (saved_call_really_used_regs): Likewise.
8718 (CALL_REALLY_USED_REGNO_P): Likewise.
8719 (init_reg_sets): Remove handling of call_really_used_regs.
8720 (save_register_info, restore_register_info, globalize_reg): Likewise.
8721 (init_reg_sets_1): Likewise. Use call_used_regs instead of
8722 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
8723 outside operand_reg_set.
8724 (fix_register): Don't change call_used_regs if
8725 CALL_REALLY_USED_REGISTERS is defined.
8726 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
8727 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
8728 instead of call_really_used_regs.
8729 (csky_conditional_register_usage): Remove the old handling of
8730 call_used_regs and change the handling of call_really_used_regs
8731 to use call_used_regs instead.
8732 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
8733 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
8734 making a register fixed.
8735 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
8736 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
8737 instead of call_really_used_regs.
8738 (m32r_conditional_register_usage): Don't set call_used_regs when
8739 making a register fixed.
8740 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
8741 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
8742 instead of call_really_used_regs.
8743 (mips_interrupt_extra_call_saved_reg_p): Likewise.
8744 (mips_cfun_call_saved_reg_p): Likewise.
8745 (mips_swap_registers): Remove the old handling of call_used_regs
8746 and change the handling of call_really_used_regs to use call_used_regs
8748 (mips_conditional_register_usage): Likewise.
8749 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
8750 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
8751 instead of call_really_used_regs.
8752 (mn10300_get_live_callee_saved_regs): Likewise.
8753 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
8754 (mn10300_conditional_register_usage): Don't set call_used_regs when
8755 making a register fixed.
8756 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
8757 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
8758 Remove the old handling of call_used_regs and change the handling
8759 of call_really_used_regs to use call_used_regs instead.
8760 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
8761 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
8762 instead of call_really_used_regs.
8763 (s390_register_info_gprtofpr, s390_register_info): Likewise.
8764 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
8765 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
8766 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
8767 (s390_conditional_register_usage): Remove the old handling of
8768 call_used_regs and change the handling of call_really_used_regs
8769 to use call_used_regs instead.
8770 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
8771 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
8772 (sh_fix_range, reg_unused_after): Likewise.
8773 (sh_conditional_register_usage): Remove the old handling of
8774 call_used_regs and change the handling of call_really_used_regs
8775 to use call_used_regs instead.
8776 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
8777 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
8778 call_used_regs when making a register fixed.
8779 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
8780 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
8781 call_used_regs when making a register fixed.
8782 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
8783 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
8784 set call_used_regs when making a register fixed.
8785 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
8786 * config/visium/visium.c (visium_conditional_register_usage): Remove
8787 the old handling of call_used_regs and change the handling of
8788 call_really_used_regs to use call_used_regs instead.
8790 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
8792 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
8793 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
8794 * reginfo.c (call_used_regs): New macro.
8796 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
8798 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
8800 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
8801 (bpf_expand_epilogue): Likewise.
8802 * config/c6x/c6x.c (c6x_save_reg): Likewise.
8803 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
8804 (ft32_expand_epilogue): Likewise.
8805 * config/i386/i386.c (ix86_save_reg): Likewise.
8806 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
8807 (moxie_expand_epilogue): Likewise.
8808 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
8809 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
8810 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
8812 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
8814 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
8815 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
8816 instead of testing call_used_regs directly.
8817 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
8818 (aarch64_components_for_bb): Likewise.
8819 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
8820 * config/arc/arc.c (arc_must_save_register): Likewise.
8821 (arc_epilogue_uses): Likewise.
8822 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
8823 (legitimize_pic_address, callee_saved_reg_p): Likewise.
8824 (arm_compute_save_reg0_reg12_mask): Likewise.
8825 (arm_compute_save_core_reg_mask): Likewise.
8826 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
8827 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
8828 (cmse_nonsecure_entry_clear_before_return): Likewise.
8829 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
8830 (arm_expand_epilogue): Likewise.
8831 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
8832 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
8833 (_reg_unused_after): Likewise.
8834 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
8835 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
8836 (add_to_reg, hwloop_optimize): Likewise.
8837 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
8838 (bpf_expand_epilogue): Likewise.
8839 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
8840 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
8841 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
8842 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
8843 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
8844 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
8845 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
8846 * config/frv/frv.c (frv_stack_info): Likewise.
8847 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
8848 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
8849 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
8850 (move_callee_saved_registers): Likewise.
8851 * config/h8300/h8300.c (byte_reg): Likewise.
8852 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
8853 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
8854 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
8855 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
8856 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
8857 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
8858 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
8859 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
8860 * config/m32c/m32c.c (need_to_save): Likewise.
8861 * config/m68k/m68k.c (m68k_save_reg): Likewise.
8862 * config/mcore/mcore.c (calc_live_regs): Likewise.
8863 * config/microblaze/microblaze.c (microblaze_must_save_register):
8865 * config/mmix/mmix.c (mmix_local_regno): Likewise.
8866 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
8867 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
8868 (mmix_expand_epilogue): Likewise.
8869 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
8870 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
8871 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
8872 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
8873 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
8874 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
8875 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
8876 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
8877 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
8878 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
8879 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
8880 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
8881 * config/rl78/rl78.c (need_to_save): Likewise.
8882 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
8883 (rs6000_stack_info, generate_set_vrsave): Likewise.
8884 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
8885 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
8886 * config/rx/rx.c (rx_get_stack_layout): Likewise.
8887 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
8888 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
8889 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
8890 (save_local_or_in_reg_p): Likewise.
8891 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
8892 (xstormy16_epilogue_uses): Likewise.
8893 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
8894 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
8895 * config/v850/v850.c (compute_register_save_size): Likewise.
8896 * config/vax/vax.c (vax_expand_prologue): Likewise.
8897 * config/visium/visium.c (visium_save_reg_p): Likewise.
8898 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
8899 * cselib.c (cselib_process_insn): Likewise.
8900 * df-scan.c (df_get_entry_block_def_set): Likewise.
8901 * function.c (aggregate_value_p): Likewise.
8902 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
8903 * ira-lives.c (process_bb_node_lives): Likewise.
8904 * ira.c (do_reload): Likewise.
8905 * lra-lives.c (process_bb_lives): Likewise.
8906 * lra-remat.c (lra_remat): Likewise.
8907 * lra.c (lra): Likewise.
8908 * postreload.c (reload_combine_recognize_pattern): Likewise.
8909 (reload_cse_move2add): Likewise.
8910 * recog.c (peep2_find_free_register): Likewise.
8911 * regrename.c (check_new_reg_p): Likewise.
8912 * reload.c (find_equiv_reg): Likewise.
8913 * reload1.c (reload, find_reg): Likewise.
8914 * sel-sched.c (init_hard_regs_data): Likewise.
8916 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
8918 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
8919 regs_invalidated_by_call & ~fixed_reg_set instead of
8920 call_used_or_fixed_regs & ~fixed_reg_set.
8921 * config/sh/sh.c (output_stack_adjust): Likewise.
8923 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
8925 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
8926 (call_used_reg_set): Delete.
8927 (call_used_or_fixed_regs): New macro.
8928 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
8929 of call_used_reg_set.
8930 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
8931 instead of call_used_regs.
8932 (save_call_clobbered_regs): Likewise.
8933 * cfgcleanup.c (old_insns_match_p): Likewise.
8934 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
8935 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
8937 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
8938 * config/sh/sh.c (output_stack_adjust): Likewise.
8939 * final.c (collect_fn_hard_reg_usage): Likewise.
8940 * ira-build.c (ira_build): Likewise.
8941 * ira-color.c (calculate_saved_nregs): Likewise.
8942 (allocno_reload_assign, calculate_spill_cost): Likewise.
8943 * ira-conflicts.c (ira_build_conflicts): Likewise.
8944 * ira-costs.c (ira_tune_allocno_costs): Likewise.
8945 * ira-lives.c (process_bb_node_lives): Likewise.
8946 * ira.c (setup_reg_renumber): Likewise.
8947 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
8948 * lra-constraints.c (need_for_call_save_p): Likewise.
8949 (need_for_split_p, inherit_in_ebb): Likewise.
8950 * lra-lives.c (process_bb_lives): Likewise.
8951 * lra-remat.c (call_used_input_regno_present_p): Likewise.
8952 * postreload.c (reload_combine): Likewise.
8953 * regrename.c (find_rename_reg): Likewise.
8954 * reload1.c (reload_as_needed): Likewise.
8955 * rtlanal.c (find_all_hard_reg_sets): Likewise.
8956 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8957 * shrink-wrap.c (requires_stack_frame_p): Likewise.
8959 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
8961 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
8962 (no_caller_save_reg_set): Delete.
8963 * caller-save.c (init_caller_save): Don't initialize it.
8964 * ira-conflicts.c (ira_build_conflicts): Calculate
8965 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
8967 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
8969 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
8970 (target_hard_regs::x_savable_regs): New field.
8971 (call_fixed_reg_set): Delete.
8972 (savable_regs): New macro,
8973 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
8974 (init_reg_sets_1): Likewise. Initialize savable_regs.
8975 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
8976 for all registers. Set savable_regs instead of call_fixed_reg_set.
8977 (setup_save_areas, save_call_clobbered_regs): Replace uses of
8978 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
8979 * config/sh/sh.c (output_stack_adjust): Likewise.
8981 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
8983 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
8984 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
8985 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
8987 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
8989 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
8990 * rtlanal.c (get_call_rtx_from): Likewise.
8991 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
8992 than the pattern to get_call_rtx_from.
8993 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
8994 an rtx_insn * instead of an rtx.
8995 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
8997 2019-09-10 Martin Liska <mliska@suse.cz>
8999 * common.opt: Use newly added WarnRemoved.
9000 * config/aarch64/aarch64.opt: Likewise.
9001 * config/arm/arm.opt: Likewise.
9002 * config/i386/i386.opt: Likewise.
9003 * config/ia64/ia64.opt: Likewise.
9004 * config/rs6000/rs6000.opt: Likewise.
9005 * doc/options.texi: Document WarnRemoved properly.
9006 * dwarf2out.c (gen_producer_string): Handle renamed
9007 OPT_SPECIAL_warn_removed.
9008 * lto-opts.c (lto_write_options): Likewise.
9009 * lto-wrapper.c (merge_and_complain): Likewise.
9010 * opts-common.c (decode_cmdline_option): Likewise.
9011 (prune_options): Likewise.
9012 (read_cmdline_option): Likewise.
9013 (control_warning_option): Likewise.
9014 * opts.c (print_filtered_help): Likewise.
9015 * optc-gen.awk: Parse for WarnRemoved and make usage
9016 of Deprecated an error.
9017 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
9019 2019-09-10 Arnaud Charlet <charlet@adacore.com>
9021 * doc/install.texi: Fix syntax for html generation.
9023 2019-09-10 Jakub Jelinek <jakub@redhat.com>
9026 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
9027 the shift type to type.
9029 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9031 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
9033 (stack_protect_combined_test_insn): Likewise.
9035 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9036 Mickaël Guêné <mickael.guene@st.com>
9038 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
9039 * config/arm/arm.md (FDPIC_REGNUM): New constant.
9040 (load_tp_soft_fdpic): New pattern.
9041 (load_tp_soft): Disable in FDPIC mode.
9043 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9044 Mickaël Guêné <mickael.guene@st.com>
9046 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
9047 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
9048 (arm_call_tls_get_addr): Add FDPIC support.
9049 (legitimize_tls_address): Likewise.
9050 (arm_emit_tls_decoration): Likewise.
9052 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9053 Mickaël Guêné <mickael.guene@st.com>
9055 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
9057 (arm_trampoline_init): Likewise.
9058 (arm_trampoline_adjust_address): Likewise.
9059 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
9061 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9062 Mickaël Guêné <mickael.guene@st.com>
9064 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
9065 (legitimize_pic_address): Enforce binding rules on function
9066 pointers in FDPIC mode.
9067 (arm_assemble_integer): Likewise.
9069 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9070 Mickaël Guêné <mickael.guene@st.com>
9072 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
9073 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
9076 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9077 Mickaël Guêné <mickael.guene@st.com>
9079 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
9082 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9083 Mickaël Guêné <mickael.guene@st.com>
9085 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
9087 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
9089 * config/arm/arm.c (arm_option_override): Define pic register to
9091 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
9092 have no decl or go through PLT.
9093 (calculate_pic_address_constant): New function.
9094 (legitimize_pic_address): Call calculate_pic_address_constant.
9095 (arm_load_pic_register): Handle TARGET_FDPIC.
9096 (arm_is_segment_info_known): New function.
9097 (arm_pic_static_addr): Add support for FDPIC.
9098 (arm_load_function_descriptor): New function.
9099 (arm_emit_call_insn): Add support for FDPIC.
9100 (arm_assemble_integer): Add support for FDPIC.
9101 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
9102 Define. (FDPIC_REGNUM): New define.
9103 * config/arm/arm.md (call): Add support for FDPIC.
9104 (call_value): Likewise.
9105 (restore_pic_register_after_call): New pattern.
9106 (untyped_call): Disable if FDPIC.
9107 (untyped_return): Likewise.
9108 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
9110 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9111 Mickaël Guêné <mickael.guene@st.com>
9113 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
9114 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
9115 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
9116 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
9117 (CC1_SPEC): Use FDPIC_CC1_SPEC.
9118 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
9119 * config/arm/uclinuxfdpiceabi.h: New file.
9121 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9123 * config.gcc: Handle *-*-uclinuxfdpiceabi.
9125 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
9126 Mickaël Guêné <mickael.guene@st.com>
9128 * config/arm/arm.opt: Add -mfdpic option.
9129 * doc/invoke.texi: Add documentation for -mfdpic.
9131 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9133 * expmed.c (extract_bit_field): Update function comment
9135 * expr.c (expand_expr_real): Update function comment
9137 (expand_misaligned_mem_ref): New helper function.
9138 (expand_expr_real_2): Use expand_misaligned_mem_ref.
9139 Remove duplicate assignment to "base" at case MEM_REF.
9140 Remove a shadowed variable "unsignedp" at case VCE.
9142 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9144 * regset.h (regs_invalidated_by_call_regset): Delete.
9145 (fixed_reg_set_regset): Likewise.
9146 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
9147 (fixed_reg_set_regset, persistent_obstack): Likewise.
9148 (init_reg_sets_1, globalize_reg): Update accordingly.
9149 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
9150 instead of a bitmap.
9151 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
9152 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
9153 instead of regs_invalidated_by_call_regset.
9154 (df_lr_confluence_n, df_md_confluence_n): Likewise.
9155 * df-scan.c (df_scan_start_dump): Likewise.
9156 * dse.c (copy_fixed_regs): Likewise.
9157 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
9159 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9161 * array-traits.h: New file.
9162 * coretypes.h (array_traits, bitmap_view): New types.
9163 * bitmap.h: Include "array-traits.h"
9164 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
9165 (base_bitmap_view, bitmap_view): New classes.
9166 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
9167 * hard-reg-set.h: Include array-traits.h.
9168 (array_traits<HARD_REG_SET>): New struct.
9169 * regset.h (IOR_REG_SET_HRS): New macro.
9170 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
9171 rather than iterating over each hard register.
9172 * sched-deps.c (sched_analyze_insn): Likewise.
9173 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
9175 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9177 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
9178 instead of a HARD_REG_SET *.
9179 * ira-build.c (ior_hard_reg_conflicts): Likewise.
9180 (ira_build): Update call accordingly.
9181 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
9183 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9185 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
9186 (HARD_REG_SET::operator!=): Likewise.
9187 (hard_reg_set_equal_p): Delete.
9188 * cfgcleanup.c (old_insns_match_p): Use == instead of
9189 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
9190 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
9191 (add_allocno_hard_regs_to_forest): Likewise.
9192 (setup_allocno_available_regs_num): Likewise.
9193 * ira.c (setup_pressure_classes): Likewise.
9194 (setup_allocno_and_important_classes): Likewise.
9195 (setup_reg_class_relations): Likewise.
9196 * lra-lives.c (process_bb_lives): Likewise.
9197 * reg-stack.c (change_stack, convert_regs_1): Likewise.
9199 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9201 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
9202 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
9203 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
9204 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
9206 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
9207 * ira.c (setup_reg_renumber): Likewise.
9208 * lra-assigns.c (find_hard_regno_for_1): Likewise.
9209 * regrename.c (regrename_find_superclass): Likewise.
9210 * reload1.c (find_reg): Likewise.
9212 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9214 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
9215 * caller-save.c (setup_save_areas): Use "&~" instead of
9216 AND_COMPL_HARD_REG_SET.
9217 (save_call_clobbered_regs): Likewise.
9218 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
9220 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
9221 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
9222 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
9223 * config/mips/mips.c (mips_class_max_nregs): Likewise.
9224 (mips_conditional_register_usage): Likewise.
9225 * config/sh/sh.c (output_stack_adjust): Likewise.
9226 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
9227 (setup_profitable_hard_regs): Likewise.
9228 (get_conflict_and_start_profitable_regs): Likewise.
9229 * ira-conflicts.c (print_allocno_conflicts): Likewise.
9230 (ira_build_conflicts): Likewise.
9231 * ira-costs.c (restrict_cost_classes): Likewise.
9232 (setup_regno_cost_classes_by_aclass): Likewise.
9233 * ira-lives.c (process_bb_node_lives): Likewise.
9234 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
9235 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
9236 (setup_allocno_and_important_classes, setup_class_translate_array)
9237 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
9239 * lra-assigns.c (find_hard_regno_for_1): Likewise.
9240 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
9241 (process_alt_operands, inherit_in_ebb): Likewise.
9242 * lra-eliminations.c (update_reg_eliminate): Likewise.
9243 * lra-lives.c (process_bb_lives): Likewise.
9244 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
9245 * resource.c (find_dead_or_set_registers): Likewise.
9246 (mark_target_live_regs): Likewise.
9247 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
9248 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9249 (implicit_clobber_conflict_p): Likewise.
9250 * shrink-wrap.c (requires_stack_frame_p): Likewise.
9251 (try_shrink_wrapping): Likewise.
9253 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9255 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
9256 (HARD_REG_SET::operator|=): Likewise.
9257 (IOR_HARD_REG_SET): Delete.
9258 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
9260 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
9261 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
9262 * final.c (collect_fn_hard_reg_usage): Likewise.
9263 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
9264 * ira-build.c (merge_hard_reg_conflicts): Likewise.
9265 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
9266 (propagate_some_info_from_allocno): Likewise.
9267 (copy_info_to_removed_store_destinations): Likewise.
9268 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
9269 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
9270 (fast_allocation): Likewise.
9271 * ira-conflicts.c (ira_build_conflicts): Likewise.
9272 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
9273 (process_bb_node_lives): Likewise.
9274 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
9275 * lra-assigns.c (find_hard_regno_for_1): Likewise.
9276 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
9277 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
9278 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
9279 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
9280 (process_bb_lives): Likewise.
9281 * lra-spills.c (assign_spill_hard_regs): Likewise.
9282 * postreload.c (reload_combine): Likewise.
9283 * reginfo.c (init_reg_sets_1): Likewise.
9284 * regrename.c (merge_overlapping_regs, find_rename_reg)
9285 (merge_chains): Likewise.
9286 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
9287 (find_reload_regs, finish_spills, choose_reload_regs_init)
9288 (emit_reload_insns): Likewise.
9289 * reorg.c (redundant_insn): Likewise.
9290 * resource.c (find_dead_or_set_registers, mark_set_resources)
9291 (mark_target_live_regs): Likewise.
9292 * rtlanal.c (find_all_hard_reg_sets): Likewise.
9293 * sched-deps.c (sched_analyze_insn): Likewise.
9294 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9295 (find_best_reg_for_expr): Likewise.
9296 * shrink-wrap.c (try_shrink_wrapping): Likewise.
9298 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9300 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
9301 (HARD_REG_SET::operator&): Likewise.
9302 (AND_HARD_REG_SET): Delete.
9303 * caller-save.c (setup_save_areas): Use "&" instead of
9305 (save_call_clobbered_regs): Likewise.
9306 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
9307 * config/m32c/m32c.c (reduce_class): Likewise.
9308 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
9309 * final.c (get_call_reg_set_usage): Likewise.
9310 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
9311 (setup_left_conflict_sizes_p): Likewise.
9312 * ira-conflicts.c (print_allocno_conflicts): Likewise.
9313 (ira_build_conflicts): Likewise.
9314 * ira-costs.c (restrict_cost_classes): Likewise.
9315 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
9316 (setup_reg_class_relations): Likewise.
9317 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
9318 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
9319 * resource.c (find_dead_or_set_registers): Likewise.
9320 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9322 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9324 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
9325 (COMPL_HARD_REG_SET): Delete.
9326 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
9327 of COMPL_HARD_REG_SET.
9328 (try_rename_operands): Likewise.
9329 * config/sh/sh.c (push_regs): Likewise.
9330 * lra-assigns.c (find_hard_regno_for_1): Likewise.
9331 * lra-constraints.c (contains_reg_p): Likewise.
9332 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
9334 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9336 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
9337 * caller-save.c (save_call_clobbered_regs): Use assignment instead
9338 of COPY_HARD_REG_SET.
9339 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
9340 (epiphany_conditional_register_usage): Likewise.
9341 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
9342 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
9343 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
9344 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
9345 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
9346 * config/mips/mips.c (mips_class_max_nregs): Likewise.
9347 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
9348 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
9349 * config/sh/sh.c (output_stack_adjust): Likewise.
9350 * final.c (collect_fn_hard_reg_usage): Likewise.
9351 (get_call_reg_set_usage): Likewise.
9352 * ira-build.c (ira_create_object, remove_low_level_allocnos)
9353 (ira_flattening): Likewise.
9354 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
9355 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
9356 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
9357 (ira_reassign_pseudos): Likewise.
9358 * ira-conflicts.c (print_allocno_conflicts): Likewise.
9359 (ira_build_conflicts): Likewise.
9360 * ira-costs.c (restrict_cost_classes): Likewise.
9361 (setup_regno_cost_classes_by_aclass): Likewise.
9362 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
9363 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
9364 (setup_stack_reg_pressure_class, setup_pressure_classes)
9365 (setup_allocno_and_important_classes, setup_class_translate_array)
9366 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
9367 (ira_setup_eliminable_regset): Likewise.
9368 * lra-assigns.c (find_hard_regno_for_1): Likewise.
9369 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
9370 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
9371 (process_alt_operands, inherit_in_ebb): Likewise.
9372 * lra-lives.c (process_bb_lives): Likewise.
9373 * lra-spills.c (assign_spill_hard_regs): Likewise.
9374 * lra.c (lra): Likewise.
9375 * mode-switching.c (new_seginfo): Likewise.
9376 * postreload.c (reload_combine): Likewise.
9377 * reg-stack.c (straighten_stack): Likewise.
9378 * reginfo.c (save_register_info, restore_register_info): Likewise.
9379 (init_reg_sets_1, record_subregs_of_mode): Likewise
9380 * regrename.c (create_new_chain, rename_chains): Likewise.
9381 * reload1.c (order_regs_for_reload, find_reg): Likewise.
9382 (find_reload_regs): Likewise.
9383 * resource.c (find_dead_or_set_registers): Likewise.
9384 (mark_target_live_regs): Likewise.
9385 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9387 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9389 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
9390 (note_pattern_stores): Declare.
9391 (note_stores): Take an rtx_insn *.
9392 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
9393 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
9394 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
9395 (note_stores): Take an rtx_insn * as argument and process
9396 CALL_INSN_FUNCTION_USAGE. Rename old function to...
9397 (note_pattern_stores): ...this.
9398 (find_first_parameter_load): Pass the insn rather than
9399 its pattern to note_stores.
9400 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
9401 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
9402 (insert_one_insn): Likewise.
9403 * combine.c (combine_instructions): Likewise.
9404 (likely_spilled_retval_p): Likewise.
9405 (try_combine): Use note_pattern_stores instead of note_stores.
9406 (record_dead_and_set_regs): Pass the insn rather than its pattern
9408 (reg_dead_at_p): Likewise.
9409 * config/bfin/bfin.c (workaround_speculation): Likewise.
9410 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
9412 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
9413 instead of note_stores.
9414 (frv_optimize_membar_local): Pass the insn rather than its pattern
9416 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
9417 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
9418 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
9419 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
9420 (mips_reorg_process_insns): Likewise.
9421 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
9422 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
9424 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
9425 its pattern to note_stores.
9426 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
9428 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
9429 the insn to note_stores.
9430 (prescan_insns_for_dce): Update call accordingly.
9431 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
9433 * df-problems.c (can_move_insns_across): Likewise.
9434 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
9435 * function.c (assign_parm_setup_reg): Likewise.
9436 * gcse-common.c (record_last_mem_set_info_common): Likewise.
9437 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
9438 (single_set_gcse): Likewise.
9439 * ira.c (validate_equiv_mem): Likewise.
9440 (update_equiv_regs): Use note_pattern_stores rather than note_stores
9442 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
9443 pattern to note_stores.
9444 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9445 * loop-iv.c (simplify_using_initial_values): Likewise.
9446 * mode-switching.c (optimize_mode_switching): Likewise.
9447 * optabs.c (emit_libcall_block_1): Likewise.
9448 (expand_atomic_compare_and_swap): Likewise.
9449 * postreload-gcse.c (load_killed_in_block_p): Likewise.
9450 (record_opr_changes): Likewise. Remove explicit handling of
9451 CALL_INSN_FUNCTION_USAGE.
9452 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
9453 * regcprop.c (kill_clobbered_values): Likewise.
9454 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
9456 * regrename.c (build_def_use): Likewise.
9457 * reload1.c (reload): Use note_pattern_stores instead of note_stores
9458 for mark_not_eliminable.
9459 (reload_as_needed): Pass the insn rather than its pattern
9461 (emit_output_reload_insns): Likewise.
9462 * resource.c (mark_target_live_regs): Likewise.
9463 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9464 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
9465 instead of note_stores.
9466 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
9467 its pattern to note_stores.
9468 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
9469 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
9471 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9473 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
9474 than a #define. Use a structure rather than an array as the
9475 fallback definition. Remove special cases for low array sizes.
9476 (const_hard_reg_set): New typedef.
9477 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
9478 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
9479 (hard_reg_set_empty_p): Likewise.
9480 (SET_HARD_REG_BIT): Use a function rather than a macro to
9481 handle the case in which HARD_REG_SET is a structure.
9482 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
9483 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
9484 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
9485 (IOR_COMPL_HARD_REG_SET): Likewise.
9486 (hard_reg_set_iterator::pset): Constify the pointer target.
9487 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
9488 of a "const HARD_REG_SET". Update the handling of non-integer
9490 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
9491 * reload.h: Likewise.
9492 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
9493 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
9494 of a "const HARD_REG_SET".
9495 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
9496 (range_in_hard_reg_set_p): Likewise.
9497 * ira-costs.c (restrict_cost_classes): Likewise.
9498 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
9499 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9500 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
9501 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
9502 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
9503 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
9504 take an unsigned int and open-code the HARD_REG_SET operations.
9506 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
9508 * Makefile.in (OBJS): Remove bt-load.o.
9509 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
9510 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
9511 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
9512 document that the option no longer does anything.
9513 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
9514 * target.def (branch_target_register_class): Delete.
9515 (branch_target_register_callee_saved): Likewise.
9516 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
9517 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
9518 * doc/tm.texi: Regenerate.
9519 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
9520 (make_pass_branch_target_load_optimize2): Likewise.
9521 * passes.def (pass_branch_target_load_optimize1): Likewise.
9522 (pass_branch_target_load_optimize2): Likewise.
9523 * targhooks.h (default_branch_target_register_class): Likewise.
9524 * targhooks.c (default_branch_target_register_class): Likewise.
9525 * opt-suggestions.c (test_completion_valid_options): Remove
9526 -fbtr-bb-exclusive from the list of test options.
9527 * bt-load.c: Remove.
9529 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
9531 * match.pd: Add flag_unsafe_math_optimizations check
9532 before deciding on the widest type in a binary math operation.
9534 2019-09-09 Martin Liska <mliska@suse.cz>
9536 * config/i386/i386.opt: Update comment of removed
9537 options that are preserved only for backward
9540 2019-09-09 Jakub Jelinek <jakub@redhat.com>
9543 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
9547 * config/i386/avxintrin.h (__v32qs): New typedef.
9548 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
9551 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
9553 * doc/invoke.texi (Option Summary): Cover eBPF.
9554 (eBPF Options): New section.
9555 * doc/extend.texi (BPF Built-in Functions): Likewise.
9556 (BPF Kernel Helpers): Likewise.
9558 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
9560 * config.gcc: Support for bpf-*-* targets.
9561 * common/config/bpf/bpf-common.c: New file.
9562 * config/bpf/t-bpf: Likewise.
9563 * config/bpf/predicates.md: Likewise.
9564 * config/bpf/constraints.md: Likewise.
9565 * config/bpf/bpf.opt: Likewise.
9566 * config/bpf/bpf.md: Likewise.
9567 * config/bpf/bpf.h: Likewise.
9568 * config/bpf/bpf.c: Likewise.
9569 * config/bpf/bpf-protos.h: Likewise.
9570 * config/bpf/bpf-opts.h: Likewise.
9571 * config/bpf/bpf-helpers.h: Likewise.
9572 * config/bpf/bpf-helpers.def: Likewise.
9574 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
9576 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9579 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
9581 * opt-functions.awk (integer_range_info): Make sure values are in
9582 numeric context before operating with them.
9584 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
9586 * genemit.c (gen_split): Print the filename and line number where the
9587 splitter (or peephole2) was defined, to the dump file.
9589 2019-09-07 Jakub Jelinek <jakub@redhat.com>
9591 PR tree-optimization/91665
9592 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
9593 incompatible with the type of PHI result.
9595 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
9598 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
9599 gen_unaligned_storedi for 4-byte aligned addresses.
9601 2019-09-06 Jim Wilson <jimw@sifive.com>
9603 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
9606 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
9608 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
9610 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
9612 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
9613 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
9615 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
9618 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
9619 cost of SSE->integer and integer->SSE moves from 2 to 6.
9622 2019-09-06 Jakub Jelinek <jakub@redhat.com>
9624 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
9625 before testing TYPE_TRANSPARENT_AGGR.
9626 * calls.c (initialize_argument_information, load_register_parameters):
9629 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
9631 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
9633 (cmp_ior): Likewise.
9635 2019-09-06 Martin Liska <mliska@suse.cz>
9637 * doc/match-and-simplify.texi: Separate tuples with ;.
9639 2019-09-06 Martin Liska <mliska@suse.cz>
9642 * Makefile.in: Remove tlink.o.
9643 * collect2.c (do_link): New function isolated
9646 * collect2.h (do_tlink): Remove declaration of do_tlink.
9647 * doc/extend.texi: Remove documentation of -frepo.
9648 * doc/invoke.texi: Likewise.
9649 * doc/sourcebuild.texi: Remove cleanup-repo-files.
9652 2019-09-05 Jakub Jelinek <jakub@redhat.com>
9653 Jim Wilson <jimw@sifive.com>
9656 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
9657 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
9658 paradoxical_subreg_p (operands[0]).
9659 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
9660 use as intermediate value.
9662 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
9664 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
9665 (sync_compare_and_swap<mode>_insn): Likewise.
9667 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
9670 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
9671 without movmisalign optab.
9673 2019-09-05 Jakub Jelinek <jakub@redhat.com>
9678 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
9679 types, use type of their first field instead of type of
9682 2019-09-05 Richard Biener <rguenther@suse.de>
9684 PR rtl-optimization/91656
9685 * postreload-gcse.c (record_last_mem_set_info): Revert addition
9688 2019-09-05 Richard Biener <rguenther@suse.de>
9691 * tree-inline.c (declare_return_variable): Mark the return
9692 slot as addressable after building an address of it.
9694 2019-09-05 Arnaud Charlet <charlet@adacore.com>
9696 * doc/install.texi: Update and clarify requirements to build GNAT.
9698 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
9701 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
9702 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
9703 call to be in memory.
9704 (pass_expand::execute): Call discover_nonconstant_array_refs before
9705 setting currently_expanding_to_rtl.
9707 2019-09-04 Caroline Tice <cmtice@google.com>
9709 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
9712 2019-09-04 Marek Polacek <polacek@redhat.com>
9714 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
9716 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
9719 * config/i386/i386.c (inline_secondary_memory_needed): Return true
9720 for QI and HImode moves between SSE and general registers.
9722 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9725 * doc/invoke.texi: Document -Wenum-conversion.
9727 2019-09-04 Richard Biener <rguenther@suse.de>
9729 PR rtl-optimization/36262
9730 * postreload-gcse.c: Include intl.h and gcse.h.
9731 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
9732 to avoid linear list walk.
9733 (record_last_mem_set_info): Gate off if not computing transparentness.
9734 (get_bb_avail_insn): If transparentness isn't computed give up
9736 (gcse_after_reload_main): Skip compute_transp and extended PRE
9737 if gcse_or_cprop_is_too_expensive says so.
9739 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9741 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
9743 (msp430_select_section): Handle decls with the "noinit" attribute with
9744 default_elf_select_section.
9745 Handle SECCAT_RODATA_MERGE_* section types with
9746 default_elf_select_section.
9747 Add comments about handling of unsupported section types.
9748 (msp430_section_type_flags): Remove handling of the noinit section.
9750 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9752 * config/msp430/msp430.c (msp430_attr): Remove warnings about
9753 conflicting msp430-specific attributes.
9754 (msp430_section_attr): Likewise.
9755 Add warnings about conflicts with generic "noinit" and "section"
9757 Fix grammar in -mlarge error message.
9758 (msp430_data_attr): Rename to msp430_persist_attr.
9759 Add warnings about conflicts with generic "noinit" and "section"
9761 Add warning for when variable is not initialized.
9762 Chain conditionals which prevent the attribute being added.
9763 (ATTR_EXCL): New helper.
9764 (attr_reent_exclusions): New exclusion table.
9765 (attr_naked_exclusions): Likewise.
9766 (attr_crit_exclusions): Likewise.
9767 (attr_lower_exclusions): Likewise.
9768 (attr_upper_exclusions): Likewise.
9769 (attr_either_exclusions): Likewise.
9770 (attr_persist_exclusions): Likewise.
9771 (msp430_attribute_table): Update with exclusion rules.
9772 (msp430_output_aligned_decl_common): Don't output common symbol if decl
9775 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9777 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
9778 (msp430_handle_generic_attribute): New function.
9779 * doc/tm.texi: Regenerate.
9780 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
9781 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
9782 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
9783 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
9785 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
9787 PR tree-optimization/91504
9788 * match.pd: Add ((~a & b) ^a) --> (a | b).
9790 2019-09-03 Jakub Jelinek <jakub@redhat.com>
9793 * config/i386/i386-expand.c (split_double_mode): If there is more than
9794 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
9795 already split matching MEM operand instead of calling adjust_address
9798 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
9800 * config.gcc: Obsolete spu target. Remove references to spu.
9801 * configure.ac: Remove references to spu.
9802 * configure: Regenerate.
9803 * config/spu/: Remove directory.
9804 * common/config/spu/: Remove directory.
9806 * doc/extend.texi: Remove references to spu.
9807 * doc/invoke.texi: Likewise.
9808 * doc/md.texi: Likewise.
9809 * doc/sourcebuild.texi: Likewise.
9811 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
9816 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
9817 and SSA_NAME referring to CONSTANT_P correctly.
9819 2019-09-03 Richard Biener <rguenther@suse.de>
9821 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
9822 (vn_nary_op_insert): Likewise.
9823 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
9824 (vn_nary_op_lookup): Likewise.
9825 (vn_nary_op_insert): Likewise.
9827 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
9829 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
9830 (*op0, 1) instead of XEXP (*op1, 0).
9832 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9834 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
9835 (aarch64_fjcvtzs): New define_insn.
9836 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
9837 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
9839 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
9840 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
9841 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9842 __ARM_FEATURE_JCVT where appropriate.
9843 * config/aarch64/arm_acle.h (__jcvt): Define.
9845 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9847 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
9848 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
9849 (aarch64_<frintnzs_op><mode>): New define_insn.
9850 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
9851 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9852 __ARM_FEATURE_FRINT when appropriate.
9853 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
9854 frint32x, frint64z, frint64x.
9855 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
9856 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
9857 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
9858 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
9859 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
9860 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
9861 * config/aarch64/iterators.md (VSFDF): Define.
9862 (FRINTNZX): Likewise.
9863 (frintnzs_op): Likewise.
9865 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
9867 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
9868 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
9870 * config/aarch64/aarch64-tune.md: Regenerated.
9871 * doc/invoke.texi: Document the new processors.
9873 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9875 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
9879 (sve2-sm4): Likewise.
9881 (svesha3): Likewise.
9882 (svebitperm): Likewise.
9884 2019-09-03 Jakub Jelinek <jakub@redhat.com>
9885 Richard Biener <rguenther@suse.de>
9887 PR tree-optimization/91597
9888 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
9889 BIT_AND_EXPR optimization for pointers, even if both operand
9890 ranges don't include NULL, the result can be NULL.
9892 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9895 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
9896 (non_mem_decl_p): ...this.
9897 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
9898 (expand_assignment): Call mem_ref_referes_to_non_mem_p
9899 unconditionally as before.
9901 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
9904 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
9905 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
9906 * tree.def (LTGT_EXPR): Likewise.
9907 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
9909 2019-09-02 Jakub Jelinek <jakub@redhat.com>
9912 * fold-const.c (range_check_type): For enumeral and boolean
9913 type, pass 1 to type_for_size langhook instead of
9914 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
9915 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
9916 (build_range_check): Don't call unsigned_type_for for pointer types.
9917 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
9918 range_check_type result.
9920 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
9922 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
9923 (replace_ref): Do not replace a chain of only two candidates which are
9924 valid memory references.
9926 2019-09-02 Martin Liska <mliska@suse.cz>
9928 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
9929 Bail out when we'll end up with the same number of clusters as
9931 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
9932 (jump_table_cluster::can_be_handled): Remove the guard
9933 as it's already handled in ::is_enabled. Allocate output
9934 after early bail out.
9936 2019-09-02 Martin Liska <mliska@suse.cz>
9938 PR gcov-profile/91601
9939 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
9940 (path_contains_zero_or_negative_cycle_arc): ... this and handle
9941 also negative edges.
9942 (circuit): Handle also negative edges as they can happen
9945 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
9948 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
9949 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
9950 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
9952 2019-09-01 Jakub Jelinek <jakub@redhat.com>
9955 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
9956 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
9957 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
9961 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
9962 GIMPLE_ASM TREE_LIST operands.
9964 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
9966 * doc/generic.texi (Unary and Binary Expressions): Mark up
9967 an instance of TYPE_MIN.
9969 2019-08-31 Stafford Horne <shorne@gmail.com>
9971 * config/or1k/constraints.md (t): New constraint.
9972 * config/or1k/or1k.h (GOT_REGS): New register class.
9973 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
9975 2019-08-30 Jim Wilson <jimw@sifive.com>
9977 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
9978 and -fpic and -mplt then disable -msave-restore and warn.
9980 2019-08-30 Martin Sebor <msebor@redhat.com>
9983 * tree-ssa-strlen.c (handle_store): Use a fallback location if
9984 the statement doesn't have one.
9985 * gimple-pretty-print.c (percent_G_format): Same.
9988 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
9989 before using them to validate MEM_REF offset.
9991 2019-08-30 Marek Polacek <polacek@redhat.com>
9993 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
9995 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
9997 * config/arm/arm.md (unaligned_loaddi,
9998 unaligned_storedi): New unspec insn patterns.
9999 * config/arm/neon.md (unaligned_storev8qi): Likewise.
10000 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
10001 and unaligned_storedi for 4-byte aligned memory.
10002 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
10003 4-byte aligned memory.
10005 2019-08-30 Martin Jambor <mjambor@suse.cz>
10007 tree-optimization/91579
10008 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
10009 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
10011 (arg_needs_copy_p): Removed.
10012 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
10014 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
10016 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
10018 * config/i386/i386-features.c
10019 (general_scalar_chain::compute_convert_gain):
10020 Correct cost for double-word shifts.
10021 (general_scalar_to_vector_candidate_p): Reject count operands
10022 greater or equal to mode bitsize.
10024 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
10026 * config/i386/i386.c (inline_secondary_memory_needed): Return true
10027 for moves between SSE and non-general registers and between
10028 mask and non-general registers.
10029 (ix86_register_move_cost): Remove stalled comment.
10031 2019-08-29 Richard Biener <rguenther@suse.de>
10033 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
10034 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
10036 2019-08-29 Richard Biener <rguenther@suse.de>
10039 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
10040 Do not emit scalar copies for debug-insns, instead replace
10041 their uses with the reg copy used in the chain or reset them
10042 if there is a reaching definition outside of the chain as well.
10044 2019-08-29 Jakub Jelinek <jakub@redhat.com>
10047 * config/i386/i386-expand.c (expand_vec_perm_movs,
10048 expand_vec_perm_blend, expand_vec_perm_vpermil,
10049 expand_vec_perm_pshufb, expand_vec_perm_1,
10050 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
10051 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
10052 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
10053 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
10054 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
10055 comments - replace ix86_expand_vec_perm_builtin_1 with
10056 ix86_expand_vec_perm_const_1.
10057 (expand_vec_perm2_vperm2f128_vblend): New function.
10058 (ix86_expand_vec_perm_const_1): New forward declaration. Call
10059 expand_vec_perm2_vperm2f128_vblend as last resort.
10060 (canonicalize_perm): Formatting fix.
10062 PR tree-optimization/91351
10063 * tree-cfg.c (generate_range_test): Use range_check_type instead of
10065 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
10066 range_check_type returns NULL.
10067 * tree-switch-conversion.c (switch_conversion::build_one_array):
10068 Use range_check_type instead of unsigned_type_for, don't perform
10069 linear opt if it returns NULL.
10070 (bit_test_cluster::find_bit_tests): Formatting fix.
10071 (bit_test_cluster::emit): Use range_check_type instead of
10073 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
10076 2019-08-29 Richard Biener <rguenther@suse.de>
10078 PR tree-optimization/91568
10079 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
10080 (vect_update_max_nunits): Add overload for poly_uint64.
10081 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
10082 (vect_build_slp_tree): Record max_nunits into the subtree
10083 and merge it upwards.
10084 (vect_print_slp_tree): Print max_nunits.
10086 2019-08-28 Marek Polacek <polacek@redhat.com>
10088 Implement P1152R4: Deprecating some uses of volatile.
10090 * doc/invoke.texi: Document -Wvolatile.
10092 2019-08-28 Marek Polacek <polacek@redhat.com>
10094 PR c++/91360 - Implement C++20 P1143R2: constinit.
10095 * doc/invoke.texi: Document -Wc++20-compat.
10097 2019-08-28 Martin Sebor <msebor@redhat.com>
10099 PR tree-optimization/91457
10100 * builtins.c (component_size): New function.
10101 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
10102 * builtins.h (compute_objsize): Add argument.
10103 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
10104 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
10105 (vrp_prop::check_mem_ref): Same.
10106 (vrp_prop::search_for_addr_array): Set no-warning bit.
10107 (check_array_bounds): Same.
10109 2019-08-28 Martin Sebor <msebor@redhat.com>
10112 * opts-common.c (option_enabled): Correct checking for language
10115 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
10117 * config/i386/i386.c (ix86_register_move_cost): Do not
10118 limit the cost of moves to/from XMM register to minimum 8.
10120 2019-08-28 Martin Jambor <mjambor@suse.cz>
10123 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
10124 checking assert a normal assert to test it really is redundant.
10125 * ipa-prop.c (compute_complex_assign_jump_func): Removed
10127 (update_jump_functions_after_inlining): Removed combining unary
10128 arithmetic operations with an ancestor jump function.
10129 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
10132 2019-08-28 Richard Biener <rguenther@suse.de>
10134 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
10135 add the MD problem.
10137 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
10138 Richard Biener <rguenther@suse.de>
10140 * expr.c (expand_assignment): Handle misaligned DECLs.
10141 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
10142 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
10144 (assign_parm_setup_stack): Allocate properly aligned stack slots.
10145 * varasm.c (build_constant_desc): Align constants of misaligned types.
10146 * config/arm/predicates.md (aligned_operand): New predicate.
10147 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
10148 aligned_operand to check restrictions on memory addresses.
10149 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
10150 * config/arm/vec-common.md (mov<VALL>): Likewise.
10152 2019-08-28 Jakub Jelinek <jakub@redhat.com>
10155 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
10156 V_128 iterator instead of VI_128.
10158 2019-08-28 Martin Liska <mliska@suse.cz>
10160 PR tree-optimization/90970
10161 * builtins.c (check_access): Remove assignment to maxread
10162 as it hasn't been used since when it was introduced in r255755.
10164 2019-08-27 Martin Sebor <msebor@redhat.com>
10166 PR tree-optimization/91567
10167 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
10168 of unknown strings.
10169 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
10170 to PTRDIFF_MAX - 2.
10172 2019-08-27 Jeff Law <law@redhat.com>
10174 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
10175 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
10177 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
10180 * config/i386/i386-features.c (convert_scalars_to_vector):
10181 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
10182 crtl->stack_realign_processed. Update crtl->drap_reg by calling
10183 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
10184 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
10186 2019-08-27 Richard Biener <rguenther@suse.de>
10188 * config/i386/i386-features.h
10189 (general_scalar_chain::~general_scalar_chain): Add.
10190 (general_scalar_chain::insns_conv): New bitmap.
10191 (general_scalar_chain::n_sse_to_integer): New.
10192 (general_scalar_chain::n_integer_to_sse): Likewise.
10193 (general_scalar_chain::make_vector_copies): Adjust signature.
10194 * config/i386/i386-features.c
10195 (general_scalar_chain::general_scalar_chain): Outline,
10196 initialize new members.
10197 (general_scalar_chain::~general_scalar_chain): New.
10198 (general_scalar_chain::mark_dual_mode_def): Record insns
10199 we need to insert conversions at and count them.
10200 (general_scalar_chain::compute_convert_gain): Account
10201 for conversion instructions at chain boundary.
10202 (general_scalar_chain::make_vector_copies): Generate a single
10203 copy for a def by a specific insn.
10204 (general_scalar_chain::convert_registers): First populate
10205 defs_map, then make copies at out-of chain insns.
10207 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
10209 * config/arm/arm.md (stack_protect_set_insn): Add security-related
10211 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
10213 2019-08-27 Martin Liska <mliska@suse.cz>
10215 * cgraph.c (cgraph_node::remove): Remove dead assignment before
10217 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
10218 Enclose in anonymous namespace.
10219 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
10220 hard_register initialization in braces.
10221 * tree-vrp.h (value_range_base::supports_type_p): Return false
10222 for function with boolean return type.
10224 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
10226 * config/i386/i386.c (emit_i387_cw_initialization)
10227 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
10229 2019-08-26 Martin Sebor <msebor@redhat.com>
10232 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
10233 (sprintf_dom_walker): Remove class.
10234 (get_int_range): Make argument const.
10235 (directive::fmtfunc, directive::set_precision): Same.
10236 (format_none): Same.
10237 (build_intmax_type_nodes): Same.
10238 (adjust_range_for_overflow): Same.
10239 (format_floating): Same.
10240 (format_character): Same.
10241 (format_string): Same.
10242 (format_plain): Same.
10243 (get_int_range): Cast away constness.
10244 (format_integer): Same.
10245 (get_string_length): Call get_range_strlen_dynamic. Handle
10246 null lendata.maxbound.
10247 (should_warn_p): Adjust argument scope qualifier.
10248 (maybe_warn): Same.
10249 (format_directive): Same.
10250 (parse_directive): Same.
10251 (is_call_safe): Same.
10252 (try_substitute_return_value): Same.
10253 (sprintf_dom_walker::handle_printf_call): Rename...
10254 (handle_printf_call): ...to this. Initialize target to host charmap
10255 here instead of in pass_sprintf_length::execute.
10256 (struct call_info): Make global.
10257 (sprintf_dom_walker::compute_format_length): Make global.
10258 (sprintf_dom_walker::handle_gimple_call): Same.
10259 * passes.def (pass_sprintf_length): Replace with pass_strlen.
10260 * print-rtl.c (print_pattern): Reduce the number of spaces to
10261 avoid -Wformat-truncation.
10262 * tree-pass.h (make_pass_warn_printf): New function.
10263 * tree-ssa-strlen.c (strlen_optimize): New variable.
10264 (get_string_length): Add comments.
10265 (get_range_strlen_dynamic): New function.
10266 (check_and_optimize_call): New function.
10267 (handle_integral_assign): New function.
10268 (strlen_check_and_optimize_stmt): Factor code out into
10269 strlen_check_and_optimize_call and handle_integral_assign.
10270 (strlen_dom_walker::evrp): New member.
10271 (strlen_dom_walker::before_dom_children): Use evrp member.
10272 (strlen_dom_walker::after_dom_children): Use evrp member.
10273 (printf_strlen_execute): New function.
10274 (pass_strlen::gate): Update to handle printf calls.
10275 (dump_strlen_info): New function.
10276 (pass_data_warn_printf): New variable.
10277 (pass_warn_printf): New class.
10278 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
10279 (handle_printf_call): Same.
10280 * tree-vrp.c (value_range_base::type): Adjust assertion.
10281 * vr-values.c (vr_values::update_value_range): Use type of the first
10282 argument rather than the second.
10284 2019-08-26 Richard Biener <rguenther@suse.de>
10286 * config/i386/i386-features.c (general_remove_non_convertible_regs):
10288 (convert_scalars_to_vector): Do not call it.
10290 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
10291 Uros Bizjak <ubizjak@gmail.com>
10293 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
10294 CASE_MATHFN_FLOATN for roundeven.
10295 * config/i386/i386.c (ix86_i387_mode_needed): Add case
10297 (ix86_mode_needed): Likewise.
10298 (ix86_mode_after): Likewise.
10299 (ix86_mode_entry): Likewise.
10300 (ix86_mode_exit): Likewise.
10301 (ix86_emit_mode_set): Likewise.
10302 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
10303 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
10304 (ix86_entity): Add I387_ROUNDEVEN.
10305 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
10306 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
10307 (define_int_iterator): Likewise.
10308 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
10309 (define_constant): Define ROUND_ROUNDEVEN mode.
10310 (define_attr): Add roundeven mode for i387_cw.
10311 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
10312 * internal-fn.def (ROUNDEVEN): New builtin function.
10313 * optabs.def (roundeven_optab): New optab.
10315 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
10317 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
10319 * builtins.def: Added function definitions for roundeven function
10321 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
10322 function call. Adjust condition for floor, ceil, trunc and round.
10323 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
10324 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
10325 (integer_valued_real_call_p): Added case for roundeven function.
10326 * real.c (is_even): New function. Returns true if real number is even,
10327 otherwise returns false.
10328 (is_halfway_below): New function. Returns true if real number is
10329 halfway between two integers, else return false.
10330 (real_roundeven): New function. Round real number to nearest integer,
10331 rounding halfway cases towards even.
10332 * real.h (real_value): Added descriptive comments. Added function
10333 declaration for roundeven function.
10334 * doc/extend.texi (Other Builtins): List roundeven variants among
10335 functions which can be handled as builtins.
10337 2019-08-26 Richard Biener <rguenther@suse.de>
10341 * config/i386/i386-features.h (general_scalar_chain::defs_map):
10343 (general_scalar_chain::replace_with_subreg): Remove.
10344 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
10345 (general_scalar_chain::convert_reg): Adjust signature.
10346 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
10347 iterate over all defs of a reg.
10348 (general_scalar_chain::replace_with_subreg): Remove.
10349 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
10350 (general_scalar_chain::make_vector_copies): Populate defs_map,
10351 place copy only after defs that are used as vectors in the chain.
10352 (general_scalar_chain::convert_reg): Emit a copy for a specific
10353 def in a specific instruction.
10354 (general_scalar_chain::convert_op): All reg uses are converted here.
10355 (general_scalar_chain::convert_insn): Emit copies for scalar
10356 uses of defs here. Replace uses with the copies we created.
10357 Replace and convert the def. Adjust REG_DEAD notes, remove
10358 REG_EQUIV/EQUAL notes.
10359 (general_scalar_chain::convert_registers): Only handle copies
10360 into the chain here.
10362 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
10364 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
10366 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
10368 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
10369 Add nop_convert case.
10370 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
10371 Fold all statements if requested.
10372 * tree-ssa-propagate.h (class substitute_and_fold_engine):
10373 Allow to fold all statements.
10374 * tree-vrp.c (class vrp_folder):
10375 Let substitute_and_fold_engine fold all statements.
10377 2019-08-26 Richard Biener <rguenther@suse.de>
10379 PR tree-optimization/91526
10380 * passes.def: Note that after late FRE we do TODO_update_address_taken.
10381 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
10382 TODO_update_address_taken.
10384 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
10386 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
10389 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
10391 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
10392 machine mode for unspec_volatile operand.
10394 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10396 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
10397 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
10398 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
10399 (prefer_neon_for_64bits): Remove.
10400 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
10401 (tune_params): Remove PREF_NEON_64_FALSE uses.
10402 (arm_option_override): Remove prefer_neon selection code.
10403 (arm_print_tune_info): Remove prefer_neon_for_64bits.
10404 * config/arm/arm-protos.h (tune_params): Remove
10405 prefer_neon_for_64bits.
10406 (prefer_neon_for_64bits): Remove.
10408 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
10411 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
10412 and issue any diagnostics needed before collecting the pre-PCH
10415 2019-08-23 Jakub Jelinek <jakub@redhat.com>
10417 PR middle-end/91283
10418 * common.opt (fexcess-precision=): Add Optimization flag. Use
10419 flag_excess_precision variable instead of
10420 flag_excess_precision_cmdline.
10421 * flags.h (class target_flag_state): Remove x_flag_excess_precision
10423 (flag_excess_precision): Don't define.
10424 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
10425 flag_excess_precision_cmdline. Remove comment.
10426 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
10427 and x_flag_excess_precision instead of
10428 frontend_set_flag_excess_precision_cmdline and
10429 x_flag_excess_precision_cmdline.
10430 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
10431 x_flag_excess_precision_cmdline.
10432 * toplev.c (init_excess_precision): Remove.
10433 (lang_dependent_init_target): Don't call it.
10435 2019-08-23 Martin Liska <mliska@suse.cz>
10437 * lto-wrapper.c (run_gcc): When setting jobserver
10438 set also parallel to 1. This was done so before r273908.
10440 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
10442 * config/arm/arm-cpus.in (cortex-m35p): New entry.
10443 (cortex-a76ae): Likewise.
10444 (cortex-a77): Likewise
10445 * config/arm/arm-tables.opt: Regenerate.
10446 * config/arm/arm-tune.md: Likewise.
10447 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
10448 cortex-a77 CPU options.
10450 2019-08-23 Martin Liska <mliska@suse.cz>
10452 * profile.c (instrument_values): Do not set
10453 0 as last argument.
10454 * tree-profile.c (gimple_gen_interval_profiler): Remove
10456 (gimple_gen_pow2_profiler): Likewise.
10457 (gimple_gen_topn_values_profiler): Likewise.
10458 (gimple_gen_ic_profiler): Likewise.
10459 (gimple_gen_time_profiler): Likewise.
10460 (gimple_gen_average_profiler): Likewise.
10461 (gimple_gen_ior_profiler): Likewise.
10462 * value-prof.c (dump_histogram_value): Use default
10463 in switch statement instead of HIST_TYPE_MAX.
10464 (stream_in_histogram_value): Likewise.
10465 (gimple_duplicate_stmt_histograms): Do not
10466 use NULL for implicitly set arguments.
10467 (gimple_divmod_values_to_profile): Do not use
10468 reserve+quick_push.
10469 (gimple_indirect_call_to_profile): Likewise.
10470 (gimple_find_values_to_profile): Use implicit
10471 function call arguments.
10472 * value-prof.h (gimple_alloc_histogram_value):
10473 Set default values.
10474 (gimple_gen_interval_profiler): Remove last argument.
10475 (gimple_gen_pow2_profiler): Likewise.
10476 (gimple_gen_topn_values_profiler): Likewise.
10477 (gimple_gen_ic_profiler): Likewise.
10478 (gimple_gen_time_profiler): Likewise.
10479 (gimple_gen_average_profiler): Likewise.
10480 (gimple_gen_ior_profiler): Likewise.
10482 2019-08-22 Martin Sebor <msebor@redhat.com>
10484 PR middle-end/91490
10485 * builtins.c (c_strlen): Rename argument and introduce new local.
10486 Set no-warning bit on original argument.
10487 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
10488 Fold empty and zero constructors into empty strings.
10489 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
10490 for missing initializers.
10491 * tree.c (build_string_literal): Handle optional argument.
10492 * tree.h (build_string_literal): Add defaulted argument.
10493 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
10494 no-warning bit on original expression.
10496 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
10499 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
10500 and UNSPEC_DARN_RAW.
10501 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
10503 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
10504 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
10505 (darn): Use an unspec_volatile, and UNSPECV_DARN.
10507 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
10509 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
10510 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
10511 * config/rs6000/rs6000.md (unspec): ... here.
10512 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
10513 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
10514 cmpeqb, *cmpeqb_internal): Delete, move to...
10515 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
10516 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
10517 cmpeqb, *cmpeqb_internal): ... here.
10519 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10521 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
10522 intrinsics if __ARM_FP.
10523 Use __ARM_FEATURE_CRC32 ifdef guard.
10525 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
10527 * config/arm/arm.md (neon_for_64bits): Remove.
10528 (avoid_neon_for_64bits): Remove.
10529 (arm_adddi3): Always split early.
10530 (arm_subdi3): Always split early.
10531 (negdi2): Remove Neon expansion.
10532 (split zero_extend): Split before reload.
10533 (split sign_extend): Split before reload.
10535 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
10537 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
10538 (qhs_extenddi_cstr): Likewise.
10539 * config/arm/arm.md (ashldi3): Always expand early.
10540 (ashlsi3): Likewise.
10541 (ashrsi3): Likewise.
10542 (zero_extend<mode>di2): Remove Neon variants.
10543 (extend<mode>di2): Likewise.
10544 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
10545 (signed_shift_di3_neon): Likewise.
10546 (unsigned_shift_di3_neon): Likewise.
10547 (ashrdi3_neon_imm_noclobber): Likewise.
10548 (lshrdi3_neon_imm_noclobber): Likewise.
10549 (<shift>di3_neon): Likewise.
10550 (split extend): Remove DI extend split patterns.
10552 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
10554 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
10555 (split not): Add DImode not splitter.
10556 (anddi3): Remove pattern.
10557 (anddi3_insn): Likewise.
10558 (anddi_zesidi_di): Likewise.
10559 (anddi_sesdi_di): Likewise.
10560 (anddi_notdi_di): Likewise.
10561 (anddi_notzesidi_di): Likewise.
10562 (anddi_notsesidi_di): Likewise.
10563 (iordi3): Likewise.
10564 (iordi3_insn): Likewise.
10565 (iordi_zesidi_di): Likewise.
10566 (iordi_sesidi_di): Likewise.
10567 (xordi3): Likewise.
10568 (xordi3_insn): Likewise.
10569 (xordi_sesidi_di): Likewise.
10570 (xordi_zesidi_di): Likewise.
10571 (one_cmpldi2): Likewise.
10572 (one_cmpldi2_insn): Likewise.
10573 * config/arm/constraints.md: Remove De, Df, Dg constraints.
10574 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
10576 (iwmmxt_xordi3): Likewise.
10577 (iwmmxt_anddi3): Likewise.
10578 * config/arm/neon.md (orndi3_neon): Remove pattern.
10579 (anddi_notdi_di): Likewise.
10580 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
10581 (arm_iordi_operand_neon): Likewise.
10582 (arm_xordi_operand_neon): Likewise.
10583 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
10584 (iordi_notzesidi_di): Likewise.
10585 (iordi_notdi_zesidi): Likewise.
10586 (iordi_notsesidi_di): Likewise.
10588 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
10590 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
10592 (iorsi3_compare0_scratch): Likewise.
10594 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
10596 * config/aarch64/aarch64-simd-builtins.def:
10599 * config/aarch64/aarch64-simd.md:
10600 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
10601 (aarch64_st1x4<VALLDIF:mode>): Likewise.
10602 (aarch64_ld1_x4_<mode>): Likewise.
10603 (aarch64_st1_x4_<mode>): Likewise.
10604 * config/aarch64/arm_neon.h:
10605 (vld1_s8_x4): New function.
10606 (vld1q_s8_x4): Likewise.
10607 (vld1_s16_x4): Likewise.
10608 (vld1q_s16_x4): Likewise.
10609 (vld1_s32_x4): Likewise.
10610 (vld1q_s32_x4): Likewise.
10611 (vld1_u8_x4): Likewise.
10612 (vld1q_u8_x4): Likewise.
10613 (vld1_u16_x4): Likewise.
10614 (vld1q_u16_x4): Likewise.
10615 (vld1_u32_x4): Likewise.
10616 (vld1q_u32_x4): Likewise.
10617 (vld1_f16_x4): Likewise.
10618 (vld1q_f16_x4): Likewise.
10619 (vld1_f32_x4): Likewise.
10620 (vld1q_f32_x4): Likewise.
10621 (vld1_p8_x4): Likewise.
10622 (vld1q_p8_x4): Likewise.
10623 (vld1_p16_x4): Likewise.
10624 (vld1q_p16_x4): Likewise.
10625 (vld1_s64_x4): Likewise.
10626 (vld1_u64_x4): Likewise.
10627 (vld1_p64_x4): Likewise.
10628 (vld1q_s64_x4): Likewise.
10629 (vld1q_u64_x4): Likewise.
10630 (vld1q_p64_x4): Likewise.
10631 (vld1_f64_x4): Likewise.
10632 (vld1q_f64_x4): Likewise.
10633 (vst1_s8_x4): Likewise.
10634 (vst1q_s8_x4): Likewise.
10635 (vst1_s16_x4): Likewise.
10636 (vst1q_s16_x4): Likewise.
10637 (vst1_s32_x4): Likewise.
10638 (vst1q_s32_x4): Likewise.
10639 (vst1_u8_x4): Likewise.
10640 (vst1q_u8_x4): Likewise.
10641 (vst1_u16_x4): Likewise.
10642 (vst1q_u16_x4): Likewise.
10643 (vst1_u32_x4): Likewise.
10644 (vst1q_u32_x4): Likewise.
10645 (vst1_f16_x4): Likewise.
10646 (vst1q_f16_x4): Likewise.
10647 (vst1_f32_x4): Likewise.
10648 (vst1q_f32_x4): Likewise.
10649 (vst1_p8_x4): Likewise.
10650 (vst1q_p8_x4): Likewise.
10651 (vst1_p16_x4): Likewise.
10652 (vst1q_p16_x4): Likewise.
10653 (vst1_s64_x4): Likewise.
10654 (vst1_u64_x4): Likewise.
10655 (vst1_p64_x4): Likewise.
10656 (vst1q_s64_x4): Likewise.
10657 (vst1q_u64_x4): Likewise.
10658 (vst1q_p64_x4): Likewise.
10659 (vst1_f64_x4): Likewise.
10660 (vst1q_f64_x4): Likewise.
10662 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10664 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
10666 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10667 Richard Sandiford <richard.sandiford@arm.com>
10670 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
10671 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
10673 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10676 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
10677 in reg if it fails aarch64_plus_operand predicate.
10679 2019-08-21 Richard Biener <rguenther@suse.de>
10681 PR tree-optimization/91482
10682 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
10683 BUILT_IN_ASSUME_ALIGNED calls.
10685 2019-08-21 Richard Biener <rguenther@suse.de>
10689 * config/i386/i386-features.c
10690 (general_scalar_chain::make_vector_copies): Copy stack temporary
10691 rtx when using it multiple times.
10692 (general_scalar_chain::convert_reg): Likewise.
10694 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
10696 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
10698 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
10700 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
10701 catch more redundant zero initialization cases.
10702 (dse_dom_walker::dse_optimize_stmt): Likewise.
10704 2019-08-20 Richard Biener <rguenther@suse.de>
10707 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
10708 by collect2 when targetm.have_ctors_dtors which avoids dragging
10709 in temporary filenames from LTO input objects.
10711 2019-08-20 Richard Biener <rguenther@suse.de>
10713 PR tree-optimization/37242
10714 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
10715 to (T)a + (T)b if we know that a + b does not overflow.
10717 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
10719 PR rtl-optimization/91347
10720 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
10721 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
10723 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
10725 * calls.h (function_arg_info): Add a pass_by_reference field,
10726 defaulting to false.
10727 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
10728 when applying pass-by-reference semantics.
10729 (initialize_argument_information): Likewise.
10730 (emit_library_call_value_1): Likewise.
10731 * function.c (assign_parm_data_one): Remove passed_pointer field.
10732 (assign_parm_find_data_types): Don't set it.
10733 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
10734 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
10735 arg.pass_by_reference instead of passed_pointer.
10737 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
10739 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
10740 into a single function_arg_info, updating its fields when we
10741 apply pass-by-reference and promotion semantics. Use the
10742 function_arg_info to track the mode rather than keeping it in
10743 a separate local variable.
10744 (initialize_argument_information): Likewise. Base the final
10745 arg_to_skip on this new function_arg_info rather than creating
10746 a new one from scratch.
10748 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
10750 * function.c (assign_parm_data_one): Replace passed_type,
10751 promoted_mode and named_arg with a function_arg_info field.
10752 (assign_parm_find_data_types): Remove local variables and
10753 assign directly to "data". Make data->passed_mode shadow
10754 data->arg.mode until promotion, then assign the promoted
10755 mode to data->arg.mode.
10756 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
10757 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
10758 (assign_parm_remove_parallels, assign_parm_setup_block_p)
10759 (assign_parm_setup_block, assign_parm_setup_reg)
10760 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
10761 arg.mode instead of promoted_mode, arg.type instead of passed_type
10762 and arg.named instead of named_arg. Use data->arg for
10763 function_arg_info structures that had the field values passed_type,
10764 promoted_mode and named_arg. Base other function_arg_infos on
10765 data->arg, changing the necessary properties.
10767 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
10769 * calls.h (apply_pass_by_reference_rules): Declare.
10770 * calls.c (apply_pass_by_reference_rules): New function.
10771 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
10772 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
10773 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
10774 * function.c (assign_parm_find_data_types): Likewise.
10775 * var-tracking.c (prepare_call_arguments): Likewise.
10777 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
10779 * target.def (must_pass_in_stack): Take a function_arg_info instead
10780 of a mode and a type.
10781 * doc/tm.texi: Regenerate.
10782 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
10783 instead of a mode and a type.
10784 (must_pass_in_stack_var_size_or_pad): Likewise.
10785 * calls.c (must_pass_in_stack_var_size): Likewise.
10786 (must_pass_in_stack_var_size_or_pad): Likewise.
10787 (initialize_argument_information): Update call to
10788 targetm.calls.must_pass_in_stack.
10789 (must_pass_va_arg_on_stack): Likewise.
10790 * function.c (assign_parm_find_entry_rtl): Likewise.
10791 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
10792 * config/alpha/alpha.c (alpha_function_arg): Likewise.
10793 (alpha_function_arg_advance): Likewise.
10794 * config/cr16/cr16.c (cr16_function_arg): Likewise.
10795 (cr16_function_arg_advance): Likewise.
10796 * config/cris/cris.c (cris_pass_by_reference): Likewise.
10797 (cris_arg_partial_bytes): Likewise.
10798 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
10799 * config/lm32/lm32.c (lm32_function_arg): Likewise.
10800 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
10801 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
10802 * config/mips/mips.c (mips_pass_by_reference): Likewise.
10803 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
10804 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
10805 * config/sh/sh.c (sh_pass_by_reference): Likewise.
10806 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
10807 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
10808 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
10809 instead of a mode and a type.
10810 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
10811 (fr30_num_arg_regs): Likewise.
10812 (fr30_setup_incoming_varargs): Update calls accordingly.
10813 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
10814 (fr30_function_arg_advance): Likewise.
10815 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
10816 instead of a mode and a type.
10817 * config/gcn/gcn.c (num_arg_regs): Likewise.
10818 (gcn_function_arg, gcn_function_arg_advance): Update calls to
10819 num_arg_regs and targetm.calls.must_pass_in_stack.
10820 (gcn_arg_partial_bytes): Likewise.
10821 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
10822 function_arg_info instead of a mode and a type.
10823 (classify_argument): Update call accordingly.
10824 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
10825 function_arg_info instead of a mode and a type.
10826 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
10828 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
10829 (rs6000_parm_needs_stack): Update call accordingly.
10830 (setup_incoming_varargs): Likewise.
10832 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
10834 * target.def (callee_copies): Take a function_arg_info instead
10835 of a mode, type and named flag.
10836 * doc/tm.texi: Regenerate.
10837 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
10838 instead of a mode, type and named flag.
10839 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
10840 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
10841 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
10842 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
10843 instead of a mode, type and named flag.
10844 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
10845 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
10846 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
10847 * calls.h (reference_callee_copied): Take a function_arg_info
10848 instead of a mode, type and named flag.
10849 * calls.c (reference_callee_copied): Likewise.
10850 (initialize_argument_information): Update call accordingly.
10851 (emit_library_call_value_1): Likewise.
10852 * function.c (gimplify_parameters): Likewise.
10853 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
10854 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
10855 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
10856 * config/c6x/c6x.c (c6x_callee_copies): Delete.
10857 (TARGET_CALLEE_COPIES): Define to
10858 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
10859 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
10860 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
10861 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
10862 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
10863 instead of a mode, type and named flag.
10864 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
10865 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
10866 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
10867 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
10868 * config/msp430/msp430.c (msp430_callee_copies): Delete.
10869 (TARGET_CALLEE_COPIES): Define to
10870 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
10871 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
10872 instead of a mode, type and named flag.
10873 * config/sh/sh.c (sh_callee_copies): Likewise.
10874 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
10875 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
10876 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
10878 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
10880 * target.def (function_arg_advance): Take a function_arg_info instead
10881 of a mode, type and named flag.
10882 * doc/tm.texi: Regenerate.
10883 * targhooks.h (default_function_arg_advance): Take a function_arg_info
10884 instead of a mode, type and named flag.
10885 * targhooks.c (default_function_arg_advance): Likewise.
10886 * calls.c (initialize_argument_information): Update call to
10887 targetm.calls.function_arg_advance.
10888 (emit_library_call_value_1): Likewise.
10889 * dse.c (get_call_args): Likewise.
10890 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
10891 * function.c (assign_parms, gimplify_parameters): Likewise.
10892 * var-tracking.c (prepare_call_arguments): Likewise.
10893 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
10894 function_arg_info instead of a mode, type and named flag.
10895 (aarch64_setup_incoming_varargs): Update call accordingly.
10896 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
10897 function_arg_info instead of a mode, type and named flag.
10898 (alpha_setup_incoming_varargs): Update call accordingly.
10899 * config/arc/arc.c (arc_function_arg_advance): Take a
10900 function_arg_info instead of a mode, type and named flag.
10901 (arc_setup_incoming_varargs): Update call accordingly.
10902 * config/arm/arm.c (arm_function_arg_advance): Take a
10903 function_arg_info instead of a mode, type and named flag.
10904 (cmse_func_args_or_return_in_stack): Update call accordingly.
10905 (arm_function_ok_for_sibcall): Likewise.
10906 (cmse_nonsecure_call_clear_caller_saved): Likewise.
10907 * config/avr/avr.c (avr_function_arg_advance): Take a
10908 function_arg_info instead of a mode, type and named flag.
10909 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
10910 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
10911 (c6x_call_saved_register_used): Update call accordingly.
10912 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
10913 function_arg_info instead of a mode, type and named flag.
10914 * config/cris/cris.c (cris_function_arg_advance): Likewise.
10915 * config/csky/csky.c (csky_function_arg_advance): Likewise.
10916 (csky_setup_incoming_varargs): Update call accordingly.
10917 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
10918 function_arg_info instead of a mode, type and named flag.
10919 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
10920 * config/frv/frv.c (frv_function_arg_advance): Likewise.
10921 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
10922 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
10923 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
10924 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
10925 (ix86_setup_incoming_varargs): Update call accordingly.
10926 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
10927 function_arg_info instead of a mode, type and named flag.
10928 (ia64_setup_incoming_varargs): Update call accordingly.
10929 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
10930 function_arg_info instead of a mode, type and named flag.
10931 (iq2000_expand_prologue): Update call accordingly.
10932 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
10933 function_arg_info instead of a mode, type and named flag.
10934 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
10935 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
10936 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
10937 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
10938 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
10940 (microblaze_expand_prologue): Update call accordingly.
10941 * config/mips/mips.c (mips_function_arg_advance): Take a
10942 function_arg_info instead of a mode, type and named flag.
10943 (mips_setup_incoming_varargs): Update call accordingly.
10944 (mips_output_args_xfer): Likewise.
10945 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
10946 function_arg_info instead of a mode, type and named flag.
10947 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
10948 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
10949 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
10950 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
10951 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
10952 (nios2_setup_incoming_varargs): Update call accordingly.
10953 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
10954 function_arg_info instead of a mode, type and named flag.
10955 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
10956 * config/pa/pa.c (pa_function_arg_advance): Likewise.
10957 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
10958 * config/pru/pru.c (pru_function_arg_advance): Likewise.
10959 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
10960 (riscv_setup_incoming_varargs): Update call accordingly.
10961 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
10962 function_arg_info instead of a mode, type and named flag.
10963 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
10965 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
10966 (rs6000_parm_needs_stack): Update call accordingly.
10967 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
10968 instead of a mode, type and named flag.
10969 * config/s390/s390.c (s390_function_arg_advance): Likewise.
10970 (s390_call_saved_register_used): Update call accordingly.
10971 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
10972 instead of a mode, type and named flag.
10973 (sh_output_mi_thunk): Update call accordingly.
10974 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
10975 function_arg_info instead of a mode, type and named flag.
10976 * config/spu/spu.c (spu_function_arg_advance): Likewise.
10977 (spu_setup_incoming_varargs): Update call accordingly.
10978 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
10979 function_arg_info instead of a mode, type and named flag.
10980 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
10981 (tilegx_setup_incoming_varargs): Update call accordingly.
10982 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
10983 function_arg_info instead of a mode, type and named flag.
10984 (tilegx_setup_incoming_varargs): Update call accordingly.
10985 * config/v850/v850.c (v850_function_arg_advance): Take a
10986 function_arg_info instead of a mode, type and named flag.
10987 * config/vax/vax.c (vax_function_arg_advance): Likewise.
10988 * config/visium/visium.c (visium_function_arg_advance): Likewise.
10989 (visium_setup_incoming_varargs): Update call accordingly.
10990 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
10991 function_arg_info instead of a mode, type and named flag.
10993 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
10995 * target.def (function_arg, function_incoming_arg): Take a
10996 function_arg_info instead of a mode, tree and named flag.
10997 * doc/tm.texi: Regenerate.
10998 * targhooks.h (default_function_arg): Take a function_arg_info
10999 instead of a mode, tree and named flag.
11000 (default_function_incoming_arg): Likewise.
11001 * targhooks.c (default_function_arg): Likewise.
11002 (default_function_incoming_arg): Likewise.
11003 * calls.h (function_arg_info::end_marker_p): New function.
11004 (function_arg_info::end_marker): Likewise.
11005 * calls.c (prepare_call_address, initialize_argument_information)
11006 (expand_call, emit_library_call_value_1): Update calls to
11007 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
11008 * dse.c: Include calls.h.
11009 (get_call_args): Update call to targetm.calls.function_arg.
11010 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11011 * var-tracking.c (prepare_call_arguments): Likewise.
11012 * function.c (assign_parm_find_entry_rtl): Update call to
11013 targetm.calls.function_incoming_arg.
11014 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
11015 function_arg_info instead of a mode, tree and named flag.
11016 * config/alpha/alpha.c (alpha_function_arg): Likewise.
11017 * config/arc/arc.c (arc_function_arg): Likewise.
11018 * config/arm/arm.c (arm_function_arg): Likewise.
11019 (cmse_func_args_or_return_in_stack): Update call accordingly.
11020 (arm_function_ok_for_sibcall): Likewise.
11021 (cmse_nonsecure_call_clear_caller_saved): Likewise.
11022 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
11023 instead of a mode, tree and named flag.
11024 * config/bfin/bfin.c (bfin_function_arg): Likewise.
11025 * config/c6x/c6x.c (c6x_function_arg): Likewise.
11026 (c6x_call_saved_register_used): Update call accordingly.
11027 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
11028 instead of a mode, tree and named flag.
11029 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
11030 (cris_function_arg_1): Likewise.
11031 * config/csky/csky.c (csky_function_arg): Likewise.
11032 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
11033 * config/fr30/fr30.c (fr30_function_arg): Likewise.
11034 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
11035 (frv_function_arg_1): Likewise.
11036 * config/ft32/ft32.c (ft32_function_arg): Likewise.
11037 * config/gcn/gcn.c (gcn_function_arg): Likewise.
11038 * config/h8300/h8300.c (h8300_function_arg): Likewise.
11039 * config/i386/i386.c (ix86_function_arg): Likewise.
11040 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
11041 (ia64_function_arg_1): Likewise.
11042 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
11043 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
11045 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
11046 instead of a mode, tree and named flag.
11047 * config/m32c/m32c.c (m32c_function_arg): Likewise.
11048 * config/m32r/m32r.c (m32r_function_arg): Likewise.
11049 * config/m68k/m68k.c (m68k_function_arg): Likewise.
11050 * config/mcore/mcore.c (mcore_function_arg): Likewise.
11051 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
11052 (microblaze_expand_prologue): Update call accordingly.
11053 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
11054 instead of a mode, tree and named flag.
11055 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
11056 (mmix_function_arg_1): Likewise.
11057 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
11058 * config/moxie/moxie.c (moxie_function_arg): Likewise.
11059 * config/msp430/msp430.c (msp430_function_arg): Likewise.
11060 * config/nds32/nds32.c (nds32_function_arg): Likewise.
11061 * config/nios2/nios2.c (nios2_function_arg): Likewise.
11062 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
11063 (nvptx_function_incoming_arg): Likewise.
11064 * config/or1k/or1k.c (or1k_function_arg): Likewise.
11065 * config/pa/pa.c (pa_function_arg): Likewise.
11066 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
11067 * config/pru/pru.c (pru_function_arg): Likewise.
11068 * config/riscv/riscv.c (riscv_function_arg): Likewise.
11069 * config/rl78/rl78.c (rl78_function_arg): Likewise.
11070 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
11071 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
11072 (rs6000_parm_needs_stack): Update call accordingly.
11073 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
11074 instead of a mode, tree and named flag.
11075 * config/s390/s390.c (s390_function_arg): Likewise.
11076 (s390_call_saved_register_used): Update call accordingly.
11077 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
11078 instead of a mode, tree and named flag.
11079 (sh_output_mi_thunk): Update call accordingly.
11080 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
11081 (sparc_function_incoming_arg): Take a function_arg_info instead of
11082 a mode, tree and named flag.
11083 * config/spu/spu.c (spu_function_arg): Likewise.
11084 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
11085 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
11086 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
11087 * config/v850/v850.c (v850_function_arg): Likewise.
11088 * config/vax/vax.c (vax_function_arg): Likewise.
11089 * config/visium/visium.c (visium_function_arg): Likewise.
11090 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
11091 (xtensa_function_incoming_arg): Likewise.
11093 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11095 * target.def (setup_incoming_varargs): Take a function_arg_info
11096 instead of a mode and tree.
11097 * doc/tm.texi: Regenerate.
11098 * targhooks.h (default_setup_incoming_varargs): Take a
11099 function_arg_info instead of a mode and tree.
11100 * targhooks.c (default_setup_incoming_varargs): Likewise.
11101 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
11102 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
11103 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
11104 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
11105 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
11106 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
11107 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
11108 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
11110 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
11111 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
11112 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
11113 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
11114 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
11115 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
11116 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11117 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11118 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
11119 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
11120 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
11121 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
11122 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
11123 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
11124 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
11125 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
11126 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
11127 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
11128 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
11129 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
11130 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
11131 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
11132 * function.c (assign_parms_setup_varargs): Update call to
11133 targetm.calls.setup_incoming_varargs.
11135 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11137 * target.def (pass_by_reference): Take a function_arg_info instead
11138 of a mode, type and named flag.
11139 * doc/tm.texi: Regenerate.
11140 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
11142 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
11143 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
11144 function_arg_info instead of a mode, type and named flag.
11145 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
11146 * calls.h (pass_by_reference): Take a function_arg_info instead of a
11147 mode, type and named flag.
11148 * calls.c (pass_by_reference): Likewise.
11149 (pass_va_arg_by_reference): Update call accordingly.
11150 (initialize_argument_information): Likewise.
11151 (emit_library_call_value_1): Likewise.
11152 * function.c (assign_parm_find_data_types): Likewise.
11153 * var-tracking.c (prepare_call_arguments): Likewise.
11154 * stor-layout.c: Include calls.h.
11155 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
11156 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
11157 function_arg_info instead of a mode, type and named flag.
11158 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
11159 * config/arc/arc.c (arc_pass_by_reference): Likewise.
11160 * config/arm/arm.c (arm_pass_by_reference): Likewise.
11161 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
11162 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
11163 (c6x_call_saved_register_used): Update call to pass_by_reference.
11164 * config/cris/cris.c (cris_pass_by_reference): Take a
11165 function_arg_info instead of a mode, type and named flag.
11166 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
11167 function_arg_info instead of a mode, type and named flag.
11168 (epiphany_arg_partial_bytes): Update call accordingly.
11169 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
11170 function_arg_info instead of a mode, type and named flag.
11171 (ft32_arg_partial_bytes): Update call accordingly.
11172 * config/i386/i386.c (ix86_pass_by_reference): Take a
11173 function_arg_info instead of a mode, type and named flag.
11174 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
11175 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
11176 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
11177 (m32r_return_in_memory): Update call accordingly.
11178 * config/mips/mips.c (mips_pass_by_reference): Take a
11179 function_arg_info instead of a mode, type and named flag.
11180 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
11181 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
11182 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
11183 (moxie_arg_partial_bytes): Update call accordingly.
11184 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
11185 function_arg_info instead of a mode, type and named flag.
11186 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
11187 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
11188 * config/pa/pa.c (pa_pass_by_reference): Likewise.
11189 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
11190 (riscv_return_in_memory): Update call accordingly.
11191 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
11192 function_arg_info instead of a mode, type and named flag.
11193 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
11194 (rs6000_parm_needs_stack): Update call to pass_by_reference.
11195 * config/s390/s390.c (s390_pass_by_reference): Take a
11196 function_arg_info instead of a mode, type and named flag.
11197 (s390_call_saved_register_used): Update call accordingly.
11198 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
11199 instead of a mode, type and named flag.
11200 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
11201 * config/spu/spu.c (spu_pass_by_reference): Likewise.
11202 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
11203 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
11204 * config/v850/v850.c (v850_pass_by_reference): Likewise.
11205 * config/visium/visium.c (visium_pass_by_reference): Likewise.
11207 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11209 * target.def (arg_partial_bytes): Take a function_arg_info instead
11210 of a mode, type and named flag.
11211 * doc/tm.texi: Regenerate.
11212 * target.h (function_arg_info): Declare.
11213 * calls.h (function_arg_info): New class.
11214 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
11215 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
11216 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
11217 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
11218 * calls.c (initialize_argument_information): Update call to
11219 targetm.calls.partial_bytes.
11220 (emit_library_call_value_1): Likewise.
11221 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11222 * function.c (assign_parm_find_entry_rtl): Likewise.
11223 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
11224 function_arg_info instead of a mode, type and named flag.
11225 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
11226 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
11227 (cmse_func_args_or_return_in_stack): Update accordingly.
11228 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
11229 function_arg_info instead of a mode, type and named flag.
11230 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
11231 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
11232 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
11233 * config/fr30/fr30.c: Include calls.h.
11234 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
11235 type and named flag.
11236 * config/frv/frv.c: Include calls.h.
11237 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
11238 type and named flag.
11239 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
11240 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
11241 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
11242 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
11243 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
11244 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
11245 * config/microblaze/microblaze.c (function_arg_partial_bytes):
11247 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
11248 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
11249 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
11250 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
11251 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
11252 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
11253 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
11254 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
11255 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
11256 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
11257 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
11258 (rs6000_parm_needs_stack): Update call accordingly.
11259 * config/sh/sh.c (sh_arg_partial_bytes): Take a
11260 function_arg_info instead of a mode, type and named flag.
11261 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
11262 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
11264 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11266 * calls.h (must_pass_va_arg_in_stack): Declare.
11267 * calls.c (must_pass_va_arg_in_stack): New function.
11268 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
11269 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
11270 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
11272 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
11274 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
11276 * calls.h (pass_va_arg_by_reference): Declare.
11277 * calls.c (pass_va_arg_by_reference): New function.
11278 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
11279 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
11280 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
11281 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
11282 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
11283 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
11284 (mips_gimplify_va_arg_expr): Likewise.
11285 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
11286 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
11287 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
11288 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
11289 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
11290 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
11291 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
11292 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
11293 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
11294 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
11295 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
11297 2019-08-20 Richard Biener <rguenther@suse.de>
11300 * config/i386/i386-features.c (general_scalar_chain::convert_op):
11301 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
11302 (convert_scalars_to_vector): Add timode_p parameter and use it
11303 to guard TImode-only operation.
11304 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
11305 (pass_stv::execute): Pass down timode_p.
11307 2019-08-20 Lili Cui <lili.cui@intel.com>
11309 * common/config/i386/i386-common.c
11310 (processor_names): Add tigerlake and cooperlake.
11311 (processor_alias_table): Add tigerlake and cooperlake.
11312 * config.gcc: Add -march=tigerlake and cooperlake.
11313 * config/i386/driver-i386.c
11314 (host_detect_local_cpu): Detect tigerlake and cooperlake.
11315 Add "has_avx" to classify processor.
11316 * config/i386/i386-builtins.c (processor_model) :
11317 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
11318 (arch_names_table): Add tigerlake and cooperlake.
11319 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
11320 and PROCESSOR_COOPERLAKE.
11321 * config/i386/i386-c.c
11322 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
11323 * config/i386/i386-options.c
11324 (m_TIGERLAKE): Define.
11325 (m_COOPERLAKE): Ditto.
11326 (m_CORE_AVX512): Ditto.
11327 (processor_cost_table): Add cascadelake.
11328 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
11329 * config/i386/i386.h
11330 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
11331 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
11332 (PTA_MOVDIRI): Ditto.
11333 (PTA_MOVDIR64B): Ditto.
11334 (PTA_COOPERLAKE): Ditto.
11335 (PTA_TIGERLAKE): Ditto.
11336 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
11337 * doc/extend.texi: Add tigerlake and cooperlake.
11338 * doc/invoke.texi: Add tigerlake and cooperlake.
11340 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
11342 * doc/install.texi (Specific, alpha): Remove note to use
11343 binutils 2.11.2 or later.
11345 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
11347 PR middle-end/89544
11348 * function.c (assign_parm_find_stack_rtl): Use larger alignment
11351 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
11353 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
11354 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
11355 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
11356 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
11357 * config/aarch64/constraints.md (Dt): New constraint
11358 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
11360 2019-08-19 Richard Biener <rguenther@suse.de>
11362 PR tree-optimization/91403
11363 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
11364 cases we can handle with tail-recursion...
11365 (follow_ssa_edge_expr): ... here. Do so.
11367 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
11370 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
11371 implemented for -fsanitize=kernel-address, and merge check logic
11372 with -fsanitize=address.
11374 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
11376 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
11377 for cpu and machine. Factor 64/32b builtins.
11379 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
11381 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
11382 gone, point to sourceforge.net.
11384 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
11386 * doc/ux.texi (User Experience Guidelines): Update reference.
11388 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
11390 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
11393 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
11395 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
11396 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
11398 2019-08-16 Martin Sebor <msebor@redhat.com>
11400 * tree.def (TYPE_SIZE): Clarify.
11401 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
11403 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
11405 PR tree-optimization/91109
11406 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
11407 * lra.c (lra): Use lra_need_for_scratch_reg_p.
11408 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
11410 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
11412 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
11413 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
11414 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
11415 (uavg<mode>3_ceil): New expander.
11416 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
11417 mode iterator when creating CONST1_RTX.
11418 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
11419 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
11420 mode iterator for const1_operand predicate.
11422 2019-08-16 Richard Biener <rguenther@suse.de>
11424 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
11425 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
11427 (follow_ssa_edge_in_condition_phi_branch): Likewise.
11428 (analyze_evolution_in_loop): Likewise.
11429 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
11430 (follow_ssa_edge_expr): ... here. Refactor code.
11432 2019-08-16 Richard Biener <rguenther@suse.de>
11435 * config/i386/i386-features.c
11436 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
11438 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11441 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
11442 only if subst_name matches curr_attr string.
11444 2019-08-16 Richard Biener <rguenther@suse.de>
11446 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
11447 stmt at gsi_p, instead replace it with a NOP removed later.
11448 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
11449 that became dead because of that.
11451 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
11453 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
11454 for which we can't represent a range.
11455 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
11457 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
11458 Set VR_UNDEFINED if type is not supported.
11459 * tree-ssanames.c (get_range_info): Pass type to set_varying.
11460 * tree-vrp.c (value_range_base::check): Assert that a varying has
11462 (value_range_base::equal_p): Early bail for undefines.
11463 (value_range_base::set_varying): Accept a type.
11464 (value_range::set_varying): Same.
11465 (value_range_base::type): VARYING can have a type, while UNDEFINE
11467 (value_range_base::dump): Print type for VARYING nodes.
11468 (value_range_base::set): Add type to VARYING.
11469 (extract_range_from_multiplicative_op): Pass type to set_varying.
11470 (extract_range_from_binary_expr): Same.
11471 (value_range_base::intersect_helper): Same.
11472 (value_range_base::union_helper): Same.
11473 (value_range_base::normalize_symbolics): Same.
11474 (determine_value_range_1): Same.
11475 * tree-vrp.h (class value_range_base): Add type to set_varying.
11476 Add prototype for dump(void).
11477 Add prototype for supports_type_p.
11478 (class value_range): Add type to set_varying.
11479 Add prototype for dump(void).
11480 * vr-values.c (set_value_range_to_truthvalue): Pass type to
11482 (vr_values::get_lattice_entry): Set varying even if propagation
11484 Pass type to set_varying.
11485 (vr_values::get_value_range): Remove vr_const_varying.
11486 Reallocate the lattice if needed.
11487 (vr_values::update_value_range): Pass type to set_varying.
11488 (vr_values::extract_range_for_var_from_comparison_expr): Same.
11489 (vr_values::extract_range_from_binary_expr): Same.
11490 (vr_values::extract_range_from_unary_expr): Same.
11491 (vr_values::extract_range_from_cond_expr): Same.
11492 (vr_values::check_for_binary_op_overflow): Same.
11493 (vr_values::extract_range_basic): Same.
11494 (vr_values::extract_range_from_assignment): Same.
11495 (vr_values::vr_values): Increase size of num_vr_values.
11496 (vr_values::extract_range_from_phi_node): Pass type to
11499 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
11502 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
11503 for costs of hard register moves.
11504 (ix86_register_move_cost): Likewise.
11505 * config/i386/i386.h (processor_costs): Move costs of hard
11506 register moves to hard_register. Add int_load, int_store,
11507 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
11508 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
11509 for costs of RTL expressions.
11510 * config/i386/x86-tune-costs.h: Move costs of hard register
11511 moves to hard_register. Duplicate int_load, int_store,
11512 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
11513 sse_load, sse_store for costs of RTL expressions.
11515 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11517 * target.def (setup_incoming_vararg_bounds): Remove.
11518 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
11519 * doc/tm.texi: Regenerate.
11520 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
11521 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
11522 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
11523 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
11525 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11527 MSP430: Fix lines over 80 characters long in
11528 config/msp430/*.{c,h} files
11530 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
11531 specifier in string.
11532 (msp430_select_hwmult_lib): Split line more than 80 characters long.
11533 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
11534 redundant old comment.
11535 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
11536 Split line more than 80 characters long.
11537 * config/msp430/msp430.c (msp430_option_override): Likewise.
11538 (msp430_return_in_memory): Likewise.
11539 (msp430_gimplify_va_arg_expr): Likewise.
11540 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
11541 (msp430_legitimate_constant): Likewise.
11542 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
11543 (msp430_attr): Likewise.
11544 (msp430_data_attr): Likewise.
11545 (msp430_start_function): Likewise.
11546 (gen_prefix): Likewise.
11547 (msp430_init_sections): Likewise.
11548 (msp430_select_section): Likewise.
11549 (msp430_function_section): Likewise.
11550 (msp430_unique_section): Likewise.
11551 (msp430_output_aligned_decl_common): Likewise.
11552 (msp430_do_not_relax_short_jumps): Likewise.
11553 (msp430_init_builtins): Likewise.
11554 (msp430_expand_delay_cycles): Likewise.
11555 (msp430_expand_prologue): Likewise.
11556 (msp430_expand_epilogue): Likewise.
11557 (msp430_expand_helper): Likewise.
11558 (msp430_split_movsi): Likewise.
11559 (msp430_print_operand): Likewise.
11560 (msp430_return_addr_rtx): Likewise.
11561 (msp430x_extendhisi): Likewise.
11562 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
11563 (ASM_SPEC): Likewise.
11564 Remove very obvious comments.
11565 (LIB_SPEC): Split line more than 80 characters long.
11566 (EH_RETURN_HANDLER_RTX): Likewise.
11567 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11569 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11571 MSP430: Fix whitespace errors and incorrect indentation in
11572 config/msp430/*.{c,h} files
11574 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
11575 (msp430_select_hwmult_lib): Likewise.
11576 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
11577 (msp430_extract_mcu_data): Likewise.
11578 (struct t_msp430_mcu_data): Likewise.
11579 * config/msp430/msp430.c (struct machine_function): Remove whitespace
11580 before left square bracket.
11581 (msp430_option_override): Fix indentation.
11582 (msp430_hard_regno_nregs_with_padding): Likewise.
11583 (msp430_initial_elimination_offset): Likewise.
11584 (msp430_special_register_convention_p): Remove whitespace before left
11585 square bracket and after exclamation mark.
11586 (msp430_evaluate_arg): Likewise.
11587 (msp430_callee_copies): Fix indentation.
11588 (msp430_gimplify_va_arg_expr): Likewise.
11589 (msp430_function_arg_advance): Remove whitespace before left square
11591 (reg_ok_for_addr): Likewise.
11592 (msp430_preserve_reg_p): Likewise.
11593 (msp430_compute_frame_info): Likewise.
11594 (msp430_asm_output_addr_const_extra): Add space between function name
11595 and open parenthesis.
11596 (has_section_name): Fix indentation.
11597 (msp430_attr): Remove trailing whitespace.
11598 (msp430_section_attr): Likewise.
11599 (msp430_data_attr): Likewise.
11600 (struct msp430_attribute_table): Fix comment and whitespace.
11601 (msp430_start_function): Remove whitespace before left square bracket.
11602 Add space between function name and open parenthesis.
11603 (msp430_select_section): Remove trailing whitespace.
11604 (msp430_section_type_flags): Remove trailing whitespace.
11605 (msp430_unique_section): Remove space before closing parenthesis.
11606 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
11607 (msp430_builtins): Remove whitespace before left square bracket.
11608 (msp430_init_builtins): Fix indentation.
11609 (msp430_expand_prologue): Remove whitespace before left square bracket.
11610 Remove space before closing parenthesis.
11611 (msp430_expand_epilogue): Remove whitespace before left square bracket.
11612 (msp430_split_movsi): Remove space before closing parenthesis.
11613 (helper_function_name_mappings): Fix indentation.
11614 (msp430_use_f5_series_hwmult): Fix whitespace.
11615 (use_32bit_hwmult): Likewise.
11616 (msp430_no_hwmult): Likewise.
11617 (msp430_output_labelref): Remove whitespace before left square bracket.
11618 (msp430_print_operand_raw): Likewise.
11619 (msp430_print_operand_addr): Likewise.
11620 (msp430_print_operand): Add two spaces after '.' in comment.
11621 Fix trailing whitespace.
11622 (msp430x_extendhisi): Fix indentation.
11623 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
11625 (PC_REGNUM): Likewise.
11626 (STACK_POINTER_REGNUM): Likewise.
11627 (CC_REGNUM): Likewise.
11629 2019-08-15 Richard Biener <rguenther@suse.de>
11632 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
11634 (general_scalar_chain::make_vector_copies): Use it.
11636 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
11638 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
11640 2019-08-15 Martin Liska <mliska@suse.cz>
11642 * tree-ssa-dce.c (propagate_necessity): We can't reach now
11643 operators with no arguments.
11644 (eliminate_unnecessary_stmts): Likewise here.
11646 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
11648 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
11649 <case COMPARE>: Revert 2019-08-14 change.
11650 (convertible_comparison_p): Revert 2019-08-14 change. Return false
11651 for (TARGET_64BIT || mode != DImode).
11653 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
11655 * tree-vrp.c (value_range_base::set): Merge in code from
11656 value_range_base::set_and_canonicalize.
11657 Enforce canonicalization at set time.
11658 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
11659 (value_range_base::set_undefined): Inline call to set().
11660 (value_range_base::set_varying): Same.
11661 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
11662 (vrp_val_max): New argument handle_pointers.
11663 (vrp_val_min): Same.
11664 (ranges_from_anti_range): Same.
11665 (extract_range_into_wide_ints): Use tree argument instead of sign
11667 (extract_range_from_multiplicative_op): Take in tree type instead
11668 of precision and sign. Adapt function for canonicalized ranges.
11669 (extract_range_from_binary_expr): Pass type to
11670 extract_range_from_multiplicative_op.
11671 Adapt for canonicalized ranges.
11672 (extract_range_from_unary_expr): Same.
11673 (value_range_base::intersect_helper): Adjust for canonicalized
11675 (value_range_base::union_helper): Same.
11676 (value_range_base::normalize_symbolics): New.
11677 * tree-vrp.h (class value_range_base): Remove
11678 set_and_canonicalize.
11679 New prototype for normalize_symbolics.
11680 (class value_range): Remove set_and_canonicalize.
11681 (vrp_val_min): Adjust prototype.
11682 (vrp_val_max): Same.
11684 (vr_values::extract_range_for_var_from_comparison_expr): Call set
11685 instead of set_and_canonicalize.
11687 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11689 PR middle-end/91444
11690 * tree-vect-stmts.c (vectorizable_call): Check that the function
11691 is a BUILT_IN_MD function before passing it to
11692 targetm.vectorize.builtin_md_vectorized_function.
11694 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11696 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
11697 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
11698 (aarch64_select_early_remat_modes): Use it.
11700 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11702 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
11703 16 for SVE predicates even if they are fixed-length.
11705 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11707 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
11708 operand order match the MOV /Z alias.
11710 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11712 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
11713 the vector pattern as an aarch64_svpattern argument. Update the
11714 overloaded caller accordingly.
11715 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
11716 (aarch64_output_sve_vector_inc_dec): Likewise.
11718 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11720 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
11721 multiplication case, try to compute VG * (lowest set bit) directly
11722 rather than always basing the multiplication on VG. Use
11723 expand_mult for the multiplication if we can.
11725 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11727 * config/aarch64/aarch64-protos.h
11728 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
11729 (aarch64_sve_inc_dec_immediate_p): Rename to...
11730 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
11731 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
11732 (aarch64_output_sve_scalar_inc_dec): Declare.
11733 (aarch64_output_sve_inc_dec_immediate): Rename to...
11734 (aarch64_output_sve_vector_inc_dec): ...this.
11735 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
11736 (aarch64_output_sve_scalar_inc_dec): New functions.
11737 (aarch64_output_sve_addvl_addpl): Remove the base and offset
11738 arguments. Only handle true ADDVL and ADDPL instructions;
11739 don't emit an INC or DEC.
11740 (aarch64_sve_inc_dec_immediate_p): Rename to...
11741 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
11742 (aarch64_output_sve_inc_dec_immediate): Rename to...
11743 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
11744 aarch64_sve_vector_inc_dec_immediate_p.
11745 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
11746 (aarch64_sve_plus_immediate): New predicates.
11747 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
11748 rather than aarch64_sve_addvl_addpl_immediate.
11749 (aarch64_sve_inc_dec_immediate): Rename to...
11750 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
11751 aarch64_sve_vector_inc_dec_immediate_p.
11752 (aarch64_sve_add_operand): Update accordingly.
11753 * config/aarch64/constraints.md (Uai): New constraint.
11754 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
11755 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
11756 operand into a register if it satisfies aarch64_sve_plus_immediate.
11757 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
11758 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
11759 * config/aarch64/aarch64-sve.md (add<mode>3): Call
11760 aarch64_output_sve_vector_inc_dec instead of
11761 aarch64_output_sve_inc_dec_immediate.
11763 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11765 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
11766 (UNSPEC_REVW): New constants.
11767 (elem_bits): New mode attribute.
11768 (SVE_INT_UNARY): New int iterator.
11769 (optab): Handle UNSPEC_REV[BHW].
11770 (sve_int_op): New int attribute.
11771 (min_elem_bits): Handle VNx16QI and the predicate modes.
11772 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
11773 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
11774 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
11775 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
11776 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
11777 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
11778 unspecs based on the total width of the reversed data.
11779 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
11780 reinterpret followed by a subreg on big-endian targets.
11782 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11783 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
11785 * config/aarch64/aarch64-sve.md
11786 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
11787 alternatives in which one of the inputs is in the same register
11790 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11792 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
11793 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
11795 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11797 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
11798 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
11800 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11801 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
11803 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
11804 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
11805 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
11807 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11808 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11810 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
11811 Add an alternative that uses reversed shifts.
11813 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11815 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
11818 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11820 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
11821 a commutativity marker.
11823 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11824 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
11826 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
11827 (aarch64_prepare_sve_cond_int_fma): Declare.
11828 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
11829 (aarch64_prepare_sve_int_fma): New functions.
11830 (aarch64_prepare_sve_cond_int_fma): Likewise.
11831 * config/aarch64/aarch64-sve.md
11832 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
11833 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
11834 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
11835 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
11836 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
11837 (*madd<mode>): Rename to...
11838 (*fma<mode>4): ...this.
11839 (*msub<mode>): Rename to...
11840 (*fnma<mode>4): ...this.
11842 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11843 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
11845 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
11846 Print 2.0 naturally.
11847 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
11848 * config/aarch64/predicates.md
11849 (aarch64_sve_float_negated_arith_immediate): New predicate,
11850 renamed from aarch64_sve_float_arith_with_sub_immediate.
11851 (aarch64_sve_float_arith_with_sub_immediate): Test for both
11852 positive and negative constants.
11853 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
11854 or an aarch64_sve_float_arith_with_sub_immediate.
11855 * config/aarch64/constraints.md (vsN): Use
11856 aarch64_sve_float_negated_arith_immediate.
11857 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
11859 (sve_pred_fp_rhs2_immediate): New int attribute.
11860 * config/aarch64/aarch64-sve.md
11861 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
11862 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
11863 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
11864 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
11865 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
11866 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
11868 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11869 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
11871 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
11872 (*aarch64_cond_abd<SVE_F:mode>_3)
11873 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
11875 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11876 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
11878 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
11879 (*aarch64_cond_<su>abd<mode>_any): New patterns.
11881 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
11882 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11884 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
11885 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
11886 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
11887 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
11889 * optabs.h (create_convert_operand_from): Expand comment.
11890 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
11891 when mapping scalar rtxes to vector operands.
11892 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
11893 ashiftrt and lshiftrt.
11894 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
11895 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
11896 (*cond_<optab><mode>_any_const): New patterns.
11898 2019-08-15 Martin Liska <mliska@suse.cz>
11901 * cgraph.c (cgraph_node::remove): When setting
11902 n->origin = NULL for all nested functions, reset
11905 2019-08-15 Martin Liska <mliska@suse.cz>
11907 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
11910 2019-08-15 Martin Liska <mliska@suse.cz>
11913 * passes.c (order): Remove.
11914 (uid_hash_t): Likewise).
11915 (remove_cgraph_node_from_order): Remove from set
11916 of pointers (cgraph_node *).
11917 (insert_cgraph_node_to_order): New.
11918 (duplicate_cgraph_node_to_order): New.
11919 (do_per_function_toporder): Register all 3 cgraph hooks.
11920 Skip removed_nodes now as we know about all of them.
11922 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
11924 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
11925 <case E_V8QImode>: Use vector_set path for
11926 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
11927 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
11928 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
11930 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11932 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
11934 2019-08-14 Martin Sebor <msebor@redhat.com>
11936 PR tree-optimization/91294
11937 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
11938 source length as exact.
11940 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
11942 * doc/extend.texi: Add "noinit" attribute documentation.
11943 * doc/sourcebuild.texi: Add noinit effective target documentation.
11944 * varasm.c (default_section_type_flags): Add support for "noinit"
11946 (default_elf_select_section): Add support for "noinit" attribute.
11947 * config/msp430/msp430.c (msp430_attribute_table): Remove
11950 2019-08-14 Richard Biener <rguenther@suse.de>
11951 Uroš Bizjak <ubizjak@gmail.com>
11954 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
11956 (scalar_chain::smode): New member.
11957 (scalar_chain::vmode): Likewise.
11958 (dimode_scalar_chain): Rename to...
11959 (general_scalar_chain): ... this.
11960 (general_scalar_chain::general_scalar_chain): Take mode arguments.
11961 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
11962 base with TImode and V1TImode.
11963 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
11964 (general_scalar_chain::vector_const_cost): Adjust for SImode
11966 (general_scalar_chain::compute_convert_gain): Likewise. Add
11967 {S,U}{MIN,MAX} support.
11968 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
11969 (general_scalar_chain::make_vector_copies): Likewise. Handle
11970 non-DImode chains appropriately.
11971 (general_scalar_chain::convert_reg): Likewise.
11972 (general_scalar_chain::convert_op): Likewise.
11973 (general_scalar_chain::convert_insn): Likewise. Add
11974 fatal_insn_not_found if the result is not recognized.
11975 (convertible_comparison_p): Pass in the scalar mode and use that.
11976 (general_scalar_to_vector_candidate_p): Likewise. Rename from
11977 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
11978 (scalar_to_vector_candidate_p): Remove by inlining into single
11980 (general_remove_non_convertible_regs): Rename from
11981 dimode_remove_non_convertible_regs.
11982 (remove_non_convertible_regs): Remove by inlining into single caller.
11983 (convert_scalars_to_vector): Handle SImode and DImode chains
11984 in addition to TImode chains.
11985 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
11986 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
11987 (*<maxmin>di3_doubleword): Likewise.
11989 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
11990 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
11992 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
11993 (*cond_bic<mode>_any): New patterns.
11995 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
11997 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
11998 take the equivalent mask, as well as a bit count.
11999 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
12000 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
12001 (aarch64_sve_pred_and_operand): New predicates.
12002 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
12004 * config/aarch64/aarch64-sve.md
12005 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
12006 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
12008 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12010 * config/aarch64/aarch64-sve.md
12011 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
12012 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
12015 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12016 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12018 * config/aarch64/aarch64-sve.md
12019 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
12020 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
12022 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12023 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12025 * config/aarch64/aarch64-sve.md
12026 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
12027 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
12029 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12031 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
12032 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
12035 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12036 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12038 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
12040 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12041 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12043 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
12044 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
12045 (aarch64_print_operand): Add support for %I.
12046 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
12047 Bitcast floating-point constants to the corresponding integer constant.
12048 (aarch64_float_const_representable_p): Handle vectors as well
12050 (aarch64_expand_sve_vcond): Make sure that the operands are valid
12051 for the new vcond_mask_<mode><vpred> expander.
12052 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
12053 test aarch64_float_const_representable_p.
12054 (aarch64_sve_reg_or_dup_imm): New predicate.
12055 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
12056 gen_vcond_mask_<mode><vpred> instead of
12057 gen_aarch64_sve_dup<mode>_const.
12058 (vcond_mask_<mode><vpred>): Turn into a define_expand that
12059 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
12060 for operands 1 and 2 respectively. Force operand 2 into a
12061 register if operand 1 is a register. Fold old define_insn...
12062 (aarch64_sve_dup<mode>_const): ...and this define_insn...
12063 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
12064 floating-point constants that can be moved as integers. Add
12065 alternatives for MOV /M and FMOV /M.
12066 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
12067 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
12068 1 and 2 respectively.
12069 * config/aarch64/constraints.md (Ufc): Handle vectors as well
12071 (vss): New constraint.
12073 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12075 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
12076 (aarch64_sve_float_maxmin_operand): New predicates.
12077 * config/aarch64/constraints.md (vsB): New constraint.
12079 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
12080 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
12081 UNSPEC_COND_FMINNM.
12082 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
12083 Use aarch64_sve_float_maxmin_operand for operand 2.
12084 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
12085 Add alternatives for the constant forms.
12087 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12089 * config/aarch64/constraints.md (vsb): New constraint.
12090 (vsm): Generalize description.
12091 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
12093 (sve_imm_con): Handle smax, smin, umax and umin.
12094 (sve_imm_prefix): New code attribute.
12095 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
12096 (aarch64_sve_vsb_operand): New predicates.
12097 (aarch64_sve_mul_immediate): Rename to...
12098 (aarch64_sve_vsm_immediate): ...this.
12099 (aarch64_sve_mul_operand): Rename to...
12100 (aarch64_sve_vsm_operand): ...this.
12101 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
12102 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
12103 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
12104 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
12105 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
12106 add movprfx support for the immediate alternatives.
12107 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
12109 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
12112 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12114 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
12115 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
12116 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
12118 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12120 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
12121 (optab, sve_int_op): Handle them.
12122 * config/aarch64/aarch64-sve.md: Expand comment.
12124 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12126 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
12127 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
12128 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
12130 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12132 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
12133 (aarch64_expand_sve_const_pred_trn): New functions.
12134 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
12135 use the above functions when the parameter is true.
12136 (aarch64_expand_sve_const_pred): Update call accordingly.
12137 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
12139 (@aarch64_sve_<perm_insn><mode>): ...this.
12141 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12143 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
12145 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
12146 (aarch64_sve_emit_int_cmp): New functions.
12147 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
12148 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
12149 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
12150 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
12151 (UNSPEC_PRED_Z): New unspec.
12152 (set_clobber_cc_nzc): Delete.
12153 * config/aarch64/aarch64-sve.md: Add a block comment about
12155 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
12156 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
12157 the old pattern with that name. Use UNSPEC_PRED_Z instead of
12158 UNSPEC_MERGE_PTRUE.
12159 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
12160 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
12161 check for compatible predicates.
12162 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
12163 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
12164 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
12167 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12169 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
12170 * config/aarch64/aarch64-sve.md: Add a section describing it.
12171 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
12172 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
12173 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
12174 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
12175 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
12176 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
12177 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
12178 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
12179 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
12180 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
12181 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
12182 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
12183 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
12184 (aarch64_evpc_rev_local): Update accordingly.
12186 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12188 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
12190 (SVE_BHSI, SVE_SDI): Tweak comment.
12191 (SVE_HSDI): Likewise. Fix definition.
12192 (SVE_SDF): New mode iterator.
12193 (elem_bits): New mode attribute.
12194 (SVE_COND_FCVT): New int iterator.
12195 * config/aarch64/aarch64-sve.md
12196 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
12197 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
12198 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
12199 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
12200 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
12201 ...these new patterns.
12202 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
12203 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
12204 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
12206 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
12207 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
12208 ...these new patterns.
12209 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
12210 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
12211 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
12212 ...this new pattern.
12213 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
12214 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
12215 ...this new pattern.
12216 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
12218 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12220 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
12221 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
12222 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
12224 (optab, su): Handle them.
12225 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
12226 * config/aarch64/aarch64-sve.md
12227 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
12228 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
12229 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
12230 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
12231 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
12232 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
12233 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
12234 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
12235 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
12237 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
12238 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
12239 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
12240 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
12241 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
12242 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
12243 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
12244 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
12245 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
12246 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
12247 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
12248 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
12249 of UNSPEC_FLOAT_CONVERT.
12250 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
12251 aarch64_sve_extend<mode><Vwide>2.
12253 2019-08-14 Richard Biener <rguenther@suse.de>
12256 * config/i386/i386-features.c
12257 (dimode_scalar_chain::compute_convert_gain): Compute and dump
12258 individual instruction gain. Fix reg-reg copy GRP cost. Use
12259 ix86_cost->sse_op for vector instruction costs.
12261 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12263 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
12264 (cmp_op): Handle it.
12265 (SVE_COND_FP_CMP): Rename to...
12266 (SVE_COND_FP_CMP_I0): ...this.
12267 (SVE_FP_CMP): Remove.
12268 * config/aarch64/aarch64-sve.md
12269 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
12270 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
12271 using unspecs to represent the comparison.
12272 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
12273 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
12275 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
12276 (aarch64_unspec_cond_code): Move after integer code. Handle
12278 (aarch64_emit_sve_predicated_cond): Replace with...
12279 (aarch64_emit_sve_fp_cond): ...this new function.
12280 (aarch64_emit_sve_or_conds): Replace with...
12281 (aarch64_emit_sve_or_fp_conds): ...this new function.
12282 (aarch64_emit_sve_inverted_cond): Replace with...
12283 (aarch64_emit_sve_invert_fp_cond): ...this new function.
12284 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
12286 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12288 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
12289 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
12290 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
12291 SVE_HSD instead of SVE_SD.
12293 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12294 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12296 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
12298 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
12300 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
12301 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
12302 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
12303 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
12304 (*div<SVE_F:mode>3): Generalize to...
12305 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
12307 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12308 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12310 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
12312 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
12314 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
12316 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
12318 * config/aarch64/aarch64-sve.md: Add a block comment about the
12319 handling of predicated FP operations.
12320 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
12321 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
12322 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
12323 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
12324 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
12326 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
12327 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
12329 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
12330 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
12331 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
12332 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
12333 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
12334 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
12335 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
12336 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
12337 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
12338 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
12339 strictness operands. Use aarch64_sve_pred_dominates_p to check
12340 whether the predicate on the conditional operation is suitable
12341 for merging. Split patterns into the canonical equal-predicate form.
12342 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
12343 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
12345 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12346 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12348 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
12349 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
12350 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
12352 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
12353 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
12356 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12357 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12359 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
12360 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
12361 actually has, rather than relying on REG_EQUAL notes.
12362 Make the insn operand order match the SVE operand order.
12363 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
12364 the SVE operand order.
12366 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12368 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
12369 (aarch64_emit_set_immediate): Likewise.
12370 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
12371 (aarch64_pfalse_reg): Likewise.
12372 (aarch64_convert_sve_data_to_pred): New function.
12373 (aarch64_sve_move_pred_via_while): Take an optional target register
12374 and the required register mode.
12375 (aarch64_expand_sve_const_pred_1): New function.
12376 (aarch64_expand_sve_const_pred): Likewise.
12377 (aarch64_expand_mov_immediate): Build an all-true predicate
12378 if the significant bits of the immediate are all true. Use
12379 aarch64_expand_sve_const_pred for all compile-time predicate constants.
12380 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
12381 before register allocation.
12382 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
12383 a VNx16BI PTRUE when splitting the memory alternative.
12384 (vec_duplicate<mode>): Update accordingly.
12385 (*pred_cmp<cmp_op><mode>): Rename to...
12386 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
12388 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
12390 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
12391 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
12392 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
12393 (UNSPEC_PTEST): New unspec.
12394 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
12395 * config/aarch64/iterators.md (data_bytes): New mode attribute.
12396 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
12397 * config/aarch64/aarch64-sve.md: Add a new section describing the
12398 handling of UNSPEC_PTEST.
12399 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
12400 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
12401 (ptest_ptrue<mode>): Replace with...
12402 (aarch64_ptest<mode>): ...this new pattern.
12403 (cbranch<mode>4): Update after above changes.
12404 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
12405 UNSPEC_PTEST_PTRUE.
12406 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
12407 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
12408 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
12410 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
12413 * builtins.c (builtin_with_linkage_p): New function.
12414 * builtins.h (builtin_with_linkage_p): New function.
12415 * symtab.c (write_symbol): Remove redundant assert.
12416 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
12417 Remove FIXME and use builtin_with_linkage_p.
12419 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
12421 PR middle-end/91421
12422 * tree-core.h (function_decl::function_code): Change type to
12424 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
12425 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
12426 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
12427 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
12428 is BUILT_IN_NORMAL.
12429 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
12430 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
12431 (fndecl_built_in_p): Change the type of the "name" argument to
12433 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
12434 after check for DECL_BUILT_IN_CLASS.
12435 * cgraphclones.c (build_function_decl_skip_args): Use
12436 set_decl_built_in_function.
12437 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
12438 * ipa-split.c (split_function): Likewise.
12439 * langhooks.c (add_builtin_function_common): Likewise.
12440 * omp-simd-clone.c (simd_clone_create): Likewise.
12441 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
12442 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
12443 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
12444 DECL_FUNCTION_CODE.
12445 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
12446 instead of DECL_FUNCTION_CODE.
12447 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
12448 instead of DECL_FUNCTION_CODE.
12449 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
12450 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
12451 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
12452 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
12453 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
12454 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
12455 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
12456 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
12457 (alpha_gimple_fold_builtin): Likewise.
12458 * config/arc/arc.c (arc_expand_builtin): Likewise.
12459 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
12460 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
12461 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
12462 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
12463 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
12464 * config/frv/frv.c (frv_expand_builtin): Likewise.
12465 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
12466 (gcn_expand_builtin): Likewise.
12467 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
12468 (fold_builtin_cpu): Likewise.
12469 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
12470 * config/i386/i386.c (ix86_fold_builtin): Likewise.
12471 (ix86_gimple_fold_builtin): Likewise.
12472 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
12473 (ia64_expand_builtin): Likewise.
12474 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
12475 * config/mips/mips.c (mips_expand_builtin): Likewise.
12476 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
12477 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
12478 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
12479 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
12480 * config/pa/pa.c (pa_expand_builtin): Likewise.
12481 * config/pru/pru.c (pru_expand_builtin): Likewise.
12482 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
12483 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12485 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
12486 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
12487 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
12488 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
12489 (rs6000_builtin_reciprocal): Likewise.
12490 * config/rx/rx.c (rx_expand_builtin): Likewise.
12491 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
12492 * config/s390/s390.c (s390_expand_builtin): Likewise.
12493 * config/sh/sh.c (sh_expand_builtin): Likewise.
12494 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
12495 (sparc_fold_builtin): Likewise.
12496 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
12497 * config/spu/spu.c (spu_expand_builtin): Likewise.
12498 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
12499 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
12500 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
12501 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
12502 (xtensa_expand_builtin): Likewise.
12504 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
12506 PR middle-end/91421
12507 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
12508 before the DECL_FUNCTION_CODE.
12509 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
12510 to check for a BUILT_IN_ALLOCA call.
12511 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
12512 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
12513 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
12514 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
12515 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
12516 for BUILT_IN_NORMAL functions.
12517 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
12518 test for BUILT_IN_TM_ABORT.
12519 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
12520 to check for a BUILT_IN_STACK_RESTORE call.
12521 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
12522 * tree-ssa-threadedge.c
12523 (record_temporary_equivalences_from_stmts_at_dest): Check for a
12524 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
12525 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
12526 test for a BUILT_IN_NORMAL call instead of a negative test for
12527 an internal function call.
12529 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
12531 * tree.h (build_vector_a_then_b): Declare.
12532 * tree.c (build_vector_a_then_b): New function.
12533 * fold-const-call.c (fold_while_ult): Likewise.
12534 (fold_const_call): Use it to handle IFN_WHILE_ULT.
12535 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
12536 (aarch64_svpattern): New enum.
12537 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
12538 constants through aarch64_expand_mov_immediate.
12539 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
12540 than general_operand as the predicate for operand 1.
12541 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
12542 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
12544 (simd_immediate_info::simd_immediate_info): New overload that
12545 takes a scalar_int_mode and an svpattern.
12546 (simd_immediate_info::u): Add a "pattern" field.
12547 (svpattern_token): New function.
12548 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
12549 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
12550 (aarch64_sve_move_pred_via_while): New functions.
12551 (aarch64_expand_mov_immediate): Try using
12552 aarch64_sve_move_pred_via_while for predicates that contain N ones
12553 followed by M zeros but that do not correspond to a VLnnn pattern.
12554 (aarch64_sve_pred_valid_immediate): New function.
12555 (aarch64_simd_valid_immediate): Use it instead of dealing directly
12556 with PTRUE and PFALSE.
12557 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
12560 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
12562 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
12564 (darwin_override_options): Likewise.
12565 * config/darwin.h: Likewise.
12566 * config/darwin.opt: Likewise.
12567 * config/i386/i386.c (output_pic_addr_const): Likewise.
12568 * config/rs6000/darwin.h: Likewise.
12569 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
12570 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
12571 ... this TARGET_MACHO_SYMBOL_STUBS.
12572 (FUNCTION_PROFILER):Likewise.
12573 * config/i386/i386.h: Likewise.
12575 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
12577 * config/i386/i386-expand.c (ix86_expand_vector_extract)
12578 <case E_V2SImode>: Use vec_extr path for
12579 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
12580 <case E_V8QImode>: Ditto.
12581 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
12582 Use SWI48 mode iterator. Use %k to output operand 0.
12583 (*mmx_pextrw): New insn pattern.
12584 (*mmx_pextrb): Ditto.
12585 (*mmx_pextrb_zext): Ditto.
12587 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
12589 * target.def (libc_has_function, libc_has_fast_function): Improve
12590 documentation strings.
12591 * doc/tm.texi: Regenerate.
12593 2019-08-13 Caroline Tice <cmtice@google.com>
12596 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
12597 vtv_end.o or vtv_end_preinit.o files if !static.
12599 2019-08-13 Olivier Hainque <hainque@adacore.com>
12601 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
12603 2019-08-13 Olivier Hainque <hainque@adacore.com>
12605 * rtlanal.c (tablejump_casesi_pattern): New function, to
12606 determine if a tablejump insn is a casesi dispatcher. Extracted
12607 from patch_jump_insn.
12608 * rtl.h (tablejump_casesi_pattern): Declare.
12609 * cfgrtl.c (patch_jump_insn): Use it.
12610 * dwarf2cfi.c (create_trace_edges): Use it.
12612 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
12615 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
12616 operand is larger than a long int.
12618 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
12620 * machmode.h (opt_mode::else_mode): New function.
12621 (opt_mode::else_blk): Use it.
12622 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
12623 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
12624 (aarch64_gen_stepped_int_parallel): Likewise.
12625 (aarch64_stepped_int_parallel_p): Likewise.
12626 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
12628 * config/aarch64/aarch64.c
12629 (aarch64_expand_sve_widened_duplicate): Delete.
12630 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
12631 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
12632 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
12633 argument. Use early returns in the !CONST_INT_P handling.
12634 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
12635 than handling some inline.
12636 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
12638 (aarch64_simd_container_mode): ...here.
12639 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
12640 (aarch64_sve_ld1rq_operand_p): New functions.
12641 * config/aarch64/predicates.md (descending_int_parallel)
12642 (aarch64_sve_ld1rq_operand): New predicates.
12643 * config/aarch64/constraints.md (UtQ): New constraint.
12644 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
12645 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
12646 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
12647 (@aarch64_sve_reinterpret<mode>): New expander.
12648 (*aarch64_sve_reinterpret<mode>): New pattern.
12649 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
12650 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
12651 (*sve_ld1rq<Vesize>): Replace with...
12652 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
12654 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
12656 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
12659 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12661 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
12662 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
12663 (msp430_check_path_for_devices): New.
12664 (parse_devices_csv_1): New.
12665 (parse_devices_csv): New.
12666 (msp430_extract_mcu_data): Try to find devices.csv and search for the
12667 MCU data in devices.csv before using the hard-coded data.
12668 Warn if devices.csv isn't found and the MCU wasn't found in the
12669 hard-coded data either.
12670 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
12671 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
12672 Search for devices.csv on -I and -L paths.
12673 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
12674 msp430_set_driver_var.
12675 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
12676 -mdevices-csv-loc=.
12677 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
12678 searched for devices.csv.
12679 (mwarn-devices-csv): Document option.
12681 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
12683 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
12684 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
12685 Use a single Dn alternative instead of separate Dz and Dm
12686 alternatives. Use aarch64_output_sve_move_immediate.
12687 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
12689 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
12690 for predicates too.
12691 (aarch64_output_sve_mov_immediate): Handle predicate modes.
12692 (aarch64_output_ptrue): Delete.
12694 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
12696 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
12698 (simd_immediate_info::value, simd_immediate_info::step)
12699 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
12701 (simd_immediate_info::u): ...this new union.
12702 (simd_immediate_info::simd_immediate_info): Update accordingly.
12703 (aarch64_output_simd_mov_immediate): Likewise.
12704 (aarch64_output_sve_mov_immediate): Likewise.
12706 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12708 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
12710 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
12711 (msp430_select_cpu): New spec function.
12712 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
12714 * config/msp430/msp430-devices.c: New file.
12715 * config/msp430/msp430-devices.h: New file.
12716 * config/msp430/msp430.c: Remove msp430_mcu_data.
12717 (msp430_option_override): Use msp430_extract_mcu_data to extract
12719 (msp430_use_f5_series_hwmult): Likewise.
12720 (use_32bit_hwmult): Likewise.
12721 (msp430_no_hwmult): Likewise.
12722 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
12724 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
12726 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
12727 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
12728 Remove hard-coded MCU multilib data.
12730 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
12732 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
12733 based on the mode instead of testing properties of it.
12735 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
12737 * doc/md.texi: Document the x and y constraints for AArch64.
12738 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
12739 (FP_LO8_REGS): New reg_class.
12740 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
12741 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
12742 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
12743 * config/aarch64/predicates.md (aarch64_simd_register): Use
12744 FP_REGNUM_P instead of checking the classes manually.
12745 * config/aarch64/constraints.md (y): New constraint.
12747 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
12749 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
12750 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
12751 * config/aarch64/aarch64-simd.md
12752 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
12753 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
12754 from the asm template.
12755 * config/aarch64/aarch64-sve.md
12756 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
12757 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
12758 from the asm template.
12759 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
12760 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
12761 from the asm template.
12762 * config/aarch64/aarch64-simd-builtins.def: Update comment.
12764 2019-08-13 Martin Liska <mliska@suse.cz>
12766 * value-prof.c (gimple_ic_transform): Add new line.
12767 Print details with MSG_NOTE.
12769 2019-08-13 Martin Liska <mliska@suse.cz>
12771 * doc/invoke.texi: Document automatic detection of jobserver.
12772 * lto-wrapper.c (run_gcc): Detect jobserver always.
12774 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
12776 * config/i386/i386-expand.c (ix86_expand_vector_set)
12777 <case E_V2SImode>: Use vec_merge path for
12778 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
12779 <case E_V8QImode>: Ditto.
12780 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
12781 (*mmx_pinsrb): Ditto.
12783 2019-08-12 Jakub Jelinek <jakub@redhat.com>
12787 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
12788 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
12789 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
12790 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
12791 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
12793 2019-08-12 Richard Biener <rguenther@suse.de>
12796 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
12799 2019-08-12 Richard Biener <rguenther@suse.de>
12802 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
12803 lang_mask option, always use CL_DRIVER.
12804 (get_options_from_collect_gcc_options): Adjust.
12805 (find_and_merge_options): Likewise.
12806 (run_gcc): Likewise.
12808 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12810 * ipa-predicate.c (add_condition): Restore inverted test.
12812 2019-08-10 Jakub Jelinek <jakub@redhat.com>
12814 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
12815 (enum omp_clause_device_type_kind): New enum.
12816 (struct tree_omp_clause): Add subcode.device_type_kind.
12817 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
12818 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
12819 for device_type clause.
12820 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
12821 * tree-pretty-print.c (dump_omp_clause): Likewise.
12824 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
12827 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
12829 * reload1.c (finish_spills): Do not check ira_conflicts_p when
12830 handling spilled pseudos.
12832 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
12835 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
12836 to preserve the contents of the original insns.
12838 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
12840 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
12841 (addsi3_compare_op2): Likewise.
12843 2019-08-09 Martin Liska <mliska@suse.cz>
12845 * alias.c (alias_ptr_types_compatible_p): Strengten
12846 type comparison in LTO mode.
12848 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
12850 PR middle-end/90313
12851 * tree-tailcall.c (find_tail_calls): Reject calls that might
12852 read from an escaped RESULT_DECL.
12854 2019-08-09 Martin Liska <mliska@suse.cz>
12856 * doc/invoke.texi: Document the option value.
12857 * lto-wrapper.c (run_gcc): Set auto_parallel
12858 only with -flto=auto.
12860 2019-08-09 Martin Liska <mliska@suse.cz>
12862 * opts.c (common_handle_option): Error for an invalid argument
12865 2019-08-09 Martin Liska <mliska@suse.cz>
12867 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
12868 use dump_printf to report optimization.
12869 (sem_variable::merge): Likwise.
12870 (sem_item_optimizer::merge_classes): Use dump_printf to report
12873 2019-08-09 Martin Liska <mliska@suse.cz>
12875 * value-prof.c (gimple_divmod_fixed_value_transform):
12876 Use dump_printf_loc.
12877 (gimple_mod_pow2_value_transform): Likewise.
12878 (gimple_mod_subtract_transform): Likewise.
12879 (init_node_map): Likewise.
12880 (gimple_ic_transform): Likewise.
12881 (gimple_stringops_transform): Likewise.
12883 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
12885 * doc/extend.texi: Add const qualifier to ld intrinsics.
12887 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
12889 * config/rs6000/dfp.md (D64_D128): Rename to ...
12890 (DDTD): ... this, throughout.
12891 (dfp_suffix): Rename to ...
12892 (q): ... this, throughout.
12894 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
12896 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
12897 (dfp_suffix): Ditto.
12898 (adddd3, addtd3): Merge to ...
12899 (add<mode>3 for D64_D128): ... this.
12900 (subdd3, subtd3): Merge to ...
12901 (sub<mode>3 for D64_D128): ... this.
12902 (muldd3, multd3): Merge to ...
12903 (mul<mode>3 for D64_D128): ... this.
12904 (divdd3, divtd3): Merge to ...
12905 (div<mode>3 for D64_D128): ... this.
12906 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
12907 (*cmp<mode>_internal1 for D64_D128): ... this.
12908 (ftruncdd2, ftrunctd2): Merge to ...
12909 (ftrunc<mode>2 for D64_D128): ... this.
12910 (fixdddi2, fixtddi2): Merge to ...
12911 (fix<mode>di2 for D64_D128): ... this.
12913 2019-08-08 Jim Wilson <jimw@sifive.com>
12916 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
12917 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
12918 Pass into recursive call.
12919 (riscv_flatten_aggregate_argument): New arg. Pass to
12920 riscv_flatten_aggregate_field.
12921 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
12922 riscv_flatten_aggregate_argument twice, with false and true as last
12923 arg. Process result twice. Compare results and warn if different.
12924 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
12926 2019-08-08 Martin Liska <mliska@suse.cz>
12929 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
12930 * lto-wrapper.c (jobserver_active_p): Likewise.
12932 2019-08-08 Martin Liska <mliska@suse.cz>
12934 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
12935 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
12936 (create_version_clone_with_body): Likewise.
12938 2019-08-08 Jakub Jelinek <jakub@redhat.com>
12940 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
12941 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
12942 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
12943 GOVD_EXPLICIT flags.
12944 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
12945 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
12946 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
12947 call install_var_field with mask 11 instead of 3.
12948 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
12949 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
12951 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
12953 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
12954 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
12956 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
12958 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
12959 MOVPRFX alternatives. Make the GPR alternatives more expensive
12962 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
12964 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
12965 Disparage the GPR alternative relative to the FPR one.
12966 Fix handling of 8-bit and 16-bit FPR values.
12968 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
12970 * config/aarch64/iterators.md (BITWISEV): Delete.
12971 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
12972 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
12973 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
12974 UNSPEC_FMINNMV, UNSPEC_FMINV.
12975 (bit_reduc_op): Delete.
12976 (sve_int_op): New int attribute.
12977 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
12978 UNSPEC_FMINNMV, UNSPEC_FMINV.
12979 * config/aarch64/aarch64-sve.md
12980 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
12981 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
12982 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
12983 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
12984 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
12985 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
12987 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
12988 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
12989 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
12990 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
12991 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
12994 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
12996 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
12997 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
12998 (fms<mode>4, *fms<mode>4): Replace with...
12999 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
13000 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
13001 Use unspecs instead of rtx codes.
13002 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
13003 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
13005 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13007 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
13009 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
13010 * config/aarch64/aarch64-sve.md
13011 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
13012 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
13013 use a single unspec for the rhs.
13014 (*<su><maxmin><mode>3): Delete.
13015 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
13017 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13019 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
13020 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
13021 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
13022 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
13023 (optab, sve_fp_op): Handle them.
13024 (SVE_FP_UNARY): Delete.
13025 (optab): Remove sqrt entry.
13026 (sve_fp_op): Remove neg, abs and sqrt entries.
13027 (SVE_COND_FP_UNARY): New int iterator.
13028 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
13029 (*<frint_pattern><mode>2): Delete.
13030 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
13031 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
13032 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
13033 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
13035 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13037 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
13039 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13041 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
13042 (UNSPEC_COND_FADD): ...this.
13043 (UNSPEC_COND_SUB): Rename to...
13044 (UNSPEC_COND_FSUB): ...this.
13045 (UNSPEC_COND_MUL): Rename to...
13046 (UNSPEC_COND_FMUL): ...this.
13047 (UNSPEC_COND_DIV): Rename to...
13048 (UNSPEC_COND_FDIV): ...this.
13049 (UNSPEC_COND_MAX): Rename to...
13050 (UNSPEC_COND_FMAXNM): ...this.
13051 (UNSPEC_COND_MIN): Rename to...
13052 (UNSPEC_COND_FMINNM): ...this.
13053 (UNSPEC_COND_LT): Rename to...
13054 (UNSPEC_COND_FCMLT): ...this.
13055 (UNSPEC_COND_LE): Rename to...
13056 (UNSPEC_COND_FCMLE): ...this.
13057 (UNSPEC_COND_EQ): Rename to...
13058 (UNSPEC_COND_FCMEQ): ...this.
13059 (UNSPEC_COND_NE): Rename to...
13060 (UNSPEC_COND_FCMNE): ...this.
13061 (UNSPEC_COND_GE): Rename to...
13062 (UNSPEC_COND_FCMGE): ...this.
13063 (UNSPEC_COND_GT): Rename to...
13064 (UNSPEC_COND_FCMGT): ...this.
13065 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
13066 (sve_fp_op_rev): Update accordingly.
13067 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
13069 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13071 * config/aarch64/aarch64-sve.md: Reorganize contents and add
13073 * config/aarch64/check-sve-md.awk: New file.
13074 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
13075 (insn-conditions.md): Depend on it.
13077 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
13080 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
13081 (*negsi2_cmpz_zext): Ditto.
13083 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13085 * config/aarch64/iterators.md (commutative): Remove.
13087 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
13090 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
13091 processing COLLECT_GCC_OPTIONS.
13092 (run_gcc): Likewise.
13094 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13096 PR tree-optimization/91109
13097 * lra-remat.c (update_scratch_ops): Remove assignment of the
13100 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
13102 * data-streamer.h (streamer_write_poly_uint64): Declare.
13103 (streamer_read_poly_uint64): Likewise.
13104 * data-streamer-in.c (streamer_read_poly_uint64): New function.
13105 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
13106 * ipa-predicate.h (condition::size): Turn into a poly_int64.
13107 (add_condition): Take a poly_int64 size.
13108 * ipa-predicate.c (add_condition): Likewise.
13109 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
13110 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
13111 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
13112 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
13113 condition::size as a poly_int64.
13114 (unmodified_parm_1): Take a poly_int64 size pointer.
13115 (unmodified_parm): Likewise.
13116 (unmodified_parm_or_parm_agg_item): Likewise.
13117 (set_cond_stmt_execution_predicate): Update accordingly.
13118 (set_switch_stmt_execution_predicate): Likewise.
13119 (will_be_nonconstant_expr_predicate): Likewise.
13120 (will_be_nonconstant_predicate): Likewise.
13121 (inline_read_section): Stream condition::size as a poly_int.
13122 (ipa_fn_summary_write): Likewise.
13124 2019-08-07 Martin Liska <mliska@suse.cz>
13126 * fold-const.c (twoval_comparison_p): Replace int
13127 with bool as a return type.
13128 (simple_operand_p): Likewise.
13129 (operand_equal_p): Replace int with bool as a return type.
13130 * fold-const.h (operand_equal_p): Likewise.
13132 2019-08-07 Jakub Jelinek <jakub@redhat.com>
13134 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
13135 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
13136 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
13137 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
13138 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
13139 * tree-pretty-print.c (dump_omp_clause): Likewise.
13140 * tree-nested.c (convert_nonlocal_omp_clauses,
13141 convert_local_omp_clauses): Likewise.
13142 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
13144 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
13145 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
13146 clause with array or reference to array types, no matter what type
13147 except for reference it has.
13149 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
13151 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
13153 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
13155 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
13156 (arch_canonicalize): Support rv32g and rv64g and fix error
13159 2019-08-06 Martin Liska <mliska@suse.cz>
13161 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
13162 and DECL_IS_OPERATOR_DELETE_P.
13164 2019-08-06 Jakub Jelinek <jakub@redhat.com>
13166 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
13167 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
13168 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
13169 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
13170 (gimplify_omp_for): Don't do C++ random access iterator clause
13171 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
13172 don't predetermine the artificial iterator in case of C++ random
13173 access iterators as lastprivate, but private. For OMP_LOOP, force
13174 bind expr around simd body and force for_pre_body before the
13175 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
13176 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
13177 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
13178 diff var of C++ random access iterators. Handle
13179 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
13180 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
13181 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
13182 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
13183 * omp-low.c (lower_rec_input_clauses): For
13184 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
13185 variables instead of default constructing them.
13186 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
13187 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
13188 is_taskloop_ctx check from the assert to the guarding condition.
13190 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
13192 * config/riscv/multilib-generator: (canonical_order): New.
13193 (arch_canonicalize): Dito.
13194 Apply arch_canonicalize for alts.
13196 2019-08-05 Martin Sebor <msebor@redhat.com>
13198 * doc/extend.texi (Common Variable Attributes): Document alias
13201 2019-08-05 Marek Polacek <polacek@redhat.com>
13203 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
13204 * doc/invoke.texi: Document -Wcomma-subscript.
13206 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
13208 * tree-core.h (tree_function_decl): Make function_code an
13209 independent field. Group the remaining bitfields into bytes
13210 and move decl_type so that it contines to be at a byte boundary.
13211 Leave 12 bits for future expansion.
13213 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
13215 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
13216 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
13217 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
13220 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
13222 * gimple.h (gimple_move_vops): Declare.
13223 * gimple.c (gimple_move_vops): New function
13224 * gimple-fold.c (replace_call_with_call_and_fold)
13225 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
13226 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
13227 (gimple_fold_call): Use it.
13228 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
13229 * tree-call-cdce.c (use_internal_fn): Likewise.
13230 * tree-if-conv.c (predicate_load_or_store): Likewise.
13231 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
13232 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
13233 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
13234 (update_call_from_tree): Likewise.
13235 * tree-vect-stmts.c (vectorizable_load): Likewise.
13236 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
13238 2019-08-05 Martin Liska <mliska@suse.cz>
13241 * tree-ssa-dce.c (propagate_necessity): Handle new operators
13242 with not arguments.
13243 (eliminate_unnecessary_stmts): Likewise.
13245 2019-08-05 Richard Biener <rguenther@suse.de>
13247 PR middle-end/91169
13248 * fold-const.c (get_array_ctor_element_at_index): Create
13249 offset_ints according to the sign of the index type and treat
13250 that as signed if it is obviously so.
13252 2019-08-05 Jakub Jelinek <jakub@redhat.com>
13255 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
13256 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
13257 _mm256_storeu2_m128i): New function.
13259 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
13261 * config/riscv/riscv.c (riscv_promote_function_mode): New.
13262 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
13264 2019-08-05 Alan Modra <amodra@gmail.com>
13267 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
13268 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
13270 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
13272 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
13273 bug that was fixed in Tcl 8.6.1.
13275 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
13277 * config/rs6000/future.md: New file.
13278 * config/rs6000/rs6000.md: Include future.md.
13279 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
13281 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
13283 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
13284 check to use targetm.slow_unaligned_access instead.
13286 * function.c (assign_param_data_one): Remove unused data members.
13288 2019-08-02 Steve Ellcey <sellcey@marvell.com>
13290 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
13291 build_distinct_type_copy.
13292 (simd_clone_adjust_argument_types): Ditto.
13293 (simd_clone_adjust): Call build_distinct_type_copy here.
13294 (expand_simd_clones): Ditto.
13296 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
13299 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
13301 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
13303 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
13304 from 'const void *'.
13305 (sort_locs_in_loop_postorder_cmp): Likewise.
13307 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
13309 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
13310 (hot-bb-count-ws-permille): Likewise.
13311 (hot-bb-frequency-fraction): Likewise.
13312 (unlikely-bb-count-fraction): Likewise.
13313 * params.def (hot-bb-count-fraction): Rework description.
13314 (hot-bb-count-ws-permille): Likewise.
13315 (hot-bb-frequency-fraction): Likewise.
13316 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
13317 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
13319 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
13322 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
13325 2019-08-02 Richard Biener <rguenther@suse.de>
13327 * vec.h (vec::sort): Add gcc_qsort_r support.
13328 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
13329 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
13330 to gcc_qsort_r style callback.
13331 (sort_locs_in_loop_postorder_cmp): Likewise.
13332 (analyze_memory_references): Use gcc_sort_r interfaces.
13333 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
13335 2019-08-02 Martin Liska <mliska@suse.cz>
13338 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
13339 to detect working job server.
13340 (driver::detect_jobserver): Test whether jobserver
13341 is active from GCC driver. That will prevent situation where
13342 GCC is invoked from a LD plugin and the linker already uses
13343 file descriptors suggested by make. That leads to a wrong
13345 * gcc.h (driver): Add detect_jobserver.
13346 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
13347 not scanning for --jobserver-auth prefix.
13349 2019-08-02 Jakub Jelinek <jakub@redhat.com>
13351 PR tree-optimization/91201
13352 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
13353 V16QImode extraction without sse4.1 try to use V4SImode lowpart
13356 2019-08-01 Martin Sebor <msebor@redhat.com>
13359 * tree.c (type_initializer_zero_p): Define.
13360 * tree.h (type_initializer_zero_p): New function.
13362 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
13364 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
13366 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
13368 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
13369 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
13370 * predict.c (maybe_hot_count_p): Likewise.
13371 (maybe_hot_bb_p): Tweak comment.
13372 (maybe_hot_edge_p): Likewise.
13373 (probably_never_executed): Likewise. Minor tweak.
13374 (probably_never_executed_bb_p): Likewise.
13375 (unlikely_executed_edge_p): Likewise.
13376 (probably_never_executed_edge_p): Likewise.
13377 (optimize_function_for_size_p): Likewise.
13378 (optimize_function_for_speed_p): Likewise.
13379 (function_optimization_type): Likewise.
13380 (optimize_bb_for_size_p): Likewise.
13381 (optimize_bb_for_speed_p): Likewise.
13382 (bb_optimization_type): Likewise.
13383 (optimize_edge_for_size_p): Likewise.
13384 (optimize_edge_for_speed_p): Likewise.
13385 (optimize_insn_for_size_p): Likewise.
13386 (optimize_insn_for_speed_p): Likewise.
13387 (optimize_loop_for_size_p): Likewise.
13388 (optimize_loop_for_speed_p): Likewise.
13389 (optimize_loop_nest_for_speed_p): Likewise.
13390 (optimize_loop_nest_for_size_p): Likewise.
13391 (predictable_edge_p): Likewise.
13392 (handle_missing_profiles): Minor tweak.
13394 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
13396 * config/rs6000/predicates.md (pcrel_external_address): Update
13399 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
13402 * config/i386/mmx.md (usadv8qi): New expander.
13404 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
13407 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
13408 with reserved names that are in a system header.
13410 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
13412 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
13413 (*vec_extractv2si_0_zext_sse4): New insn pattern.
13414 (*vec_extractv2si_0_zext): Ditto.
13415 (*vec_extractv2si_1): Add (rm,x) alternative.
13416 (*vec_extractv2si_1_zext): New insn pattern.
13417 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
13420 2019-08-01 Richard Biener <rguenther@suse.de>
13422 * domwalk.c (bb_postorder): Remove static variable.
13423 (cmp_bb_postorder): Adjust.
13424 (sort_bbs_postorder): Adjust and use gcc_sort_r.
13425 (dom_walker::walk): Adjust.
13427 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
13429 * sort.cc (sort_r_ctx): New struct.
13430 (reorder23): Make templated on context type.
13431 (reorder45): Ditto.
13432 (cmp1): Ditto. Adjust signature.
13434 (mergesort): Ditto.
13435 [CHECKING_P] (cmp2to3): New static function. Use it...
13436 (gcc_qsort) [CHECKING_P]: ...here.
13437 (gcc_sort_r): New function.
13438 * system.h (sort_r_cmp_fn): New function typedef.
13439 (qsort_chk): Adjust signature.
13440 (gcc_sort_r): Declare.
13441 * vec.c (qsort_chk_error): Adjust.
13442 (qsort_chk): Adjust.
13444 2019-08-01 Richard Biener <rguenther@suse.de>
13446 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
13447 (compute_antic): Localize it here.
13449 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
13451 * common/config/riscv/riscv-common.c: Check -march string ends
13454 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
13456 * ipa-devirt.c (type_warning_cmp): Make static.
13457 (decl_warning_cmp): Ditto.
13459 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
13462 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
13463 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
13464 use of deleted rs6000_dejagnu_cpu_index variable.
13465 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
13466 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
13467 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
13468 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
13469 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
13470 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
13472 2019-07-31 Richard Biener <rguenther@suse.de>
13474 PR tree-optimization/91280
13475 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13476 Decompose MEM_REF manually for offset handling.
13478 2019-07-31 Richard Biener <rguenther@suse.de>
13480 PR tree-optimization/91293
13481 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
13482 of reduction stmts.
13484 2019-07-31 Matt Thomas <matt@3am-software.com>
13485 Nick Hudson <nick@nthcliff.demon.co.uk>
13486 Matthew Green <mrg@eterna.com.au>
13487 Maya Rashish <coypu@sdf.org>
13489 * config.gcc (hppa*-*-netbsd*): New target.
13490 * config/pa/pa-netbsd.h: New file.
13491 * config/pa/pa32-netbsd.h: New file.
13493 2019-07-31 Jakub Jelinek <jakub@redhat.com>
13495 PR tree-optimization/91201
13496 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
13498 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
13500 * config/gcn/gcn-valu.md
13501 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
13502 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
13503 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
13504 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
13505 struct ilist. Add nops for delayeduse insns.
13506 * config/gcn/gcn.md (delayeduse): New attribute.
13507 (*movbi): Remove s_waitcnt from stores.
13508 (*mov<mode>_insn): Likewise.
13509 (*movti_insn): Likewise. Add delayeduse attribute.
13510 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
13511 (atomic_store<mode>): Remove or adjust s_waitcnt.
13513 2019-07-31 Richard Biener <rguenther@suse.de>
13515 * vr-values.h (vr_values::swap_vr_value): New.
13516 (vr_values::free_value_range): likewise.
13517 * vr-values.c (vr_values::swap_vr_value): Implement.
13518 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
13519 Do not return a range or take a var.
13520 (evrp_range_analyzer::stack): Change back to recording a non-const
13522 * gimple-ssa-evrp-analyze.c
13523 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
13525 (evrp_range_analyzer::pop_to_marker): Adjust.
13526 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
13527 (evrp_range_analyzer::pop_value_range): Likewise. Free the
13528 no longer needed value-range.
13530 2019-07-31 Martin Liska <mliska@suse.cz>
13532 * tree-ssa-dce.c (propagate_necessity): Delete operator can
13533 have size and (or) alignment as 2nd and later arguments.
13534 Mark all of them as necessary.
13536 2019-07-31 Richard Biener <rguenther@suse.de>
13538 PR tree-optimization/91178
13539 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
13540 Use tail-recursion.
13542 2019-07-31 Jakub Jelinek <jakub@redhat.com>
13544 PR tree-optimization/91201
13545 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
13546 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
13548 (reduc_plus_scal_<mode>): Improve formatting by introducing
13551 2019-07-31 Sudakshina Das <sudi.das@arm.com>
13553 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
13554 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
13555 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
13556 (aarch64_init_tme_builtins): New.
13557 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
13558 (aarch64_expand_builtin_tme): New.
13559 (aarch64_expand_builtin): Handle TME builtins.
13560 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13561 __ARM_FEATURE_TME when enabled.
13562 * config/aarch64/aarch64-option-extensions.def: Add "tme".
13563 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
13565 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
13566 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
13568 (tstart, ttest, tcommit, tcancel): New instructions.
13569 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
13570 (__tcancel, __ttest): New.
13571 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
13572 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
13573 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
13574 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
13575 * config/arm/types.md: Add new tme type attr.
13576 * doc/invoke.texi: Document "tme".
13578 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
13580 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
13581 warn_unused_result attribute.
13582 (cmse_check_address_range): Add warn_unused_result attribute.
13584 2019-07-31 Richard Biener <rguenther@suse.de>
13586 PR tree-optimization/91257
13587 * tree-vrp.c (union_ranges): Unify equality and less tests
13588 by using compare_values. Re-order cheap tests first.
13590 2019-07-31 Jakub Jelinek <jakub@redhat.com>
13592 PR middle-end/91301
13593 * gimplify.c (gimplify_omp_for): If for class iterator on
13594 distribute parallel for there is no data sharing clause
13595 on inner_for_stmt, look for private clause on combined
13596 parallel too and if found, move it to inner_for_stmt.
13598 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
13600 * lra-int.h (lra_operand_data): Remove early_clobber field.
13601 (lra_insn_reg): Likewise.
13602 * lra.c (debug_operand_data): Update accordingly.
13603 (setup_operand_alternative): Likewise.
13604 (new_insn_reg): Likewise. Remove early_clobber parameter.
13605 (collect_non_operand_hard_regs): Update call accordingly.
13606 Don't assign to lra_insn_reg::early_clobber.
13607 (add_regs_to_insn_regno_info): Remove early_clobber parameter
13608 and update calls to new_insn_reg.
13609 (lra_update_insn_regno_info): Update calls accordingly.
13610 * lra-constraints.c (update_and_check_small_class_inputs): Take the
13611 alternative number as a parameter and test whether the operand
13612 is earlyclobbered in that particular alternative.
13613 (process_alt_operands): Update call accordingly. Use per-alternative
13614 checks for earyclobber here too.
13615 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
13616 against zero for IRA_UNKNOWN_ALT.
13618 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
13620 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
13622 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
13624 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
13625 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
13627 2019-07-30 Martin Liska <mliska@suse.cz>
13630 * cgraph.c (cgraph_edge::make_direct): Use
13631 edge->indirect_unknown_callee as edge->resolve_speculation can
13632 deallocate edge which is this pointer.
13634 2019-07-30 Richard Biener <rguenther@suse.de>
13636 PR tree-optimization/91257
13637 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
13639 2019-07-30 Martin Liska <mliska@suse.cz>
13641 * doc/invoke.texi: Document new behavior.
13642 * lto-wrapper.c (cpuset_popcount): New function
13643 is a copy of libgomp/config/linux/proc.c.
13644 (init_num_threads): Likewise.
13645 (run_gcc): Automatically detect core count for -flto.
13646 (jobserver_active_p): New function.
13648 2019-07-30 Richard Biener <rguenther@suse.de>
13650 PR tree-optimization/91257
13651 * bitmap.h (bitmap_ior_into_and_free): Declare.
13652 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
13653 whether to add the unliked element to the freelist.
13654 (bitmap_list_insert_element_after): Add defaulted param for
13655 an already allocated element.
13656 (bitmap_ior_into_and_free): New function.
13657 * tree-ssa-structalias.c (condense_visit): Reduce the
13658 ponts-to and edge bitmaps of the SCC members in a
13659 logarithmic fashion rather than all to one.
13661 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
13663 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
13664 parameter. When nonnull, make sure that the addition or subtraction
13665 has the same condition.
13666 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
13667 for CFN_COND_MUL too.
13669 2019-07-30 Richard Biener <rguenther@suse.de>
13671 PR tree-optimization/91291
13672 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
13675 2019-07-30 Jakub Jelinek <jakub@redhat.com>
13677 PR middle-end/91216
13678 * omp-low.c (global_nonaddressable_vars): New variable.
13679 (use_pointer_for_field): For global decls, if they are non-addressable,
13680 remember it in the global_nonaddressable_vars bitmap, if they are
13681 addressable and in the global_nonaddressable_vars bitmap, ignore their
13682 TREE_ADDRESSABLE bit.
13683 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
13684 vars in global_nonaddressable_vars bitmap.
13685 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
13688 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
13689 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
13690 comparison to unsigned HOST_WIDE_INT before shifting it left.
13692 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
13694 * config/i386/i386.md (movstrict<mode>): Use register_operand
13695 predicate for operand 0. Add expander condition. Assert that
13696 operand 0 is a SUBREG RTX.
13697 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
13698 Update operand constraints and insn condition.
13699 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
13700 (zero_extendqihi2_and): Do not call gen_movstrictqi.
13701 (*setcc_qi_slp): Use register_operand predicate for operand 0.
13702 Update operand 0 constraints.
13703 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
13705 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13707 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
13708 when -m{code,data}-region are used without -mlarge.
13709 * config/msp430/msp430.c (msp430_option_override): Error when a
13710 non-default code or data region is used without -mlarge.
13711 (msp430_section_attr): Emit a warning and do not add upper/lower/either
13712 attributes when they are used without -mlarge.
13714 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13717 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
13719 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
13721 PR middle-end/91242
13722 * wide-int.h (generic_wide_int::sext_elt): New function.
13723 * inchash.h (hash::add_wide_int): Use it instead of elt.
13725 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13727 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
13729 * config/arm/arm.md (<crc_variant>): Rename to...
13730 (arm_<crc_variant>): ... This.
13731 (<cdp>): Rename to...
13732 (arm_<cdp>): ... This.
13733 (<ldc>): Rename to...
13734 (arm_<ldc>): ... This.
13735 (<stc>): Rename to...
13736 (arm_<stc>): ... This.
13737 (<mcr>): Rename to...
13738 (arm_<mcr>): ... This.
13739 (<mrc>): Rename to...
13740 (arm_<mrc>): ... This.
13741 (<mcrr>): Rename to...
13742 (arm_<mcrr>): ... This.
13743 (<mrrc>): Rename to...
13744 (arm_<mrrc>): ... This.
13746 2019-07-29 Richard Biener <rguenther@suse.de>
13748 PR tree-optimization/91257
13749 * tree-ssa-sccvn.h (struct vn_avail): New.
13750 (struct vn_ssa_aux): Add avail member.
13751 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
13752 member, add m_avail_freelist one.
13753 (rpo_elim::~rpo_elim): Remove.
13754 (rpo_elim::eliminate_avail): Adjust to new avail tracking
13756 (rpo_elim::eliminate_push_avail): Likewise.
13757 (do_unwind): Likewise.
13758 (do_rpo_vn): Likewise.
13760 2019-07-29 Richard Biener <rguenther@suse.de>
13762 PR tree-optimization/91257
13763 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
13764 most cases, instead call compare_values which handles the
13765 symbolic ranges we handle specially.
13766 (compare_values_warnv): Do not call operand_less_p but open-code
13767 the effective fold calls. Avoid converting so much.
13769 2019-07-29 Martin Liska <mliska@suse.cz>
13771 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
13772 remove LHS of operator new call. It's handled latter.
13774 2019-07-29 Richard Biener <rguenther@suse.de>
13776 PR tree-optimization/91267
13777 * vr-values.c (vr_values::update_value_range): Add early return
13778 for effectively VARYING lattice entry.
13780 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
13783 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
13784 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
13785 necessary if keep_all_vdefs_p is true.
13786 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
13787 that keep_all_vdefs_p is false.
13788 (mark_all_reaching_defs_necessary): Likewise.
13789 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
13791 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
13793 * common.opt (Og): Change the initial value of flag_dse to 0.
13794 * opts.c (default_options_table): Move OPT_ftree_dse from
13795 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
13796 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
13797 entry before the OPT_ftree_sra entry.
13798 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
13799 of flags disabled by Og.
13801 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
13803 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
13806 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
13808 * doc/sourcebuild.texi (check-function-bodies): Document.
13810 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
13812 * simplify-rtx.c (simplify_const_unary_operation): Fold a
13813 VEC_DUPLICATE of a fixed-length vector even if the result
13814 is variable-length. Likewise fold a duplicate of a
13815 variable-length vector if the variable-length vector is
13816 itself a duplicate of a fixed-length sequence.
13817 (test_vector_ops_duplicate): Test more cases.
13819 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
13821 * vector-builder.h (vector_builder): Add a shape template parameter.
13822 (vector_builder::new_unary_operation): New function, generalizing
13823 the old tree_vector_builder function.
13824 (vector_builder::new_binary_operation): Likewise.
13825 (vector_builder::binary_encoded_nelts): Likewise.
13826 * int-vector-builder.h (int_vector_builder): Update template
13827 parameters to vector_builder.
13828 (int_vector_builder::shape_nelts): New function.
13829 * rtx-vector-builder.h (rtx_vector_builder): Update template
13830 parameters to vector_builder.
13831 (rtx_vector_builder::shape_nelts): New function.
13832 (rtx_vector_builder::nelts_of): Likewise.
13833 (rtx_vector_builder::npatterns_of): Likewise.
13834 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
13835 * tree-vector-builder.h (tree_vector_builder): Update template
13836 parameters to vector_builder.
13837 (tree_vector_builder::shape_nelts): New function.
13838 (tree_vector_builder::nelts_of): Likewise.
13839 (tree_vector_builder::npatterns_of): Likewise.
13840 (tree_vector_builder::nelts_per_pattern_of): Likewise.
13841 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
13842 (tree_vector_builder::new_binary_operation): Delete.
13843 (tree_vector_builder::binary_encoded_nelts): Likewise.
13844 * simplify-rtx.c: Include rtx-vector-builder.h.
13845 (distributes_over_addition_p): New function.
13846 (simplify_const_unary_operation)
13847 (simplify_const_binary_operation): Generalize handling of vector
13848 constants to include variable-length vectors.
13849 (test_vector_ops_series): Add more tests.
13851 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
13854 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
13855 than INDENTIFIER_POINTER.
13857 2019-07-28 Martin Liska <mliska@suse.cz>
13860 * cgraph.c (symbol_table::create_edge): Always allocate
13862 (symbol_table::free_edge): Store summary_id to
13863 edge_released_summary_ids if != -1;
13864 * cgraph.h (NEXT_FREE_NODE): Remove.
13865 (SET_NEXT_FREE_NODE): Likewise.
13866 (NEXT_FREE_EDGE): Likewise.
13867 (symbol_table::release_symbol): Store summary_id to
13868 cgraph_released_summary_ids if != -1;
13869 (symbol_table::allocate_cgraph_symbol): Always allocate
13872 2019-07-28 Alan Modra <amodra@gmail.com>
13874 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
13877 2019-07-28 Alan Modra <amodra@gmail.com>
13880 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
13882 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
13883 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
13884 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
13886 2019-07-28 Alan Modra <amodra@gmail.com>
13889 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
13890 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
13891 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
13892 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
13893 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
13894 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
13895 in asm_default spec.
13896 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
13897 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
13899 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
13901 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
13903 2019-07-26 Tamar Christina <tamar.christina@arm.com>
13906 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
13907 * config/aarch64/aarch64-option-extensions.def: Add new comments
13908 and restore easier to read options.
13910 2019-07-26 Tamar Christina <tamar.christina@arm.com>
13912 * convert.c (convert_to_real_1): Move part of conversion code...
13913 * match.pd: ...To here.
13915 2019-07-26 Martin Jambor <mjambor@suse.cz>
13918 * ipa-inline-transform.c (check_speculations_1): New function.
13919 (push_all_edges_in_set_to_vec): Likewise.
13920 (check_speculations): Use check_speculations_1, new parameter
13922 (inline_call): Pass new_edges to check_speculations.
13923 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
13925 (speculation_useful_p): Early return true if edge is inlined, remove
13926 later checks for inline_failed.
13928 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
13930 PR rtl-optimization/91223
13931 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
13932 matching with INOUT operand.
13934 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
13936 * stmt.c (expand_case): Try to narrow the index type if it's larger
13937 than a word. Tidy up.
13939 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
13941 * cif-code.def (NEVER_CALL): New code.
13942 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
13943 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
13945 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
13947 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
13948 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
13950 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
13952 * ipa-devirt.c (add_type_duplicate): Fix return value.
13954 2019-07-25 Richard Biener <rguenther@suse.de>
13956 * tree-vrp.c (extract_range_from_multiplicative_op): Add
13957 type parameter and use it instead of guessing expression
13958 type from the first operand.
13959 (extract_range_from_binary_expr): Pass expr_type down.
13961 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13963 * config/arm/arm.md (SATrev): Change to code attribute.
13964 (*satsi_<SAT:code>): Adjust for the above.
13965 (*satsi_<SAT:code>_shift): Likewise.
13967 2019-07-25 Richard Biener <rguenther@suse.de>
13969 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
13970 Make value_range * temporary const.
13971 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
13973 (evrp_range_analyzer::record_ranges_from_): Likewise.
13974 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
13975 deal with having recorded a const one.
13976 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
13977 Return a const value_range *.
13978 (evrp_range_analyzer::pop_value_range): Likewise.
13979 (evrp_range_analyzer::stack): Record const value_range *s.
13980 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
13982 * gimple-ssa-sprintf.c (get_int_range): Likewise.
13983 (format_integer): Likewise.
13984 (sprintf_dom_walker::handle_gimple_call): Likewise.
13985 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
13986 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
13987 (vrp_prop::get_value_range): Adjust.
13988 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
13989 modifying the lattice in-place.
13990 (vrp_prop::visit_stmt): Likewise.
13991 * vr-values.c (vr_values::get_lattice_entry): New private method.
13992 (vr_values::get_value_range): Wrap it and return a const
13994 (vr_values::set_def_to_varying): New.
13995 (vr_values::set_defs_to_varying): Use it.
13996 (vr_values::update_value_range): Likewise.
13997 (vr_values::vrp_stmt_computes_nonzero): Adjust.
13998 (values::op_with_constant_singleton_va): Likewise.
13999 (vr_values::extract_range_for_var_from_co): Likewise.
14000 (vr_values::extract_range_from_ssa_name): Likewise.
14001 (vr_values::extract_range_from_cond_expr): Likewise.
14002 (vr_values::extract_range_basic): Likewise.
14003 (compare_ranges): Take const value_range *, adjust.
14004 (compare_range_with_value): Likewise.
14005 (vrp_valueize): Adjust.
14006 (vrp_valueize_1): Likewise.
14007 (vr_values::get_vr_for_comparison): Return a const value_range *.
14008 (vr_values::compare_name_with_value): Adjust.
14009 (vr_values::compare_names): Likewise.
14010 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14012 (vr_values::vrp_evaluate_conditional): Likewise.
14013 (find_case_label_ranges): Take a const value_range *.
14014 (vr_values::vrp_visit_switch_stmt): Adjust.
14015 (vr_values::extract_range_from_phi_node): Likewise.
14016 (vr_values::simplify_div_or_mod_using_ran): Likewise.
14017 (vr_values::simplify_abs_using_ranges): Likewise.
14018 (test_for_singularity): Take a const value_range *.
14019 (range_fits_type_p): Likewise.
14020 (vr_values::simplify_cond_using_ranges_1): Adjust.
14021 (vr_values::simplify_cond_using_ranges_2): Likewise.
14022 (vr_values::simplify_switch_using_ranges): Likewise.
14023 (vr_values::simplify_float_conversion_usi): Likewise.
14024 (vr_values::two_valued_val_range_p): Likewise.
14025 * vr-values.h (vr_values::get_value_range): Return a const
14027 (vr_values::set_def_to_varying): New.
14028 (vr_values::get_lattice_entry): New private method.
14029 (vr_values::get_vr_for_comparison): Return a const value_range *.
14031 2019-07-25 Martin Liska <mliska@suse.cz>
14032 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
14035 * common.opt: Add -fallocation-dce
14036 * gimple.c (gimple_call_operator_delete_p): New.
14037 * gimple.h (gimple_call_operator_delete_p): Likewise.
14038 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
14039 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
14040 DECL_IS_OPERATOR_DELETE_P.
14041 (mark_all_reaching_defs_necessary_1): Likewise.
14042 (propagate_necessity): Likewise.
14043 (eliminate_unnecessary_stmts): Handle
14044 gimple_call_operator_delete_p.
14045 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
14046 Add packing of OPERATOR_DELETE.
14047 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
14049 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
14050 (DECL_SET_IS_OPERATOR_DELETE): New.
14051 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
14053 2019-07-25 Martin Liska <mliska@suse.cz>
14055 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
14056 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
14057 * coverage.c (coverage_begin_function): Likewise.
14058 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
14059 * gimple.c (gimple_call_nonnull_result_p): Likewise.
14060 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
14061 (sem_item::hash_referenced_symbol_properties): Likewise.
14062 * lto-streamer-out.c (hash_tree): Likewise.
14063 * predict.c (expr_expected_value_1): Likewise.
14064 * tree-inline.c (expand_call_inline): Likewise.
14065 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
14066 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
14067 * tree-core.h (enum function_decl_type): New enum.
14068 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
14069 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
14070 (set_function_decl_type): Likewise.
14071 (DECL_IS_OPERATOR_NEW_P): New.
14072 (DECL_SET_IS_OPERATOR_NEW): Likewise.
14073 (DECL_LAMBDA_FUNCTION): Likewise.
14074 (DECL_LAMBDA_FUNCTION_P): Likewise.
14075 (DECL_IS_OPERATOR_NEW): Remove.
14076 (DECL_SET_LAMBDA_FUNCTION): Likewise.
14078 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
14080 * ipa-profile.c (get_most_common_single_value): Use
14081 get_nth_most_common_value.
14082 * profile.c (sort_hist_value): New function.
14083 (compute_value_histograms): Call sort_hist_value to sort the
14084 values after loading from disk.
14085 * value-prof.c (get_most_common_single_value): Rename to ...
14086 get_nth_most_common_value. Add input params n, return
14087 the n_th value and count.
14088 (gimple_divmod_fixed_value_transform): Use
14089 get_nth_most_common_value.
14090 (gimple_ic_transform): Likewise.
14091 (gimple_stringops_transform): Likewise.
14092 * value-prof.h (get_most_common_single_value): Add input params
14095 2019-07-25 Richard Biener <rguenther@suse.de>
14097 PR tree-optimization/91236
14098 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
14099 size of CONSTRUCTOR write. Fix buffer size we pass to
14100 native_encode_expr.
14102 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14104 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
14105 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
14108 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14110 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
14111 explicitly disabled with --disable-initfini-array.
14113 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14115 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
14118 2019-07-24 Martin Sebor <msebor@redhat.com>
14120 PR tree-optimization/91183
14121 PR tree-optimization/86688
14122 * builtins.c (compute_objsize): Handle MEM_REF.
14123 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
14124 (get_min_string_length): Remove.
14125 (count_nonzero_bytes): New function.
14126 (handle_char_store): Rename...
14127 (handle_store): to this. Handle multibyte stores via integer types.
14128 (strlen_check_and_optimize_stmt): Adjust conditional and the called
14131 2019-07-24 Martin Sebor <msebor@redhat.com>
14134 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
14135 (diagnostic_report_diagnostic): Same.
14136 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
14137 (diagnostic_context::lang_mask): New data member.
14138 * ipa-pure-const.c (suggest_attribute): Use
14139 lang_hooks.option_lang_mask ().
14140 * opts-common.c (option_enabled): Handle new argument.
14141 (get_option_state): Pass an additional argument.
14142 * opts.c (print_filtered_help): Print supported languages for
14143 unsupported options. Adjust printing of current state.
14144 * opts.h (option_enabled): Add argument.
14145 * toplev.c (print_switch_values): Use lang_mask.
14146 (general_init): Set global_dc->lang_mask.
14148 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
14151 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
14153 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
14155 * cgraphunit.c (symbol_table::compile): Start and stop
14156 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
14157 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
14159 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
14161 * gimplify.c (flag_instrument_functions_exclude_p): Include
14162 namespace/class information in the printable name.
14163 * opts.c (add_comma_separated_to_vector): Add NUL terminator
14164 to tokens entered into the vector.
14166 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
14168 * tree-nested.c (build_simple_mem_ref_notrap): New function.
14169 (get_static_chain): Call it instead of build_simple_mem_ref.
14170 (get_frame_field): Likewise.
14171 (get_nonlocal_debug_decl): Likewise.
14172 (convert_nonlocal_reference_op): Likewise.
14174 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
14176 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
14178 (arc_compute_frame_size): Millicode is disabled when compiling
14180 (arc_return_address_register): Likewise.
14181 (arc_compute_function_type): Likewise.
14182 (arc_compute_frame_size): Likewise.
14183 (secondary_reload_info): Likewise.
14184 (arc_get_unalign): Likewise.
14185 (arc_can_use_return_insn): Declare.
14186 * config/arc/arc.c (AUX_LP_START): Define
14187 (AUX_LP_END): Likewise.
14188 (arc_frame_info): Update gmask member to 64-bit datum.
14189 (GMASK_LEN): Update.
14190 (arc_compute_function_type): Make it static, move it forward.
14191 (arc_must_save_register): Update, consider the extra regs.
14192 (arc_compute_millicode_save_restore_regs): Update to use the 64
14194 (arc_compute_frame_size): Likewise.
14195 (arc_enter_leave_p): Likewise.
14196 (arc_save_callee_saves): Likewise.
14197 (arc_restore_callee_saves): Likewise.
14198 (arc_save_callee_enter): Likewise.
14199 (arc_restore_callee_leave): Likewise.
14200 (arc_save_callee_milli): Likewise.
14201 (arc_restore_callee_milli): Likewise.
14202 (arc_expand_prologue): Add new interrupt handling.
14203 (arc_return_address_register): Make it static, move it forward.
14204 (arc_expand_epilogue): Add new interrupt handling.
14205 (arc_get_unalign): Delete.
14206 (arc_epilogue_uses): Make sure we do not remove the extra
14207 saved/restored registers when interrupt.
14208 (arc_can_use_return_insn): New function.
14209 (push_reg): Likewise.
14210 (pop_reg): Likewise.
14211 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
14213 (arc_restore_callee_saves): Likewise, but restoring.
14214 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
14215 (R33_REG): Likewise.
14216 (R34_REG): Likewise.
14217 (R35_REG): Likewise.
14218 (R36_REG): Likewise.
14219 (R37_REG): Likewise.
14220 (R38_REG): Likewise.
14221 (R39_REG): Likewise.
14222 (R45_REG): Likewise.
14223 (R46_REG): Likewise.
14224 (R47_REG): Likewise.
14225 (R48_REG): Likewise.
14226 (R49_REG): Likewise.
14227 (R50_REG): Likewise.
14228 (R51_REG): Likewise.
14229 (R52_REG): Likewise.
14230 (R53_REG): Likewise.
14231 (R54_REG): Likewise.
14232 (R55_REG): Likewise.
14233 (R56_REG): Likewise.
14234 (R58_REG): Likewise.
14235 (type): Add rtie attribute.
14236 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
14237 (movsi_insn): Accept moves to lp_count.
14238 (rtie): Update pattern.
14239 (simple_return): Simplify it, don't use this pattern as a return
14241 (arc600_rtie): New pattern.
14242 (p_return_i): Clean up.
14243 (return): Likewise.
14244 * config/arc/builtins.def (rtie): Only available for non ARC6xx
14246 * config/arc/predicates.md (move_src_operand): Consider lp_count
14249 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
14251 * config/s390/predicates.md (addv_const_operand): New predicate.
14252 * config/s390/s390-modes.def (CCO): New condition code mode.
14253 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
14254 (s390_branch_condition_mask): Likewise.
14255 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
14256 ("mulv<mode>4"): New expanders.
14257 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
14258 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
14259 pattern definitions.
14261 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14263 PR middle-end/91166
14264 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
14265 (define_predicates): Add entry for uniform_vector_p.
14266 (vec_same_elem_p): New match pattern.
14268 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
14271 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
14272 * config/i386/darwin32-biarch.h .. to here.
14273 * config/i386/darwin64-biarch.h: Adjust comments.
14274 * config/rs6000/darwin32-biarch.h: Likewise.
14275 * config/rs6000/darwin64-biarch.h: Likewise.
14276 * config.gcc: Missed commit from r273746
14277 (*-*-darwin*): Don't include CPU t-darwin here.
14278 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
14279 an error message if i686-darwin configuration is attempted for
14282 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
14285 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
14286 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
14287 an error message if i686-darwin configuration is attempted for
14289 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
14290 (powerpc-*-darwin*): Use biarch files where needed.
14291 (powerpc64-*-darwin*): Likewise.
14292 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
14293 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
14295 * config/i386/darwin32-biarch.h: New.
14296 * config/i386/darwin64.h: Rename.
14297 * config/i386/darwin64-biarch.h: To this.
14298 * config/i386/t-darwin: Rename.
14299 * config/i386/t-darwin32-biarch: To this.
14300 * config/i386/t-darwin64: Rename.
14301 * config/i386/t-darwin64-biarch: To this.
14302 * config/rs6000/darwin32-biarch.h: New.
14303 * config/rs6000/darwin64.h: Rename.
14304 * config/rs6000/darwin64-biarch.h: To this.
14305 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
14307 * config/rs6000/t-darwin8: Rename.
14308 * config/rs6000/t-darwin32-biarch: To this.
14309 * config/rs6000/t-darwin64 Rename.
14310 * config/rs6000/t-darwin64-biarch: To this.
14312 2019-07-23 Martin Sebor <msebor@redhat.com>
14314 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
14316 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
14318 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
14319 (rh): New alias for it.
14321 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
14323 * gdbhooks.py: Pass replace=True to
14324 gdb.printing.register_pretty_printer.
14326 2019-07-23 Richard Biener <rguenther@suse.de>
14329 * lto-streamer-in.c (input_function): Drop inline-entry markers
14330 that ended up with an unknown location block.
14332 2019-07-23 Richard Biener <rguenther@suse.de>
14334 PR tree-optimization/83518
14335 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
14336 init from a constant even when partial defs are already recorded.
14338 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
14340 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
14341 * config/i386/znver1.md: Enable patterns for znver2 and add store
14342 variants which use extra AGU unit.
14344 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
14346 * config/i386/i386-options.c (ix86_option_override_internal): Default
14347 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
14348 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
14351 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
14353 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
14354 (znver2_costs): Update 256 bit SSE costs and multiplication.
14356 2019-07-23 Jan Beulich <jbeulich@suse.com>
14358 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
14359 Require only AVX512F.
14360 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
14361 alternative expanding to vpternlog.
14363 2019-07-23 Martin Liska <mliska@suse.cz>
14365 * dwarf2out.c (gen_producer_string): Canonize -flto=N
14366 to -flto in dwarf producer string.
14368 2019-07-23 Richard Biener <rguenther@suse.de>
14370 * tree-cfg.c (label_for_bb): Remove global var.
14371 (main_block_label): Take label_for_bb as argument.
14372 (cleanup_dead_labels_eh): Likewise, adjust.
14373 (cleanup_dead_labels): Adjust.
14375 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
14377 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
14378 Configurations): Add documentation for __builtin_mtfsf.
14380 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
14382 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
14383 * config/riscv/riscv.c (riscv_constant_alignment): Use
14384 riscv_align_data_type.
14385 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
14386 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
14387 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
14388 * config/riscv/riscv.opt (malign-data): New.
14389 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
14391 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
14393 * cgraph.c (dump_graphviz): New function.
14394 * cgraph.h (dump_graphviz): New function.
14395 * symtab.c (dump_graphviz): New function.
14397 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
14399 * config/aarch64/aarch64-simd.md
14400 (*aarch64_simd_sra<mode>): New.
14401 * config/aarch64/iterators.md
14402 (SHIFTRT): New iterator.
14403 (sra_op): New attribute.
14405 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14407 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
14408 callee-saved regs R4->R10 in an interrupt function that calls another
14411 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
14413 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
14414 (_mm_blendv_epi8): New.
14416 2019-07-22 Richard Biener <rguenther@suse.de>
14418 PR tree-optimization/91221
14419 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
14420 restrict partial-def handling of empty constructors and
14421 memset to refs with known offset.
14423 2019-07-22 Jan Beulich <jbeulich@suse.com>
14425 * config/i386/sse.md (ternlogsuffix): New.
14426 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
14428 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
14430 2019-07-22 Martin Liska <mliska@suse.cz>
14432 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
14434 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
14436 2019-07-22 Martin Liska <mliska@suse.cz>
14438 * lto-section-in.c (lto_get_section_data):
14439 Use new function get_compression.
14440 * lto-streamer-out.c (produce_lto_section): Use
14441 set_compression to encode compression algorithm.
14442 * lto-streamer.h (struct lto_section): Do not
14443 use bitfields in the format.
14445 2019-07-22 Martin Liska <mliska@suse.cz>
14448 * opts-common.c (decode_cmdline_option): Decode
14449 argument of -Werror and check it for a wrong language.
14450 * opts-global.c (complain_wrong_lang): Remove such case.
14452 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
14454 * config/arc/arc.c (prepare_move_operands): Always use an
14455 intermediate register when storing a TLS symbols.
14457 2019-07-22 Stafford Horne <shorne@gmail.com>
14459 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
14462 2019-07-22 Stafford Horne <shorne@gmail.com>
14464 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
14465 and munordered-float validations.
14466 * config/or1k/constraints.md (d): New register constraint.
14467 * config/or1k/predicates.md (fp_comparison_operator): New.
14468 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
14470 (or1k_expand_compare): Normalize unordered comparisons.
14471 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
14472 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
14473 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
14474 * config/or1k/or1k.md (type): Add fpu.
14475 (fpu): New instruction reservation.
14476 (F, f, fr, fi, FI, FOP, fop): New.
14477 (<fop><F:mode>3): New ALU instruction definition.
14478 (float<fi><F:mode>2): New conversion instruction definition.
14479 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
14480 (fpcmpcc): New code iterator.
14481 (*sf_fp_insn): New instruction definition.
14482 (cstore<F:mode>4): New expand definition.
14483 (cbranch<F:mode>4): New expand definition.
14484 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
14485 munordered-float): New options.
14486 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
14489 2019-07-22 Stafford Horne <shorne@gmail.com>
14491 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
14492 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
14493 documenation to be more clear.
14494 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
14496 * config/or1k/or1k.opt (mrori): New option.
14497 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
14498 msfimm, mshftimm): Rewrite documentation to be more clear.
14499 * config/or1k/or1k.md (insn_support): Add ror and rori.
14500 (enabled): Add conditions for ror and rori.
14501 (rotrsi3): Replace condition for shftimm with ror and rori.
14503 2019-07-22 Stafford Horne <shorne@gmail.com>
14506 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
14507 (extend<mode>si2): Update predicate.
14508 * config/or1k/predicates.md (volatile_mem_operand): New.
14509 (reg_or_mem_operand): New.
14511 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
14513 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
14514 * config/rs6000/rs6000-call.c: ... to here.
14516 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
14518 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
14521 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
14523 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
14525 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
14527 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
14529 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
14531 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
14532 (any_memory_operand): New predicate.
14533 (reg_or_mem_operand): Use it.
14535 2019-07-20 Jakub Jelinek <jakub@redhat.com>
14538 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
14540 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
14542 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
14543 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
14545 2019-07-20 Jakub Jelinek <jakub@redhat.com>
14547 * tree.def (OMP_LOOP): New tree code.
14548 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
14549 (enum omp_clause_bind_kind): New enum.
14550 (struct tree_omp_clause): Add subcode.bind_kind.
14551 * tree.h (OMP_LOOP_CHECK): Rename to ...
14552 (OMP_LOOPING_CHECK): ... this.
14553 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
14554 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
14555 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
14556 (OMP_CLAUSE_BIND_KIND): Define.
14557 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
14558 bind clause entries.
14559 (walk_tree_1): Handle OMP_CLAUSE_BIND.
14560 * tree-pretty-print.c (dump_omp_clause): Likewise.
14561 (dump_generic_node): Handle OMP_LOOP.
14562 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
14563 (in_omp_construct): New variable.
14564 (is_gimple_stmt): Handle OMP_LOOP.
14565 (gimplify_scan_omp_clauses): For lastprivate don't set
14566 check_non_private if code == OMP_LOOP. For reduction clause
14567 on OMP_LOOP combined with parallel or teams propagate as shared
14568 on the combined construct. Handle OMP_CLAUSE_BIND.
14569 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
14570 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
14571 for constructs from a loop construct to gimplify_scan_omp_clauses.
14572 Don't predetermine iterator linear on OMP_SIMD from loop construct.
14573 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
14574 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
14575 to match the implicit ORT_TARGET construct around whole body.
14576 Temporarily clear in_omp_construct when processing body.
14577 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
14578 etc. temporarily set in_omp_construct when processing body.
14579 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
14580 * omp-low.c (struct omp_context): Add loop_p.
14581 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
14582 in that the original var might be private.
14583 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
14584 (check_omp_nesting_restrictions): Adjust nesting restrictions for
14585 addition of loop construct.
14586 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
14588 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
14589 lastprivate non-addressable iterator of a collapse(1) simd.
14591 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
14593 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
14596 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
14598 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
14599 refer to default conditions. Warn for the 'y' spec which is ignored
14600 by current linkers.
14602 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
14604 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
14605 cpu_supports_info, builtin_hash_struct, builtin_hasher,
14606 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
14607 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
14608 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
14609 init_cumulative_args, rs6000_promote_function_mode,
14610 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
14611 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
14612 rs6000_function_arg_boundary, rs6000_parm_offset,
14613 rs6000_parm_start, rs6000_arg_size,
14614 rs6000_darwin64_record_arg_advance_flush,
14615 rs6000_darwin64_record_arg_advance_recurse,
14616 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
14617 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
14618 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
14619 rs6000_mixed_function_arg, rs6000_psave_function_arg,
14620 rs6000_finish_function_arg, rs6000_function_arg,
14621 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
14622 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
14623 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
14624 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
14625 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
14626 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
14627 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
14628 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
14629 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
14630 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
14631 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
14632 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
14633 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
14634 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
14635 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
14636 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
14637 get_element_number, altivec_expand_vec_set_builtin,
14638 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
14639 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
14640 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
14641 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
14642 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
14643 rs6000_expand_builtin, rs6000_vector_type,
14644 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
14645 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
14646 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
14648 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
14649 cpu_supports_info, builtin_hash_struct, builtin_hasher,
14650 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
14651 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
14652 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
14653 init_cumulative_args, rs6000_promote_function_mode,
14654 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
14655 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
14656 rs6000_function_arg_boundary, rs6000_parm_offset,
14657 rs6000_parm_start, rs6000_arg_size,
14658 rs6000_darwin64_record_arg_advance_flush,
14659 rs6000_darwin64_record_arg_advance_recurse,
14660 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
14661 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
14662 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
14663 rs6000_mixed_function_arg, rs6000_psave_function_arg,
14664 rs6000_finish_function_arg, rs6000_function_arg,
14665 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
14666 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
14667 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
14668 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
14669 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
14670 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
14671 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
14672 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
14673 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
14674 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
14675 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
14676 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
14677 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
14678 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
14679 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
14680 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
14681 get_element_number, altivec_expand_vec_set_builtin,
14682 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
14683 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
14684 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
14685 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
14686 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
14687 rs6000_expand_builtin, rs6000_vector_type,
14688 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
14689 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
14690 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
14691 to here from rs6000.c.
14692 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
14693 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
14694 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
14695 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
14696 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
14697 rs6000_return_in_memory, rs6000_return_in_msb,
14698 rs6000_pass_by_reference, setup_incoming_varargs,
14699 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
14700 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
14701 rs6000_function_arg_padding, rs6000_function_arg,
14702 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
14703 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
14704 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
14705 rs6000_passes_long_double, rs6000_passes_vector,
14706 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
14707 altivec_builtin_mask_for_load) Add declarations.
14708 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
14709 * config/config.gcc: Add new source file rs6000-call.c to garbage
14710 collector and extra_objs.
14712 2019-07-19 Jeff Law <law@redhat.com>
14714 PR tree-optimization/86061
14715 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
14716 strncpy. Drop some trivial dead code.
14717 (maybe_trim_memstar_call): Handle strncpy.
14719 2019-07-19 Richard Biener <rguenther@suse.de>
14721 PR tree-optimization/91211
14722 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
14723 memset encoding size.
14725 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
14728 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
14730 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
14733 * ipa-inline.c (recursive_inlining): Fix limits check.
14735 2019-07-19 Richard Biener <rguenther@suse.de>
14737 PR tree-optimization/91200
14738 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
14739 no PHI nodes in middle-bb.
14741 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
14743 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
14745 * config/aarch64/aarch64-option-extensions.def: Likewise.
14747 2019-07-19 Jakub Jelinek <jakub@redhat.com>
14749 PR middle-end/91190
14750 * function.c (insert_temp_slot_address): Store into the hash table
14751 a copy of address to avoid RTL sharing issues.
14753 2019-07-19 Richard Biener <rguenther@suse.de>
14755 PR tree-optimization/91207
14757 2019-07-17 Richard Biener <rguenther@suse.de>
14759 PR tree-optimization/91178
14760 * tree-vect-stmts.c (get_group_load_store_type): For SLP
14761 loads with a gap larger than the vector size always use
14763 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
14764 avoid loading vectors that are only contained in the gap
14765 and thus are not needed.
14767 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
14769 * config/i386/i386.md (*addqi_2_slp): Remove.
14770 (*<code>qi_2_slp): Ditto.
14772 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
14774 * config/rs6000/predicates.md (prefixed_mem_operand): Call
14775 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
14776 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
14777 Rename function from rs6000_prefixed_address.
14778 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
14780 (TARGET_TOC): Likewise.
14781 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
14783 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
14785 (TARGET_TOC): Likewise.
14786 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
14788 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
14790 (TARGET_TOC): Likewise.
14791 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
14792 check to require -mcmodel=medium for pc-relative addressing.
14793 (create_TOC_reference): Add assertion for TARGET_TOC.
14794 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
14796 (rs6000_emit_move): Likewise.
14797 (TOC_alias_set): Rename TOC alias set static variable from 'set'
14798 to 'TOC_alias_set'.
14799 (get_TOC_alias_set): Likewise.
14800 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
14802 (rs6000_can_eliminate): Likewise.
14803 (rs6000_prefixed_address_mode_p): Rename function from
14804 rs6000_prefixed_address.
14805 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
14806 TARGET_HAS_TOC and not pc-relative.
14807 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
14808 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
14810 (TARGET_TOC): Likewise.
14811 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
14814 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
14817 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
14818 for operand 0. Do not use (match_dup) to match operand 1 with
14819 operand 0. Add check in insn constraint that either input operand
14820 matches operand 0. Use SWI12 mode iterator to also handle
14822 (*and<mode>_1_slp): Ditto.
14823 (*<code>qi_1_slp): Ditto.
14824 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
14825 Do not use (match_dup) to match operand 1 with operand 0. Add
14826 check in insn constraint that operand 1 matches operand 0.
14827 Use SWI12 mode iterator to also handle HImode operands.
14828 (*ashl<mode>3_1_slp): Ditto.
14829 (*<shift_insn><mode>3_1_slp): Ditto.
14830 (*<rotate_insn><mode>3_1_slp): Ditto.
14832 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
14834 * config/arm/arm-builtins.c
14835 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
14836 (arm_expand_unop_builtin): Likewise.
14837 * config/arm/crypto.md
14838 (crypto_sha1h): Convert from define_insn to define_expand.
14839 (crypto_<crypto_pattern>): Likewise.
14840 (crypto_sha1h_lb): New define_insn.
14841 (crypto_<crypto_pattern>_lb): Likewise.
14843 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
14846 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
14847 (vsha1cq_u32): Likewise.
14848 (vsha1pq_u32): Likewise.
14849 (vsha1mq_u32): Likewise.
14850 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
14852 (crypto_sha1c): Correct vec select.
14853 (crypto_sha1m): Likewise.
14854 (crypto_sha1p): Likewise.
14856 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
14858 * config/arm/predicates.md (arm_borrow_operation): New predicate.
14859 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
14860 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
14861 (subdi_zesidi_zesidi): Likewise.
14862 (negdi2_compare, negdi2_insn): Likewise.
14863 (negdi_extensidi): Likewise.
14864 (negdi_zero_extendsidi): Likewise.
14865 (arm_cmpdi_insn): Likewise.
14866 (subsi3_carryin): Use arm_borrow_operation.
14867 (subsi3_carryin_const): Likewise.
14868 (subsi3_carryin_const0): Likewise.
14869 (subsi3_carryin_compare): Likewise.
14870 (subsi3_carryin_compare_const): Likewise.
14871 (subsi3_carryin_compare_const0): Likewise.
14872 (subsi3_carryin_shift): Likewise.
14873 (rsbsi3_carryin_shift): Likewise.
14874 (negsi2_carryin_compare): Likewise.
14876 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
14878 PR tree-optimization/91137
14879 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
14880 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
14881 Init, use and fini the above new field.
14882 (determine_base_object_1): New function.
14883 (determine_base_object): Reimplement using walk_tree.
14885 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
14887 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
14888 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
14889 CLEANUP_FORCE_FAST_DCE is set.
14890 * ifcvt.c (rest_of_handle_if_conversion): Pass
14891 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
14892 if-conversion succeeded.
14894 2019-07-18 Richard Biener <rguenther@suse.de>
14896 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
14897 branches to make code less indented.
14899 2019-07-17 Alexandre Oliva <oliva@adacore.com>
14901 PR middle-end/81824
14902 * attribs.c (decls_mismatched_attributes): Simplify the logic
14903 that avoids duplicates and false positives.
14905 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
14907 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
14908 data into data section when generating PIC code.
14909 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
14910 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
14911 generating code for SOM targets earlier than HP-UX 11. Otherwise,
14912 return 2 for SOM and 0 for other targets.
14914 2019-07-17 Jeff Law <law@redhat.com>
14916 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
14917 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
14918 avoid unexpected switch statement fallthru.
14920 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
14922 * config/i386/i386.md (*add<dwi>3_doubleword):
14923 Remove redundant constraints.
14924 (*add<mode>_1): Ditto.
14927 (*addqi_1_slp): Ditto.
14928 (*add<mode>_2): Ditto.
14929 (*addv<mode>4): Ditto.
14930 (*sub<dwi>3_doubleword): Ditto.
14931 (*sub<mode>_1): Ditto.
14932 (*subqi_1_slp): Ditto.
14933 (*sub<mode>_2): Ditto.
14934 (*subv<mode>4): Ditto.
14935 (*sub<mode>_3): Ditto.
14936 (@add<mode>3_carry): Ditto.
14937 (@sub<mode>3_carry): Ditto.
14938 (*add<mode>3_cc_overflow_1): Ditto.
14939 (*add<mode>3_zext_cc_overflow_2): Ditto.
14941 (*and<mode>_1): Ditto.
14943 (*andqi_1_slp): Ditto.
14945 (*andqi_2_maybe_si): Ditto.
14946 (*and<mode>_2): Ditto.
14947 (*andqi_2_slp): Ditto.
14948 (*<code><mode>_1): Ditto.
14949 (*<code>qi_1): Ditto.
14950 (*<code>qi_1_slp): Ditto.
14951 (*<code><mode>_2): Ditto.
14952 (*<code>qi_2_slp): Ditto.
14954 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
14956 * alias.c (record_component_aliases): Do not simplify pointed-to
14957 types of ODR types.
14959 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
14961 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
14962 partial reg stall on alternative 2.
14964 2019-07-17 Richard Biener <rguenther@suse.de>
14966 PR tree-optimization/91178
14967 * tree-ssa.c (release_defs_bitset): Iterate from higher to
14968 lower SSA names to avoid quadratic behavior in the common case.
14969 * tree-data-ref.c (split_constant_offset): Add limit argument
14970 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
14971 (split_constant_offset_1): Add limit argument and use it to
14972 limit SSA def walking. Optimize the common plus/minus case.
14974 2019-07-17 Richard Biener <rguenther@suse.de>
14976 PR tree-optimization/91178
14977 * tree-vect-stmts.c (get_group_load_store_type): For SLP
14978 loads with a gap larger than the vector size always use
14980 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
14981 avoid loading vectors that are only contained in the gap
14982 and thus are not needed.
14984 2019-07-17 Richard Biener <rguenther@suse.de>
14986 PR tree-optimization/91180
14987 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
14988 computation for memset partial defs.
14990 2019-07-17 Jakub Jelinek <jakub@redhat.com>
14992 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
14993 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
14994 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
14995 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
14996 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
14997 * omp-grid.c (grid_process_grid_body,
14998 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
14999 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
15000 == GF_OMP_FOR_KIND_SIMD.
15001 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
15002 check_omp_nesting_restrictions, scan_omp_1_stmt,
15003 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
15004 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
15005 omp_find_scan): Likewise.
15006 * omp-expand.c (expand_omp_for): Likewise.
15007 * omp-general.c (omp_extract_for_data): Likewise.
15009 PR tree-optimization/91157
15010 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
15011 a vector boolean with scalar mode.
15012 (expand_vector_condition): Handle first operand being a vector boolean
15014 (expand_vector_operations_1): For comparisons, don't bail out early
15015 if the return type is vector boolean with scalar mode, but comparison
15016 operand type is not.
15018 2019-07-17 Richard Biener <rguenther@suse.de>
15020 PR tree-optimization/91181
15021 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
15022 IFN_LOADs as calls.
15024 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
15026 * config/i386/i386.md (*testdi_1): Match CCZmode for
15027 constants that might have the SImode sign bit set.
15028 (*testqi_1_maybe_si): Remove "!" constraint modifier.
15029 Use correct constraints for pentium pairing.
15030 (*test<mode>_1): Ditto.
15032 2019-07-16 Jeff Law <law@redhat.com>
15034 PR rtl-optimization/91173
15035 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
15036 SSA_NAME with a constant value, fold its value into the offset
15037 and clear the base before calling gen_addr_rtx.
15039 2019-07-16 Jakub Jelinek <jakub@redhat.com>
15041 PR rtl-optimization/91164
15042 * dse.c (rest_of_handle_dse): If dead edges have been purged,
15043 invalidate dominance info.
15045 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
15047 * read-md.h (md_reader::record_potential_iterator_use): Add a
15048 file_location parameter.
15049 * read-rtl.c (attribute_use::loc): New field.
15050 (map_attr_string): Take a file_location parameter. Report cases
15051 in which attributes map to multiple distinct values.
15052 (apply_attribute_uses): Update call accordingly.
15053 (md_reader::handle_overloaded_name): Likewise.
15054 (md_reader::apply_iterator_to_string): Likewise. Skip empty
15056 (record_attribute_use): Take a file_location parameter.
15057 Initialize attribute_use::loc.
15058 (md_reader::record_potential_iterator_use): Take a file_location
15059 parameter. Update call to record_attribute_use.
15060 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
15061 (rtx_reader::read_rtx_code): Likewise.
15062 (rtx_reader::read_rtx_operand): Likewise. Record a location
15063 for implicitly-expanded empty strings.
15065 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
15067 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
15068 Use file_location instead of separate fields.
15069 (md_reader::set_md_ptr_loc): Take a file_location instead of a
15070 separate filename and line number.
15071 * read-md.c (ptr_loc): As above.
15072 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
15073 (md_reader::fprint_md_ptr_loc): Likewise.
15074 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
15075 instead of a separate filename and line number.
15076 (md_reader::read_string): Update call accordingly.
15078 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
15080 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
15081 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
15082 leaving the choice between SFDF and P implicit.
15083 (*mov<mode>_update2): Likewise.
15084 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
15085 rather than leaving the choice betweem IBM128 and GPR implicit.
15086 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
15087 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
15089 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
15090 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
15091 * config/rs6000/vsx.md
15092 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
15093 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
15094 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
15095 and VSX_EXTRACT_I implicit.
15097 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
15099 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
15100 Explicitly use <MOVEP1:MODE> for the mode attribute.
15102 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
15105 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
15107 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
15110 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
15111 .machine directive.
15113 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
15115 * config/i386/i386.md (@test<mode>_ccno_1):
15116 Rename from test<mode>_ccno_1.
15117 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
15118 (*testqi_1_maybe_si): Remove modrm attribute.
15119 (*test<mode>_1): Ditto.
15120 * config/i386/i386-expand.c (ix86_split_idivmod): Use
15121 gen_test_ccno_1 and gen_extend_insn.
15123 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
15125 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
15128 2019-07-15 Richard Biener <rguenther@suse.de>
15130 PR middle-end/91162
15131 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
15132 node make sure to replace all uses with something valid.
15134 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
15136 PR tree-optimization/88497
15137 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
15138 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
15139 function undistribute_bitref_for_vector.
15140 (undistribute_bitref_for_vector): New function.
15141 (cleanup_vinfo_map): Likewise.
15142 (sort_by_mach_mode): Likewise.
15144 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
15146 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
15147 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
15148 and testdi_ccno_1 using SWI48 mode attribute.
15149 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
15150 x86_64_szext_general_operand.
15151 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
15152 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
15153 instead of genera_operand mode attribute.
15155 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
15157 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
15158 fopen and fclose to their respective types.
15159 (DotFn.invoke): Ditto.
15161 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
15163 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
15164 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
15165 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
15166 (array_index_predicate): Remove.
15167 (analyze_function_body): Account cost for variable ofsetted array
15169 (estimate_node_size_and_time): Do not compute array index hint.
15170 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
15171 (inline_read_section): Do not read array index hint.
15172 (ipa_fn_summary_write): Do not write array index hint.
15173 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
15174 * ipa-cp.c (hint_time_bonus): Remove.
15175 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
15176 (ipa_fnsummary): Remove array_index.
15177 * ipa-inline.c (want_inline_small_function_p): Do not use
15179 (edge_badness): Likewise.
15180 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
15182 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
15185 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
15186 superfluous "builtin function" phrasing.
15188 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
15190 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
15192 (aliasing_component_refs_walk): Break out from ...
15193 (aliasing_component_refs_p): ... here.
15195 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
15198 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
15199 "builtin function" phrasing.
15201 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15204 * recog.h (temporary_volatile_ok): New class.
15205 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
15206 volatile_ok temporarily to true using temporary_volatile_ok.
15207 * expr.c (emit_block_move_via_cpymem): Likewise.
15208 * optabs.c (maybe_legitimize_operand): Likewise.
15210 2019-07-13 Jakub Jelinek <jakub@redhat.com>
15212 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
15213 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
15214 uses inside of order(concurrent) constructs.
15215 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
15216 OMP_CLAUSE_ORDER is seen.
15217 * omp-low.c (struct omp_context): Add order_concurrent member.
15218 (scan_sharing_clauses): Set ctx->order_concurrent if
15219 OMP_CLAUSE_ORDER is seen.
15220 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
15221 of simd order(concurrent). Diagnose constructs not allowed inside of
15222 for order(concurrent).
15223 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
15224 complaining about static double setjmp (double); or class static
15225 methods or non-global namespace setjmps.
15226 (omp_runtime_api_call): New function.
15227 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
15228 order(concurrent) loops.
15230 2019-07-12 Martin Sebor <msebor@redhat.com>
15232 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
15233 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
15234 * tree-vrp.c (vrp_prop::check_mem_ref): Use
15235 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
15237 2019-07-12 Jan Hubicka <jh@suse.cz>
15239 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
15240 (indirect_refs_may_alias_p): ... here.
15241 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
15242 mem refs in the access paths.
15244 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
15246 PR tree-optimization/89430
15247 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
15248 store elimination for local variable without address escape.
15250 2019-07-12 Jeff Law <law@redhat.com>
15252 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
15253 for the ".far" section.
15255 2019-07-12 Richard Biener <rguenther@suse.de>
15257 PR tree-optimization/91145
15258 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
15261 2019-07-12 Alexandre Oliva <oliva@adacore.com>
15263 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
15264 rather than this_state as the lowering context for the ELSE
15265 seq in a GIMPLE_EH_ELSE.
15267 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
15269 * vector-builder.h (vector_builder::elt): Allow already-supplied
15270 elements to be read back before building is complete.
15272 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
15274 PR rtl-optimization/91136
15275 * df-core.c (ACCESSING REFS): Fix typos in comment.
15276 * resource.c (mark_target_live_reg): Add artificial defs that occur at
15277 the beginning of the block to the initial set of live registers.
15279 2019-07-12 Richard Biener <rguenther@suse.de>
15281 * fold-const.h (get_array_ctor_element_at_index): Adjust.
15282 * fold-const.c (get_array_ctor_element_at_index): Add
15283 ctor_idx output parameter informing the caller where in
15284 the constructor the element was (not) found. Add early exit
15285 for when the ctor is sorted.
15286 * gimple-fold.c (fold_array_ctor_reference): Support constant
15287 folding across multiple array elements.
15289 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
15291 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
15292 doesn't have location, set the current location to the function's end.
15294 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
15296 * config/aarch64/aarch64.md (*compare_condjump<mode>)
15297 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
15298 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
15299 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
15300 * config/aarch64/aarch64-simd.md
15301 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
15302 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
15303 * config/aarch64/aarch64-sve.md
15304 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
15305 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
15307 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
15309 * doc/md.texi: Document that @ patterns can have different
15310 numbers of operands.
15311 * genemit.c (handle_overloaded_gen): Handle this case.
15312 * genopinit.c (handle_overloaded_gen): Likewise.
15313 * gensupport.c (replace_operands_with_dups): Iterate over
15314 the new rtx's format rather than the old one's.
15316 2019-07-12 Jakub Jelinek <jakub@redhat.com>
15318 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
15319 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
15320 order clause entries.
15321 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
15322 * tree-pretty-print.c (dump_omp_clause): Likewise.
15323 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
15325 * omp-low.c (scan_sharing_clauses): Likewise.
15326 * tree-nested.c (convert_nonlocal_omp_clauses,
15327 convert_local_omp_clauses): Likewise.
15329 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
15331 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
15332 fallthrough target of current basic block isn't the placed
15335 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
15338 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
15339 (_mm512_storeu_epi64): Likewise.
15340 (_mm512_loadu_epi32): Likewise.
15341 (_mm512_storeu_epi32): Likewise.
15342 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
15343 (_mm_storeu_epi64): Likewise.
15344 (_mm256_storeu_epi32): Likewise.
15345 (_mm_storeu_epi32): Likewise.
15347 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
15349 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
15351 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
15353 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
15356 2019-07-11 Jakub Jelinek <jakub@redhat.com>
15359 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
15360 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
15361 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
15362 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
15363 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
15364 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
15366 (ufix_truncv2dfv2si2<mask_name>): Change into ...
15367 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
15368 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
15370 (sse2_cvttpd2dq<mask_name>): Change into ...
15371 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
15372 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
15373 (*sse2_cvtpd2dq<mask_name>): Change into ...
15374 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
15375 Add "C" constraint to const0_operand.
15376 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
15377 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
15381 * config/i386/i386-builtin-types.def
15382 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
15383 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
15384 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
15385 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
15386 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
15387 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
15388 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
15389 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
15390 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
15391 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
15392 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
15393 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
15394 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
15395 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
15396 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
15397 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
15398 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
15399 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
15400 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
15401 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
15402 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
15403 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
15404 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
15405 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
15406 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
15407 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
15408 __builtin_ia32_vpdpbusd_v4si_maskz,
15409 __builtin_ia32_vpdpbusds_v16si_mask,
15410 __builtin_ia32_vpdpbusds_v16si_maskz,
15411 __builtin_ia32_vpdpbusds_v8si_mask,
15412 __builtin_ia32_vpdpbusds_v8si_maskz,
15413 __builtin_ia32_vpdpbusds_v4si_mask,
15414 __builtin_ia32_vpdpbusds_v4si_maskz,
15415 __builtin_ia32_vpdpwssd_v16si_mask,
15416 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
15417 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
15418 __builtin_ia32_vpdpwssd_v4si_maskz,
15419 __builtin_ia32_vpdpwssds_v16si_mask,
15420 __builtin_ia32_vpdpwssds_v16si_maskz,
15421 __builtin_ia32_vpdpwssds_v8si_mask,
15422 __builtin_ia32_vpdpwssds_v8si_maskz,
15423 __builtin_ia32_vpdpwssds_v4si_mask,
15424 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
15425 suffixed types rather than *_INT.
15426 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
15427 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
15428 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
15429 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
15430 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
15431 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
15433 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
15435 * tree-vrp.c (intersect_ranges): If we know the intersection is
15436 empty, there is no need to conservatively add anything else to
15439 2019-07-11 Richard Biener <rguenther@suse.de>
15441 PR middle-end/91131
15442 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
15443 when the object is volatile and we have not cleared it even though
15444 there are no nonzero elements.
15446 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
15448 * config/rs6000/predicates.md (cint34_operand): Update
15449 SIGNED_34BIT_OFFSET_P call.
15450 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
15451 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
15452 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
15453 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
15454 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
15456 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
15457 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
15458 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
15459 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
15460 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
15462 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
15464 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
15465 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
15466 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
15467 (DEF_MIN_OSX_VERSION): New.
15469 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
15471 * fold-const.c (fold_relational_const): Fix folding of
15472 vector-to-scalar NE_EXPRs.
15473 (test_vector_folding): Add more tests.
15475 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
15478 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
15479 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
15480 (vec_setv2di_internal): Reexpress as...
15481 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
15482 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
15483 rather than gen_neon_vset_lane<mode>.
15485 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
15488 * lra-constraints.c (process_alt_operands): Don't match user
15489 defined regs only if they are early clobbers.
15491 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
15493 * wide-int.h (wi::lshift): Reject negative values for the fast path.
15495 2019-07-10 Richard Biener <rguenther@suse.de>
15497 PR tree-optimization/91126
15498 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
15499 native encoding offset for BYTES_BIG_ENDIAN.
15500 (vn_reference_lookup_3): Likewise.
15502 2019-07-10 Richard Biener <rguenther@suse.de>
15504 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
15505 LHS whenever possible.
15507 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
15509 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
15510 from ...; work also on duplicated types.
15511 (nonoverlapping_component_refs_since_match): ... here
15512 (ncr_type_uid): Break out from ...
15513 (ncr_compar): ... here; look for TYPE_UID of canonical type if
15515 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
15516 the types and nonoverlapping_component_refs_p_1 to disambiguate.
15518 2019-07-09 Martin Sebor <msebor@redhat.com>
15520 PR tree-optimization/90989
15521 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
15522 optimization to just single character stores.
15524 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
15526 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
15527 Swap operands only once.
15529 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
15531 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
15532 for both call instructions.
15534 2019-07-09 John Darrington <john@darrington.wattle.id.au>
15536 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
15537 rather than GET_MODE_BITSIZE to better handle partial integer modes.
15539 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
15541 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
15542 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
15543 function from rs6000-logue.c back to rs6000.c.
15544 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
15546 2019-07-09 Martin Sebor <msebor@redhat.com>
15549 * auto-profile.c: Change class-key of PODs to struct and others
15551 * basic-block.h: Same.
15552 * bitmap.c (bitmap_alloc): Same.
15554 * builtins.c (expand_builtin_prefetch): Same.
15555 (expand_builtin_interclass_mathfn): Same.
15556 (expand_builtin_strlen): Same.
15557 (expand_builtin_mempcpy_args): Same.
15558 (expand_cmpstr): Same.
15559 (expand_builtin___clear_cache): Same.
15560 (expand_ifn_atomic_bit_test_and): Same.
15561 (expand_builtin_thread_pointer): Same.
15562 (expand_builtin_set_thread_pointer): Same.
15563 * caller-save.c (setup_save_areas): Same.
15564 (replace_reg_with_saved_mem): Same.
15565 (insert_restore): Same.
15566 (insert_save): Same.
15567 (add_used_regs): Same.
15568 * cfg.c (get_bb_copy): Same.
15569 (set_loop_copy): Same.
15572 * cfgexpand.c (alloc_stack_frame_space): Same.
15573 (add_stack_var): Same.
15574 (add_stack_var_conflict): Same.
15575 (add_scope_conflicts_1): Same.
15576 (update_alias_info_with_stack_vars): Same.
15577 (expand_used_vars): Same.
15578 * cfghooks.c (redirect_edge_and_branch_force): Same.
15579 (delete_basic_block): Same.
15580 (split_edge): Same.
15581 (make_forwarder_block): Same.
15582 (force_nonfallthru): Same.
15583 (duplicate_block): Same.
15584 (lv_flush_pending_stmts): Same.
15585 * cfghooks.h: Same.
15586 * cfgloop.c (flow_loops_cfg_dump): Same.
15587 (flow_loop_nested_p): Same.
15588 (superloop_at_depth): Same.
15589 (get_loop_latch_edges): Same.
15590 (flow_loop_dump): Same.
15591 (flow_loops_dump): Same.
15592 (flow_loops_free): Same.
15593 (flow_loop_nodes_find): Same.
15594 (establish_preds): Same.
15595 (flow_loop_tree_node_add): Same.
15596 (flow_loop_tree_node_remove): Same.
15597 (flow_loops_find): Same.
15598 (find_subloop_latch_edge_by_profile): Same.
15599 (find_subloop_latch_edge_by_ivs): Same.
15600 (mfb_redirect_edges_in_set): Same.
15601 (form_subloop): Same.
15602 (merge_latch_edges): Same.
15603 (disambiguate_multiple_latches): Same.
15604 (disambiguate_loops_with_multiple_latches): Same.
15605 (flow_bb_inside_loop_p): Same.
15606 (glb_enum_p): Same.
15607 (get_loop_body_with_size): Same.
15608 (get_loop_body): Same.
15609 (fill_sons_in_loop): Same.
15610 (get_loop_body_in_dom_order): Same.
15611 (get_loop_body_in_custom_order): Same.
15612 (release_recorded_exits): Same.
15613 (get_loop_exit_edges): Same.
15614 (num_loop_branches): Same.
15615 (remove_bb_from_loops): Same.
15616 (find_common_loop): Same.
15617 (delete_loop): Same.
15618 (cancel_loop): Same.
15619 (verify_loop_structure): Same.
15620 (loop_preheader_edge): Same.
15621 (loop_exit_edge_p): Same.
15622 (single_exit): Same.
15623 (loop_exits_to_bb_p): Same.
15624 (loop_exits_from_bb_p): Same.
15625 (get_loop_location): Same.
15626 (record_niter_bound): Same.
15627 (get_estimated_loop_iterations_int): Same.
15628 (max_stmt_executions_int): Same.
15629 (likely_max_stmt_executions_int): Same.
15630 (get_estimated_loop_iterations): Same.
15631 (get_max_loop_iterations): Same.
15632 (get_max_loop_iterations_int): Same.
15633 (get_likely_max_loop_iterations): Same.
15634 * cfgloop.h (simple_loop_desc): Same.
15636 (loop_depth): Same.
15637 (loop_outer): Same.
15638 (loop_iterator::next): Same.
15639 (loop_outermost): Same.
15640 * cfgloopanal.c (mark_irreducible_loops): Same.
15641 (num_loop_insns): Same.
15642 (average_num_loop_insns): Same.
15643 (expected_loop_iterations_unbounded): Same.
15644 (expected_loop_iterations): Same.
15645 (mark_loop_exit_edges): Same.
15646 (single_likely_exit): Same.
15647 * cfgloopmanip.c (fix_bb_placement): Same.
15648 (fix_bb_placements): Same.
15649 (remove_path): Same.
15650 (place_new_loop): Same.
15652 (scale_loop_frequencies): Same.
15653 (scale_loop_profile): Same.
15654 (create_empty_if_region_on_edge): Same.
15655 (create_empty_loop_on_edge): Same.
15658 (fix_loop_placements): Same.
15659 (copy_loop_info): Same.
15660 (duplicate_loop): Same.
15661 (duplicate_subloops): Same.
15662 (loop_redirect_edge): Same.
15663 (can_duplicate_loop_p): Same.
15664 (duplicate_loop_to_header_edge): Same.
15665 (mfb_keep_just): Same.
15666 (has_preds_from_loop): Same.
15667 (create_preheader): Same.
15668 (create_preheaders): Same.
15669 (lv_adjust_loop_entry_edge): Same.
15670 (loop_version): Same.
15671 * cfgloopmanip.h: Same.
15673 * cgraphbuild.c: Same.
15674 * combine.c (make_extraction): Same.
15675 * config/i386/i386-features.c: Same.
15676 * config/i386/i386-features.h: Same.
15677 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
15678 (ix86_emit_outlined_ms2sysv_restore): Same.
15679 (ix86_noce_conversion_profitable_p): Same.
15680 (ix86_init_cost): Same.
15681 (ix86_simd_clone_usable): Same.
15682 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
15684 * coretypes.h: Same.
15685 * data-streamer-in.c (string_for_index): Change class-key of PODs
15686 to struct and others to class.
15687 (streamer_read_indexed_string): Same.
15688 (streamer_read_string): Same.
15689 (bp_unpack_indexed_string): Same.
15690 (bp_unpack_string): Same.
15691 (streamer_read_uhwi): Same.
15692 (streamer_read_hwi): Same.
15693 (streamer_read_gcov_count): Same.
15694 (streamer_read_wide_int): Same.
15695 * data-streamer.h (streamer_write_bitpack): Same.
15696 (bp_unpack_value): Same.
15697 (streamer_write_char_stream): Same.
15698 (streamer_write_hwi_in_range): Same.
15699 (streamer_write_record_start): Same.
15700 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
15701 (add_cross_iteration_register_deps): Same.
15702 (build_intra_loop_deps): Same.
15703 * df-core.c (df_analyze): Same.
15704 (loop_post_order_compute): Same.
15705 (loop_inverted_post_order_compute): Same.
15706 * df-problems.c (df_rd_alloc): Same.
15707 (df_rd_simulate_one_insn): Same.
15708 (df_rd_local_compute): Same.
15709 (df_rd_init_solution): Same.
15710 (df_rd_confluence_n): Same.
15711 (df_rd_transfer_function): Same.
15712 (df_rd_free): Same.
15713 (df_rd_dump_defs_set): Same.
15714 (df_rd_top_dump): Same.
15715 (df_lr_alloc): Same.
15716 (df_lr_reset): Same.
15717 (df_lr_local_compute): Same.
15718 (df_lr_init): Same.
15719 (df_lr_confluence_n): Same.
15720 (df_lr_free): Same.
15721 (df_lr_top_dump): Same.
15722 (df_lr_verify_transfer_functions): Same.
15723 (df_live_alloc): Same.
15724 (df_live_reset): Same.
15725 (df_live_init): Same.
15726 (df_live_confluence_n): Same.
15727 (df_live_finalize): Same.
15728 (df_live_free): Same.
15729 (df_live_top_dump): Same.
15730 (df_live_verify_transfer_functions): Same.
15731 (df_mir_alloc): Same.
15732 (df_mir_reset): Same.
15733 (df_mir_init): Same.
15734 (df_mir_confluence_n): Same.
15735 (df_mir_free): Same.
15736 (df_mir_top_dump): Same.
15737 (df_word_lr_alloc): Same.
15738 (df_word_lr_reset): Same.
15739 (df_word_lr_init): Same.
15740 (df_word_lr_confluence_n): Same.
15741 (df_word_lr_free): Same.
15742 (df_word_lr_top_dump): Same.
15743 (df_md_alloc): Same.
15744 (df_md_simulate_one_insn): Same.
15745 (df_md_reset): Same.
15746 (df_md_init): Same.
15747 (df_md_free): Same.
15748 (df_md_top_dump): Same.
15749 * df-scan.c (df_insn_delete): Same.
15750 (df_insn_rescan): Same.
15751 (df_notes_rescan): Same.
15752 (df_sort_and_compress_mws): Same.
15753 (df_install_mws): Same.
15754 (df_refs_add_to_chains): Same.
15755 (df_ref_create_structure): Same.
15756 (df_ref_record): Same.
15757 (df_def_record_1): Same.
15758 (df_find_hard_reg_defs): Same.
15759 (df_uses_record): Same.
15760 (df_get_conditional_uses): Same.
15761 (df_get_call_refs): Same.
15762 (df_recompute_luids): Same.
15763 (df_get_entry_block_def_set): Same.
15764 (df_entry_block_defs_collect): Same.
15765 (df_get_exit_block_use_set): Same.
15766 (df_exit_block_uses_collect): Same.
15767 (df_mws_verify): Same.
15768 (df_bb_verify): Same.
15769 * df.h (df_scan_get_bb_info): Same.
15770 * doc/tm.texi: Same.
15771 * dse.c (record_store): Same.
15772 * dumpfile.h: Same.
15773 * emit-rtl.c (const_fixed_hasher::equal): Same.
15774 (set_mem_attributes_minus_bitpos): Same.
15775 (change_address): Same.
15776 (adjust_address_1): Same.
15777 (offset_address): Same.
15778 * emit-rtl.h: Same.
15779 * except.c (dw2_build_landing_pads): Same.
15780 (sjlj_emit_dispatch_table): Same.
15781 * explow.c (allocate_dynamic_stack_space): Same.
15782 (emit_stack_probe): Same.
15783 (probe_stack_range): Same.
15784 * expmed.c (store_bit_field_using_insv): Same.
15785 (store_bit_field_1): Same.
15786 (store_integral_bit_field): Same.
15787 (extract_bit_field_using_extv): Same.
15788 (extract_bit_field_1): Same.
15789 (emit_cstore): Same.
15790 * expr.c (emit_block_move_via_cpymem): Same.
15791 (expand_cmpstrn_or_cmpmem): Same.
15792 (set_storage_via_setmem): Same.
15793 (emit_single_push_insn_1): Same.
15794 (expand_assignment): Same.
15795 (store_constructor): Same.
15796 (expand_expr_real_2): Same.
15797 (expand_expr_real_1): Same.
15798 (try_casesi): Same.
15800 * function.c (try_fit_stack_local): Same.
15801 (assign_stack_local_1): Same.
15802 (assign_stack_local): Same.
15803 (cut_slot_from_list): Same.
15804 (insert_slot_to_list): Same.
15805 (max_slot_level): Same.
15806 (move_slot_to_level): Same.
15807 (temp_address_hasher::equal): Same.
15808 (remove_unused_temp_slot_addresses): Same.
15809 (assign_temp): Same.
15810 (combine_temp_slots): Same.
15811 (update_temp_slot_address): Same.
15812 (preserve_temp_slots): Same.
15813 * function.h: Same.
15815 * gcc-rich-location.h: Same.
15817 * genattrtab.c (check_attr_test): Same.
15818 (check_attr_value): Same.
15819 (convert_set_attr_alternative): Same.
15820 (convert_set_attr): Same.
15821 (check_defs): Same.
15822 (copy_boolean): Same.
15823 (get_attr_value): Same.
15824 (expand_delays): Same.
15825 (make_length_attrs): Same.
15827 (make_alternative_compare): Same.
15828 (simplify_test_exp): Same.
15829 (tests_attr_p): Same.
15830 (get_attr_order): Same.
15831 (clear_struct_flag): Same.
15833 (compares_alternatives_p): Same.
15836 (find_attrs_to_cache): Same.
15837 (write_test_expr): Same.
15838 (walk_attr_value): Same.
15839 (write_attr_get): Same.
15840 (eliminate_known_true): Same.
15841 (write_insn_cases): Same.
15842 (write_attr_case): Same.
15843 (write_attr_valueq): Same.
15844 (write_attr_value): Same.
15845 (write_dummy_eligible_delay): Same.
15846 (next_comma_elt): Same.
15848 (make_internal_attr): Same.
15849 (copy_rtx_unchanging): Same.
15850 (gen_insn_reserv): Same.
15851 (check_tune_attr): Same.
15852 (make_automaton_attrs): Same.
15853 (handle_arg): Same.
15854 * genextract.c (gen_insn): Same.
15855 (VEC_char_to_string): Same.
15856 * genmatch.c (print_operand): Same.
15858 (parser::parse_operation): Same.
15859 (parser::parse_capture): Same.
15860 (parser::parse_c_expr): Same.
15861 (parser::parse_simplify): Same.
15863 * genoutput.c (output_operand_data): Same.
15864 (output_get_insn_name): Same.
15865 (compare_operands): Same.
15866 (place_operands): Same.
15867 (process_template): Same.
15868 (validate_insn_alternatives): Same.
15869 (validate_insn_operands): Same.
15870 (gen_expand): Same.
15871 (note_constraint): Same.
15872 * genpreds.c (write_one_predicate_function): Same.
15873 (add_constraint): Same.
15874 (process_define_register_constraint): Same.
15875 (write_lookup_constraint_1): Same.
15876 (write_lookup_constraint_array): Same.
15877 (write_insn_constraint_len): Same.
15878 (write_reg_class_for_constraint_1): Same.
15879 (write_constraint_satisfied_p_array): Same.
15880 * genrecog.c (optimize_subroutine_group): Same.
15881 * gensupport.c (process_define_predicate): Same.
15882 (queue_pattern): Same.
15883 (remove_from_queue): Same.
15884 (process_rtx): Same.
15885 (is_predicable): Same.
15886 (change_subst_attribute): Same.
15887 (subst_pattern_match): Same.
15888 (alter_constraints): Same.
15889 (alter_attrs_for_insn): Same.
15890 (shift_output_template): Same.
15891 (alter_output_for_subst_insn): Same.
15892 (process_one_cond_exec): Same.
15894 (process_define_cond_exec): Same.
15895 (mnemonic_htab_callback): Same.
15896 (gen_mnemonic_attr): Same.
15897 (read_md_rtx): Same.
15898 * ggc-page.c: Same.
15899 * gimple-loop-interchange.cc (dump_reduction): Same.
15900 (dump_induction): Same.
15901 (loop_cand::~loop_cand): Same.
15902 (free_data_refs_with_aux): Same.
15903 (tree_loop_interchange::interchange_loops): Same.
15904 (tree_loop_interchange::map_inductions_to_loop): Same.
15905 (tree_loop_interchange::move_code_to_inner_loop): Same.
15906 (compute_access_stride): Same.
15907 (compute_access_strides): Same.
15908 (proper_loop_form_for_interchange): Same.
15909 (tree_loop_interchange_compute_ddrs): Same.
15910 (prune_datarefs_not_in_loop): Same.
15911 (prepare_data_references): Same.
15912 (pass_linterchange::execute): Same.
15913 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
15914 (unroll_jam_possible_p): Same.
15915 (fuse_loops): Same.
15916 (adjust_unroll_factor): Same.
15917 (tree_loop_unroll_and_jam): Same.
15918 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
15919 (loop_versioning::expensive_stmt_p): Same.
15920 (loop_versioning::version_for_unity): Same.
15921 (loop_versioning::dump_inner_likelihood): Same.
15922 (loop_versioning::find_per_loop_multiplication): Same.
15923 (loop_versioning::analyze_term_using_scevs): Same.
15924 (loop_versioning::record_address_fragment): Same.
15925 (loop_versioning::analyze_expr): Same.
15926 (loop_versioning::analyze_blocks): Same.
15927 (loop_versioning::prune_conditions): Same.
15928 (loop_versioning::merge_loop_info): Same.
15929 (loop_versioning::add_loop_to_queue): Same.
15930 (loop_versioning::decide_whether_loop_is_versionable): Same.
15931 (loop_versioning::make_versioning_decisions): Same.
15932 (loop_versioning::implement_versioning_decisions): Same.
15933 * gimple-ssa-evrp-analyze.c
15934 (evrp_range_analyzer::record_ranges_from_phis): Same.
15935 * gimple-ssa-store-merging.c (split_store::split_store): Same.
15936 (count_multiple_uses): Same.
15937 (split_group): Same.
15938 (imm_store_chain_info::output_merged_store): Same.
15939 (pass_store_merging::process_store): Same.
15940 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
15941 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
15943 (alloca_call_type): Same.
15944 (pass_walloca::execute): Same.
15945 * gimple-streamer-in.c (input_phi): Same.
15946 (input_gimple_stmt): Same.
15947 * gimple-streamer.h: Same.
15948 * godump.c (go_force_record_alignment): Same.
15949 (go_format_type): Same.
15950 (go_output_type): Same.
15951 (go_output_fndecl): Same.
15952 (go_output_typedef): Same.
15953 (keyword_hash_init): Same.
15954 (find_dummy_types): Same.
15955 * graph.c (draw_cfg_nodes_no_loops): Same.
15956 (draw_cfg_nodes_for_loop): Same.
15957 * hard-reg-set.h (hard_reg_set_iter_next): Same.
15958 * hsa-brig.c: Same.
15959 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
15960 * hsa-dump.c (dump_hsa_cfun): Same.
15961 * hsa-gen.c (gen_function_def_parameters): Same.
15962 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
15963 * input.c (dump_line_table_statistics): Same.
15964 (test_lexer): Same.
15966 * internal-fn.c (get_multi_vector_move): Same.
15967 (expand_load_lanes_optab_fn): Same.
15968 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
15969 (expand_GOMP_SIMT_EXIT): Same.
15970 (expand_GOMP_SIMT_LAST_LANE): Same.
15971 (expand_GOMP_SIMT_ORDERED_PRED): Same.
15972 (expand_GOMP_SIMT_VOTE_ANY): Same.
15973 (expand_GOMP_SIMT_XCHG_BFLY): Same.
15974 (expand_GOMP_SIMT_XCHG_IDX): Same.
15975 (expand_addsub_overflow): Same.
15976 (expand_neg_overflow): Same.
15977 (expand_mul_overflow): Same.
15978 (expand_call_mem_ref): Same.
15979 (expand_mask_load_optab_fn): Same.
15980 (expand_scatter_store_optab_fn): Same.
15981 (expand_gather_load_optab_fn): Same.
15982 * ipa-cp.c (ipa_get_parm_lattices): Same.
15983 (print_all_lattices): Same.
15984 (ignore_edge_p): Same.
15985 (build_toporder_info): Same.
15986 (free_toporder_info): Same.
15987 (push_node_to_stack): Same.
15988 (ipcp_lattice<valtype>::set_contains_variable): Same.
15989 (set_agg_lats_to_bottom): Same.
15990 (ipcp_bits_lattice::meet_with): Same.
15991 (set_single_call_flag): Same.
15992 (initialize_node_lattices): Same.
15993 (ipa_get_jf_ancestor_result): Same.
15994 (ipcp_verify_propagated_values): Same.
15995 (propagate_scalar_across_jump_function): Same.
15996 (propagate_context_across_jump_function): Same.
15997 (propagate_bits_across_jump_function): Same.
15998 (ipa_vr_operation_and_type_effects): Same.
15999 (propagate_vr_across_jump_function): Same.
16000 (set_check_aggs_by_ref): Same.
16001 (set_chain_of_aglats_contains_variable): Same.
16002 (merge_aggregate_lattices): Same.
16003 (agg_pass_through_permissible_p): Same.
16004 (propagate_aggs_across_jump_function): Same.
16005 (call_passes_through_thunk_p): Same.
16006 (propagate_constants_across_call): Same.
16007 (devirtualization_time_bonus): Same.
16008 (good_cloning_opportunity_p): Same.
16009 (context_independent_aggregate_values): Same.
16010 (gather_context_independent_values): Same.
16011 (perform_estimation_of_a_value): Same.
16012 (estimate_local_effects): Same.
16013 (value_topo_info<valtype>::add_val): Same.
16014 (add_all_node_vals_to_toposort): Same.
16015 (value_topo_info<valtype>::propagate_effects): Same.
16016 (ipcp_propagate_stage): Same.
16017 (ipcp_discover_new_direct_edges): Same.
16018 (same_node_or_its_all_contexts_clone_p): Same.
16019 (cgraph_edge_brings_value_p): Same.
16020 (gather_edges_for_value): Same.
16021 (create_specialized_node): Same.
16022 (find_more_scalar_values_for_callers_subset): Same.
16023 (find_more_contexts_for_caller_subset): Same.
16024 (copy_plats_to_inter): Same.
16025 (intersect_aggregates_with_edge): Same.
16026 (find_aggregate_values_for_callers_subset): Same.
16027 (cgraph_edge_brings_all_agg_vals_for_node): Same.
16028 (decide_about_value): Same.
16029 (decide_whether_version_node): Same.
16030 (spread_undeadness): Same.
16031 (identify_dead_nodes): Same.
16032 (ipcp_store_vr_results): Same.
16033 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
16034 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
16035 (redirect_to_unreachable): Same.
16036 (edge_set_predicate): Same.
16037 (evaluate_conditions_for_known_args): Same.
16038 (evaluate_properties_for_edge): Same.
16039 (ipa_fn_summary_t::duplicate): Same.
16040 (ipa_call_summary_t::duplicate): Same.
16041 (dump_ipa_call_summary): Same.
16042 (ipa_dump_fn_summary): Same.
16043 (eliminated_by_inlining_prob): Same.
16044 (set_cond_stmt_execution_predicate): Same.
16045 (set_switch_stmt_execution_predicate): Same.
16046 (compute_bb_predicates): Same.
16047 (will_be_nonconstant_expr_predicate): Same.
16048 (phi_result_unknown_predicate): Same.
16049 (analyze_function_body): Same.
16050 (compute_fn_summary): Same.
16051 (estimate_edge_devirt_benefit): Same.
16052 (estimate_edge_size_and_time): Same.
16053 (estimate_calls_size_and_time): Same.
16054 (estimate_node_size_and_time): Same.
16055 (remap_edge_change_prob): Same.
16056 (remap_edge_summaries): Same.
16057 (ipa_merge_fn_summary_after_inlining): Same.
16058 (ipa_fn_summary_generate): Same.
16059 (inline_read_section): Same.
16060 (ipa_fn_summary_read): Same.
16061 (ipa_fn_summary_write): Same.
16062 * ipa-fnsummary.h: Same.
16063 * ipa-hsa.c (ipa_hsa_read_section): Same.
16064 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
16065 * ipa-icf.c (sem_function::param_used_p): Same.
16066 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
16067 * ipa-inline.c (edge_badness): Same.
16068 (inline_small_functions): Same.
16069 * ipa-polymorphic-call.c
16070 (ipa_polymorphic_call_context::stream_out): Same.
16071 * ipa-predicate.c (predicate::remap_after_duplication): Same.
16072 (predicate::remap_after_inlining): Same.
16073 (predicate::stream_out): Same.
16074 * ipa-predicate.h: Same.
16075 * ipa-profile.c (ipa_profile_read_summary): Same.
16076 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
16077 (count_formal_params): Same.
16078 (ipa_dump_param): Same.
16079 (ipa_alloc_node_params): Same.
16080 (ipa_print_node_jump_functions_for_edge): Same.
16081 (ipa_print_node_jump_functions): Same.
16082 (ipa_load_from_parm_agg): Same.
16083 (get_ancestor_addr_info): Same.
16084 (ipa_compute_jump_functions_for_edge): Same.
16085 (ipa_analyze_virtual_call_uses): Same.
16086 (ipa_analyze_stmt_uses): Same.
16087 (ipa_analyze_params_uses_in_bb): Same.
16088 (update_jump_functions_after_inlining): Same.
16089 (try_decrement_rdesc_refcount): Same.
16090 (ipa_impossible_devirt_target): Same.
16091 (update_indirect_edges_after_inlining): Same.
16092 (combine_controlled_uses_counters): Same.
16093 (ipa_edge_args_sum_t::duplicate): Same.
16094 (ipa_write_jump_function): Same.
16095 (ipa_write_indirect_edge_info): Same.
16096 (ipa_write_node_info): Same.
16097 (ipa_read_edge_info): Same.
16098 (ipa_prop_read_section): Same.
16099 (read_replacements_section): Same.
16100 * ipa-prop.h (ipa_get_param_count): Same.
16101 (ipa_get_param): Same.
16102 (ipa_get_type): Same.
16103 (ipa_get_param_move_cost): Same.
16104 (ipa_set_param_used): Same.
16105 (ipa_get_controlled_uses): Same.
16106 (ipa_set_controlled_uses): Same.
16107 (ipa_get_cs_argument_count): Same.
16108 * ipa-pure-const.c (analyze_function): Same.
16109 (pure_const_read_summary): Same.
16111 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
16112 * ipa-split.c (test_nonssa_use): Same.
16113 (dump_split_point): Same.
16114 (dominated_by_forbidden): Same.
16115 (split_part_set_ssa_name_p): Same.
16116 (find_split_points): Same.
16117 * ira-build.c (finish_loop_tree_nodes): Same.
16118 (low_pressure_loop_node_p): Same.
16119 * ira-color.c (ira_reuse_stack_slot): Same.
16121 * ira.c (setup_reg_equiv): Same.
16122 (print_insn_chain): Same.
16124 * loop-doloop.c (doloop_condition_get): Same.
16126 (record_reg_sets): Same.
16127 (doloop_optimize): Same.
16128 * loop-init.c (loop_optimizer_init): Same.
16129 (fix_loop_structure): Same.
16130 * loop-invariant.c (merge_identical_invariants): Same.
16131 (compute_always_reached): Same.
16132 (find_exits): Same.
16133 (may_assign_reg_p): Same.
16134 (find_invariants_bb): Same.
16135 (find_invariants_body): Same.
16136 (replace_uses): Same.
16137 (can_move_invariant_reg): Same.
16138 (free_inv_motion_data): Same.
16139 (move_single_loop_invariants): Same.
16140 (change_pressure): Same.
16141 (mark_ref_regs): Same.
16142 (calculate_loop_reg_pressure): Same.
16143 * loop-iv.c (biv_entry_hasher::equal): Same.
16144 (iv_extend_to_rtx_code): Same.
16145 (check_iv_ref_table_size): Same.
16146 (clear_iv_info): Same.
16147 (latch_dominating_def): Same.
16148 (iv_get_reaching_def): Same.
16149 (iv_constant): Same.
16155 (get_biv_step): Same.
16157 (analyzed_for_bivness_p): Same.
16158 (record_biv): Same.
16159 (iv_analyze_biv): Same.
16160 (iv_analyze_expr): Same.
16161 (iv_analyze_def): Same.
16162 (iv_analyze_op): Same.
16163 (iv_analyze): Same.
16164 (iv_analyze_result): Same.
16166 (eliminate_implied_conditions): Same.
16167 (simplify_using_initial_values): Same.
16168 (shorten_into_mode): Same.
16169 (canonicalize_iv_subregs): Same.
16170 (determine_max_iter): Same.
16171 (check_simple_exit): Same.
16172 (find_simple_exit): Same.
16173 (get_simple_loop_desc): Same.
16174 * loop-unroll.c (report_unroll): Same.
16175 (decide_unrolling): Same.
16176 (unroll_loops): Same.
16177 (loop_exit_at_end_p): Same.
16178 (decide_unroll_constant_iterations): Same.
16179 (unroll_loop_constant_iterations): Same.
16180 (compare_and_jump_seq): Same.
16181 (unroll_loop_runtime_iterations): Same.
16182 (decide_unroll_stupid): Same.
16183 (unroll_loop_stupid): Same.
16184 (referenced_in_one_insn_in_loop_p): Same.
16185 (reset_debug_uses_in_loop): Same.
16186 (analyze_iv_to_split_insn): Same.
16187 * lra-eliminations.c (lra_debug_elim_table): Same.
16188 (setup_can_eliminate): Same.
16190 (lra_get_elimination_hard_regno): Same.
16191 (lra_eliminate_regs_1): Same.
16192 (eliminate_regs_in_insn): Same.
16193 (update_reg_eliminate): Same.
16194 (init_elimination): Same.
16195 (lra_eliminate): Same.
16197 * lra-lives.c (initiate_live_solver): Same.
16198 * lra-remat.c (create_remat_bb_data): Same.
16199 * lra-spills.c (lra_spill): Same.
16200 * lra.c (lra_set_insn_recog_data): Same.
16201 (lra_set_used_insn_alternative_by_uid): Same.
16202 (init_reg_info): Same.
16203 (expand_reg_info): Same.
16204 * lto-cgraph.c (output_symtab): Same.
16205 (read_identifier): Same.
16206 (get_alias_symbol): Same.
16207 (input_node): Same.
16208 (input_varpool_node): Same.
16210 (input_edge): Same.
16211 (input_cgraph_1): Same.
16212 (input_refs): Same.
16213 (input_symtab): Same.
16214 (input_offload_tables): Same.
16215 (output_cgraph_opt_summary): Same.
16216 (input_edge_opt_summary): Same.
16217 (input_cgraph_opt_section): Same.
16218 * lto-section-in.c (lto_free_raw_section_data): Same.
16219 (lto_create_simple_input_block): Same.
16220 (lto_free_function_in_decl_state_for_node): Same.
16221 * lto-streamer-in.c (lto_tag_check_set): Same.
16222 (lto_location_cache::revert_location_cache): Same.
16223 (lto_location_cache::input_location): Same.
16224 (lto_input_location): Same.
16225 (stream_input_location_now): Same.
16226 (lto_input_tree_ref): Same.
16227 (lto_input_eh_catch_list): Same.
16228 (input_eh_region): Same.
16229 (lto_init_eh): Same.
16230 (make_new_block): Same.
16232 (fixup_call_stmt_edges): Same.
16233 (input_struct_function_base): Same.
16234 (input_function): Same.
16235 (lto_read_body_or_constructor): Same.
16236 (lto_read_tree_1): Same.
16237 (lto_read_tree): Same.
16238 (lto_input_scc): Same.
16239 (lto_input_tree_1): Same.
16240 (lto_input_toplevel_asms): Same.
16241 (lto_input_mode_table): Same.
16242 (lto_reader_init): Same.
16243 (lto_data_in_create): Same.
16244 * lto-streamer-out.c (output_cfg): Same.
16245 * lto-streamer.h: Same.
16246 * modulo-sched.c (duplicate_insns_of_cycles): Same.
16247 (generate_prolog_epilog): Same.
16248 (mark_loop_unsched): Same.
16249 (dump_insn_location): Same.
16250 (loop_canon_p): Same.
16251 (sms_schedule): Same.
16252 * omp-expand.c (expand_omp_for_ordered_loops): Same.
16253 (expand_omp_for_generic): Same.
16254 (expand_omp_for_static_nochunk): Same.
16255 (expand_omp_for_static_chunk): Same.
16256 (expand_omp_simd): Same.
16257 (expand_omp_taskloop_for_inner): Same.
16258 (expand_oacc_for): Same.
16259 (expand_omp_atomic_pipeline): Same.
16260 (mark_loops_in_oacc_kernels_region): Same.
16261 * omp-offload.c (oacc_xform_loop): Same.
16262 * omp-simd-clone.c (simd_clone_adjust): Same.
16263 * optabs-query.c (get_traditional_extraction_insn): Same.
16264 * optabs.c (expand_vector_broadcast): Same.
16265 (expand_binop_directly): Same.
16266 (expand_twoval_unop): Same.
16267 (expand_twoval_binop): Same.
16268 (expand_unop_direct): Same.
16269 (emit_indirect_jump): Same.
16270 (emit_conditional_move): Same.
16271 (emit_conditional_neg_or_complement): Same.
16272 (emit_conditional_add): Same.
16273 (vector_compare_rtx): Same.
16274 (expand_vec_perm_1): Same.
16275 (expand_vec_perm_const): Same.
16276 (expand_vec_cond_expr): Same.
16277 (expand_vec_series_expr): Same.
16278 (maybe_emit_atomic_exchange): Same.
16279 (maybe_emit_sync_lock_test_and_set): Same.
16280 (expand_atomic_compare_and_swap): Same.
16281 (expand_atomic_load): Same.
16282 (expand_atomic_store): Same.
16283 (maybe_emit_op): Same.
16284 (valid_multiword_target_p): Same.
16285 (create_integer_operand): Same.
16286 (maybe_legitimize_operand_same_code): Same.
16287 (maybe_legitimize_operand): Same.
16288 (create_convert_operand_from_type): Same.
16289 (can_reuse_operands_p): Same.
16290 (maybe_legitimize_operands): Same.
16291 (maybe_gen_insn): Same.
16292 (maybe_expand_insn): Same.
16293 (maybe_expand_jump_insn): Same.
16294 (expand_insn): Same.
16295 * optabs.h (create_expand_operand): Same.
16296 (create_fixed_operand): Same.
16297 (create_output_operand): Same.
16298 (create_input_operand): Same.
16299 (create_convert_operand_to): Same.
16300 (create_convert_operand_from): Same.
16302 * poly-int.h: Same.
16303 * predict.c (optimize_insn_for_speed_p): Same.
16304 (optimize_loop_for_size_p): Same.
16305 (optimize_loop_for_speed_p): Same.
16306 (optimize_loop_nest_for_speed_p): Same.
16307 (get_base_value): Same.
16308 (predicted_by_loop_heuristics_p): Same.
16309 (predict_extra_loop_exits): Same.
16310 (predict_loops): Same.
16311 (predict_paths_for_bb): Same.
16312 (predict_paths_leading_to): Same.
16313 (propagate_freq): Same.
16314 (pass_profile::execute): Same.
16316 * profile-count.c (profile_count::differs_from_p): Same.
16317 (profile_probability::differs_lot_from_p): Same.
16318 * profile-count.h: Same.
16319 * profile.c (branch_prob): Same.
16320 * regrename.c (free_chain_data): Same.
16321 (mark_conflict): Same.
16322 (create_new_chain): Same.
16323 (merge_overlapping_regs): Same.
16324 (init_rename_info): Same.
16325 (merge_chains): Same.
16326 (regrename_analyze): Same.
16327 (regrename_do_replace): Same.
16328 (scan_rtx_reg): Same.
16329 (record_out_operands): Same.
16330 (build_def_use): Same.
16331 * regrename.h: Same.
16333 * reload1.c (init_reload): Same.
16334 (maybe_fix_stack_asms): Same.
16335 (copy_reloads): Same.
16336 (count_pseudo): Same.
16337 (count_spilled_pseudo): Same.
16339 (find_reload_regs): Same.
16340 (select_reload_regs): Same.
16341 (spill_hard_reg): Same.
16342 (fixup_eh_region_note): Same.
16343 (set_reload_reg): Same.
16344 (allocate_reload_reg): Same.
16345 (compute_reload_subreg_offset): Same.
16346 (reload_adjust_reg_for_icode): Same.
16347 (emit_input_reload_insns): Same.
16348 (emit_output_reload_insns): Same.
16349 (do_input_reload): Same.
16350 (inherit_piecemeal_p): Same.
16352 * sanopt.c (maybe_get_dominating_check): Same.
16353 (maybe_optimize_ubsan_ptr_ifn): Same.
16354 (can_remove_asan_check): Same.
16355 (maybe_optimize_asan_check_ifn): Same.
16356 (sanopt_optimize_walker): Same.
16357 * sched-deps.c (add_dependence_list): Same.
16358 (chain_to_prev_insn): Same.
16359 (add_insn_mem_dependence): Same.
16360 (create_insn_reg_set): Same.
16361 (maybe_extend_reg_info_p): Same.
16362 (sched_analyze_reg): Same.
16363 (sched_analyze_1): Same.
16364 (get_implicit_reg_pending_clobbers): Same.
16365 (chain_to_prev_insn_p): Same.
16366 (deps_analyze_insn): Same.
16367 (deps_start_bb): Same.
16368 (sched_free_deps): Same.
16370 (init_deps_reg_last): Same.
16372 * sched-ebb.c: Same.
16373 * sched-int.h: Same.
16374 * sched-rgn.c (add_branch_dependences): Same.
16375 (concat_insn_mem_list): Same.
16377 (sched_rgn_compute_dependencies): Same.
16378 * sel-sched-ir.c (reset_target_context): Same.
16379 (copy_deps_context): Same.
16380 (init_id_from_df): Same.
16381 (has_dependence_p): Same.
16382 (change_loops_latches): Same.
16383 (bb_top_order_comparator): Same.
16384 (make_region_from_loop_preheader): Same.
16385 (sel_init_pipelining): Same.
16386 (get_loop_nest_for_rgn): Same.
16387 (make_regions_from_the_rest): Same.
16388 (sel_is_loop_preheader_p): Same.
16389 * sel-sched-ir.h (inner_loop_header_p): Same.
16390 (get_all_loop_exits): Same.
16391 * selftest.h: Same.
16392 * sese.c (sese_build_liveouts): Same.
16393 (sese_insert_phis_for_liveouts): Same.
16394 * sese.h (defined_in_sese_p): Same.
16395 * sreal.c (sreal::stream_out): Same.
16397 * streamer-hooks.h: Same.
16398 * target-globals.c (save_target_globals): Same.
16399 * target-globals.h: Same.
16400 * target.def: Same.
16402 * targhooks.c (default_has_ifunc_p): Same.
16403 (default_empty_mask_is_expensive): Same.
16404 (default_init_cost): Same.
16405 * targhooks.h: Same.
16407 * tree-affine.c (aff_combination_mult): Same.
16408 (aff_combination_expand): Same.
16409 (aff_combination_constant_multiple_p): Same.
16410 * tree-affine.h: Same.
16411 * tree-cfg.c (build_gimple_cfg): Same.
16412 (replace_loop_annotate_in_block): Same.
16413 (replace_uses_by): Same.
16415 (dump_cfg_stats): Same.
16416 (gimple_duplicate_sese_region): Same.
16417 (gimple_duplicate_sese_tail): Same.
16418 (move_block_to_fn): Same.
16419 (replace_block_vars_by_duplicates): Same.
16420 (move_sese_region_to_fn): Same.
16421 (print_loops_bb): Same.
16422 (print_loop): Same.
16423 (print_loops): Same.
16425 (debug_loops): Same.
16426 * tree-cfg.h: Same.
16427 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
16428 (chrec_fold_multiply_poly_poly): Same.
16429 (chrec_evaluate): Same.
16430 (chrec_component_in_loop_num): Same.
16431 (reset_evolution_in_loop): Same.
16432 (is_multivariate_chrec): Same.
16433 (chrec_contains_symbols): Same.
16434 (nb_vars_in_chrec): Same.
16435 (chrec_convert_1): Same.
16436 (chrec_convert_aggressive): Same.
16437 * tree-chrec.h: Same.
16438 * tree-core.h: Same.
16439 * tree-data-ref.c (dump_data_dependence_relation): Same.
16440 (canonicalize_base_object_address): Same.
16441 (data_ref_compare_tree): Same.
16442 (prune_runtime_alias_test_list): Same.
16443 (get_segment_min_max): Same.
16444 (create_intersect_range_checks): Same.
16445 (conflict_fn_no_dependence): Same.
16446 (object_address_invariant_in_loop_p): Same.
16447 (analyze_ziv_subscript): Same.
16448 (analyze_siv_subscript_cst_affine): Same.
16449 (analyze_miv_subscript): Same.
16450 (analyze_overlapping_iterations): Same.
16451 (build_classic_dist_vector_1): Same.
16452 (add_other_self_distances): Same.
16453 (same_access_functions): Same.
16454 (build_classic_dir_vector): Same.
16455 (subscript_dependence_tester_1): Same.
16456 (subscript_dependence_tester): Same.
16457 (access_functions_are_affine_or_constant_p): Same.
16458 (get_references_in_stmt): Same.
16459 (loop_nest_has_data_refs): Same.
16460 (graphite_find_data_references_in_stmt): Same.
16461 (find_data_references_in_bb): Same.
16462 (get_base_for_alignment): Same.
16463 (find_loop_nest_1): Same.
16464 (find_loop_nest): Same.
16465 * tree-data-ref.h (dr_alignment): Same.
16466 (ddr_dependence_level): Same.
16467 * tree-if-conv.c (fold_build_cond_expr): Same.
16468 (add_to_predicate_list): Same.
16469 (add_to_dst_predicate_list): Same.
16470 (phi_convertible_by_degenerating_args): Same.
16471 (idx_within_array_bound): Same.
16472 (all_preds_critical_p): Same.
16473 (pred_blocks_visited_p): Same.
16474 (predicate_bbs): Same.
16475 (build_region): Same.
16476 (if_convertible_loop_p_1): Same.
16477 (is_cond_scalar_reduction): Same.
16478 (predicate_scalar_phi): Same.
16479 (remove_conditions_and_labels): Same.
16480 (combine_blocks): Same.
16481 (version_loop_for_if_conversion): Same.
16482 (versionable_outer_loop_p): Same.
16483 (ifcvt_local_dce): Same.
16484 (tree_if_conversion): Same.
16485 (pass_if_conversion::gate): Same.
16486 * tree-if-conv.h: Same.
16487 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
16488 * tree-loop-distribution.c (bb_top_order_cmp): Same.
16490 (stmt_has_scalar_dependences_outside_loop): Same.
16491 (copy_loop_before): Same.
16492 (create_bb_after_loop): Same.
16493 (const_with_all_bytes_same): Same.
16494 (generate_memset_builtin): Same.
16495 (generate_memcpy_builtin): Same.
16496 (destroy_loop): Same.
16497 (build_rdg_partition_for_vertex): Same.
16498 (compute_access_range): Same.
16499 (data_ref_segment_size): Same.
16500 (latch_dominated_by_data_ref): Same.
16501 (compute_alias_check_pairs): Same.
16502 (fuse_memset_builtins): Same.
16503 (finalize_partitions): Same.
16504 (find_seed_stmts_for_distribution): Same.
16505 (prepare_perfect_loop_nest): Same.
16506 * tree-parloops.c (lambda_transform_legal_p): Same.
16507 (loop_parallel_p): Same.
16508 (reduc_stmt_res): Same.
16509 (add_field_for_name): Same.
16510 (create_call_for_reduction_1): Same.
16511 (replace_uses_in_bb_by): Same.
16512 (transform_to_exit_first_loop_alt): Same.
16513 (try_transform_to_exit_first_loop_alt): Same.
16514 (transform_to_exit_first_loop): Same.
16516 (gen_parallel_loop): Same.
16517 (gather_scalar_reductions): Same.
16518 (get_omp_data_i_param): Same.
16519 (try_create_reduction_list): Same.
16520 (oacc_entry_exit_single_gang): Same.
16521 (parallelize_loops): Same.
16522 * tree-pass.h: Same.
16523 * tree-predcom.c (determine_offset): Same.
16524 (last_always_executed_block): Same.
16525 (split_data_refs_to_components): Same.
16526 (suitable_component_p): Same.
16527 (valid_initializer_p): Same.
16528 (find_looparound_phi): Same.
16529 (insert_looparound_copy): Same.
16530 (add_looparound_copies): Same.
16531 (determine_roots_comp): Same.
16532 (predcom_tmp_var): Same.
16533 (initialize_root_vars): Same.
16534 (initialize_root_vars_store_elim_1): Same.
16535 (initialize_root_vars_store_elim_2): Same.
16536 (finalize_eliminated_stores): Same.
16537 (initialize_root_vars_lm): Same.
16538 (remove_stmt): Same.
16539 (determine_unroll_factor): Same.
16540 (execute_pred_commoning_cbck): Same.
16541 (base_names_in_chain_on): Same.
16542 (combine_chains): Same.
16543 (pcom_stmt_dominates_stmt_p): Same.
16544 (try_combine_chains): Same.
16545 (prepare_initializers_chain_store_elim): Same.
16546 (prepare_initializers_chain): Same.
16547 (prepare_initializers): Same.
16548 (prepare_finalizers_chain): Same.
16549 (prepare_finalizers): Same.
16550 (insert_init_seqs): Same.
16551 * tree-scalar-evolution.c (loop_phi_node_p): Same.
16552 (compute_overall_effect_of_inner_loop): Same.
16553 (add_to_evolution_1): Same.
16554 (add_to_evolution): Same.
16555 (follow_ssa_edge_binary): Same.
16556 (follow_ssa_edge_expr): Same.
16557 (backedge_phi_arg_p): Same.
16558 (follow_ssa_edge_in_condition_phi_branch): Same.
16559 (follow_ssa_edge_in_condition_phi): Same.
16560 (follow_ssa_edge_inner_loop_phi): Same.
16561 (follow_ssa_edge): Same.
16562 (analyze_evolution_in_loop): Same.
16563 (analyze_initial_condition): Same.
16564 (interpret_loop_phi): Same.
16565 (interpret_condition_phi): Same.
16566 (interpret_rhs_expr): Same.
16567 (interpret_expr): Same.
16568 (interpret_gimple_assign): Same.
16569 (analyze_scalar_evolution_1): Same.
16570 (analyze_scalar_evolution): Same.
16571 (analyze_scalar_evolution_for_address_of): Same.
16572 (get_instantiated_value_entry): Same.
16573 (loop_closed_phi_def): Same.
16574 (instantiate_scev_name): Same.
16575 (instantiate_scev_poly): Same.
16576 (instantiate_scev_binary): Same.
16577 (instantiate_scev_convert): Same.
16578 (instantiate_scev_not): Same.
16579 (instantiate_scev_r): Same.
16580 (instantiate_scev): Same.
16581 (resolve_mixers): Same.
16582 (initialize_scalar_evolutions_analyzer): Same.
16583 (scev_reset_htab): Same.
16584 (scev_reset): Same.
16585 (derive_simple_iv_with_niters): Same.
16586 (simple_iv_with_niters): Same.
16587 (expression_expensive_p): Same.
16588 (final_value_replacement_loop): Same.
16589 * tree-scalar-evolution.h (block_before_loop): Same.
16590 * tree-ssa-address.h: Same.
16591 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
16592 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
16593 (record_edge_info): Same.
16594 * tree-ssa-live.c (var_map_base_fini): Same.
16595 (remove_unused_locals): Same.
16596 * tree-ssa-live.h: Same.
16597 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
16598 (pass_ch_vect::execute): Same.
16599 (pass_ch::process_loop_p): Same.
16600 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
16601 (movement_possibility): Same.
16602 (outermost_invariant_loop): Same.
16604 (determine_max_movement): Same.
16605 (invariantness_dom_walker::before_dom_children): Same.
16606 (move_computations): Same.
16607 (may_move_till): Same.
16608 (force_move_till_op): Same.
16609 (force_move_till): Same.
16610 (memref_free): Same.
16611 (record_mem_ref_loc): Same.
16612 (set_ref_stored_in_loop): Same.
16613 (mark_ref_stored): Same.
16614 (sort_bbs_in_loop_postorder_cmp): Same.
16615 (sort_locs_in_loop_postorder_cmp): Same.
16616 (analyze_memory_references): Same.
16617 (mem_refs_may_alias_p): Same.
16618 (find_ref_loc_in_loop_cmp): Same.
16619 (rewrite_mem_ref_loc::operator): Same.
16620 (first_mem_ref_loc_1::operator): Same.
16621 (sm_set_flag_if_changed::operator): Same.
16622 (execute_sm_if_changed_flag_set): Same.
16623 (execute_sm): Same.
16624 (hoist_memory_references): Same.
16625 (ref_always_accessed::operator): Same.
16626 (refs_independent_p): Same.
16627 (record_dep_loop): Same.
16628 (ref_indep_loop_p_1): Same.
16629 (ref_indep_loop_p): Same.
16630 (can_sm_ref_p): Same.
16631 (find_refs_for_sm): Same.
16632 (loop_suitable_for_sm): Same.
16633 (store_motion_loop): Same.
16634 (store_motion): Same.
16635 (fill_always_executed_in): Same.
16636 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
16637 (estimated_unrolled_size): Same.
16638 (loop_edge_to_cancel): Same.
16639 (remove_exits_and_undefined_stmts): Same.
16640 (remove_redundant_iv_tests): Same.
16641 (unloop_loops): Same.
16642 (estimated_peeled_sequence_size): Same.
16643 (try_peel_loop): Same.
16644 (canonicalize_loop_induction_variables): Same.
16645 (canonicalize_induction_variables): Same.
16646 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
16648 (stmt_after_inc_pos): Same.
16649 (contains_abnormal_ssa_name_p): Same.
16650 (niter_for_exit): Same.
16653 (find_givs_in_bb): Same.
16654 (find_induction_variables): Same.
16655 (find_interesting_uses_cond): Same.
16656 (outermost_invariant_loop_for_expr): Same.
16657 (idx_find_step): Same.
16658 (add_candidate_1): Same.
16659 (add_iv_candidate_derived_from_uses): Same.
16660 (alloc_use_cost_map): Same.
16661 (prepare_decl_rtl): Same.
16662 (generic_predict_doloop_p): Same.
16663 (computation_cost): Same.
16664 (determine_common_wider_type): Same.
16665 (get_computation_aff_1): Same.
16666 (get_use_type): Same.
16667 (determine_group_iv_cost_address): Same.
16669 (difference_cannot_overflow_p): Same.
16670 (may_eliminate_iv): Same.
16671 (determine_set_costs): Same.
16672 (cheaper_cost_pair): Same.
16673 (compare_cost_pair): Same.
16674 (iv_ca_cand_for_group): Same.
16675 (iv_ca_recount_cost): Same.
16676 (iv_ca_set_remove_invs): Same.
16677 (iv_ca_set_no_cp): Same.
16678 (iv_ca_set_add_invs): Same.
16679 (iv_ca_set_cp): Same.
16680 (iv_ca_add_group): Same.
16681 (iv_ca_cost): Same.
16682 (iv_ca_compare_deps): Same.
16683 (iv_ca_delta_reverse): Same.
16684 (iv_ca_delta_commit): Same.
16685 (iv_ca_cand_used_p): Same.
16686 (iv_ca_delta_free): Same.
16688 (iv_ca_free): Same.
16689 (iv_ca_dump): Same.
16690 (iv_ca_extend): Same.
16691 (iv_ca_narrow): Same.
16692 (iv_ca_prune): Same.
16693 (cheaper_cost_with_cand): Same.
16694 (iv_ca_replace): Same.
16695 (try_add_cand_for): Same.
16696 (get_initial_solution): Same.
16697 (try_improve_iv_set): Same.
16698 (find_optimal_iv_set_1): Same.
16699 (create_new_iv): Same.
16700 (rewrite_use_compare): Same.
16701 (remove_unused_ivs): Same.
16702 (determine_scaling_factor): Same.
16703 * tree-ssa-loop-ivopts.h: Same.
16704 * tree-ssa-loop-manip.c (create_iv): Same.
16705 (compute_live_loop_exits): Same.
16706 (add_exit_phi): Same.
16707 (add_exit_phis): Same.
16708 (find_uses_to_rename_use): Same.
16709 (find_uses_to_rename_def): Same.
16710 (find_uses_to_rename_in_loop): Same.
16711 (rewrite_into_loop_closed_ssa): Same.
16712 (check_loop_closed_ssa_bb): Same.
16713 (split_loop_exit_edge): Same.
16714 (ip_end_pos): Same.
16715 (ip_normal_pos): Same.
16716 (copy_phi_node_args): Same.
16717 (gimple_duplicate_loop_to_header_edge): Same.
16718 (can_unroll_loop_p): Same.
16719 (determine_exit_conditions): Same.
16720 (scale_dominated_blocks_in_loop): Same.
16721 (niter_for_unrolled_loop): Same.
16722 (tree_transform_and_unroll_loop): Same.
16723 (rewrite_all_phi_nodes_with_iv): Same.
16724 * tree-ssa-loop-manip.h: Same.
16725 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
16726 (number_of_iterations_ne): Same.
16727 (assert_no_overflow_lt): Same.
16728 (assert_loop_rolls_lt): Same.
16729 (number_of_iterations_lt): Same.
16730 (adjust_cond_for_loop_until_wrap): Same.
16731 (tree_simplify_using_condition): Same.
16732 (simplify_using_initial_conditions): Same.
16733 (simplify_using_outer_evolutions): Same.
16734 (loop_only_exit_p): Same.
16735 (ssa_defined_by_minus_one_stmt_p): Same.
16736 (number_of_iterations_popcount): Same.
16737 (number_of_iterations_exit): Same.
16738 (find_loop_niter): Same.
16739 (finite_loop_p): Same.
16740 (chain_of_csts_start): Same.
16741 (get_val_for): Same.
16742 (loop_niter_by_eval): Same.
16743 (derive_constant_upper_bound_ops): Same.
16744 (do_warn_aggressive_loop_optimizations): Same.
16745 (record_estimate): Same.
16746 (get_cst_init_from_scev): Same.
16747 (record_nonwrapping_iv): Same.
16748 (idx_infer_loop_bounds): Same.
16749 (infer_loop_bounds_from_ref): Same.
16750 (infer_loop_bounds_from_array): Same.
16751 (infer_loop_bounds_from_pointer_arith): Same.
16752 (infer_loop_bounds_from_signedness): Same.
16753 (bound_index): Same.
16754 (discover_iteration_bound_by_body_walk): Same.
16755 (maybe_lower_iteration_bound): Same.
16756 (estimate_numbers_of_iterations): Same.
16757 (estimated_loop_iterations): Same.
16758 (estimated_loop_iterations_int): Same.
16759 (max_loop_iterations): Same.
16760 (max_loop_iterations_int): Same.
16761 (likely_max_loop_iterations): Same.
16762 (likely_max_loop_iterations_int): Same.
16763 (estimated_stmt_executions_int): Same.
16764 (max_stmt_executions): Same.
16765 (likely_max_stmt_executions): Same.
16766 (estimated_stmt_executions): Same.
16767 (stmt_dominates_stmt_p): Same.
16768 (nowrap_type_p): Same.
16769 (loop_exits_before_overflow): Same.
16770 (scev_var_range_cant_overflow): Same.
16771 (scev_probably_wraps_p): Same.
16772 (free_numbers_of_iterations_estimates): Same.
16773 * tree-ssa-loop-niter.h: Same.
16774 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
16775 (idx_analyze_ref): Same.
16776 (analyze_ref): Same.
16777 (gather_memory_references_ref): Same.
16778 (mark_nontemporal_store): Same.
16779 (emit_mfence_after_loop): Same.
16780 (may_use_storent_in_loop_p): Same.
16781 (mark_nontemporal_stores): Same.
16782 (should_unroll_loop_p): Same.
16783 (volume_of_dist_vector): Same.
16784 (add_subscript_strides): Same.
16785 (self_reuse_distance): Same.
16786 (insn_to_prefetch_ratio_too_small_p): Same.
16787 * tree-ssa-loop-split.c (split_at_bb_p): Same.
16788 (patch_loop_exit): Same.
16789 (find_or_create_guard_phi): Same.
16790 (easy_exit_values): Same.
16791 (connect_loop_phis): Same.
16792 (connect_loops): Same.
16793 (compute_new_first_bound): Same.
16794 (split_loop): Same.
16795 (tree_ssa_split_loops): Same.
16796 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
16797 (is_maybe_undefined): Same.
16798 (tree_may_unswitch_on): Same.
16799 (simplify_using_entry_checks): Same.
16800 (tree_unswitch_single_loop): Same.
16801 (tree_unswitch_loop): Same.
16802 (tree_unswitch_outer_loop): Same.
16803 (empty_bb_without_guard_p): Same.
16804 (used_outside_loop_p): Same.
16805 (get_vop_from_header): Same.
16806 (hoist_guard): Same.
16807 * tree-ssa-loop.c (gate_oacc_kernels): Same.
16808 (get_lsm_tmp_name): Same.
16809 * tree-ssa-loop.h: Same.
16810 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
16811 (build_and_add_sum): Same.
16812 (no_side_effect_bb): Same.
16814 (linearize_expr): Same.
16815 (should_break_up_subtract): Same.
16816 (linearize_expr_tree): Same.
16817 * tree-ssa-scopedtables.c: Same.
16818 * tree-ssa-scopedtables.h: Same.
16819 * tree-ssa-structalias.c (condense_visit): Same.
16820 (label_visit): Same.
16821 (dump_pred_graph): Same.
16822 (perform_var_substitution): Same.
16823 (move_complex_constraints): Same.
16824 (remove_preds_and_fake_succs): Same.
16825 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
16826 (determine_bb_domination_status): Same.
16827 (duplicate_thread_path): Same.
16828 (thread_through_all_blocks): Same.
16829 * tree-ssa-threadupdate.h: Same.
16830 * tree-streamer-in.c (streamer_read_string_cst): Same.
16831 (input_identifier): Same.
16832 (unpack_ts_type_common_value_fields): Same.
16833 (unpack_ts_block_value_fields): Same.
16834 (unpack_ts_translation_unit_decl_value_fields): Same.
16835 (unpack_ts_omp_clause_value_fields): Same.
16836 (streamer_read_tree_bitfields): Same.
16837 (streamer_alloc_tree): Same.
16838 (lto_input_ts_common_tree_pointers): Same.
16839 (lto_input_ts_vector_tree_pointers): Same.
16840 (lto_input_ts_poly_tree_pointers): Same.
16841 (lto_input_ts_complex_tree_pointers): Same.
16842 (lto_input_ts_decl_minimal_tree_pointers): Same.
16843 (lto_input_ts_decl_common_tree_pointers): Same.
16844 (lto_input_ts_decl_non_common_tree_pointers): Same.
16845 (lto_input_ts_decl_with_vis_tree_pointers): Same.
16846 (lto_input_ts_field_decl_tree_pointers): Same.
16847 (lto_input_ts_function_decl_tree_pointers): Same.
16848 (lto_input_ts_type_common_tree_pointers): Same.
16849 (lto_input_ts_type_non_common_tree_pointers): Same.
16850 (lto_input_ts_list_tree_pointers): Same.
16851 (lto_input_ts_vec_tree_pointers): Same.
16852 (lto_input_ts_exp_tree_pointers): Same.
16853 (lto_input_ts_block_tree_pointers): Same.
16854 (lto_input_ts_binfo_tree_pointers): Same.
16855 (lto_input_ts_constructor_tree_pointers): Same.
16856 (lto_input_ts_omp_clause_tree_pointers): Same.
16857 (streamer_read_tree_body): Same.
16858 * tree-streamer.h: Same.
16859 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
16860 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
16861 (vect_analyze_possibly_independent_ddr): Same.
16862 (vect_analyze_data_ref_dependence): Same.
16863 (vect_compute_data_ref_alignment): Same.
16864 (vect_enhance_data_refs_alignment): Same.
16865 (vect_analyze_data_ref_access): Same.
16866 (vect_check_gather_scatter): Same.
16867 (vect_find_stmt_data_reference): Same.
16868 (vect_create_addr_base_for_vector_ref): Same.
16869 (vect_setup_realignment): Same.
16870 (vect_supportable_dr_alignment): Same.
16871 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
16872 (adjust_phi_and_debug_stmts): Same.
16873 (vect_set_loop_mask): Same.
16874 (add_preheader_seq): Same.
16875 (vect_maybe_permute_loop_masks): Same.
16876 (vect_set_loop_masks_directly): Same.
16877 (vect_set_loop_condition_masked): Same.
16878 (vect_set_loop_condition_unmasked): Same.
16879 (slpeel_duplicate_current_defs_from_edges): Same.
16880 (slpeel_add_loop_guard): Same.
16881 (slpeel_can_duplicate_loop_p): Same.
16882 (create_lcssa_for_virtual_phi): Same.
16884 (vect_update_ivs_after_vectorizer): Same.
16885 (vect_gen_vector_loop_niters_mult_vf): Same.
16886 (slpeel_update_phi_nodes_for_loops): Same.
16887 (slpeel_update_phi_nodes_for_guard1): Same.
16888 (find_guard_arg): Same.
16889 (slpeel_update_phi_nodes_for_guard2): Same.
16890 (slpeel_update_phi_nodes_for_lcssa): Same.
16891 (vect_do_peeling): Same.
16892 (vect_create_cond_for_alias_checks): Same.
16893 (vect_loop_versioning): Same.
16894 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
16895 (vect_inner_phi_in_double_reduction_p): Same.
16896 (vect_analyze_scalar_cycles_1): Same.
16897 (vect_fixup_scalar_cycles_with_patterns): Same.
16898 (vect_get_loop_niters): Same.
16899 (bb_in_loop_p): Same.
16900 (vect_get_max_nscalars_per_iter): Same.
16901 (vect_verify_full_masking): Same.
16902 (vect_compute_single_scalar_iteration_cost): Same.
16903 (vect_analyze_loop_form_1): Same.
16904 (vect_analyze_loop_form): Same.
16905 (vect_active_double_reduction_p): Same.
16906 (vect_analyze_loop_operations): Same.
16907 (neutral_op_for_slp_reduction): Same.
16908 (vect_is_simple_reduction): Same.
16909 (vect_model_reduction_cost): Same.
16910 (get_initial_def_for_reduction): Same.
16911 (get_initial_defs_for_reduction): Same.
16912 (vect_create_epilog_for_reduction): Same.
16913 (vectorize_fold_left_reduction): Same.
16914 (vectorizable_reduction): Same.
16915 (vectorizable_induction): Same.
16916 (vectorizable_live_operation): Same.
16917 (loop_niters_no_overflow): Same.
16918 (vect_get_loop_mask): Same.
16919 (vect_transform_loop_stmt): Same.
16920 (vect_transform_loop): Same.
16921 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
16922 (vect_determine_precisions): Same.
16923 (vect_pattern_recog_1): Same.
16924 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
16925 * tree-vect-stmts.c (stmt_vectype): Same.
16926 (process_use): Same.
16927 (vect_init_vector_1): Same.
16928 (vect_truncate_gather_scatter_offset): Same.
16929 (get_group_load_store_type): Same.
16930 (vect_build_gather_load_calls): Same.
16931 (vect_get_strided_load_store_ops): Same.
16932 (vectorizable_simd_clone_call): Same.
16933 (vectorizable_store): Same.
16934 (permute_vec_elements): Same.
16935 (vectorizable_load): Same.
16936 (vect_transform_stmt): Same.
16937 (supportable_widening_operation): Same.
16938 * tree-vectorizer.c (vec_info::replace_stmt): Same.
16939 (vec_info::free_stmt_vec_info): Same.
16940 (vect_free_loop_info_assumptions): Same.
16941 (vect_loop_vectorized_call): Same.
16942 (set_uid_loop_bbs): Same.
16943 (vectorize_loops): Same.
16944 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
16945 * tree.c (add_tree_to_fld_list): Same.
16946 (fld_type_variant_equal_p): Same.
16947 (fld_decl_context): Same.
16948 (fld_incomplete_type_of): Same.
16949 (free_lang_data_in_binfo): Same.
16950 (need_assembler_name_p): Same.
16951 (find_decls_types_r): Same.
16952 (get_eh_types_for_runtime): Same.
16953 (find_decls_types_in_eh_region): Same.
16954 (find_decls_types_in_node): Same.
16955 (assign_assembler_name_if_needed): Same.
16956 * value-prof.c (stream_out_histogram_value): Same.
16957 * value-prof.h: Same.
16958 * var-tracking.c (use_narrower_mode): Same.
16959 (prepare_call_arguments): Same.
16960 (vt_expand_loc_callback): Same.
16961 (resolve_expansions_pending_recursion): Same.
16962 (vt_expand_loc): Same.
16963 * varasm.c (const_hash_1): Same.
16964 (compare_constant): Same.
16965 (tree_output_constant_def): Same.
16966 (simplify_subtraction): Same.
16967 (get_pool_constant): Same.
16968 (output_constant_pool_2): Same.
16969 (output_constant_pool_1): Same.
16970 (mark_constants_in_pattern): Same.
16971 (mark_constant_pool): Same.
16972 (get_section_anchor): Same.
16973 * vr-values.c (compare_range_with_value): Same.
16974 (vr_values::extract_range_from_phi_node): Same.
16975 * vr-values.h: Same.
16976 * web.c (unionfind_union): Same.
16977 * wide-int.h: Same.
16979 2019-07-09 Martin Sebor <msebor@redhat.com>
16982 * align.h: Change class-key from class to struct and vice versa
16983 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
16984 * alloc-pool.h: Same.
16985 * asan.c (shadow_mem_size): Same.
16986 * auto-profile.c: Same.
16987 * basic-block.h: Same.
16989 * cfgexpand.c (set_rtl): Same.
16990 (expand_one_stack_var_at): Same.
16991 * cfghooks.h: Same.
16994 * config/i386/i386.h: Same.
16995 * df-problems.c (df_print_bb_index): Same.
16997 * df.h (df_single_use): Same.
16998 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
16999 (layout::annotation_line_showed_range_p): Same.
17000 (get_printed_columns): Same.
17001 (correction::ensure_terminated): Same.
17002 (line_corrections::~line_corrections): Same.
17005 * dump-context.h: Same.
17006 * dumpfile.h: Same.
17007 * dwarf2out.c: Same.
17008 * edit-context.c: Same.
17009 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
17011 * function.c (assign_stack_local): Same.
17012 * function.h: Same.
17014 * gcov.c (block_info::block_info): Same.
17015 * genattrtab.c: Same.
17016 * genextract.c: Same.
17017 * genmatch.c (comparison_code_p): Same.
17018 (id_base::id_base): Same.
17019 (decision_tree::print): Same.
17020 * genoutput.c: Same.
17021 * genpreds.c (write_one_predicate_function): Same.
17022 * genrecog.c (validate_pattern): Same.
17023 (find_operand_positions): Same.
17024 (optimize_subroutine_group): Same.
17025 (merge_pattern_transition::merge_pattern_transition): Same.
17026 (merge_pattern_info::merge_pattern_info): Same.
17027 (merge_state_result::merge_state_result): Same.
17028 (merge_into_state): Same.
17029 * gensupport.c: Same.
17030 * gensupport.h: Same.
17031 * ggc-common.c (init_ggc_heuristics): Same.
17032 * ggc-tests.c (test_union): Same.
17033 * gimple-loop-interchange.cc (dump_induction): Same.
17034 * gimple-loop-versioning.cc: Same.
17035 * gimple-match.h (gimple_match_cond::any_else): Same.
17036 * gimple-ssa-backprop.c: Same.
17037 * gimple-ssa-sprintf.c: Same.
17038 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
17040 (store_immediate_info::store_immediate_info): Same.
17041 (merged_store_group::apply_stores): Same.
17042 (get_location_for_stmts): Same.
17043 * gimple-ssa-strength-reduction.c: Same.
17044 * gimple-ssa-warn-alloca.c: Same.
17045 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
17046 * godump.c (go_type_decl): Same.
17047 * hash-map-tests.c (test_map_of_strings_to_int): Same.
17048 * hash-map.h: Same.
17049 * hash-set-tests.c (test_set_of_strings): Same.
17050 * hsa-brig.c: Same.
17051 * hsa-common.h: Same.
17052 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
17053 * input.c (assert_loceq): Same.
17056 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
17057 * ipa-fnsummary.h: Same.
17058 * ipa-inline.h: Same.
17059 * ipa-prop.h: Same.
17060 * ipa-split.c (visit_bb): Same.
17061 * ira-int.h (minmax_set_iter_next): Same.
17062 * loop-invariant.c: Same.
17064 * lra-eliminations.c: Same.
17066 * lra-lives.c (mark_regno_dead): Same.
17067 * lra-remat.c: Same.
17068 * lra-spills.c: Same.
17069 * lto-streamer.h: Same.
17070 * mem-stats.h: Same.
17071 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
17072 * omp-low.c (omp_clause_aligned_alignment): Same.
17073 * optabs-query.h (get_vcond_eq_icode): Same.
17075 * opts.c (wrap_help): Same.
17076 * poly-int.h: Same.
17077 * predict.c (predict_paths_leading_to_edge): Same.
17078 * pretty-print.h: Same.
17079 * profile-count.h: Same.
17081 * read-rtl-function.c: Same.
17084 * regrename.c: Same.
17085 * regrename.h: Same.
17087 * rtl-iter.h: Same.
17088 * rtl.h (costs_add_n_insns): Same.
17090 * sched-int.h: Same.
17091 * sel-sched-ir.h: Same.
17092 * selftest.h: Same.
17093 * sese.h (vec_find): Same.
17095 * target-globals.h: Same.
17096 * tree-affine.c (aff_combination_find_elt): Same.
17097 * tree-affine.h: Same.
17098 * tree-data-ref.h: Same.
17099 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
17100 * tree-predcom.c: Same.
17101 * tree-scalar-evolution.c (find_var_scev_info): Same.
17102 * tree-ssa-alias.h: Same.
17103 * tree-ssa-ccp.c: Same.
17104 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
17105 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
17106 (rewrite_mem_refs): Same.
17107 (execute_sm_if_changed): Same.
17108 (hoist_memory_references): Same.
17109 * tree-ssa-loop-ivopts.c (operator<=): Same.
17110 * tree-ssa-loop.h: Same.
17111 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
17112 * tree-ssa-structalias.c: Same.
17113 * tree-switch-conversion.h (cluster::cluster): Same.
17114 (simple_cluster::simple_cluster): Same.
17115 * tree-vect-patterns.c (type_conversion_p): Same.
17116 * tree-vectorizer.c (dump_stmt_cost): Same.
17117 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
17118 * tree.c (protected_set_expr_location): Same.
17119 * tree.h (desired_pro_or_demotion_p): Same.
17120 (fndecl_built_in_p): Same.
17121 * unique-ptr-tests.cc: Same.
17122 * var-tracking.c (delete_variable_part): Same.
17123 * varasm.c (assemble_real): Same.
17124 (tree_output_constant_def): Same.
17126 * wide-int-bitmask.h: Same.
17127 * wide-int.h (decompose): Same.
17129 2019-07-09 Richard Biener <rguenther@suse.de>
17131 PR tree-optimization/91114
17132 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
17133 find a vector type isn't fatal.
17135 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
17137 * config/aarch64/aarch64-simd.md
17138 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
17139 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
17140 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
17141 (*aarch64_crypto_aese_fused,
17142 *aarch64_crypto_aesd_fused): Update to new definition.
17143 * config/aarch64/aarch64.c
17144 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
17146 2019-07-09 Richard Biener <rguenther@suse.de>
17148 * gimple-match.h (gimple_match_op::resimplify): New.
17149 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
17150 gimple_resimplify4, gimple_resimplify5): Remove.
17151 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
17152 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
17154 (gimple_match_op::resimplify): New.
17155 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
17156 according to availability. Use gimple_match_op::resimplify.
17158 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
17160 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
17162 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
17164 * config/arm/crypto.md:
17165 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
17166 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
17167 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
17168 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
17170 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
17171 * config/arm/aarch-common-protos.h
17172 (aarch_crypto_can_dual_issue): Remove.
17173 * config/arm/aarch-common.c
17174 (aarch_crypto_can_dual_issue): Likewise.
17175 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
17176 * config/arm/cortex-a53.md: Likewise.
17177 * config/arm/cortex-a57.md: Likewise.
17178 * config/arm/iterators.md:
17179 (CRYPTO_BINARY): Redefine.
17180 (CRYPTO_UNARY): Removed.
17181 (CRYPTO_AES, CRYPTO_AESMC): New.
17183 2019-07-09 Richard Biener <rguenther@suse.de>
17185 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
17186 (vn_reference_lookup_3): If the main ref has no access path recorded
17187 but orig_ref has use it to do access-path based disambiguation.
17188 (vn_reference_lookup_pieces): Adjust.
17189 (vn_reference_lookup): Pass down original ref if we valueized.
17191 2019-07-09 Martin Liska <mliska@suse.cz>
17193 * doc/extend.texi: Document influence on loop
17196 2019-07-09 Martin Liska <mliska@suse.cz>
17198 * lto-compress.c (lto_normalized_zstd_level): Do not use
17199 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
17200 of libzstd. One can use 0 as a default compression level.
17202 2019-07-09 Martin Liska <mliska@suse.cz>
17204 * doc/invoke.texi: Add link from -fprofile-dir option.
17205 Use better wording for 'gcno filename'.
17207 2019-07-08 Martin Sebor <msebor@redhat.com>
17209 PR middle-end/71924
17210 PR middle-end/90549
17211 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
17213 (args_loc_t): New type.
17214 (args_loc_t, locmap_t): same.
17215 (diag_returned_locals): New function.
17216 (is_addr_local): Same.
17217 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
17218 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
17219 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
17221 2019-07-08 Jakub Jelinek <jakub@redhat.com>
17223 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
17224 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
17225 and casts in offset when different, both through gimple stmts
17226 and through trees. Rewritten using loops to minimize code duplication
17229 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
17231 * emit-rtl.c (set_insn_locations): New function moved from...
17232 * function.c (set_insn_locations): ...here.
17233 * ira-emit.c (emit_moves): Propagate location of the first instruction
17234 to the inserted move instructions.
17235 * reg-stack.c (compensate_edge): Set the location if the sequence is
17236 inserted on the edge.
17237 * rtl.h (set_insn_locations): Declare.
17239 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
17241 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
17242 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
17245 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
17247 PR rtl-optimization/88233
17248 * common.opt (fsplit-wide-types-early): New option.
17249 * common/config/rs6000/rs6000-common.c
17250 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
17252 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
17253 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
17254 flag_split_wide_types_early.
17255 (pass_data_lower_subreg3): New.
17256 (pass_lower_subreg3): New.
17257 (make_pass_lower_subreg3): New.
17258 * passes.def (pass_lower_subreg2): Move after the loop passes.
17259 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
17260 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
17261 the pass pipeline; its previous place is taken by ...
17262 (make_pass_lower_subreg3): ... this.
17264 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
17266 * config/s390/s390.c (s390_shift_truncation_mask): Define.
17267 (TARGET_SHIFT_TRUNCATION_MASK): Define.
17269 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
17271 * config/s390/constraints.md: Add new jsc constraint.
17272 * config/s390/predicates.md: New predicates.
17273 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
17274 * config/s390/s390.c (s390_valid_shift_count): New function.
17275 (print_shift_count_operand): Use s390_valid_shift_count.
17276 (print_operand): Likewise.
17277 * config/s390/s390.md: Use new predicate.
17278 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
17279 * config/s390/vector.md: Use new predicate.
17281 2019-07-08 Andrew Waterman <andrew@sifive.com>
17282 Jim Wilson <jimw@sifive.com>
17284 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
17285 bitsize instead of BITS_PER_WORD.
17287 2019-07-08 Martin Liska <mliska@suse.cz>
17289 * collect2.c (defined): Revert to before r254460.
17290 (scan_prog_file): Revert to before r254460.
17292 2019-07-08 Richard Biener <rguenther@suse.de>
17294 PR tree-optimization/83518
17295 * tree-ssa-sccvn.c: Include splay-tree.h.
17296 (struct pd_range, struct pd_data): New.
17297 (struct vn_walk_cb_data): Add data to track partial definitions.
17298 (vn_walk_cb_data::~vn_walk_cb_data): New.
17299 (vn_walk_cb_data::push_partial_def): New.
17300 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
17301 (vn_reference_lookup_2): When partial defs are registered give up.
17302 (vn_reference_lookup_3): Track partial defs for memset and
17303 constructor zeroing and for defs from constants.
17305 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
17307 * doc/install.texi (bootstrap-Og): Document.
17309 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
17311 * config/riscv/pic.md (*local_pic_load_s<mode>)
17312 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
17313 referenced by <mode>, giving...
17314 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
17315 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
17316 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
17317 use <X:MODE> for the mode attribute.
17319 2019-07-07 Jeff Law <law@redhat.com>
17321 PR tree-optimization/91090
17322 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
17323 in handling of ranges to simplify switch statements.
17325 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
17327 * config/darwin.c (darwin_override_options): Make a final check on PIC
17330 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
17332 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
17333 on for kernel code.
17335 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
17338 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
17339 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
17340 instead of matching them to "l" output operands.
17342 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
17344 * config/mips/mips.c (mips_split_move): Zero-initialize addr
17345 and check whether addr.reg is nonnull before using it.
17347 2019-07-06 Jakub Jelinek <jakub@redhat.com>
17349 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
17350 ctx->for_simd_scan_phase simd copy the outer var to the privatized
17351 variable(s). For conditional lastprivate look through outer
17352 GIMPLE_OMP_SCAN context.
17353 (lower_omp_1): For conditional lastprivate look through outer
17354 GIMPLE_OMP_SCAN context.
17356 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
17357 member to combined_into_simd_safelen1.
17358 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
17359 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
17360 clauses if ctx->combined_into_simd_safelen1 put statements after the
17361 predicate conditionalized block rather than into it.
17363 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
17365 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
17367 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
17368 Make the choice of <mode> explicit, giving...
17369 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
17371 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
17373 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
17374 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
17376 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
17377 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
17378 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
17379 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
17380 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
17381 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
17382 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
17383 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
17384 (*avx512f_scatterdi<mode>): Likewise.
17385 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
17387 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
17389 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
17390 specify the mode iterator referenced by <mode>, giving...
17391 (*push1_h8300hs_<QHI:mode>): ...this.
17393 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
17395 * config/gcn/gcn-valu.md
17396 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
17397 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
17398 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
17399 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
17400 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
17401 but using the _exec comparison patterns.
17402 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
17403 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
17404 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
17405 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
17406 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
17407 but using the _exec comparison patterns.
17409 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
17411 * config/arm/sync.md
17412 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
17413 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
17414 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
17415 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
17416 <SIDI:cas_cmp_str>.
17418 2019-07-06 Jakub Jelinek <jakub@redhat.com>
17420 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
17421 (maybe_lookup_ctx): Add forward declaration.
17422 (omp_find_scan): Likewise. Walk into body of simd if composited
17423 with worksharing loop.
17424 (scan_omp_simd_scan): New function.
17425 (scan_omp_1_stmt): Call it.
17426 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
17427 ctx->for_simd_scan_phase.
17428 (lower_rec_input_clauses): Do much less work for inscan reductions
17429 in ctx->for_simd_scan_phase is_simd regions.
17430 (lower_omp_scan): Set is_simd also on simd constructs composited
17431 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
17432 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
17433 emit their body after in simd constructs composited with worksharing
17435 (lower_omp_for_scan): Handle worksharing loop composited with simd.
17437 * omp-low.c (omp_find_scan): Make static.
17438 (lower_omp_for_scan): Fix order of merge arguments in input phase of
17439 the second loop, var2 represents the first partial sum and so needs
17440 to go before rprivb[ivar].
17442 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
17444 * config/rs6000/rs6000-logue.c: Remove unused code.
17446 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
17448 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
17450 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
17453 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
17454 check with a frame laid out check.
17456 2019-07-05 Richard Biener <rguenther@suse.de>
17458 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
17459 when comparing against a store with possibly the same value.
17461 2019-07-05 Richard Biener <rguenther@suse.de>
17463 PR tree-optimization/91091
17464 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
17465 (walk_non_aliased_vuses): Likewise.
17466 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
17467 (get_continuation_for_phi): New tbaa_p parameter and pass
17469 (walk_non_aliased_vuses): Likewise.
17470 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
17471 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
17472 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
17474 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
17475 (adjust_offsets_for_equal_base_address): New function.
17476 (vn_reference_lookup_3): Use it to catch more base equivalences.
17477 Handle and pass down tbaa_p flag.
17478 (vn_reference_lookup_pieces): Adjust.
17479 (vn_reference_lookup): Remove alias-set altering, instead pass
17480 down false as tbaa_p.
17482 2019-07-05 Richard Biener <rguenther@suse.de>
17484 PR tree-optimization/91091
17485 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
17486 accesses can happen with -fno-strict-aliasing.
17488 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
17490 * tree-ssa-alias.c (alias_stats): Add
17491 nonoverlapping_component_refs_since_match_p_must_overlap.
17492 (dump_alias_stats): Print it.
17493 (nonoverlapping_component_refs_since_match_p): Add early exit.
17494 (nonoverlapping_component_refs_p): Do not account early exit.
17496 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
17498 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
17499 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
17500 (emit_eh_dispatch): Delete.
17501 (lower_catch): Emit the eh_dispatch manually and set the location of
17502 the first catch statement onto it.
17503 (lower_eh_filter): Emit the eh_dispatch manually and set location.
17504 (lower_eh_dispatch): Propagate location.
17505 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
17506 (eliminate_build): Likewise.
17508 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
17510 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
17511 phi nodes if possible.
17512 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
17513 location info on the newly created statement.
17514 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
17515 newly created increment if needed.
17517 2019-07-04 Jakub Jelinek <jakub@redhat.com>
17519 PR middle-end/78884
17520 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
17521 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
17522 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
17523 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
17524 ctx->add_safelen1 is set.
17526 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
17527 GOMP_loop_start at the start of second worksharing loop in a scan.
17528 For nowait, don't emit GOMP_loop_end_nowait at the end of first
17529 worksharing loop in a scan even if there are conditional lastprivates,
17530 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
17532 2019-07-04 Jan Hubicka <jh@suse.cz>
17534 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
17535 Fix check for match in the ref walk.
17537 2019-07-04 Martin Liska <mliska@suse.cz>
17539 * tree-ssa-loop-niter.c
17540 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
17541 (estimate_numbers_of_iterations):
17542 Support __builtin_expect_with_probability for analysis
17543 of # of loop iterations.
17545 2019-07-04 Alexandre Oliva <oliva@adacore.com>
17547 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
17548 * except.c: Likewise.
17549 * expr.c (expand_expr_real_1): Reject it.
17550 * gimplify.c (gimplify_expr): Gimplify it, within
17552 * tree-dump.c (dequeue_and_dump): Dump it.
17553 * tree-pretty-print.c (dump_generic_node): Likewise.
17554 * tree.c (block_may_fallthru): Handle it.
17555 * tree.def (EH_ELSE_EXPR): Introduce it.
17556 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
17557 with GIMPLE_EH_ELSE as try/finally/else.
17559 2019-07-04 Richard Biener <rguenther@suse.de>
17562 * tree-pass.h (execute_all_ipa_transforms): Add a flag
17563 parameter whether to disable GC collection.
17564 * passes.c (execute_one_ipa_transform_pass): Likewise, and
17566 (execute_all_ipa_transforms): Likewise and pass it down.
17567 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
17568 collection from applying IPA transforms.
17569 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
17570 from applying IPA transforms.
17572 2019-07-04 Richard Biener <rguenther@suse.de>
17574 PR tree-optimization/90911
17575 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
17576 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
17577 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
17578 scalar_loop_scaling.
17579 (vect_transform_loop): Scale scalar loop profile if needed.
17580 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
17581 the loop copy from if-conversion adjust edge probabilities
17582 and scale the vectorized loop body profile, queue the scalar
17583 profile for updating after peeling.
17585 2019-07-04 Jan Hubicka <jh@suse.cz>
17587 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
17588 parameters; return early for must-alias.
17589 (indirect_ref_may_alias_decl_p): Likewise; when establishing
17590 outer types match, try nonoverlapping_component_refs
17591 if must-alias is not obvious.
17592 (indirect_refs_may_alias_p): Likewise.
17593 (refs_may_alias_p_2): Likewise.
17595 2019-07-04 Richard Biener <rguenther@suse.de>
17597 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
17599 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
17601 (struct vn_walk_cb_data): New callback data struct.
17602 (vn_reference_lookup_2): Adjust.
17603 (vn_reference_lookup_3): Likewise.
17604 (vn_reference_lookup_pieces): Likewise.
17605 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
17606 (visit_reference_op_load): Adjust.
17608 2019-07-04 Jakub Jelinek <jakub@redhat.com>
17610 PR tree-optimization/91063
17611 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
17612 stmt from stmts sequence before calling vect_init_vector_1.
17615 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17618 * fwprop.c (reg_single_def_p): New function.
17619 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
17620 (forward_propagate_into): New parameter reg_prop_only
17621 with default value false.
17622 Propagate def's src into loop only if SET_SRC and SET_DEST
17623 of def_set have single definitions.
17624 Likewise if reg_prop_only is set to true.
17625 (fwprop): New param fwprop_addr_p.
17626 Integrate fwprop_addr into fwprop.
17627 (fwprop_addr): Remove.
17628 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
17630 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
17631 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
17632 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
17634 2019-07-04 Jakub Jelinek <jakub@redhat.com>
17636 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
17637 in worksharing loop scans.
17639 PR tree-optimization/91074
17640 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
17643 PR rtl-optimization/90756
17644 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
17647 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
17649 * config/aarch64/aarch64.md: Remove redundant constraints from
17650 define_expand but keep some patterns untouched if they are
17651 specially selected by TARGET_SECONDARY_RELOAD hook.
17652 * config/aarch64/aarch64-sve.md: Likewise.
17653 * config/aarch64/atomics.md: Remove redundant constraints from
17655 * config/aarch64/aarch64-simd.md: Likewise.
17657 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
17659 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
17660 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
17661 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
17663 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
17666 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
17668 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
17669 (STARTFILE_SPEC): Split crt3 into a separate spec.
17670 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
17671 (DARWIN_CRT2_SPEC): New.
17672 (DARWIN_CRT3_SPEC): New.
17673 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
17674 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
17675 (DARWIN_CRT3_SPEC): New.
17677 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
17679 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
17680 Change the RTL attribute "length" from "4" to "*" to allow the
17681 length attribute to be adjusted automatically for prefixed load,
17682 store, and add immediate instructions.
17683 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
17685 (extendsi<mode>2, EXTSI iterator): Likewise.
17686 (movsi_internal1): Likewise.
17687 (movsi_from_sf): Likewise.
17688 (movdi_from_sf_zero_ext): Likewise.
17689 (mov<mode>_internal): Likewise.
17690 (movcc_internal1, QHI iterator): Likewise.
17691 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
17692 (movsf_from_si): Likewise.
17693 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
17694 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
17695 (mov<mode>, FMOVE128 iterator): Likewise.
17696 (movdi_internal64): Likewise.
17697 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
17699 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
17700 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
17701 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
17702 (vsx_splat_v4sf): Likewise.
17704 2019-07-03 Mark Wielaard <mark@klomp.org>
17707 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
17708 DW_AT_addr_base if there is actually a .debug_addr section with
17710 (output_addr_table): Add DWARF5 table header generation here after
17711 checking there are actually any addresses from...
17712 (dwarf2out_finish): ...here.
17714 2019-07-03 Richard Biener <rguenther@suse.de>
17716 PR middle-end/91069
17717 * match.pd (vec_perm -> bit_insert): Fix element read from
17720 2019-07-03 Martin Liska <mliska@suse.cz>
17722 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
17723 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
17725 * generic-match-head.c: Include dbgcnt.h.
17726 * gimple-match-head.c: Likewise.
17728 2019-07-03 Martin Liska <mliska@suse.cz>
17730 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
17731 (GCOV_COUNTER_V_TOPN): New.
17732 (GCOV_COUNTER_V_INDIR): Use _topn.
17733 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
17734 (GCOV_TOPN_VALUES): New.
17735 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
17736 (GCOV_TOPN_VALUES_COUNTERS): New.
17737 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
17739 (gimple_init_gcov_profiler): Rename variables from one_value
17741 (gimple_gen_one_value_profiler): Remove.
17742 (gimple_gen_topn_values_profiler): New function.
17743 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
17744 names instead of SINGLE_VALUE.
17745 (stream_out_histogram_value): Likewise.
17746 (stream_in_histogram_value): Likewise.
17747 (get_most_common_single_value): Likewise.
17748 (gimple_divmod_fixed_value_transform): Likewise.
17749 (gimple_stringops_transform): Likewise.
17750 (gimple_divmod_values_to_profile): Likewise.
17751 (gimple_stringops_values_to_profile): Likewise.
17752 (gimple_find_values_to_profile): Likewise.
17753 * value-prof.h (enum hist_type): Rename to TOPN.
17754 (gimple_gen_one_value_profiler): Remove.
17755 (gimple_gen_topn_values_profiler): New.
17757 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
17759 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
17760 if it has the DW_AT_data_member_location attribute.
17762 2019-07-03 Richard Biener <rguenther@suse.de>
17764 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
17767 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
17769 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
17770 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
17771 (tlsdesc_small_sve_<mode>): Likewise.
17773 2019-07-03 Martin Liska <mliska@suse.cz>
17775 * Makefile.in: Define ZSTD_LIB.
17776 * common.opt: Adjust compression level
17777 to support also zstd levels.
17778 * config.in: Regenerate.
17779 * configure: Likewise.
17780 * configure.ac: Add --with-zstd and --with-zstd-include options
17782 * doc/install.texi: Mention zstd dependency.
17783 * gcc.c: Print supported LTO compression algorithms.
17784 * lto-compress.c (lto_normalized_zstd_level): Likewise.
17785 (lto_compression_zstd): Likewise.
17786 (lto_uncompression_zstd): Likewise.
17787 (lto_end_compression): Dispatch in between zlib and zstd.
17788 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
17789 (lto_uncompression_zlib): Make it static.
17790 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
17791 * lto-section-in.c (lto_get_section_data): Pass info
17792 about used compression.
17793 * lto-streamer-out.c: By default use zstd when possible.
17794 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
17795 (TV_IPA_LTO_COMPRESS): Likewise for compression.
17797 2019-07-03 Martin Liska <mliska@suse.cz>
17799 * lto-section-in.c (lto_get_section_data): Add "lto" section.
17800 * lto-section-out.c (lto_destroy_simple_output_block): Never
17801 compress LTO_section_lto section.
17802 * lto-streamer-out.c (produce_asm): Do not set major_version
17804 (lto_output_toplevel_asms): Likewise.
17805 (produce_lto_section): New function.
17806 (lto_output): Call produce_lto_section.
17807 (lto_write_mode_table): Do not set major_version and
17809 (produce_asm_for_decls): Likewise.
17810 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
17812 (struct lto_header): Remove.
17813 (struct lto_section): New struct.
17814 (struct lto_simple_header): Do not inherit from lto_header.
17815 (struct lto_file_decl_data): Add lto_section_header field.
17817 2019-07-03 Martin Liska <mliska@suse.cz>
17819 * lra-eliminations.c (eliminate_regs_in_insn): Remove
17821 * reg-stack.c (check_asm_stack_operands): Likewise.
17822 * tree-ssa-structalias.c (create_function_info_for): Likewise.
17823 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
17824 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
17825 force_expand_binop.
17827 2019-07-03 Martin Liska <mliska@suse.cz>
17829 PR tree-optimization/90892
17830 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
17831 in string constants.
17833 2019-07-03 Martin Liska <mliska@suse.cz>
17835 PR middle-end/90899
17836 * multiple_target.c (create_dispatcher_calls): Add to comdat
17837 group only if set for ifunc.
17839 2019-07-03 Martin Liska <mliska@suse.cz>
17842 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
17843 Define local_object_name in outer scope in order to handle
17844 use-after-scope issue.
17846 2019-07-03 Martin Liska <mliska@suse.cz>
17848 * common.opt: Add fprofile-note.
17849 * coverage.c (coverage_init): Append the option
17851 * doc/invoke.texi: Document -fprofile-note.
17853 2019-07-03 Jakub Jelinek <jakub@redhat.com>
17855 PR tree-optimization/91033
17856 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
17857 vect_analyze_data_refs): Add bool * arguments.
17858 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
17859 if failure is due to scatter/gather, set *fatal to false if non-NULL.
17860 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
17861 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
17862 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
17863 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
17864 vect_analyze_data_refs caller.
17866 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
17868 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
17869 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
17870 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
17871 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17872 OMP_CLAUSE__SCANTEMP_ entry.
17873 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
17874 * tree-pretty-print.c (dump_omp_clause): Likewise.
17875 * tree-nested.c (convert_nonlocal_omp_clauses,
17876 convert_local_omp_clauses): Likewise.
17877 * omp-general.h (struct omp_for_data): Add have_scantemp and
17878 have_nonctrl_scantemp members.
17879 * omp-general.c (omp_extract_for_data): Initialize them.
17880 * omp-low.c (struct omp_context): Add scan_exclusive member.
17881 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
17882 result again with GF_OMP_FOR_KIND_MASK. Initialize also
17883 ctx->scan_exclusive.
17884 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
17885 of !ctx->scan_inclusive.
17886 (lower_rec_input_clauses): Simplify gimplification of dtors using
17887 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
17888 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
17889 loops. Don't add barrier for reduction_omp_orig_ref if
17890 ctx->scan_??xclusive.
17891 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
17892 (lower_omp_scan): Use ctx->scan_exclusive instead
17893 of !ctx->scan_inclusive. Handle worksharing loops with inscan
17894 reductions. Use new_vard != new_var instead of repeated
17895 omp_is_reference calls.
17896 (omp_find_scan, lower_omp_for_scan): New functions.
17897 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
17899 * omp-expand.c (expand_omp_scantemp_alloc): New function.
17900 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
17901 and fd->have_scantemp.
17903 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
17904 on worksharing loop propagate it as shared clause to containing
17907 * omp-expand.c (expand_omp_for_static_nochunk,
17908 expand_omp_for_static_chunk): For nowait worksharing loop with
17909 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
17912 2019-07-02 qing zhao <qing.zhao@oracle.com>
17914 PR preprocessor/90581
17915 * doc/cppopts.texi: Add document for -fmax-include-depth.
17916 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
17918 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
17920 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
17921 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
17922 (mmx_packssdw): Ditto.
17923 (mmx_punpckhbw): Ditto.
17924 (mmx_punpcklbw): Ditto.
17925 (mmx_punpckhwd): Ditto.
17926 (mmx_punpcklwd): Ditto.
17927 (mmx_punpckhdq): Ditto.
17928 (mmx_punpckldq): Ditto.
17929 (*vec_dupv4hi): Ditto.
17930 (*vec_dupv2si): Ditto.
17931 (mmx_pmovmskb): Ditto.
17932 * config/i386/sse.md (sse_cvtpi2ps): Use
17933 TARGET_SSE2 && SSE_REG_P in split condition.
17934 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
17935 TARGET_SSSE3 && SSE_REGNO_P in split condition.
17936 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
17937 (ssse3_pshufbv8qi3): Ditto.
17938 (ssse3_palignrdi): Ditto.
17940 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
17942 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
17943 with inlined save and restore.
17945 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
17947 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
17948 to be inserted on single successor edge of the entry block. Then call
17949 commit_edge_insertions instead of inserting the instructions manually.
17950 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
17951 RTL expansion and rebuild jump labels chain.
17953 2019-07-02 Richard Biener <rguenther@suse.de>
17955 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
17957 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
17959 * tree.c (build_common_tree_nodes): Initialize them.
17960 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
17961 Make declarations comments.
17962 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
17963 chrec_known): Remove definitions.
17964 (initialize_scalar_evolutions_analyzer): Remove.
17965 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
17966 * tree-streamer.c (preload_common_nodes): Do not preload
17967 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
17969 2019-07-02 Jan Hubicka <jh@suse.cz>
17971 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
17974 2019-07-02 Jan Hubicka <jh@suse.cz>
17976 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
17978 (nonoverlapping_component_refs_since_match_p): ... this one;
17979 handle also non-decl bases; return -1 if search gave up.
17980 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
17981 nonoverlapping_component_refs_of_decl_p_no_alias to
17982 nonoverlapping_component_refs_since_match_p_may_alias,
17983 nonoverlapping_component_refs_since_match_p_no_alias.
17984 (dump_alias_stats): Update dumping.
17985 (aliasing_matching_component_refs_p): Break out from ...;
17986 dispatch to nonoverlapping_component_refs_for_decl_p
17987 and nonoverlapping_component_refs_since_match_p.
17988 (aliasing_component_refs_p): ... here; call
17989 nonoverlapping_component_refs_p in scenarios where we can not
17990 precisely determine base match.
17991 (decl_refs_may_alias_p): Use
17992 nonoverlapping_component_refs_since_match_p.
17993 (indirect_ref_may_alias_decl_p): Do not call
17994 nonoverlapping_component_refs_p.
17995 (indirect_refs_may_alias_p): Likewise.
17997 2019-07-02 Jan Hubicka <jh@suse.cz>
17999 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
18000 to clobber of return value.
18002 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18004 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
18005 for is_neon_type instructions that have not already been categorized.
18007 2019-07-02 Richard Biener <rguenther@suse.de>
18009 PR tree-optimization/58483
18010 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
18011 for MEM_REF base hashing.
18012 (equal_mem_array_ref_p): Likewise for base comparison.
18014 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18016 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
18017 parameterized name.
18018 (signbit<mode>2): Use that name. Simplify.
18020 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
18022 PR middle-end/66726
18023 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
18024 Tune heuristic from PR71016 to allow MIN / MAX.
18026 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18028 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
18029 parameterized name.
18030 (abs<mode>2): Use that name. Simplify.
18032 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18034 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
18035 parameterized name.
18036 (neg<mode>2): Use that name. Simplify.
18038 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18040 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
18042 (abs<mode>2): Use that name. Simplify.
18044 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18046 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
18048 (neg<mode>2): Use that name. Simplify.
18050 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
18052 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
18053 ("enabled" attribute): Handle sse_noavx isa attribute.
18054 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
18055 Use TARGET_SSE && SSE_REGNO_P in split condition.
18056 (*vec_dupv2sf): Ditto.
18058 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18060 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
18062 (floatsi<mode>2): Use that name. Simplify.
18064 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18066 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
18067 parameterized name.
18068 (extenddf<mode>2_vsx): Make this a parameterized name.
18069 (extenddf<mode>2): Use those names. Simplify.
18071 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18073 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
18075 (eh_return): Use that name. Simplify.
18077 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18079 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
18080 (doloop_end): Use that name. Simplify.
18082 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18084 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
18085 parameterized name.
18086 (indirect_jump): Use that name. Simplify.
18088 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18090 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
18091 parameterized name.
18092 (abs<mode>2): Use that name. Simplify.
18094 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18096 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
18097 parameterized name.
18098 (fix_trunc<mode>si2): Use that name. Simplify.
18100 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18102 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
18103 (allocate_stack): Use that name. Simplify.
18105 2019-07-01 Martin Sebor <msebor@redhat.com>
18107 PR middle-end/90923
18108 * hash-map.h (hash_map::put): On insertion invoke element ctor.
18109 (hash_map::get_or_insert): Same. Reformat comment.
18110 * hash-set.h (hash_set::add): On insertion invoke element ctor.
18111 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
18112 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
18113 * hash-table.h (hash_table::operator=): Prevent copy assignment.
18114 (hash_table::hash_table (const hash_table&)): Use copy ctor
18115 instead of assignment to copy elements.
18117 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
18118 John David Anglin <danglin@gcc.gnu.org>
18121 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
18122 using saved frame pointer.
18124 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
18126 PR middle-end/64242
18127 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
18128 Add frame clobber and schedule blockage.
18130 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
18132 * doc/invoke.texi (Link Options): Further editorial changes to
18133 -flinker-output docs.
18135 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
18137 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
18138 Load both operands of a PLUS into registers separately.
18140 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
18142 * config/s390/vector.md: Fix shift count operand printing.
18144 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
18146 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
18148 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
18150 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
18151 Use recog_data to test for an output operand.
18153 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
18155 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
18156 exclude any others that are disparaged or that are bound to need
18158 (ira_get_dup_out_num): Expand comment.
18160 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
18162 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
18163 constraint string for each operand/alternative combo. Only handle
18164 '%' at the start of constraint strings, and look for it outside
18167 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
18169 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
18170 alternative_mask instead of HARD_REG_SET to represent a
18171 bitmask of alternatives.
18172 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18173 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
18175 2019-07-01 Martin Liska <mliska@suse.cz>
18177 * edit-context.c (test_applying_fixits_unreadable_file): Do not
18178 use () for a constructor call.
18179 (test_applying_fixits_line_out_of_range): Likewise.
18180 * ggc-page.c (alloc_page): Use (void *) for %p printf format
18182 (free_page): Likewise.
18184 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
18186 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
18187 parameter names to match usage (no functional change).
18188 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
18190 2019-07-01 Richard Biener <rguenther@suse.de>
18192 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
18194 (pass_fre::execute): Honor it.
18195 * passes.def: Adjust pass_fre invocations to allow iterating,
18196 add non-iterating pass_fre before late threading/dom.
18198 2019-07-01 Richard Biener <rguenther@suse.de>
18200 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
18201 TARGET_MEM_REF handling to also handle address-taken ones.
18203 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
18205 * doc/sourcebuild.texi (Effective-Target Keywords, Other
18206 hardware attributes): Document avx512vp2intersect.
18208 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
18210 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
18211 (abs<mode>2): New expander.
18212 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
18213 Use CODE_FOR_ssse3_absv8qi2.
18214 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
18215 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
18217 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
18219 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
18220 to sse, sse_noavx and avx. Update all uses.
18222 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
18224 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
18225 (*mmx_<plusminus_insn><mode>3): Ditto.
18226 (*mmx_mulv4hi3"): Ditto.
18227 (*mmx_smulv4hi3_highpart): Ditto.
18228 (*mmx_umulv4hi3_highpart): Ditto.
18229 (*mmx_pmaddwd): Ditto.
18230 (*sse2_umulv1siv1di3): Ditto.
18231 (*mmx_<code>v4hi3): Ditto.
18232 (*mmx_<code>v8qi3): Ditto.
18233 (mmx_ashr<mode>3): Ditto.
18234 ("mmx_<shift_insn><mode>3): Ditto.
18235 (*mmx_eq<mode>3): Ditto.
18236 (mmx_gt<mode>3): Ditto.
18237 (mmx_andnot<mode>3): Ditto.
18238 (*mmx_<code><mode>3): Ditto.
18239 (*mmx_pinsrw): Ditto.
18240 (*mmx_pextrw): Ditto.
18241 (mmx_pshufw_1): Ditto.
18242 (*mmx_uavgv8qi3): Ditto.
18243 (*mmx_uavgv4hi3): Ditto.
18244 ("mmx_psadbw): Ditto.
18245 * config/i386/sse.md (sse_cvtps2pi): Ditto.
18246 (sse_cvttps2pi): Ditto.
18247 (ssse3_pmaddubsw): Ditto.
18248 (*ssse3_pmulhrswv4hi3): Ditto.
18249 (ssse3_psign<mode>3): Ditto.
18251 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
18253 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
18254 adjustment for bit-fields to all aggregate types.
18256 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
18258 * config/rs6000/predicates.md (pcrel_address): Use
18259 SYMBOL_REF_LOCAL_P to determine if a label is local.
18260 (pcrel_external_address): New predicate.
18261 (non_prefixed_mem_operand): Delete, predicate not used.
18262 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
18263 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
18265 (SYMBOL_REF_PCREL_P): Likewise.
18268 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
18270 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
18271 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
18272 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
18274 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
18276 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
18277 override on extra_headers.
18279 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
18281 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
18282 * config/darwin-driver.c (darwin_default_min_version): Remove newline
18284 (darwin_driver_init): Likewise.
18286 2019-06-28 Jan Beulich <jbeulich@suse.com>
18288 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
18289 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
18290 Eliminate redundant alternative.
18292 2019-06-28 Jan Beulich <jbeulich@suse.com>
18294 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
18295 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
18296 Use vector_operand.
18298 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
18300 * config/arc/arc.c (arc_rtx_costs): All short instructions are
18301 having a lower cost regardless of the speed option.
18303 2019-06-28 Jan Beulich <jbeulich@suse.com>
18305 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
18306 vector_operand plus, on both alternatives, "Bm" constraint.
18308 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
18310 * config/arm/arm.md: Remove redundant constraints from
18311 define_expand but leave reload_inm and reload_outm patterns
18312 untouched since they need special constraints to work.
18313 * config/arm/arm-fixed.md: Remove redundant constraints from
18315 * config/arm/iwmmxt.md: Likewise.
18316 * config/arm/neon.md: Likewise.
18317 * config/arm/sync.md: Likewise.
18318 * config/arm/thumb1.md: Likewise.
18319 * config/arm/vec-common.md: Likewise.
18321 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
18323 * doc/install.texi: Document --disable-tm-clone-registry.
18325 2019-06-27 Jakub Jelinek <jakub@redhat.com>
18328 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
18331 PR tree-optimization/91010
18332 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
18333 return true. Otherwise, don't call operand_equal_p if offset1 or
18334 offset2 is NULL and just return false.
18336 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
18338 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
18339 user-specified float mode choice for kernel mode code.
18341 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
18343 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
18346 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
18348 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
18349 use longcall for 64b code.
18351 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
18353 * builtins.c (get_memory_rtx): Fix comment.
18354 * optabs.def (movmem_optab): Change to cpymem_optab.
18355 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
18356 (emit_block_move_hints): Change movmem to cpymem.
18357 * defaults.h: Change movmem to cpymem.
18358 * targhooks.c (get_move_ratio): Change movmem to cpymem.
18359 (default_use_by_pieces_infrastructure_p): Ditto.
18360 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
18361 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
18363 * config/aarch64/aarch64.h: Change movmem to cpymem.
18364 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
18365 * config/alpha/alpha.h: Change movmem to cpymem in comment.
18366 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
18368 * config/arc/arc-protos.h: Change movmem to cpymem.
18369 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
18370 * config/arc/arc.h: Change movmem to cpymem in comment.
18371 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
18372 * config/arm/arm-protos.h: Change movmem to cpymem in names.
18373 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
18374 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
18375 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
18376 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
18377 * config/avr/avr-protos.h: Change movmem to cpymem.
18378 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
18379 avr_out_movmem): Change movmem to cpymem.
18380 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
18381 Change movmem to cpymem.
18382 * config/bfin/bfin-protos.h: Change movmem to cpymem.
18383 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
18384 Change movmem to cpymem.
18385 * config/bfin/bfin.h: Change movmem to cpymem in comment.
18386 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
18387 * config/c6x/c6x-protos.h: Change movmem to cpymem.
18388 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
18389 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
18390 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
18391 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
18392 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
18393 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
18394 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
18395 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
18396 expand_small_cpymem_or_setmem,
18397 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
18398 expand_set_or_cpymem_constant_prologue,
18399 ix86_expand_set_or_cpymem): Change movmem to cpymem.
18400 * config/i386/i386-protos.h: Change movmem to cpymem.
18401 * config/i386/i386.h: Change movmem to cpymem in comment.
18402 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
18403 (setmem<mode>): Change expansion function name.
18404 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
18405 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
18406 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
18407 * config/m32c/m32c-protos.h: Change movmem to cpymem.
18408 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
18409 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
18410 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
18412 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
18413 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
18414 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
18415 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
18416 Change movmem to cpymem.
18417 * config/mips/mips.h: Change movmem to cpymem.
18418 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
18419 * config/nds32/nds32-memory-manipulation.c
18420 (nds32_expand_movmemsi_loop_unknown_size,
18421 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
18422 nds32_expand_movmemsi_unroll,
18423 nds32_expand_movmemsi): Change movmem to cpymem.
18424 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
18425 * config/nds32/nds32-protos.h: Change movmem to cpymem.
18426 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
18427 (pa_adjust_insn_length): Change call to compute_movmem_length.
18428 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
18429 movmemdi, movmemdi_prereload,
18430 movmemdi_postreload): Change movmem to cpymem.
18431 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
18432 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
18433 * config/riscv/riscv.c: Change movmem to cpymem in comment.
18434 * config/riscv/riscv.h: Change movmem to cpymem.
18435 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
18436 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
18437 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
18439 * config/s390/s390-protos.h: Change movmem to cpymem.
18440 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
18441 s390_expand_insv): Change movmem to cpymem.
18442 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
18443 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
18444 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
18445 * config/sparc/sparc.h: Change movmem to cpymem in comment.
18446 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
18447 for nonexistent function.
18448 * config/vax/vax.h: Change movmem to cpymem in comment.
18449 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
18450 * config/visium/visium.h: Change movmem to cpymem in comment.
18451 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
18452 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
18453 * doc/md.texi: Change movmem to cpymem and update description to match.
18454 * doc/rtl.texi: Change movmem to cpymem.
18455 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
18456 * doc/tm.texi: Regenerate.
18458 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
18460 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
18461 -fvariable-expansion-in-unroller by default.
18462 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
18465 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
18468 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
18469 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
18471 * config.gcc(rs6000-*-*): Define target_gtfiles.
18473 2019-06-27 Jan Hubicka <jh@suse.cz>
18475 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
18476 (add_type_duplicate): When odr hash is not allocated, to nothing.
18477 (odr_based_tbaa_p): New function.
18478 (set_type_canonical_for_odr_type): New function.
18479 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
18480 set_type_canonical_for_odr_type): New.
18481 * tree.c (gimple_canonical_types_compatible_p): ODR types with
18482 ODR based TBAA are not equivalent to non-ODR types.
18484 2019-06-27 Martin Liska <mliska@suse.cz>
18486 PR tree-optimization/90974
18487 PR rtl-optimization/90975
18488 PR rtl-optimization/90976
18490 PR tree-optimization/91017
18491 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
18493 * lra.c (lra_set_insn_recog_data): Remove a leftover from
18494 initial commit of IRA.
18495 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
18497 * tree-vect-loop.c (vect_create_epilog_for_reduction):
18498 Remove unused mode1.
18499 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
18502 2019-06-27 Jakub Jelinek <jakub@redhat.com>
18505 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
18506 instead of register_operand for operands[1], add m to its constraints
18507 if operands[2] uses "C" constraint. Ensure in condition that if
18508 operands[2] is not 0, then operands[1] is not a MEM. For last two
18509 alternatives, use unaligned loads instead of aligned if operands[1] is
18510 misaligned_operand.
18512 2019-06-27 Martin Liska <mliska@suse.cz>
18514 * asan.c (asan_emit_allocas_unpoison): Remove obviously
18516 * bt-load.c (move_btr_def): Likewise.
18517 * builtins.c (expand_builtin_apply_args_1): Likewise.
18518 (expand_builtin_apply): Likewise.
18519 * cfgexpand.c (expand_asm_stmt): Likewise.
18520 (construct_init_block): Likewise.
18521 * cfghooks.c (verify_flow_info): Likewise.
18522 * cfgloopmanip.c (remove_path): Likewise.
18523 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
18524 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
18525 * combine.c (simplify_if_then_else): Likewise.
18526 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
18527 (choose_basereg): Likewise.
18528 (ix86_expand_prologue): Likewise.
18529 (ix86_preferred_output_reload_class): Likewise.
18530 * cselib.c (cselib_record_sets): Likewise.
18531 * df-scan.c (df_scan_alloc): Likewise.
18532 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
18533 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
18534 * emit-rtl.c (try_split): Likewise.
18535 * graphite-scop-detection.c (assign_parameter_index_in_region):
18537 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
18538 * ira-color.c (setup_profitable_hard_regs): Likewise.
18539 * ira.c (rtx_moveable_p): Likewise.
18540 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
18541 * read-rtl.c (read_subst_mapping): Likewise.
18542 * regrename.c (scan_rtx): Likewise.
18543 * reorg.c (fill_slots_from_thread): Likewise.
18544 * tree-inline.c (tree_function_versioning): Likewise.
18545 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
18546 * tree-ssa-sink.c (statement_sink_location): Likewise.
18547 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
18548 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
18549 (vect_create_epilog_for_reduction): Likewise.
18550 * tree.c (build_nonstandard_integer_type): Likewise.
18552 2019-06-27 Richard Biener <rguenther@suse.de>
18554 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
18556 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
18558 PR tree-optimization/89772
18559 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
18560 out-of-bound accesses checking.
18562 2019-06-27 Martin Liska <mliska@suse.cz>
18564 PR tree-optimization/91014
18565 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
18566 when LHS is NULL_TREE.
18568 2019-06-27 Martin Liska <mliska@suse.cz>
18570 * symbol-summary.h (traverse): Pass
18571 argument a to the call of callback.
18572 (gt_ggc_mx): Mark arguments as unused.
18573 (gt_pch_nx): Likewise.
18575 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
18578 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
18581 2019-06-26 Jeff Law <law@redhat.com>
18583 PR tree-optimization/90883
18584 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
18585 (delete_dead_or_redundant_assignment): Likewise.
18587 PR tree-optimization/90883
18588 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
18589 * tree-ssa-dse.c: Update various comments to distinguish between
18590 dead and redundant stores.
18591 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
18592 (dse_optimize_redundant_stores): New function.
18593 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
18594 Distinguish between dead and redundant calls in dump output. All
18596 (delete_dead_or_redundant_assignment): Similarly for assignments.
18597 (dse_optimize_stmt): Handle _CHK variants. For statements which
18598 store 0 into multiple memory locations, try to prove a subsequent
18599 store is redundant.
18601 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
18604 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
18605 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
18607 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
18609 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
18610 (branch_islands): New extern.
18611 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
18612 * config/rs6000/rs6000.c: .. here.
18614 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
18616 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
18617 (powerpc*-*-*) ... to here.
18619 2019-06-26 Jeff Law <law@redhat.com>
18621 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
18622 memcpy, memmove and memset builtins.
18623 (maybe_trim_memstar_call): Likewise.
18625 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
18627 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
18629 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
18631 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
18633 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
18635 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
18637 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
18639 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
18642 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
18644 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
18646 2019-06-26 Richard Biener <rguenther@suse.de>
18649 * tree-inline.c (remap_ssa_name): Copy SSA range info.
18651 2019-06-26 Richard Biener <rguenther@suse.de>
18653 * lto-streamer.h (lto_bitmap_alloc): Remove.
18654 (lto_bitmap_free): Likewise.
18655 * lto-streamer.c (lto_bitmap_alloc): Remove.
18656 (lto_bitmap_free): Likewise.
18657 (lto_obstack): Likewise.
18658 (lto_obstack_initialized): Likewise.
18659 * lto-streamer-out.c (lto_output): Use own obstack for local
18660 bitmap, free it consistently.
18662 2019-06-26 Jakub Jelinek <jakub@redhat.com>
18665 * config/i386/sse.md
18666 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
18667 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
18668 insns if operands[2] is misaligned_operand.
18670 2019-06-26 Li Jia He <helijia@linux.ibm.com>
18672 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
18674 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
18677 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
18679 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
18681 2019-06-26 Martin Liska <mliska@suse.cz>
18683 PR tree-optimization/90973
18684 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
18685 epilogue_cost_vec instead of prologue_cost_vec for
18688 2019-06-26 Martin Liska <mliska@suse.cz>
18690 * bb-reorder.c (connect_better_edge_p): Add missing else
18691 statement in the middle of if-else statements.
18693 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
18694 H.J. Lu <hongjiu.lu@intel.com>
18695 Olga Makhotina <olga.makhotina@intel.com>
18697 * common/config/i386/i386-common.c
18698 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
18699 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
18700 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
18701 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
18702 (ix86_handle_option): Handle -mavx512vp2intersect.
18703 * config/i386/avx512vp2intersectintrin.h: New.
18704 * config/i386/avx512vp2intersectvlintrin.h: New.
18705 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
18706 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18707 AVX512VP2INTERSECT.
18708 * config/i386/i386-builtin-types.def: Add new types.
18709 * config/i386/i386-builtin.def: Add new builtins.
18710 * config/i386/i386-builtins.c: (enum processor_features): Add
18711 F_AVX512VP2INTERSECT.
18712 (static const _isa_names_table isa_names_table): Ditto.
18713 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18714 __AVX512VP2INTERSECT__.
18715 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
18716 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
18717 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
18718 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
18719 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
18720 * config/i386/i386-options.c (ix86_target_string): Add
18721 -mavx512vp2intersect.
18722 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
18723 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
18724 P2HImode and P2QImode.
18725 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
18726 number for P2QImode and P2HImode.
18727 (ix86_regmode_natural_size): New function.
18728 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
18729 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
18730 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
18731 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
18732 * config/i386/i386.opt: Add -mavx512vp2intersect.
18733 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
18734 avx512vp2intersectvlintrin.h.
18735 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
18736 (define_mode_iterator VI48_AVX512VP2VL): New.
18737 (avx512vp2intersect_2intersect<mode>,
18738 avx512vp2intersect_2intersectv16si): New define_insn patterns.
18739 * config.gcc: Add avx512vp2intersectvlintrin.h and
18740 avx512vp2intersectintrin.h to extra_headers.
18741 * doc/invoke.texi: Document -mavx512vp2intersect.
18743 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
18745 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
18747 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
18749 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
18750 savres_routine_syms, savres_routine_name, morestack_ref,
18751 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
18752 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
18753 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
18754 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
18755 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
18756 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
18757 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
18758 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
18759 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
18760 get_stack_clash_protection_probe_interval,
18761 get_stack_clash_protection_guard_size,
18762 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
18763 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
18764 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
18765 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
18766 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
18767 gen_frame_mem_offset, rs6000_savres_routine_name,
18768 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
18769 ptr_regno_for_savres, rs6000_emit_savres_rtx,
18770 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
18771 rs6000_global_entry_point_prologue_needed_p,
18772 rs6000_get_separate_components, rs6000_components_for_bb,
18773 rs6000_disqualify_components, rs6000_emit_prologue_components,
18774 rs6000_emit_epilogue_components, rs6000_set_handled_components,
18775 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
18776 rs6000_output_savres_externs, rs6000_output_function_prologue,
18777 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
18778 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
18779 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
18780 rs6000_output_function_epilogue, gen_add3_const,
18781 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
18782 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
18784 (machine_function): Moved to rs6000.h.
18785 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
18787 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
18788 savres_routine_syms, savres_routine_name, morestack_ref,
18789 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
18790 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
18791 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
18792 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
18793 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
18794 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
18795 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
18796 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
18797 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
18798 get_stack_clash_protection_probe_interval,
18799 get_stack_clash_protection_guard_size,
18800 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
18801 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
18802 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
18803 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
18804 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
18805 gen_frame_mem_offset, rs6000_savres_routine_name,
18806 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
18807 ptr_regno_for_savres, rs6000_emit_savres_rtx,
18808 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
18809 rs6000_global_entry_point_prologue_needed_p,
18810 rs6000_get_separate_components, rs6000_components_for_bb,
18811 rs6000_disqualify_components, rs6000_emit_prologue_components,
18812 rs6000_emit_epilogue_components, rs6000_set_handled_components,
18813 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
18814 rs6000_output_savres_externs, rs6000_output_function_prologue,
18815 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
18816 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
18817 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
18818 rs6000_output_function_epilogue, gen_add3_const,
18819 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
18820 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
18821 to here from rs6000.c.
18822 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
18823 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
18824 quad_address_offset_p) Moved to here from rs6000.c.
18825 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
18826 * config/config.gcc: Add new source file rs6000-logue.c to garbage
18829 2019-06-25 Martin Liska <mliska@suse.cz>
18831 * hash-table.c (hashtab_chk_error): Move here from ...
18832 * hash-table.h (hashtab_chk_error): ... here.
18834 2019-06-25 Martin Liska <mliska@suse.cz>
18836 PR tree-optimization/90978
18837 * df-scan.c (df_update_entry_block_defs): Remove dead else
18839 (df_update_exit_block_uses): Likewise.
18841 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
18842 Andrew Stubbs <ams@codesourcery.com>
18844 * config.gcc (thread_file): Set to gcn for AMD GCN.
18845 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
18846 (TARGET_EMUTLS_VAR_INIT): New hook.
18848 2019-06-25 Martin Jambor <mjambor@suse.cz>
18851 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
18853 2019-06-25 Richard Biener <rguenther@suse.de>
18855 PR tree-optimization/90930
18856 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
18857 into parallel form in the last pass instance.
18859 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
18861 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
18862 (arc_legitimize_pic_address): Simplify and cleanup the function.
18863 (SYMBOLIC_CONST): Remove.
18864 (prepare_pic_move): Likewise.
18865 (prepare_move_operands): Handle complex mov cases here.
18866 (arc_legitimize_address_0): Remove call to
18867 arc_legitimize_pic_address.
18868 (arc_legitimize_address): Remove call to
18869 arc_legitimize_tls_address.
18870 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
18871 (movhi_insn): Likewise.
18873 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18875 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
18877 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
18878 format of "__intN" types for UINTMAX_TYPE.
18879 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
18880 format of "__intN" types for SIZETYPE.
18881 * tree.c (build_common_tree_nodes): Accept "__intN__"
18882 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
18883 * doc/invoke.texi: Document that __intN__ disables pedantic
18886 2019-06-25 Jan Hubicka <jh@suse.cz>
18888 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
18889 base2_alias_set is non-zero before doing TBAA based disambiguation.
18891 2019-06-25 Martin Liska <mliska@suse.cz>
18893 PR tree-optimization/90973
18894 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
18895 of prologue and epilogue.
18897 2019-06-24 Jan Hubicka <jh@suse.cz>
18899 * ipa-utils.h (type_with_linkage_p): Verify that type is
18901 (odr_type_p): Remove extra return.
18902 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
18903 hash STRING_FLAG only for arrays and integers.
18904 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
18905 Update analogously.
18906 * tree-streamer-out.c (pack_ts_type_common_value_fields):
18908 * print-tree.c (print_node): Print cxx-odr-p
18910 * tree.c (need_assembler_name_p): Also check that type
18912 (verify_type_variant): Update verification of SRING_FLAG;
18913 also check CXX_ODR_P.
18914 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
18915 (TYPE_STRING_FLAG): Use it.
18916 (TYPE_CXX_ODR_P): New macro.
18917 * dwarf2out.c (gen_array_type_die): First check that type
18918 is an array and then test string flag.
18920 2019-06-24 Richard Biener <rguenther@suse.de>
18922 PR tree-optimization/90972
18923 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
18924 in common code, dealing with STRING_CST properly.
18926 2019-06-24 Richard Biener <rguenther@suse.de>
18928 PR tree-optimization/90930
18929 PR tree-optimization/90316
18930 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
18931 decrement of limit.
18933 2019-06-24 Martin Sebor <msebor@redhat.com>
18935 * tree-pretty-print.h: Remove unnecessary punctuation characters
18937 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
18939 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
18941 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
18942 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
18943 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
18945 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
18947 * config/rs6000/darwin.h: Handle GCC target pragma.
18949 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
18951 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
18953 2019-06-22 Jeff Law <law@redhat.com>
18955 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
18957 2019-06-22 Jan Hubicka <jh@suse.cz>
18959 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
18960 give up on bitfields; continue searching for different refs
18963 2019-06-21 Jakub Jelinek <jakub@redhat.com>
18965 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
18966 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
18967 containing the offset as possible simd lane access. Look through
18968 widening conversion. Move the
18969 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
18971 2019-06-21 Richard Biener <rguenther@suse.de>
18973 PR tree-optimization/90930
18974 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
18975 flag on new stmts to avoid re-processing them.
18977 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
18979 PR c++/90875 - added -Wswitch-outside-range option
18980 * doc/invoke.texi (Wswitch-outside-range): Document.
18982 2019-06-21 Jeff Law <law@redhat.com>
18984 PR tree-optimization/90949
18985 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
18986 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
18988 2019-06-21 Richard Biener <rguenther@suse.de>
18991 * dwarf2out.c (prune_unused_types_walk): Always consider
18992 function-local extern declarations as used.
18994 2019-06-21 Richard Biener <rguenther@suse.de>
18996 PR tree-optimization/90913
18997 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
18998 the scalar variant of if-conversion versioning.
19000 2019-06-21 Jakub Jelinek <jakub@redhat.com>
19002 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
19003 create another "omp scan inscan exclusive" array if
19004 !ctx->scan_inclusive.
19005 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
19006 (lower_omp_scan): Likewise.
19007 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
19008 2-bit bitfield for simd_lane_access_p member.
19009 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
19010 aux == (void *)-4 as simd lane access.
19011 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
19012 comment with permutations to show the canonical permutation order.
19013 (vectorizable_scan_store): Handle exclusive scan.
19014 (vectorizable_store): Call vectorizable_scan_store even for
19015 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
19017 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
19018 "omp simd array" arrays with one byte elements.
19020 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
19022 * config/alpha/alpha.md (@unaligned_store<mode>):
19023 Rename from unaligned_store<mode>.
19024 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
19025 * config/alpha/sync.md (@load_locked_<mode>): Rename
19026 from load_locked_<mode>.
19027 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
19028 (@atomic_compare_and_swap<mode>_1): Rename
19029 from atomic_compare_and_swap<mode>_1.
19030 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
19031 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
19032 Use gen_reload_in_aligned and gen_unaligned_store.
19033 (emit_load_locked): Remove.
19034 (emit_store_conditional): Ditto.
19035 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
19036 (alpha_split_compare_and_swap): Ditto.
19037 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
19038 (alpha_split_compare_and_swap_12): Use gen_load_locked
19039 and gen_store_conditional.
19040 (alpha_split_atomic_exchange): Ditto.
19041 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
19042 (alpha_split_atomic_exchange_12): Use gen_load_locked
19043 and gen_store_conditional.
19045 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
19047 * config/aarch64/aarch64-errata.h: New file.
19048 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
19049 (CA53_ERR_843419_SPEC): Delete.
19050 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
19051 * config/aarch64/aarch64-linux.h: Likewise.
19052 * config/aarch64/aarch64-netbsd.h: Likewise.
19053 * config/aarch64/aarch64-freebsd.h: Likewise.
19055 2019-06-20 Marek Polacek <polacek@redhat.com>
19057 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
19059 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
19061 * config/rs6000/rs6000.md (isa attribute): Add support for
19062 for a future processor.
19064 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
19067 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
19068 standard scalar operation pattern for V2DF.
19069 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
19070 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
19071 (*ieee_<ieee_maxmin><mode>3): Likewise.
19072 (vec_setv2df_0): Likewise.
19074 2019-06-20 Jan Hubicka <jh@suse.cz>
19076 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
19077 parameter; it has no use in gimple memory model.
19078 (indirect_ref_may_alias_decl_p): Update.
19080 2019-06-20 Martin Liska <mliska@suse.cz>
19082 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
19085 2019-06-20 Jakub Jelinek <jakub@redhat.com>
19087 * tree-vect-stmts.c (enum scan_store_kind): New type.
19088 (scan_store_can_perm_p): Change last argument from int * to
19089 vec<enum scan_store_kind> *, record precisely which permutations
19090 need whole vector left shift or that plus VEC_COND_EXPR.
19091 (vectorizable_scan_store): Adjust caller, use whole vector left shift
19092 and additional VEC_COND_EXPR only for those iterations that need it.
19094 2019-06-20 Alexandre Oliva <oliva@adacore.com>
19096 * config.gcc: Fix ARM --with-fpu checking and error message.
19098 2019-06-19 Marek Polacek <polacek@redhat.com>
19100 PR c++/60364 - noreturn after first decl not diagnosed.
19101 * attribs.c (get_attribute_namespace): No longer static.
19102 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
19104 (attr_noreturn_exclusions): Make it extern.
19105 * attribs.h (get_attribute_namespace): Declare.
19106 * tree-inline.c (function_attribute_inlinable_p): Use
19107 get_attribute_name.
19109 2019-06-19 Martin Sebor <msebor@redhat.com>
19111 PR tree-optimization/90626
19112 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
19114 PR tree-optimization/90626
19115 * tree-ssa-strlen.c (strxcmp_unequal): New function.
19116 (handle_builtin_string_cmp): Call it.
19118 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
19120 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
19121 and DARWIN_NOPIE_SPEC.
19122 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
19123 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
19124 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
19125 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
19126 (DARWIN_EXPORT_DYNAMIC): Delete.
19127 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
19128 and pie options processing to darwin.h.
19129 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
19131 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
19133 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
19134 in computing the number of options to be moved.
19136 2019-06-19 Maya Rashish <coypu@sdf.org>
19138 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
19139 (CLEAR_INSN_CACHE) Use it.
19141 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
19143 * config/i386/i386.md (cmpstrnsi): Remove dead code.
19145 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
19147 PR middle-end/84521
19148 * builtins.c (expand_builtin_setjmp_setup): Save
19149 hard_frame_pointer_rtx.
19150 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
19152 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
19154 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
19156 (remove_reg_equal_offset_note): Remove unused function.
19157 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
19159 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19160 (arc_builtin_setjmp_frame_value): Remove function.
19161 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19162 (avr_builtin_setjmp_frame_value): Remove function.
19163 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19164 (ix86_builtin_setjmp_frame_value): Remove function.
19165 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
19166 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19167 (sparc_builtin_setjmp_frame_value): Remove function.
19168 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19169 (vax_builtin_setjmp_frame_value): Remove function.
19170 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
19171 pointer if has_nonlocal_label.
19173 2019-06-19 Jakub Jelinek <jakub@redhat.com>
19175 * doc/md.texi: Document vec_shl_<mode> pattern.
19176 * optabs.def (vec_shl_optab): New optab.
19177 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
19178 argument, if == vec_shl_optab, check for left whole vector shift
19179 pattern rather than right shift.
19180 (expand_vec_perm_const): Add vec_shl_optab support.
19181 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
19183 * tree-vect-generic.c (lower_vec_perm): Support permutations which
19184 can be handled by vec_shl_optab.
19185 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
19186 (check_scan_store): Use it.
19187 (vectorizable_scan_store): If target can't do normal permutations,
19188 try to use whole vector left shifts and if needed a VEC_COND_EXPR
19190 * config/i386/sse.md (vec_shl_<mode>): New expander.
19192 * omp-low.c (lower_rec_input_clauses): Handle references properly
19194 (lower_omp_scan): Likewise.
19196 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
19198 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
19199 mem_mode is BLKmode.
19201 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
19204 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
19205 pointer adjustment for the case of no callee-saved registers and
19206 stack frame bigger than 128 bytes.
19208 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
19210 PR middle-end/90862
19211 * omp-low.c (check_omp_nesting_restrictions): Handle
19212 GF_OMP_TARGET_KIND_OACC_DECLARE.
19214 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
19216 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
19217 (@add<mode>3_carry): Rename from add<mode>3_carry.
19218 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
19219 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
19220 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
19221 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
19222 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
19223 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
19224 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
19225 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
19226 (cmpstrnsi): Use gen_cmp_1.
19227 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
19228 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
19229 (@umonitor_<mode>): Rename from umonitor_<mode>.
19230 * config/i386/i386-expand.c (ix86_expand_copysign):
19231 Use gen_copysign3_const and gen_copysign3_var.
19232 (ix86_expand_xorsign): Use gen_xorsign3_1.
19233 (ix86_expand_branch): Use gen_sub3_carry_ccc,
19234 gen_sub3_carry_ccgz and gen_cmp1.
19235 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
19236 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
19237 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
19238 (ix86_split_lshr): Ditto.
19239 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
19241 2019-06-18 Jason Merrill <jason@redhat.com>
19243 * tree.c (build_constructor): Add MEM_STAT_DECL.
19245 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
19247 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
19248 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
19249 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
19250 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
19251 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
19252 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
19253 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
19254 Use CC_NZC instead of CC.
19255 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
19256 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
19257 (aarch64_print_operand): Handle E_CC_NZCmode.
19258 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
19259 of gen_set_clobber_cc.
19261 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
19263 * config/aarch64/aarch64-sve.md: Tabify file.
19265 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
19267 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
19268 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
19269 * config/aarch64/aarch64-sve.md: Use it.
19271 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
19273 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
19274 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
19275 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
19276 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
19277 (aarch64_expand_sve_vec_cmp_int): Use it.
19278 (aarch64_expand_sve_vec_cmp_float): Likewise.
19279 * config/aarch64/aarch64-sve.md: Likewise throughout.
19281 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
19282 Kugan Vivekanandarajah <kuganv@linaro.org>
19284 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
19285 (*cond_<optab><mode>_z): Fold into...
19286 (*cond_<optab><mode>_any): ...here. Also handle cases in which
19287 operand 4 can be tied to operand 0 (either inherently or via RA).
19289 2019-06-18 Richard Biener <rguenther@suse.de>
19292 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
19293 as if optimized away.
19295 2019-06-18 Tom de Vries <tdevries@suse.de>
19297 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
19298 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
19299 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
19301 (define_insn "@set_softstack_<mode>"): ... this.
19302 (define_insn "omp_simt_enter_<mode>"): Rename to ...
19303 (define_insn "@omp_simt_enter_<mode>"): ... this.
19304 (define_insn "omp_simt_exit_<mode>"): Rename to ...
19305 (define_insn "@omp_simt_exit_<mode>"): ... this.
19307 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
19309 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
19310 vf parameter. Restore the previous iv step of nscalars_step,
19311 but give it iv_type rather than compare_type. Tweak code order
19312 to match the comments.
19313 (vect_set_loop_condition_masked): Update accordingly.
19314 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
19315 for iv_precision. Tweak comment formatting.
19317 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
19319 * config/darwin.c: Strip trailing whitespace.
19321 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
19323 * config/darwin.c (darwin_emit_unwind_label): New default to false.
19324 (darwin_override_options): Set darwin_emit_unwind_label as needed.
19326 2019-06-18 Martin Jambor <mjambor@suse.cz>
19329 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
19330 caller does not have flag_ipa_cp set.
19332 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19334 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
19335 from "*fold_left_plus_<mode>", updated operands order.
19336 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
19337 * internal-fn.c (mask_fold_left_direct): New define.
19338 (expand_mask_fold_left_optab_fn): Likewise.
19339 (direct_mask_fold_left_optab_supported_p): Likewise.
19340 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
19341 * optabs.def (mask_fold_left_plus_optab): New optab.
19342 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
19343 masked internal_fn for a reduction ifn.
19344 (vectorize_fold_left_reduction): Add support for masking reductions.
19346 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
19348 PR middle-end/80791
19349 * target.def (predict_doloop_p): New hook.
19350 * targhooks.h (default_predict_doloop_p): New declaration.
19351 * targhooks.c (default_predict_doloop_p): New function.
19352 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
19353 * doc/tm.texi: Regenerate.
19354 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
19355 (TARGET_PREDICT_DOLOOP_P): New macro.
19356 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
19358 2019-06-17 Jakub Jelinek <jakub@redhat.com>
19360 * omp-low.c (struct omp_context): Add scan_inclusive field.
19361 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
19363 (struct omplow_simd_context): Add lastlane member.
19364 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
19365 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
19367 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
19368 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
19369 (lower_omp_scan): New function.
19370 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
19371 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
19372 check 3rd argument if present rather than 2nd.
19373 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
19374 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
19376 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
19377 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
19379 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
19380 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
19381 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
19383 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
19384 IFN_GOMP_SIMD_LANE argument.
19385 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
19386 encoded ->aux value.
19387 * tree-vect-stmts.c: Include attribs.h.
19388 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
19389 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
19391 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
19392 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
19394 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
19397 * config/i386/i386.md (*nabstf2_1): New insn pattern.
19398 (*nabs<mode>2_1): Ditto.
19399 (nabs sse-reg splitter): New splitter.
19400 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
19402 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
19404 PR bootstrap/90873.
19405 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
19408 2019-06-17 Tom de Vries <tdevries@suse.de>
19410 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
19411 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
19412 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
19414 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
19416 (define_insn "omp_simt_enter_insn"): Rename to ...
19417 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
19418 match_operand 0, 1 and 2, as well as the unspec_volatile result.
19419 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
19420 gen_omp_simt_enter_si.
19421 (define_expand "omp_simt_exit"): New.
19422 (define_insn "omp_simt_exit"): Rename to ...
19423 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
19426 2019-06-17 Matthew Green <mrg@eterna.com.au>
19427 Maya Rashish <coypu@sdf.org>
19429 * config.gcc (aarch64*-*-netbsd*): New target.
19430 * config/aarch64/aarch64-netbsd.h: New file.
19431 * config/aarch64/t-aarch64-netbsd: Likewise.
19433 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
19435 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
19436 the access path from base to first VIEW_CONVERT_EXPR or
19439 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
19441 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
19442 access path on BIT_FIELD_REFs.
19444 2019-06-17 Martin Liska <mliska@suse.cz>
19447 * ipa-utils.h (odr_type_p): Remove dead code.
19449 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19451 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
19452 alternative Solaris 11.4 format.
19453 * configure: Regenerate.
19455 2019-06-17 Tom de Vries <tdevries@suse.de>
19457 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
19458 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
19460 (define_insn "call_value_insn"): Rename to ...
19461 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
19463 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
19466 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
19468 PR middle-end/64242
19469 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
19470 frame clobbers and schedule block.
19471 (builtin_longjmp): Likewise.
19473 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19475 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
19476 describe how to perform MSPABI compliant 64-bit shift.
19477 * config/msp430/msp430.md (ashldi3): New define_expand.
19478 (ashrdi3): New define_expand.
19479 (lshrdi3): New define_expand.
19481 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19483 * doc/sourcebuild.texi: Document new effective target keyword
19486 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
19488 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
19489 indirect_refs_may_alias_p): Revert accidental commits.
19491 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
19492 at the end of structures.
19494 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
19496 * config/darwin.c (machopic_indirect_call_target): Use renamed
19497 darwin_picsymbol_stubs to decide on output.
19498 (darwin_override_options): Handle darwin_picsymbol_stubs.
19499 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
19500 (LD64_VERSION): Revise default.
19501 * config/darwin.opt: (mpic-symbol-stubs): New option.
19502 (darwin_picsymbol_stubs): New variable.
19503 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
19504 rename to TARGET_MACHO_PICSYM_STUBS.
19505 * config/i386/i386.c (output_pic_addr_const): Likewise.
19506 * config/i386/i386.h Likewise.
19507 * config/rs6000/darwin.h: Likewise.
19508 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
19509 darwin_picsymbol_stubs.
19511 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
19513 * config/darwin.opt (prebind, noprebind, seglinkedit,
19514 noseglinkedit): Add RejectNegative.
19516 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
19518 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
19519 in my previous patch.
19521 2019-06-16 Tom de Vries <tdevries@suse.de>
19523 PR tree-optimization/89376
19524 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
19526 2019-06-15 Maya Rashish <coypu@sdf.org>
19528 * doc/invoke.texi (Spec Files): Update location of the
19531 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
19533 * doc/extend.texi (Common Function Attributes): Clarify
19534 no_sanitize. Fix grammar.
19536 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
19538 * tree-ssa-alias.c (alias_stats): Add
19539 nonoverlapping_component_refs_p_may_alias,
19540 nonoverlapping_component_refs_p_no_alias,
19541 nonoverlapping_component_refs_of_decl_p_may_alias,
19542 nonoverlapping_component_refs_of_decl_p_no_alias.
19543 (dump_alias_stats): Dump them.
19544 (nonoverlapping_component_refs_of_decl_p): Add stats.
19545 (nonoverlapping_component_refs_p): Add stats; do not stop on first
19548 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
19550 * config/i386/i386.md (and<mode>3): Generate zero-extends for
19551 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
19553 (*anddi3_doubleword): Split before reload. Merge with
19554 anddi->zext pre-reload splitter.
19555 (*andndi3_doubleword): Split before reload.
19556 (*<code>di3_doubleword): Ditto.
19557 (*one_cmpldi2_doubleword): Ditto.
19559 2019-06-15 Jakub Jelinek <jakub@redhat.com>
19561 PR middle-end/90779
19562 * gimplify.c: Include omp-offload.h and context.h.
19563 (gimplify_bind_expr): Add "omp declare target" attributes
19564 to static block scope variables inside of target region or target
19567 2019-06-15 Tom de Vries <tdevries@suse.de>
19569 PR tree-optimization/90009
19570 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
19571 Return NULL if bb contains IFN_UNIQUE.
19573 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
19575 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
19576 (un): New define_mode_attr.
19577 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
19578 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
19579 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
19581 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
19583 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
19585 * config/darwin.opt: Add RejectNegative where needed, reorder
19586 and add minimal functional descriptions.
19588 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
19590 PR rtl-optimization/90765
19591 * calls.c (update_stack_alignment_for_call): New function.
19592 (expand_call): Call update_stack_alignment_for_call when
19593 outgoing parameter is passed in the stack.
19594 (emit_library_call_value_1): Likewise.
19595 * function.c (locate_and_pad_parm): Don't update
19596 stack_alignment_needed and preferred_stack_boundary.
19598 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
19601 * config/i386/i386-features.c
19602 (dimode_scalar_chain::compute_convert_gain): Replace
19603 mmxsse_to_integer with sse_to_integer.
19604 * config/i386/i386.c (ix86_register_move_cost): Verify that
19605 moves between MMX and non-MMX units require secondary memory.
19606 Correct costs of moves between SSE and integer units.
19607 * config/i386/i386.h (processor_costs): Rename cost of moving
19608 SSE register to integer to sse_to_integer. Rename cost of
19610 2019-06-14 Matt Thomas <matt@3am-software.com>
19611 Matthew Green <mrg@eterna.com.au>
19612 Nick Hudson <skrll@netbsd.org>
19613 Maya Rashish <coypu@sdf.org>
19614 Richard Earnshaw <rearnsha@arm.com>
19616 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
19617 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
19618 * config/arm/netbsd-eabi.h: New file.
19619 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
19621 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
19622 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
19623 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
19624 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
19626 2019-06-14 Richard Biener <rguenther@suse.de>
19628 * tree-loop-distribution.c (classify_partition): Return
19629 whether a reduction appeared in all partitions and do not
19630 stop builtin detection because of this.
19631 (distribute_loop): Sort a non-builtin partition last if
19632 there's a reduction in all partitions and make sure the
19633 partition prevailing as last is not a builtin.
19635 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
19638 * ipa-prop.c (add_to_agg_contents_list): New function.
19639 (clobber_by_agg_contents_list_p): Likewise.
19640 (extract_mem_content): Likewise.
19641 (get_place_in_agg_contents_list): Delete.
19642 (determine_known_aggregate_parts): Renamed from
19643 determine_locally_known_aggregate_parts. New parameter
19646 2019-06-13 Martin Sebor <msebor@redhat.com>
19648 PR tree-optimization/90662
19649 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
19652 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
19655 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
19656 dbase is not TARGET_MEM_REF.
19658 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
19660 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
19662 (and<mode>3): Use gen_extend_insn instead of indirect functions.
19663 Do not generate DImode extends for 32bit targets.
19664 (and->zext post-reload splitter): Use gen_extend_insn
19665 instead of indirect functions.
19666 (anddi->zext pre-reload splitter): New.
19667 (*zext<mode>_doubleword_and): Remove.
19668 (*zext<mode>_doubleword): Ditto.
19669 (*zextsi_doubleword): Dittto.
19671 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
19673 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
19674 Use gen_sub3_insn instead of indirect function.
19675 (ix86_expand_ashl_const): Use gen_add2_insn instead of
19677 (ix86_adjust_counter): Ditto.
19679 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
19680 Lijia He <helijia@linux.ibm.com>
19682 PR tree-optimization/77820
19683 * tree-ssa-threadedge.c
19684 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
19686 (thread_across_edge): Add call to
19687 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
19689 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
19691 * config/darwin-driver.c (validate_macosx_version_min): New.
19692 (darwin_default_min_version): Cleanup and validate supplied version.
19693 (darwin_driver_init): Likewise and push cleaned version into opts.
19695 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
19697 PR tree-optimization/90869
19698 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
19699 converts in MEM_REF referencing decl rather than view converts
19700 from decl type to MEM_REF type.
19702 2019-06-13 Richard Biener <rguenther@suse.de>
19704 PR tree-optimization/90856
19705 * tree-sra.c (build_ref_for_model): Only use
19706 build_reconstructed_reference when address-spaces are the same.
19708 2019-06-13 Jakub Jelinek <jakub@redhat.com>
19710 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
19711 wrap ei variable name in the declaration in ()s.
19712 (nvptx_single): Actually use mode_label variable. Formatting fix.
19714 2019-06-13 Richard Biener <rguenther@suse.de>
19716 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
19717 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
19718 also return the condition stmt.
19719 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
19720 loop we can version and version that, reusing the loop version
19721 created by if-conversion instead of versioning again.
19723 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
19725 * gimple-loop-versioning.cc (prune_loop_conditions): Use
19727 * tree-vrp (value_range_base::may_contain_p): Call into
19728 value_inside_range.
19729 (value_inside_range): Make private inside value_range_base class.
19730 Take min/max from *this.
19731 (range_includes_p): Remove.
19732 * tree-vrp.h (value_range_base): Add value_inside_range.
19733 (range_includes_p): Remove.
19734 (range_includes_zero_p): Call may_contain_p.
19735 * vr-values.c (compare_range_with_value): Same.
19737 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
19739 * doc/extend.texi (ARC Function Attributes): Update info.
19741 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
19743 PR tree-optimization/89713
19744 * doc/invoke.texi (-ffinite-loops): Document new option.
19745 * common.opt (-ffinite-loops): New option.
19746 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
19747 IFN_GOACC_LOOP calls as necessary.
19748 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
19750 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
19751 IFN_GOACC_LOOP call is not used.
19752 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
19754 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
19757 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
19758 compare_type is not with Pmode size, we will create an IV with
19759 Pmode size with truncated use (i.e. converted to the correct type).
19760 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
19761 (vect_iv_limit_for_full_masking): New. Factored out of
19762 vect_set_loop_condition_masked.
19763 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
19764 (vect_iv_limit_for_full_masking): Declare.
19766 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
19769 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
19770 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
19771 (get_alias_ptr_type_for_ptr_address): Likewise.
19772 (add_iv_candidate_for_use): Add scaled index candidate if useful.
19773 * tree-ssa-address.c (preferred_mem_scale_factor): New.
19774 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
19777 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
19779 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
19781 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
19783 * common/config/pru/pru-common.c: New file.
19784 * config.gcc: Add PRU target.
19785 * config/pru/alu-zext.md: New file.
19786 * config/pru/constraints.md: New file.
19787 * config/pru/predicates.md: New file.
19788 * config/pru/pru-opts.h: New file.
19789 * config/pru/pru-passes.c: New file.
19790 * config/pru/pru-pragma.c: New file.
19791 * config/pru/pru-protos.h: New file.
19792 * config/pru/pru.c: New file.
19793 * config/pru/pru.h: New file.
19794 * config/pru/pru.md: New file.
19795 * config/pru/pru.opt: New file.
19796 * config/pru/t-pru: New file.
19797 * doc/extend.texi: Document PRU pragmas.
19798 * doc/invoke.texi: Document PRU-specific options.
19799 * doc/md.texi: Document PRU asm constraints.
19801 2019-06-12 Martin Sebor <msebor@redhat.com>
19803 PR middle-end/90676
19804 * tree-pretty-print.c (dump_mem_ref): New function. Include
19805 MEM_REF type in output when different size than operand.
19806 (dump_generic_node): Move code to dump_mem_ref and call it.
19808 2019-06-12 Martin Sebor <msebor@redhat.com>
19810 PR tree-optimization/90662
19811 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
19814 2019-06-12 Tom de Vries <tdevries@suse.de>
19816 PR tree-optimization/90009
19817 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
19819 2019-06-12 Martin Liska <mliska@suse.cz>
19821 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
19823 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
19824 * mem-stats.h (mem_alloc_description::mem_alloc_description):
19825 Do not sanitize created maps.
19827 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
19829 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
19830 value_range::singleton_p.
19831 * tree-vrp.c (value_range_constant_singleton): Remove.
19832 * tree-vrp.h (value_range_constant_singleton): Remove.
19833 * vr-values.c (vr_values::singleton): Use
19834 value_range::singleton_p.
19836 2019-06-12 Jakub Jelinek <jakub@redhat.com>
19839 * cfgexpand.c (align_local_variable): Add really_expand argument,
19840 don't SET_DECL_ALIGN if it is false.
19841 (add_stack_var): Add really_expand argument, pass it through to
19842 align_local_variable.
19843 (expand_one_stack_var_1): Pass true as really_expand to
19844 align_local_variable.
19845 (expand_one_ssa_partition): Pass true as really_expand to
19847 (expand_one_var): Pass really_expand through to add_stack_var.
19849 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
19851 * config/arm/iterators.md (VABAL): New int iterator.
19852 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
19853 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
19854 UNSPEC_VABAL_U values.
19856 2019-06-12 Martin Liska <mliska@suse.cz>
19858 * value-prof.c (stream_out_histogram_value): Only first value
19861 2019-06-12 Jakub Jelinek <jakub@redhat.com>
19864 * symtab.c (symtab_node::set_section): Allow being called on aliases
19865 as long as they aren't analyzed yet.
19867 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
19869 * config/mips/mips.c (mips_final_postscan_insn): Modify call
19870 to `mips_set_text_contents_type' to indicate whether a
19871 non-debug insn follows.
19873 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
19875 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
19876 enabling -mpcrel by default.
19877 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
19878 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
19879 that the test against -mcpu=future is done first. Then test if
19880 -mprefixed-addr is on for -mpcrel.
19881 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
19883 2019-06-11 Jakub Jelinek <jakub@redhat.com>
19886 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
19887 instead of and.u%d.
19889 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
19891 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
19893 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
19895 PR c++/90449 - add -Winaccessible-base option.
19896 * doc/invoke.texi (Winaccessible-base): Document.
19898 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
19900 PR tree-optimization/62041
19901 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
19903 2019-06-11 Jason Merrill <jason@redhat.com>
19905 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
19906 * tree.c (get_tree_code_name): Likewise.
19907 * print-tree.c (print_node): Only briefly print a node with an
19910 2019-06-11 Jakub Jelinek <jakub@redhat.com>
19913 * trans-mem.c (tm_memopt_compute_available): Add assertion
19914 that blocks is not empty. Formatting fix.
19916 2019-06-11 Martin Liska <mliska@suse.cz>
19919 * hash-table.h: Extend create_gcc, add one parameter
19920 that is passed into hash_table::hash_table.
19922 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
19924 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
19926 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
19927 Emit clobber also for non-sse operations.
19928 (ix86_split_fp_absneg_operator): New function.
19929 * config/i386/i386.md (SSEMODEF): New mode iterator.
19930 (ssevecmodef): New mode attribute.
19931 (<code>tf2): Use absneg code iterator.
19932 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
19933 Add three-operand AVX alternatives.
19934 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
19935 Use absneg code iterator and X87MODEF mode iterator.
19936 (absneg fp_reg non-sse splitter): Call absneg code iterator
19937 and X87MODEF mode iterator.
19938 (absneg general_reg non-sse splitter): Use absneg code iterator
19939 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
19940 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
19941 code iterator. Add three-operand AVX alternative.
19942 (absneg sse_reg splitter): Use absneg code iterator
19943 and SSEMODEF mode iterator. Handle AVX operands.
19944 (absneg fp_reg splitter): Use absneg code iterator
19945 and MODEF mode iterator.
19946 (absneg general_reg splitter): Merge splitters using MODEF mode
19947 iterator. Use absneg code iterator. Call
19948 ix86_split_fp_absneg_operator.
19949 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
19950 Do not enable for non-sse modes before reload.
19951 (CSGNMODE): Remove.
19952 (CSGNVMODE): Ditto.
19953 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
19954 ssevecmodef mode attribute instaed of CSGNVMODE.
19955 (copysign<mode>3_const): Ditto.
19956 (copysign<mode>3_var): Ditto.
19957 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
19958 Use absneg code iterator. Simplify code using std::swap.
19959 * config/i386/predicates.md (absneg_operator): Remove.
19961 2019-06-10 Martin Sebor <msebor@redhat.com>
19963 * gimple-fold.c (get_range_strlen): Update comment that didn't
19964 make it into r267503 or related commits.
19966 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
19968 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
19969 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
19971 2019-06-10 Jakub Jelinek <jakub@redhat.com>
19973 * tree.def (OMP_SCAN): New tree code.
19974 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
19975 OMP_CLAUSE_EXCLUSIVE.
19976 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
19977 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
19978 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
19979 OMP_CLAUSE_{IN,EX}CLUSIVE.
19980 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
19981 * tree-nested.c (convert_nonlocal_reference_stmt,
19982 convert_local_reference_stmt, convert_gimple_call): Handle
19984 * tree-pretty-print.c (dump_omp_clause): Handle
19985 OMP_CLAUSE_{IN,EX}CLUSIVE.
19986 (dump_generic_node): Handle OMP_SCAN.
19987 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
19988 * gimple.h (gomp_scan): New type.
19989 (is_a_helper <gomp_scan *>::test,
19990 is_a_helper <const gomp_scan *>::test): New templates.
19991 (gimple_build_omp_scan): Declare.
19992 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
19993 gimple_omp_scan_set_clauses): New inline functions.
19994 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
19995 * gimple.c (gimple_build_omp_scan): New function.
19996 (gimple_copy): Handle GIMPLE_OMP_SCAN.
19997 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
19998 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
19999 GIMPLE_OMP_TASKGROUP.
20000 (dump_gimple_omp_scan): New function.
20001 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
20002 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
20003 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
20004 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
20005 (is_gimple_stmt): Handle OMP_SCAN.
20006 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
20007 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
20008 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
20009 mentioned in nested #pragma omp scan. Handle
20010 OMP_CLAUSE_{IN,EX}CLUSIVE.
20011 (gimplify_expr): Handle OMP_SCAN.
20012 * omp-low.c (check_omp_nesting_restrictions): For parent context,
20013 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
20015 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
20018 2019-06-10 Martin Liska <mliska@suse.cz>
20020 * ipa-cp.c (ignore_edge_p): New function.
20021 (build_toporder_info): Use it.
20022 * ipa-inline.c (ignore_edge_p): New function.
20023 (inline_small_functions): Use it.
20024 * ipa-pure-const.c (ignore_edge_for_nothrow):
20025 Verify opt_for_fn for caller and callee.
20026 (ignore_edge_for_pure_const): Likewise.
20027 * ipa-reference.c (ignore_edge_p): Extend to check
20029 * ipa-utils.c (searchc): Refactor.
20030 * ipa-utils.h: Fix coding style.
20032 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
20034 * config/arc/arc.c (arc_rtx_costs): Update costs.
20036 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
20038 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
20039 (arc_split_ior): Likewise.
20040 (arc_check_mov_const): Likewise.
20041 (arc_split_mov_const): Likewise.
20042 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
20043 (arc_rtx_costs): Replace check Crr with Cax constraint.
20044 (prepare_move_operands): Cleanup, remove unused code.
20045 (arc_split_ior): New function.
20046 (arc_check_ior_const): Likewise.
20047 (arc_split_mov_const): Likewise.
20048 (arc_check_mov_const): Likewise.
20049 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
20050 in define_insn_and_split pattern.
20051 (iorsi3): Likewise.
20052 (mulsi3_v2): Add new matching variant.
20053 (andsi3_i): Cleanup pattern.
20054 (rotrsi3_cnt1): Update pattern.
20055 (rotrsi3_cnt8): New pattern.
20056 (ashlsi2_cnt8): Likewise.
20057 (ashlsi2_cnt16): Likewise.
20058 * config/arc/constraints.md (C0p): Update constraint.
20060 (C0x): New pattern.
20061 (Cax): New pattern.
20063 2019-06-10 Martin Liska <mliska@suse.cz>
20065 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
20066 Update coding style.
20067 (sem_item_optimizer::dump_cong_classes):
20068 Print how many items are in a non-singular class. Improve
20071 2019-06-10 Martin Liska <mliska@suse.cz>
20073 * value-prof.c (dump_histogram_value): Change dump format.
20074 (gimple_mod_subtract_transform): Remove legacy comment.
20076 2019-06-10 Martin Liska <mliska@suse.cz>
20078 * value-prof.c (dump_histogram_value): Print histogram values
20081 2019-06-10 Martin Liska <mliska@suse.cz>
20083 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
20084 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
20085 * ipa-profile.c (ipa_profile_generate_summary):
20086 Use get_most_common_single_value.
20087 * tree-profile.c (gimple_init_gcov_profiler):
20088 Instrument with __gcov_one_value_profiler_v2
20089 and __gcov_indirect_call_profiler_v4.
20090 * value-prof.c (dump_histogram_value):
20091 Print all values for HIST_TYPE_SINGLE_VALUE.
20092 (stream_out_histogram_value): Update assert for
20094 (stream_in_histogram_value): Set number of
20095 counters for HIST_TYPE_SINGLE_VALUE.
20096 (get_most_common_single_value): New.
20097 (gimple_divmod_fixed_value_transform):
20098 Use get_most_common_single_value.
20099 (gimple_ic_transform): Likewise.
20100 (gimple_stringops_transform): Likewise.
20101 (gimple_find_values_to_profile): Set number
20102 of counters for HIST_TYPE_SINGLE_VALUE.
20103 * value-prof.h (get_most_common_single_value): New.
20105 2019-06-10 Martin Liska <mliska@suse.cz>
20107 * hash-map.h: Pass default value to hash_table ctor.
20108 * hash-table.h: Add default value to call of a ctor.
20110 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
20112 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
20113 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
20115 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
20118 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
20119 Call pa_output_function_label.
20120 (TARGET_ASM_FUNCTION_PROLOGUE): define.
20121 * config/pa/pa-protos.h (pa_output_function_label): Declare.
20122 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
20124 (pa_linux_output_function_prologue): Declare.
20125 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
20126 (pa_output_function_label): New.
20127 (pa_output_function_prologue): Revise to use pa_output_function_label.
20128 (pa_linux_output_function_prologue): New.
20129 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
20131 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
20133 * tree-vrp.h (value_range_base::intersect): New.
20134 (value_range::intersect_helper): Move from here...
20135 (value_range_base::intersect_helper): ...to here.
20136 * tree-vrp.c (value_range::intersect_helper): Rename to...
20137 (value_range_base::intersect_helper): ...this, and rewrite to
20138 return a value instead of modifying THIS in place.
20139 Also, move equivalence handling...
20140 (value_range::intersect): ...here, while calling intersect_helper.
20141 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
20143 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
20145 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
20147 2019-06-07 Jakub Jelinek <jakub@redhat.com>
20149 * Makefile.in (genprogerr): Add condmd.
20150 (genprog): Remove it here.
20152 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
20154 * doc/invoke.texi (AMD GCN Options): Add gfx906.
20156 2019-06-07 Richard Biener <rguenther@suse.de>
20159 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
20160 that appear after user labels.
20162 2019-06-07 Martin Liska <mliska@suse.cz>
20164 * cselib.c (cselib_init): Disable hash table
20166 * hash-set.h: Pass new default argument to m_table.
20167 * hash-table.c: Add global variable with hash table
20168 sanitization limit.
20169 * hash-table.h (Allocator>::hash_table): Add new argument
20171 (hashtab_chk_error): New.
20172 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
20173 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
20174 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
20176 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
20178 * common.opt (flto-odr-type-merging): Ignore.
20179 * invoke.texi (-flto-odr-type-merging): Remove.
20180 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
20181 (can_be_vtable_hashed_p): Remove.
20182 (hash_odr_vtable): Remove.
20183 (odr_vtable_hasher::hash): Remove.
20184 (types_same_for_odr): Remove.
20185 (types_odr_comparable): Remove.
20186 (odr_vtable_hasher::equal): Remove.
20187 (odr_vtable_hash_type, odr_vtable_hash): Remove.
20188 (add_type_duplicate): Do not synchronize vtable and name hashtables.
20189 (get_odr_type): Do not use vtable hash.
20190 (dump_odr_type): Remove commented out code.
20191 (build_type_inheritance_graph): Do not allocate vtable hash.
20192 (rebuild_type_inheritance_graph): Do not delete vtable hash.
20193 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
20194 (odr_type_p): Likewise.
20195 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
20198 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
20200 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
20201 immediately after same_types_for_tbaa_p returns -1 and continue
20202 looking for possible exact match; if matching types are arrays
20203 watch for partial overlaps.
20204 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
20205 (indirect_refs_may_alias_p): Do type based disambiguation first;
20208 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
20210 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
20212 2019-06-07 Martin Liska <mliska@suse.cz>
20214 * doc/invoke.texi: Remove param.
20215 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
20217 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
20218 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
20219 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
20220 * profile.c (instrument_values): Remove
20221 HIST_TYPE_INDIR_CALL_TOPN.
20222 * tree-profile.c (init_ic_make_global_vars):
20223 Always build __gcov_indirect_call only.
20224 (gimple_init_gcov_profiler): Remove usage
20225 of PARAM_INDIR_CALL_TOPN_PROFILE.
20226 (gimple_gen_ic_profiler): Likewise.
20227 * value-prof.c (dump_histogram_value): Likewise.
20228 (stream_in_histogram_value): Likewise.
20229 (gimple_indirect_call_to_profile): Likewise.
20230 (gimple_find_values_to_profile): Likewise.
20231 * value-prof.h (enum hist_type): Likewise.
20233 2019-06-07 Martin Liska <mliska@suse.cz>
20235 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
20238 2019-06-07 Martin Liska <mliska@suse.cz>
20240 PR tree-optimization/78902
20241 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
20242 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
20243 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
20244 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
20245 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
20246 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
20247 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
20248 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
20249 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
20250 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
20251 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
20252 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
20253 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
20255 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
20256 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
20257 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
20258 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
20259 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
20260 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
20261 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
20262 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
20263 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
20264 warn_unused_result attribute.
20265 (BUILT_IN_STRDUP): Likewise.
20266 (BUILT_IN_STRNDUP): Likewise.
20267 (BUILT_IN_ALLOCA): Likewise.
20268 (BUILT_IN_CALLOC): Likewise.
20269 (BUILT_IN_MALLOC): Likewise.
20270 (BUILT_IN_REALLOC): Likewise.
20272 2019-06-06 Jim Wilson <jimw@sifive.com>
20275 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
20276 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
20277 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
20279 2019-06-06 Martin Sebor <msebor@redhat.com>
20281 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
20282 (handle_builtin_malloc): Remove trailing spaces.
20283 (handle_builtin_memset): Same.
20284 (handle_builtin_memcmp): Same.
20285 (compute_string_length): Same.
20286 (determine_min_objsize): Same.
20287 (handle_builtin_string_cmp): Same.
20288 (handle_char_store): Same. Break up excessively long line.
20290 2019-06-06 Martin Jambor <mjambor@suse.cz>
20292 * tree-sra.c (build_reconstructed_reference): Drop the alignment
20295 2019-06-06 Martin Jambor <mjambor@suse.cz>
20297 * tree-sra.c (struct access): New field grp_same_access_path.
20298 (dump_access): Dump it.
20299 (build_reconstructed_reference): New function.
20300 (build_ref_for_model): Use it if possible.
20301 (path_comparable_for_same_access): New function.
20302 (same_access_path_p): Likewise.
20303 (sort_and_splice_var_accesses): Set the new flag.
20304 (analyze_access_subtree): Likewise.
20305 (propagate_subaccesses_across_link): Propagate zero value of the new
20306 flag down the access tree.
20308 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
20310 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
20311 * config/gcn/gcn.opt (gpu_type): Add gfx906.
20312 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
20313 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
20316 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20318 PR tree-optimization/90332
20319 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
20320 Handle VALS containing two vectors.
20321 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
20323 (@aarch64_combinez<mode>): ... This.
20324 (*aarch64_combinez_be<mode>): Rename to...
20325 (@aarch64_combinez_be<mode>): ... This.
20326 (vec_init<mode><Vhalf>): New define_expand.
20327 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
20329 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20331 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
20332 library functions only when not optimizing for size.
20333 (ashlsi3): Likewise.
20334 (ashrhi3): Likewise.
20335 (ashrsi3): Likewise.
20336 (lshrhi3): Likewise.
20337 (lshrsi3): Likewise.
20339 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
20341 PR rtl-optimization/88751
20342 * ira.c (ira): Use the number of the actually referenced registers
20343 when calculating the threshold.
20345 2019-06-06 Jakub Jelinek <jakub@redhat.com>
20347 * configure: Regenerate.
20349 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20351 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
20352 register if it is in memory, so the shift can be emulated with a rotate
20354 (ashrhi3): Likewise.
20355 (lshrhi3): Likewise.
20357 2019-06-06 Martin Liska <mliska@suse.cz>
20359 PR tree-optimization/87954
20360 * match.pd: Simplify mult where both arguments are 0 or 1.
20362 2019-06-06 Richard Biener <rguenther@suse.de>
20364 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
20365 put equivalences on UNDEFINED ranges.
20366 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
20367 Make sure to drop defs of stmts added during simplification
20370 2019-06-06 Richard Biener <rguenther@suse.de>
20372 * tree-ssa-structalias.c: Include tree-cfg.h.
20373 (make_heapvar): Do not make heap vars artificial.
20374 (find_func_aliases_for_builtin_call): Handle stack allocation
20376 (find_func_aliases): Delay processing of simple enough returns
20378 (set_uids_in_ptset): Adjust.
20379 (find_what_var_points_to): Likewise.
20380 (solve_constraints): Do not dump points-to sets here.
20381 (compute_points_to_sets): Post-process return statements,
20382 amending the escaped solution. Dump points-to sets afterwards.
20383 (ipa_pta_execute): Dump points-to sets.
20385 2019-06-06 Martin Liska <mliska@suse.cz>
20388 * doc/install.texi: Fix HTML headers and
20389 titles for 'Installing GCC' pages.
20391 2019-06-06 Martin Liska <mliska@suse.cz>
20393 * ipa-icf-gimple.h (dump_message_1): Remove.
20394 (dump_message): Likewise.
20395 (return_false_with_message_1): Print also file.
20396 (return_false_with_msg): Likewise.
20397 (return_with_result): Likewise.
20398 (return_with_debug): Likewise.
20399 * ipa-icf.c (sem_function::equals_private): Remove call
20402 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
20404 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
20405 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
20406 memory operand for it.
20407 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
20409 2019-06-05 Martin Sebor <msebor@redhat.com>
20411 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
20412 Adjust quoting and hyphenation.
20413 * convert.c (convert_to_real_1): Same.
20414 * gcc.c (driver_wrong_lang_callback): Same.
20415 (driver::handle_unrecognized_options): Same.
20416 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
20417 * opts-common.c (cmdline_handle_error): Same.
20418 (read_cmdline_option): Same.
20419 * opts-global.c (complain_wrong_lang): Same.
20420 (print_ignored_options): Same.
20421 (handle_common_deferred_options): Same.
20422 * pretty-print.h: Same.
20423 * print-rtl.c (debug_bb_n_slim): Same.
20424 * sched-rgn.c (make_pass_sched_fusion): Same.
20425 * tree-cfg.c (verify_gimple_assign_unary): Same.
20426 (verify_gimple_label): Same.
20427 * tree-ssa-operands.c (verify_ssa_operands): Same.
20428 * varasm.c (do_assemble_alias): Same.
20429 (assemble_alias): Same.
20431 2019-06-05 Richard Henderson <rth@twiddle.net>
20433 * config/alpha/alpha.c (direct_return): Move down after
20434 struct machine_function definition; use saved frame_size;
20436 (struct machine_function): Add sa_mask, sa_size, frame_size.
20437 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
20438 (alpha_compute_frame_layout): ... new function.
20439 (TARGET_COMPUTE_FRAME_LAYOUT): New.
20440 (alpha_initial_elimination_offset): Use saved sa_size.
20441 (alpha_vms_initial_elimination_offset): Likewise.
20442 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
20443 (alpha_expand_prologue): Use saved frame data. Merge integer
20444 and fp register save loops.
20445 (alpha_expand_epilogue): Likewise.
20446 (alpha_start_function): Use saved frame data.
20447 * config/alpha/alpha-protos.h (direct_return): Update.
20448 (alpha_sa_size): Remove.
20450 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
20452 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
20453 multiplication by a power-of-two value.
20454 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
20455 and turn the modulo operation into a masking operation.
20457 2019-06-05 Jakub Jelinek <jakub@redhat.com>
20460 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
20461 with VOIDmode inner operands.
20463 2019-06-05 Richard Biener <rguenther@suse.de>
20465 PR middle-end/90726
20466 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
20467 turn an expression graph into a tree.
20469 2019-06-05 Jakub Jelinek <jakub@redhat.com>
20471 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
20473 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
20474 treat it like explicit monotonic schedule modifier.
20475 (expand_omp_for): Initialize has_lastprivate_conditional.
20476 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
20479 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
20480 references, lookup in in hash map MEM_REF operand instead of the
20482 (lower_omp_1): When looking for lastprivate conditional assignments,
20483 handle MEM_REFs with REFERENCE_TYPE operands.
20485 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
20486 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
20487 and references a VLA. Handle references to non-VLAs if is_simd
20488 all privatization clauses like reductions.
20489 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
20490 If omp_is_reference, use always omp simd arrays and set
20491 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
20492 fails, emit reference initialization.
20494 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
20497 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
20498 _mm_mask_fpclass_sd_mask): New intrinsics.
20499 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
20500 * config/i386/i386-builtin.def
20501 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
20503 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
20504 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
20505 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
20506 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
20507 case QI_FTYPE_V2SF_INT): Ditto.
20508 * config/i386/sse.md
20509 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
20510 Extended to insnstructions with mask operands.
20512 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20514 * config/rs6000/constraints.md (define_register_constraint "wp"):
20516 (define_register_constraint "wq"): Delete.
20517 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20518 (rs6000_init_hard_regno_mode_ok): Adjust.
20519 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20520 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
20521 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
20522 (define_mode_attr VSa): Delete.
20523 (define_mode_attr VSisa): New.
20524 (rest of file): Adjust.
20525 * doc/md.texi (Machine Constraints): Adjust.
20527 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20529 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
20530 (define_attr "enabled"): Handle those new isa values.
20532 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20534 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
20535 (define_mode_attr VSr5): Delete.
20536 (define_mode_attr VStype_sqrt): Delete.
20537 (define_mode_iterator VSX_SPDP): Delete.
20538 (define_mode_attr VS_spdp_res): Delete.
20539 (define_mode_attr VS_spdp_insn): Delete.
20540 (define_mode_attr VS_spdp_type): Delete.
20541 (*vsx_sqrt<mode>2): Adjust.
20542 (vsx_<VS_spdp_insn>): Delete, split to...
20543 (vsx_xscvdpsp): ... this. New. And...
20544 (vsx_xvcvspdp): ... this. New. And...
20545 (vsx_xvcvdpsp): ... this. New.
20547 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20549 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
20551 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
20552 (rest of file): Adjust.
20554 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20556 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
20557 (vsx_extract_<mode>_var): Ditto.
20559 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20561 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
20564 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20566 * config/rs6000/constraints.md (define_register_constraint "ww"):
20568 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20569 (rs6000_init_hard_regno_mode_ok): Adjust.
20570 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20571 RS6000_CONSTRAINT_ww.
20572 * config/rs6000/rs6000.md: Adjust.
20573 * config/rs6000/vsx.md: Adjust.
20574 * doc/md.texi (Machine Constraints): Adjust.
20576 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20578 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
20579 (define_mode_attr sd): New.
20580 (define_mode_attr s): New.
20581 (define_mode_attr Ftrad): Delete.
20582 (define_mode_attr Fvsx): Delete.
20583 (define_mode_attr Fs): Delete.
20584 (rest of file): Use the new mode attributes.
20585 * config.rs6000/vsx.md: Use the new mode attributes.
20587 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20589 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
20592 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20594 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
20595 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
20596 used with VSX_B, VSX_D, or VSX_F, with just "wa".
20598 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
20601 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
20602 C++ with strict ANSI requirements.
20604 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
20606 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
20607 computations when step is 1.
20609 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20611 * config/rs6000/constraints.md (define_register_constraint "wf"):
20613 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20614 (rs6000_init_hard_regno_mode_ok): Adjust.
20615 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20616 RS6000_CONSTRAINT_wf.
20617 * config/rs6000/rs6000.md: Adjust.
20618 * config/rs6000/vsx.md: Adjust.
20619 * doc/md.texi (Machine Constraints): Adjust.
20621 2019-06-04 Andrew Pinski <apinski@marvell.com>
20623 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
20626 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20628 * config/rs6000/constraints.md (define_register_constraint "wd"):
20630 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20631 (rs6000_init_hard_regno_mode_ok): Adjust.
20632 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20633 RS6000_CONSTRAINT_wd.
20634 * config/rs6000/rs6000.md: Adjust.
20635 * config/rs6000/vsx.md: Adjust.
20636 * doc/md.texi (Machine Constraints): Adjust.
20638 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20640 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
20641 (rest of file): Adjust.
20643 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20645 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
20646 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
20647 (vsx_splat_<mode>_reg): Adjust.
20649 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20651 * config/rs6000/constraints.md (define_register_constraint "ws"):
20653 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20654 (rs6000_init_hard_regno_mode_ok): Adjust.
20655 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20656 RS6000_CONSTRAINT_ws.
20657 * config/rs6000/rs6000.md: Adjust.
20658 * config/rs6000/vsx.md: Adjust.
20659 * doc/md.texi (Machine Constraints): Adjust.
20661 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20663 * config/rs6000/constraints.md (define_register_constraint "wv"):
20665 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20666 (rs6000_init_hard_regno_mode_ok): Adjust.
20667 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20668 RS6000_CONSTRAINT_wv.
20669 * config/rs6000/rs6000.md: Adjust.
20670 * config/rs6000/vsx.md: Adjust.
20671 * doc/md.texi (Machine Constraints): Adjust.
20673 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
20675 * config/rs6000/constraints.md (define_register_constraint "wi"):
20677 (define_register_constraint "wt"): Delete.
20678 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20679 (rs6000_init_hard_regno_mode_ok): Adjust.
20680 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20681 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
20682 * config/rs6000/rs6000.md: Adjust.
20683 * config/rs6000/vsx.md: Adjust.
20684 * doc/md.texi (Machine Constraints): Adjust.
20686 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
20688 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
20690 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
20691 default_elf_asm_output_external.
20693 2019-06-04 Martin Liska <mliska@suse.cz>
20695 * ipa-icf.c (INCLUDE_LIST): Remove.
20696 (sem_item_optimizer::execute): Remove call to init_wpa.
20697 * ipa-icf.h (init_wpa): Remove.
20699 2019-06-04 Jakub Jelinek <jakub@redhat.com>
20701 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
20702 conditional on combined for simd.
20703 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
20705 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
20706 constructs, don't remove lastprivate_conditional_map, but instead set
20707 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
20708 to parent construct temporaries.
20709 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
20710 like !ctx->lastprivate_conditional_map.
20711 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
20712 use up->outer context instead of up.
20713 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
20714 gimple_omp_for_combined_p.
20715 (expand_omp_for_static_nochunk): Likewise.
20716 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
20717 probably moved over into expand_omp_for_generic rather than being copied
20720 2019-06-04 Martin Liska <mliska@suse.cz>
20722 * value-prof.c (dump_histogram_value): Fix typo.
20723 (gimple_mod_subtract_transform): Likewise.
20725 2019-06-04 Richard Biener <rguenther@suse.de>
20727 PR middle-end/90726
20728 * tree-chrec.c (chrec_contains_symbols): Add to visited.
20729 (tree_contains_chrecs): Likewise.
20730 (chrec_contains_symbols_defined_in_loop): Move here and avoid
20731 exponential behaivor from ...
20732 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
20734 (expression_expensive_p): Avoid exponential behavior and compute
20735 expanded size, rejecting any expansion.
20736 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
20737 (idx_contains_abnormal_ssa_name_p): Likewise.
20738 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
20739 (contains_abnormal_ssa_name_p): Simplify and use
20740 walk_tree_without_duplicates.
20742 2019-06-04 Richard Biener <rguenther@suse.de>
20744 PR tree-optimization/90738
20746 2019-06-03 Richard Biener <rguenther@suse.de>
20748 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
20749 full reference tree and record in ref->ref.
20750 (vn_reference_lookup_3): Pass in original ref to
20751 ao_ref_init_from_vn_reference.
20752 (vn_reference_lookup): Likewise.
20753 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
20754 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
20755 Handle non-decl bases in the original reference.
20757 2019-06-04 Martin Liska <mliska@suse.cz>
20759 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
20760 number of references.
20761 (sem_item_optimizer::do_congruence_step):
20762 (sem_item_optimizer::worklist_push): Dump how references
20764 (sem_item_optimizer::worklist_pop): Use heap.
20765 (sem_item_optimizer::process_cong_reduction): Likewise.
20766 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
20768 2019-06-04 Martin Liska <mliska@suse.cz>
20770 * ipa-icf.h (struct sem_usage_pair_hash): New.
20771 (sem_usage_pair_hash::hash): Likewise.
20772 (sem_usage_pair_hash::equal): Likewise.
20773 (struct sem_usage_hash): Likewise.
20774 * ipa-icf.c (sem_item::sem_item): Initialize
20775 referenced_by_count.
20776 (sem_item::add_reference): Register a reference
20777 in ref_map and not in target->usages.
20778 (sem_item::setup): Remove initialization of
20780 (sem_item::~sem_item): Remove usage of dead vectors.
20781 (sem_item::dump): Remove dump of references.
20782 (sem_item_optimizer::sem_item_optimizer): Initialize
20784 (sem_item_optimizer::read_section): Remove useless
20786 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
20787 (sem_item_optimizer::build_graph): Pass m_references
20788 to ::add_reference.
20789 (sem_item_optimizer::verify_classes): Remove usage of dead
20791 (sem_item_optimizer::traverse_congruence_split): Return true
20792 when a class is split.
20793 (sem_item_optimizer::do_congruence_step_for_index): Use
20794 hash_map for look up of (sem_item *, index). That brings
20795 significant speed up.
20796 (sem_item_optimizer::do_congruence_step): Return true
20797 when a split is done.
20798 (congruence_class::is_class_used): Use referenced_by_count.
20800 2019-06-04 Alan Modra <amodra@gmail.com>
20803 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
20806 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
20808 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
20809 * config/rs6000/rs6000.c (direct_move_p): Adjust.
20810 (rs6000_secondary_reload_simple_move): Adjust.
20811 (rs6000_opt_masks): Neuter the "mfpgpr" option.
20812 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
20813 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
20816 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
20817 (floatunssi<mode>2_lfiwzx): Adjust.
20818 (fix_trunc<mode>si2_stfiwx): Adjust.
20819 (fixuns_trunc<mode>si2_stfiwx): Adjust.
20820 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
20821 (mfpgpr): Mark as deprecated.
20822 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
20823 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
20824 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
20826 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
20828 * config/rs6000/constraints.md (define_register_constraint "wg"):
20830 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20831 RS6000_CONSTRAINT_wg.
20832 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20833 (rs6000_init_hard_regno_mode_ok): Adjust.
20834 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
20835 Delete "wg" alternatives.
20836 * doc/md.texi (Machine Constraints): Adjust.
20838 2019-06-03 Alan Modra <amodra@gmail.com>
20840 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
20841 (get_uncond_jump_length): Assert length less than INT_MAX and
20844 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
20846 PR middle-end/64242
20847 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
20849 (expand_builtin_nonlocal_goto): Likewise.
20851 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
20853 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
20854 (aarch64_asm_output_external): Declare.
20855 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
20856 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
20857 (aarch64_asm_output_alias): New.
20858 (aarch64_asm_output_external): New.
20859 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
20860 (ASM_OUTPUT_EXTERNAL): Define.
20862 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
20863 * tree-vrp.h (value_range_base::nonzero_p): New.
20864 (value_range_base::set_nonnull): Rename to...
20865 (value_range_base::set_nonzero): ...this.
20866 (value_range_base::set_null): Rename to...
20867 (value_range_base::set_zero): ...this.
20868 (value_range::set_nonnull): Remove.
20869 (value_range::set_null): Remove.
20870 * tree-vrp.c (range_is_null): Remove.
20871 (range_is_nonnull): Remove.
20872 (extract_range_from_binary_expr): Use value_range_base::*zero_p
20873 instead of range_is_*null.
20874 (extract_range_from_unary_expr): Same.
20875 (value_range_base::set_nonnull): Rename to...
20876 (value_range_base::set_nonzero): ...this.
20877 (value_range::set_nonnull): Remove.
20878 (value_range_base::set_null): Rename to...
20879 (value_range_base::set_zero): ...this.
20880 (value_range::set_null): Remove.
20881 (extract_range_from_binary_expr): Rename set_*null uses to
20883 (extract_range_from_unary_expr): Same.
20884 (union_helper): Same.
20885 * vr-values.c (get_value_range): Use set_*zero instead of
20887 (vr_values::extract_range_from_binary_expr): Same.
20888 (vr_values::extract_range_basic): Same.
20890 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
20893 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
20895 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20897 * config/aarch64/iterators.md (MAX_OPP): New code attr.
20898 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
20900 (aarch64_<su>abd<mode>_3): ... This.
20901 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
20903 2019-06-03 Richard Biener <rguenther@suse.de>
20905 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
20906 full reference tree and record in ref->ref.
20907 (vn_reference_lookup_3): Pass in original ref to
20908 ao_ref_init_from_vn_reference.
20909 (vn_reference_lookup): Likewise.
20910 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
20911 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
20912 Handle non-decl bases in the original reference.
20914 2019-06-03 Martin Liska <mliska@suse.cz>
20916 * doc/generic.texi: Remove Java Trees.
20918 2019-06-03 Martin Liska <mliska@suse.cz>
20920 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
20921 returns 0 when operands are equal.
20923 2019-06-03 Richard Biener <rguenther@suse.de>
20925 PR tree-optimization/90716
20926 * tree-loop-distribution.c (destroy_loop): Process blocks in
20929 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20932 * vector-builder.h (vector_builder::count_dups): New method.
20933 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
20935 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
20936 (vec_init<mode><Vel>): New pattern.
20937 * config/aarch64/aarch64.c (emit_insr): New function.
20938 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
20939 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
20940 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
20941 (aarch64_sve_expand_vector_init): Define two overloaded functions.
20943 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20945 PR tree-optimization/90681
20946 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
20947 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
20948 special case for SLP, but fail on non-groupped loads.
20950 2019-06-03 Martin Liska <mliska@suse.cz>
20952 * cfg.c (debug): Use TDF_DETAILS for debug and
20953 print edge info only once.
20955 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
20958 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
20960 2019-06-01 Martin Sebor <msebor@redhat.com>
20962 PR middle-end/90694
20963 * tree-pretty-print.c (dump_generic_node): Add parentheses.
20965 2019-05-31 Jan Hubicka <jh@suse.cz>
20967 * alias.c: Include ipa-utils.h.
20968 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
20969 * ipa-devirt.c (prevailing_odr_type): New.
20970 * ipa-utils.h (previaling_odr_type): Declare.
20972 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
20973 Hongtao Liu <hongtao.liu@intel.com>
20976 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
20977 NOTE_INSN_DELETED_LABEL check.
20979 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
20980 Robert Suchanek <robert.suchanek@mips.com>
20982 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
20983 and 3rd operands of the fmadd/fmsub/maddv builtin.
20985 2019-05-31 Jakub Jelinek <jakub@redhat.com>
20987 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
20988 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
20989 on OMP_SIMD if not nested inside of worksharing loop that also has
20990 lastprivate conditional clause for the same decl.
20991 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
20992 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
20994 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
20996 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
20998 (lower_lastprivate_clauses): Likewise.
20999 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
21000 calling lower_rec_input_clauses.
21001 (lower_omp_for): Likewise.
21002 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
21003 clause on simd construct.
21004 * omp-expand.c (expand_omp_simd): Initialize cond_var if
21005 OMP_CLAUSE__CONDTEMP_ clause is present.
21007 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
21010 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
21013 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
21014 TEX_D32, TEX_D64 or TEX_D128.
21016 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
21018 * match.pd (~(vec?cst1:cst2)): New transformation.
21020 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
21022 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
21023 ((size_t)(A /[ex] B) CMP C): New transformation.
21025 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
21027 * doc/md.texi: Document define_insn_and_rewrite.
21028 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
21029 * gensupport.c (queue_elem): Update comment.
21030 (replace_operands_with_dups): New function.
21031 (gen_rewrite_sequence): Likewise.
21032 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
21033 * read-rtl.c (apply_subst_iterator): Likewise.
21034 (add_condition_to_rtx, named_rtx_p): Likewise.
21035 (rtx_reader::read_rtx_operand): Likewise.
21036 * config/aarch64/aarch64-sve.md
21037 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
21038 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
21039 define_insn_and_rewrite.
21040 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
21041 Remove separate define_split.
21043 2019-05-31 Jan Hubicka <jh@suse.cz>
21045 * tree-ssa-alias.c (type_has_components_p): New function.
21046 (aliasing_component_refs_p): Use it.
21048 2019-05-31 Martin Liska <mliska@suse.cz>
21050 * gdbhooks.py: Add const_tree to TreePrinter.
21052 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
21055 * common.opt (feliminate-unused-debug-symbols): Enable by default.
21056 * doc/invoke.texi (Debugging Options): Document new default of
21057 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
21059 2019-05-31 Jakub Jelinek <jakub@redhat.com>
21061 PR tree-optimization/90671
21062 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
21063 template_block used to be empty on the first call, don't use
21064 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
21065 seq with bb_seq and set it with set_bb_seq.
21067 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
21069 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
21071 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
21072 Michael Meissner <meissner@linux.ibm.com>
21074 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
21075 (prefixed_mem_operand): Likewise.
21076 (non_prefixed_mem_operand): Likewise.
21077 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
21079 * config/rs6000/rs6000.c (print_operand_address): Handle
21080 PC-relative addresses.
21081 (mode_supports_prefixed_address_p): New function.
21082 (rs6000_prefixed_address): New function.
21083 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
21084 (SYMBOL_REF_PCREL_P): Likewise.
21086 2019-05-30 Jakub Jelinek <jakub@redhat.com>
21088 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
21089 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
21090 (gimplify_omp_for): If worksharing loop with lastprivate conditional
21091 is nested inside of parallel region, add _condtemp_ clause to both.
21092 * tree-nested.c (convert_nonlocal_omp_clauses,
21093 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
21095 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
21097 * omp-general.c (omp_extract_for_data): Compute it.
21098 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
21099 (lower_rec_input_clauses): Likewise.
21100 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
21101 clause is already present, just add one further one after it.
21102 (lower_lastprivate_clauses): Handle cond_ptr with array type.
21103 (lower_send_shared_vars): Clear _condtemp_ vars.
21104 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
21105 or section or taskgroup.
21106 * omp-expand.c (determine_parallel_type): Disallow combining only if
21107 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
21108 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
21109 (expand_omp_for_generic, expand_omp_for_static_nochunk,
21110 expand_omp_for_static_chunk, expand_omp_for): Use
21111 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
21112 determine if a special set of API routines are needed and if condtemp
21113 needs to be initialized, while always initialize cond_var if
21114 fd->lastprivate_conditional is non-zero.
21116 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
21117 Michael Meissner <meissner@linux.ibm.com>
21119 * config/rs6000/constraints.md (eI): New constraint.
21120 * config/rs6000/predicates.md (cint34_operand): New predicate.
21121 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
21122 (SIGNED_34BIT_OFFSET_P): Likewise.
21123 * doc/md.texi (eI): Document constraint.
21125 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
21127 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
21129 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
21130 Michael Meissner <meissner@linux.ibm.com>
21132 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
21133 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
21134 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
21135 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
21136 (OTHER_FUTURE_MASKS): Likewise.
21137 (POWERPC_MASKS): Likewise.
21138 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
21139 specified without -mprefixed-addr or -mcpu=future. Error if
21140 -mprefixed-addr is specified without -mcpu=future.
21141 (rs6000_opt_masks): Add entry for prefixed-addr.
21142 * rs6000.opt (mprefixed-addr): New option.
21144 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
21146 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
21147 cfun->is_thunk check.
21149 2019-05-30 Jakub Jelinek <jakub@redhat.com>
21151 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
21154 2019-05-30 Martin Liska <mliska@suse.cz>
21156 * gdbinit.in: Fix 'ptc' command. Add trt
21157 that prints TREE_TYPE($).
21159 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
21160 Alan Modra <amodra@gmail.com>
21162 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
21164 (rs6000_indirect_call_template_1): ...and here.
21165 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
21166 plt16_ha, plt16_lo, mtctr indirect calls. Use
21167 rs6000_pltseq_enum.
21168 (rs6000_decl_ok_for_sibcall): New function.
21169 (rs6000_function_ok_for_sibcall): Refactor.
21170 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
21171 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
21172 when pcrel. Reorganize.
21173 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
21174 * rs6000.h (rs6000_pltseq_enum): New enum.
21175 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
21176 (*pltseq_tocsave): Use rs6000_pltseq_enum.
21177 (*pltseq_plt16_ha): Likewise.
21178 (*pltseq_plt16_lo): Likewise.
21179 (*pltseq_mtctr): Likewise.
21180 (*pltseq_plt_pcrel): New insn.
21181 (*call_local_aix): Handle @notoc calls.
21182 (*call_value_local_aix): Likewise.
21183 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
21184 (*call_value_nonlocal_aix): Likewise.
21185 (*call_indirect_pcrel): New insn.
21186 (*call_value_indirect_pcrel): Likewise.
21188 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
21190 * config/i386/sse.md (*save_multiple<mode>): Rename from
21191 save_multiple<mode>.
21192 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
21193 (*restore_multiple_and_return<mode>): Rename from
21194 restore_multiple_and_return<mode>.
21195 (*restore_multiple_leave_return<mode>): Rename from
21196 restore_multiple_leave_return<mode>.
21198 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
21200 * config.gcc (rx-*-linux*): New target.
21201 * config/rx/elf.opt: New file.
21202 * config/rx/linux.h: Likewise.
21203 * config/rx/t-linux: Likewise.
21204 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
21206 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
21207 (ASM_APP_OFF): Likewise.
21208 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
21211 2019-05-29 Jan Hubicka <jh@suse.cz>
21213 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
21214 variants are pointer equivalent.
21216 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21218 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
21219 * config/aarch64/aarch64-sve2.md: New file.
21220 (<u>avg<mode>3_floor): New pattern.
21221 (<u>avg<mode>3_ceil): Likewise.
21222 (*<sur>h<addsub><mode>): Likewise.
21223 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
21224 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
21226 2019-05-29 Jakub Jelinek <jakub@redhat.com>
21229 * optc-save-gen.awk: In cl_optimization_print, use correct condition
21230 for var_opt_string printing. In cl_optimization_print_diff, print
21231 (null) instead of invoking undefined behavior if one of the
21232 var_opt_string pointers is NULL and use && instead of first || in the
21233 guarding condition. For var_target_other options, handle const char *
21234 target variables similarly to const char * optimize node variables.
21236 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
21238 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
21239 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
21240 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
21241 Add autib1716 and pacib1716 initialisation.
21242 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
21243 for autib1716 and pacib1716.
21244 * config/aarch64/aarch64-protos.h (aarch64_key_type,
21245 aarch64_post_cfi_startproc): Define.
21246 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
21247 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
21248 aarch64_handle_pac_ret_protection): Set default sign key to A.
21249 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
21250 aarch64_expand_prologue): Add check for b-key.
21251 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
21252 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
21253 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
21254 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
21255 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
21256 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
21257 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
21258 * config/aarch64/aarch64.md (do_return): Add check for b-key.
21259 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
21260 pauth_hint_num_a with pauth_hint_num.
21261 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
21262 pauth_hint_num_a with pauth_hint_num.
21263 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
21264 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
21265 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
21266 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
21267 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
21268 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
21269 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
21270 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
21271 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
21272 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
21273 UNSPEC_AUTIA1716 respectively.
21274 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
21275 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
21276 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
21277 * doc/invoke.texi (-mbranch-protection): Add b-key type.
21278 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
21279 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
21281 2019-05-29 Jakub Jelinek <jakub@redhat.com>
21283 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
21284 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
21285 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
21286 explicit clause on combined parallel into implicit shared clause.
21287 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
21288 and firstprivate if the decl has one too from combined parallel to
21289 the worksharing construct.
21291 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
21292 Michael Meissner <meissner@linux.ibm.com>
21294 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
21296 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
21298 * rtl.h (LABEL_REF_P): New #define.
21300 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
21302 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
21304 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21306 * internal-fn.c: Marked mask_load_direct as vectorizable.
21307 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
21308 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
21309 combined even if masks different with allow_slp_p param.
21310 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
21311 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
21312 dissolve SLP-only vectorizable groups when SLP has been discarded.
21313 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
21314 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
21316 (vect_build_slp_tree_1): Fixed comment typo.
21317 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
21318 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
21319 loads for SLP only.
21320 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
21322 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
21324 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21326 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
21327 Remove obsolete use_thunk reference.
21328 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
21329 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
21330 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
21331 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
21332 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
21333 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
21334 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
21335 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
21336 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
21338 2019-05-28 Nathan Sidwell <nathan@acm.org>
21340 * tree.h (IDENTIFIER_ANON_P): New.
21341 (anon_aggrname_format, anon_aggname_p): Don't declare.
21342 (make_anon_name): Declare.
21343 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
21344 (hash_tree): Likewise.
21345 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
21346 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
21347 (anon_cnt, make_anon_name): New.
21349 2019-05-28 Martin Liska <mliska@suse.cz>
21352 * opts-global.c (decode_options): Print help for all
21353 help_option_arguments.
21354 * opts.c (print_help): Add new argument.
21355 (common_handle_option): Remember all values into
21356 help_option_arguments.
21357 * opts.h (print_help): Add new argument.
21359 2019-05-28 Martin Liska <mliska@suse.cz>
21362 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
21363 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
21364 (func_checker::compare_bb): Call compare_loops.
21366 2019-05-27 Jakub Jelinek <jakub@redhat.com>
21368 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
21369 on sections construct.
21370 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
21372 (lower_omp_sections): Handle lastprivate conditional.
21373 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
21374 lastprivate_conditional_map.
21375 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
21377 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
21378 critical, taskgroup and section regions when looking for a region
21379 with non-NULL lastprivate_conditional_map.
21381 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
21383 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
21384 (*ix86_gen_sub3): Ditto.
21385 (*ix86_gen_sub3_carry): Ditto.
21386 (*ix86_gen_one_cmpl2): Ditto.
21387 (*ix86_gen_andsp): Ditto.
21388 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
21389 (gen_and2_insn): New static function.
21390 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
21391 Use gen_add3_insn instead of ix86_gen_add3.
21392 (ix86_expand_split_stack_prologue): Use gen_add2_insn
21393 instead of ix86_gen_add3.
21394 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
21395 Use gen_sub3_insn instead of ix86_gen_sub3.
21396 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
21397 instead of ix86_gen_add3.
21398 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
21399 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
21400 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
21401 * config/i386/i386-options.c (ix86_option_override_internal):
21402 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
21403 ix86_gen_one_cmpl2 and ix86_gen_andsp.
21405 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
21407 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
21408 and DW_OP_GNU_const_index opcodes.
21410 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
21412 * config/i386/i386.h (STACK_SIZE_MODE): Define.
21414 2019-05-27 Richard Biener <rguenther@suse.de>
21416 PR tree-optimization/90637
21417 * tree-ssa-sink.c (statement_sink_location): Honor the
21418 computed sink location for single-uses.
21420 2019-05-27 Richard Biener <rguenther@suse.de>
21422 PR middle-end/90610
21423 * match.pd (vec_perm): Avoid clobbering op0 when not generating
21426 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
21428 * config/i386/i386.md (@sub<mode>3_carry): Rename
21429 from sub<mode>3_carry.
21430 (@leave_<mode>): New expander.
21431 (*leave): Rename from leave.
21432 (*leave_rex64): Rename from leave_rex64.
21433 (@monitorx_<mode>): Rename from monitorx_<mode>.
21434 (@clzero_<mode>): Rename from clzero_<mode>.
21435 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
21436 from sse3_monitor_<mode>.
21437 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
21438 (*ix86_gen_leave): Ditto.
21439 (*ix86_gen_monitor): Ditto.
21440 (*ix86_gen_monitorx): Ditto.
21441 (*ix86_gen_clzero): Ditto.
21442 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
21443 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
21444 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
21445 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
21446 Use gen_sse3_monitor instead of ix86_gen_monitor.
21447 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
21448 instead of ix86_gen_monitorx.
21449 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
21450 instead of ix86_gen_clzero.
21451 * config/i386/i386-options.c (ix86_option_override_internal):
21452 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
21453 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
21455 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
21457 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
21458 Rename from tls_global_dynamic_64_<mode>.
21459 (@tls_local_dynamic_base_64_<mode>): Rename from
21460 tls_local_dynamic_base_64_<mode>.
21461 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
21462 Remove indirect function.
21463 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
21464 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
21465 instead of ix86_gen_tls_global_dynamic_64.
21466 Use gen_tls_local_dynamic_base_64 instead of
21467 ix86_gen_tls_local_dynamic_base_64.
21468 * config/i386/i386-options.c (ix86_option_override_internal):
21469 Do not initialize ix86_gen_tls_global_dynamic_64 and
21470 ix86_gen_tls_local_dynamic_base_64.
21472 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
21474 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
21475 Rename from pro_epilogue_adjust_stack_<mode>_add.
21476 (@pro_epilogue_adjust_stack_sub_<mode>)
21477 Rename from pro_epilogue_adjust_stack_<mode>_sub.
21478 (@allocate_stack_worker_probe_<mode>):
21479 Rename from allocate_stack_worker_probe_<mode>.
21480 (allocate_stack): Use gen_allocate_stack_worker_probe.
21481 (probe_stack): Use gen_probe_stack_1.
21482 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
21483 (@adjust_stack_and_probe_<mode>): Rename from
21484 adjust_stack_and_probe<mode>.
21485 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
21486 (stack_protect_set): Use gen_stack_protect_set_1.
21487 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
21488 (stack_protect_test): Use gen_stack_protect_test_1.
21489 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
21490 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
21491 Remove indirect function.
21492 (*ix86_gen_adjust_stack_and_probe): Ditto.
21493 (*ix86_gen_probe_stack_range): Ditto.
21494 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
21495 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
21496 (ix86_adjust_stack_and_probe_stack_clash): Use
21497 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
21498 (ix86_adjust_stack_and_probe): Ditto.
21499 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
21500 of ix86_gen_probe_stack_range.
21501 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
21502 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
21503 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
21504 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
21505 CODE_FOR_stack_protect_test_{si,di}.
21506 * config/i386/i386-options.c (ix86_option_override_internal):
21507 Do not initialize ix86_gen_allocate_stack_worker,
21508 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
21510 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
21512 * doc/invoke.texi (Link Options): Many editorial changes around
21515 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21517 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
21518 pre-Solaris 11 referene and most Studio compiler details.
21520 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
21523 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
21524 DImode to SImode in floating-point registers on 64-bit target.
21525 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
21526 register_operand in xmpyu patterns.
21528 2019-05-24 Jakub Jelinek <jakub@redhat.com>
21530 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
21531 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
21532 OMP_CLAUSE__REDUCTEMP_.
21533 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21534 OMP_CLAUSE__CONDTEMP_.
21535 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
21536 * tree-pretty-print.c (dump_omp_clause): Likewise.
21537 * tree-nested.c (convert_nonlocal_omp_clauses,
21538 convert_local_omp_clauses): Likewise.
21539 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
21540 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
21541 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
21543 (gimplify_omp_for): Warn and disable conditional modifier from
21544 lastprivate on loop iterators.
21545 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
21547 * omp-general.c (omp_extract_for_data): Initialize it.
21548 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
21550 (delete_omp_context): Delete it.
21551 (lower_lastprivate_conditional_clauses): New function.
21552 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
21553 handle lastprivate conditional clauses.
21554 (lower_reduction_clauses): Add CLIST argument, emit it into
21555 the critical section if any.
21556 (lower_omp_sections): Adjust lower_lastprivate_clauses and
21557 lower_reduction_clauses callers.
21558 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
21559 to lower_lastprivate_clauses.
21560 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
21561 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
21562 clist into a critical section if not emitted there already by
21563 lower_reduction_clauses.
21564 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
21566 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
21567 conditional variables.
21568 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
21570 (expand_omp_for_generic, expand_omp_for_static_nochunk,
21571 expand_omp_for_static_chunk): Handle lastprivate conditional.
21572 (expand_omp_for): Handle fd.lastprivate_conditional like
21575 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
21577 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
21578 kernel does not exit cleanly.
21579 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
21581 2019-05-24 Jason Merrill <jason@redhat.com>
21584 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
21586 2019-05-24 Richard Biener <rguenther@suse.de>
21589 * tree-loop-distribution.c (struct partition): Add location
21591 (partition_alloc): Initialize all fields.
21592 (generate_memset_builtin): Use the location recorded in the
21593 partition for the generated call.
21594 (generate_memcpy_builtin): Likewise.
21595 (classify_partition): Record the location of a single store
21596 as location for the partition.
21598 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
21600 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
21603 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
21606 * common/config/aarch64/aarch64-common.c
21607 (aarch64_rewrite_selected_cpu): Change local temporary variable
21608 type from unsigned long to uint64_t.
21609 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
21610 aarch64_get_extension_string_for_isa_flags): Change declaration to
21611 match new definition by replacing unsigned long with uint64_t.
21613 2019-05-24 Jakub Jelinek <jakub@redhat.com>
21616 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
21617 gen_attr_type just once instead of 4-7 times. Formatting fixes.
21618 Handle stack_protect_test_<mode> codegen similarly to corresponding
21621 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
21623 * config/i386/darwin.h: Reject -mfentry*.
21624 * doc/sourcebuild.texi: Document mfentry target support.
21626 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
21628 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
21629 Rename to rs6000_global_entry_point_prologue_needed_p. Return
21630 false for PC-relative functions.
21631 (rs6000_output_function_prologue): Change called function name to
21632 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
21633 name,1" for PC-relative functions.
21634 (rs6000_elf_declare_function_name): Change called function name to
21635 rs6000_global_entry_point_prologue_needed_p.
21637 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
21640 * config/i386/i386.c (gen_rtx_cost):
21641 Use ix86_tune_cost instead of ix86_cost.
21643 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
21644 Michael Meissner <meissner@linux.ibm.com>
21645 Segher Boessenkool <segher@kernel.crashing.org>
21647 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
21649 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
21650 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
21651 (rs6000_fndecl_pcrel_p): Likewise.
21652 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
21653 error if -mpcrel is requested without -mcpu=future.
21654 (rs6000_opt_masks): Add entry for pcrel.
21655 (rs6000_fndecl_pcrel_p): New function.
21656 (rs6000_pcrel_p): Likewise.
21657 * config/rs6000/rs6000.opt (mpcrel): New option.
21658 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
21660 2019-05-23 Jan Hubicka <jh@suse.cz>
21661 Martin Liska <mliska@suse.cz>
21663 PR tree-optimization/90576
21664 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
21666 (aliasing_component_refs_p): Fix three way size compare conditional;
21667 give up earlier in case we can not decide on equivalence.
21669 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
21670 Michael Meissner <meissner@linux.ibm.com>
21671 Segher Boessenkool <segher@kernel.crashing.org>
21673 * config.gcc: Add future cpu.
21674 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
21675 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
21677 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
21678 (RS6000_CPU): New instantiation for future cpu.
21679 * config/rs6000/rs6000-opts.h (enum processor_type): Add
21681 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
21682 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
21683 * config/rs6000/rs6000-tables.opt: Regenerate.
21684 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
21685 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
21686 (rs6000_machine_from_flags): Handle future cpu.
21687 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
21688 PROCESSOR_POWER9 for now.
21689 (rs6000_adjust_cost): Likewise.
21690 (rs6000_issue_rate): Likewise.
21691 (rs6000_register_move_cost): Likewise.
21692 (rs6000_opt_masks): Add entry for future.
21693 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
21694 (MASK_FUTURE): New #define.
21695 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
21696 * config/rs6000/rs6000.opt (mfuture): New target option.
21697 * doc/invoke.texi (mcpu): Add future cpu.
21699 2019-05-23 Martin Liska <mliska@suse.cz>
21702 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
21703 operation points to a temporary (pointed via tree_to_wide_ref)
21704 that is out of scope after the &.
21706 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
21709 * doc/extend.texi (Function Names): Add missing word.
21711 2019-05-23 Richard Biener <rguenther@suse.de>
21713 PR tree-optimization/88440
21714 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
21716 * tree-loop-distribution.c (generate_memset_builtin): Fold the
21718 (generate_memcpy_builtin): Likewise.
21719 (distribute_loop): Pass in whether to only distribute patterns.
21720 (prepare_perfect_loop_nest): Also allow size optimization.
21721 (pass_loop_distribution::execute): When optimizing a loop
21722 nest for size allow pattern replacement.
21724 2019-05-23 Jakub Jelinek <jakub@redhat.com>
21727 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
21730 2019-05-23 Martin Liska <mliska@suse.cz>
21733 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
21734 expression similarly to gimplify_decl_expr.
21736 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21738 * cse.c (cse_dump_path): s/dump_file/f.
21740 2019-05-22 David Malcolm <dmalcolm@redhat.com>
21743 * diagnostic-format-json.cc: Include "selftest.h".
21744 (json_from_expanded_location): Only add "file" key for non-NULL
21746 (json_from_location_range): Don't add "start" and "finish"
21747 children if they are UNKNOWN_LOCATION.
21748 (selftest::test_unknown_location): New selftest.
21749 (selftest::test_bad_endpoints): New selftest.
21750 (selftest::diagnostic_format_json_cc_tests): New function.
21751 * json.cc (json::object::get): New function.
21752 (selftest::test_object_get): New selftest.
21753 (selftest::json_cc_tests): Call it.
21754 * json.h (json::object::get): New decl.
21755 * selftest-run-tests.c (selftest::run_tests): Call
21756 selftest::diagnostic_format_json_cc_tests.
21757 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
21760 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
21761 Andrew Stubbs <amd@codesourcery.com>
21763 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
21764 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
21765 (kernel): Rename to...
21766 (main_kernel): ... this.
21767 (load_image): Load _init_array and _fini_array kernels.
21768 (run): Add argument for kernel to run.
21769 (main): Run init_array_kernel before main_kernel, and
21770 fini_array_kernel after.
21771 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
21772 amdgpu_hsa_kernel attribute on functions.
21773 (gcn_disable_constructors): Delete.
21774 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
21775 * config/gcn/crt0.c (size_t): Define.
21776 (_init_array, _fini_array): New.
21777 (__preinit_array_start, __preinit_array_end,
21778 __init_array_start, __init_array_end,
21779 __fini_array_start, __fini_array_end): Declare weak references.
21781 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
21783 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
21785 2019-05-22 Jason Merrill <jason@redhat.com>
21787 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
21789 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
21792 * config/i386/i386-options.c (ix86_init_machine_status): Set
21793 stack_frame_required to true.
21794 * config/i386/i386.c (ix86_get_frame_size): New function.
21795 (ix86_frame_pointer_required): Replace get_frame_size with
21796 ix86_get_frame_size.
21797 (ix86_compute_frame_layout): Likewise.
21798 (ix86_find_max_used_stack_alignment): Changed to void. Set
21799 stack_frame_required.
21800 (ix86_finalize_stack_frame_flags): Always call
21801 ix86_find_max_used_stack_alignment. Replace get_frame_size with
21802 ix86_get_frame_size.
21803 * config/i386/i386.h (machine_function): Add stack_frame_required.
21805 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
21807 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
21809 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
21811 * common/config/aarch64/aarch64-common.c
21812 (struct aarch64_option_extension, struct processor_name_to_arch,
21813 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
21814 aarch64_contains_opt,
21815 aarch64_get_extension_string_for_isa_flags): Change type of
21816 variables storing flags to uint64_t.
21817 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
21818 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
21819 * config/aarch64/aarch64.c (struct processor,
21820 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
21821 aarch64_validate_march, aarch64_override_options,
21822 aarch64_option_print, aarch64_handle_attr_isa_flags,
21823 aarch64_declare_function_name, aarch64_start_file): Make flag
21824 variables uint64_t.
21825 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
21826 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
21827 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
21828 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
21829 * config/aarch64/driver-aarch64.c
21830 (struct aarch64_arch_extension, struct aarch64_core_data,
21831 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
21832 flag variables uint64_t.
21833 * doc/invoke.texi: Add documentation for new arguments.
21835 2019-05-22 Richard Biener <rguenther@suse.de>
21837 * alias.c (ao_ref_from_mem): Move stack-slot sharing
21839 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
21841 2019-05-22 Martin Liska <mliska@suse.cz>
21844 * doc/extend.texi: Document the change.
21846 2019-05-22 Richard Biener <rguenther@suse.de>
21848 PR tree-optimization/90450
21849 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
21850 (mem_ref_hasher::equal): Check it.
21851 (mem_ref_alloc): Initialize it.
21852 (gather_mem_refs_stmt): Set it.
21854 2019-05-22 Richard Biener <rguenther@suse.de>
21856 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
21858 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
21861 2019-05-22 Alan Modra <amodra@gmail.com>
21863 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
21864 (ASM_CPU_SPEC): Conditionally add -many.
21865 * config/rs6000/rs6000.c (rs6000_machine): New static var.
21866 (rs6000_machine_from_flags, emit_asm_machine): New functions..
21867 (rs6000_file_start): ..extracted from here, and modified to
21869 (rs6000_output_function_prologue): Emit .machine as necessary.
21871 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
21873 PR middle-end/90553
21874 * ira-lives.c (process_bb_node_lives): Consider defs
21875 for a call insn to be die before the call, not after.
21877 * function.c (assign_parm_setup_block): Raise alignment of
21878 stacked parameter only for STRICT_ALIGNMENT targets.
21880 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
21882 * config/rs6000/constraints.md (define_register_constraint "wz"):
21884 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21885 RS6000_CONSTRAINT_wz.
21886 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21887 (rs6000_init_hard_regno_mode_ok): Adjust.
21888 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
21889 * doc/md.texi (Machine Constraints): Adjust.
21891 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
21893 * config/rs6000/constraints.md (define_register_constraint "wl"):
21895 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21896 RS6000_CONSTRAINT_wl.
21897 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21898 (rs6000_init_hard_regno_mode_ok): Adjust.
21899 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
21900 * doc/md.texi (Machine Constraints): Adjust.
21902 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
21904 * config/rs6000/constraints.md (define_register_constraint "wm"):
21906 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21907 RS6000_CONSTRAINT_wm.
21908 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21909 (rs6000_init_hard_regno_mode_ok): Adjust.
21910 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
21911 * doc/md.texi (Machine Constraints): Adjust.
21913 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
21915 * config/rs6000/constraints.md (define_register_constraint "wk"):
21917 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21918 RS6000_CONSTRAINT_wk.
21919 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21920 (rs6000_init_hard_regno_mode_ok): Adjust.
21921 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
21922 * doc/md.texi (Machine Constraints): Adjust.
21924 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
21926 * config/rs6000/constraints.md (define_register_constraint "wj"):
21928 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21929 RS6000_CONSTRAINT_wj.
21930 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21931 (rs6000_init_hard_regno_mode_ok): Adjust.
21932 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
21934 * config/rs6000/vsx.md: Ditto.
21935 * doc/md.texi (Machine Constraints): Adjust.
21937 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
21939 * config/rs6000/constraints.md (define_register_constraint "wh"):
21941 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21942 RS6000_CONSTRAINT_wh.
21943 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21944 (rs6000_init_hard_regno_mode_ok): Adjust.
21945 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
21946 * doc/md.texi (Machine Constraints): Adjust.
21948 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
21951 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
21952 Avoid calling gen_lowpart with CONST operand.
21954 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
21956 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
21957 field template_last_to_copy.
21958 (ssa_create_duplicates): Set it, and use it. Attempt to
21959 preserve more debug stmts.
21961 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
21963 * config/i386/sse.md (VF1_AVX2): New mode iterator.
21964 (signbit<mode>2): New expander
21966 2019-05-21 James Clarke <jrtc27@jrtc27.com>
21969 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
21970 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
21972 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
21974 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
21975 %ebx and %ecx bafore calling cpuid with leaf 1 or
21976 non-constant leaf argument.
21978 2019-05-21 Alan Modra <amodra@gmail.com>
21981 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
21982 power9 direct move cost.
21984 2019-05-21 Richard Biener <rguenther@suse.de>
21986 PR middle-end/90510
21987 * fold-const.c (fold_read_from_vector): New function.
21988 * fold-const.h (fold_read_from_vector): Declare.
21989 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
21990 single-element insert permutations. Canonicalize selector
21991 further and fix issue with last commit.
21993 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
21995 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
21996 parameter with default value false to declaration.
21997 (split_edges_for_insertion): New inline function. Wrapper for
21998 split_critical_edges with for_edge_insertion_p = true.
21999 * tree-cfg.c (split_critical_edges): Don't split non-critical
22000 edges if for_edge_insertion_p is false. Fix whitespace.
22001 * tree-ssa-pre.c (pass_pre::execute): Call
22002 split_edges_for_insertion instead of split_critical_edges.
22003 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
22004 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
22005 (pass_data_sink_code): Update function name in the comment.
22007 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
22009 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
22010 around is_value_included_in that knows how to handle BIT_AND_EXPR.
22011 (is_pred_expr_subset_of): Use the new function. Handle more cases where
22012 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
22015 2019-05-21 Martin Liska <mliska@suse.cz>
22017 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
22019 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
22020 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
22022 * config/rs6000/rs6000.c (rs6000_option_override_internal):
22024 (rs6000_function_arg): Likewise.
22025 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
22026 (rs6000_expand_ternop_builtin): Use interval syntax.
22027 (get_element_number): Likewise.
22028 (altivec_expand_builtin): Likewise.
22029 (rs6000_get_function_versions_dispatcher): Quote target_clones.
22031 2019-05-20 Jakub Jelinek <jakub@redhat.com>
22035 * function.h (struct function): Add calls_eh_return member.
22036 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
22037 gimplifying __builtin_eh_return call.
22038 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
22040 (expand_call_inline): Or in src_cfun->calls_eh_return into
22041 dst_cfun->calls_eh_return.
22042 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
22043 cfun->calls_eh_return.
22044 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
22045 * lto-streamer-out.c (output_struct_function_base): Write
22048 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
22050 PR rtl-optimization/43147
22051 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
22052 IX86_BUILTIN_SHUFPD.
22054 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
22056 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
22057 (refs_may_alias_p_1): ... here; update stats.
22058 (refs_may_alias_p): Do not update stats here.
22060 2019-05-20 Richard Biener <rguenther@suse.de>
22062 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
22063 doesn't produce pointers.
22064 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
22065 the first operand points to.
22067 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
22069 * tree-ssa-alias.c (compare_sizes): New function.
22070 (sompare_type_sizes): New function
22071 (aliasing_component_refs_p): Use it.
22072 (indirect_ref_may_alias_decl_p): Likewise.
22074 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22076 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
22078 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22080 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
22081 (LIBLSAN_EARLY_SPEC): Likewise.
22082 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
22084 2019-05-20 Martin Liska <mliska@suse.cz>
22086 * config/i386/i386.c (ix86_libc_has_fast_function):
22087 Add ATTRIBUTE_UNUSED for the argument.
22089 2019-05-20 Richard Biener <rguenther@suse.de>
22091 * gimple-match-head.c: Include vec-perm-indices.h.
22092 * generic-match-head.c: Likewise.
22093 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
22095 * fold-const.c (fold_vec_perm): Export.
22096 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
22097 (match.pd): ...here.
22099 2019-05-20 Jakub Jelinek <jakub@redhat.com>
22101 * cfgloop.h (struct loop): Add simdlen member.
22102 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
22103 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
22104 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
22105 as new argument to autovectorize_vector_sizes target hook. If
22106 loop->simdlen, pick up vector size where the vectorization factor
22107 is equal to loop->simd, and if there is none, fall back to the first
22109 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
22111 * omp-low.c (omp_clause_aligned_alignment): Likewise.
22112 * omp-general.c (omp_max_vf): Likewise.
22113 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
22114 * tree-vect-slp.c (vect_slp_bb): Likewise.
22115 * target.def (autovectorize_vector_sizes): Add ALL argument and
22117 * doc/tm.texi: Adjust documentation.
22118 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
22119 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
22120 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
22122 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
22123 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
22124 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
22125 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
22126 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
22127 preferred vector size is not 512-bit or 256-bit, just put those
22128 unpreferred ones last.
22130 2019-05-20 Martin Liska <mliska@suse.cz>
22132 * targhooks.c (default_libc_has_fast_function): New function.
22133 * targhooks.h (default_libc_has_fast_function): Likewise.
22135 2019-05-20 Martin Liska <mliska@suse.cz>
22137 PR middle-end/90263
22138 * builtins.c (expand_builtin_memory_copy_args): When having a
22139 target with fast mempcpy implementation do now use memcpy.
22140 * config/i386/i386.c (ix86_libc_has_fast_function): New.
22141 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
22142 * doc/tm.texi: Likewise.
22143 * doc/tm.texi.in: Likewise.
22145 * expr.c (emit_block_move_hints): Add 2 new arguments.
22146 * expr.h (emit_block_move_hints): Bail out when libcall
22147 to memcpy would be used.
22149 2019-05-20 Martin Liska <mliska@suse.cz>
22151 * profile-count.c: Add vertical spacing in order
22152 to separate functions.
22153 * profile-count.h: Likewise.
22155 2019-05-20 Martin Liska <mliska@suse.cz>
22157 * profile-count.h: Do not use full qualified
22159 * profile-count.c (profile_count::to_frequency): Likewise.
22161 2019-05-20 Martin Liska <mliska@suse.cz>
22163 * profile-count.h (enum profile_quality): Use capital letters
22164 for enum value names. Use the adjusted names.
22165 * profile-count.c: Use the adjusted names.
22167 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22169 * config/rs6000/constraints.md (define_register_constraint "wH"):
22171 (define_register_constraint "wI"): Delete.
22172 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22173 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
22174 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22175 (rs6000_init_hard_regno_mode_ok): Adjust.
22176 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
22177 resp. "d", or with "wa" as appropriate, all with "p8v".
22178 * config/rs6000/vsx.md: Ditto.
22179 * doc/md.texi (Machine Constraints): Adjust.
22181 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22183 * config/rs6000/constraints.md (define_register_constraint "wy"):
22185 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22186 RS6000_CONSTRAINT_wy.
22187 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22188 (rs6000_init_hard_regno_mode_ok): Adjust.
22189 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
22190 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
22191 (define_mode_attr Fisa): New.
22192 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
22193 * doc/md.texi (Machine Constraints): Adjust.
22195 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22197 * config/rs6000/constraints.md (define_register_constraint "wu"):
22199 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22200 RS6000_CONSTRAINT_wu.
22201 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22202 (rs6000_init_hard_regno_mode_ok): Adjust.
22203 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
22205 (define_mode_attr Fa): Delete.
22206 * config/rs6000/vsx.md: Ditto.
22207 * doc/md.texi (Machine Constraints): Adjust.
22209 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22211 * config/rs6000/constraints.md (define_register_constraint "wJ"):
22213 (define_register_constraint "wK"): Delete.
22214 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22215 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
22216 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22217 (rs6000_init_hard_regno_mode_ok): Adjust.
22218 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
22219 Replace "wK" constraint by "wH" with "p9v".
22220 * config/rs6000/vsx.md: Ditto.
22221 * doc/md.texi (Machine Constraints): Adjust.
22223 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22225 * config/rs6000/constraints.md (define_register_constraint "wb"):
22227 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22228 RS6000_CONSTRAINT_wb.
22229 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22230 (rs6000_init_hard_regno_mode_ok): Adjust.
22231 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
22232 * config/rs6000/vsx.md: Ditto.
22233 * doc/md.texi (Machine Constraints): Adjust.
22235 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22237 * config/rs6000/constraints.md (define_register_constraint "wo"):
22239 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22240 RS6000_CONSTRAINT_wo.
22241 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22242 (rs6000_init_hard_regno_mode_ok): Adjust.
22243 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
22244 * config/rs6000/altivec.md: Ditto.
22245 * doc/md.texi (Machine Constraints): Adjust.
22247 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
22249 * config/darwin-c.c (darwin_register_objc_includes): Do not
22250 prepend the sysroot when building gnu-runtime header search
22253 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
22255 * config/darwin.c (darwin_file_end): Use switch_to_section ()
22256 instead of direct output of the asm.
22258 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
22260 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
22261 argument to be type bool (was int before).
22262 (rs6000_emit_epilogue): Simplify some code. Declare some variables
22263 at first use. Use type bool for some variables. Fix a theoretical
22264 eh_return bug for svr4.
22266 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
22268 * config/rs6000/rs6000.md (isa): New attribute.
22269 (enabled): New attribute.
22271 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
22273 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
22274 assemble_start_function and assemble_end_function.
22276 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
22278 PR middle-end/89433
22279 * omp-general.c (oacc_verify_routine_clauses): Change formal
22280 parameters. Add checking if already marked with an OpenACC
22281 'routine' directive. Adjust all users.
22283 PR middle-end/89433
22284 * omp-general.c (oacc_build_routine_dims): Move some of its
22286 (oacc_verify_routine_clauses): ... this new function.
22287 * omp-general.h (oacc_verify_routine_clauses): New prototype.
22289 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
22291 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
22292 formating of picbase labels to match other ports.
22294 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
22296 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
22297 in the generated code.
22299 2019-05-16 Martin Sebor <msebor@redhat.com>
22301 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
22302 identifiers, keywords, operators, and types in diagnostics. Correct
22303 quoting, spelling, and sentence capitalization issues.
22304 (expand_builtin_atomic_is_lock_free): Same.
22305 (fold_builtin_next_arg): Same.
22306 * cfgexpand.c (expand_one_var): Same.
22307 (tree_conflicts_with_clobbers_p): Same.
22308 (expand_asm_stmt): Same.
22309 (verify_loop_structure): Same.
22310 * cgraphunit.c (process_function_and_variable_attributes): Same.
22311 * collect-utils.c (collect_execute): Same.
22312 * collect2.c (maybe_run_lto_and_relink): Same.
22313 (is_lto_object_file): Same.
22314 (scan_prog_file): Same.
22315 * convert.c (convert_to_real_1): Same.
22316 * dwarf2out.c (dwarf2out_begin_prologue): Same.
22317 * except.c (verify_eh_tree): Same.
22318 * gcc.c (execute): Same.
22319 (eval_spec_function): Same.
22320 (run_attempt): Same.
22321 (driver::set_up_specs): Same.
22322 (compare_debug_auxbase_opt_spec_function): Same.
22323 * gcov-tool.c (unlink_gcda_file): Same.
22325 (do_rewrite): Same.
22326 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
22327 * gimplify.c (gimplify_asm_expr): Same.
22328 (gimplify_adjust_omp_clauses): Same.
22329 * hsa-gen.c (gen_hsa_addr_insns): Same.
22330 (gen_hsa_insns_for_load): Same.
22331 (gen_hsa_cmp_insn_from_gimple): Same.
22332 (gen_hsa_insns_for_operation_assignment): Same.
22333 (gen_get_level): Same.
22334 (gen_hsa_alloca): Same.
22335 (omp_simple_builtin::generate): Same.
22336 (gen_hsa_atomic_for_builtin): Same.
22337 (gen_hsa_insns_for_call): Same.
22338 * input.c (dump_location_info): Same.
22339 * ipa-devirt.c (compare_virtual_tables): Same.
22340 * ira.c (ira_setup_eliminable_regset): Same.
22341 * lra-assigns.c (lra_assign): Same.
22342 * lra-constraints.c (lra_constraints): Same.
22343 * lto-streamer-in.c (lto_input_mode_table): Same.
22344 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
22345 (merge_and_complain): Same.
22346 (compile_offload_image): Same.
22347 (compile_images_for_offload_targets): Same.
22348 (debug_objcopy): Same.
22351 * opts.c (print_specific_help): Same.
22352 (parse_no_sanitize_attribute): Same.
22353 (print_help): Same.
22354 (handle_param): Same.
22355 * plugin.c (add_new_plugin): Same.
22356 (parse_plugin_arg_opt): Same.
22357 (try_init_one_plugin): Same.
22358 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
22359 operators, and types in diagnostics. Correct quoting and spelling
22361 * read-rtl-function.c (parse_edge_flag_token): Same.
22362 (function_reader::parse_enum_value): Same.
22363 * reg-stack.c (check_asm_stack_operands): Same.
22364 * regcprop.c (validate_value_data): Same.
22365 * sched-rgn.c (make_pass_sched_fusion): Same.
22366 * stmt.c (check_unique_operand_names): Same.
22367 * targhooks.c (default_target_option_pragma_parse): Same.
22368 * tlink.c (recompile_files): Same.
22369 * toplev.c (process_options): Same.
22370 (do_compile): Same.
22371 * trans-mem.c (diagnose_tm_1): Same.
22372 (ipa_tm_scan_irr_block): Same.
22373 (ipa_tm_diagnose_transaction): Same.
22374 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
22375 format a tree code name in a diagnostic.
22376 (verify_types_in_gimple_min_lval): Same.
22377 (verify_types_in_gimple_reference): Same.
22378 (verify_gimple_call): Same.
22379 (verify_gimple_assign_unary): Same.
22380 (verify_gimple_assign_binary): Same.
22381 (verify_gimple_assign_ternary): Same.
22382 (verify_gimple_assign_single): Same.
22383 (verify_gimple_switch): Same.
22384 (verify_gimple_label): Same.
22385 (verify_gimple_phi): Same.
22386 (verify_gimple_in_seq): Same.
22387 (verify_eh_throw_stmt_node): Same.
22388 (collect_subblocks): Same.
22389 (gimple_verify_flow_info): Same.
22390 (do_warn_unused_result): Same.
22391 * tree-inline.c (expand_call_inline): Same.
22392 * tree-into-ssa.c (update_ssa): Same.
22393 * tree.c (tree_int_cst_elt_check_failed): Same.
22394 (tree_vec_elt_check_failed): Same.
22395 (omp_clause_operand_check_failed): Same.
22396 (verify_type_variant): Same.
22397 (verify_type): Same.
22398 * value-prof.c (verify_histograms): Same.
22399 * varasm.c (assemble_start_function): Same.
22401 2019-05-16 Martin Sebor <msebor@redhat.com>
22403 * config/i386/i386-expand.c (get_element_number): Quote keywords
22404 and other internal names in diagnostics. Adjust other diagnostic
22405 formatting issues noted by -Wformat-diag.
22406 * config/i386/i386-features.c
22407 (ix86_mangle_function_version_assembler_name): Same.
22408 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
22409 * config/i386/i386.c (ix86_function_type_abi): Same.
22410 (ix86_function_ms_hook_prologue): Same.
22411 (classify_argument): Same.
22412 (ix86_expand_prologue): Same.
22413 (ix86_md_asm_adjust): Same.
22414 (ix86_memmodel_check): Same.
22416 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
22418 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
22419 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
22422 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
22425 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
22426 intrinsics without SSE/SSE2/SSSE3.
22427 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
22429 (*mmx_uavgv8qi3): Likewise.
22431 2019-05-17 Richard Biener <rguenther@suse.de>
22433 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
22434 VEC_PERM_EXPR as __VEC_PERM with -gimple.
22436 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
22438 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
22439 vec_sldw insn pattern.
22441 2019-05-17 Richard Biener <rguenther@suse.de>
22443 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
22445 2019-05-17 Martin Liska <mliska@suse.cz>
22448 * toplev.c (output_stack_usage): With LTO and sanitizer it
22449 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
22450 has no file location.
22452 2019-05-16 Jakub Jelinek <jakub@redhat.com>
22455 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
22456 sz0 is equal to sz1, instead return false in that case.
22458 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
22459 has non-constant expression, force sctx.lane and use two
22460 argument IFN_GOMP_SIMD_LANE instead of single argument.
22461 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
22462 two argument IFN_GOMP_SIMD_LANE without lhs.
22463 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
22465 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
22467 (LOOP_REQUIRES_VERSIONING): Or in
22468 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
22469 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22471 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
22472 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
22473 from simd if clause if needed.
22475 2019-05-16 Richard Biener <rguenther@suse.de>
22477 * tree-affine.c (expr_to_aff_combination): New function split
22479 (tree_to_aff_combination): ... here.
22480 (aff_combination_expand): Avoid building a GENERIC tree.
22482 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
22484 * cgraphunit.c (cgraph_node::expand_thunk): Remove
22485 assemble_start_function and assemble_end_function calls.
22486 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
22487 assemble_start_function and assemble_end_function.
22488 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
22489 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
22490 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
22491 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
22492 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
22493 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
22494 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
22495 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
22496 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
22497 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
22498 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
22499 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
22501 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
22502 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
22503 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
22504 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
22505 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
22506 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
22507 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
22508 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
22509 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
22510 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
22511 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
22512 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
22513 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
22514 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
22516 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
22517 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
22518 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
22520 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
22522 * tree-ssa-alias.c (alias_stats): Add
22523 aliasing_component_refs_p_may_alias and
22524 aliasing_component_refs_p_no_alias.
22525 (dump_alias_stats): Print aliasing_component_refs_p stats.
22526 (aliasing_component_refs_p): Update stats.
22528 2019-05-16 Martin Liska <mliska@suse.cz>
22531 * multiple_target.c (expand_target_clones): Do not allow
22532 target_clones being used with a symbol that is an alias.
22534 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
22536 PR tree-optimization/90394
22537 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
22538 positives rather than ICE for cases where (code2 == NE_EXPR
22539 && code1 == BIT_AND_EXPR).
22541 2019-05-16 Jakub Jelinek <jakub@redhat.com>
22544 * tree-core.h (struct tree_decl_common): Document
22545 decl_nonshareable_flag for PARM_DECLs.
22546 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
22547 * calls.c (expand_call): Don't try tail call if caller
22548 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
22549 passed on the stack and callee needs to pass any arguments on the
22551 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
22552 else if instead of series of mutually exclusive ifs. Handle
22553 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
22554 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
22556 * lto-streamer.h (LTO_major_version): Bump to 9.
22558 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
22560 PR tree-optimization/90106
22561 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
22562 new parameter as new internal function call, also move it to new
22564 (use_internal_fn): Pass internal function call to
22565 shrink_wrap_one_built_in_call_with_conds.
22567 2019-05-15 Jakub Jelinek <jakub@redhat.com>
22569 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
22571 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
22572 safelen_int and set loop->dont_vectorize.
22574 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22577 * config/i386/i386-builtin.def: Enable MMX intrinsics with
22579 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
22581 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
22582 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
22583 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
22586 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22589 * config/i386/mmx.md (*vec_dupv2sf): Changed to
22590 define_insn_and_split to support SSE emulation.
22591 (*vec_extractv2sf_0): Likewise.
22592 (*vec_extractv2sf_1): Likewise.
22593 (*vec_extractv2si_0): Likewise.
22594 (*vec_extractv2si_1): Likewise.
22595 (*vec_extractv2si_zext_mem): Likewise.
22596 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
22597 (vec_extractv2sf_1 splitter): Likewise.
22598 (vec_extractv2sfsf): Likewise.
22599 (vec_setv2si): Likewise.
22600 (vec_extractv2si_1 splitter): Likewise.
22601 (vec_extractv2sisi): Likewise.
22602 (vec_setv4hi): Likewise.
22603 (vec_extractv4hihi): Likewise.
22604 (vec_setv8qi): Likewise.
22605 (vec_extractv8qiqi): Likewise.
22606 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
22607 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
22608 (vec_extractv2sisi): Likewise.
22609 (vec_extractv4hihi): Likewise.
22610 (vec_extractv8qiqi): Likewise.
22611 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
22612 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
22613 (vec_initv2sisi): Likewise.
22614 (vec_initv4hihi): Likewise.
22615 (vec_initv8qiqi): Likewise.
22616 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
22617 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
22618 (vec_setv4hi): Likewise.
22619 (vec_setv8qi): Likewise.
22621 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22624 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
22625 TARGET_MMX_WITH_SSE.
22626 (MMXMODE:*mov<mode>_internal): Likewise.
22627 (MMXMODE:movmisalign<mode>): Likewise.
22629 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
22632 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
22633 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
22634 (sse2_cvtpd2pi): Ditto.
22635 (sse2_cvttpd2pi): Ditto.
22636 (*vec_concatv2sf_sse4_1): Ditto.
22637 (*vec_concatv2sf_sse): Ditto.
22638 (*vec_concatv2si_sse4_1): Ditto.
22639 (*vec_concatv2si): Ditto.
22640 (*vec_concatv4si_0): Ditto.
22641 (*vec_concatv2di_0): Ditto.
22643 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22646 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
22648 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22651 * config/i386/sse.md (ssse3_palignrdi): Changed to
22652 define_insn_and_split to support SSE emulation.
22654 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22657 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
22659 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22662 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
22663 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
22666 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22669 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
22670 or TARGET_MMX_WITH_SSE.
22671 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
22673 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22676 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
22678 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22681 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
22682 Changed to define_insn_and_split to support SSE emulation.
22684 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22687 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
22688 Changed to define_insn_and_split to support SSE emulation.
22690 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22693 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
22694 (*mmx_<emms>): This.
22695 (mmx_<emms>): New expander.
22697 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22700 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
22702 (*sse2_umulv1siv1di3): Add SSE2 emulation.
22704 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22707 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
22709 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22712 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
22714 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22717 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
22718 TARGET_MMX_WITH_SSE.
22719 (*mmx_uavgv4hi3): Add SSE emulation.
22721 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22724 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
22725 and TARGET_MMX_WITH_SSE.
22726 (*mmx_uavgv8qi3): Add SSE emulation.
22728 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22731 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
22732 maskmovdqu for __MMX_WITH_SSE__.
22734 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22737 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
22738 TARGET_MMX and TARGET_MMX_WITH_SSE.
22739 (*mmx_umulv4hi3_highpart): Add SSE emulation.
22741 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22744 * config/i386/mmx.md (mmx_pmovmskb): Changed to
22745 define_insn_and_split to support SSE emulation.
22747 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22750 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
22751 and TARGET_MMX_WITH_SSE.
22752 (mmx_<code>v8qi3): Likewise.
22753 (smaxmin:<code>v4hi3): New.
22754 (umaxmin:<code>v8qi3): Likewise.
22755 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
22756 (umaxmin:*mmx_<code>v8qi3): Likewise.
22758 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22761 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
22762 TARGET_MMX_WITH_SSE.
22763 (*mmx_pinsrw): Add SSE emulation.
22765 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22768 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
22770 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22773 * config/i386/sse.md (sse_cvtpi2ps): Changed to
22774 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
22777 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22780 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
22781 (sse_cvttps2pi): Likewise.
22783 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22786 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
22787 TARGET_MMX_WITH_SSE.
22788 (mmx_pshufw_1): Add SSE emulation.
22789 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
22790 TARGET_MMX_WITH_SSE to support SSE emulation.
22792 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22795 * config/i386/constraints.md (Yw): New constraint.
22796 * config/i386/mmx.md (*vec_dupv2si): Changed to
22797 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
22798 support SSE emulation.
22800 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22803 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
22804 TARGET_MMX_WITH_SSE.
22805 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
22807 (mmx_gt<mode>3): Likewise.
22809 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22812 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
22813 TARGET_MMX_WITH_SSE. Add SSE support.
22815 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22818 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
22819 TARGET_MMX_WITH_SSE.
22820 (any_logic:<code><mode>3): New.
22821 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
22824 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22827 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
22828 TARGET_MMX_WITH_SSE. Add SSE emulation.
22829 (mmx_<shift_insn><mode>3): Likewise.
22830 (ashr<mode>3): New.
22831 (<shift_insn><mode>3): Likewise.
22833 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22836 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
22837 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
22839 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22842 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
22843 TARGET_MMX_WITH_SSE.
22844 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
22847 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22850 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
22851 TARGET_MMX_WITH_SSE.
22853 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
22856 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22859 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
22860 (plusminus:mmx_<plusminus_insn><mode>3): Check
22861 TARGET_MMX_WITH_SSE.
22862 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
22863 (<plusminus_insn><mode>3): New.
22864 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
22865 (*mmx_<plusminus_insn><mode>3): Likewise.
22867 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22870 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
22871 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
22873 * config/i386/mmx.m (mmx_punpckhbw): Changed to
22874 define_insn_and_split to support SSE emulation.
22875 (mmx_punpcklbw): Likewise.
22876 (mmx_punpckhwd): Likewise.
22877 (mmx_punpcklwd): Likewise.
22878 (mmx_punpckhdq): Likewise.
22879 (mmx_punpckldq): Likewise.
22881 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22882 Uros Bizjak <ubizjak@gmail.com>
22885 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
22887 (ix86_split_mmx_pack): Likewise.
22888 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
22890 (ix86_split_mmx_pack): Likewise.
22891 * config/i386/i386.md (mmx_isa): New.
22892 (enabled): Also check mmx_isa.
22893 * config/i386/mmx.md (any_s_truncate): New code iterator.
22894 (s_trunsuffix): New code attr.
22895 (mmx_packsswb): Removed.
22896 (mmx_packssdw): Likewise.
22897 (mmx_packuswb): Likewise.
22898 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
22899 MMX packsswb/packuswb with SSE2.
22900 (mmx_packssdw): Likewise.
22901 * config/i386/predicates.md (register_mmxmem_operand): New.
22903 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
22906 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22907 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
22908 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
22909 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
22910 (ix86_vector_mode_supported_p): Likewise.
22911 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
22913 2019-05-15 Martin Liska <mliska@suse.cz>
22915 PR middle-end/90478
22916 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
22917 Check for overflow.
22919 2019-05-15 Richard Biener <rguenther@suse.de>
22921 * tree-into-ssa.c (pass_build_ssa::execute): Run
22922 update_address_taken before going into SSA.
22924 2019-05-15 Richard Biener <rguenther@suse.de>
22926 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
22927 as __BIT_FIELD_REF with type with -gimple.
22929 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
22931 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
22932 semantically equivalent branches (left over after prior refactorings).
22934 2019-05-15 Richard Biener <rguenther@suse.de>
22936 PR tree-optimization/88828
22937 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
22940 2019-05-14 Richard Biener <rguenther@suse.de>
22942 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
22943 as __VIEW_CONVERT with -gimple.
22945 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
22948 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
22951 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
22953 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
22954 define_split to become a define_insn_and_split.
22956 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
22958 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
22960 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
22961 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
22962 (sibcall_epilogue): Adjust.
22963 (epilogue): Adjust.
22965 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22967 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
22968 to unsupported ones.
22969 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
22970 * config.host: Likewise.
22971 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
22972 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
22973 __svr4__]: Remove "brand" fallback.
22974 [!KSTAT_DATA_STRING]: Remove.
22975 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
22977 (comdat_group): Likewise.
22978 (set_have_as_tls): Likewise.
22979 (gcc_cv_target_dl_iterate_phdr): Likewise.
22980 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
22981 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
22982 * configure: Regenerate.
22983 * doc/install.texi: Simplify Solaris target triplets.
22984 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
22985 (Specific, *-*-solaris2*): Document Solaris 10 removal.
22986 Remove Solaris 10 references.
22987 Remove obsolete Solaris bug reference.
22988 (Specific, sparc-sun-solaris2.10): Remove.
22990 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
22992 * config/i386/i386.md (any_div): New code iterator.
22993 (paired_mod): New code attribute.
22994 (sgnprefix): Handle DIV and UDIV RTXes.
22996 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
22997 and udivmod<mode>4 patterns using any_div code iterator.
22998 (divmod splitters): Macroize splitters using any_div code iterator.
22999 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
23000 (*udivmodsi4_pow2_zext_2): Ditto.
23001 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
23002 and *udivmod<mode>4_noext patterns using any_div code iterator.
23003 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
23004 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
23005 patterns using any_div code iterator.
23006 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
23007 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
23008 patterns using any_div code iterator.
23009 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
23010 udivmodhiqi3 patterns using any_extend code iterator.
23012 2019-05-14 Richard Biener <rguenther@suse.de>
23013 H.J. Lu <hongjiu.lu@intel.com>
23015 PR tree-optimization/88828
23016 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
23017 permuting in a single non-constant element not extracted
23020 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23022 * internal-fn.def (SIGNBIT): New.
23023 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
23025 (signbitv4sf2): Likewise.
23027 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
23030 * config/mips/mips.c (mips_split_move): Skip forward SRC into
23031 next insn when the SRC reg is dead.
23033 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
23035 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
23036 (alloc_cand_and_find_basis): Ditto.
23037 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
23038 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
23039 (create_add_imm_cand, slsr_process_cast): Ditto.
23040 (slsr_process_copy, replace_mult_candidate): Ditto.
23041 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
23042 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
23043 (pass_strength_reduction::execute): Init the first NULL element.
23045 2019-05-13 Nathan Sidwell <nathan@acm.org>
23047 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
23048 (run_attempt): Reformat line break.
23050 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
23053 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
23054 data registers in sibcall epilogues.
23055 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
23057 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
23060 * configure.ac (--enable-frame-pointer):
23061 Disable by default for cygwin and mingw.
23062 * configure: Regenerate.
23064 2019-05-13 Nathan Sidwell <nathan@acm.org>
23066 * dwarf2out.c (breakout_comdat_types): Move comment to correct
23068 (const_ok_for_output_1): Balance parens around #if/#else/#endif
23069 (gen_member_die): Move abstract origin check earlier. Only VARs
23070 can be static_inline_p. Simplify splicing control flow.
23072 2019-05-13 Richard Biener <rguenther@suse.de>
23074 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
23076 (vect_build_slp_tree_1): Likewise.
23078 2019-05-13 Richard Biener <rguenther@suse.de>
23080 PR tree-optimization/90402
23081 * tree-if-conv.c (tree_if_conversion): Value number only
23082 the loop body by making the latch an exit of the region
23084 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
23086 (do_rpo_vn): Deal with multiple edges into the entry block
23087 that are not backedges inside the region by skipping PHIs
23088 of the entry block.
23090 2019-05-13 Richard Biener <rguenther@suse.de>
23092 PR tree-optimization/90316
23093 * tree-ssa-pre.c (insert_aux): Fold into ...
23094 (insert): ... this function. Use a RPO walk to reduce the
23095 number of required iterations.
23097 2019-05-13 Martin Liska <mliska@suse.cz>
23099 PR tree-optimization/90416
23100 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
23101 string instead of passing the second part as va_arg argument.
23103 2019-05-13 Martin Liska <mliska@suse.cz>
23105 PR gcov-profile/90380
23106 * gcov.c (handle_cycle): Do not support zero cycle count,
23107 it should not be possible.
23108 (path_contains_zero_cycle_arc): New function.
23109 (circuit): Ignore zero cycle arc counts.
23111 2019-05-13 Martin Liska <mliska@suse.cz>
23113 PR gcov-profile/90380
23114 * gcov.c (enum loop_type): Remove the enum and
23116 (handle_cycle): Assert that we should not reach
23118 (circuit): Use loop_found instead of a tri-state loop_type.
23119 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
23122 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
23125 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
23126 (ix86_output_indirect_branch_via_reg): Use output mechanism
23127 accounting for __USER_LABEL_PREFIX__.
23128 (ix86_output_indirect_branch_via_push): Likewise.
23129 (ix86_output_function_return): Likewise.
23130 (ix86_output_indirect_function_return): Likewise.
23132 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
23134 * doc/md.texi: Document use of code attributes in rtx patterns.
23135 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
23136 * read-rtl.c (find_code): Split out search loops into...
23137 (maybe_find_code): ...this new function.
23138 (check_code_iterator): Make the error message more informative.
23139 (check_code_attribute): New function.
23140 (rtx_reader::rtx_alloc_for_name): Likewise.
23141 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
23142 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
23143 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
23144 <max_opp> directly as an rtx code instead of via a match_operator.
23145 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
23146 (<su>abd<mode>_3): Update accordingly.
23148 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
23150 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
23151 is given, print the state of the EH "save world" computation for
23154 2019-05-11 Jakub Jelinek <jakub@redhat.com>
23157 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
23158 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
23160 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
23162 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
23163 Use pinsrd for TARGET_SSE4_1.
23164 * config/i386/sse.md (movdi_to_sse): Ditto.
23166 2019-05-10 Richard Biener <rguenther@suse.de>
23168 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
23169 (do_rpo_vn): Initialize next_value_id.
23171 2019-05-10 Martin Liska <mliska@suse.cz>
23173 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
23176 2019-05-10 Jakub Jelinek <jakub@redhat.com>
23178 PR tree-optimization/90385
23179 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
23180 arguments of the exit phis.
23183 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
23184 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
23186 (copy_tree_body_r): Likewise.
23187 (copy_fn): Set id.do_not_fold to true.
23189 2019-05-10 Martin Liska <mliska@suse.cz>
23191 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
23192 Reapply changes from r269790.
23194 2019-05-10 Martin Liska <mliska@suse.cz>
23196 PR middle-end/90340
23197 * doc/invoke.texi: New params.
23198 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
23199 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
23200 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
23202 * tree-switch-conversion.h (struct jump_table_cluster):
23205 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
23207 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
23209 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
23211 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
23213 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
23215 PR rtl-optimization/88879
23216 * sel-sched.c (sel_target_adjust_priority): Remove assert.
23218 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
23221 * config/arm/arm.c (callee_saved_reg_p): Move before
23222 thumb_find_work_register.
23223 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
23224 thumb_find_work_register. Only call df_get_live_out once.
23225 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
23226 (thumb_find_work_register): Use
23227 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
23228 algorithms to locate a spare call clobbered reg.
23230 2019-05-09 Martin Liska <mliska@suse.cz>
23232 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
23233 and MAX_EXPR in GIMPLE FE format.
23235 2019-05-09 Martin Liska <mliska@suse.cz>
23237 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
23238 * gimple-pretty-print.c (dump_gimple_bb_header):
23240 (pp_cfg_jump): Dump edge probability.
23241 * profile-count.c (profile_quality_as_string): Simplify
23242 with a static array.
23243 (parse_profile_quality): New function.
23244 (profile_count::dump): Simplify with a static array.
23245 (profile_count::from_gcov_type): Add new argument.
23246 * profile-count.h (parse_profile_quality): Likewise.
23247 * predict.h (set_hot_bb_threshold): New.
23248 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
23250 * predict.c (get_hot_bb_threshold): Set from the new param.
23251 (set_hot_bb_threshold): New.
23253 2019-05-09 Richard Biener <rguenther@suse.de>
23255 PR tree-optimization/90395
23256 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
23257 rewrite vector stores that throw internally.
23259 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
23261 * cif-code.def (CHKP): Remove.
23264 * configure.ac (--enable-frame-pointer): Disable by default for
23266 * configure: Regenerate.
23268 2019-05-09 Alan Modra <amodra@gmail.com>
23271 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
23272 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
23273 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
23274 cost for general <-> vsx when direct moves are available.
23275 Cost union classes at minimal cost for any reg in the class.
23276 Correct calculation for moves between vsx, float, and altivec.
23277 Don't return a low cost for moves between special regs. Don't
23278 use hard coded register numbers.
23279 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
23280 (rs6000_ira_change_pseudo_allocno_class): New function.
23281 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
23282 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
23284 (movsi_internal1): Don't disparage vector alternatives.
23285 (mov<mode>_internal): Likewise, excepting alternative that
23287 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
23288 we <- b alternative.
23290 2019-05-08 Jakub Jelinek <jakub@redhat.com>
23293 PR tree-optimization/89060
23294 * tree-ssa-live.h (live_vars_map): New typedef.
23295 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
23296 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
23297 (struct compute_live_vars_data): New type.
23298 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
23299 live_vars_at_stmt, destroy_live_vars): New functions.
23300 * tree-tailcall.c: Include tree-ssa-live.h.
23301 (live_vars, live_vars_vec): New global variables.
23302 (find_tail_calls): Perform variable life analysis before punting.
23303 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
23304 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
23306 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
23307 Perform variable life analysis to select variables that really need
23309 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
23310 instead set id->eh_landing_pad_dest and assert it is the same.
23311 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
23313 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
23314 Richard Earnshaw <rearnsha@arm.com>
23317 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
23319 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
23320 (thumb1_compute_save_core_reg_mask): Don't force a spare work
23321 register if both the epilogue and prologue can use call-clobbered
23323 (thumb1_unexpanded_epilogue): Use
23324 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
23325 picking temporaries for restoring high regs to match that of the
23326 prologue where possible.
23327 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
23328 the list of work registers. Detect if the return address is still live
23329 at the end of the prologue and avoid using it for a work register if so.
23330 If the return address is not live, add LR to the list of pushable regs
23331 after the first pass.
23333 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
23335 PR tree-optimization/90078
23336 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
23337 (INFTY): Increase the value for infinite cost.
23338 (struct comp_cost): Promote type of members to int64_t.
23339 (infinite_cost): Don't set complexity in initialization.
23340 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
23341 overflows to infinite_cost.
23342 (adjust_setup_cost): Promote type of parameter and cost computation
23344 (struct ainc_cost_data, struct iv_ca): Promote type of member to
23346 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
23347 cost computation to int64_t.
23348 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
23349 int64_t's format specifier in dump.
23351 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
23353 PR tree-optimization/90240
23354 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
23355 with respect to scaling factor pre-computed for each basic block.
23356 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
23357 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
23358 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
23359 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
23360 live range for array of loop's basic blocks. Cleanup aux field of
23361 loop's basic blocks.
23363 2019-05-08 Jakub Jelinek <jakub@redhat.com>
23365 PR tree-optimization/90356
23366 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
23368 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
23370 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
23371 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
23372 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
23373 (ix86_handle_option): Handle -mavx512bf16.
23374 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
23376 * config/i386/avx512bf16vlintrin.h: New.
23377 * config/i386/avx512bf16intrin.h: New.
23378 * config/i386/cpuid.h (bit_AVX512BF16): New.
23379 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
23380 * config/i386/i386-builtin-types.def: Add new types.
23381 * config/i386/i386-builtin.def: Add new builtins.
23382 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23384 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
23385 (ix86_option_override_internal): Handle BF16.
23386 (ix86_valid_target_attribute_inner_p): Ditto.
23387 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
23388 * config/i386/i386-builtin.c (enum processor_features): Add
23390 (static const _isa_names_table isa_names_table): Ditto.
23391 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
23392 (PTA_AVX512BF16): Ditto.
23393 * config/i386/i386.opt: Add -mavx512bf16.
23394 * config/i386/immintrin.h: Include avx512bf16intrin.h
23395 and avx512bf16vlintrin.h.
23396 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
23397 avx512f_cvtneps2bf16_<mode><mask_name>,
23398 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
23399 * config/i386/subst.md (mask_half): Add new subst.
23400 * doc/invoke.texi: Document -mavx512bf16.
23402 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
23404 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
23405 Delete declaration.
23406 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
23407 (rs6000_debug_legitimize_reload_address): Delete.
23408 (rs6000_legitimize_reload_address_ptr): Delete.
23409 (rs6000_option_override_internal): Adjust.
23410 (mem_operand_gpr): Adjust comment.
23411 (legitimate_lo_sum_address_p): Ditto.
23412 (rs6000_legitimize_reload_address): Delete.
23413 (rs6000_debug_legitimize_reload_address): Delete.
23414 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
23416 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
23419 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23420 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
23421 to compute vector element selector for both constant and variable
23424 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
23426 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
23427 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
23428 ashrdi3_cvt using SWI48 mode iterator.
23430 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23432 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
23433 (aarch64_<su>abd<mode>_3): Likewise.
23434 (*aarch64_<su>abd<mode>_3): New define_insn.
23435 (<sur>sad<vsi2qi>): New define_expand.
23436 * config/aarch64/iterators.md: Added MAX_OPP attribute.
23437 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
23438 (build_vect_cond_expr): Likewise.
23440 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
23442 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
23443 clobbers outside of accessible_reg_set.
23444 * config/i386/i386.c (ix86_conditional_register_usage):
23445 Disable register sets by clearing corresponding bits in
23446 accessible_reg_set. Do not set corresponding bits in fixed_regs,
23447 call_used_regs and don't clear corresponding reg_names array members.
23449 2019-05-07 Richard Biener <rguenther@suse.de>
23451 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
23452 not specified still compute a comp_vectype for invariant
23455 2019-05-07 Richard Biener <rguenther@suse.de>
23457 PR tree-optimization/90316
23458 * tree-ssa-pre.c (translate_vuse_through_block): When
23459 same_valid is NULL do not bother to search for a virtual
23461 (phi_translate_1): When operands changed we cannot keep
23462 the same value-number so do not bother to ask whether
23463 that's possible from translate_vuse_through_block.
23465 2019-05-07 Martin Liska <mliska@suse.cz>
23467 * bitmap.c (bitmap_register): Come up with
23468 alloc_descriptor_max_uid and assign it for
23470 (register_overhead): Use get_descriptor as
23472 (release_overhead): New.
23473 (bitmap_elem_to_freelist): Call it.
23474 (bitmap_elt_clear_from): Likewise.
23475 (bitmap_obstack_free): Likewise.
23476 (bitmap_move): Sensitively release memory.
23477 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
23478 (bitmap_initialize): Initialize alloc_descriptor to zero.
23479 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
23481 2019-05-07 Richard Biener <rguenther@suse.de>
23483 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
23484 we build a SLP node. Remove max_size and limiting.
23485 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
23487 2019-05-07 Richard Biener <rguenther@suse.de>
23489 PR tree-optimization/90316
23490 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
23491 limit by reference.
23492 (walk_non_aliased_vuses): Take walking limit argument.
23493 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
23494 walking if it is reached instead of just counting.
23495 (get_continuation_for_phi): Likewise.
23496 (walk_non_aliased_vuses): Likewise, instead of leaving counter
23497 limiting to the callback.
23498 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
23499 (vn_reference_lookup_3): Likewise.
23500 (vn_reference_lookup_pieces): Likewise.
23501 (vn_reference_lookup): Likewise.
23502 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
23503 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
23504 (avail_exprs_stack::lookup_avail_expr): Likewise.
23506 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
23508 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
23509 for comparaible types in the second direction even if first one
23510 hits incomparable type.
23512 2019-05-07 Richard Biener <rguenther@suse.de>
23515 * lto-wrapper.c (debug_objcopy): Use the original filename
23516 including archive offset for the filename used for -save-temps.
23518 2019-05-07 Li Jia He <helijia@linux.ibm.com>
23520 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
23523 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
23524 Hongtao Liu <hongtao.liu@intel.com>
23528 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
23529 Modified, original implementation isn't correct.
23531 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
23533 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
23534 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
23535 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
23536 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
23537 (FRAME_POINTER_REGNUM): Change numbering.
23538 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
23539 (alt_reg_names): Adjust.
23540 (rs6000_conditional_register_usage): Don't mark hard register 64 as
23542 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
23543 (DWARF_FRAME_REGISTERS): Delete.
23544 (DWARF2_FRAME_REG_OUT): Fix whitespace.
23545 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
23547 (REG_ALLOC_ORDER): Adjust.
23548 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
23549 (REG_CLASS_CONTENTS): Adjust.
23550 (RETURN_ADDR_RTX): Change comment.
23551 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
23553 (REGISTER_NAMES): Adjust.
23554 (ADDITIONAL_REGISTER_NAMES): Adjust.
23555 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
23557 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
23559 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
23561 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
23562 (DWARF_FRAME_REGISTERS): Adjust.
23563 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
23565 (REG_ALLOC_ORDER): Adjust.
23566 (enum reg_class): Delete SPR_REGS.
23567 (REG_CLASS_NAMES): Delete SPR_REGS.
23568 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
23569 (REGISTER_NAMES): Adjust.
23570 (ADDITIONAL_REGISTER_NAMES): Adjust.
23571 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
23572 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
23573 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
23574 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
23575 (htm_spr_regno): Delete.
23576 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
23578 (rs6000_dbx_register_number): Adjust.
23580 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
23582 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
23584 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
23586 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
23587 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
23589 2019-05-06 Jakub Jelinek <jakub@redhat.com>
23591 PR tree-optimization/88709
23592 PR tree-optimization/90271
23593 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
23594 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
23595 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
23597 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
23598 of the store merging group is larger than
23599 PARAM_STORE_MERGING_MAX_SIZE parameter.
23600 (split_group): Add bzero_first argument. If set, always emit first
23601 the first store which must be = {} of the whole area and then for the
23602 rest of the stores consider all zero bytes as paddings.
23603 (imm_store_chain_info::output_merged_store): Check if first store
23604 is = {} of the whole area and if yes, determine which setting of
23605 bzero_first for split_group gives smaller number of stores. Adjust
23606 split_group callers.
23607 (lhs_valid_for_store_merging_p): Allow decls.
23608 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
23610 (pass_store_merging::process_store): Likewise.
23612 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
23615 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
23616 handling of V1TImode.
23618 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
23621 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
23622 and enable_frame_pointer ...
23623 * configure.ac: ... here. Update help strings for
23624 --enable-frame-pointer.
23625 * configure: Regenerate.
23626 * config/i386/i386-options.c (ix86_option_override_internal): Remove
23627 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
23628 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
23629 (USE_X86_64_FRAME_POINTER): Ditto.
23631 2019-05-06 Martin Liska <mliska@suse.cz>
23633 * config.gcc: Append to target_gtfiles and fix indentation.
23635 2019-05-06 Richard Biener <rguenther@suse.de>
23637 PR tree-optimization/90358
23638 * tree-vect-stmts.c (get_group_load_store_type): Properly
23639 detect unused upper half of load.
23640 (vectorizable_load): Likewise.
23642 2019-05-06 Richard Biener <rguenther@suse.de>
23644 PR tree-optimization/88828
23645 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
23646 (simplify_vector_constructor): ...here. Handle constants in
23649 2019-05-06 Richard Biener <rguenther@suse.de>
23651 PR tree-optimization/90328
23652 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
23653 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
23654 is valid in the loop nest before using it.
23655 (initialize_data_dependence_relation): Adjust.
23656 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
23657 loop as loop-nest to dr_may_alias_p.
23659 2019-05-06 Richard Biener <rguenther@suse.de>
23661 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
23663 2019-05-06 Richard Biener <rguenther@suse.de>
23665 PR tree-optimization/90316
23666 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
23667 compute target on demand.
23668 (get_continuation_for_phi): Remove code walking stmts to
23669 get to a target virtual operand which could end up being
23672 2019-05-06 Martin Liska <mliska@suse.cz>
23675 * config/i386/i386-options.c (ix86_option_override_internal): Error only
23676 when -mabi is selected to a non-default version.
23678 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
23679 Martin Liska <mliska@suse.cz>
23681 * Makefile.in: Add lto-dump.texi.
23682 * cgraph.h: Add new functions get_visibility_string and
23683 get_symtab_type_string.
23684 * doc/gcc.texi: Include lto-dump section.
23685 * doc/lto-dump.texi: New file.
23686 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
23687 (parse_dump_option): Factor out this function.
23688 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
23689 (parse_dump_option): Export the function.
23690 * symtab.c (symtab_node::get_visibility_string): New function.
23691 (symtab_node::get_symtab_type_string): Likewise.
23693 2019-05-06 Martin Liska <mliska@suse.cz>
23695 * config/i386/i386-builtins.c: New file.
23696 * config/i386/i386-builtins.h: New file.
23697 * config/i386/i386-expand.c: New file.
23698 * config/i386/i386-expand.h: New file.
23699 * config/i386/i386-features.c: New file.
23700 * config/i386/i386-features.h: New file.
23701 * config/i386/i386-options.c: New file.
23702 * config/i386/i386-options.h: New file.
23703 * config.gcc: Add new files into extra_objs and
23705 * config/i386/i386.c: Split content of the file
23706 into newly introduced files.
23707 * config/i386/i386.h: Declare common variables
23709 * config/i386/t-i386: Define dependencies for new files.
23711 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
23714 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
23715 Restrict 'all' variant to 32-bit configurations.
23716 (unaligned_loadhiu): Likewise.
23717 (unaligned_storehi): Likewise.
23718 (unaligned_storesi): Likewise.
23719 (unaligned_loadhis): Disable when compiling for thumb1.
23721 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
23723 PR tree-optimization/90269
23724 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
23727 2019-05-03 Martin Liska <mliska@suse.cz>
23729 * hash-map.h: Add is_empty function.
23730 * hash-set.h: Likewise.
23731 * hash-table.h: Likewise.
23732 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
23733 elements () == 0 (and similar usages).
23734 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
23735 * gimplify.c (gimplify_bind_expr): Likewise.
23736 (gimplify_switch_expr): Likewise.
23737 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
23738 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
23739 * postreload-gcse.c (dump_hash_table): Likewise.
23740 (gcse_after_reload_main): Likewise.
23741 * predict.c (combine_predictions_for_bb): Likewise.
23742 * tree-parloops.c (reduction_phi): Likewise.
23743 (separate_decls_in_region): Likewise.
23744 (transform_to_exit_first_loop): Likewise.
23745 (gen_parallel_loop): Likewise.
23746 (gather_scalar_reductions): Likewise.
23747 (try_create_reduction_list): Likewise.
23748 * var-tracking.c (dump_vars): Likewise.
23749 (emit_notes_for_changes): Likewise.
23750 (vt_emit_notes): Likewise.
23752 2019-05-03 Richard Biener <rguenther@suse.de>
23754 PR tree-optimization/90316
23755 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
23758 2019-05-03 Richard Biener <rguenther@suse.de>
23760 * tree-vect-stmts.c (get_group_load_store_type): Avoid
23761 peeling for gaps by loading only lower halves of vectors
23763 (vectorizable_load): Likewise.
23765 2019-05-03 Richard Biener <rguenther@suse.de>
23767 PR middle-end/89518
23768 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
23770 2019-05-03 Richard Biener <rguenther@suse.de>
23772 PR middle-end/87314
23773 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
23774 Handle STRING_CST vs DECL or STRING_CST.
23776 2019-05-03 Richard Biener <rguenther@suse.de>
23778 PR tree-optimization/88963
23779 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
23780 vector loads feeding only BIT_FIELD_REFs to component
23781 loads. Rewrite stores fed by CONSTRUCTORs to component
23784 2019-05-03 Jakub Jelinek <jakub@redhat.com>
23786 * opts.h (finish_options): Remove lang_mask argument.
23787 (print_help, help_option_argument): Declare.
23788 * opts.c (print_help): Remove forward declaration, no longer static.
23789 (finish_options): Remove lang_mask argument, don't call print_help
23791 * opts-global.c (decode_options): Adjust finish_option caller, call
23794 PR tree-optimization/90303
23795 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
23796 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
23798 2019-05-03 Richard Biener <rguenther@suse.de>
23800 PR tree-optimization/89698
23801 * gimple-fold.c (canonicalize_constructor_val): Early out
23802 for constants, handle unfolded INTEGER_CSTs as they appear in
23803 C++ virtual table ctors.
23805 2019-05-03 Richard Biener <rguenther@suse.de>
23807 * passes.c (execute_function_todo): Remove dead code.
23809 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
23811 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
23812 the internal register number, for any "real" register.
23814 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
23816 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
23817 correct numbers for TFHAR, TFIAR, TEXASR.
23819 2019-05-02 Richard Biener <rguenther@suse.de>
23821 PR tree-optimization/89653
23822 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
23823 update-address-taken before the pass.
23824 * passes.def (pass_tree_loop_init): Put comment before it.
23826 2019-05-02 Richard Biener <rguenther@suse.de>
23828 PR tree-optimization/89509
23829 * tree-ssa-structalias.c (compute_dependence_clique): Look
23830 at the first subvar when determining whether it is restrict.
23832 2019-05-02 Richard Biener <rguenther@suse.de>
23834 PR tree-optimization/90273
23835 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
23836 useless debug stmts.
23838 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23840 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
23842 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
23844 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
23845 VEC_COND_EXPR be inserted to emulate a conditional internal function.
23846 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
23847 (vectorizable_reduction): Use the functions above to vectorize in a
23848 fully masked loop codes that don't have a conditional internal
23851 2019-05-02 Martin Liska <mliska@suse.cz>
23853 * cgraphclones.c: Call valid_attribute_p with 1 for
23855 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
23856 it's for target attribute.
23857 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
23858 Add new boolean argument.
23859 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
23861 (ix86_valid_target_attribute_tree): Pass target_clone_attr
23862 to ix86_valid_target_attribute_inner_p.
23863 (ix86_valid_target_attribute_p): Pass flags argument to
23864 ix86_valid_target_attribute_inner_p.
23865 (get_builtin_code_for_version): Use 0 as it's target attribute.
23867 2019-05-02 Martin Liska <mliska@suse.cz>
23869 * gcc.c (process_command): Add dummy file only
23871 * opts-global.c (decode_options): Pass lang_mask.
23872 * opts.c (print_help): New function.
23873 (finish_options): Print --help if help_option_argument
23875 (common_handle_option): Factor out content of OPT__help_
23877 * opts.h (finish_options): Add new argument.
23879 2019-05-02 Martin Liska <mliska@suse.cz>
23882 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
23883 With -minline-all-stringops use inline expansion using 4B loop.
23884 * doc/invoke.texi: Document the change of
23885 -minline-all-stringops.
23887 2019-05-01 Jeff Law <law@redhat.com>
23889 PR tree-optimization/88797
23890 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
23891 PHI feeds a conditional on the RHS of an assignment.
23893 2019-04-30 Andrew Waterman <andrew@sifive.com>
23894 Jim Wilson <jimw@sifive.com>
23896 * config/riscv/constraints.md (L): New.
23897 * config/riscv/predicates.md (lui_operand): New.
23898 (sfb_alu_operand): New.
23899 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
23900 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
23901 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
23902 * config/riscv/risc.md (type): Add sfb_alu.
23903 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
23904 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
23905 (branch_zero<mode>): Delete.
23906 (mov<mode>cc): New.
23907 (mov<GPR:mode><X:mode>cc): Likewise.
23908 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
23910 2019-04-30 Nathan Sidwell <nathan@acm.org>
23912 * tree.h (MARK_TS_EXP): New.
23914 2019-04-30 Martin Liska <mliska@suse.cz>
23916 * opts.c (enable_warning_as_error): Provide hints
23917 for unknown options.
23919 2019-04-30 Martin Liska <mliska@suse.cz>
23922 * doc/invoke.texi: Add missing dash for gas-locview-support
23923 and gno-as-locview-support.
23925 2019-04-30 Jakub Jelinek <jakub@redhat.com>
23928 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
23929 whitespace at the start of target attribute string.
23931 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23934 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
23935 Define __ARM_FEATURE_ATOMICS.
23937 2019-04-30 Martin Liska <mliska@suse.cz>
23939 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
23940 into built_in_function enum. Remove code for endp == 2 and
23941 use BUILT_IN_* constants.
23942 (gimple_fold_builtin): Call the function with fcode.
23944 2019-04-30 Martin Liska <mliska@suse.cz>
23946 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
23947 DECL_FUNCTION_CODE into ix86_builtins enum before
23948 the switch statement.
23950 2019-04-30 Jakub Jelinek <jakub@redhat.com>
23952 PR tree-optimization/89475
23953 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
23956 2019-04-30 Martin Liska <mliska@suse.cz>
23958 PR translation/90274
23959 * opts.c (print_filtered_help): Wrap string in _(...).
23961 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
23963 PR tree-optimization/90240
23965 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
23967 PR tree-optimization/90078
23968 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
23969 checks for infinite_cost overflow.
23971 2019-04-29 Jeff Law <law@redhat.com>
23973 * passes.def: Move -Wrestrict pass after copy propagation.
23975 2019-04-29 Maya Rashish <coypu@sdf.org>
23977 * config.gcc (default_gnu_indirect_function): Default to yes
23978 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
23979 sparc*-*-netbsd*, x86_64-*-netbsd*.
23981 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
23983 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
23984 where cond2 is NE_EXPR.
23985 (is_value_included_in): Update comment.
23987 2019-04-29 Richard Biener <rguenther@suse.de>
23989 PR tree-optimization/90278
23990 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
23991 EH on comparison simplification.
23993 2019-04-29 Jason Merrill <jason@redhat.com>
23995 PR c++/82081 - tail call optimization breaks noexcept
23996 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
23997 nothrow function to a might-throw function into a tail call.
23999 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
24001 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
24002 (DDR_INNER_LOOP): Likewise.
24003 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
24004 (initialize_data_dependence_relation): Likewise.
24005 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
24007 2019-04-29 Jakub Jelinek <jakub@redhat.com>
24009 PR rtl-optimization/90257
24010 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
24014 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
24018 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
24021 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
24024 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
24026 * lra-spills.c (lra_final_code_change): Remove useless move insns.
24028 2019-04-29 Richard Biener <rguenther@suse.de>
24030 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
24033 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
24035 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
24036 varasm.h, and netbsd-protos.h.
24038 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
24041 * config/i386/i386-protos.h (ix86_data_alignment): Change
24042 the second argument type to unsigned int.
24043 * config/i386/i386.c (ix86_data_alignment): Change "align"
24044 argument type to unsigned int.
24046 2019-04-27 Martin Liska <mliska@suse.cz>
24048 PR middle-end/90258
24049 * opt-suggestions.c (option_proposer::build_option_suggestions):
24050 When get_valid_option_values returns empty values, add the
24051 misspelling candidate.
24053 2019-04-26 Jim Wilson <jimw@sifive.com>
24055 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
24057 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
24058 Pass orig_mode to riscv_build_integer.
24059 (riscv_split_integer): Pass mode to riscv_move_integer.
24060 (riscv_legitimize_const_move): Likewise.
24061 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
24062 promoted_mode. Replace force_reg call with code to load constant into
24063 promoted reg and then subreg it for the store.
24064 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
24065 riscv_move_integer.
24067 2018-04-26 Eugene Sharygin <eush@ispras.ru>
24069 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
24072 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
24074 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
24075 commentary about the encoding of precision.
24077 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
24079 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
24080 * config/i386/t-freebsd64: New file.
24081 * config.gcc: Add the t-freebsd64 for multilib support.
24083 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
24085 * doc/extend.texi (vector_size): Add missing comma after @xref.
24087 2019-04-25 Jakub Jelinek <jakub@redhat.com>
24089 * BASE-VER: Set to 10.0.0.
24091 2019-04-25 Richard Biener <rguenther@suse.de>
24093 PR middle-end/89765
24094 * gimplify.c (gimplify_expr): Avoid turning a lvalue
24095 VIEW_CONVERT_EXPR into one operating on an rvalue.
24097 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
24100 * config/i386/i386.c (feature_priority): Moved to file scope.
24101 (processor_features): Likewise.
24102 (processor_model): Likewise.
24103 (_arch_names_table): Likewise.
24104 (arch_names_table): Likewise.
24105 (_feature_list): Removed.
24106 (feature_list): Likewise.
24107 (_isa_names_table): Moved to file scope. Add priority.
24108 (isa_names_table): Likewise.
24109 (get_builtin_code_for_version): Replace feature_list with
24110 isa_names_table. Update error message for P_ZERO priority.
24112 2019-04-25 Richard Biener <rguenther@suse.de>
24114 * tree-pass.h (make_pass_phi_only_cprop): Remove.
24115 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
24117 2019-04-24 Jeff Law <law@redhat.com>
24119 PR tree-optimization/90037
24120 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
24121 * passes.def: Replace all instance of phi-only cprop with the
24122 lattice propagator. Move propagation pass from after erroneous
24123 path isolation to before erroneous path isolation.
24124 * tree-ssa-phionlycprop.c: Remove.
24126 2019-04-24 Richard Biener <rguenther@suse.de>
24128 PR middle-end/90213
24129 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
24130 by size and BITS_PER_UNIT on poly-wide-ints.
24132 2019-04-25 Richard Biener <rguenther@suse.de>
24134 PR middle-end/90194
24135 * match.pd: Add pattern to simplify view-conversion of an
24138 2019-04-24 Clement Chigot <clement.chigot@atos.net>
24140 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
24141 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
24142 for Go on 32 bit AIX.
24143 * config/rs6000/aix72.h: Likewise.
24145 2019-04-24 Jakub Jelinek <jakub@redhat.com>
24148 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
24149 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
24151 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
24154 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
24155 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
24156 for restored hard frame pointer.
24157 (s390_sched_dependencies_evaluation): Implement new target hook.
24158 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
24160 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
24162 * config/arc/arc-options.def: Fix typos and spelling mistakes.
24163 * config/arc/arc.c (arc_init): Cleanup warning message.
24164 (arc_override_options): Likewise.
24166 2019-04-24 Jakub Jelinek <jakub@redhat.com>
24169 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
24170 a register if both if_true and if_false are MEMs.
24172 PR tree-optimization/90208
24173 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
24174 after labels of new_bb, not before them.
24176 PR tree-optimization/90211
24177 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
24178 which are not SSA_NAMEs.
24180 2018-04-23 Sudakshina Das <sudi.das@arm.com>
24182 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
24184 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
24186 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
24188 PR rtl-optimization/87979
24189 * modulo-sched.c (sms_schedule): Start ii value "mii" should
24192 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
24194 PR rtl-optimization/84032
24195 * modulo-sched.c (ps_insn_find_column): Change condition so that
24196 branch will always be the last insn in a row inside partial
24199 2019-04-23 Richard Biener <rguenther@suse.de>
24202 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
24203 dest_single_pred_p argument.
24204 (remove_forwarder_block): Adjust.
24205 (remove_forwarder_block_with_phi): Likewise.
24207 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24208 Bernd Edlinger <bernd.edlinger@hotmail.de>
24209 Jakub Jelinek <jakub@redhat.com>
24212 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
24213 if used with general-regs-only.
24214 (arm_conditional_register_usage): Don't add non-general regs if
24216 (arm_valid_target_attribute_rec): Handle general-regs-only.
24217 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
24219 (TARGET_HARD_FLOAT_SUB): Define.
24220 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
24221 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
24222 (TARGET_REALLY_IWMMXT2): Likewise.
24223 * config/arm/arm.opt: Add -mgeneral-regs-only.
24224 * doc/extend.texi: Document ARM general-regs-only target.
24225 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
24227 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
24229 PR tree-optimization/90078
24230 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
24231 checks for infinite_cost overflow.
24233 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
24235 PR tree-optimization/90021
24236 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
24237 and check univariate against it.
24238 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
24239 * tree-data-ref.c (add_other_self_distances): Pass new argument.
24241 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
24245 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
24248 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
24251 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
24253 * lra-spills.c (lra_final_code_change): Remove useless move insns.
24255 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
24257 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
24258 names using operand format, rather than hard-wired.
24259 (speculation_barrier): Likewise.
24261 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
24263 PR tree-optimization/88055
24264 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
24265 (gen_one_condition): Use it if !HONOR_NANS.
24267 2019-04-19 Jakub Jelinek <jakub@redhat.com>
24269 PR middle-end/90139
24270 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
24271 assign_temp instead of gen_reg_rtx.
24273 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
24275 PR translation/90118
24276 * config/aarch64/aarch64.c (aarch64_override_options_internal):
24277 Add missing space before %<.
24279 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
24281 PR rtl-optimization/87871
24282 * ira-lives.c (make_object_dead): Don't add conflicts to
24283 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
24285 2019-04-18 Martin Sebor <msebor@redhat.com>
24287 PR middle-end/89797
24288 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
24289 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
24290 assuming type size fits in SHWI.
24292 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
24295 * ipa-inline.c (flatten_function): New parameter UPDATE.
24296 (ipa_inline, early_inliner): Use it.
24298 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
24300 * fold-const.c (int_const_binop): Return early on failure.
24302 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
24304 PR middle-end/85164
24305 * combine.c (force_int_to_mode): Cast the argument rather than
24306 the result of known_alignment.
24307 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
24309 2019-04-18 Richard Biener <rguenther@suse.de>
24312 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
24314 (remove_forwarder_block): ... here.
24315 (remove_forwarder_block_with_phi): Also move debug stmts here.
24317 2019-04-18 Jakub Jelinek <jakub@redhat.com>
24319 PR translation/79183
24320 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
24321 inform where appropriate.
24323 2019-04-18 Richard Biener <rguenther@suse.de>
24325 * tree.c (get_qualified_type): Put found type variants at the
24326 head of the variant list.
24328 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
24330 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
24332 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
24335 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
24336 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
24337 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
24338 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
24339 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
24341 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
24343 * ira-conflicts.c (print_allocno_conflicts): Always print something,
24344 even for allocno's with no conflicts.
24345 (print_conflicts): Print an extra newline.
24347 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
24349 * auto-inc-dec.c (attempt_change): Set the alignment of the
24350 temporary memory to that of the original.
24352 2019-04-17 Joao Moreira <jmoreira@suse.de>
24354 * targhooks.c (default_print_patchable_function_entry): Emit
24355 __patchable_function_entries section with writable flags to allow
24356 relocation resolution.
24358 2019-04-17 Jonny Grant <jg@jguk.org>
24360 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
24362 2019-04-17 Jakub Jelinek <jakub@redhat.com>
24364 PR middle-end/90095
24365 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
24366 on lowpart SUBREGs.
24368 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
24370 * config/arc/arc.c (arc_init): Format diagnostic string.
24371 (arc_override_options): Likewise.
24372 (check_if_valid_regno_const): Likewise.
24373 (arc_reorg): Likewise.
24375 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
24378 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
24380 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
24382 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
24383 (*movdi_update1): Use Pmode.
24384 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
24385 (movdi_<mode>_update_stack): Rename to ...
24386 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
24388 (*movsi_update1): Use Pmode.
24389 (*movsi_update2): Use Pmode.
24390 (movsi_update): Rename to ...
24391 (movsi_<mode>_update): ... this. Use Pmode.
24392 (movsi_update_stack): Fix condition.
24393 (*movhi_update1): Use Pmode. Fix argument to
24394 avoiding_indexed_address_p.
24395 (*movhi_update2): Ditto.
24396 (*movhi_update3): Ditto.
24397 (*movhi_update4): Ditto.
24398 (*movqi_update1): Ditto.
24399 (*movqi_update2): Ditto.
24400 (*movqi_update3): Ditto.
24401 (*movsf_update1, *movdf_update1): Merge, rename to...
24402 (*mov<mode>_update1): This. Use Pmode. Fix argument to
24403 avoiding_indexed_address_p. Add "size" attribute.
24404 (*movsf_update2, *movdf_update2): Merge, rename to...
24405 (*mov<mode>_update2): This. Ditto.
24406 (*movsf_update3): Use Pmode. Fix argument to
24407 avoiding_indexed_address_p.
24408 (*movsf_update4): Ditto.
24409 (allocate_stack): Simplify condition. Adjust pattern names.
24411 2019-04-17 Jakub Jelinek <jakub@redhat.com>
24414 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
24415 whitespace at the start of target attribute string.
24417 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
24420 * config/rs6000/power9.md: Add store forwarding bypass.
24422 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
24425 * valtrack.c (dead_debug_insert_temp): Reset debug references
24426 to the return value of a call being removed.
24428 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
24430 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
24431 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
24432 implement target hook.
24433 (arc_memory_move_cost): New function.
24434 (TARGET_REGISTER_MOVE_COST): Define.
24435 (TARGET_MEMORY_MOVE_COST): Likewise.
24436 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
24437 (MEMORY_MOVE_COST): Likewise.
24439 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
24441 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
24442 (sibcall_value_insn): Likewise.
24443 * config/arc/constraints.md (Rs5): Remove.
24445 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
24447 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
24448 for last two fake registers.
24449 (arc_conditional_register_usage): Make sure fake frame and arg
24450 pointer regs are in general regs class.
24451 (FRAME_POINTER_MASK): Remove.
24452 (RETURN_ADDR_MASK): Remove.
24453 (arc_must_save_register): Use hard frame regnum.
24454 (frame_restore_reg): Use hard_frame_pointer_rtx.
24455 (arc_save_callee_saves): Likewise.
24456 (arc_restore_callee_saves): Likewise.
24457 (arc_save_callee_enter): Likewise.
24458 (arc_restore_callee_leave): Likewise.
24459 (arc_save_callee_milli): Likewise.
24460 (arc_eh_return_address_location): Likewise.
24461 (arc_check_multi): Use hard frame regnum.
24462 (arc_can_eliminate): Likewise.
24463 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
24464 for register allocator.
24465 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
24466 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
24467 (FRAME_POINTER_REGNUM): Change it to a fake register.
24468 (HARD_FRAME_POINTER_REGNUM): Defined.
24469 (ARG_POINTER_REGNUM): Change it to a new fake register.
24470 (ELIMINABLE_REGS): Update.
24471 (REGISTER_NAMES): Update names.
24472 * config/arc/arc.md (LP_START): Remove.
24473 (LP_END): Likewise.
24474 (shift_si3_loop): Update pattern.
24476 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
24478 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
24479 to avoid delay slot scheduling.
24480 (arc_must_save_register): Don't save SP.
24481 * config/arc/arc.md (stack_tie): Remove.
24482 (UNSPEC_ARC_STKTIE): Likewise.
24484 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
24485 Shiva Chen <shiva0217@gmail.com>
24487 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
24488 code gen with large shift amount.
24490 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
24492 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
24495 2019-04-16 Jakub Jelinek <jakub@redhat.com>
24498 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
24499 print -m64/-mx32/-m32 if it is true.
24500 (ix86_debug_options, ix86_function_specific_print): Pass true as
24501 ADD_ABI_P to ix86_target_string.
24502 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
24503 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
24504 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
24506 PR rtl-optimization/90082
24507 * dce.c (can_delete_call): New function.
24508 (deletable_insn_p, mark_insn): Use it.
24510 PR tree-optimization/90090
24511 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
24513 (is_division_by_square): Likewise. Formatting fix.
24515 2019-04-16 Richard Biener <rguenther@suse.de>
24517 PR tree-optimization/56049
24518 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
24519 equality check if alias-set zero will prevail.
24521 2019-04-15 Jeff Law <law@redhat.com>
24523 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
24524 size and alignment as unsigned.
24526 2019-04-15 Richard Biener <rguenther@suse.de>
24529 * tree-loop-distribution.c (destroy_loop): Preserve correct
24532 2019-04-15 Richard Biener <rguenther@suse.de>
24534 PR tree-optimization/90071
24535 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
24536 abnormal operands from def stmts.
24538 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
24540 PR rtl-optimization/89794
24541 * combine.c (count_auto_inc): New function.
24542 (try_combine): Count how many auto_inc expressions there were in the
24543 original instructions. Ensure we have the same number in the new
24544 instructions. Remove the code that tried to ensure auto_inc side
24545 effects on i1 and i0 are not lost.
24547 2019-04-15 Richard Biener <rguenther@suse.de>
24550 * tree.h (auto_var_p): Declare.
24551 * tree.c (auto_var_p): New function, split out from ...
24552 (auto_var_in_fn_p): ... here.
24553 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
24555 (new_var_info): Initialize it.
24556 (set_uids_in_ptset): Also set the shadow variable uid if required.
24557 (ipa_pta_execute): Postprocess points-to solutions assigning
24558 shadow variable uids for locals that may reach their containing
24559 function recursively.
24560 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
24561 assert but instead check whether the points-to solution is
24564 2019-04-15 Martin Jambor <mjambor@suse.cz>
24567 * cgraph.c (clone_of_p): Loop over clone chain for each step in
24570 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
24572 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
24574 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
24575 Kito Cheng <kito.cheng@gmail.com>
24576 Shiva Chen <shiva0217@gmail.com>
24578 * config/nds32/nds32-md-auxiliary.c
24579 (nds32_legitimize_pic_address): Use new PIC pattern.
24580 (nds32_legitimize_tls_address): Use new TLS pattern.
24581 (nds32_output_symrel): New.
24582 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
24583 (nds32_alloc_relax_group_id): Ditto.
24584 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
24585 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
24587 (nds32_group_tls_insn): Ditto.
24588 (nds32_group_float_insns): Ditto.
24589 * config/nds32/nds32.md (tls_le): New.
24592 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
24594 * configure: Add nds32 target for dwarf2 debug_line checking.
24595 * configure.ac: Regenerated.
24597 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
24600 * ipa-devirt.c (skip_in_fields_list_p): New.
24601 (odr_types_equivalent_p): Use it.
24603 2019-04-13 Jakub Jelinek <jakub@redhat.com>
24606 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
24607 instead of strncmp when checking for thumb and arm. Formatting fixes.
24609 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
24611 * doc/install.texi: Document --with-target-system-zlib.
24613 2019-04-12 Martin Sebor <msebor@redhat.com>
24619 * targhooks.c (default_vector_alignment): Avoid assuming
24620 argument fits in SHWI.
24621 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
24622 a shift expression.
24623 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
24625 2019-04-12 Jakub Jelinek <jakub@redhat.com>
24627 PR rtl-optimization/89965
24628 * dce.c: Include rtl-iter.h.
24629 (struct check_argument_load_data): New type.
24630 (check_argument_load): New function.
24631 (find_call_stack_args): Check for loads from stack slots still tracked
24632 in sp_bytes and punt if any is found.
24634 * config/mips/loongson-mmiintrin.h: Fix up #error message.
24636 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
24638 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
24639 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
24641 2019-04-12 Martin Liska <mliska@suse.cz>
24643 PR middle-end/89970
24644 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
24646 (separate_attrs): Handle multiple 'default's.
24647 (expand_target_clones): Rework error handling code.
24649 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
24652 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
24653 mode of vector rather than mode of destination for move instruction.
24654 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
24655 Use QI inner mode with V16QI vector mode.
24657 2019-04-12 Jakub Jelinek <jakub@redhat.com>
24660 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
24661 "invalid %%t operand" in output_operand_lossage message.
24663 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
24665 * config/s390/predicates.md (permute_pattern_operand): New
24667 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
24668 operand for the permute pattern.
24669 ("*vec_perm<mode>"): New insn definition.
24670 ("bswap<mode>"): Generate the permute pattern operand in the
24671 expander and perform the operand reloads for pre arch13 level
24673 ("*bswap<mode>_emu"): Rename to ...
24674 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
24675 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
24676 Add the USE operand for the permute pattern.
24677 ("*vec_set_bswap_vec<mode>"): Likewise.
24679 2019-04-12 Jakub Jelinek <jakub@redhat.com>
24682 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
24683 and gcc_unreachable if it fails, just call tree_to_uhwi which
24684 verifies that too. Test TREE_CHAIN instead of list_length > 1.
24685 Start warning message with a lower-case letter. Formatting fixes.
24687 PR rtl-optimization/90026
24688 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
24689 successors, look for BARRIERs inside of the whole BB_FOOTER chain
24690 rather than just at the start of it. If e->src BB_FOOTER is not NULL
24691 in cfglayout mode, use emit_barrier_after_bb.
24693 2018-04-11 Steve Ellcey <sellcey@marvell.com>
24695 PR rtl-optimization/87763
24696 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
24699 2019-04-11 Tom de Vries <tdevries@suse.de>
24701 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
24702 max macro using statement expression.
24704 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
24706 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
24707 * xcoffout.c (xcoff_private_rodata_section_name): Define.
24708 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
24709 read_only_private_data_section using xcoff_private_rodata_section_name.
24710 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
24712 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
24715 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
24717 2019-04-11 Jakub Jelinek <jakub@redhat.com>
24719 PR rtl-optimization/89965
24720 * dce.c (sp_based_mem_offset): New function.
24721 (find_call_stack_args): Use sp_based_mem_offset.
24723 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
24725 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
24727 2019-04-11 Richard Biener <rguenther@suse.de>
24729 PR tree-optimization/90020
24730 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
24731 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
24732 * tree-ssa-pre.c (compute_avail): Use it to not put
24733 possibly trapping references after a call that might not
24734 return into EXP_GEN.
24735 * gcse.c (compute_hash_table_work): Do not elide
24736 marking a block containing a call if the call might not
24739 2019-04-11 Richard Biener <rguenther@suse.de>
24741 PR tree-optimization/90018
24742 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
24743 Test both SLP and interleaving variants.
24745 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
24747 * config/s390/8561.md: New file.
24748 * config/s390/driver-native.c (s390_host_detect_local_cpu):
24749 Add arch13 cpu model.
24750 * config/s390/s390-opts.h (enum processor_type): Likewise.
24751 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
24752 (s390_get_unit_mask): Likewise.
24753 (s390_is_fpd): Likewise.
24754 (s390_is_fxd): Likewise.
24755 * config/s390/s390.h (s390_tune_attr): Likewise.
24756 * config/s390/s390.md: Include arch13 pipeline description.
24757 * config/s390/s390.opt: Add arch13.
24759 2018-04-10 Steve Ellcey <sellcey@marvell.com>
24761 PR rtl-optimization/87763
24762 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
24764 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
24766 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
24768 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
24769 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
24770 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
24771 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
24773 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
24775 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
24776 "Although" in -fipa-icf documentation.
24778 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
24779 of using multiple -g options.
24781 2019-04-10 Martin Liska <mliska@suse.cz>
24783 PR gcov-profile/89959
24784 * doc/gcov.texi: Make documentation of -x option
24787 2019-04-10 Richard Biener <rguenther@suse.de>
24789 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
24791 (DR_GROUP_SAME_DR_STMT): Remove.
24792 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
24793 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
24794 replace with assert.
24795 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
24796 (vect_record_grouped_load_vectors): Remove unreachable code.
24798 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
24801 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
24802 obsolete reference to N.
24804 2019-04-10 Jakub Jelinek <jakub@redhat.com>
24806 PR middle-end/90025
24807 * expr.c (store_expr): Set properly size on the MEM passed to
24811 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
24812 with strlen in between hostsz-3 and hostsz-1 inclusive when no
24813 translation is needed, and when translation is needed, only append
24814 ... if the string length is hostsz or more bytes long. Avoid using
24817 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
24820 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
24821 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
24823 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
24824 differences directly.
24825 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
24827 2019-04-09 Jakub Jelinek <jakub@redhat.com>
24829 PR translation/90011
24830 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
24832 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
24834 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
24835 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
24836 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
24837 trailing space from -gsplit-dwarf diagnostics.
24839 PR tree-optimization/89998
24840 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
24841 instead of integer_type_node if possible, don't add ranges if return
24842 type is not compatible with int.
24843 * gimple-fold.c (gimple_fold_builtin_sprintf,
24844 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
24847 2019-04-09 Martin Liska <mliska@suse.cz>
24849 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
24850 * doc/install.texi: Document the new config.
24852 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
24854 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
24855 use gimple_expr_type for load and store calls. Skip over the
24856 condition argument in a conditional internal function.
24857 Protect use of TREE_INT_CST_LOW.
24859 2019-04-09 Jakub Jelinek <jakub@redhat.com>
24862 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
24863 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
24864 trailing period from it too.
24866 2019-04-08 wu yuan <wuyuan5@huawei.com>
24868 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
24869 * config/aarch64/aarch64.md: Add "tsv110.md".
24870 * config/aarch64/tsv110.md: New file.
24872 2019-04-08 Richard Biener <rguenther@suse.de>
24874 PR tree-optimization/90006
24875 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
24878 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
24881 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
24883 (fma_root_node): Likewise.
24884 (func_fma_steering): Likewise.
24886 2019-04-08 Jakub Jelinek <jakub@redhat.com>
24888 PR rtl-optimization/89865
24889 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
24891 PR rtl-optimization/89865
24892 * config/i386/i386.md
24893 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
24894 numbers not to clash with the additional operands[4].
24895 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
24896 with extra register copy in the middle.
24898 2019-04-08 Martin Liska <mliska@suse.cz>
24900 PR gcov-profile/89961
24901 * doc/gcov.texi: Document data_file.
24902 * gcov.c (generate_results): Add data_info into JSON output.
24904 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24906 PR tree-optimization/89725
24907 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
24908 loop's chrec as invariant symbol.
24909 * tree-chrec.h (chrec_contains_symbols): New parameter.
24910 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
24911 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
24912 function of loops not in DDR's loop_nest.
24913 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
24915 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
24918 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
24921 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
24924 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
24925 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
24927 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
24929 * sched-deps.c (sched_macro_fuse_insns): Check return value of
24930 targetm.fixed_condition_code_regs.
24932 2019-04-05 Richard Biener <rguenther@suse.de>
24936 * tree-cfgcleanup.c (remove_forwarder_block): Always move
24937 debug bind stmts but reset them if they are not valid at the
24940 2019-04-05 Martin Liska <mliska@suse.cz>
24942 PR translation/89936
24943 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
24944 order to wrap keywords or arguments.
24945 * collect2.c (main): Likewise.
24946 (scan_prog_file): Likewise.
24947 (scan_libraries): Likewise.
24948 * common/config/riscv/riscv-common.c
24949 (riscv_subset_list::parsing_subset_version): Likewise.
24950 (riscv_subset_list::parse_std_ext): Likewise.
24951 * config/aarch64/aarch64.c (aarch64_override_options_internal):
24953 * config/arm/arm.c (arm_option_override): Likewise.
24954 * config/cris/cris.c (cris_print_operand): Likewise.
24955 * config/darwin-c.c (darwin_pragma_options): Likewise.
24956 (darwin_pragma_unused): Likewise.
24957 (darwin_pragma_ms_struct): Likewise.
24958 * config/ft32/ft32.c (ft32_print_operand): Likewise.
24959 * config/i386/i386.c (print_reg): Likewise.
24960 (ix86_print_operand): Likewise.
24961 * config/i386/xm-djgpp.h: Likewise.
24962 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
24963 * config/m32c/m32c.c (m32c_option_override): Likewise.
24964 * config/msp430/msp430.c (msp430_option_override): Likewise.
24965 * config/nds32/nds32.c (nds32_option_override): Likewise.
24966 * config/nvptx/mkoffload.c (main): Likewise.
24967 * config/rx/rx.c (rx_print_operand): Likewise.
24968 (valid_psw_flag): Likewise.
24969 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
24970 (vms_pragma_nomember_alignment): Likewise.
24971 (vms_pragma_extern_model): Likewise.
24972 * lto-wrapper.c (compile_offload_image): Likewise.
24973 * omp-offload.c (oacc_parse_default_dims): Likewise.
24974 * symtab.c (symtab_node::verify_base): Likewise.
24975 * tlink.c (recompile_files): Likewise.
24976 (start_tweaking): Likewise.
24977 * tree-profile.c (parse_profile_filter): Likewise.
24979 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
24981 PR tree-optimization/89956
24982 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
24983 multiple negates of the same value.
24985 2019-04-04 Martin Sebor <msebor@redhat.com>
24987 PR middle-end/89957
24988 PR middle-end/89911
24989 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
24990 have the same precision since the function crashes otherwise.
24991 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
24992 has non-zero arguments.
24994 2019-04-04 Martin Sebor <msebor@redhat.com>
24996 PR middle-end/89934
24997 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
24998 out if the number of arguments is less than expected.
25000 2019-04-04 Jeff Law <law@redhat.com>
25002 PR rtl-optimization/89399
25003 * ree.c (combine_set_extension): Use single_set rather than
25004 digging into PATTERN for items on the candidate list.
25005 (combine_reaching_defs): Likewise.
25007 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
25009 PR rtl-optimization/46590
25010 * loop-invariant.c (find_defs): Move df_remove_problem and
25011 df_process_deferred_rescans to move_invariants.
25012 Move df_live_add_problem and df_live_set_all_dirty calls
25013 to move_invariants.
25014 (move_invariants): Likewise.
25015 (move_loop_invariants): Likewise, making the df_live calls
25016 conditional on -O. Remove the problem again if we added it
25019 2019-04-03 qing zhao <qing.zhao@oracle.com>
25021 PR tree-optimization/89730
25022 * ipa-inline.c (can_inline_edge_p): Delete the checking for
25023 -flive-patching=inline-only-static.
25024 (can_inline_edge_by_limits_p): Add the checking for
25025 -flive-patching=inline-only-static and grant always_inline
25026 even when -flive-patching=inline-only-static is specified.
25028 2019-04-03 Jeff Law <law@redhat.com>
25030 PR rtl-optimization/81025
25031 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
25033 2019-04-03 Richard Biener <rguenther@suse.de>
25035 PR tree-optimization/84101
25036 * tree-vect-stmts.c: Include explow.h for hard_function_value,
25037 regs.h for hard_regno_nregs.
25038 (cfun_returns): New helper.
25039 (vect_model_store_cost): When vectorizing a store to a decl
25040 we return and the function ABI returns in a multi-reg location
25041 account for the possible spilling that will happen.
25043 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
25045 * config/s390/s390.c (s390_legitimate_address_p): Reject long
25046 displacement addresses for vector mode operands.
25048 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
25050 * config/arc/arc.c (GMASK_LEN): Define.
25051 (arc_restore_callee_saves): Restore first blink when
25054 2019-04-03 Sudakshina Das <sudi.das@arm.com>
25056 * doc/extend.texi: Add deprecated comment on sign-return-address
25057 function attribute and add mbranch-protection.
25058 * doc/invoke.texi: Add bti to the options for mbranch-protection.
25060 2019-04-03 Richard Biener <rguenther@suse.de>
25063 * lto-wrapper.c (run_gcc): Avoid implicit rules making
25064 the all target phony.
25066 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
25070 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
25071 Return false for variable DImode shifts.
25072 (dimode_scalar_chain::compute_convert_gain): Do not handle
25073 register count operand in variable DImode shifts.
25074 (dimode_scalar_chain::make_vector_copies): Remove support to copy
25075 count argument of a variable shift instruction to a vector register.
25076 (dimode_scalar_chain::convert_reg): Remove support to convert
25077 count argument of a variable shift instruction.
25079 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
25081 PR rtl-optimization/84206
25082 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
25083 iterating over loop headers.
25085 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
25087 PR rtl-optimization/85876
25088 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
25089 beyond the original fence.
25091 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
25093 * config.gcc: Mark spu* targets as deprecated/obsolete.
25095 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25097 * config/s390/s390-builtin-types.def: New builtin function type
25098 definitions. Remove unused types.
25099 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
25100 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
25101 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
25102 overloaded builtins.
25103 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
25104 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
25105 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
25106 (vec_double, vec_signed, vec_unsigned): Define to use the new
25107 overloaded builtins.
25108 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
25111 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25113 * config/s390/s390-builtin-types.def: New builtin function type
25115 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
25116 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
25117 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
25118 (s390_vstrszh, s390_vstrszf): New low-level builtins.
25119 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
25120 constant definitions.
25121 * config/s390/vecintrin.h (vec_search_string_cc)
25122 (vec_search_string_until_zero_cc): New builtin name definitions.
25123 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
25125 ("vec_vstrs<mode>"): New insn definition.
25127 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25129 * config/s390/s390-builtin-types.def: Add new builtin function
25131 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
25132 New overloaded builtins.
25133 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
25135 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
25136 (UNSPEC_VEC_SLDBYTE): ... this.
25137 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
25138 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
25140 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
25141 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
25142 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
25144 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25146 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
25147 New insn definition.
25148 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
25149 * config/s390/vector.md (V_HW_HSD): ... here.
25151 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25153 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
25154 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
25155 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
25156 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
25157 New insn definitions.
25159 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25161 * config/s390/s390-builtin-types.def: Add new builtin function type.
25162 * config/s390/s390-builtins.def: Add overloaded builtin
25163 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
25164 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
25165 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
25166 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
25167 ("eltswap<mode>"): New expander.
25168 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
25171 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25173 * config/s390/s390-builtin-types.def: Add new builtin function types.
25174 * config/s390/s390-builtins.def: Add overloaded builtin
25175 s390_vec_revb. Add low-level builtins for vlbr and vstbr
25177 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
25178 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
25179 ("bswap<mode>"): New expander.
25180 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
25182 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25184 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
25185 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
25186 vector builtin version number in __VEC__.
25188 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25190 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
25192 (SFSI): New mode attribute.
25193 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
25194 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
25196 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
25197 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
25198 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
25199 ("floatsi<mode>2"): Add wcefb instruction.
25201 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25203 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
25204 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
25206 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
25207 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
25208 support 32 bit fp-int conversions. Rename to ...
25209 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
25210 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
25211 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
25212 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
25215 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25217 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
25218 if-then-else constructs if we can use the select instruction.
25219 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
25221 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25223 * config/s390/s390.md ("*popcountdi_arch13_cc")
25224 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
25226 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
25227 Append _z196 to make it ...
25228 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
25229 ("popcounthi2_z196"): ... this.
25230 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
25231 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
25233 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25235 * config/s390/s390.c (s390_canonicalize_comparison): Convert
25236 certain compares for arch13 in order to make use of the condition
25237 code result produced by the new instructions.
25238 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
25239 nxrk, and nxgrk instruction patterns.
25240 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
25241 (inv_no): Add new code iterator together with some attributes.
25242 ("*andc_split_<mode>"): Disable splitter for arch13.
25243 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
25244 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
25245 ("*<ANDOR:bitops_name>c<GPR:mode>")
25246 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
25247 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
25248 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
25249 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
25251 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
25253 * common/config/s390/s390-common.c (processor_flags_table): New
25255 * config.gcc: Support arch13 with the --with-arch= configure flag.
25256 * config/s390/driver-native.c (s390_host_detect_local_cpu):
25257 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
25258 * config/s390/s390.c (s390_get_sched_attrmask)
25259 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
25260 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
25261 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
25262 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
25263 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
25265 * config/s390/s390.opt: Support arch13 as processor type in
25266 command line options.
25268 2019-04-02 Martin Liska <mliska@suse.cz>
25270 PR translation/89912
25271 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
25272 Fix param description of graphite-max-arrays-per-scop.
25274 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
25276 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
25277 (ASAN_CC1_SPEC): Use it in 64-bit mode.
25278 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
25280 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
25282 PR rtl-optimization/85412
25283 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
25284 sel_sched_region_1, not after.
25286 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
25288 PR rtl-optimization/86928
25289 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
25290 compute_live if necessary.
25291 (sel_redirect_edge_and_branch): Likewise.
25293 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
25295 PR rtl-optimization/89865
25296 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
25297 register if it is a part of small class.
25299 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
25301 PR rtl-optimization/87273
25302 * sel-sched-ir.c (merge_fences): Remove assert.
25304 2019-04-01 Richard Biener <rguenther@suse.de>
25306 PR tree-optimization/46590
25307 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
25308 (dom_walker::m_reachability): Add in place of...
25309 (dom_walker::m_skip_unreachable_blocks): ...this.
25310 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
25311 Move complex initialization ...
25312 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
25313 lazily and initialize edge flags on each invocation.
25314 (dom_walker::bb_reachable): Use m_reachability.
25316 2019-04-01 Martin Liska <mliska@suse.cz>
25319 * opt-suggestions.c (option_proposer::build_option_suggestions):
25320 Add variant without any argument in order to provide better
25323 2019-04-01 Richard Biener <rguenther@suse.de>
25326 * gimple.c: Include langhooks.h.
25327 (gimple_get_alias_set): Treat enumeral types as the underlying
25330 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
25331 Eric Botcazou <ebotcazou@adacore.com>
25333 PR rtl-optimization/89862
25334 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
25335 that operates on the full registers for WORD_REGISTER_OPERATIONS
25338 2019-03-29 Jim Wilson <jimw@sifive.com>
25340 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
25341 Clear MASK_RVC and then set if C subset supported.
25343 2019-03-29 Jakub Jelinek <jakub@redhat.com>
25346 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
25347 non-addressable complit into its initializer if it is volatile.
25349 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
25351 * opts-common.c (integral_argument): Set errno properly in one case.
25353 2019-03-29 Martin Liska <mliska@suse.cz>
25355 * doc/invoke.texi: Remove -Wchkp from documentation.
25357 2019-03-29 Martin Liska <mliska@suse.cz>
25359 * dbgcnt.c (print_limit_reach): New function.
25362 2019-03-29 Martin Liska <mliska@suse.cz>
25364 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
25365 (dbg_cnt_process_opt): Parse first tokens aas
25366 dbg_cnt_process_single_pair is also using strtok.
25368 2019-03-29 Jakub Jelinek <jakub@redhat.com>
25370 PR rtl-optimization/87485
25371 * function.c (expand_function_end): Move stack_protect_epilogue
25372 before loading of return value into hard register(s).
25374 2019-03-28 Jakub Jelinek <jakub@redhat.com>
25376 PR middle-end/89621
25377 * tree-inline.h (struct copy_body_data): Add
25378 dont_remap_vla_if_no_change flag.
25379 * tree-inline.c (remap_type_3, remap_type_2): New functions.
25380 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
25381 and remap_type_2 returns false.
25382 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
25383 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
25384 only from where it is copied to nested contexts.
25386 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
25389 * config/i386/i386.md (RMW operation with LEA peephole):
25390 Use LEAMODE mode attribute instead of SWI mode iterator for
25393 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
25396 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
25397 Also process XEXP (src, 0) of a shift insn.
25399 2019-03-28 David Malcolm <dmalcolm@redhat.com>
25401 PR middle-end/89725
25402 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
25403 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
25405 2019-03-28 Jakub Jelinek <jakub@redhat.com>
25407 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
25409 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
25410 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
25411 immediately after first one with df_analyze in between, but rather
25412 process all bbs, queueing ones that need second pass in a worklist,
25413 df_analyze, process queued debug insn changes and if second pass is
25414 needed, process bbs from worklist, df_analyze, process queued debug
25417 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
25418 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
25419 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
25421 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
25424 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
25427 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
25430 * config/i386/i386.c (ix86_function_value_1): Call the newly added
25431 function for 32-bit MS_ABI.
25432 (function_value_ms_32): New function.
25434 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
25436 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
25437 (movdi): Call gen_movdi_symbol_save_scc.
25438 (gen_movdi_symbol_save_scc): New insn and split.
25440 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
25442 PR rtl-optimization/89313
25443 * function.c (matching_constraint_num): New static function.
25444 (match_asm_constraints_1): Use it. Fixup white space and comment.
25445 Don't replace inputs with non-matching constraints which conflict
25446 with early clobber outputs.
25448 2019-03-27 Jeff Law <law@redhat.com>
25450 PR rtl-optimization/87761
25451 PR rtl-optimization/89826
25452 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
25454 (pass_cprop_hardreg::execute): Call df_analyze after adding the
25455 note problem to get REG_DEAD/REG_UNUSED notes updated.
25457 2019-03-27 Richard Biener <rguenther@suse.de>
25459 PR tree-optimization/89463
25460 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
25461 queue edges to remove.
25462 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
25463 dead stmts. Delay edge removal until PHIs are removed to
25464 make debug-stmt creation not confused by seemingly degenerate
25467 2019-03-27 Alan Modra <amodra@gmail.com>
25469 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
25471 * config/rs6000/darwin.h: Likewise.
25472 * config/rs6000/rs6000.c: Likewise.
25474 2019-03-27 Alan Modra <amodra@gmail.com>
25476 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
25477 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
25479 2019-03-26 Andrew Waterman <andrew@sifive.com>
25480 Jim Wilson <jimw@sifive.com>
25482 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
25483 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
25484 (generic_idivdi, generic_fmul_single, generic_fmul_double)
25485 (generic_fdiv, generic_fsqrt): Add check for generic tune.
25486 (generic_alu): Add auipc to type list.
25487 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
25488 (riscv_microarchitecture): Declare.
25489 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
25490 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
25492 (riscv_microarchitecture): New.
25493 (sifive_7_tune_info): New.
25494 (riscv_cpu_info_table): Add microarchitecture value for rocket and
25495 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
25497 (riscv_store_data_bypass_p): New.
25498 (riscv_option_override): Set riscv_microarchitecture from
25499 cpu->microarchitecture.
25500 * config/riscv/riscv.md: Include sifive-7.md.
25503 (auipc<mode>): Change type to auipc.
25504 (restore_stack_nonlocal): New.
25505 * config/riscv/sifive-7.md: New.
25506 * doc/invoke.texi (RISC-V Options): Update mtune docs.
25508 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
25511 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
25512 Also process XEXP (src, 0) of a shift insn.
25514 2019-03-26 Richard Biener <rguenther@suse.de>
25516 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
25517 (copy_debug_stmt): Likewise.
25518 (expand_call_inline): Likewise.
25519 (copy_bb): Avoid redundant lookup & set of gimple_block.
25520 * gimple-low.c (lower_gimple_return): Likewise.
25521 (lower_builtin_setjmp): Likewise.
25523 2019-03-26 Jakub Jelinek <jakub@redhat.com>
25525 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
25526 is constant 0, turn into static const data member initialized to false.
25527 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
25528 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
25530 2019-03-26 Jason Merrill <jason@redhat.com>
25531 Jakub Jelinek <jakub@redhat.com>
25533 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
25535 (mem_alloc_description::release_object_overhead): Fix comment typos.
25536 * hash-table.h (hash_table::~hash_table): Call
25537 release_instance_overhead only if m_entries is non-NULL, otherwise
25538 call unregister_descriptor.
25540 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
25542 PR tree-optimization/81740
25543 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
25544 In case of outer loop vectorization, check for backward dependence
25545 at the inner loop if outer loop dependence is reversed.
25547 2019-03-26 Alan Modra <amodra@gmail.com>
25549 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
25550 rs6000_vector_mem init. Correct wI and wJ comment.
25552 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
25554 PR rtl-optimization/88347
25555 PR rtl-optimization/88423
25556 * sched-deps.c (sched_analyze_insn): Take into account that for
25557 tablejumps the barrier appears after a label and a jump_table_data.
25559 2019-03-25 Martin Sebor <msebor@redhat.com>
25562 * c-common.c (check_user_alignment): Rename local. Correct maximum
25563 alignment in diagnostic. Avoid assuming argument fits in SHWI,
25564 convert it to UHWI when it fits.
25566 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
25569 * dwarf2out.c (premark_used_variables): New function.
25570 (prune_unused_types_walk): Do not mark not premarked external
25572 (prune_unused_types): Call premark_used_variables.
25574 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
25576 PR rtl-optimization/89676
25577 * lra-constraints.c (curr_insn_transform): Do match reload for
25578 early clobbers when the match was successful only for different
25581 2019-03-25 Martin Sebor <msebor@redhat.com>
25583 * doc/extend.texi (Common Type Attributes): Document vector_size.
25584 (Common Variable Attributes): Mention size constraint. Correct
25586 (Vector Extensions): Use @dfn when defining bas type. Clarify
25587 base type and size constraints.
25589 2019-03-25 Richard Biener <rguenther@suse.de>
25591 PR tree-optimization/89789
25592 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
25593 changes from non-undefined back to undefined.
25595 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
25597 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
25598 heap string and a gc string, but since this variable is unknown to
25599 ggc the gc string might get reused and corrupted. Fixed by always
25600 using a heap string.
25602 2019-03-25 Richard Biener <rguenther@suse.de>
25604 PR tree-optimization/89779
25605 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
25606 to remove IV defs, delay actual removal.
25607 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
25608 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
25609 very end, properly also reset loop control IV information.
25611 2019-03-25 Richard Biener <rguenther@suse.de>
25613 PR tree-optimization/89802
25614 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
25615 move EH data to folded stmt.
25617 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
25619 * config/s390/s390-builtin-types.def: Remove few unused types and
25620 fix sort order for others.
25622 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
25624 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
25625 expected and found types with -mdebug during builtin matching.
25627 2019-03-25 Richard Biener <rguenther@suse.de>
25629 PR middle-end/89790
25630 * fold-const.c (operand_equal_p): Revert last change with
25633 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
25635 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
25636 notes for the result of the __tls_get_addr calls.
25637 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
25639 2019-03-24 Jeff Law <law@redhat.com>
25641 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
25643 PR rtl-optimization/87761
25644 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
25645 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
25647 (pass_cprop_hardreg::execute): Add df note problem and defer insn
25648 rescans. Reprocess blocks as needed, calling df_analyze before
25649 reprocessing. Always call df_analyze before fixing up debug bind
25652 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
25654 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
25657 2019-03-22 Andrew Pinski <apinski@marvell.com>
25659 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
25660 attrribute for uxtw.
25662 2019-03-26 Jeff Law <law@redhat.com>
25664 PR rtl-optimization/87761
25665 * config/mips/mips-protos.h (mips_split_move): Add new argument.
25666 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
25667 (mips_split_move): Accept new INSN argument. Try to forward SRC
25668 into the next instruction.
25669 (mips_split_move_insn): Pass INSN through to mips_split_move.
25671 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
25673 PR rtl-optimization/89676
25674 * lra-constraints.c (curr_insn_transform): Do match reload for
25675 early clobbers even if the match was successful.
25677 2019-03-22 Jakub Jelinek <jakub@redhat.com>
25680 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
25682 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
25684 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
25686 2019-03-22 Jakub Jelinek <jakub@redhat.com>
25688 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
25689 <avx512>_fmsub_<mode>_mask3<round_name>,
25690 <avx512>_fnmadd_<mode>_mask3<round_name>,
25691 <avx512>_fnmsub_<mode>_mask3<round_name>,
25692 avx512f_vmfmadd_<mode>_mask3<round_name>,
25693 avx512f_vmfmsub_<mode>_mask3<round_name>,
25694 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
25695 instead of register_operand and %v instead of v for match_operand 1.
25696 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
25697 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
25698 <round_nimm_predicate> instead of register_operand and %v instead of v
25699 for match_operand 1.
25701 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
25702 <avx512>_fmadd_<mode>_mask3<round_name>,
25703 <avx512>_fmsub_<mode>_mask<round_name>,
25704 <avx512>_fmsub_<mode>_mask3<round_name>,
25705 <avx512>_fnmadd_<mode>_mask<round_name>,
25706 <avx512>_fnmadd_<mode>_mask3<round_name>,
25707 <avx512>_fnmsub_<mode>_mask<round_name>,
25708 <avx512>_fnmsub_<mode>_mask3<round_name>,
25709 <avx512>_fmaddsub_<mode>_mask<round_name>,
25710 <avx512>_fmaddsub_<mode>_mask3<round_name>,
25711 <avx512>_fmsubadd_<mode>_mask<round_name>,
25712 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
25713 <round_nimm_predicate> instead of nonimmediate_operand.
25714 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
25715 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
25716 Use register_operand instead of <round_nimm_predicate> for the
25717 operand that needs to match output.
25718 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
25719 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
25720 Likewise. Formatting fixes.
25723 * config/i386/i386.c (enum ix86_builtins): Remove
25724 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
25725 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
25726 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
25727 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
25728 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
25729 __builtin_ia32_vfmsubss3_mask3): New builtins.
25730 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
25731 avx512f_vmfmadd_<mode>_mask3<round_name>,
25732 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
25733 *avx512f_vmfmsub_<mode>_mask<round_name>,
25734 avx512f_vmfmsub_<mode>_mask3<round_name>,
25735 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
25736 *avx512f_vmfnmadd_<mode>_mask<round_name>,
25737 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
25738 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
25739 *avx512f_vmfnmsub_<mode>_mask<round_name>,
25740 avx512f_vmfnmsub_<mode>_mask3<round_name>,
25741 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
25742 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
25743 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
25744 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
25745 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
25746 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
25747 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
25748 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
25749 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
25750 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
25751 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
25752 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
25753 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
25754 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
25755 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
25756 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
25757 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
25758 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
25759 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
25760 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
25761 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
25762 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
25764 2019-03-21 Martin Sebor <msebor@redhat.com>
25766 PR tree-optimization/89350
25767 * builtins.c (compute_objsize): Also ignore offsets whose upper
25769 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
25770 (builtin_memref::builtin_memref): Initialize new member.
25771 Allow EXPR to be null.
25772 (builtin_memref::extend_offset_range): Replace local with a member.
25773 Avoid assuming pointer offsets are unsigned.
25774 (builtin_memref::set_base_and_offset): Determine base object
25775 before computing offset range.
25776 (builtin_access::builtin_access): Handle memset.
25777 (builtin_access::generic_overlap): Replace local with a member.
25778 (builtin_access::strcat_overlap): Same.
25779 (builtin_access::overlap): Same.
25780 (maybe_diag_overlap): Same.
25781 (maybe_diag_access_bounds): Same.
25782 (wrestrict_dom_walker::check_call): Handle memset.
25783 (check_bounds_or_overlap): Same.
25785 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
25786 Jakub Jelinek <jakub@redhat.com>
25789 * tree.c (fld_type_variant, fld_incomplete_type_of,
25790 fld_process_array_type): Call fld->pset.add and don't call
25791 add_tree_to_fld_list if it returns true.
25792 (free_lang_data_in_type): Similarly with self-recursive call. Purge
25793 non-marked types from TYPE_NEXT_VARIANT list.
25794 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
25796 2019-03-21 Jakub Jelinek <jakub@redhat.com>
25798 * hash-table.h (hash_table): Add Lazy template parameter defaulted
25799 to false, if true, don't alloc_entries during construction, but defer
25800 it to the first method that needs m_entries allocated.
25801 (hash_table::hash_table, hash_table::~hash_table,
25802 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
25803 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
25804 hash_table::clear_slot, hash_table::traverse_noresize,
25805 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
25806 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
25808 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
25809 NO_INSERT instead of find_with_hash.
25810 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
25811 hash_set::m_table): Add Lazy to template params of hash_table.
25812 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
25813 * attribs.c (test_attribute_exclusions): Likewise.
25814 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
25815 hash_set. Add tests for hash_set with Lazy = true.
25817 2019-03-21 Richard Biener <rguenther@suse.de>
25819 PR tree-optimization/89779
25820 * tree.c (tree_nop_conversion): Consolidate and fix defensive
25821 checks with respect to released SSA names now having error_mark_node
25823 * fold-const.c (operand_equal_p): Likewise.
25825 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
25828 * config/s390/s390.c (global_not_special_regno_p): Move to make it
25830 (s390_optimize_register_info): Use global_not_special_regno_p to
25831 check for global regs.
25833 2019-03-20 Jakub Jelinek <jakub@redhat.com>
25836 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
25837 update this_alternative nor this_alternative_set.
25839 2019-03-19 Jim Wilson <jimw@sifive.com>
25842 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
25843 align, size, offset. Use them to handle a BLKmode reference. Update
25845 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
25847 2019-03-19 Jakub Jelinek <jakub@redhat.com>
25849 PR rtl-optimization/89768
25850 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
25851 instead of GEN_INT.
25852 (unroll_loop_runtime_iterations): Likewise.
25854 2019-03-19 Martin Sebor <msebor@redhat.com>
25856 PR tree-optimization/89644
25857 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
25858 rather than endptr as an indicator of nul-termination.
25860 PR tree-optimization/89644
25861 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
25862 arrays in determining sequence sizes in strncpy and stpncpy.
25864 2019-03-19 Martin Liska <mliska@suse.cz>
25866 PR middle-end/89737
25867 * predict.c (combine_predictions_for_bb): Empty likely_edges and
25868 unlikely_edges if there's an edge that belongs to both these sets.
25870 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
25873 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
25874 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
25875 go via a stack temporary.
25877 2019-03-19 Jakub Jelinek <jakub@redhat.com>
25880 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
25881 instead of gen_rtx_SUBREG.
25882 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
25884 2019-03-19 Richard Biener <rguenther@suse.de>
25887 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
25889 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
25893 * tree.c (free_lang_data_in_decl): Do not free context of C++
25896 2019-03-19 Jakub Jelinek <jakub@redhat.com>
25899 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
25900 subs for the first alternative except when operands[3] is 1.
25903 * gimplify.c (gimplify_asm_expr): For output argument with
25904 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
25907 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
25909 PR rtl-optimization/89753
25910 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
25911 explicit unrolling factor even more robust.
25913 2019-03-19 Jakub Jelinek <jakub@redhat.com>
25916 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
25917 compensation use x2 += 1 instead of x2 -= -1 and when honoring
25918 signed zeros, do another copysign after the compensation.
25920 2019-03-18 Martin Sebor <msebor@redhat.com>
25922 PR tree-optimization/89720
25923 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
25924 more conservatively, the same as anti-range.
25926 2019-03-18 Richard Biener <rguenther@suse.de>
25928 PR middle-end/88945
25929 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
25930 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
25931 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
25932 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
25934 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
25936 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
25937 Extend queue to 1024 entries.
25938 Add "consumed" field.
25939 (gomp_print_output): Remove print_index parameter.
25940 Add final parameter.
25941 Change limit to unsigned.
25942 Use consumed field to implement circular buffer.
25943 Detect interrupted print in final pass.
25944 Flush output at the end.
25945 (run): Update gomp_print_output usage.
25946 (main): Initialize kernargs->output_data.consumed.
25948 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
25950 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
25951 calculation of the minimum number of scalar iterations for
25952 fully-predicated loops.
25954 2019-03-18 Martin Jambor <mjambor@suse.cz>
25956 PR tree-optimization/89546
25957 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
25958 any propagation to its children took place.
25960 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
25963 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
25964 parameter, and make use of it.
25965 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
25967 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
25969 * config/arc/arc.opt (mcode-density-frame): Get the inital value
25970 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
25971 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
25972 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
25973 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
25974 match what the ops is doing.
25975 (push_multi_fp_blink): Likewise.
25976 * config/arc/arc.c (arc_override_options): Enable enter/leave when
25977 compiling for size and elf target.
25978 (arc_save_callee_enter): Adjust note to match what enter/leave
25981 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
25983 * config/arc/arc.md (tst_movb): Fix constraint.
25985 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
25987 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
25989 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
25991 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
25992 * config/arc/arc.c (arc_conditional_register_usage): Remove all
25993 reg_alloc_order references.
25994 (size_alloc_order): Define.
25995 (arc_adjust_reg_alloc_order): New function.
25996 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
25998 (ADJUST_REG_ALLOC_ORDER): Define.
25999 (HONOR_REG_ALLOC_ORDER): Likewise.
26001 2019-03-18 Richard Biener <rguenther@suse.de>
26004 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
26005 loads and stores a bit more.
26007 2019-03-18 Richard Biener <rguenther@suse.de>
26010 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
26011 load pessimization to stores as well.
26013 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
26015 PR middle-end/86979
26016 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
26017 successor, use NULL as its av set.
26019 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
26021 PR rtl-optimization/89721
26022 * lra-constraints (invariant_p): Return false if side_effects_p holds.
26024 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
26027 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26028 When handling vec_extract, use modular arithmetic to allow
26029 constant selectors greater than vector length.
26030 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
26031 V1TImode vectors to have constant selector values greater than 0.
26032 Use modular arithmetic to compute vector index.
26033 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
26034 index for in-memory vectors. Correct code generation for
26035 in-register vectors.
26036 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
26039 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
26043 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
26046 2019-03-15 Jakub Jelinek <jakub@redhat.com>
26049 * tree.c (inchash::add_expr): Strip any location wrappers.
26050 * fold-const.c (operand_equal_p): Move stripping of location wrapper
26051 after hash verification.
26054 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
26055 SIGN_EXTEND and ZERO_EXTEND.
26057 2019-03-14 Jason Merrill <jason@redhat.com>
26058 Jakub Jelinek <jakub@redhat.com>
26060 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
26061 than if is_empty (*slot).
26062 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
26063 existing elt and for elt removal.
26064 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
26065 of already removed elt.
26067 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
26070 * config/i386/i386.c (remove_partial_avx_dependency): Handle
26071 REG_EH_REGION note.
26073 2019-03-14 Martin Liska <mliska@suse.cz>
26076 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
26078 2019-03-14 Richard Biener <rguenther@suse.de>
26081 * config/i386/i386.c (make_resolver_func): Properly set
26082 DECL_CONTEXT on the RESULT_DECL.
26083 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
26085 2019-03-14 Richard Biener <rguenther@suse.de>
26087 * gimple-pretty-print.c: Include cfgloop.h.
26088 (dump_gimple_phi): Adjust.
26089 (dump_gimple_bb_header): Dump loop header for GIMPLE.
26090 (pp_cfg_jump): Adjust.
26091 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
26092 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
26093 (lower_phi_internal_fn): Remove.
26094 (verify_gimple_call): Remove IFN_PHI special-casing.
26095 (dump_function_to_file): Dump IL state.
26096 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
26097 done to deal with PHI nodes being present in non-SSA state.
26099 2019-03-14 Jakub Jelinek <jakub@redhat.com>
26102 * multiple_target.c (create_dispatcher_calls): Change
26103 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
26104 In the node->iterate_referring loop, push *ref rather than ref, call
26105 ref->remove_reference () and always pass 0 to iterate_referring.
26107 PR rtl-optimization/89679
26108 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
26109 would contain a paradoxical SUBREG.
26111 2019-03-14 Richard Biener <rguenther@suse.de>
26113 PR tree-optimization/89710
26114 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
26117 2019-03-14 Martin Liska <mliska@suse.cz>
26119 * coverage.c (coverage_begin_function): Stream also
26121 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
26122 documentation about function declaration location.
26123 * gcov-dump.c (tag_function): Print whole range
26124 of function declaration.
26125 * gcov.c (struct function_info): Add end_column field.
26126 (function_info::function_info): Initialize it.
26127 (output_json_intermediate_file): Output {start,end}_column
26129 (read_graph_file): Read end_column.
26131 2019-03-14 Richard Biener <rguenther@suse.de>
26133 PR middle-end/89698
26134 * fold-const.c (operand_equal_p): For INDIRECT_REF check
26135 that the access types are similar.
26137 2019-03-14 Jakub Jelinek <jakub@redhat.com>
26139 PR tree-optimization/89703
26140 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
26141 aren't compatible also with builtin_decl_explicit. Check pure
26142 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
26143 and BUILT_IN_STPNCPY{,_CHK}.
26145 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
26148 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
26149 addr32 prefix to VSIB address for X32.
26150 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
26152 (*avx512pf_gatherpf<mode>df_mask): Likewise.
26153 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
26154 (*avx512pf_scatterpf<mode>df_mask): Likewise.
26155 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
26156 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
26157 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
26158 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
26159 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
26160 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
26161 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
26162 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
26163 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
26164 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
26165 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
26166 (*avx512f_scatterdi<mode>): Likewise.
26168 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
26171 * lra-constraints.c (inherit_in_ebb): Update
26172 potential_reload_hard_regs along with live_hard_regs.
26174 2019-03-13 Jakub Jelinek <jakub@redhat.com>
26177 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
26179 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
26181 2019-03-13 Martin Sebor <msebor@redhat.com>
26183 PR tree-optimization/89662
26184 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
26187 2019-03-13 Richard Biener <rguenther@suse.de>
26189 PR middle-end/89677
26190 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
26191 throw FP expressions at tree-affine.
26193 2019-03-14 Richard Biener <rguenther@suse.de>
26195 * tree-pretty-print.c (dump_generic_node): For -gimple properly
26196 dump negative integer constants using _Literal (type) -num.
26198 2019-03-13 Jakub Jelinek <jakub@redhat.com>
26200 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
26201 nonlocal_value member.
26203 PR middle-end/88588
26204 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
26205 (ipa_simd_modify_function_body): Handle PHIs.
26207 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
26209 * config/s390/s390.c (s390_option_override_internal): Use more
26210 aggressive inlining parameters.
26212 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
26214 * config/s390/3906.md: New file.
26215 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
26216 (LONGRUNNING_THRESHOLD): Remove.
26217 (MAX_SCHED_MIX_SCORE): Decrease.
26218 (MAX_SCHED_MIX_DISTANCE): Decrease.
26219 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
26220 (struct s390_sched_state): New struct to hold scheduling state.
26221 (S390_SCHED_STATE_NORMAL): Remove.
26222 (S390_SCHED_STATE_CRACKED): Remove.
26223 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
26224 (s390_get_sched_attrmask): Use new attribute.
26225 (s390_get_unit_mask): Use new units.
26226 (s390_is_fpd): New function.
26227 (s390_is_fxd): New function.
26228 (s390_is_longrunning): New function.
26229 (s390_sched_score): Use new functions.
26230 (s390_sched_reorder): Likewise.
26231 (s390_sched_variable_issue): Rework and use new functions.
26232 (s390_sched_init): Use new functions.
26233 * config/s390/s390.h (s390_tune_attr): Add z14.
26234 * config/s390/s390.md: Add z14.
26236 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
26238 * config/s390/2964.md: Update pipeline description.
26239 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
26240 (LONGRUNNING_THRESHOLD): Remove.
26241 (LATENCY_FACTOR): Remove.
26242 (s390_get_unit_mask): Add unit.
26243 (s390_sched_score): Use fxd/fpd.
26244 (s390_sched_variable_issue): Use fxd/fpd.
26246 2019-03-12 Martin Liska <mliska@suse.cz>
26248 * config/i386/i386.c: Reword an error message.
26250 2019-03-12 Martin Jambor <mjambor@suse.cz>
26252 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
26253 terminate with newline.
26255 2019-03-12 Jakub Jelinek <jakub@redhat.com>
26258 * config/s390/s390.md (tabort): Use %wd instead of
26259 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
26260 letters and periods.
26261 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
26262 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
26265 PR middle-end/89663
26266 * builtins.c (expand_builtin_int_roundingfn,
26267 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
26268 gcc_unreachable if validate_arglist fails.
26270 2019-03-12 Richard Biener <rguenther@suse.de>
26272 PR tree-optimization/89664
26273 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
26274 free the occurance tree after the early out.
26276 2019-03-11 Jakub Jelinek <jakub@redhat.com>
26278 PR middle-end/89655
26280 * vr-values.c (vr_values::update_value_range): If
26281 old_vr->varying_p (), don't update it, make new_vr also VARYING
26284 2019-03-11 Martin Liska <mliska@suse.cz>
26286 * config/aarch64/aarch64.c (aarch64_override_options_internal):
26287 Fix double string quoting.
26289 2019-03-11 Martin Liska <mliska@suse.cz>
26291 * collect-utils.c (collect_wait): Wrap apostrophes
26292 in gcc internal format with %'.
26293 * collect2.c (main): Likewise.
26294 (scan_prog_file): Likewise.
26295 (scan_libraries): Likewise.
26296 * config/i386/i386.c (ix86_expand_call): Likewise.
26297 (ix86_handle_interrupt_attribute): Likewise.
26298 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
26299 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26300 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
26301 * lto-wrapper.c (find_crtoffloadtable): Likewise.
26302 * symtab.c (symtab_node::verify_base): Likewise.
26303 * tree-cfg.c (verify_gimple_label): Likewise.
26304 * tree.c (verify_type_variant): Likewise.
26306 2019-03-11 Martin Liska <mliska@suse.cz>
26308 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
26309 in a string format message and fix GNU coding style.
26310 (expand_builtin_set_thread_pointer): Likewise.
26311 * common/config/aarch64/aarch64-common.c
26312 (aarch64_rewrite_selected_cpu): Likewise.
26313 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
26314 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
26315 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
26316 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
26317 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
26318 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
26319 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
26320 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
26321 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
26322 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
26324 * common/config/riscv/riscv-common.c
26325 (riscv_subset_list::parsing_subset_version): Likewise.
26326 (riscv_subset_list::parse_std_ext): Likewise.
26327 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
26328 (riscv_subset_list::parse): Likewise.
26329 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
26330 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
26331 (aarch64_override_options_internal): Likewise.
26332 (aarch64_validate_mcpu): Likewise.
26333 (aarch64_validate_march): Likewise.
26334 (aarch64_validate_mtune): Likewise.
26335 (aarch64_override_options): Likewise.
26336 * config/alpha/alpha.c (alpha_option_override): Likewise.
26337 * config/arc/arc.c (arc_init): Likewise.
26338 (parse_mrgf_banked_regs_option): Likewise.
26339 (arc_override_options): Likewise.
26340 (arc_expand_builtin_aligned): Likewise.
26341 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
26342 (arm_expand_builtin): Likewise.
26343 * config/arm/arm.c (arm_option_check_internal): Likewise.
26344 (arm_configure_build_target): Likewise.
26345 (arm_option_override): Likewise.
26346 (arm_options_perform_arch_sanity_checks): Likewise.
26347 (arm_handle_cmse_nonsecure_entry): Likewise.
26348 (arm_handle_cmse_nonsecure_call): Likewise.
26349 (arm_tls_referenced_p): Likewise.
26350 (thumb1_expand_prologue): Likewise.
26351 * config/avr/avr.c (avr_option_override): Likewise.
26352 * config/bfin/bfin.c (bfin_option_override): Likewise.
26353 * config/c6x/c6x.c (c6x_option_override): Likewise.
26354 * config/cr16/cr16.c (cr16_override_options): Likewise.
26355 * config/cris/cris.c (cris_option_override): Likewise.
26356 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
26357 * config/darwin-c.c (macosx_version_as_macro): Likewise.
26358 * config/darwin.c (darwin_override_options): Likewise.
26359 * config/frv/frv.c (frv_expand_builtin): Likewise.
26360 * config/h8300/h8300.c (h8300_option_override): Likewise.
26361 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
26362 (ix86_option_override_internal): Likewise.
26363 (warn_once_call_ms2sysv_xlogues): Likewise.
26364 (ix86_expand_prologue): Likewise.
26365 (split_stack_prologue_scratch_regno): Likewise.
26366 (ix86_warn_parameter_passing_abi): Likewise.
26367 * config/ia64/ia64.c (fix_range): Likewise.
26368 * config/m68k/m68k.c (m68k_option_override): Likewise.
26369 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
26370 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
26371 (mips_set_compression_mode): Likewise.
26372 * config/mmix/mmix.c (mmix_option_override): Likewise.
26373 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
26374 * config/msp430/msp430.c (msp430_option_override): Likewise.
26375 * config/nds32/nds32.c (nds32_option_override): Likewise.
26376 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
26377 (nios2_option_override): Likewise.
26378 (nios2_expand_custom_builtin): Likewise.
26379 * config/nvptx/mkoffload.c (main): Likewise.
26380 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
26381 * config/pa/pa.c (fix_range): Likewise.
26382 (pa_option_override): Likewise.
26383 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
26384 (riscv_option_override): Likewise.
26385 * config/rl78/rl78.c (rl78_option_override): Likewise.
26386 * config/rs6000/aix61.h: Likewise.
26387 * config/rs6000/aix71.h: Likewise.
26388 * config/rs6000/aix72.h: Likewise.
26389 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
26390 * config/rs6000/freebsd64.h: Likewise.
26391 * config/rs6000/linux64.h: Likewise.
26392 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
26393 (rs6000_expand_zeroop_builtin): Likewise.
26394 (rs6000_expand_mtfsb_builtin): Likewise.
26395 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
26396 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
26397 (rs6000_invalid_builtin): Likewise.
26398 (rs6000_expand_split_stack_prologue): Likewise.
26399 * config/rs6000/rtems.h: Likewise.
26400 * config/rx/rx.c (valid_psw_flag): Likewise.
26401 (rx_expand_builtin): Likewise.
26402 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
26403 * config/s390/s390.c (s390_expand_builtin): Likewise.
26404 (s390_function_profiler): Likewise.
26405 (s390_option_override_internal): Likewise.
26406 (s390_option_override): Likewise.
26407 * config/sh/sh.c (sh_option_override): Likewise.
26408 (sh_builtin_saveregs): Likewise.
26409 (sh_fix_range): Likewise.
26410 * config/sh/vxworks.h: Likewise.
26411 * config/sparc/sparc.c (sparc_option_override): Likewise.
26412 * config/spu/spu.c (spu_option_override): Likewise.
26413 (fix_range): Likewise.
26414 * config/visium/visium.c (visium_option_override): Likewise.
26415 (visium_handle_interrupt_attr): Likewise.
26416 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
26417 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
26418 (dbg_cnt_process_opt): Likewise.
26419 * dwarf2out.c (output_dwarf_version): Likewise.
26420 * except.c (expand_eh_return): Likewise.
26421 * gcc.c (defined): Likewise.
26422 (driver_handle_option): Likewise.
26423 (process_command): Likewise.
26424 (compare_files): Likewise.
26425 (driver::prepare_infiles): Likewise.
26426 (driver::do_spec_on_infiles): Likewise.
26427 (driver::maybe_run_linker): Likewise.
26428 * omp-offload.c (oacc_parse_default_dims): Likewise.
26429 * opts-global.c (handle_common_deferred_options): Likewise.
26430 * opts.c (parse_sanitizer_options): Likewise.
26431 (common_handle_option): Likewise.
26432 (enable_warning_as_error): Likewise.
26433 * passes.c (enable_disable_pass): Likewise.
26434 * plugin.c (parse_plugin_arg_opt): Likewise.
26435 (default_plugin_dir_name): Likewise.
26436 * targhooks.c (default_expand_builtin_saveregs): Likewise.
26437 (default_pch_valid_p): Likewise.
26438 * toplev.c (init_asm_output): Likewise.
26439 (process_options): Likewise.
26440 (toplev::run_self_tests): Likewise.
26441 * tree-cfg.c (verify_gimple_call): Likewise.
26442 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
26443 (tree_inlinable_function_p): Likewise.
26444 * var-tracking.c (vt_find_locations): Likewise.
26446 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
26448 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
26449 only on the else branch.
26451 2019-03-11 Martin Liska <mliska@suse.cz>
26453 * gcov.c (output_intermediate_json_line): Print function
26455 (output_json_intermediate_file): Add new argument.
26456 * doc/gcov.texi: Document the change.
26458 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
26460 PR rtl-optimization/89588
26461 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
26462 explicit unrolling factor more robust.
26464 2019-03-11 Richard Biener <rguenther@suse.de>
26466 PR tree-optimization/89649
26467 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
26468 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
26469 on the prolog and epilog loops.
26470 (vect_loop_versioning): Return copy of loop.
26471 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
26472 on the non-vectorized version of the loop.
26474 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
26477 * config/i386/sse.md (*vec_extractv2di_0_sse):
26478 Add (=r,x) alternative and corresponding splitter.
26480 2019-03-10 Martin Jambor <mjambor@suse.cz>
26482 PR tree-optimization/85762
26483 PR tree-optimization/87008
26484 PR tree-optimization/85459
26485 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
26486 it points to if there is a type changing MEM_REF. Adjust all callers.
26487 (build_accesses_from_assign): Disable total scalarization if
26488 contains_vce_or_bfcref_p returns true through the new parameter, for
26491 2019-03-09 Jakub Jelinek <jakub@redhat.com>
26494 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
26495 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
26498 * common.opt (fdiagnostics-show-labels,
26499 fdiagnostics-show-line-numbers, fdiagnostics-format=,
26500 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
26501 gas-locview-support, ginline-points, ginternal-reset-location-views):
26502 Terminate description text with a dot.
26503 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
26504 * config/mcore/mcore.opt (m210, m340): Likewise.
26505 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
26506 mnops=): Start description text with a capital letter.
26507 * config/arc/arc.opt (msize-level=): Likewise.
26508 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
26509 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
26510 mnewlib): Likewise.
26511 * config/ft32/ft32.opt (msim): Likewise.
26512 (mft32b, mcompress): Likewise. Terminate description text with a dot.
26513 (mnodiv, mnopm): Terminate description text with a dot.
26514 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
26516 * config/i386/i386.opt (prefer_vector_width, instrument_return):
26518 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
26521 PR rtl-optimization/89634
26522 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
26523 are modified in BB_END (e->src) instruction.
26525 2019-03-08 David Malcolm <dmalcolm@redhat.com>
26528 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
26529 messages more amenable to translation, and improve wording.
26531 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
26533 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
26534 ud- and du-chains between phases.
26536 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
26539 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
26540 instead of POLY_INT_CST.
26542 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
26544 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
26547 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
26552 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
26553 (_mm_storeu_si64): Ditto.
26555 2019-03-08 Martin Liska <mliska@suse.cz>
26558 * config/i386/i386.c (ix86_option_override_internal): Disable
26559 jump tables when retpolines are used.
26561 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
26564 * ipa-split.c (execute_split_functions): Do not split
26565 'noinline' or 'section' function.
26567 2019-03-08 Jakub Jelinek <jakub@redhat.com>
26570 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
26571 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
26572 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
26575 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
26576 from diagnostics. Formatting fixes.
26579 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
26580 warn_odr diagnostics.
26583 * lra-constraints.c (process_alt_operands): Avoid one space before
26584 " at the end of line and another after " on another line in a string
26586 * attribs.c (handle_dll_attribute): Likewise.
26587 * config/avr/avr-devices.c (avr_texinfo): Likewise.
26589 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
26590 warning_at or inform messages in G_() if there is no ?:.
26592 PR tree-optimization/89550
26593 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
26594 returned true. Formatting fixes.
26595 (expand_builtin_strnlen): Formatting fixes.
26596 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
26597 if warning_at returned true.
26598 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
26600 2019-03-08 Richard Biener <rguenther@suse.de>
26602 PR middle-end/89578
26603 * cfgloop.h (struct loop): Add owned_clique field.
26604 * cfgloopmanip.c (copy_loop_info): Copy it.
26605 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
26607 * tree-inline.c (copy_loops): Remap owned_clique.
26608 * lto-streamer-in.c (input_cfg): Stream owned_clique.
26609 * lto-streamer-out.c (output_cfg): Likewise.
26611 2019-03-08 Jakub Jelinek <jakub@redhat.com>
26614 * config/darwin.c: Include intl.h.
26615 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
26616 composing the message out of two separate parts.
26618 2019-03-07 Jakub Jelinek <jakub@redhat.com>
26621 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
26622 doesn't start with a capital letter and doesn't end with a dot.
26623 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
26624 with a capital letter.
26625 (ix86_mangle_function_version_assembler_name): Likewise.
26626 (ix86_generate_version_dispatcher_body): Likewise.
26627 (fold_builtin_cpu): Likewise.
26628 (get_builtin_code_for_version): Likewise. Remove extraneous space.
26629 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
26630 translators, wrap full type name in %qs.
26632 PR translation/79999
26633 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
26634 depend clause with source (or sink) modifier.
26635 * omp-expand.c (expand_omp_ordered_sink): Likewise.
26638 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
26639 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
26640 (avx512f_load<mode>_mask): New define_expand.
26641 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
26642 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
26643 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
26644 __builtin_ia32_movess_mask): New builtins.
26645 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
26646 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
26647 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
26648 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
26650 2019-03-07 Martin Jambor <mjambor@suse.cz>
26653 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
26654 for extern inline functions.
26656 2019-03-07 Martin Jambor <mjambor@suse.cz>
26659 * cgraph.h (cgraph_node): New inline method former_thunk_p.
26660 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
26661 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
26662 have multiple callees. At the end check if declarations match as
26663 opposed to cgraph_nodes.
26665 2019-03-07 Martin Liska <mliska@suse.cz>
26667 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
26668 which is equivalent to searching for this in clones chain.
26669 * symtab.c (symtab_node::verify_base): Similarly compare ASM
26670 names with a neighbour and special case first node in a chain.
26672 2019-01-25 Jason Merrill <jason@redhat.com>
26674 PR c++/80916 - spurious "static but not defined" warning.
26675 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
26676 for an internal symbol with DECL_EXTERNAL.
26678 2019-04-07 Richard Biener <rguenther@suse.de>
26680 PR middle-end/89618
26681 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
26682 * tree-inline.c (copy_loops): Simplify.
26684 2019-03-07 Martin Liska <mliska@suse.cz>
26686 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
26688 2019-03-07 Richard Biener <rguenther@suse.de>
26690 PR tree-optimization/89595
26691 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
26692 stmt iterator as reference, take boolean output parameter to
26693 indicate whether the stmt was removed and thus the iterator
26695 (dom_opt_dom_walker::before_dom_children): Re-iterate over
26696 stmts created by folding.
26698 2019-03-07 Jakub Jelinek <jakub@redhat.com>
26701 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
26704 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
26706 PR rtl-optimization/88845
26707 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
26709 * lra.c (remove_scratches_1): New function.
26710 (remove_scratches): Use it.
26711 (lra_emit_move): Likewise.
26713 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
26715 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
26716 unaligned_access variable.
26717 * config/arc/arc.c (arc_override_options): Set unaligned access
26718 default on for HS CPUs.
26719 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
26721 2019-03-06 Martin Liska <mliska@suse.cz>
26723 PR gcov-profile/89577
26724 * doc/gcov.texi: Prefer to use --coverage.
26725 * doc/sourcebuild.texi: Likewise.
26727 2019-03-02 Jason Merrill <jason@redhat.com>
26729 PR c++/86485 - -Wmaybe-unused with empty class ?:
26730 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
26732 2019-03-05 Jakub Jelinek <jakub@redhat.com>
26735 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
26738 PR middle-end/89590
26739 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
26740 exactly one argument.
26742 2019-03-05 Jakub Jelinek <jakub@redhat.com>
26743 Richard Sandiford <richard.sandiford@arm.com>
26745 PR tree-optimization/89570
26746 * match.pd (vec_cond into cond_op simplification): Don't use
26747 get_conditional_internal_fn, use as_internal_fn (cond_op).
26749 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
26752 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
26753 to decide when to split off a non-zero offset from a symbol.
26754 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
26755 in function symbols.
26757 2019-03-05 Richard Biener <rguenther@suse.de>
26759 PR tree-optimization/89594
26760 * tree-if-conv.c (pass_if_conversion::execute): Handle
26761 case where .LOOP_VECTORIZED_FUNCTION was removed.
26763 2019-03-05 Jakub Jelinek <jakub@redhat.com>
26766 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
26767 instead alloca it only when needed with the needed size.
26769 PR tree-optimization/89570
26770 * match.pd (vec_cond into cond_op simplification): Guard with
26771 vectorized_internal_fn_supported_p test and #if GIMPLE.
26773 PR tree-optimization/89566
26774 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
26775 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
26776 Punt if get_user_idx_format succeeds, but idx_format argument is
26777 not provided or doesn't have pointer type, or if idx_args is above
26778 number of provided arguments.
26780 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
26782 PR tree-optimization/89437
26783 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
26785 2019-03-04 Richard Biener <rguenther@suse.de>
26787 PR middle-end/89572
26788 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
26791 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
26793 PR tree-optimization/89487
26794 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
26795 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
26796 (distribute_loop): Don't do runtime alias check if there is non-
26797 addressable data reference.
26798 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
26799 is a register variable.
26801 2019-03-02 Jakub Jelinek <jakub@redhat.com>
26804 * config/arm/arm.md (cmpsi2_addneg): Use
26805 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
26806 If operands[2] is 0 or INT_MIN, force use of subs.
26807 (*compare_scc splitter): Use gen_int_mode.
26808 (*negscc): Likewise.
26809 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
26811 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
26812 Monk Chiang <sh.chiang04@gmail.com>
26814 * common/config/riscv/riscv-common.c: Include sstream.
26815 (riscv_subset_list::to_string): New.
26816 (riscv_arch_str): Likewise.
26817 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
26818 * config.in: Regen.
26819 * config/riscv/riscv-protos.h (riscv_arch_str): New.
26820 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
26821 (riscv_emit_attribute): New.
26822 (riscv_file_start): Emit attribute if needed.
26823 (riscv_option_override): Init riscv_emit_attribute_p.
26824 * config/riscv/riscv.opt (mriscv-attribute): New option.
26825 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
26826 * configure: Regen.
26827 * doc/install.texi: Document --with-riscv-attribute.
26828 * doc/invoke.texi: Document -mriscv-attribute.
26830 * common/config/riscv/riscv-common.c:
26831 Include config/riscv/riscv-protos.h.
26832 (INCLUDE_STRING): Defined.
26833 (RISCV_DONT_CARE_VERSION): Defined.
26834 (riscv_subset_t): Declare.
26835 (riscv_subset_t::riscv_subset_t): New.
26836 (riscv_subset_list): Declare.
26837 (riscv_subset_list::riscv_subset_list): New.
26838 (riscv_subset_list::~riscv_subset_list): Likewise.
26839 (riscv_subset_list::parsing_subset_version): Likewise.
26840 (riscv_subset_list::parse_std_ext): Likewise.
26841 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
26842 (riscv_subset_list::add): Likewise.
26843 (riscv_subset_list::lookup): Likewise.
26844 (riscv_subset_list::xlen): Likewise.
26845 (riscv_subset_list::parse): Likewise.
26846 (riscv_supported_std_ext): Likewise.
26847 (current_subset_list): Likewise.
26848 (riscv_parse_arch_string): Using riscv_subset_list::parse to
26851 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
26853 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
26854 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
26855 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
26857 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
26859 PR rtl-optimization/85899
26860 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
26861 fallthru edges leading to the exit block.
26863 2019-03-01 Tamar Christina <tamar.christina@arm.com>
26866 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
26867 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
26869 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
26871 PR tree-optimization/89535
26872 * tree-vect-stmts.c (vectorizable_call): Record the vector types
26873 for each operand. Calculate the fallback choice for mask operands
26874 and pass it to vect_get_vec_def_for_operand.
26876 2019-03-01 Richard Biener <rguenther@suse.de>
26878 PR middle-end/89541
26879 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
26880 get virtual operands.
26881 (get_expr_operands): Handle CONST_DECL like other decls.
26883 2019-03-01 Jakub Jelinek <jakub@redhat.com>
26885 PR middle-end/89503
26886 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
26887 on DECL_P and EXPR_P.
26889 2019-03-01 Richard Biener <rguenther@suse.de>
26891 PR middle-end/89497
26892 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
26893 argument, defaulted to zero.
26894 * passes.c (execute_function_todo): Pass down SSA update flags
26895 to cleanup_tree_cfg.
26896 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
26897 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
26899 (cleanup_tree_cfg): Get and pass down SSA update flags.
26901 2019-03-01 Jakub Jelinek <jakub@redhat.com>
26904 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
26905 early_lto_debug argument.
26907 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
26909 PR tree-optimization/89536
26910 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
26911 only whether bit #0 of the value is 0 instead of the entire value.
26913 2019-02-28 Marek Polacek <polacek@redhat.com>
26915 PR c++/87068 - missing diagnostic with fallthrough statement.
26916 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
26917 at the end of a seq, save its location to walk_stmt_info.
26918 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
26921 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
26924 * tree.c (find_atomic_core_type): Move ahead in file.
26925 (check_base_type): Correctly compare alignments of atomic types.
26927 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
26930 * config/i386/i386.c (get_builtin_code_for_version): Identify
26931 Westmere from PCLMUL, instead of AES.
26933 2019-02-28 Jakub Jelinek <jakub@redhat.com>
26936 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
26937 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
26940 2019-02-28 Tamar Christina <tamar.christina@arm.com>
26943 * config/aarch64/aarch64-option-extensions.def: Document it.
26944 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
26947 2019-02-28 Jakub Jelinek <jakub@redhat.com>
26950 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
26951 builtins if they don't have a single scalar floating point argument.
26954 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
26956 PR rtl-optimization/89490
26957 * varasm.c (get_block_for_section): Bail out for mergeable sections.
26958 (default_use_anchors_for_symbol_p, output_object_block): Assert the
26959 block section is not mergeable.
26961 2019-02-27 Jakub Jelinek <jakub@redhat.com>
26964 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
26965 old define_insn to ...
26966 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
26967 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
26968 Rename old define_insn to ...
26969 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
26970 (thumb2_casesi_internal_pic): New define_expand. Rename old
26972 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
26973 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
26974 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
26976 2019-02-27 Richard Biener <rguenther@suse.de>
26979 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
26981 2019-02-27 Richard Biener <rguenther@suse.de>
26983 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
26986 2019-02-27 Richard Biener <rguenther@suse.de>
26989 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
26990 parameter, prefix section name with .gnu.debuglto_ if true.
26991 (dwarf2out_finish): Pass false to output_comdat_type_unit.
26992 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
26994 2019-02-27 Richard Biener <rguenther@suse.de>
26997 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
26998 rather than on use_debug_types, doing what output_die does.
26999 (value_format): Likewise.
27001 2019-02-27 Martin Jambor <mjambor@suse.cz>
27002 Martin Sebor <msebor@redhat.com>
27004 * doc/invoke.texi (Warning Options): Reword description of
27005 -Wno-absolute-value.
27007 2019-02-27 Jakub Jelinek <jakub@redhat.com>
27009 PR tree-optimization/89280
27010 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
27011 builtin_setjmp_setup_bb): New functions.
27012 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
27013 When visiting __builtin_setjmp_setup block, queue in special
27014 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
27015 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
27016 from visited after the loop if they don't have any visited successor
27019 2018-02-26 Steve Ellcey <sellcey@marvell.com>
27021 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
27023 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
27025 2019-02-26 Jakub Jelinek <jakub@redhat.com>
27028 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
27029 with types other than sizetype/ssizetype.
27031 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
27033 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
27034 (enum sparc_processor_type): ...this.
27035 (enum sparc_code_model_type): New enumeration type.
27036 (enum sparc_memory_model_type): Tweak comments.
27037 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
27039 (mcmodel): Use sparc_code_model enumeration and variable.
27040 (sparc_code_model): New enumeration.
27041 (mdebug): Add Undocumented marker.
27042 * config/sparc/sparc.h (enum cmodel): Delete.
27043 (sparc_cmodel): Likewise.
27044 (TARGET_CM_MEDLOW): Adjust to above renaming.
27045 (TARGET_CM_MEDMID): Likewise.
27046 (TARGET_CM_MEDANY): Likewise.
27047 (TARGET_CM_EMBMEDANY): Likewise.
27048 * config/sparc/sparc.c (sparc_cmodel): Delete.
27049 (sparc_option_override): Remove string/value mapping support for the
27050 code model. Move code and memory model support to after the handling
27051 of target flags. Do private machine setup last.
27052 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
27053 (sparc_legitimize_reload_address): Likewise.
27054 (sparc_output_mi_thunk): Likewise.
27055 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
27057 2019-02-26 Jakub Jelinek <jakub@redhat.com>
27059 PR tree-optimization/89500
27060 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
27061 (handle_builtin_strlen): Remove noncst_bound variable. Always
27062 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
27063 cst if the first cst bytes starting at x are known to be non-zero,
27064 even if the string is not zero terminated. Don't try to modify
27065 *si for strnlen. Update strlen_to_stridx only for strlen or if
27066 we can prove strnlen returns the same value as strlen would.
27068 2019-02-26 Martin Liska <mliska@suse.cz>
27070 * alloc-pool.h (struct pool_usage): Remove extra
27072 * bitmap.h (struct bitmap_usage): Likewise.
27073 * ggc-common.c (struct ggc_usage): Likewise.
27074 * mem-stats.h (struct mem_usage): Likewise.
27075 (mem_alloc_description::dump): Print dash lines
27076 here and repeat header at the end of a table report.
27077 It's then more readable.
27078 * tree-phinodes.c (phinodes_print_statistics): Make
27079 horizontal alignment.
27080 * tree-ssanames.c (ssanames_print_statistics): Likewise.
27081 * vec.c (struct vec_usage): Remove extra print_dash_line.
27082 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
27084 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
27086 * doc/extend.texi (__builtin_object_size):
27087 Use @pxref instead of @xref inside parenthesis.
27088 (__builtin_has_attribute): Add missing comma after @xref.
27089 (__builtin_object_size): Ditto.
27090 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
27092 2019-02-26 Jeff Law <law@redhat.com>
27094 PR rtl-optimization/87761
27095 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
27096 detect obviously dead insns and delete them.
27098 2019-02-26 Richard Biener <rguenther@suse.de>
27100 PR tree-optimization/89505
27101 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
27102 to handle restrict pointed-to vars with multiple subvars
27105 2019-02-26 Richard Biener <rguenther@suse.de>
27107 PR tree-optimization/89489
27108 * tree-parloops.c (create_loop_fn): Copy over last_clique.
27110 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
27112 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
27113 and move around comment.
27114 <BIT_AND_EXPR>: Likewise.
27115 <BIT_NOT_EXPR>: Add specific handling for boolean types.
27117 2019-02-26 Jakub Jelinek <jakub@redhat.com>
27120 * config/i386/i386.c (remove_partial_avx_dependency): Call
27121 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
27122 after changing possibly many instructions to use that pseudo. Fix up
27123 insertion of v4sf_const0 setter at the start of bb.
27125 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
27128 * doc/extend.texi (Variadic Pointer Args): New section.
27130 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
27131 Martin Sebor <msebor@gmail.com>
27133 * common.opt (Wattribute-alias): Likewise.
27134 * doc/invoke.texi (Option Summary): List general form of
27135 -Wattribute-alias=. List positive form of -Wmissing-attributes.
27136 (-Wmissing-attributes): Invert entry, rewrite and correct default.
27137 Add cross-references.
27138 (-Wattribute-alias): Rewrite and correct default. Mention
27139 considered attributes (same as for -Wmissing-attributes).
27141 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
27143 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
27144 (_mm_cvtpd_ps): Likewise.
27145 (_mm_cvttpd_epi32): Likewise.
27148 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
27149 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
27152 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
27154 2019-02-25 Tamar Christina <tamar.christina@arm.com>
27157 * common/config/aarch64/aarch64-common.c
27158 (struct aarch64_option_extension): Add is_synthetic.
27159 (all_extensions): Use it.
27160 (TARGET_OPTION_INIT_STRUCT): Define hook.
27161 (struct gcc_targetm_common): Moved to end.
27162 (all_extensions_by_on): New.
27163 (opt_ext_cmp, typedef opt_ext): New.
27164 (aarch64_option_init_struct): New.
27165 (aarch64_contains_opt): New.
27166 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
27167 * config/aarch64/aarch64-option-extensions.def
27168 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
27169 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
27170 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
27171 Set is_synthetic to false.
27172 (crypto): Set is_synthetic to true.
27173 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
27176 2019-02-25 Tamar Christina <tamar.christina@arm.com>
27178 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
27179 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
27180 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
27181 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
27182 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
27183 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
27184 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
27185 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
27187 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
27188 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
27189 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
27190 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
27191 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
27192 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
27193 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
27194 vfmlsl_laneq_high_f16): ... To this.
27195 * config/arm/neon.md: Update comments.
27197 2019-02-25 Tamar Christina <tamar.christina@arm.com>
27199 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
27200 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
27201 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
27202 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
27203 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
27204 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
27205 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
27206 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
27208 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
27209 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
27210 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
27211 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
27212 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
27213 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
27214 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
27215 vfmlslq_laneq_high_f16): ... To this.
27217 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
27219 PR rtl-optimization/86096
27220 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
27221 comparing mw_order values.
27223 2019-02-25 Jakub Jelinek <jakub@redhat.com>
27226 * config/arm/arm.md (*subsi3_carryin_const): Use
27227 arm_neg_immediate_operand predicate instead of
27228 arm_not_immediate_operand, "L" constraint instead of "K" and
27229 print it using %n2 instead of %B2.
27230 (*subsi3_carryin_const0): New define_insn.
27231 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
27232 instead of arm_not_operand and "I" constraint instead of "K" and
27233 print it using %n3 instead of %B2. Instead of using match_dup 2 add
27234 another match_operand and in the condition check that it is negation
27236 (*subsi3_carryin_compare_const0): New define_ins.
27237 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
27238 *subsi3_carryin_const.
27239 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
27240 split into *subsi3_carryin_compare_const0 if the highpart is zero.
27243 * config/arm.vfp.md (*negdf2_vfp): Use
27244 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
27245 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
27247 2019-02-24 Jakub Jelinek <jakub@redhat.com>
27249 PR rtl-optimization/89445
27250 * simplify-rtx.c (simplify_ternary_operation): Don't use
27251 simplify_merge_mask on operands that may trap.
27252 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
27253 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
27254 second operand is CONST_VECTOR, check if any element could be zero.
27255 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
27256 their operands can trap.
27258 2019-02-23 Martin Sebor <msebor@redhat.com>
27260 * gimple-ssa-sprintf.c (target_strtol): Rename...
27261 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
27262 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
27263 check for range error.
27265 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
27268 * opts-common.c (prune_options): Also prune joined switches
27269 with Negative and RejectNegative.
27270 * config/i386/i386.opt (march=): Add Negative(march=).
27271 (mtune=): Add Negative(mtune=).
27272 * doc/options.texi: Document Negative used together with Joined
27273 and RejectNegative.
27275 2019-02-22 Martin Sebor <msebor@redhat.com>
27277 * doc/extend.texi (Other Builtins): Add
27278 __builtin_is_constant_evaluated.
27280 2019-02-22 Richard Biener <rguenther@suse.de>
27282 PR tree-optimization/87609
27283 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
27285 2019-02-22 Jeff Law <law@redhat.com>
27287 PR rtl-optimization/87761
27288 * config/mips/mips.md: Add new combiner pattern to recognize
27289 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
27291 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
27294 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
27295 destination register in peepholes generating patterns for ADDS/SUBS.
27296 (add<mode>3_compare0,
27297 *addsi3_compare0_uxtw, add<mode>3_compareC,
27298 add<mode>3_compareV_imm, add<mode>3_compareV,
27299 *adds_<optab><ALLX:mode>_<GPI:mode>,
27300 *subs_<optab><ALLX:mode>_<GPI:mode>,
27301 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
27302 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
27303 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
27304 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
27305 sub<mode>3_compare1): Allow stack pointer for source register.
27306 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
27308 2019-02-22 Martin Sebor <msebor@redhat.com>
27310 PR tree-optimization/88993
27311 PR tree-optimization/88853
27312 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
27314 (sprintf_dom_walker::call_info::is_string_func): New helper.
27315 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
27316 for formatted string functions.
27317 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
27319 2019-02-22 Martin Sebor <msebor@redhat.com>
27322 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
27323 unreachable subexpressions.
27325 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
27326 Hongtao Liu <hongtao.liu@intel.com>
27327 Sunil K Pandey <sunil.k.pandey@intel.com>
27330 * config/i386/i386-passes.def: Add
27331 pass_remove_partial_avx_dependency.
27332 * config/i386/i386-protos.h
27333 (make_pass_remove_partial_avx_dependency): New.
27334 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
27336 (pass_data_remove_partial_avx_dependency): New.
27337 (pass_remove_partial_avx_dependency): Likewise.
27338 (make_pass_remove_partial_avx_dependency): Likewise.
27339 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
27340 (*extendsfdf2): Add avx_partial_xmm_update.
27341 (truncdfsf2): Likewise.
27342 (*float<SWI48:mode><MODEF:mode>2): Likewise.
27343 (SF/DF conversion splitters): Disabled for TARGET_AVX.
27345 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
27347 PR middle-end/85598
27348 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
27351 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
27354 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
27355 (PTA_SKYLAKE): Add PTA_AES.
27356 (PTA_GOLDMONT): Likewise.
27358 2019-02-22 Sudakshina Das <sudi.das@arm.com>
27360 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
27361 instruction if enabled.
27362 (aarch64_override_options): Remove reference to return address key.
27364 2019-02-22 Richard Biener <rguenther@suse.de>
27366 PR tree-optimization/89440
27367 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
27368 not necessary assert.
27370 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
27373 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
27374 (oacc_replace_fn_attrib_attr): ... this new function.
27375 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
27376 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
27378 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27380 * config/arm/arm-cpus.in (ares): Rename to...
27381 (neoverse-n1): ... This. Add ares as alias.
27382 * config/arm/arm-tables.opt: Regenerate.
27383 * config/arm/arm-tune.md: Likewise.
27384 * doc/invoke.txt (ARM Options): Document neoverse-n1.
27386 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27388 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
27389 * config/aarch64/aarch64-tune.md: Regenerate.
27390 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
27392 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27394 * config/aarch64/aarch64.c (ares_tunings): Rename to...
27395 (neoversen1_tunings): ... This.
27396 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
27397 (neoverse-n1): New CPU.
27398 * config/aarch64/aarch64-tune.md: Regenerate.
27399 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
27401 2019-02-22 Richard Biener <rguenther@suse.de>
27403 PR middle-end/87609
27404 * cfghooks.h (dependence_hash): New typedef.
27405 (struct copy_bb_data): New type.
27406 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
27407 (duplicate_block): Likewise.
27408 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
27409 (copy_bbs): Create and pass down copy_bb_data.
27410 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
27411 (rtl_duplicate_bb): Likewise.
27412 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
27413 remap dependence info.
27415 2019-02-22 Richard Biener <rguenther@suse.de>
27417 PR tree-optimization/87609
27418 * tree-core.h (tree_base): Document special clique values.
27419 * tree-inline.c (remap_dependence_clique): Do not use the
27420 special clique value of one.
27421 (maybe_set_dependence_info): Use clique one.
27422 (clear_dependence_clique): New callback.
27423 (compute_dependence_clique): Clear clique one from all refs
27424 before assigning it (again).
27426 2019-02-21 Martin Sebor <msebor@redhat.com>
27428 * doc/extend.texi (__clear_cache): Correct signature.
27430 2019-02-21 Ian Lance Taylor <iant@golang.org>
27433 * varasm.c (decode_addr_const): Call lookup_constant_def rather
27434 than output_constant_def.
27435 (add_constant_to_table): New static function.
27436 (output_constant_def): Call add_constant_to_table.
27437 (tree_output_constant_def): Likewise.
27439 2019-02-21 Jakub Jelinek <jakub@redhat.com>
27442 * builtins.c (fold_builtin_arith_overflow): If first two args are
27443 INTEGER_CSTs, set intres and ovfres to constants rather than calls
27446 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
27449 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
27450 error for -mindirect-branch/-mfunction-return with incompatible
27453 2019-02-21 Jakub Jelinek <jakub@redhat.com>
27456 * constraints.md (q): Remove.
27457 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
27460 2019-02-21 Martin Jambor <mjambor@suse.cz>
27463 * omp-general.c (omp_extract_for_data): Removed a duplicate call
27464 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
27465 (omp_adjust_for_condition): ...here. Added necessary parameters.
27466 * omp-general.h (omp_adjust_for_condition): Updated declaration.
27467 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
27468 proper values to new parameters of omp_adjust_for_condition.
27470 2019-02-20 Jakub Jelinek <jakub@redhat.com>
27472 PR middle-end/89412
27473 * expr.c (expand_assignment): If result is a MEM, use change_address
27474 instead of simplify_gen_subreg.
27476 2019-02-20 Jakub Jelinek <jakub@redhat.com>
27477 David Malcolm <dmalcolm@redhat.com>
27479 PR middle-end/89091
27480 * fold-const.c (decode_field_reference): Return NULL_TREE if
27481 lang_hooks.types.type_for_size returns NULL. Check it before
27482 overwriting *exp_. Use return NULL_TREE instead of return 0.
27484 2019-02-20 Jakub Jelinek <jakub@redhat.com>
27486 PR middle-end/88074
27487 PR middle-end/89415
27488 * toplev.c (do_compile): Double the emin/emax exponents to workaround
27491 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
27494 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
27495 TARGET_SSE in addition to TARGET_SSE_MATH.
27497 (ix86_excess_precision): Ditto.
27498 (ix86_float_exceptions_rounding_supported_p): Ditto.
27499 (use_rsqrt_p): Ditto.
27500 * config/i386/sse.md (rsqrt<mode>2): Ditto.
27502 2019-02-20 David Malcolm <dmalcolm@redhat.com>
27505 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
27506 linenum_arith_t when determining if two adjacent line spans are
27507 close enough to merge.
27508 (diagnostic_show_locus): Use linenum_arith_t when iterating over
27509 lines within each line_span.
27511 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
27514 * lra-constraints.c(uses_hard_regs_p): Fix handling of
27515 paradoxical SUBREGS.
27517 2019-02-20 Li Jia He <helijia@linux.ibm.com>
27520 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
27521 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
27522 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
27525 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
27527 * config/gcn/gcn.c (print_operand): Fix typo.
27529 2019-02-19 Richard Biener <rguenther@suse.de>
27531 PR middle-end/88074
27532 * toplev.c (do_compile): Initialize mpfr's exponent range
27533 based on available float modes.
27535 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
27537 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
27538 as long as the epilogue isn't completed.
27540 2019-02-18 Martin Sebor <msebor@redhat.com>
27542 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
27543 __has_cpp_attribute, and __has_include.
27545 2019-02-18 Martin Sebor <msebor@redhat.com>
27547 * doc/invoke.texi (-Wreturn-type): Correct and expand.
27549 2019-02-18 Martin Sebor <msebor@redhat.com>
27551 PR middle-end/89294
27552 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
27554 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
27556 2019-02-18 Richard Biener <rguenther@suse.de>
27558 PR tree-optimization/89296
27559 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
27560 of no-warning flag to cases that might emit the bogus warning.
27562 2019-02-18 Jakub Jelinek <jakub@redhat.com>
27565 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
27567 * config/arm/vfp.md (*movdi_vfp): Likewise.
27568 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
27569 "q" constraint for operands[0].
27572 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
27573 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
27574 pattern in a temporary buffer.
27575 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
27576 than 64-operands[2].
27579 * config/s390/s390.c (s390_indirect_branch_attrvalue,
27580 s390_indirect_branch_settings): Define unconditionally.
27581 (s390_set_current_function): Likewise, but guard the whole body except
27582 the s390_indirect_branch_settings call with
27583 #if S390_USE_TARGET_ATTRIBUTE.
27584 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
27586 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
27587 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
27588 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
27589 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
27590 HOST_WIDE_INT_1U instead of 1ULL.
27591 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
27592 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
27593 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
27594 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
27596 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
27599 2019-02-18 Martin Jambor <mjambor@suse.cz>
27601 PR tree-optimization/89209
27602 * tree-sra.c (create_access_replacement): New optional parameter
27603 reg_tree. Use it as a type if non-NULL and access type is not of
27605 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
27606 to create_access_replacement.
27607 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
27608 Check lacc is non-NULL before attempting to re-create it on the RHS.
27610 2019-02-18 Martin Liska <mliska@suse.cz>
27613 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
27615 (symbol_table::free_edge): Recycle m_summary_id.
27616 * cgraph.h (get_summary_id): New.
27617 (symbol_table::release_symbol): Set m_summary_id to -1
27619 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
27620 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
27621 function_summary to fast_function_summary.
27622 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
27623 * ipa-pure-const.c (class funct_state_summary_t):
27624 Switch from function_summary to fast_function_summary.
27625 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
27626 (class ipa_ref_opt_summary_t): Switch from function_summary
27627 to fast_function_summary.
27628 * symbol-summary.h (class function_summary_base): New class
27629 that is created from base of former function_summary.
27630 (function_summary_base::unregister_hooks): New.
27631 (class function_summary): Inherit from function_summary_base.
27632 (class call_summary_base): New class
27633 that is created from base of former call_summary.
27634 (class call_summary): Inherit from call_summary_base.
27635 (struct is_same): New.
27636 (class fast_function_summary): New summary class.
27637 (class fast_call_summary): New summary class.
27638 * vec.h (vec_safe_grow_cleared): New function.
27640 2019-02-18 Martin Liska <mliska@suse.cz>
27642 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
27643 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
27644 * doc/tm.texi: Document new target hook.
27645 * doc/tm.texi.in: Likewise.
27646 * target.def: Add new target macro.
27647 * gcc.c (find_fortran_preinclude_file): Do not search multilib
27650 2019-02-17 Alan Modra <amodra@gmail.com>
27653 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
27654 output reg on add insn.
27655 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
27657 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
27660 * config/i386/sse.md (ssedoublemode): Remove V4HI.
27661 (PMULHRSW): Likewise.
27662 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
27664 (ssse3_pmulhrswv4hi3): New expander.
27666 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
27668 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
27669 MMX. Add isa attribute.
27671 2019-02-16 Jakub Jelinek <jakub@redhat.com>
27673 PR rtl-optimization/66152
27674 * builtins.h (c_readstr): Declare.
27675 * builtins.c (c_readstr): Remove forward declaration. Add
27676 null_terminated_p argument, if false, read all bytes from the
27677 string instead of stopping after '\0'.
27678 * expr.c (string_cst_read_str): New function.
27679 (store_expr): Use string_cst_read_str instead of
27680 builtin_strncpy_read_str. Try to store by pieces the whole
27681 exp_len first, and only if that fails, split it up into
27682 store by pieces followed by clear_storage. Formatting fix.
27684 * config/i386/i386.md (*movqi_internal): Remove static from
27685 buf variable. Use output_asm_insn (buf, operands); return "";
27686 instead of return buf;.
27687 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
27688 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
27689 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
27691 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
27693 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
27694 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
27695 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
27696 (CC1_SPEC): Likewise.
27697 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
27699 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
27701 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
27702 the base address on 64-bit strict-alignment platforms.
27704 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
27706 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
27708 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
27710 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
27712 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
27714 PR rtl-optimization/88308
27715 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
27716 on copied instruction.
27718 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
27720 * final.c (insn_current_reference_address): Replace test on JUMP_P
27721 with test on jump_to_label_p.
27722 * config/visium/visium-passes.def: New file.
27723 * config/visium/t-visium (PASSES_EXTRA): Define.
27724 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
27725 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
27726 (TRAMPOLINE_ALIGNMENT): Define.
27727 * config/visium/visium.c (visium_option_override): Do not register
27728 the machine-specific reorg pass here.
27729 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
27731 (output_branch): Adjust threshold for long branch instruction.
27732 * config/visium/visium.md (cpu): Move around.
27733 (length): Adjust for the GR6.
27735 2019-02-15 Richard Biener <rguenther@suse.de>
27736 Jakub Jelinek <jakub@redhat.com>
27738 PR tree-optimization/89278
27739 * tree-loop-distribution.c: Include tree-eh.h.
27740 (generate_memset_builtin, generate_memcpy_builtin): Call
27741 rewrite_to_non_trapping_overflow on builtin->size before passing it
27742 to force_gimple_operand_gsi.
27744 2019-02-15 Jakub Jelinek <jakub@redhat.com>
27747 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
27749 * opth-gen.awk: Likewise.
27751 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
27753 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
27754 Enable MMX, SSE and SSE2 by default.
27755 * config/i386/i386.c (ix86_option_override_internal): Do not
27756 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
27758 2019-02-14 Jakub Jelinek <jakub@redhat.com>
27760 PR rtl-optimization/89354
27761 * combine.c (make_extraction): Punt if extraction_mode is narrower
27764 2019-02-14 Maya Rashish <coypu@sdf.org>
27766 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
27767 * config/netbsd-d.c: New file.
27768 * config/t-netbsd: Add netbsd-d.o
27770 2018-02-14 Steve Ellcey <sellcey@marvell.com>
27772 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
27773 affects_type_identity to true for aarch64_vector_pcs.
27774 (aarch64_comp_type_attributes): New function.
27775 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
27777 2019-02-14 Tamar Christina <tamar.christina@arm.com>
27780 * config/arm/iterators.md (ANY64): Add V4HF.
27782 2019-02-14 Martin Liska <mliska@suse.cz>
27784 PR rtl-optimization/89242
27785 * dce.c (delete_unmarked_insns): Call free_dominance_info we
27786 process a transformation.
27788 2019-02-14 Jakub Jelinek <jakub@redhat.com>
27790 PR tree-optimization/89314
27791 * fold-const.c (fold_binary_loc): Cast strlen argument to
27792 const char * before dereferencing it. Formatting fixes.
27794 PR middle-end/89284
27795 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
27797 2019-02-13 Ian Lance Taylor <iant@golang.org>
27799 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
27800 and set current index for other optimizations.
27802 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
27804 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
27805 nonimmediate_operand as operand 2 predicate.
27806 (vec_set<VF2_512_256:mode>_0): Ditto.
27807 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
27808 (*vec_concatv2si): Remove alternative 2.
27809 (*vec_concatv4si_0): Use vm constraint for alternative 0.
27810 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
27811 (vec_concatv2di): Split alternatives 4,5,6 to ...
27812 (*vec_concatv2di_0) ... new pattern.
27814 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
27817 * config/arm/arm.c (ldm_stm_operation_p) Set
27818 addr_reg_in_reglist correctly for first register.
27819 (load_multiple_sequence): Remove dead base check.
27820 (gen_ldm_seq): Correctly set write_back for Thumb-1.
27822 2019-02-13 Tamar Christina <tamar.christina@arm.com>
27825 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
27826 Expose as @aarch64_pred_mov.
27827 * config/aarch64/aarch64.c (aarch64_classify_address):
27828 Use expand_insn which legitimizes operands.
27830 2019-02-13 Martin Liska <mliska@suse.cz>
27832 * builtins.h (expand_builtin_with_bounds): Remove declaration.
27833 * calls.c (struct arg_data): Remove special_slot, pointer_arg
27834 and pointer_offset fields.
27835 (initialize_argument_information): Remove usage of dead
27837 * cgraph.h (struct cgraph_thunk_info): Remove
27838 add_pointer_bounds_args.
27839 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
27841 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
27843 * config/i386/i386.c (ix86_function_arg_advance): Remove
27845 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
27846 (def_builtin): Remove usage of dead fields.
27847 (ix86_add_new_builtins): Likewise.
27848 * ipa-fnsummary.c (compute_fn_summary): Likewise.
27849 * ipa-icf.c (sem_function::equals_wpa): Likewise.
27850 (sem_function::init): Likewise.
27851 (sem_variable::merge): Likewise.
27852 * ipa-visibility.c (function_and_variable_visibility): Likewise.
27853 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
27854 * lto-cgraph.c (lto_output_node): Likewise.
27855 (lto_output_varpool_node): Likewise.
27856 (input_node): Likewise.
27857 (input_varpool_node): Likewise.
27858 * lto-streamer-out.c (lto_output): Likewise.
27859 * tree-inline.c (expand_call_inline): Remove usage of
27861 * tree-inline.h (struct copy_body_data): Likewise.
27862 * varpool.c (varpool_node::dump): Likewise.
27864 2019-02-13 Jakub Jelinek <jakub@redhat.com>
27866 PR middle-end/89303
27867 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
27868 into pt->vars_contains_escaped_heap instead of setting
27869 pt->vars_contains_escaped_heap to it.
27871 PR middle-end/89281
27872 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
27873 INTVAL (size), compare it to GET_MODE_MASK instead of
27874 1 << GET_MODE_BITSIZE.
27877 * config/i386/predicates.md (x86_64_immediate_operand): Allow
27878 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
27881 2019-02-13 Martin Liska <mliska@suse.cz>
27884 * cfgrtl.c (remove_barriers_from_footer): New function.
27885 (try_redirect_by_replacing_jump): Use it.
27886 (cfg_layout_redirect_edge_and_branch): Likewise.
27888 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
27890 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
27891 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
27892 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
27893 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
27894 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
27895 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
27897 * config/rs6000/rs6000.c (builtin_function_type)
27898 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
27899 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
27900 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
27901 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
27902 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
27904 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
27906 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
27907 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
27909 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
27912 * config/i386/i386.md (*movoi_internal_avx): Revert revision
27913 268678 and revision 268657.
27914 (*movti_internal): Likewise.
27916 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
27919 * config/s390/s390.c (s390_decompose_address): Update comment.
27920 (s390_check_qrst_address): Reject invalid address forms after
27923 2019-02-12 Martin Liska <mliska@suse.cz>
27926 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
27927 we need default values of funct_state for a function that
27930 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
27932 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
27933 the object to pick the size of stores on strict-alignment platforms.
27935 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
27936 (*movdi_insn_sp32): Likewise.
27937 (*movdi_insn_sp64): Likewise.
27939 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
27942 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
27943 types that needs constructiong.
27944 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
27946 2019-02-12 Richard Biener <rguenther@suse.de>
27948 PR tree-optimization/89253
27949 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
27950 duplicate the loop.
27952 2019-02-11 David Malcolm <dmalcolm@redhat.com>
27955 * input.c (selftest::test_line_offset_overflow): New selftest.
27956 (selftest::input_c_tests): Call it.
27958 2019-02-11 Martin Sebor <msebor@redhat.com>
27960 PR tree-optimization/88771
27961 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
27962 when -Wstringop-overflow is set.
27963 (builtin_memref::builtin_memref): Adjust excessive upper bound
27964 only when lower bound is not excessive.
27965 (maybe_diag_overlap): Detect and diagnose excessive bounds via
27966 -Wstringop-ovefflow.
27967 (maybe_diag_offset_bounds): Rename...
27968 (maybe_diag_access_bounds): ...to this.
27969 (check_bounds_or_overlap): Adjust for name change above.
27971 2019-02-11 Martin Sebor <msebor@redhat.com>
27974 * builtins.c (max_object_size): Move from here...
27975 * builtins.h (max_object_size): ...and here...
27976 * tree.c (max_object_size): ...to here...
27977 * tree.h (max_object_size): ...and here.
27979 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
27981 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
27982 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
27983 for correct semantics.
27985 2019-02-11 Alan Modra <amodra@gmail.com>
27987 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
27988 -mlongcall and -mpltseq.
27989 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
27990 (RS/6000 and PowerPC Options <-mpltseq>): Document.
27991 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
27992 * config/rs6000/sysv4.opt (mpltseq): New option.
27993 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
27994 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
27995 support is lacking. Don't allow -mpltseq with -mbss-plt.
27996 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
27997 -mpltseq given for ELFv1.
27998 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
27999 Only use UNSPEC_PLTSEQ for inline PLT calls.
28000 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
28001 use UNSPEC_PLTSEQ for inline PLT calls.
28002 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
28003 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
28004 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
28005 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
28006 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
28007 (pltseq_mtctr_<mode>): Likewise.
28009 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28011 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
28013 * configure: Regenerate.
28015 2019-02-11 Jakub Jelinek <jakub@redhat.com>
28018 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
28021 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
28023 * function.c (assign_parm_setup_block): Use the stored
28024 size, not the passed size, when allocating stack-space,
28025 also for a parameter with alignment larger than
28026 MAX_SUPPORTED_STACK_ALIGNMENT.
28028 2019-02-11 Martin Liska <mliska@suse.cz>
28031 * ipa-cp.c (build_toporder_info): Remove usage of a param.
28032 * ipa-inline.c (inline_small_functions): Likewise.
28033 * ipa-pure-const.c (propagate_pure_const): Likewise.
28034 (propagate_nothrow): Likewise.
28035 * ipa-reference.c (propagate): Likewise.
28036 * ipa-utils.c (struct searchc_env): Remove unused field.
28037 (searchc): Always search across AVAIL_INTERPOSABLE.
28038 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
28039 the only called IPA pure const can properly not propagate
28040 across interposable boundary.
28041 * ipa-utils.h (ipa_reduced_postorder): Remove param.
28043 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
28045 * config/nds32/nds32.md (call_internal, call_value_internal,
28046 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
28048 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
28050 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
28053 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
28055 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
28058 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
28060 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
28062 2019-02-10 Jakub Jelinek <jakub@redhat.com>
28064 PR tree-optimization/89268
28065 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
28066 if preds is non-NULL.
28068 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
28071 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
28074 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
28076 * config/nds32/nds32.md (trap): New pattern.
28078 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
28080 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
28083 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
28085 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
28088 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
28090 * ipa-visibility.c (localize_node): Also do not localize
28091 LDPR_PREVAILING_DEF_IRONLY_EXP.
28093 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
28096 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
28097 instead of type_with_linkage.
28099 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
28102 * params.def (uninlined-function-insns, uninlined-function-time,
28103 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
28104 bound so we don't get overflows.
28106 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
28108 * config/rs6000/rs6000-string.c (expand_compare_loop,
28109 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
28112 2019-02-09 Jakub Jelinek <jakub@redhat.com>
28114 PR middle-end/89246
28115 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28116 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
28117 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
28119 2019-02-09 Alan Modra <amodra@gmail.com>
28122 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
28123 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
28126 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
28128 PR middle-end/88560
28129 * lra-constraints.c (process_alt_operands): Don't increase reject
28130 for memory when offset memory is required.
28132 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
28134 * config/s390/vector.md: Implement vector copysign.
28136 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
28138 * expr.c (expand_constructor): Correct indentations.
28140 2019-02-08 Richard Biener <rguenther@suse.de>
28142 PR tree-optimization/89247
28143 * tree-if-conv.c: Include tree-cfgcleanup.h.
28144 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
28145 (tree_if_conversion): Pass through predicate vector.
28146 (pass_if_conversion::execute): Do CFG cleanup and SSA update
28147 inline, see if any if-converted loops we refrece in
28148 LOOP_VECTORIZED calls vanished and fixup.
28149 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
28151 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
28153 * config/s390/constraints.md (jdd): New constraint.
28155 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
28158 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
28159 upper 16 vector registers without TARGET_AVX512VL.
28160 (*movti_internal): Likewise.
28162 2019-02-08 Jakub Jelinek <jakub@redhat.com>
28164 PR rtl-optimization/89234
28165 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
28166 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
28167 (copy_reg_eh_region_note_backward): Likewise.
28169 2019-02-08 Richard Biener <rguenther@suse.de>
28171 PR middle-end/89223
28172 * tree-data-ref.c (initialize_matrix_A): Fail if constant
28173 doesn't fit in HWI.
28174 (analyze_subscript_affine_affine): Handle failure from
28175 initialize_matrix_A.
28177 2019-02-08 Jakub Jelinek <jakub@redhat.com>
28179 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
28182 2019-02-07 David Malcolm <dmalcolm@redhat.com>
28184 PR tree-optimization/86637
28185 PR tree-optimization/89235
28186 * tree-vect-loop.c (optimize_mask_stores): Add an
28187 auto_purge_vect_location sentinel to ensure that vect_location is
28189 * tree-vectorizer.c
28190 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
28191 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
28192 to ensure that vect_location is purged on exit.
28193 (pass_slp_vectorize::execute): Likewise, replacing the manual
28195 * tree-vectorizer.h (class auto_purge_vect_location): New class.
28197 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28199 * config/aarch64/iterators.md (max_opp): New code_attr.
28200 (USMAX): New code iterator.
28201 * config/aarch64/predicates.md (aarch64_smin): New predicate.
28202 (aarch64_smax): Likewise.
28203 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
28204 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
28207 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
28210 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
28211 for TARGET_AVX512VL.
28212 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
28214 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
28216 * config/s390/s390-builtin-types.def: Add new types.
28217 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
28218 (s390_vec_xlw4): Make the memory operand into a const pointer.
28219 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
28221 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
28222 a new vector type with the alignment of the scalar memory operand.
28224 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
28225 Jakub Jelinek <jakub@redhat.com>
28228 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
28229 arm_count_ldrdstrd_insns): New declarations.
28230 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
28232 (valid_operands_ldrd_strd): New function.
28233 (arm_count_ldrdstrd_insns): New function.
28234 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
28235 sets instead of single DImode set and define new insns to match this.
28237 2019-02-07 Tamar Christina <tamar.christina@arm.com>
28239 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
28240 Make it a C initializer.
28242 2019-02-07 Tamar Christina <tamar.christina@arm.com>
28245 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
28247 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28249 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
28250 Use neon_dot<q> for type.
28251 (neon_<sup>dot_lane<vsi2qi>): Likewise.
28253 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28255 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
28256 Use neon_dot<q> for type.
28257 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
28258 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
28260 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
28262 PR rtl-optimization/89225
28263 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
28266 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
28268 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
28269 after restoring registers saved to allocate the frame on Windows.
28271 2019-02-06 Richard Biener <rguenther@suse.de>
28273 PR tree-optimization/89182
28274 * graphite.h (cached_scalar_evolution_in_region): Declare.
28275 * graphite.c (struct seir_cache_key): New.
28276 (struct sese_scev_hash): Likewise.
28277 (seir_cache): New global.
28278 (cached_scalar_evolution_in_region): New function.
28279 (graphite_transform_loops): Allocate and release seir_cache.
28280 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
28281 cached_scalar_evolution_in_region.
28282 * graphite-scop-detection.c (scop_detection::can_represent_loop):
28284 (scop_detection::graphite_can_represent_expr: Use
28285 cached_scalar_evolution_in_region.
28286 (scop_detection::stmt_simple_for_scop_p): Likewise.
28287 (find_params_in_bb): Likewise.
28288 (gather_bbs::before_dom_children): Likewise.
28289 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
28290 (add_loop_constraints): Likewise.
28292 2019-02-06 Jakub Jelinek <jakub@redhat.com>
28294 PR middle-end/89210
28295 * fold-const-call.c (fold_const_vec_convert): Pass true as last
28296 operand to new_unary_operation only if both element types are integral
28297 and it isn't a widening conversion. Return NULL_TREE if
28298 new_unary_operation failed.
28300 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
28303 * config/s390/s390.md: Remove load and test FP splitter.
28305 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
28308 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
28309 expand_compare_loop, expand_block_compare_gpr,
28310 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
28311 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
28312 #include "profile-count.h" and "predict.h" for types and functions
28313 needed to work with REG_BR_PROB notes.
28315 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
28318 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
28319 for the long branch case.
28321 2019-02-05 Jakub Jelinek <jakub@redhat.com>
28324 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
28325 can throw, non-call exceptions are enabled and we can't delete
28326 dead exceptions or alter cfg. Set must_clean if
28327 delete_insn_and_edges returns true, don't set it blindly for calls.
28328 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
28330 PR rtl-optimization/89195
28331 * combine.c (make_extraction): For MEMs, don't extract bytes outside
28332 of the original MEM.
28334 2019-02-05 Martin Liska <mliska@suse.cz>
28336 PR gcov-profile/89000
28337 * gcov.c (function_summary): Remove argument.
28338 (file_summary): New function.
28339 (print_usage): Replace tabs with spaces.
28340 (generate_results): Use new function file_summary.
28342 2019-02-05 Jakub Jelinek <jakub@redhat.com>
28345 * optabs.c (prepare_cmp_insn): Pass x and y to
28346 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
28348 2019-02-05 Richard Biener <rguenther@suse.de>
28350 PR middle-end/89150
28351 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
28352 (struct bitmap_element): Drop chain_prev so we properly recurse on
28353 the prev member, supporting tree views.
28354 (struct bitmap_head): GTY skip the obstack member.
28356 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
28359 * doc/extend.texi (Vector Extensions): Add an example of using vector
28360 types together with x86 intrinsics.
28362 2019-02-04 Alan Modra <amodra@gmail.com>
28364 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
28365 str[] size to 160, and comment.
28367 2019-02-04 Alan Modra <amodra@gmail.com>
28369 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
28370 (rs6000_pltseq_template): Guard output of TLS markers with
28371 TARGET_TLS_MARKERS.
28372 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
28373 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
28374 to use inline PLT sequences.
28375 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
28376 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
28377 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
28379 2019-02-04 Martin Liska <mliska@suse.cz>
28382 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
28383 out when ipa_fn_summaries does not contain entry for callee.
28385 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
28387 * config/sparc/sparc.h: Remove superfluous blank lines.
28388 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
28389 (got_register_rtx): ...this.
28390 (sparc_got): Adjust to above renaming.
28391 (sparc_tls_got): Likewise.
28392 (sparc_delegitimize_address): Likewise.
28393 (sparc_output_mi_thunk): Likewise.
28394 (sparc_init_pic_reg): Likewise.
28395 (save_local_or_in_reg_p): Fix test on the GOT register.
28396 (USE_HIDDEN_LINKONCE): Move around.
28397 (get_pc_thunk_name): Likewise.
28398 (gen_load_pcrel_sym): Likewise.
28399 (load_got_register): Likewise.
28401 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
28403 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
28404 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
28406 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
28408 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
28409 into consideration.
28411 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
28413 * config.gcc (with_nds32_lib, glibc):
28414 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
28415 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
28416 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
28418 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
28421 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
28422 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
28423 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
28424 (*rcpsf2_sse): Ditto.
28425 (*rsqrtsf2_sse): Ditto.
28426 (sse4_1_round<mode<2): Ditto.
28428 2019-02-03 Richard Biener <rguenther@suse.de>
28431 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
28434 2019-02-02 Jakub Jelinek <jakub@redhat.com>
28436 PR middle-end/87887
28437 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28438 Punt with warning on aggregate return or argument types. Ignore
28439 type/mode checking for uniform arguments.
28441 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
28443 * combine.c (try_combine): Do not print "Can't combine" messages unless
28444 printing failed combination attempts.
28446 2019-02-01 Martin Jambor <mjambor@suse.cz>
28449 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
28450 segment and global segment variables before making them static.
28452 2019-02-01 Martin Jambor <mjambor@suse.cz>
28454 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
28455 missed optimization dump with dump_enabled_p.
28457 2019-02-01 Richard Biener <rguenther@suse.de>
28459 PR middle-end/88597
28460 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
28461 the instantiate cache.
28462 (instantiate_scev_binary): Elide second operand procesing
28463 if equal to the first.
28464 * tree-chrec.c (chrec_contains_symbols): Add visited set.
28465 (chrec_contains_undetermined): Likewise.
28466 (tree_contains_chrecs): Likewise.
28468 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
28470 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
28472 2019-02-01 Jakub Jelinek <jakub@redhat.com>
28474 PR tree-optimization/89143
28475 * wide-int-range.h (wide_int_range_absu): Declare.
28476 * wide-int-range.cc (wide_int_range_absu): New function.
28477 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
28479 PR tree-optimization/88107
28480 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
28481 instead of assertion that eh_region_outermost is non-NULL, if it
28482 is NULL, set *ALL to true and return NULL.
28483 (move_sese_region_to_fn): Adjust caller, if all is set, call
28484 duplicate_eh_regions with NULL region.
28486 2019-02-01 Richard Biener <rguenth@suse.de>
28488 PR rtl-optimization/88593
28489 * mode-switching.c (optimize_mode_switching): Free dominators before
28490 calling cleanup_cfg.
28492 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
28494 PR tree-optimization/88932
28495 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
28497 2019-01-31 Jakub Jelinek <jakub@redhat.com>
28499 PR middle-end/89137
28500 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
28501 bogus clang warning.
28503 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
28506 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
28507 alternative to avoid partial SSE register stall for TARGET_AVX.
28508 (truncdfsf2): Ditto.
28509 (sse4_1_round<mode>2): Ditto.
28511 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
28513 PR tree-optimization/89008
28514 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
28515 process anything of the form X * 0.
28517 2019-01-31 Richard Biener <rguenther@suse.de>
28519 PR tree-optimization/89135
28520 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
28521 with abnormal preds.
28523 2019-01-31 Jakub Jelinek <jakub@redhat.com>
28526 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
28527 always_inline callees into no_sanitize_address callers.
28529 2019-01-31 Richard Biener <rguenther@suse.de>
28531 PR rtl-optimization/89115
28532 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
28534 2019-01-30 Martin Sebor <msebor@redhat.com>
28537 * doc/extend.texi (cast to a union): Correct and expand.
28539 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
28541 PR rtl-optimization/87246
28542 * lra-constraints.c (simplify_operand_subreg): Reload memory
28543 in subreg if the address became invalid.
28545 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
28548 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
28549 Disable for little-endian.
28551 2019-01-30 Richard Biener <rguenther@suse.de>
28553 PR rtl-optimization/89115
28554 * opts.c (default_options_optimization): Reduce
28555 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
28556 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
28559 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
28561 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
28562 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
28563 type of vector element when vec_extract is implemented by direct
28566 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
28568 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
28570 2019-01-30 Richard Biener <rguenther@suse.de>
28572 PR tree-optimization/89111
28573 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
28574 canonicalization to appropriately sized access types.
28576 2019-01-30 Jakub Jelinek <jakub@redhat.com>
28579 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
28580 for arguments to functions that are TU-local and shouldn't be
28581 referenced by assembly.
28583 2019-01-30 Ulrich Drepper <drepper@redhat.com>
28585 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
28588 2019-01-29 Martin Sebor <msebor@redhat.com>
28591 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
28593 2019-01-29 Jakub Jelinek <jakub@redhat.com>
28597 * omp-simd-clone.c (simd_clone_clauses_extract)
28598 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
28599 OMP_CLAUSE_ALIGNED_ALIGNMENT.
28601 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
28603 * config.gcc: Force .init_array for ARC.
28605 2019-01-29 Richard Biener <rguenther@suse.de>
28608 * dwarf2out.c (collect_skeleton_dies): New helper.
28609 (copy_decls_for_unworthy_types): Call it.
28610 (build_abbrev_table): Assert we do not try to replace
28611 DW_AT_signature refs with local refs.
28613 2019-01-28 Jakub Jelinek <jakub@redhat.com>
28615 PR middle-end/89002
28616 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
28617 for lastprivate/linear IV, push gimplify context around gimplify_assign
28618 and, if it needed any temporaries, pop it into a gimple bind around the
28621 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
28623 * common.opt (-Wattribute-alias): Remove "no-" from name.
28624 Make -Wattribute-alias command line option and
28625 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
28627 2019-01-28 Jakub Jelinek <jakub@redhat.com>
28630 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
28631 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
28633 (bmi2): Add missing @opindex.
28634 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
28635 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
28636 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
28637 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
28638 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
28639 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
28640 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
28641 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
28642 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
28643 xsavec, xsaveopt and xsaves options.
28645 2019-01-28 Richard Biener <rguenther@suse.de>
28648 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
28651 2019-01-28 Richard Biener <rguenther@suse.de>
28653 PR tree-optimization/88739
28654 * tree-cfg.c (verify_types_in_gimple_reference): Verify
28655 BIT_FIELD_REFs only are applied to mode-precision operands
28656 when they are integral.
28657 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
28658 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
28659 BIT_FIELD_REFs of non-mode-precision integral operands.
28661 2019-01-27 Jakub Jelinek <jakub@redhat.com>
28664 * config/i386/sse.md
28665 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
28666 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
28667 first constants in pairs are multiples of 2. Formatting fixes.
28668 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
28669 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
28670 first constants in each quadruple are multiples of 4. Formatting fixes.
28672 2019-01-26 Martin Jambor <mjambor@suse.cz>
28675 * tree-inline.c: Include tree-cfgcleanup.h.
28676 (delete_unreachable_blocks_update_callgraph): Move...
28677 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
28678 ...here, make externally visible, make second argument bool, adjust
28680 * tree-cfgcleanup.c: Include cgraph.h.
28681 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
28683 * ipa-prop.c: Include tree-cfgcleanup.h.
28684 (ipcp_transform_function): Call
28685 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
28687 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
28689 PR rtl-optimization/88846
28690 * ira.c (process_set_for_memref_referenced_p): New.
28691 (memref_referenced_p): Add new param. Use
28692 process_set_for_memref_referenced_p. Add new switch cases.
28693 (memref_used_between_p): Pass new arg to memref_referenced_p.
28695 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
28698 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
28699 argument ABI_BREAK. Set to true if the calculated alignment has
28700 changed in gcc-9. Check bit-fields for their base type alignment.
28701 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
28702 (aarch64_function_arg_boundary): Likewise.
28703 (aarch64_gimplify_va_arg_expr): Likewise.
28705 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
28707 PR middle-end/89037
28708 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
28709 instead of accessing TREE_INT_CST_ELT directly.
28711 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
28713 * doc/sourcebuild.texi (Environment attributes): Add fenv and
28714 fenv_exceptions description.
28716 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
28718 PR rtl-optimization/87763
28719 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
28720 Allow SUBREG when matching CC_NZmode compare.
28722 2019-01-25 Richard Biener <rguenther@suse.de>
28724 PR tree-optimization/89049
28725 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
28726 Look at the pattern stmt to determine if the stmt is vectorized.
28728 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
28730 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
28731 (pred_mov<mode>): Handle all-register forms using both a new
28732 alternative and a split.
28734 2019-01-25 Richard Biener <rguenther@suse.de>
28736 PR tree-optimization/86865
28737 * graphite-scop-detection.c (scop_detection::can_represent_loop):
28738 Reject non-do-while loops.
28740 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
28742 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
28743 * config/rs6000/constraints.md (Q constraint): Use REG_P.
28744 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
28745 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
28746 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
28747 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
28748 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
28749 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
28750 vlogical_operand, gpc_reg_operand, int_reg_operand,
28751 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
28752 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
28753 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
28754 (save_world_operation, restore_world_operation, lmw_operation,
28755 stmw_operation): Use MEM_P and REG_P.
28756 (tie_operand): Use MEM_P.
28757 (vrsave_operation, crsave_operation): Use REG_P.
28758 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
28759 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
28760 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
28761 (call_operand): Use HARD_REGISTER_P.
28762 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
28764 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
28765 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
28766 quad_aligned_load_p, replace_swapped_aligned_store,
28767 recombine_lvx_pattern, replace_swapped_aligned_load,
28768 recombine_stvx_pattern): Use MEM_P.
28769 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
28770 Use MEM_P and SYMBOL_REF_P.
28771 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
28772 (insn_is_swappable_p): Use REG_P and MEM_P.
28773 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
28774 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
28776 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
28777 Use CONST_DOUBLE_P.
28778 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
28780 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
28781 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
28782 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
28783 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
28785 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
28786 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
28787 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
28788 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
28789 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
28790 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
28791 rs6000_split_logical_di): Use CONST_INT_P.
28792 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
28793 REG_P and SYMBOL_REF_P.
28794 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
28795 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
28796 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
28797 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
28798 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
28799 (small_data_operand, print_operand_address): Use CONST_INT_P and
28801 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
28802 (rs6000_init_hard_regno_mode_ok, direct_move_p):
28803 Use HARD_REGISTER_NUM_P.
28804 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
28805 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
28806 SUBREG_P and SYMBOL_REF_P.
28807 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
28808 and HARD_REGISTER_NUM_P.
28809 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
28811 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
28812 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
28814 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
28815 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
28816 find_addr_reg): Use REG_P.
28817 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
28818 (rs6000_emit_le_vsx_move): Use SUBREG_P.
28819 (offsettable_ok_by_alignment, constant_pool_expr_p,
28820 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
28821 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
28822 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
28823 rs6000_assemble_integer, create_TOC_reference,
28824 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
28825 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
28826 (rs6000_split_vec_extract_var): Use reg_or_subregno.
28827 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
28828 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
28829 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
28830 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
28831 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
28832 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
28833 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
28834 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
28835 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
28836 and cbranch<mode>4): Use CONST_INT_P.
28837 (multiple define_splits): Use REG_P and SUBREG_P.
28838 (define_expands call, call_value): Use MEM_P.
28839 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
28840 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
28841 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
28842 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
28843 and HARD_REGISTER_NUM_P.
28844 (multiple define_splits): Use HARD_REGISTER_NUM_P.
28846 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
28848 PR rtl-optimization/88948
28849 * rtl.h (prepare_copy_insn): New prototype.
28850 * gcse.c (prepare_copy_insn): New function, split out from
28851 process_insert_insn.
28852 (process_insert_insn): Use prepare_copy_insn.
28853 * store-motion.c (replace_store_insn): Use prepare_copy_insn
28854 instead of gen_move_insn.
28856 2019-01-24 Jakub Jelinek <jakub@redhat.com>
28859 * config/i386/i386.c (ix86_pic_register_p): Return true for
28860 UNSPEC_SET_GOT too.
28862 PR tree-optimization/88964
28863 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
28864 punt if HONOR_SNANS (chrec).
28866 PR middle-end/89015
28867 * tree-nested.c (convert_nonlocal_reference_stmt,
28868 convert_local_reference_stmt, convert_tramp_reference_stmt,
28869 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
28870 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
28871 or GIMPLE_OMP_TASK.
28873 PR tree-optimization/89027
28874 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
28875 for "omp simd array" variables.
28877 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
28880 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
28881 force the alignment of m_val.
28883 2019-01-24 Richard Biener <rguenther@suse.de>
28886 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
28887 When in "legacy" debug mode make sure to reset self-origins.
28889 2019-01-24 Martin Liska <mliska@suse.cz>
28891 PR gcov-profile/88994
28892 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
28893 result will be always smaller or equal to the original.
28894 * gcov.c (mangle_name): Fix else branch where we should
28895 also copy to PTR and shift the pointer.
28897 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
28899 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
28900 * vr-values.c (find_case_label_ranges): Fix a comment typo.
28902 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
28904 * common/config/i386/i386-common.c
28905 (OPTION_MASK_ISA_ENQCMD_SET,
28906 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
28907 (ix86_handle_option): Handle -menqcmd.
28908 * config.gcc (enqcmdintrin.h): New header file.
28909 * config/i386/cpuid.h (bit_ENQCMD): New bit.
28910 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
28912 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
28914 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
28915 __builtin_ia32_enqcmds): New builtins.
28916 * config/i386/i386-c.c (__ENQCMD__): New macro.
28917 * config/i386/i386-option.c (ix86_target_string): Add
28919 (ix86_valid_target_attribute_inner_p): Likewise.
28920 * config/i386/i386-expand.c
28921 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
28922 IX86_BUILTIN_ENQCMDS.
28923 * config/i386/i386.h (TARGET_ENQCMD): New.
28924 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
28925 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
28926 (movdir64b_<mode>): Parameterize to enable share expansion code
28927 with ENQCMD in function ix86_expand_builtin.
28928 * config/i386/i386.opt: Add -menqcmd.
28929 * config/i386/immintrin.h: Include enqcmdintrin.h.
28930 * config/i386/enqcmdintrin.h: New intrinsic file.
28931 * doc/invoke.texi: Add -menqcmd.
28933 2019-01-23 Bin Cheng <bin.cheng@arm.com>
28934 Steve Ellcey <sellcey@marvell.com>
28937 * recog.c (address_operand): Return false on wrong mode for address.
28938 (constrain_operands): Check for mode with 'p' constraint.
28940 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
28943 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
28944 Disparage MMX alternative.
28945 (sse2_cvtpd2pi): Ditto.
28946 (sse2_cvttpd2pi): Ditto.
28948 2019-01-23 David Malcolm <dmalcolm@redhat.com>
28951 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
28952 use-after-free of the result of
28953 aarch64_get_extension_string_for_isa_flags.
28955 2019-01-23 Jakub Jelinek <jakub@redhat.com>
28958 * doc/extend.texi: Document break and continue behavior in
28959 statement expressions.
28961 2019-01-23 Richard Biener <rguenther@suse.de>
28963 PR tree-optimization/89008
28964 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
28965 not leave another stray operand.
28967 2019-01-23 Jakub Jelinek <jakub@redhat.com>
28969 * BASE-VER: Bump to 9.0.1.
28971 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
28973 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
28974 thunk that returns by reference, use the type of the return object
28975 of the thunk instead of that of the alias to build the dereference.
28977 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
28979 * config/arc/atomic.md: Add operand to DMB instruction.
28981 2019-01-23 Jakub Jelinek <jakub@redhat.com>
28983 PR tree-optimization/88964
28984 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
28985 build_zero_cst instead of build_int_cst. Return false for loop
28986 invariants which honor signed zeros.
28988 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
28990 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
28992 2019-01-22 Jakub Jelinek <jakub@redhat.com>
28995 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
28996 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
28997 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
28999 PR middle-end/88968
29000 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
29001 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
29004 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
29005 Disable for little endian.
29007 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
29010 * config/arm/arm.c (arm_needs_double_word_align): Check
29011 DECL_BIT_FIELD_TYPE.
29013 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
29014 H.J. Lu <hongjiu.lu@intel.com>
29017 * config/i386/i386-builtin.def: Add mask2 to all builtin
29018 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
29020 * config/i386/i386.c (BDESC): Add mask2 to the definition.
29021 (BDESC_FIRST): Likewise.
29022 (define_builtin): Add an argument for mask2. Updated to handle
29023 both ix86_isa_flags and ix86_isa_flags2.
29024 (define_builtin_const): Likewise.
29025 (define_builtin_pure): Likewise.
29026 (define_builtin2): Deleted.
29027 (define_builtin_const2): Likewise.
29028 (builtin_description): Add a member, mask2.
29029 (bdesc_*): Add mask2 to builtin initializations.
29030 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
29031 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
29033 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
29035 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
29038 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
29041 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
29044 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
29045 alignment is dominated by a bitfield with 64-bit aligned base type.
29046 (arm_function_arg): Emit a warning if the alignment has changed since
29047 earlier GCC releases.
29048 (arm_function_arg_boundary): Likewise.
29049 (arm_setup_incoming_varargs): Likewise.
29051 2019-01-22 Richard Biener <rguenther@suse.de>
29053 PR tree-optimization/88862
29054 * graphite-scop-detection.c
29055 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
29057 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
29059 * doc/extend.tex (AMD GCN Function Attributes): New section.
29060 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
29061 * doc/invoke.texi (AMD GCN Options): New section.
29062 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
29064 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
29066 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
29067 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
29069 2019-01-22 Jakub Jelinek <jakub@redhat.com>
29071 PR tree-optimization/88044
29072 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
29073 is false in the first iteration, but !every_iteration, return false
29074 instead of true with niter->niter zero.
29076 PR rtl-optimization/88904
29077 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
29078 any nonequal registers before processing BB_END (b).
29081 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
29083 (expand_binop_directly, expand_doubleword_clz,
29084 expand_doubleword_popcount, expand_ctz, expand_ffs,
29085 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
29087 PR rtl-optimization/49429
29089 PR rtl-optimization/86334
29091 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
29092 addressable from here...
29093 (emit_block_op_via_libcall): ... to here.
29095 2019-01-22 Richard Biener <rguenther@suse.de>
29097 * tree-vect-loop.c (vect_analyze_loop_operations): Use
29098 auto_vec for cost vector to fix memleak.
29099 (vectorize_fold_left_reduction): Properly gather SLP defs.
29100 (vectorizable_comparison): Do not swap operands to properly
29103 2019-01-22 Alan Modra <amodra@gmail.com>
29106 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
29107 stays a reg. Allow a const_int.
29108 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
29109 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
29110 (IS_NOMARK_TLSGETADDR): Define.
29111 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
29112 (rs6000_output_tlsargs): New function.
29113 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
29114 __tls_get_addr call takes an arg.
29115 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
29116 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
29118 (call_value_nonlocal_sysv): ..or here, delete split.
29119 (tls_gdld_nomark): Delete.
29120 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
29121 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
29122 (call_value_nonlocal_sysv): Likewise.
29123 (call_value_nonlocal_sysv_secure): Likewise.
29124 (call_value_nonlocal_aix): Likewise.
29125 (call_value_indirect_aix): Likewise.
29126 (call_value_indirect_elfv2): Likewise.
29127 (call_value_local32, call_value_local64): Disable for no-mark tls.
29128 (call_value_local_aix): Likewise.
29130 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
29133 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
29134 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
29136 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
29138 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
29139 string contents as hash_map keys.
29141 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
29144 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
29145 for rvalue context. Handle rvalues correctly. Use min_align_of_type
29146 instead of TYPE_ALIGN.
29147 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
29148 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
29149 pointer from TYPE_STUB_DECL.
29151 2019-01-21 Richard Biener <rguenther@suse.de>
29153 PR tree-optimization/88934
29154 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
29155 at the possibly non-constant operand.
29156 (vect_get_constant_vectors): Adjust.
29158 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
29161 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
29162 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
29163 instead of _X86INTRIN_H_INCLUDED.
29164 * onfig/i386/clwbintrin.h: Likewise.
29165 * config/i386/pkuintrin.h: Likewise.
29166 * config/i386/prfchwintrin.h: Likewise.
29167 * config/i386/rdseedintrin.h: Likewise.
29168 * config/i386/wbnoinvdintrin.h: Likewise.
29169 * config/i386/xsavecintrin.h: Likewise.
29170 * config/i386/xsavesintrin.h: Likewise.
29171 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
29172 * config/i386/xsaveintrin.h: Likewise.
29173 * config/i386/xsaveoptintrin.h: Likewise.
29174 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
29175 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
29176 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
29177 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
29178 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
29179 * config/i386/immintrin.h: Here.
29181 2019-01-20 Martin Jambor <mjambor@suse.cz>
29184 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
29185 with aa_walk_budget.
29186 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
29187 aa_walk_budget_p parameter.
29188 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
29189 walk. Updated all callers.
29190 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
29191 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
29193 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
29194 parameter info. Extract info from fbi. Pass fbi to recursive calls
29195 and to unmodified_parm.
29196 (phi_result_unknown_predicate): New parameter fbi, removed parameter
29197 info, updated call to will_be_nonconstant_expr_predicate.
29198 (param_change_prob): New parameter fbi, limit AA walking.
29199 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
29200 calls to various above functions.
29201 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
29202 parameter. Use it to limit AA walking.
29203 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
29204 fbi, limit AA walk.
29205 (detect_type_change): New parameter fbi, pass it on to
29206 detect_type_change_from_memory_writes.
29207 (detect_type_change_ssa): Likewise.
29208 (aa_overwalked): Removed.
29209 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
29210 accordingly, adjust to the neew AA limiting scheme.
29211 (parm_ref_data_preserved_p): Likewise.
29212 (ipa_compute_jump_functions_for_edge): Adjust call to
29214 (ipa_analyze_call_uses): Likewise.
29215 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
29216 (ipa_analyze_node): Initialize aa_walk_budget.
29217 (ipcp_transform_function): Likewise.
29218 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
29219 to get_dynamic_type.
29221 2019-01-19 Jakub Jelinek <jakub@redhat.com>
29223 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
29224 outside of #if CHECKING_P code.
29226 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
29228 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
29229 New function, split out from...
29230 (loop_versioning::analyze_stride): ...here.
29231 (loop_versioning::find_per_loop_multiplication): Use gassign.
29232 (loop_versioning::analyze_term_using_scevs): Return a success code.
29233 (loop_versioning::analyze_arbitrary_term): New function.
29234 (loop_versioning::analyze_address_fragment): Use
29235 analyze_arbitrary_term if all else fails.
29237 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
29240 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
29243 2019-01-18 Richard Biener <rguenther@suse.de>
29245 PR tree-optimization/88903
29246 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
29247 scalar stmts a SLP shift amount is composed of when detecting
29250 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
29253 * config/arm/arm-cpus.in (mp): New feature.
29254 (sec): New feature.
29255 (fgroup ARMv7ve): Add mp and sec features.
29256 (arch armv7-a): Add options to allow mp and sec extensions.
29257 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
29258 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
29259 extenstions to the base architecture.
29260 (cpu cortex-a8): Add sec extension to the base architecture.
29261 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
29262 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
29263 variants down to the base v7-a varaint.
29264 * config/arm/t-multilib (v7_a_arch_variants): New variable.
29265 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
29266 of permitted extensions for -march=armv7-a and for
29267 -mcpu=generic-armv7-a.
29269 2019-01-18 Martin Liska <mliska@suse.cz>
29271 * params.def: Fix comment.
29272 * tree-profile.c (gimple_init_gcov_profiler): Bump function
29274 (gimple_gen_ic_func_profiler): Likewise.
29276 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29278 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
29279 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
29280 and put in error checks for stack protector guard options.
29281 (aarch64_stack_protect_guard): New.
29282 (TARGET_STACK_PROTECT_GUARD): Define.
29283 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
29284 (reg_stack_protect_address<mode>): New.
29285 (stack_protect_set): Adjust for SSP_GLOBAL.
29286 (stack_protect_test): Likewise.
29287 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
29288 (-mstack-protector-guard): Likewise.
29289 (-mstack-protector-guard-offset): Likewise.
29291 2019-01-18 Jakub Jelinek <jakub@redhat.com>
29293 PR tree-optimization/86214
29294 * tree-inline.h (struct copy_body_data): Add
29295 add_clobbers_to_eh_landing_pads member.
29296 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
29297 (copy_edges_for_bb): Call it if EH edge destination is <
29298 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
29299 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
29300 if flag_stack_reuse != SR_NONE and clear it afterwards.
29302 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
29305 * doc/install.texi (with-multilib-list): Document for aarch64.
29307 2019-01-18 Jakub Jelinek <jakub@redhat.com>
29310 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
29311 (("..."))) with ("...").
29313 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
29315 * doc/extend.texi (Built-in Functions for Memory Model Aware
29316 Atomic Operations): Document atomic fetch and nand.
29318 2019-01-18 Martin Liska <mliska@suse.cz>
29319 Richard Biener <rguenther@suse.de>
29321 PR middle-end/88587
29322 * cgraph.h (create_version_clone_with_body): Add new argument
29324 * cgraphclones.c (cgraph_node::create_version_clone): Add
29325 DECL_ATTRIBUTES to a newly created decl. And call
29326 valid_attribute_p so that proper cl_target_optimization_node
29327 is set for the newly created declaration.
29328 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
29330 (expand_target_clones): Do not call valid_attribute_p, it must
29332 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
29335 2019-01-17 Jakub Jelinek <jakub@redhat.com>
29338 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
29339 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
29340 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
29342 2019-01-17 Martin Sebor <msebor@redhat.com>
29344 PR middle-end/88273
29345 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
29346 Handle anti-ranges the same as no range at all.
29348 2018-01-17 Steve Ellcey <sellcey@cavium.com>
29350 * config/aarch64/aarch64.c (cgraph.h): New include.
29351 (intl.h): New include.
29352 (supported_simd_type): New function.
29353 (currently_supported_simd_type): Ditto.
29354 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
29355 (aarch64_simd_clone_adjust): Ditto.
29356 (aarch64_simd_clone_usable): Ditto.
29357 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
29358 (TARGET_SIMD_CLONE_ADJUST): Ditto.
29359 (TARGET_SIMD_CLONE_USABLE): Ditto.
29360 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
29361 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
29364 2019-01-17 Martin Sebor <msebor@redhat.com>
29366 PR tree-optimization/88800
29367 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
29368 NO_WARNING bit here. Avoid folding out-of-bounds calls.
29369 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
29370 redundant argument. Add new argument and issue diagnostics under
29371 its control. Detect out-of-bounds access even with warnings
29373 (check_bounds_or_overlap): Change return type. Add argument.
29374 (wrestrict_dom_walker::check_call): Adjust.
29375 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
29376 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
29377 check_bounds_or_overlap's return value.
29378 (handle_builtin_stxncpy): Same.
29379 (handle_builtin_strcat): Same.
29381 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
29382 Kwok Cheung Yeung <kcy@codesourcery.com>
29383 Julian Brown <julian@codesourcery.com>
29384 Tom de Vries <tom@codesourcery.com>
29386 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
29388 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
29390 * doc/sourcebuild.texi: Document dg-require-effective-target
29391 llvm_binutils and offload_gcn.
29393 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
29394 Kwok Cheung Yeung <kcy@codesourcery.com>
29395 Julian Brown <julian@codesourcery.com>
29396 Tom de Vries <tom@codesourcery.com>
29398 * doc/sourcebuild.texi: Document dg-required-effective-target
29401 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
29402 Kwok Cheung Yeung <kcy@codesourcery.com>
29403 Julian Brown <julian@codesourcery.com>
29404 Tom de Vries <tom@codesourcery.com>
29405 Jan Hubicka <hubicka@ucw.cz>
29406 Martin Jambor <mjambor@suse.cz>
29408 * config.gcc: Add amdgcn*-*-amdhsa configuration.
29409 * configure.ac: Check for dlopen.
29410 * configure: Regenerate.
29412 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
29413 Kwok Cheung Yeung <kcy@codesourcery.com>
29414 Julian Brown <julian@codesourcery.com>
29415 Tom de Vries <tom@codesourcery.com>
29416 Jan Hubicka <hubicka@ucw.cz>
29417 Martin Jambor <mjambor@suse.cz>
29419 * common/config/gcn/gcn-common.c: New file.
29420 * config/gcn/driver-gcn.c: New file.
29421 * config/gcn/gcn-builtins.def: New file.
29422 * config/gcn/gcn-hsa.h: New file.
29423 * config/gcn/gcn-modes.def: New file.
29424 * config/gcn/gcn-opts.h: New file.
29425 * config/gcn/gcn-passes.def: New file.
29426 * config/gcn/gcn-protos.h: New file.
29427 * config/gcn/gcn-run.c: New file.
29428 * config/gcn/gcn-tree.c: New file.
29429 * config/gcn/gcn.c: New file.
29430 * config/gcn/gcn.h: New file.
29431 * config/gcn/gcn.opt: New file.
29432 * config/gcn/t-gcn-hsa: New file.
29434 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
29435 Kwok Cheung Yeung <kcy@codesourcery.com>
29436 Julian Brown <julian@codesourcery.com>
29437 Tom de Vries <tom@codesourcery.com>
29438 Jan Hubicka <hubicka@ucw.cz>
29439 Martin Jambor <mjambor@suse.cz>
29441 * config/gcn/constraints.md: New file.
29442 * config/gcn/gcn-valu.md: New file.
29443 * config/gcn/gcn.md: New file.
29444 * config/gcn/predicates.md: New file.
29446 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
29448 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
29449 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
29450 (stmt_uses_0_or_null_in_undefined_way): Likewise.
29451 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
29453 2019-01-17 Tamar Christina <tamar.christina@arm.com>
29456 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
29457 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
29458 it and document registers.
29460 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29462 * config/aarch64/aarch64.c (ares_tunings): Define.
29463 * config/aarch64/aarch64-cores.def (ares): Use the above.
29465 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
29469 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
29471 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
29472 (_mm512_fixupimm_round_pd): Update parameters and builtin.
29473 (_mm512_maskz_fixupimm_round_pd): Ditto.
29474 (_mm512_fixupimm_round_ps): Ditto.
29475 (_mm512_maskz_fixupimm_round_ps): Ditto.
29476 (_mm_fixupimm_round_sd): Ditto.
29477 (_mm_maskz_fixupimm_round_sd): Ditto.
29478 (_mm_fixupimm_round_ss): Ditto.
29479 (_mm_maskz_fixupimm_round_ss): Ditto.
29480 (_mm512_fixupimm_pd): Ditto.
29481 (_mm512_maskz_fixupimm_pd): Ditto.
29482 (_mm512_fixupimm_ps): Ditto.
29483 (_mm512_maskz_fixupimm_ps): Ditto.
29484 (_mm_fixupimm_sd): Ditto.
29485 (_mm_maskz_fixupimm_sd): Ditto.
29486 (_mm_fixupimm_ss): Ditto.
29487 (_mm_maskz_fixupimm_ss): Ditto.
29488 (_mm512_mask_fixupimm_round_pd): Update builtin.
29489 (_mm512_mask_fixupimm_round_ps): Ditto.
29490 (_mm_mask_fixupimm_round_sd): Ditto.
29491 (_mm_mask_fixupimm_round_ss): Ditto.
29492 (_mm512_mask_fixupimm_pd): Ditto.
29493 (_mm512_mask_fixupimm_ps): Ditto.
29494 (_mm_mask_fixupimm_sd): Ditto.
29495 (_mm_mask_fixupimm_ss): Ditto.
29496 * config/i386/avx512vlintrin.h:
29497 (_mm256_fixupimm_pd): Update parameters and builtin.
29498 (_mm256_maskz_fixupimm_pd): Ditto.
29499 (_mm256_fixupimm_ps): Ditto.
29500 (_mm256_maskz_fixupimm_ps): Ditto.
29501 (_mm_fixupimm_pd): Ditto.
29502 (_mm_maskz_fixupimm_pd): Ditto.
29503 (_mm_fixupimm_ps): Ditto.
29504 (_mm_maskz_fixupimm_ps): Ditto.
29505 (_mm256_mask_fixupimm_pd): Update builtin.
29506 (_mm256_mask_fixupimm_ps): Ditto.
29507 (_mm_mask_fixupimm_pd): Ditto.
29508 (_mm_mask_fixupimm_ps): Ditto.
29509 * config/i386/i386-builtin-types.def: Add new types and remove
29511 * config/i386/i386-builtin.def: Update builtin definitions.
29512 * config/i386/i386.c: Handle new builtin types and remove useless ones.
29513 * config/i386/sse.md: Update VFIXUPIMM* patterns.
29514 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
29515 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
29516 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
29517 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
29518 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
29519 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
29520 * config/i386/subst.md:
29521 (round_saeonly_sd_mask_operand4): Add new subst_attr.
29522 (round_saeonly_sd_mask_op4): Ditto.
29523 (round_saeonly_expand_operand5): Ditto.
29524 (round_saeonly_expand): Update.
29526 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
29530 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
29532 * config/i386/sse.md: Combine VFIXUPIMM* patterns
29533 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
29534 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
29535 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
29536 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
29537 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
29538 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
29540 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
29544 2018-12-15 Jakub Jelinek <jakub@redhat.com>
29547 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
29548 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
29549 instead of UNSPEC_FIXUPIMM.
29551 2019-01-17 Richard Biener <rguenther@suse.de>
29554 * dwarf2out.c (want_pubnames): Never generate pubnames sections
29555 and friends for the LTO part of debug info.
29557 2019-01-17 Jakub Jelinek <jakub@redhat.com>
29559 PR tree-optimization/86214
29560 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
29563 PR rtl-optimization/88870
29564 * dce.c (deletable_insn_p): Never delete const/pure calls that can
29565 throw if we can't alter the cfg or delete dead exceptions.
29566 (mark_insn): Don't call find_call_stack_args for such calls.
29568 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
29570 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
29571 prototypes for vec_st.
29572 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
29573 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
29574 mainly on signed/unsigned long long and double.
29576 2019-01-16 David Malcolm <dmalcolm@redhat.com>
29579 * combine.c (delete_noop_moves): Convert to "bool" return,
29580 returning true if any edges are eliminated.
29581 (combine_instructions): Also return true if delete_noop_moves
29584 2019-01-16 Tamar Christina <tamar.christina@arm.com>
29586 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
29587 correct max nunits for endian swap.
29588 (aarch64_expand_fcmla_builtin): Correct subreg code.
29589 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
29590 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
29593 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
29595 * config/alpha/alpha.c (alpha_gimplify_va_arg):
29596 Handle split indirect COMPLEX_TYPE arguments.
29598 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
29601 * config/aarch64/aarch64-modes.def: Add comment about how the carry
29602 bit is set by add and compare.
29603 (CC_ADC): New CC_MODE.
29604 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
29605 to cache the code and mode of X. Adjust the shape of a CC_Cmode
29606 comparison. Add detection for CC_ADCmode.
29607 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
29609 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
29610 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
29611 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
29612 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
29613 to eliminate the need for zero-extending the operands.
29614 (add<mode>3_compareC_imm): Delete. Merge into ...
29615 (add<mode>3_compareC): ... this. Restructure the comparison to
29616 eliminate the need for zero-extending the operands.
29617 (add<mode>3_carryin): Use LTU for the overflow detection.
29618 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
29619 Reexpress comparison for overflow.
29620 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
29621 (add<mode>3_carryinC): Likewise.
29622 (add<mode>3_carryinV): Use LTU for carry between partials.
29623 * config/aarch64/predicates.md (aarch64_carry_operation): Update
29624 handling of CC_Cmode and add CC_ADCmode.
29625 (aarch64_borrow_operation): Likewise.
29627 2019-01-16 Tamar Christina <tamar.christina@arm.com>
29629 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
29630 Remove patternmode.
29631 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
29632 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
29633 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
29634 Remove endianness conversion.
29636 2019-01-16 Martin Liska <mliska@suse.cz>
29638 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
29640 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
29642 * gcc.c (add_sysrooted_hdrs_prefix): New function.
29643 (path_prefix_reset): Move up in the source file.
29644 (find_fortran_preinclude_file): Make complex search for the
29645 fortran header files.
29647 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
29649 * godump.c (go_output_typedef): When outputting a typedef, refer
29650 to the underlying type by its name and not its structure.
29652 2019-01-15 David Malcolm <dmalcolm@redhat.com>
29655 * tree.c (build_function_type): Assert that arg_types is not
29658 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
29660 PR inline-asm/52813
29661 * doc/extend.texi: Document that listing the stack pointer in the
29662 clobber list of an asm is a deprecated feature.
29663 * common.opt (Wdeprecated): Moved from c-family/c.opt.
29664 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
29665 warning instead of an error for clobbers of the stack pointer.
29666 Add a note explaining why.
29668 2019-01-15 Richard Biener <rguenther@suse.de>
29671 * dwarf2out.c (gen_member_die): Do not generate inheritance
29674 2019-01-15 Richard Biener <rguenther@suse.de>
29676 PR tree-optimization/88855
29677 * tree-if-conv.c (combine_blocks): Collect
29678 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
29680 2019-01-15 Tom de Vries <tdevries@suse.de>
29683 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
29684 lhs == NULL_TREE for gang-level reduction.
29686 2019-01-15 Richard Biener <rguenther@suse.de>
29687 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29690 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
29691 return true if SSA_NAME is already marked in visited bitmap.
29692 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
29694 2019-01-15 Jakub Jelinek <jakub@redhat.com>
29696 PR tree-optimization/88775
29697 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
29698 equal == 0 equality pointer comparisons some more if compared in
29699 integral types and either one points to an automatic var and the
29700 other to a global, or we can prove at least one points to the middle
29701 or both point to start or both point to end.
29703 2019-01-14 Andi Kleen <ak@linux.intel.com>
29705 * Makefile.in: Lower autofdo sampling rate by 10x.
29706 * Makefile.tpl: Dito.
29708 2019-01-14 Tom Honermann <tom@honermann.net>
29710 * defaults.h: Define CHAR8_TYPE.
29712 2019-01-14 Martin Sebor <msebor@redhat.com>
29715 * doc/extend.texi (Darwin Format Checks): Clarify.
29717 2019-01-14 Richard Biener <rguenther@suse.de>
29719 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
29720 whether we are in (simplify ...) or (match ...) context.
29722 2019-01-14 Jakub Jelinek <jakub@redhat.com>
29724 PR rtl-optimization/88796
29725 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
29726 * cfgexpand.c (stack_protect_prologue): Initialize
29727 crtl->stack_protect_guard_decl.
29728 * function.c (stack_protect_epilogue): Use it instead of calling
29729 targetm.stack_protect_guard again.
29730 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
29731 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
29732 crtl->stack_protect_guard_decl.
29733 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
29734 on the returned MEM_EXPR.
29736 2019-01-12 Tom de Vries <tdevries@suse.de>
29738 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
29739 vector length using -fopenacc-dim.
29741 2019-01-12 Tom de Vries <tdevries@suse.de>
29743 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
29744 lengths into account.
29746 2019-01-12 Svante Signell <svante.signell@gmail.com>
29748 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
29749 (TARGET_CAN_SPLIT_STACK): Define.
29750 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
29752 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
29754 * params.def (inline-unit-growth): Set to 40.
29756 2019-01-12 Jakub Jelinek <jakub@redhat.com>
29758 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
29760 2019-01-12 Tom de Vries <tdevries@suse.de>
29762 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
29763 region calling vector-partitionable routine, set default_vector_length
29766 2019-01-12 Tom de Vries <tdevries@suse.de>
29768 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
29769 variable default_vector_length.
29771 2019-01-12 Tom de Vries <tdevries@suse.de>
29773 PR middle-end/88703
29774 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
29775 from oacc_default_dims, as oacc_validate_dims would do it, and apply
29778 2019-01-12 Tom de Vries <tdevries@suse.de>
29780 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
29781 (nvptx_goacc_validate_dims): Add used parameter.
29782 * doc/tm.texi: Regenerate.
29783 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
29784 argument to call to targetm.goacc.validate_dims.
29785 (default_goacc_validate_dims): Add used
29787 * target.def (validate_dims): Add used parameter in DEFHOOK.
29788 * targhooks.h (default_goacc_validate_dims): Add used parameter.
29790 2019-01-11 Jakub Jelinek <jakub@redhat.com>
29792 PR middle-end/85956
29794 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
29796 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
29797 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
29798 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
29799 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
29801 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
29803 PR rtl-optimization/87305
29805 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
29806 for little endian pseudos used as paradoxical subreg.
29808 2019-01-11 Jakub Jelinek <jakub@redhat.com>
29810 PR tree-optimization/88693
29811 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
29812 for STRING_CSTs that don't contain any NUL characters in the first
29813 TREE_STRING_LENGTH bytes.
29815 2019-01-11 Alan Modra <amodra@gmail.com>
29819 * genattrtab.c (min_fn): Don't translate values.
29820 (min_attr_value): Return INT_MAX when the value can't be calculated.
29821 Return minimum among any values that can be calculated.
29822 (max_attr_value): Adjust.
29824 2019-01-11 Jakub Jelinek <jakub@redhat.com>
29826 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
29828 2019-01-11 Steve Ellcey <sellcey@marvell.com>
29830 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
29831 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
29832 (aarch64_return_call_with_max_clobbers): New function.
29833 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
29834 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
29836 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
29837 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
29838 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
29839 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
29840 * cselib.c (cselib_process_insn): Add argument to
29841 targetm.hard_regno_call_part_clobbered call.
29842 * ira-conflicts.c (ira_build_conflicts): Ditto.
29843 * ira-costs.c (ira_tune_allocno_costs): Ditto.
29844 * lra-constraints.c (inherit_reload_reg): Ditto.
29845 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
29846 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
29847 argument. Call targetm.return_call_with_max_clobbers.
29848 Add argument to targetm.hard_regno_call_part_clobbered call.
29849 (calls_have_same_clobbers_p): New function.
29850 (process_bb_lives): Add call_insn and last_call_insn variables.
29851 Pass call_insn to check_pseudos_live_through_calls.
29852 Modify if stmt to check targetm.return_call_with_max_clobbers.
29853 Update setting of flush variable.
29854 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
29856 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
29857 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
29858 targetm.hard_regno_call_part_clobbered call.
29859 * reginfo.c (choose_hard_reg_mode): Ditto.
29860 * regrename.c (check_new_reg_p): Ditto.
29861 * reload.c (find_equiv_reg): Ditto.
29862 * reload1.c (emit_reload_insns): Ditto.
29863 * sched-deps.c (deps_analyze_insn): Ditto.
29864 * sel-sched.c (init_regs_for_mode): Ditto.
29865 (mark_unavailable_hard_regs): Ditto.
29866 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
29867 * target.def (hard_regno_call_part_clobbered): Add insn argument.
29868 (return_call_with_max_clobbers): New target function.
29869 * doc/tm.texi: Regenerate.
29870 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
29871 * hooks.c (hook_bool_uint_mode_false): Change to
29872 hook_bool_insn_uint_mode_false.
29873 * hooks.h (hook_bool_uint_mode_false): Ditto.
29875 2019-01-11 Steve Ellcey <sellcey@marvell.com>
29877 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
29878 (aarch64_remove_extra_call_preserved_regs): New function.
29879 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
29880 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
29881 * doc/tm.texi: Regenerate.
29882 * final.c (get_call_reg_set_usage): Call new hook.
29883 * target.def (remove_extra_call_preserved_regs): New hook.
29884 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
29885 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
29887 2019-01-11 Jakub Jelinek <jakub@redhat.com>
29890 * passes.c (finish_optimization_passes): Call print_combine_total_stats
29891 inside of pass_combine_1 dump rather than pass_profile_1.
29893 2019-01-11 Tom de Vries <tdevries@suse.de>
29895 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
29896 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
29897 (PTX_NUM_PER_WORKER_BARRIERS): Define.
29898 (nvptx_apply_dim_limits): Prevent vector_length 64 and
29901 2019-01-11 Tom de Vries <tdevries@suse.de>
29903 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
29905 2019-01-11 Jan Beulich <jbeulich@suse.com>
29907 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
29908 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
29909 sse2_cvtsi2sd): Add {l}.
29910 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
29913 2019-01-10 Jakub Jelinek <jakub@redhat.com>
29916 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
29918 (*float<floatunssuffix>v2div2sf2): New define_insn.
29919 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
29920 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
29921 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
29922 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
29923 match_operands with "const0_operand" "C".
29925 2019-01-10 Tamar Christina <tamar.christina@arm.com>
29927 * config/aarch64/aarch64-builtins.c
29928 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
29929 (aarch64_init_simd_builtins): ...Here
29931 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
29933 PR rtl-optimization/87305
29935 (setup_live_pseudos_and_spill_after_risky_transforms): Check
29936 allocation for big endian pseudos used as paradoxical subregs and
29937 spill them if it is wrong.
29938 * lra-constraints.c (lra_constraints): Add a comment.
29940 2019-01-10 Richard Biener <rguenther@suse.de>
29942 PR tree-optimization/88792
29943 * tree-ssa-pre.c (get_representative_for): Do not return a
29946 2019-01-10 Jakub Jelinek <jakub@redhat.com>
29948 PR middle-end/84877
29950 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
29951 (assign_parm_setup_block): Do the argument slot realignment here
29954 2019-01-10 Stefan Agner <stefan@agner.ch>
29957 * config/arm/arm.c (arm_option_override_internal): Force
29958 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
29960 2019-01-10 Jakub Jelinek <jakub@redhat.com>
29963 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
29966 2019-01-10 Tamar Christina <tamar.christina@arm.com>
29968 * config/arm/arm-builtins.c
29969 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
29970 (MAC_LANE_PAIR_QUALIFIERS): New.
29971 (arm_expand_builtin_args): Use it.
29972 (arm_expand_builtin_1): Likewise.
29973 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
29974 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
29975 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
29976 * config/arm/arm_neon.h:
29977 (vcadd_rot90_f16): New.
29978 (vcaddq_rot90_f16): New.
29979 (vcadd_rot270_f16): New.
29980 (vcaddq_rot270_f16): New.
29983 (vcmla_lane_f16): New.
29984 (vcmla_laneq_f16): New.
29985 (vcmlaq_lane_f16): New.
29986 (vcmlaq_laneq_f16): New.
29987 (vcmla_rot90_f16): New.
29988 (vcmlaq_rot90_f16): New.
29989 (vcmla_rot90_lane_f16): New.
29990 (vcmla_rot90_laneq_f16): New.
29991 (vcmlaq_rot90_lane_f16): New.
29992 (vcmlaq_rot90_laneq_f16): New.
29993 (vcmla_rot180_f16): New.
29994 (vcmlaq_rot180_f16): New.
29995 (vcmla_rot180_lane_f16): New.
29996 (vcmla_rot180_laneq_f16): New.
29997 (vcmlaq_rot180_lane_f16): New.
29998 (vcmlaq_rot180_laneq_f16): New.
29999 (vcmla_rot270_f16): New.
30000 (vcmlaq_rot270_f16): New.
30001 (vcmla_rot270_lane_f16): New.
30002 (vcmla_rot270_laneq_f16): New.
30003 (vcmlaq_rot270_lane_f16): New.
30004 (vcmlaq_rot270_laneq_f16): New.
30005 (vcadd_rot90_f32): New.
30006 (vcaddq_rot90_f32): New.
30007 (vcadd_rot270_f32): New.
30008 (vcaddq_rot270_f32): New.
30011 (vcmla_lane_f32): New.
30012 (vcmla_laneq_f32): New.
30013 (vcmlaq_lane_f32): New.
30014 (vcmlaq_laneq_f32): New.
30015 (vcmla_rot90_f32): New.
30016 (vcmlaq_rot90_f32): New.
30017 (vcmla_rot90_lane_f32): New.
30018 (vcmla_rot90_laneq_f32): New.
30019 (vcmlaq_rot90_lane_f32): New.
30020 (vcmlaq_rot90_laneq_f32): New.
30021 (vcmla_rot180_f32): New.
30022 (vcmlaq_rot180_f32): New.
30023 (vcmla_rot180_lane_f32): New.
30024 (vcmla_rot180_laneq_f32): New.
30025 (vcmlaq_rot180_lane_f32): New.
30026 (vcmlaq_rot180_laneq_f32): New.
30027 (vcmla_rot270_f32): New.
30028 (vcmlaq_rot270_f32): New.
30029 (vcmla_rot270_lane_f32): New.
30030 (vcmla_rot270_laneq_f32): New.
30031 (vcmlaq_rot270_lane_f32): New.
30032 (vcmlaq_rot270_laneq_f32): New.
30033 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
30034 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
30035 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
30036 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
30037 vcmlaq_lane270): New.
30038 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
30039 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
30040 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
30041 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
30042 (arm_option_reconfigure_globals): Use them.
30043 * config/arm/iterators.md (VDF, VQ_HSF): New.
30044 (VCADD, VCMLA): New.
30045 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
30046 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
30048 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
30049 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
30051 2019-01-10 Tamar Christina <tamar.christina@arm.com>
30053 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
30054 Add qualifier_lane_pair_index.
30055 (emit-rtl.h): Include.
30056 (TYPES_QUADOP_LANE_PAIR): New.
30057 (aarch64_simd_expand_args): Use it.
30058 (aarch64_simd_expand_builtin): Likewise.
30059 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
30061 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
30062 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
30063 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
30064 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
30065 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
30066 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
30067 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
30068 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
30069 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
30070 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
30071 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
30072 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
30073 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
30074 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
30075 Add __ARM_FEATURE_COMPLEX.
30076 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
30077 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
30078 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
30079 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
30080 fcmlaq_lane270): New.
30081 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
30082 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
30083 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
30084 * config/aarch64/arm_neon.h:
30085 (vcadd_rot90_f16): New.
30086 (vcaddq_rot90_f16): New.
30087 (vcadd_rot270_f16): New.
30088 (vcaddq_rot270_f16): New.
30091 (vcmla_lane_f16): New.
30092 (vcmla_laneq_f16): New.
30093 (vcmlaq_lane_f16): New.
30094 (vcmlaq_rot90_lane_f16): New.
30095 (vcmla_rot90_laneq_f16): New.
30096 (vcmla_rot90_lane_f16): New.
30097 (vcmlaq_rot90_f16): New.
30098 (vcmla_rot90_f16): New.
30099 (vcmlaq_laneq_f16): New.
30100 (vcmla_rot180_laneq_f16): New.
30101 (vcmla_rot180_lane_f16): New.
30102 (vcmlaq_rot180_f16): New.
30103 (vcmla_rot180_f16): New.
30104 (vcmlaq_rot90_laneq_f16): New.
30105 (vcmlaq_rot270_laneq_f16): New.
30106 (vcmlaq_rot270_lane_f16): New.
30107 (vcmla_rot270_laneq_f16): New.
30108 (vcmlaq_rot270_f16): New.
30109 (vcmla_rot270_f16): New.
30110 (vcmlaq_rot180_laneq_f16): New.
30111 (vcmlaq_rot180_lane_f16): New.
30112 (vcmla_rot270_lane_f16): New.
30113 (vcadd_rot90_f32): New.
30114 (vcaddq_rot90_f32): New.
30115 (vcaddq_rot90_f64): New.
30116 (vcadd_rot270_f32): New.
30117 (vcaddq_rot270_f32): New.
30118 (vcaddq_rot270_f64): New.
30122 (vcmla_lane_f32): New.
30123 (vcmla_laneq_f32): New.
30124 (vcmlaq_lane_f32): New.
30125 (vcmlaq_laneq_f32): New.
30126 (vcmla_rot90_f32): New.
30127 (vcmlaq_rot90_f32): New.
30128 (vcmlaq_rot90_f64): New.
30129 (vcmla_rot90_lane_f32): New.
30130 (vcmla_rot90_laneq_f32): New.
30131 (vcmlaq_rot90_lane_f32): New.
30132 (vcmlaq_rot90_laneq_f32): New.
30133 (vcmla_rot180_f32): New.
30134 (vcmlaq_rot180_f32): New.
30135 (vcmlaq_rot180_f64): New.
30136 (vcmla_rot180_lane_f32): New.
30137 (vcmla_rot180_laneq_f32): New.
30138 (vcmlaq_rot180_lane_f32): New.
30139 (vcmlaq_rot180_laneq_f32): New.
30140 (vcmla_rot270_f32): New.
30141 (vcmlaq_rot270_f32): New.
30142 (vcmlaq_rot270_f64): New.
30143 (vcmla_rot270_lane_f32): New.
30144 (vcmla_rot270_laneq_f32): New.
30145 (vcmlaq_rot270_lane_f32): New.
30146 (vcmlaq_rot270_laneq_f32): New.
30147 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
30148 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
30149 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
30150 (FCADD, FCMLA): New.
30152 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
30154 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
30158 * config/pa/pa.c: Change "can not" to "cannot".
30159 * gimple-ssa-evrp-analyze.c: Likewise.
30160 * ipa-icf.c: Likewise.
30161 * ipa-polymorphic-call.c: Likewise.
30162 * ipa-pure-const.c: Likewise.
30163 * lra-constraints.c: Likewise.
30164 * lra-remat.c: Likewise.
30165 * reload1.c: Likewise.
30166 * reorg.c: Likewise.
30167 * tree-ssa-uninit.c: Likewise.
30169 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
30173 * Makefile.in: Mechanically replace "can not" with "cannot".
30174 * alias.c: Likewise.
30175 * builtins.c: Likewise.
30176 * calls.c: Likewise.
30177 * cgraph.c: Likewise.
30178 * cgraph.h: Likewise.
30179 * cgraphclones.c: Likewise.
30180 * cgraphunit.c: Likewise.
30181 * combine-stack-adj.c: Likewise.
30182 * combine.c: Likewise.
30183 * common/config/i386/i386-common.c: Likewise.
30184 * config/aarch64/aarch64.c: Likewise.
30185 * config/alpha/sync.md: Likewise.
30186 * config/arc/arc.c: Likewise.
30187 * config/arc/predicates.md: Likewise.
30188 * config/arm/arm-c.c: Likewise.
30189 * config/arm/arm.c: Likewise.
30190 * config/arm/arm.h: Likewise.
30191 * config/arm/arm.md: Likewise.
30192 * config/arm/cortex-r4f.md: Likewise.
30193 * config/csky/csky.c: Likewise.
30194 * config/csky/csky.h: Likewise.
30195 * config/darwin-f.c: Likewise.
30196 * config/epiphany/epiphany.md: Likewise.
30197 * config/i386/i386.c: Likewise.
30198 * config/i386/sol2.h: Likewise.
30199 * config/m68k/m68k.c: Likewise.
30200 * config/mcore/mcore.h: Likewise.
30201 * config/microblaze/microblaze.md: Likewise.
30202 * config/mips/20kc.md: Likewise.
30203 * config/mips/sb1.md: Likewise.
30204 * config/nds32/nds32.c: Likewise.
30205 * config/nds32/predicates.md: Likewise.
30206 * config/pa/pa.c: Likewise.
30207 * config/rs6000/e300c2c3.md: Likewise.
30208 * config/rs6000/rs6000.c: Likewise.
30209 * config/s390/s390.h: Likewise.
30210 * config/sh/sh.c: Likewise.
30211 * config/sh/sh.md: Likewise.
30212 * config/spu/vmx2spu.h: Likewise.
30213 * cprop.c: Likewise.
30214 * dbxout.c: Likewise.
30215 * df-scan.c: Likewise.
30216 * doc/cfg.texi: Likewise.
30217 * doc/extend.texi: Likewise.
30218 * doc/fragments.texi: Likewise.
30219 * doc/gty.texi: Likewise.
30220 * doc/invoke.texi: Likewise.
30221 * doc/lto.texi: Likewise.
30222 * doc/md.texi: Likewise.
30223 * doc/objc.texi: Likewise.
30224 * doc/rtl.texi: Likewise.
30225 * doc/tm.texi: Likewise.
30227 * emit-rtl.c: Likewise.
30228 * emit-rtl.h: Likewise.
30229 * except.c: Likewise.
30230 * expmed.c: Likewise.
30231 * expr.c: Likewise.
30232 * fold-const.c: Likewise.
30233 * genautomata.c: Likewise.
30234 * gimple-fold.c: Likewise.
30235 * hard-reg-set.h: Likewise.
30236 * ifcvt.c: Likewise.
30237 * ipa-comdats.c: Likewise.
30238 * ipa-cp.c: Likewise.
30239 * ipa-devirt.c: Likewise.
30240 * ipa-fnsummary.c: Likewise.
30241 * ipa-icf.c: Likewise.
30242 * ipa-inline-transform.c: Likewise.
30243 * ipa-inline.c: Likewise.
30244 * ipa-polymorphic-call.c: Likewise.
30245 * ipa-profile.c: Likewise.
30246 * ipa-prop.c: Likewise.
30247 * ipa-pure-const.c: Likewise.
30248 * ipa-reference.c: Likewise.
30249 * ipa-split.c: Likewise.
30250 * ipa-visibility.c: Likewise.
30252 * ira-build.c: Likewise.
30253 * ira-color.c: Likewise.
30254 * ira-conflicts.c: Likewise.
30255 * ira-costs.c: Likewise.
30256 * ira-int.h: Likewise.
30257 * ira-lives.c: Likewise.
30260 * loop-invariant.c: Likewise.
30261 * loop-unroll.c: Likewise.
30262 * lower-subreg.c: Likewise.
30263 * lra-assigns.c: Likewise.
30264 * lra-constraints.c: Likewise.
30265 * lra-eliminations.c: Likewise.
30266 * lra-lives.c: Likewise.
30267 * lra-remat.c: Likewise.
30268 * lra-spills.c: Likewise.
30270 * lto-cgraph.c: Likewise.
30271 * lto-streamer-out.c: Likewise.
30272 * postreload-gcse.c: Likewise.
30273 * predict.c: Likewise.
30274 * profile-count.h: Likewise.
30275 * profile.c: Likewise.
30276 * recog.c: Likewise.
30278 * reload.c: Likewise.
30279 * reload1.c: Likewise.
30280 * reorg.c: Likewise.
30281 * resource.c: Likewise.
30282 * rtl.def: Likewise.
30284 * rtlanal.c: Likewise.
30285 * sched-deps.c: Likewise.
30286 * sched-ebb.c: Likewise.
30287 * sched-rgn.c: Likewise.
30288 * sel-sched-ir.c: Likewise.
30289 * sel-sched.c: Likewise.
30290 * shrink-wrap.c: Likewise.
30291 * simplify-rtx.c: Likewise.
30292 * symtab.c: Likewise.
30293 * target.def: Likewise.
30294 * toplev.c: Likewise.
30295 * tree-call-cdce.c: Likewise.
30296 * tree-cfg.c: Likewise.
30297 * tree-complex.c: Likewise.
30298 * tree-core.h: Likewise.
30299 * tree-eh.c: Likewise.
30300 * tree-inline.c: Likewise.
30301 * tree-loop-distribution.c: Likewise.
30302 * tree-nrv.c: Likewise.
30303 * tree-profile.c: Likewise.
30304 * tree-sra.c: Likewise.
30305 * tree-ssa-alias.c: Likewise.
30306 * tree-ssa-dce.c: Likewise.
30307 * tree-ssa-dom.c: Likewise.
30308 * tree-ssa-forwprop.c: Likewise.
30309 * tree-ssa-loop-im.c: Likewise.
30310 * tree-ssa-loop-ivcanon.c: Likewise.
30311 * tree-ssa-loop-ivopts.c: Likewise.
30312 * tree-ssa-loop-niter.c: Likewise.
30313 * tree-ssa-phionlycprop.c: Likewise.
30314 * tree-ssa-phiopt.c: Likewise.
30315 * tree-ssa-propagate.c: Likewise.
30316 * tree-ssa-threadedge.c: Likewise.
30317 * tree-ssa-threadupdate.c: Likewise.
30318 * tree-ssa-uninit.c: Likewise.
30319 * tree-ssanames.c: Likewise.
30320 * tree-streamer-out.c: Likewise.
30321 * tree.c: Likewise.
30322 * tree.h: Likewise.
30323 * vr-values.c: Likewise.
30325 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
30327 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
30328 (ix86_split_xorsign): Ditto.
30329 * config/i386/i386.c (ix86_expand_xorsign): New function.
30330 (ix86_split_xorsign): Ditto.
30331 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
30332 (xorsign<mode>3): New expander.
30333 (xorsign<mode>3_1): New insn_and_split pattern.
30334 * config/i386/sse.md (xorsign<mode>3): New expander.
30336 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
30338 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
30339 (*tablejump_sp64): Likewise.
30340 (*tablejump<P:mode>): ...this.
30341 (*call_address_sp32): Merge into...
30342 (*call_address_sp64): Likewise.
30343 (*call_address<P:mode>): ...this.
30344 (*call_symbolic_sp32): Merge into...
30345 (*call_symbolic_sp64): Likewise.
30346 (*call_symbolic<P:mode>): ...this.
30347 (call_value): Remove constraint and add predicate.
30348 (*call_value_address_sp32): Merge into...
30349 (*call_value_address_sp64): Likewise.
30350 (*call_value_address<P:mode>): ...this.
30351 (*call_value_symbolic_sp32): Merge into...
30352 (*call_value_symbolic_sp64): Likewise.
30353 (*call_value_symbolic<P:mode>): ...this.
30354 (*sibcall_symbolic_sp32): Merge into...
30355 (*sibcall_symbolic_sp64): Likewise.
30356 (*sibcall_symbolic<P:mode>): ...this.
30357 (sibcall_value): Remove constraint and add predicate.
30358 (*sibcall_value_symbolic_sp32): Merge into...
30359 (*sibcall_value_symbolic_sp64): Likewise.
30360 (*sibcall_value_symbolic<P:mode>): ...this.
30361 (window_save): Minor tweak.
30362 (*branch_sp32): Merge into...
30363 (*branch_sp64): Likewise.
30364 (*branch<P:mode>): ...this.
30366 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
30367 James Clarke <jrtc27@jrtc27.com>
30370 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
30371 consistently in TLS address generation and adjust code to the renaming
30372 of patterns. Mark calls to __tls_get_addr as const.
30373 * config/sparc/sparc.md (tgd_hi22): Turn into...
30374 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
30375 (tgd_lo10): Turn into...
30376 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
30377 (tgd_add32): Merge into...
30378 (tgd_add64): Likewise.
30379 (tgd_add<P:mode>): ...this and use Pmode throughout.
30380 (tldm_hi22): Turn into...
30381 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
30382 (tldm_lo10): Turn into...
30383 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
30384 (tldm_add32): Merge into...
30385 (tldm_add64): Likewise.
30386 (tldm_add<P:mode>): ...this and use Pmode throughout.
30387 (tldm_call32): Merge into...
30388 (tldm_call64): Likewise.
30389 (tldm_call<P:mode>): ...this and use Pmode throughout.
30390 (tldo_hix22): Turn into...
30391 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
30392 (tldo_lox10): Turn into...
30393 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
30394 (tldo_add32): Merge into...
30395 (tldo_add64): Likewise.
30396 (tldo_add<P:mode>): ...this and use Pmode throughout.
30397 (tie_hi22): Turn into...
30398 (tie_hi22<P:mode>): ...this and use Pmode throughout.
30399 (tie_lo10): Turn into...
30400 (tie_lo10<P:mode>): ...this and use Pmode throughout.
30401 (tie_ld64): Use DImode throughout.
30402 (tie_add32): Merge into...
30403 (tie_add64): Likewise.
30404 (tie_add<P:mode>): ...this and use Pmode throughout.
30405 (tle_hix22_sp32): Merge into...
30406 (tle_hix22_sp64): Likewise.
30407 (tle_hix22<P:mode>): ...this and use Pmode throughout.
30408 (tle_lox22_sp32): Merge into...
30409 (tle_lox22_sp64): Likewise.
30410 (tle_lox22<P:mode>): ...this and use Pmode throughout.
30411 (*tldo_ldub_sp32): Merge into...
30412 (*tldo_ldub_sp64): Likewise.
30413 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
30414 (*tldo_ldub1_sp32): Merge into...
30415 (*tldo_ldub1_sp64): Likewise.
30416 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
30417 (*tldo_ldub2_sp32): Merge into...
30418 (*tldo_ldub2_sp64): Likewise.
30419 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
30420 (*tldo_ldsb1_sp32): Merge into...
30421 (*tldo_ldsb1_sp64): Likewise.
30422 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
30423 (*tldo_ldsb2_sp32): Merge into...
30424 (*tldo_ldsb2_sp64): Likewise.
30425 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
30426 (*tldo_ldub3_sp64): Use DImode throughout.
30427 (*tldo_ldsb3_sp64): Likewise.
30428 (*tldo_lduh_sp32): Merge into...
30429 (*tldo_lduh_sp64): Likewise.
30430 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
30431 (*tldo_lduh1_sp32): Merge into...
30432 (*tldo_lduh1_sp64): Likewise.
30433 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
30434 (*tldo_ldsh1_sp32): Merge into...
30435 (*tldo_ldsh1_sp64): Likewise.
30436 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
30437 (*tldo_lduh2_sp64): Use DImode throughout.
30438 (*tldo_ldsh2_sp64): Likewise.
30439 (*tldo_lduw_sp32): Merge into...
30440 (*tldo_lduw_sp64): Likewise.
30441 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
30442 (*tldo_lduw1_sp64): Use DImode throughout.
30443 (*tldo_ldsw1_sp64): Likewise.
30444 (*tldo_ldx_sp64): Likewise.
30445 (*tldo_stb_sp32): Merge into...
30446 (*tldo_stb_sp64): Likewise.
30447 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
30448 (*tldo_sth_sp32): Merge into...
30449 (*tldo_sth_sp64): Likewise.
30450 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
30451 (*tldo_stw_sp32): Merge into...
30452 (*tldo_stw_sp64): Likewise.
30453 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
30454 (*tldo_stx_sp64): Use DImode throughout.
30456 2018-01-09 Sudakshina Das <sudi.das@arm.com>
30458 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
30459 check configure option to set BTI and Return Address Signing.
30460 * configure.ac: Add --enable-standard-branch-protection and
30461 --disable-standard-branch-protection.
30462 * configure: Regenerated.
30463 * doc/install.texi: Document the same.
30465 2018-01-09 Sudakshina Das <sudi.das@arm.com>
30466 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30468 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
30469 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
30470 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
30472 * config/aarch64/aarch64-bti-insert.c: New file.
30473 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
30475 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
30477 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
30478 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
30479 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
30480 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
30482 2018-01-09 Sudakshina Das <sudi.das@arm.com>
30484 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
30485 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
30486 Disable bti for -mbranch-protection=none.
30487 (aarch64_handle_standard_branch_protection): Enable bti for
30488 -mbranch-protection=standard.
30489 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
30490 -mbranch-protection.
30491 (aarch64_bti_enabled): Check if bti is enabled.
30492 * config/aarch64/aarch64.opt: Declare target variable.
30493 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
30495 2018-01-09 Sudakshina Das <sudi.das@arm.com>
30497 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
30498 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
30499 (aarch64_expand_epilogue): Likewise.
30500 (aarch64_output_mi_thunk): Likewise.
30501 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
30502 TAILCALL_ADDR_REGS to x16 and x17.
30503 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
30505 2018-01-09 Sudakshina Das <sudi.das@arm.com>
30507 * config/aarch64/aarch64-option-extensions.def: Define
30508 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
30509 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
30510 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
30511 (AARCH64_FL_PREDRES): New.
30512 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
30513 AARCH64_FL_PREDRES by default.
30514 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
30516 2018-01-09 Sudakshina Das <sudi.das@arm.com>
30518 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
30520 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
30521 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
30522 * doc/invoke.texi: Document ARMv8.5-A.
30524 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
30526 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
30527 (xorsign<mode>3): Likewise.
30529 2019-01-09 Jelinek <jakub@redhat.com>
30531 PR middle-end/88758
30532 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
30533 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
30535 PR rtl-optimization/88331
30536 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
30537 not currently_expanding_to_rtl.
30539 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
30541 * doc/invoke.texi (-Os): Remove trailing spaces.
30542 (-finline-functions): Remove reference to -O2.
30544 2019-01-08 Jakub Jelinek <jakub@redhat.com>
30546 PR rtl-optimization/79593
30547 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
30549 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
30550 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
30552 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
30555 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
30559 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
30560 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
30562 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
30565 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
30566 ix86_avx_u128_mode_entry.
30568 2019-01-08 Martin Liska <mliska@suse.cz>
30570 PR tree-optimization/88753
30571 * tree-switch-conversion.c (switch_conversion::build_one_array):
30572 Come up with local variable constructor. Convert first to
30573 type of constructor values.
30575 2019-01-08 Richard Biener <rguenther@suse.de>
30577 PR tree-optimization/86554
30578 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
30579 rpo_avail): Move earlier.
30580 (visit_nary_op): When value-numbering to expressions
30581 with different overflow behavior make sure there's an
30582 available expression on the path.
30584 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
30586 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
30587 aarch64_parse_branch_protection,
30588 struct aarch64_branch_protect_type,
30589 aarch64_handle_no_branch_protection,
30590 aarch64_handle_standard_branch_protection,
30591 aarch64_validate_mbranch_protection,
30592 aarch64_handle_pac_ret_protection,
30593 aarch64_handle_attr_branch_protection,
30594 accepted_branch_protection_string,
30595 aarch64_pac_ret_subtypes,
30596 aarch64_branch_protect_types,
30597 aarch64_handle_pac_ret_leaf): Define.
30598 (aarch64_override_options_after_change_1, aarch64_override_options):
30599 Add check for accepted_branch_protection_string.
30600 (aarch64_option_save): Save accepted_branch_protection_string.
30601 (aarch64_option_restore): Save accepted_branch_protection_string.
30602 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
30603 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
30604 msign-return-address.
30605 * doc/invoke.texi: Add mbranch-protection.
30607 2019-01-08 Alan Modra <amodra@gmail.com>
30610 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
30611 Delete "unknownp" parameter. Adjust callers. Handle
30612 CONST_INT, PLUS, MINUS, and MULT.
30613 (attr_value_aligned): Renamed from or_attr_value.
30614 (min_attr_value): Return INT_MIN for unhandled rtl case..
30615 (min_fn): ..and translate to INT_MAX here.
30616 (write_length_unit_log): Modify to cope without "unknown".
30617 (write_attr_value): Handle IF_THEN_ELSE.
30619 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
30621 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
30622 optimization for masked stores.
30624 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
30626 PR middle-end/88567
30627 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
30628 output vector directly to duplicate_and_interleave instead of
30629 going through a temporary. Postpone insertion of ctor_seq to
30630 the end of the loop.
30632 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
30635 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
30636 unsigned_p. Handle signed and unsigned overflow correction as
30638 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
30640 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
30642 (add<mode>3_compareV_imm): Make this callable for expanding.
30643 (subv<GPI:mode>4): Use register_operand for operand 1. Use
30644 aarch64_plus_operand for operand 2.
30645 (subv<GPI:mode>_insn): New insn pattern.
30646 (subv<GPI:mode>_imm): Likewise.
30647 (negv<GPI:mode>3): New expand pattern.
30648 (negv<GPI:mode>_insn): New insn pattern.
30649 (negv<GPI:mode>_cmp_only): Likewise.
30650 (cmpv<GPI:mode>_insn): Likewise.
30651 (subvti4): Use register_operand for operand 1. Update call to
30652 aarch64_expand_subvti.
30653 (usubvti4): Likewise.
30654 (negvti3): New expand pattern.
30655 (negdi_carryout): New insn pattern.
30656 (negvdi_carryinV): New insn pattern.
30657 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
30658 version the named version.
30659 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
30661 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
30663 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
30665 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
30666 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
30667 (sub<mode>3_carryinCV): Delete.
30668 (sub<GPI:mode>3_carryinV): New expand pattern.
30669 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
30671 2019-01-07 Richard Biener <rguenther@suse.de>
30673 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
30674 of tree_operand_hash.
30676 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
30678 PR tree-optimization/88598
30679 * tree.h (single_nonzero_element): Declare.
30680 * tree.c (single_nonzero_element): New function.
30681 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
30682 if I is the only nonzero element of CST.
30684 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
30686 PR tree-optimization/88598
30687 * tree.h (initializer_each_zero_or_onep): Declare.
30688 * tree.c (initializer_each_zero_or_onep): New function.
30689 (signed_or_unsigned_type_for): Handle float types too.
30690 (unsigned_type_for, signed_type_for): Update comments accordingly.
30691 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
30692 x & { 0 or -1, 0 or -1, ... }.
30694 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
30696 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
30697 with x86_64-pc-linux-gnu.
30699 2019-01-07 Tom de Vries <tdevries@suse.de>
30702 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
30704 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
30707 2019-01-07 Jakub Jelinek <jakub@redhat.com>
30709 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
30710 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
30711 TARGET_AVX512F as condition.
30714 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
30715 const_not_ok_for_debug_p target hook.
30716 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
30717 on UNSPEC and subexpressions thereof if all subexpressions of the
30718 UNSPEC are CONSTANT_P.
30720 PR tree-optimization/88676
30721 * tree-ssa-phiopt.c (two_value_replacement): New function.
30722 (tree_ssa_phiopt_worker): Call it.
30725 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
30726 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
30729 * tree-vect-generic.c: Include insn-config.h and recog.h.
30730 (expand_vector_piecewise): Add defaulted ret_type argument,
30731 if non-NULL, use that in preference to type for the result type.
30732 (expand_vector_parallel): Formatting fix.
30733 (do_vec_conversion, do_vec_narrowing_conversion,
30734 expand_vector_conversion): New functions.
30735 (expand_vector_operations_1): Call expand_vector_conversion
30736 for VEC_CONVERT ifn calls.
30737 * internal-fn.def (VEC_CONVERT): New internal function.
30738 * internal-fn.c (expand_VEC_CONVERT): New function.
30739 * fold-const-call.c (fold_const_vec_convert): New function.
30740 (fold_const_call): Use it for CFN_VEC_CONVERT.
30741 * doc/extend.texi (__builtin_convertvector): Document.
30743 2019-01-07 Tom de Vries <tdevries@suse.de>
30745 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
30746 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
30747 vector_red_partition, vector_red_sym): New global variables.
30748 (nvptx_option_override): Initialize vector_red_sym.
30749 (nvptx_declare_function_name): Restore red_partition register.
30750 (nvptx_file_end): Emit code to declare the vector reduction variables.
30751 (nvptx_output_red_partition): New function.
30752 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
30753 large vector reductions.
30754 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
30755 (nvptx_init_builtins): Add VECTOR_ADDR.
30756 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
30757 Handle nvptx_expand_shared_addr.
30758 (nvptx_get_shared_red_addr): Add vector argument and handle large
30760 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
30762 (nvptx_goacc_reduction_init): Likewise.
30763 (nvptx_goacc_reduction_fini): Likewise.
30764 (nvptx_goacc_reduction_teardown): Likewise.
30765 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
30766 init,fini,teardown}.
30767 (nvptx_init_axis_predicate): Initialize vector_red_partition.
30768 (nvptx_set_current_function): Init vector_red_partition.
30769 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
30770 (nvptx_red_partition): New insn.
30771 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
30773 2019-01-07 Tom de Vries <tdevries@suse.de>
30776 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
30779 2019-01-07 Tom de Vries <tdevries@suse.de>
30781 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
30782 (nvptx_option_override): Init oacc_bcast_partition.
30783 (nvptx_init_oacc_workers): New function.
30784 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
30785 (nvptx_needs_shared_bcast): New function.
30786 (nvptx_find_par): Generalize to enable vectors to use shared-memory
30787 to propagate state.
30788 (nvptx_shared_propagate): Initialize vector bcast partition and
30789 synchronization state.
30790 (nvptx_single): Generalize to enable vectors to use shared-memory
30791 to propagate state.
30792 (nvptx_process_pars): Likewise.
30793 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
30794 * config/nvptx/nvptx.h (struct machine_function): Add
30795 bcast_partition and sync_bar members.
30797 2019-01-07 Tom de Vries <tdevries@suse.de>
30799 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
30800 (nvptx_apply_dim_limits): New function.
30801 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
30804 2019-01-07 Tom de Vries <tdevries@suse.de>
30806 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
30807 as late as possible.
30809 2019-01-07 Tom de Vries <tdevries@suse.de>
30811 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
30812 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
30813 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
30814 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
30815 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
30817 2019-01-07 Tom de Vries <tdevries@suse.de>
30819 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
30821 2019-01-07 Tom de Vries <tdevries@suse.de>
30823 * omp-offload.c (oacc_get_min_dim): New function.
30824 * omp-offload.h (oacc_get_min_dim): Declare.
30826 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
30829 * config/i386/i386.c (function_value_ms_64): Return small sturct in
30830 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
30832 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
30836 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
30838 * ipa-inline.c (edge_badness): Use inlined_time instead of
30839 inline_summaries->get.
30841 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
30843 * opts.c (enable_fdo_optimizations): Enable
30844 version-loops-for-strides, loop-interchange, unrol-and-jam
30845 and tree-loop-distribution.
30846 * invoke.texi: Document newly enabled options.
30848 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
30850 * doc/invoke.texi (max-inline-insns-small): New parameters.
30851 * ipa-inline.c (want_early_inline_function_p): simplify.
30852 (want_inline_small_function_p): Fix pasto from previous patch;
30853 use max-inline-insns-small bound.
30854 * params.def (max-inline-insns-small): New param.
30855 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
30856 variables correctly.
30858 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
30860 * doc/invoke.texi: Document max-inline-insns-size,
30861 uninlined-function-insns, uninlined-function-time,
30862 uninlined-thunk-insns and uninlined-thunk-time.
30863 * params.def: Add max-inline-insns-size,
30864 uninlined-function-insns, uninlined-function-time,
30865 uninlined-thunk-insns and uninlined-thunk-time.
30866 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
30868 * ipa-inline.c (can_inline_edge_by_limits_p,
30869 want_inline_small_function_p): Use new parameters.
30871 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
30873 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
30875 2019-01-05 Jakub Jelinek <jakub@redhat.com>
30877 PR middle-end/82564
30879 * expr.c (expand_assignment): For calls returning VLA structures
30880 if to_rtx is not a MEM, force it into a stack temporary.
30883 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
30884 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
30885 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
30886 subexpressions of both operands.
30887 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
30888 subrtxes are CONSTANT_P.
30889 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
30890 2018-11-09 changes.
30892 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
30894 * params.def (hot-bb-count-ws-permille): Set to 990.
30896 2019-01-04 Martin Sebor <msebor@redhat.com>
30899 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
30902 2019-01-04 Martin Sebor <msebor@redhat.com>
30905 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
30907 2019-01-04 Jakub Jelinek <jakub@redhat.com>
30909 * gdbinit.in: Turn off pagination for the skip commands, restore
30910 it to previous state afterwards.
30912 2019-01-04 Jakub Jelinek <jakub@redhat.com>
30915 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
30916 of GET_MODE (opN) as modes of the libcall arguments.
30918 2019-01-04 Jan Beulich <jbeulich@suse.com>
30920 * config/i386/sse.md
30921 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
30922 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
30923 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
30924 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
30925 avx512f_vmcmp<mode>3<round_saeonly_name>,
30926 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
30927 avx512f_maskcmp<mode>3,
30928 <avx512>_cvt<ssemodesuffix>2mask<mode>,
30929 <avx512>_cvt<ssemodesuffix>2mask<mode>,
30930 *<avx512>_cvtmask2<ssemodesuffix><mode>,
30931 *<avx512>_cvtmask2<ssemodesuffix><mode>,
30932 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
30933 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
30934 <avx512>_gt<mode>3<mask_scalar_merge_name>,
30935 <avx512>_gt<mode>3<mask_scalar_merge_name>,
30936 <avx512>_testm<mode>3<mask_scalar_merge_name>,
30937 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
30938 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
30939 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
30940 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
30941 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
30942 avx512cd_maskb_vec_dup<mode>,
30943 avx512cd_maskw_vec_dup<mode>,
30944 avx512dq_fpclass<mode><mask_scalar_merge_name>,
30945 avx512dq_vmfpclass<mode>,
30946 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
30949 2019-01-03 Martin Sebor <msebor@redhat.com>
30951 PR tree-optimization/88659
30952 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
30954 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
30956 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
30957 unaligned vsx and avoid lxvd2x/stxvd2x.
30958 (gen_lvx_v4si_move): New function.
30960 2019-01-03 Tom de Vries <tdevries@suse.de>
30962 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
30963 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
30965 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
30967 2019-01-03 Tom de Vries <tdevries@suse.de>
30969 * config/nvptx/nvptx.c (struct offload_attrs): New.
30970 (populate_offload_attrs): New function. Factor mask extraction out of
30971 nvptx_reorg. Add extraction of dimensions.
30972 (nvptx_reorg): Use populate_offload_attrs.
30974 2019-01-03 Tom de Vries <tdevries@suse.de>
30976 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
30977 cases for oacc_min_dims_p and routine_p. Add asserts for
30978 oacc_default_dims_p and offload_region_p.
30980 2019-01-03 Tom de Vries <tdevries@suse.de>
30982 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
30983 factored out of ...
30984 (nvptx_goacc_validate_dims): ... here.
30986 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
30988 PR tree-optimization/85574
30989 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
30991 (struct ssa_equip_hash_traits): Declare.
30992 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
30994 2019-01-03 Jakub Jelinek <jakub@redhat.com>
30997 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
30998 change it to qualified_type.
31000 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
31002 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
31003 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
31005 2019-01-02 Martin Sebor <msebor@redhat.com>
31006 Jeff Law <law@redhat.com>
31008 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
31009 (get_range_strlen_tree): Update appropriately.
31011 * gimple-fold.h (get_range_strlen): Drop unused last argument.
31013 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
31014 rather than set_range_info.
31015 * tree-ssa-strlen.c (set_strlen_range): Extracted from
31016 maybe_set_strlen_range. Handle potentially boundary crossing
31017 cases more conservatively.
31018 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
31019 Call set_strlen_range.
31020 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
31022 PR middle-end/88663
31023 * gimple-fold.c (get_range_strlen): Update prototype to no longer
31024 need the flexp argument.
31025 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
31026 from calls to get_range_strlen. Update comments. Just update
31027 VAL for an unterminated const char array and let the reset of the
31028 code handle it normally. No longer try to set *flexp. Adjust
31030 (get_range_strlen): Update for the new get_range_strlen API.
31031 (get_maxval_strlen): Similarly.
31032 (gimple_fold_builtin_strlen): Handle update meaning of return value
31033 from get_range_strlen.
31034 * gimple-ssa-sprintf.c (get_string_length): Update for the new
31035 get_range_strlen API.
31037 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
31040 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
31041 false at WPA time when body was removed.
31043 2019-01-02 Martin Liska <mliska@suse.cz>
31045 PR tree-optimization/88650
31046 * predict.c (set_even_probabilities): Calculate probability
31047 remainer only when really used.
31049 2019-01-02 Richard Biener <rguenther@suse.de>
31051 PR middle-end/88651
31052 * tree-data-ref.c (analyze_subscript_affine_affine): Use
31053 widest_ints when mangling max_stmt_execution results.
31055 2019-01-02 Richard Biener <rguenther@suse.de>
31057 PR tree-optimization/88621
31058 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
31059 bitfields when canoncalizing.
31061 2019-01-02 Richard Biener <rguenther@suse.de>
31064 * config/i386/x86-tune-costs.h (intel_cost): Adjust
31065 cost of cheap SSE instruction.
31067 2019-01-02 Richard Biener <rguenther@suse.de>
31070 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
31071 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
31073 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
31074 set after UIDs before splitting them.
31076 2019-01-01 Martin Sebor <msebor@redhat.com>
31077 Jeff Law <law@redhat.com>
31079 * gimple-fold.c (get_range_strlen_tree): Record if the computed
31080 length is optimistic. If it is, then arrange to compute the
31081 conservative length as well.
31083 * gimple-fold.h (get_range_strlen): Update prototype.
31084 * builtins.c (check_access): Update call to get_range_strlen to use
31085 c_strlen_data pointer. Change various variable accesses to instead
31086 pull data from the c_strlen_data structure.
31087 (check_strncat_sizes, expand_builtin_strncat): Likewise.
31088 * calls.c (maybe_warn_nonstring_arg): Likewise.
31089 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
31090 minimum length if maximum lengh is unknown.
31091 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
31092 that used c_strlen, it's no longer needed. Restructure slightly.
31093 (format_string): Set unlikely range appropriately.
31094 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
31096 (get_range_strlen): Accept c_strlen_data pointer for external
31097 call sites as well. Pass through to call to internal get_range_strlen.
31098 Adjust minlen, maxlen and maxbound as needed.
31099 (get_maxval_strlen): Update comments.
31100 (gimple_fold_builtin_strlen): Update call to get_range_strlen
31101 to use c_strlen_data pointer. Change variable accesses to instead
31102 use c_strlen_data data members.
31104 * gimple-fold.c (get_range_strlen): Update prototype.
31105 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
31106 local variables. Use pdata to return information to caller.
31107 Update calls to get_range_strlen. Update pdata->maxbound.
31108 (get_range_strlen -- static version): Similarly.
31109 (get_range_strlen -- extern version): Update for internal
31110 get_range_strlen API change. Convert to external data format.
31111 (get_maxval_strlen): Similarly.
31113 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
31115 * coverage.c (get_coverage_counts): Use current_function_decl.
31116 * profile.c (read_thunk_profile): New function.
31117 (branch_prob): Add THUNK parameter.
31118 * tree-profile.c (tree_profiling): Handle thunks.
31119 * value-prof.c (init_node_map): Handle thunks.
31120 * value-prof.h (branch_prob): Upate prototype.
31121 (read_thunk_profile): Declare.
31123 2019-01-01 Jakub Jelinek <jakub@redhat.com>
31125 Update copyright years.
31127 * gcc.c (process_command): Update copyright notice dates.
31128 * gcov-dump.c (print_version): Ditto.
31129 * gcov.c (print_version): Ditto.
31130 * gcov-tool.c (print_version): Ditto.
31131 * gengtype.c (create_file): Ditto.
31132 * doc/cpp.texi: Bump @copying's copyright year.
31133 * doc/cppinternals.texi: Ditto.
31134 * doc/gcc.texi: Ditto.
31135 * doc/gccint.texi: Ditto.
31136 * doc/gcov.texi: Ditto.
31137 * doc/install.texi: Ditto.
31138 * doc/invoke.texi: Ditto.
31140 Copyright (C) 2019 Free Software Foundation, Inc.
31142 Copying and distribution of this file, with or without modification,
31143 are permitted in any medium without royalty provided the copyright
31144 notice and this notice are preserved.