[RS6000] Remove TARGET_TLS_MARKERS and require binutils 2.20
[official-gcc.git] / gcc / ChangeLog
blob4fdb911ab8bf0dc9232e94e8854c317e96cd8dc7
1 2019-11-12  Alan Modra  <amodra@gmail.com>
3         * config/rs6000/rs6000.opt (mtls-markers): Delete.
4         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
5         (IS_NOMARK_TLSGETADDR): Likewise.
6         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
7         * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
8         (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
9         (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
10         allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
11         (rs6000_indirect_call_template_1): Likewise.
12         (rs6000_pltseq_template): Likewise.
13         (rs6000_opt_vars): Remove "tls-markers" entry.
14         * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
15         with TARGET_ELF.
16         (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
17         (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
18         (pltseq_plt_pcrel<mode>): Likewise.
19         (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
20         (call_value_local64): Likewise.
21         (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
22         output and length attribute sub-expression.
23         (call_value_nonlocal_sysv<mode>),
24         (call_value_nonlocal_sysv_secure<mode>),
25         (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
26         (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
27         (call_value_indirect_pcrel<mode>): Likewise.
28         * doc/install.texi (powerpc-*-*): Require binutils-2.20.
29         * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
30         * configure: Regenerate.
31         * config.in: Regenerate.
33 2019-11-11  Michael Meissner  <meissner@linux.ibm.com>
35         * config/rs6000/predicates.md (prefixed_memory): New predicate.
36         * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
37         address being a prefixed load/store.
38         (stack_protect_testdi): Deal with either address being a prefixed
39         load.
41 2019-11-11  Jakub Jelinek  <jakub@redhat.com>
43         PR bootstrap/92433
44         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
45         ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check.  Use
46         std::swap.
48 2019-11-11  Richard Sandiford  <richard.sandiford@arm.com>
50         PR tree-optimization/92420
51         * tree-vect-stmts.c (get_negative_load_store_type): Move further
52         up file.
53         (get_group_load_store_type): Use it for reversed SLP accesses.
55 2019-11-11  Jan Hubicka  <hubcika@ucw.cz>
57         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
58         summary.
59         (ipcp_transformation_t::duplicate): Break out from ...
60         (ipa_node_params_t::duplicate): ... here; add copying of agg
61         replacements.
62         * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
63         (ipcp_transformation_t): Add duplicate.
65 2019-11-11  Janne Blomqvist  <jb@gcc.gnu.org>
67         PR fortran/91828
68         * doc/install.texi: Document that the minimum MPFR version is
69         3.1.0.
71 2019-11-11  Claudiu Zissulescu <claziss@gmail.com>
73         * config/arc/arc.md (movsi_ne): Reorder instruction variants and
74         use new register constraint letters.
76 2019-11-11  Claudiu Zissulescu <claziss@gmail.com>
78         * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
79         as well, if interesting recover the symbol and re-legitimize the
80         pic address.
82 2019-11-11  Martin Liska  <mliska@suse.cz>
84         * dbgcnt.def (DEBUG_COUNTER): Sort counters
85         alphabetically.
87 2019-11-11  Andre Vieira  <andre.simoesdiasvieira@arm.com>
89         * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
90         account when checking if there are enough iterations to vectorize
91         epilogue.
93 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
94             Kwok Cheung Yeung  <kcy@codesourcery.com>
96         * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
97         Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
98         (LANG_HOOKS_DECLS): Rename also here.
99         * langhooks.h (lang_hooks_for_decls): Rename
100         omp_is_optional_argument to omp_check_optional_argument; take
101         additional bool argument.
102         * omp-general.h (omp_check_optional_argument): Likewise.
103         * omp-general.h (omp_check_optional_argument): Likewise.
104         * omp-low.c (lower_omp_target): Update calls; handle absent
105         Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
107 2019-11-11  H.J. Lu  <hjl.tools@gmail.com>
109         PR target/87833
110         * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
111         -fPIC and -shared the last to create offload image.
113 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
115         * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
116         of 'offset'.
118         * Makefile.in (LANG_CONFIGUREFRAGS): Define.
119         (config.status): Use/depend on it.
120         * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
121         * configure: Regenerate.
123 2019-11-11  Jiufu Guo  <guojiufu@linux.ibm.com>
125         PR tree-optimization/88760
126         * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
127         * gcc/common/config/rs6000/rs6000-common.c
128         (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
129         Turn on -funroll-loops and -munroll-only-small-loops.
130         [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
131         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
132         set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
133         Turn off -munroll-only-small-loops for explicit -funroll-loops.
134         (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
135         (rs6000_loop_unroll_adjust): Define it.  Use -munroll-only-small-loops.
137 2019-11-11  Kewen Lin  <linkw@gcc.gnu.org>
139         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
140         Make scalar_load, vector_load, unaligned_load and
141         vector_gather_load cost more to conform hardware latency and
142         insn cost settings.
144 2019-11-10  Iain Sandoe  <iain@sandoe.co.uk>
146         * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
147         (MACHO_SYMBOL_LINKER_VIS_P): New.
149 2019-11-10  Kwok Cheung Yeung  <kcy@codesourcery.com>
151         * lra-spills.c (assign_spill_hard_regs): Do not spill into
152         registers in eliminable_regset.
154 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
156         * ipa-inline.c (compute_uninlined_call_time,
157         compute_inlined_call_time): Take edge frequency as
158         parameter rather than computing it by itself.
159         (big_speedup_p, edge_badness): Manually CSE sreal
160         frequency calculations.
162 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
164         * profile-count.c (profile_count::to_sreal_scale): Short circuit
165         case where profiles are same.
167 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
169         * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
171 2019-11-10  Jan Hubicka  <hubicka@ucw.cz>
173         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
174         args summaries of inlined edge unless it holds info about
175         described reference.
177 2019-11-10  Segher Boessenkool  <segher@kernel.crashing.org>
179         * config/rs6000/rs6000.md (CC_any): New mode iterator.
180         (*movcc_internal1): Rename to...
181         (*movcc_<mode> for CC_any): ... this.  Support moves of all CC modes.
183 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
185         * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
186         (cgraph_node::create_virtual_clone): Copy it.
187         * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
188         summaries.
189         (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
190         (ipcp_verify_propagated_values): Do not verify nodes where ipcp
191         is disabled.
192         (propagate_constants_across_call): If callee is not analyzed, give up.
193         (propagate_constants_topo): Lower to bottom latties of all callees of
194         functions with ipa-cp disabled.
195         (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
196         (cgraph_edge_brings_value_p): Check for availability first.
197         (create_specialized_node): Set ipcp_clone.
198         (ipcp_store_bits_results): Check that info is present.
199         * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
200         thunks.
201         (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
202         conservative when callee summary is missing.
203         (remap_edge_summaries): Lookup call summary only when needed.
204         * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
205         * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
206         Use get_create.
207         (ipa_analyze_node): Use get_create.
208         (propagate_controlled_uses): Do not propagate when function is not
209         analyzed.
210         (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
211         (ipa_read_node_info): Use get_create.
212         * ipa-prop.h (IPA_NODE_REF): Use get.
213         (IPA_NODE_REF_GET_CREATE): New.
215 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
217         * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
218         on function symbol.
220 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
222         * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
223         ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
224         (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
225         (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
227 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
229         * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
230         capping the growth cumulated.
231         (offline_size): Break out from ...
232         (estimate_growth): ... here.
233         (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
234         parameters.
235         (growth_likely_positive): Turn to ...
236         (growth_positive_p): Re-implement.
237         * ipa-inline.h (growth_likely_positive): Remove.
238         (growth_positive_p): Declare.
239         * ipa-inline.c (want_inline_small_function_p): Use
240         growth_positive_p.
241         (want_inline_function_to_all_callers_p): Likewise.
243 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
245         * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
246         calculation of min_size.
247         (ipa_update_overall_fn_summary): Likewise.
249 2019-11-09  Jan Hubicka  <hubicka@ucw.cz>
251         * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
252         estimate_edge_devirt_benefit when not computing hints;
253         do not compute time when not asked for.
254         (estimate_calls_size_and_time): Pass NULL hints and time when
255         these are not computed; do not evaluate hint predicates when these are
256         not computed.
257         (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
258         frequency.
260 2019-11-09  Jakub Jelinek  <jakub@redhat.com>
262         PR tree-optimization/92401
263         * gimple-match-head.c (gimple_resimplify1): Call const_unop only
264         if res_op->code is an expression with code length 1.
265         * gimple-match-head.c (gimple_resimplify2): Call const_binop only
266         if res_op->code is an expression with code length 2.
267         * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
268         if res_op->code is an expression with code length 3.
270 2019-11-09  Iain Sandoe  <iain@sandoe.co.uk>
272         * config/darwin.c (machopic_mcount_stub_name): Validate the
273         symbol stub name when it is created.
274         * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
275         stub validation.
277 2019-11-09  Jakub Jelinek  <jakub@redhat.com>
279         * symtab.c: Fix comment typos.
280         * cgraphunit.c: Likewise.
281         * cgraph.h: Likewise.
282         * cgraphclones.c: Likewise.
283         * cgraph.c: Likewise.
284         * varpool.c: Likewise.
285         * tree-ssa-strlen.c: Likewise.
286         * ipa-sra.c: Likewise.
287         (scan_expr_access, check_all_callers_for_issues): Fix typo
288         in a dump message.
290 2019-11-08  Iain Sandoe  <iain@sandoe.co.uk>
292         * config/darwin-protos.h: Add include quard.
294 2019-11-08  Andrew MacLeod  <amacleod@redhat.com>
296         * range-op.h (range_operator::fold_range): Return result in a
297         reference parameter instead of by value.
298         (range_operator::wi_fold): Same.
299         * range-op.cc (range_operator::wi_fold): Return result in a reference
300         parameter instead of by value.
301         (range_operator::fold_range): Same.
302         (value_range_from_overflowed_bounds): Same.
303         (value_range_with_overflow): Same
304         (create_possibly_reversed_range): Same.
305         (operator_equal::fold_range): Same.
306         (operator_not_equal::fold_range): Same.
307         (operator_lt::fold_range): Same.
308         (operator_le::fold_range): Same.
309         (operator_gt::fold_range): Same.
310         (operator_ge::fold_range): Same.
311         (operator_plus::wi_fold): Same.
312         (operator_plus::op1_range): Change call to fold_range.
313         (operator_plus::op2_range): Change call to fold_range.
314         (operator_minus::wi_fold): Return result via reference parameter.
315         (operator_minus::op1_range): Change call to fold_range.
316         (operator_minus::op2_range): Change call to fold_range.
317         (operator_min::wi_fold): Return result via reference parameter.
318         (operator_max::wi_fold): Same.
319         (cross_product_operator::wi_cross_product): Same.
320         (operator_mult::wi_fold): Same.
321         (operator_div::wi_fold): Same.
322         (operator_div op_floor_div): Fix whitespace.
323         (operator_exact_divide::op1_range): Change call to fold_range.
324         (operator_lshift::fold_range): Return result via reference parameter.
325         (operator_lshift::wi_fold): Same.
326         (operator_rshift::fold_range): Same.
327         (operator_rshift::wi_fold): Same.
328         (operator_cast::fold_range): Same.
329         (operator_cast::op1_range): Change calls to fold_range.
330         (operator_logical_and::fold_range): Return result via reference.
331         (wi_optimize_and_or): Adjust call to value_range_with_overflow.
332         (operator_bitwise_and::wi_fold): Return result via reference.
333         (operator_logical_or::fold_range): Same.
334         (operator_bitwise_or::wi_fold): Same.
335         (operator_bitwise_xor::wi_fold): Same.
336         (operator_trunc_mod::wi_fold): Same.
337         (operator_logical_not::fold_range): Same.
338         (operator_bitwise_not::fold_range): Same.
339         (operator_bitwise_not::op1_range): Change call to fold_range.
340         (operator_cst::fold_range): Return result via reference.
341         (operator_identity::fold_range): Same.
342         (operator_abs::wi_fold): Same.
343         (operator_absu::wi_fold): Same.
344         (operator_negate::fold_range): Same.
345         (operator_negate::op1_range): Change call to fold_range.
346         (operator_addr_expr::fold_range): Return result via reference.
347         (operator_addr_expr::op1_range): Change call to fold_range.
348         (operator_pointer_plus::wi_fold): Return result via reference.
349         (operator_pointer_min_max::wi_fold): Same.
350         (operator_pointer_and::wi_fold): Same.
351         (operator_pointer_or::wi_fold): Same.
352         (range_op_handler): Change call to fold_range.
353         (range_cast): Same.
354         * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
355         fold_range.
356         (range_fold_unary_symbolics_p): Same.
357         (range_fold_binary_expr): Same.
358         (range_fold_unary_expr): Same.
360 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
362         * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
363         vector type as an argument rather than reading it from the
364         stmt_vec_info.
365         (vect_create_epilog_for_reduction): Update accordingly.
366         (vectorizable_reduction): Likewise.
367         (vect_transform_cycle_phi): Likewise.
369 2019-11-08  Segher Boessenkool  <segher@kernel.crashing.org>
371         * config/rs6000/predicates.md (branch_comparison_operator): Allow only
372         the comparison codes that make sense for the mode used, and only the
373         codes that can be done with a single branch instruction.
375 2019-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
377         PR tree-optimization/92351
378         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
379         peeling the main loop for alignment, make sure to set the misalignment
380         of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
382 2019-11-08  Richard Biener  <rguenther@suse.de>
384         * dbgcnt.def (ivopts_loop): Add.
385         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
386         ivopts_loop before optimizing a loop.
388 2019-11-08  Richard Biener  <rguenther@suse.de>
390         PR ipa/92409
391         * tree-inline.c (declare_return_variable): Properly handle
392         type mismatches for the return slot.
394 2019-11-08  Eric Botcazou  <ebotcazou@adacore.com>
396         PR target/92095
397         * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
398         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
399         change.
400         (got_helper_needed): New static variable.
401         (output_load_pcrel_sym): New function.
402         (get_pc_thunk_name): Remove after inlining...
403         (load_got_register): ...here.  Rework the initialization of the GOT
404         register and of the GOT helper.
405         (save_local_or_in_reg_p): Test the REGNO of the GOT register.
406         (sparc_file_end): Test got_helper_needed to decide whether the GOT
407         helper must be emitted.  Use output_asm_insn instead of fprintf.
408         (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
409         if optimization is enabled.
410         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
411         by calling output_load_pcrel_sym.
413 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
415         * tree-sra.c (create_access): Delay disqualifying the base
416         for poly_int values until we know we have a base.
418 2019-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
420         * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
421         for loops with SIMDUID set.  Enable epilogue vectorization for loops
422         with SIMDLEN set after finding a main loop with a VF that matches it.
424 2019-11-08  Jakub Jelinek  <jakub@redhat.com>
426         PR target/92038
427         * gimple-ssa-store-merging.c (find_constituent_stores): For return
428         value only, return non-NULL if there is a single non-clobber
429         constituent store even if there are constituent clobbers and return
430         one of clobber constituent stores if all constituent stores are
431         clobbers.
432         (split_group): Handle clobbers.
433         (imm_store_chain_info::output_merged_store): When computing
434         bzero_first, look after all clobbers at the start.  Don't count
435         clobber stmts in orig_num_stmts, except if the first orig store is
436         a clobber covering the whole area and split_stores cover the whole
437         area, consider equal number of stmts ok.  Punt if split_stores
438         contains only ->orig stores and their number plus number of original
439         clobbers is equal to original number of stmts.  For ->orig, look past
440         clobbers in the constituent stores.
441         (imm_store_chain_info::output_merged_stores): Don't remove clobber
442         stmts.
443         (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
444         rhs.
445         (store_valid_for_store_merging_p): Allow clobber stmts.
446         (verify_clear_bit_region_be): Fix up a thinko in function comment.
448         PR c++/92384
449         * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
450         copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
451         slot.
452         (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
453         force creation of a unique data.stack_parm slot.
455 2019-11-08  Richard Biener  <rguenther@suse.de>
457         * genmatch.c (expr::gen_transform): Use the resimplify
458         member function instead of hard-coding the gimple_resimplifyN variant.
459         (dt_simplify::gen_1): Likewise.
461 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
463         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
464         POLY_INT_CST.
466 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
468         * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
469         instead of INTEGER_CST.
471 2019-11-08  Richard Biener  <rguenther@suse.de>
473         PR tree-optimization/92324
474         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
475         STMT_VINFO_REDUC_VECTYPE for all computations, inserting
476         sign-conversions as necessary.
477         (vectorizable_reduction): Reject conversions in the chain
478         that are not sign-conversions, base analysis on a non-converting
479         stmt and its operation sign.  Set STMT_VINFO_REDUC_VECTYPE.
480         * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
481         for debug stmts.
482         * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
483         (STMT_VINFO_REDUC_VECTYPE): Likewise.
485 2019-11-08  Georg-Johann Lay  <avr@gjlay.de>
487         PR target/92055
488         * config/avr/avr.opt (-mdouble=, -mlong-double=):
489         Fix a missing '-' when displaying these options in the
490         help screen.
492 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
494         * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
496 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
498         * config/aarch64/aarch64-builtins.c
499         (aarch64_builtin_vectorized_function): Remove bswap handling.
501 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
503         * tree-core.h (tree_type_common::indivisible_p): New member variable.
504         * tree.h (TYPE_INDIVISIBLE_P): New macro.
505         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
506         Treat the vector types as indivisible.
508 2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>
510         * optabs.def (gather_load_optab, mask_gather_load_optab)
511         (scatter_store_optab, mask_scatter_store_optab): Turn into
512         conversion optabs, with the offset mode given explicitly.
513         * doc/md.texi: Update accordingly.
514         * config/aarch64/aarch64-sve-builtins-base.cc
515         (svld1_gather_impl::expand): Likewise.
516         (svst1_scatter_impl::expand): Likewise.
517         * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
518         (expand_scatter_store_optab_fn): Likewise.
519         (direct_gather_load_optab_supported_p): Likewise.
520         (direct_scatter_store_optab_supported_p): Likewise.
521         (expand_gather_load_optab_fn): Likewise.  Expect the mask argument
522         to be argument 4.
523         (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
524         (internal_gather_scatter_fn_supported_p): Replace the offset sign
525         argument with the offset vector type.  Require the two vector
526         types to have the same number of elements but allow their element
527         sizes to be different.  Treat the optabs as conversion optabs.
528         * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
529         prototype accordingly.
530         * optabs-query.c (supports_at_least_one_mode_p): Replace with...
531         (supports_vec_convert_optab_p): ...this new function.
532         (supports_vec_gather_load_p): Update accordingly.
533         (supports_vec_scatter_store_p): Likewise.
534         * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
535         Replace the offset sign and bits parameters with a scalar type tree.
536         * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
537         Pass back the offset vector type instead of the scalar element type.
538         Allow the offset to be wider than the memory elements.  Search for
539         an offset type that the target supports, stopping once we've
540         reached the maximum of the element size and pointer size.
541         Update call to internal_gather_scatter_fn_supported_p.
542         (vect_check_gather_scatter): Update calls accordingly.
543         When testing a new scale before knowing the final offset type,
544         check whether the scale is supported for any signed or unsigned
545         offset type.  Check whether the target supports the source and
546         target types of a conversion before deciding whether to look
547         through the conversion.  Record the chosen offset_vectype.
548         * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
549         (vect_recog_gather_scatter_pattern): Get the scalar offset type
550         directly from the gs_info's offset_vectype instead.  Pass a zero
551         of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
552         * tree-vect-stmts.c (check_load_store_masking): Update call to
553         internal_gather_scatter_fn_supported_p, passing the offset vector
554         type recorded in the gs_info.
555         (vect_truncate_gather_scatter_offset): Update call to
556         vect_check_gather_scatter, leaving it to search for a valid
557         offset vector type.
558         (vect_use_strided_gather_scatters_p): Convert the offset to the
559         element type of the gs_info's offset_vectype.
560         (vect_get_gather_scatter_ops): Get the offset vector type directly
561         from the gs_info.
562         (vect_get_strided_load_store_ops): Likewise.
563         (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
564         and IFN_MASK_GATHER_LOAD.
565         * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
566         (gather_load<mode><v_int_equiv>): ...this.
567         (mask_gather_load<mode>): Rename to...
568         (mask_gather_load<mode><v_int_equiv>): ...this.
569         (scatter_store<mode>): Rename to...
570         (scatter_store<mode><v_int_equiv>): ...this.
571         (mask_scatter_store<mode>): Rename to...
572         (mask_scatter_store<mode><v_int_equiv>): ...this.
574 2019-11-08  Kewen Lin  <linkw@gcc.gnu.org>
576         PR target/92132
577         * config/rs6000/predicates.md
578         (signed_or_equality_comparison_operator): New predicate.
579         (unsigned_or_equality_comparison_operator): Likewise.
580         * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
581         (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
582         * config/rs6000/vector.md
583         (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
584         (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
585         (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
586         (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
587         vector modes and same-size integer vector modes.
588         (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
589         (vector_lt<mode> for VEC_F): New expand.
590         (vector_le<mode> for VEC_F): Likewise.
591         (vector_ne<mode> for VEC_F): Likewise.
592         (vector_unge<mode> for VEC_F): Likewise.
593         (vector_ungt<mode> for VEC_F): Likewise.
594         (vector_unle<mode> for VEC_F): Likewise.
595         (vector_unlt<mode> for VEC_F): Likewise.
596         (vector_uneq<mode>): Expose name.
597         (vector_ltgt<mode>): Likewise.
598         (vector_unordered<mode>): Likewise.
599         (vector_ordered<mode>): Likewise.
601 2019-11-08  Hongtao Liu  <Hongtao.liu@intel.com>
603         PR target/92295
604         * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
605         Enhance ix86_expand_vector_init_concat.
607 2019-11-08  Joseph Myers  <joseph@codesourcery.com>
609         * doc/invoke.texi (-Wold-style-definition): Document () not being
610         considered an old-style definition for C2x.
612 2019-11-07  John David Anglin  <danglin@gcc.gnu.org>
614         * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
615         Enhance comment.
616         (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
617         insn patterns using ldcw instruction.
618         (memory_barrier): Remove insn pattern using sync instruction.
619         * config/pa/pa.opt (coherent-ldcw): New option.
620         (ordered): New option.
622 2019-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
624         * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
625         valid conditions.
627 2019-11-07  Jakub Jelinek  <jakub@redhat.com>
629         * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
630         typo - mistmatch -> mismatch.
631         * ipa-profile.c (ipa_profile): Likewise.
632         * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
633         - mistmatch -> mismatch.
635 2018-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
637         * simplify-rtx.c (comparison_to_mask): New function.
638         (mask_to_comparison): New function.
639         (simplify_logical_relational_operation): New function.
640         (simplify_binary_operation_1): Call
641         simplify_logical_relational_operation.
643 2019-11-07  Peter Bergner <bergner@linux.ibm.com>
645         PR other/92090
646         * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
647         modes for integer constants.
649 2019-11-07  Jan Hubicka  <jh@suse.cz>
651         PR ipa/92406
652         * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
653         summary.
655 2019-11-07  Jan Hubicka  <jh@suse.cz>
657         * optc-save-gen.awk: Generate cl_target_option_free
658         and cl_optimization_option_free.
659         * opth-en.awk: Declare cl_target_option_free
660         and cl_optimization_option_free.
661         * tree.c (free_node): Use it.
663 2019-11-06  Jan Hubicka  <jh@suse.cz>
665         * lto-streamer-in.c: Include alloc-pool.h.
666         (freeing_string_slot_hasher): Remove.
667         (string_slot_allocator): New object allocator.
668         (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
669         (file_name_obstack): New obstack.
670         (canon_file_name): Allocate in obstack and allocator.
671         (lto_reader_init): Initialize obstack and allocator.
672         (lto_free_file_name_hash): New function.
673         * lto-streamer.h (lto_free_file_name_hash): New.
675 2019-11-07  Feng Xue <fxue@os.amperecomputing.com>
677         PR tree-optimization/89134
678         * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
679         * params.def: Add min-loop-cond-split-prob.
680         * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
681         outside checks on loop into the function.
682         (split_info): New class.
683         (find_vdef_in_loop, get_control_equiv_head_block): New functions.
684         (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
685         (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
686         (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
687         (stmt_semi_invariant_p, branch_removable_p): Likewise.
688         (get_cond_invariant_branch, compute_added_num_insns): Likewise.
689         (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
690         (split_loop_on_cond): Likewise.
691         (tree_ssa_split_loops): Add loop split on conditional statement.
693 2019-11-07  Andreas Krebbel  <krebbel@linux.ibm.com>
695         * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
696         pattern.
698 2019-11-07  Richard Biener  <rguenther@suse.de>
700         PR tree-optimization/92405
701         * tree-vect-loop.c (vectorizable_reduction): Appropriately
702         restrict lane-reducing ops to single stmt chains.
704 2019-11-07  Martin Jambor  <mjambor@suse.cz>
706         PR lto/70929
707         * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
708         * cgraph.h (gimple_check_call_matching_types): Remove
709         * cgraph.c (gimple_check_call_args): Likewise.
710         (gimple_check_call_matching_types): Likewise.
711         (symbol_table::create_edge): Do not call
712         gimple_check_call_matching_types.
713         (cgraph_edge::make_direct): Likewise.
714         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
715         * value-prof.h (check_ic_target): Remove.
716         * value-prof.c (check_ic_target): Remove.
717         (gimple_ic_transform): Do nat call check_ic_target.
718         * auto-profile.c (function_instance::find_icall_target_map): Likewise.
719         (afdo_indirect_call): Likewise.
720         * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
721         gimple_check_call_matching_types.
722         * ipa-inline.c (early_inliner): Likewise.
724 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
726         * config/arm/arm.md (arm_<simd32_op>): New define_expand.
727         (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
728         * config/arm/arm_acle.h (__ssat16, __usat16): Define.
729         * config/arm/arm_acle_builtins.def: Define builtins for the above.
730         * config/arm/iterators.md (USSAT16): New int_iterator.
731         (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
732         (sup): Likewise.
733         * config/arm/predicates.md (ssat16_imm): New predicate.
734         (usat16_imm): Likewise.
735         * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
737 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
739         * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
740         New define_insns.
741         (arm_<simd32_op>): New define_expands.
742         * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
743         __smuad, __smuadx): Define.
744         * config/arm/arm_acle_builtins.def: Define builtins for the above.
745         * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
746         (SIMD32_BINOP_Q): Likewise.
747         (simd32_op): Handle the above.
748         * config/arm/unspecs.md: Define unspecs for the above.
750 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
752         * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
753         * config/arm/arm.md (APSRGE_REGNUM): Define.
754         (arm_<simd32_op>): New define_insn.
755         (arm_sel): Likewise.
756         * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
757         (CALL_USED_REGISTERS): Likewise.
758         (REG_ALLOC_ORDER): Likewise.
759         (FIRST_PSEUDO_REGISTER): Update value.
760         (ARM_GE_BITS_READ): Define.
761         * config/arm/arm.c (arm_conditional_register_usage): Clear
762         APSRGE_REGNUM from operand_reg_set.
763         (arm_ge_bits_access): Define.
764         * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
765         ARM_BUIILTIN_sel.
766         * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
767         * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
768         FAIL if ARM_GE_BITS_READ.
769         (*arm_add<mode>3): New define_insn.
770         (sub<mode>3): Convert to define_expand.  FAIL if ARM_GE_BITS_READ.
771         (*arm_sub<mode>3): New define_insn.
772         * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
773         __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
774         __usub16): Define.
775         * config/arm/arm_acle_builtins.def: Define builtins for the above.
776         * config/arm/iterators.md (SIMD32_GE): New int_iterator.
777         (simd32_op): Handle the above.
778         * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
779         (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
780         UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
781         UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
783 2019-11-07  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
785         * config/arm/arm.md (arm_smlabb_setq): New define_insn.
786         (arm_smlabb): New define_expand.
787         (*maddhisi4tb): Rename to...
788         (maddhisi4tb): ... This.
789         (*maddhisi4tt): Rename to...
790         (maddhisi4tt): ... This.
791         (arm_smlatb_setq): New define_insn.
792         (arm_smlatb): New define_expand.
793         (arm_smlatt_setq): New define_insn.
794         (arm_smlatt): New define_expand.
795         (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
796         (arm_<smlaw_op>): New define_expand.
797         * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
798         __smlawb, __smlawt): Define.
799         * config/arm_acle_builtins.def: Define builtins for the above.
800         * config/arm/iterators.md (SMLAWBT): New int_iterator.
801         (slaw_op): New int_attribute.
802         * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
804 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
806         * config/arm/arm.md (arm_<ss_op>): New define_expand.
807         (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
808         * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
809         * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
810         * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
811         (ss_op): New code_attr.
813 2019-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
815         * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
816         * config/arm/arm.md (APSRQ_REGNUM): Define.
817         (add_setq): New define_subst.
818         (add_clobber_q_name): New define_subst_attr.
819         (add_clobber_q_pred): Likewise.
820         (maddhisi4): Change to define_expand.  Split into mult and add if
821         ARM_Q_BIT_READ.
822         (arm_maddhisi4): New define_insn.
823         (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
824         (*maddhisi4tt): Likewise.
825         (arm_ssat): New define_expand.
826         (arm_usat): Likewise.
827         (arm_get_apsr): New define_insn.
828         (arm_set_apsr): Likewise.
829         (arm_saturation_occurred): New define_expand.
830         (arm_set_saturation): Likewise.
831         (*satsi_<SAT:code>): Rename to...
832         (satsi_<SAT:code><add_clobber_q_name>): ... This.
833         (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
834         * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
835         (CALL_USED_REGISTERS): Mark apsrq.
836         (FIRST_PSEUDO_REGISTER): Update value.
837         (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
838         (machine_function): Add q_bit_access.
839         (ARM_Q_BIT_READ): Define.
840         * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
841         (arm_conditional_register_usage): Clear APSRQ_REGNUM from
842         operand_reg_set.
843         (arm_q_bit_access): Define.
844         * config/arm/arm-builtins.c: Include stringpool.h.
845         (arm_sat_binop_imm_qualifiers,
846         arm_unsigned_sat_binop_unsigned_imm_qualifiers,
847         arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
848         (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
849         UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
850         SET_SAT_QUALIFIERS): Likewise.
851         (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
852         (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
853         Handle 0 argument expander.
854         (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
855         (arm_check_builtin_call): Define.
856         * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
857         arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
858         * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
859         (arm_q_bit_access): Likewise.
860         * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
861         __saturation_occurred, __set_saturation_occurred): Define.
862         * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
863         saturation_occurred, set_saturation_occurred.
864         * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
865         (UNSPEC_APSR_READ): Likewise.
866         (VUNSPEC_APSR_WRITE): Likewise.
867         * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
868         (*arm_ssadd<mode>3): New define_insn.
869         (sssub<mode>3): Convert to define_expand.
870         (*arm_sssub<mode>3): New define_insn.
871         (ssmulsa3): Convert to define_expand.
872         (*arm_ssmulsa3): New define_insn.
873         (usmulusa3): Convert to define_expand.
874         (*arm_usmulusa3): New define_insn.
875         (ssmulha3): FAIL if ARM_Q_BIT_READ.
876         (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
877         * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
879 2019-11-07  Martin Liska  <mliska@suse.cz>
881         PR c++/92354
882         * cgraph.c (delete_function_version): Clear global
883         variable version_info_node if equal to deleted
884         function.
886 2019-11-07  Martin Liska  <mliska@suse.cz>
888         * fold-const.c (operand_compare::operand_equal_p): Add comparison
889         of CONSTRUCTOR_NO_CLEARING.
890         (operand_compare::hash_operand): Likewise.
892 2019-11-07  Georg-Johann Lay  <avr@gjlay.de>
894         Support 64-bit double and 64-bit long double configurations.
896         PR target/92055
897         * config.gcc (tm_defines) [avr]: Set from --with-double=,
898         --with-long-double=.
899         * config/avr/t-multilib: Remove.
900         * config/avr/t-avr: Output of genmultilib.awk is now fully
901         dynamically generated and no more part of the repo.
902         (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
903         Pass them down to...
904         * config/avr/genmultilib.awk: ...here and handle them.
905         * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
906         (-mlong-double=, avr_long_double). New option and var.
907         * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
908         (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
909         Set default as requested by --with-double=
910         (TARGET_HANDLE_OPTION): Define to this...
911         (avr_handle_option): ...new hook worker.
912         * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
913         (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
914         (avr_double_lib): New proto for spec function.
915         (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
916         (DRIVER_SELF_SPECS): Call %:double-lib.
917         * config/avr/avr.c (avr_option_override): Assert
918         sizeof(long double) >= sizeof(double) for the target.
919         * config/avr/avr-c.c (avr_cpu_cpp_builtins)
920         [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
921         [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
922         [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
923         [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
924         New built-in define depending on --with-double=, --with-long-double=.
925         * config/avr/driver-avr.c (avr_double_lib): New spec function.
926         * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
927         * doc/install.texi (Cross-Compiler-Specific Options)
928         <--with-double=, --with-long-double=>: Doc.
930 2019-11-07  Richard Biener  <rguenther@suse.de>
932         * dbgcnt.def (gimple_unroll): New.
933         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
934         gimple_unroll debug counter before applying transform.
935         (try_peel_loop): Likewise.
937 2019-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
939         * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
940         frame pointer in multiple registers.
941         (ira_setup_eliminable_regset): Setup eliminable_regset,
942         ira_no_alloc_regs and regs_ever_live for frame pointer in
943         multiple registers.
945 2019-11-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
947         * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
948         V2DI modes.
950 2019-11-06  Jan Hubicka  <jh@suse.cz>
952         * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
953         allocations.
954         * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
955         Do not silently ignore summary corruptions.
957 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
959         * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
960         the epilogue if there are peeled iterations for it to handle.
962 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
964         * config/arc/arc.c (arc_split_ior): Add asserts.
965         (arc_split_mov_const): Likewise.
966         (arc_check_ior_const): Do not match known short immediate values.
967         * config/arc/arc.md (movsi): Don't split predicated instructions
968         (iorsi): Likewise.
970 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
972         * config/arc/arc.opt (mea): Update help string.
973         * doc/invoke.texi(ARC): Update mea option info.
975 2019-11-06  Claudiu Zissulescu  <claziss@synopsys.com>
977         * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
978         (zero_extendqisi2_ac): Likewise.
979         (zero_extendhisi2_i): Likewise.
980         (extendqihi2_i): Likewise.
981         (extendqisi2_ac): Likewise.
982         (extendhisi2_i): Likewise.
984 2019-11-06  Richard Biener  <rguenther@suse.de>
986         * tree-vect-loop.c (vectorizable_reduction): Remember reduction
987         PHI.  Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
988         Simplify single_defuse_cycle condition.
990 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
992         * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
993         epilogue loop, make sure that the VF is small enough or that
994         the epilogue loop can be fully-masked.
996 2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>
998         * tree-vect-loop.c (vect_analyze_loop): Break out of the main
999         loop when we've finished, rather than returning directly from
1000         the loop.  Use a local variable to track whether we're still
1001         searching for the preferred simdlen.  Make vect_epilogues
1002         record whether the next iteration should try to treat the
1003         loop as an epilogue.
1005 2019-11-06  Vineet Gupta  <vgupta@synopsys.com>
1007         * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
1008         __arc_hard_float__, __ARC_HARD_FLOAT__,
1009         __arc_soft_float__, __ARC_SOFT_FLOAT__
1011 2019-11-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1013         PR tree-optimization/92317
1014         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
1015         update phi's with constant phi arguments.
1017 2019-11-06  Eric Botcazou  <ebotcazou@adacore.com>
1018             Alexandre Oliva  <oliva@adacore.com>
1020         * common.opt (-fcallgraph-info[=]): New option.
1021         * doc/invoke.texi (Developer options): Document it.
1022         * opts.c (common_handle_option): Handle it.
1023         * builtins.c (expand_builtin_alloca): Record allocation if
1024         -fcallgraph-info=da.
1025         * calls.c (expand_call): If -fcallgraph-info, record the call.
1026         (emit_library_call_value_1): Likewise.
1027         * flag-types.h (enum callgraph_info_type): New type.
1028         * explow.c: Include stringpool.h.
1029         (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
1030         * function.c (allocate_stack_usage_info): New.
1031         (allocate_struct_function): Call it for -fcallgraph-info.
1032         (prepare_function_start): Call it otherwise.
1033         (record_final_call, record_dynamic_alloc): New.
1034         * function.h (struct callinfo_callee): New.
1035         (CALLEE_FROM_CGRAPH_P): New.
1036         (struct callinfo_dalloc): New.
1037         (struct stack_usage): Add callees and dallocs.
1038         (record_final_call, record_dynamic_alloc): Declare.
1039         * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
1040         object if -fcallgraph-info=da.
1041         * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
1042         * print-tree.h (print_decl_identifier): Declare.
1043         (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
1044         * print-tree.c: Include print-tree.h.
1045         (print_decl_identifier): New function.
1046         * toplev.c: Include print-tree.h.
1047         (callgraph_info_file): New global variable.
1048         (callgraph_info_external_printed): Likewise.
1049         (output_stack_usage): Rename to...
1050         (output_stack_usage_1): ... this.  Make it static, add cf
1051         parameter.  If -fcallgraph-info=su, print stack usage to cf.
1052         If -fstack-usage, use print_decl_identifier for
1053         pretty-printing.
1054         (INDIRECT_CALL_NAME): New.
1055         (dump_final_node_vcg_start): New.
1056         (dump_final_callee_vcg, dump_final_node_vcg): New.
1057         (output_stack_usage): New.
1058         (lang_dependent_init): Open and start file if
1059         -fcallgraph-info.  Allocated callgraph_info_external_printed.
1060         (finalize): If callgraph_info_file is not null, finish it,
1061         close it, and release callgraph_info_external_printed.
1063 2019-11-06  Gergö Barany  <gergo@codesourcery.com>
1064             Frederik Harwath  <frederik@codesourcery.com>
1065             Thomas Schwinge  <thomas@codesourcery.com>
1067         * omp-low.c (struct omp_context): New fields
1068         local_reduction_clauses, outer_reduction_clauses.
1069         (new_omp_context): Initialize these.
1070         (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
1071         (scan_omp_for): Check reduction clauses for incorrect nesting.
1073 2019-11-06  Jakub Jelinek  <jakub@redhat.com>
1075         PR inline-asm/92352
1076         * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
1077         operands with non-memory constraints.
1079 2019-11-05  Martin Sebor  <msebor@redhat.com>
1081         PR tree-optimization/92373
1082         * tree.c (component_ref_size): Only consider initializers of objects
1083         of matching struct types.
1084         Return null for instances of interior zero-length arrays.
1086 2019-11-05  Segher Boessenkool  <segher@kernel.crashing.org>
1088         * doc/md.texi (Insn Splitting): Fix combiner documentation.
1090 2019-11-05  Jason Merrill  <jason@redhat.com>
1092         PR tree-optimization/91825
1093         * expmed.c: Reduce -Wmaybe-uninitialized to warning.
1095 2019-11-05  Jim Wilson  <jimw@sifive.com>
1097         PR middle-end/92263
1098         * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
1099         optimize_insn_for_speed_p is true.
1101 2019-11-05  Martin Sebor  <msebor@redhat.com>
1103         PR middle-end/92333
1104         PR middle-end/82608
1105         * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
1106         size.
1107         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
1108         name and location for a temporary variable.
1110 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
1112         * tree-vrp.c (value_range::value_range): Fix whitespace.
1113         (defined_ranges_p): Same.
1114         (range_fold_binary_symbolics_p): Same.
1115         (value_range::intersect_helper): Same.
1116         (value_range::union_helper): Same.
1117         * tree-vrp.h (range_fold_binary_expr): Same.
1119 2019-11-04  Martin Sebor  <msebor@redhat.com>
1121         PR middle-end/92341
1122         PR middle-end/82612
1123         * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
1124         * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
1125         of message printed in a warning for empty arrays.
1126         (vrp_prop::check_mem_ref): Also handle function parameters and
1127         empty arrays.
1129 2019-11-05  Richard Biener  <rguenther@suse.de>
1131         PR tree-optimization/92371
1132         * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
1133         on the original stmt of live stmts in the chain.
1134         (vectorizable_live_operation): Look at the original stmt when
1135         checking STMT_VINFO_REDUC_DEF.
1137 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
1139         * gimple-fold.c, gimple-loop-versioning.cc,
1140         gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
1141         gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
1142         range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
1143         tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
1144         tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
1145         value_range_equiv, and value_range_base to value_range.
1147 2019-11-05  Matthew Malcomson  <matthew.malcomson@arm.com>
1149         * expr.c (build_personality_function): Fix generated type to
1150         match actual personality functions.
1152 2019-11-05  Matthew Malcomson  <matthew.malcomson@arm.com>
1154         * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
1155         enough bytes for the NULL character.
1157 2019-11-05  Richard Biener  <rguenther@suse.de>
1159         PR tree-optimization/92280
1160         * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
1161         had a single use do not create a new CTOR.
1162         * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
1163         BIT_FIELD_REF of a CTOR via GENERIC.
1165 2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
1167         * config/s390/s390.c (s390_vector_alignment): Check if the value
1168         fits into uhwi before using it.
1170 2019-11-05  Martin Liska  <mliska@suse.cz>
1172         * symbol-summary.h: Use ggc_delete.
1174 2019-11-05  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
1176         * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
1177         Change vec_perm field to 10.
1179 2019-11-05  Arnaud Charlet  <charlet@adacore.com>
1181         * doc/install.texi: Further fix syntax for html generation.
1183 2019-11-05  Martin Liska  <mliska@suse.cz>
1185         * symbol-summary.h: Rename allocator to m_allocator and
1186         add comment.
1188 2019-11-05  Richard Biener  <rguenther@suse.de>
1190         PR tree-optimization/92324
1191         * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
1192         all signed or unsigned operations.
1194 2019-11-05  Jan Hubicka  <jh@suse.cz>
1196         * hsa-brig.c: Include alloc-pool.h
1197         * hsa-dump.c: Likewise.
1198         * hsa-gen.c: Likewise.
1199         * hse-regalloc.c: Likewise.
1200         * ipa-hsa.c: Likewise.
1201         * ipa-predicate.c: Likewise.
1202         * ipa-reference.c: Likewise.
1203         * ipa-sra.c: Likewise.
1204         * omp-expand.c: Likewise.
1205         * omp-general.c: Likewise.
1206         * omp-low.c: Likewise.
1207         * sumbol-summary.h (function_summary_base): Add allocator.
1208         (function_summary<T *>::function_summary): Update construction.
1209         (fast_function_summary<T *, V>::fast_function_summary): Likewise.
1210         (call_summary_base): Add allcator.
1211         (call_summary<T *>::call_summary): Update construction.
1212         (fast_call_summary<T *, V>::fast_call_summary): Likewise.
1214 2019-11-05  Jakub Jelinek  <jakub@redhat.com>
1216         PR tree-optimization/91945
1217         * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
1218         by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
1219         Formatting fix.
1221 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
1223         * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
1224         * range-op.h (wi_set_zero_nonzero_bits): New prototype.
1225         * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
1226         * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
1227         (vrp_set_zero_nonzero_bits): Move to...
1228         * vr-values.c (vr_set_zero_nonzero_bits): ...here.
1229         (vr_values::simplify_bit_ops_using_ranges): Rename
1230         vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
1232 2019-11-05  Martin Liska  <mliska@suse.cz>
1234         PR c++/92339
1235         * fold-const.c (operand_compare::hash_operand): Remove
1236         FIELD_DECL handling.
1238 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
1240         * tree-vrp.h (vrp_bitmap_equal_p): Remove.
1241         * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
1242         static.
1244 2019-11-05  Aldy Hernandez  <aldyh@redhat.com>
1246         * tree-vrp.c (value_range_base::operator==): Use equal_p to
1247         properly handle symbolics.
1248         (range_compatible_p): Remove.
1250 2019-11-04  Kamlesh Kumar  <kamleshbhalui@gmail.com>
1252         * common.opt (-fabi-version): Document =14.
1253         * doc/invoke.texi (C++ Dialect Options): Likewise.
1255 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
1257         * tree-vrp.c (value_range_base::set): Do not special case pointers.
1259 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
1261         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
1262         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
1263         gcn_omp_device_kind_arch_isa.
1264         * config/gcn/t-omp-device: New file.
1265         * configure.ac: Support gcn for omp_device_property.
1266         * configure: Regenerate.
1268 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
1270         * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
1271         (vrp_val_max): Same.
1272         (vrp_val_is_min): Same.
1273         (vrp_val_is_max): Same.
1274         (value_range_base::nonzero_p): Remove last argument to
1275         vrp_val_is_max.
1276         * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
1277         (vrp_val_max): Same.
1278         (vrp_val_is_min): Same.
1279         (vrp_val_is_max): Same.
1280         (value_range_base::set_varying): Remove last argument to vrp_val*.
1281         (value_range_base::dump): Same.
1282         (value_range_base::set): Same.
1283         (value_range_base::normalize_symbolics): Same.
1284         (value_range_base::num_pairs): Same.
1285         (value_range_base::lower_bound): Same.
1286         (value_range_base::upper_bound): Same.
1287         (ranges_from_anti_range): Remove handle_pointers argument.
1288         (value_range_base::singleton_p): Remove last argument to
1289         ranges_from_anti_range.
1291 2019-11-04  Jan Hubicka  <jh@suse.cz>
1293         * ipa-reference.c (init_function_info): Initialize
1294         info->global.statics_read.
1296 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
1298         * tree-vrp.c (value_range_base::invert): Use constructors to build
1299         range.
1301 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
1303         * tree-vrp.c (range_int_cst_singleton_p): Remove.
1304         * tree-vrp.h (range_int_cst_singleton_p): Remove.
1306 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
1308         * tree-vrp.c (value_range_base::normalize_addresses): Handle
1309         VR_UNDEFINED.
1311 2019-11-04  Aldy Hernandez  <aldyh@redhat.com>
1313         * tree-vrp.c (dump_assert_info): New.
1314         (dump_asserts_info): New.
1316 2019-11-04  Jan Hubicka  <jh@suse.cz>
1318         * ipa-inline-transform.c: Include ipa-utils.h
1319         (inline_call): Set thunk_expansion flag.
1320         * ipa-utils.h (thunk_expansion): Declare.
1321         * ipa-devirt.c (thunk_expansion): New global var.
1322         (devirt_node_removal_hook): Do not invalidate cache while
1323         doing thunk expansion.
1325 2019-11-04  Tamar Christina  <tamar.christina@arm.com>
1327         * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
1329 2019-11-04  Martin Sebor  <msebor@redhat.com>
1331         PR tree-optimization/92349
1332         * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
1333         memebers have constant sizes.
1335 2019-11-04  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1337         * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
1338         parameter.
1339         * tree-vectorizer.h (vect_analyze_loop): Update declaration.
1340         * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
1341         vect_analyze_loop.
1343 2019-11-04  Joel Hutton  <Joel.Hutton@arm.com>
1345         * expr.c (store_constructor): Modify to handle single element vectors.
1346         * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
1347         constructors.
1348         (vect_slp_check_for_constructors): New function.
1349         (vect_slp_analyze_bb_1): Call new function to check for vector
1350         constructors.
1351         (vectorize_slp_instance_root_stmt): New function.
1352         (vect_schedule_slp): Call new function to vectorize root stmt of vector
1353         constructors.
1354         * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
1356 2019-11-04  Richard Biener  <rguenther@suse.de>
1358         PR tree-optimization/92345
1359         * tree-vect-loop.c (vect_is_simple_reduction): Return whether
1360         we produced a reduction chain.
1361         (vect_analyze_scalar_cycles_1): Do not add reduction chains to
1362         LOOP_VINFO_REDUCTIONS.
1364 2019-11-04  Jan Hubicka  <jh@suse.cz>
1366         * cgraphclones.c (cgraph_node::create_version_clone): Do not
1367         duplicate summaries.
1368         * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
1369         first.
1370         (ipa_fn_summary_t::duplicate): Use get instead of get_create to
1371         access call summaries.
1372         (dump_ipa_call_summary): Be ready for missing edge summaries.
1373         (analyze_function_body): Use get instead of get_create to access
1374         edge summary.
1375         (estimate_calls_size_and_time): Do not access summaries of
1376         inlined edges; sanity check they are missing.
1377         (ipa_call_context::estimate_size_and_time): Use get instead
1378         of get_create to access node summary.
1379         (inline_update_callee_summaries): Do not update depth of
1380         inlined edge.
1381         (ipa_merge_fn_summary_after_inlining): Remove inline edge from
1382         growth caches.
1383         (ipa_merge_fn_summary_after_inlining): Use get instead
1384         of get_create.
1385         * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
1386         * ipa-inline-analyssi.c (edge_growth_cache): Turn to
1387         fast summary.
1388         (initialize_growth_caches): Update.
1389         (do_estimate_edge_time): Remove redundant copy of context.
1390         (ipa_remove_from_growth_caches): New function.
1391         * ipa-inline.c (flatten_function): Update overall summary
1392         only when optimizing.
1393         (inline_to_all_callers): Update overall summary of function
1394         inlined to.
1395         * ipa-inline.h (edge_growth_cache): Turn to fast summary.
1396         * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
1397         to false.
1399 2019-11-04  Richard Biener  <rguenther@suse.de>
1401         * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
1402         * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
1404 2019-11-04  David Edelsohn  <dje.gcc@gmail.com>
1406         * ggc-common.c: Include system.h before malloc.h.
1408 2019-11-04  Alexandre Oliva <oliva@adacore.com>
1410         * configure.ac: Pass --enable-obsolete=* and
1411         --enable-option-checking=* down to build configure, and fail
1412         if it fails.  AC_SUBST HAVE_AUTO_BUILD.
1413         * configure: Rebuild.
1414         * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
1415         [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
1417 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1419         * config.in: Regenerate.
1420         * config/msp430/msp430.c (msp430_option_override): Emit an error if
1421         -mtiny-printf is used without GCC being configured with
1422         --enable-newlib-nano-formatted-io.
1423         * config/msp430/msp430.h (LINK_SPEC): Pass 
1424         "--wrap puts --wrap printf" when -mtiny-printf is used.
1425         * config/msp430/msp430.opt: Document -mtiny-printf.
1426         * configure: Regenerate.
1427         * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
1428         Define HAVE_NEWLIB_NANO_FORMATTED_IO if
1429         --enable-newlib-nano-formatted-io is passed.
1430         * doc/invoke.texi: Document -mtiny-printf.
1432 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1434         * configure: Regenerate.
1436 2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1438         * config/msp430/driver-msp430.c
1439         (msp430_get_linker_devices_include_path): New spec function.
1440         * config/msp430/msp430-devices.c (msp430_dirname): New function.
1441         (extract_devices_dir_from_exec_prefix): New function.
1442         (extract_devices_dir_from_collect_gcc): New function.
1443         (msp430_check_env_var_for_devices): New function.
1444         (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
1445         (parse_devices_csv): Call msp430_check_env_var_for_devices if
1446         devices.csv was not found using other methods.
1447         * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
1448         New prototype.
1449         (msp430_dirname): Likewise.
1450         * config/msp430/msp430.c (msp430_register_pre_includes): New function.
1451         * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
1452         msp430_get_linker_devices_include_path.
1453         (TARGET_EXTRA_PRE_INCLUDES): Define.
1454         * doc/invoke.texi: Document new ways of searching for support files.
1456 2019-11-04  Richard Biener  <rguenther@suse.de>
1458         PR tree-optimization/92301
1459         * tree-vect-stmts.c (process_use): Force reduction PHI defs live
1460         as required by epilogue generation
1462 2019-11-04  Martin Liska  <mliska@suse.cz>
1464         PR ipa/92304
1465         * fold-const.c (operand_compare::hash_operand): Fix field
1466         hashing of CONSTRUCTOR.
1468 2019-11-04  Martin Liska  <mliska@suse.cz>
1470         * ggc.h (ggc_delete): New function.
1471         * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
1472         * ipa-prop.c (ipa_free_all_edge_args): Likewise.
1473         (ipa_free_all_node_params): Likewise.
1474         * ipa-sra.c (ipa_sra_analysis): Likewise.
1476 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
1478         * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
1479         set_switch_stmt_execution_predicate, compute_bb_predicates,
1480         will_be_nonconstant_expr_predicate,
1481         phi_result_unknown_predicate,
1482         analyze_function_body): Pass arround params summary.
1483         (ipa_call_context::duplicate_from): New comment;
1484         only duplicate useful values.
1485         (ipa_call_context::equal_to): Only compare useful values.
1486         (remap_edge_summaries): Pass params_summary.
1487         (remap_hint_predicate): Likewise.
1488         (ipa_merge_fn_summary_after_inlining): Likewise.
1489         (inline_read_section): Initialize params summary used flags.
1490         * ipa-predicate.c (predicate::remap_after_inlining): Pass
1491         around param_summary.
1492         (add_condition): Initialized used params summary flags.
1493         * ipa-predicate.h (inline_param_summary::equals_to): Make const.
1494         (inline_param_summary::useless_p): New predicate.
1495         (remap_after_inlining, add_condition): Update prototype
1496         * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
1497         move_cost.
1498         (ipa_note_param_call): Add parameter POLYMORPHIC; update params
1499         summaries.
1500         (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
1501         (ipa_analyze_virtual_call_uses): Likewise.
1502         (update_indirect_edges_after_inlining): Update param summaries.
1503         (ipa_print_node_params): Print used flags.
1504         (ipa_read_indirect_edge_info): Update param summareis.
1505         * ipa-prop.h (ipa_param_descriptor): Add
1506         used_by_ipa_predicates, used_by_indirect_call
1507         and used_by_polymorphic_call.
1508         (ipa_set_param_used_by_ipa_predicates,
1509         ipa_set_param_used_by_indirect_call,
1510         ipa_set_param_used_by_polymorphic_call,
1511         ipa_is_param_used_by_ipa_predicates,
1512         ipa_is_param_used_by_indirect_call,
1513         ipa_is_param_used_by_polymorphic_call): New inline functions.
1515 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
1517         * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
1518         member function.
1519         (ipa_call_context::release): Add ALL parameter.
1520         (ipa_call_context::equal_to): New member function.
1521         * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
1522         duplicate_form, release, equal_to and exists_p member functoins.
1523         * ipa-inline-analysis.c (node_context_cache_entry): New
1524         class.
1525         (node_context_summary): Likewise.
1526         (node_context_cache, node_context_cache_hit, node_context_cache_miss,
1527         node_context_clear): New static vars.
1528         (initialize_growth_caches): New function.
1529         (free_growth_caches): Also delete node_context_cache; output stats.
1530         (do_estimate_edge_time): Cache contexts.
1531         (reset_node_cache): New function.
1532         * ipa-inline.c (reset_edge_caches): Reset also node cache.
1533         (inline_small_functions): Initialize growth caches.
1534         * ipa-inline.h (reset_node_cache, initialize_growth_caches):
1535         Declare.
1536         * ipa-predicate.h (inline_param_summary::equal_to): New.
1537         * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
1538         * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
1539         (ipa_agg_jump_function): Implement equal_to member function.
1541 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
1543         * ipa-fnsummary.c (inline_read_section): Set vector size
1544         ahead of time.
1546 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
1548         * ipa-fnsummary.c (ipa_call_context): New constructor.
1549         (estimate_node_size_and_time): Turn to ...
1550         (ipa_call_context::estimate_size_and_time): ... this one.
1551         (ipa_call_context::release): New.
1552         * ipa-fnsummary.h (ipa_call_context): New class.
1553         (estimate_node_size_and_time): Remove.
1554         * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
1555         do_estimate_edge_hints): Update.
1557 2019-11-02  Jan Hubicka  <hubicka@ucw.cz>
1559         * config.in: Regenerate.
1560         * configure: Regenerate.
1561         * configure.ac: Check for mallinfo.
1562         * ggc-common.c: Include malloc.h if available;
1563         include options.h
1564         (report_heap_memory_use): New functoin.
1565         * ggc-page.c (ggc_grow): Do not print "start".
1566         * ggc.h (report_heap_memory_use): Declare.
1567         * pases.c (execute_one_pass): Report memory after IPA passes.
1568         (ipa_read_summaries_1): Likewise.
1569         (ipa_read_optimization_summaries_1): Likewise.
1571 2019-11-02  Jakub Jelinek  <jakub@redhat.com>
1573         * gimplify.h (omp_construct_selector_matches): Change return
1574         type to int, add a new SCORES argument.
1575         * gimplify.c (omp_construct_selector_matches): Likewise.  If
1576         SCORES is non-NULL, compute scores of each construct.
1577         * omp-general.h (omp_get_context_selector): Declare.
1578         * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
1579         Adjust omp_construct_selector_matches callers.
1580         (omp_get_context_selector): New function, moved from c-family/c-omp.c.
1581         (omp_context_compute_score): New function.
1582         (omp_resolve_declare_variant): Compute scores and decide based on
1583         that.
1585         PR bootstrap/92314
1586         * configure.ac: Don't look for omp-device-properties files from
1587         installed offloading compilers.  Instead add tmake_file snippets
1588         for configured offloading targets and use files they generate.
1589         * Makefile.in (install): Don't depend on
1590         install-omp-device-properties.
1591         (install-omp-device-properties): Remove goal.
1592         * config/i386/t-omp-device: New file.
1593         * config/i386/t-intelmic (omp-device-properties): Remove goal.
1594         * config/nvptx/t-omp-device: New file.
1595         * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
1596         * configure: Regenerated.
1598         * omp-general.h (omp_context_selector_set_compare): Declare.
1599         * omp-general.c (omp_construct_simd_compare,
1600         omp_context_selector_props_compare, omp_context_selector_set_compare,
1601         omp_context_selector_compare): New functions.
1602         (omp_resolve_declare_variant): Prune variants that are strict subset
1603         of another variant.
1605 2019-11-01  Martin Sebor  <msebor@redhat.com>
1607         PR middle-end/91679
1608         PR middle-end/91647
1609         PR middle-end/91463
1610         PR middle-end/92312
1611         * doc/invoke.texi (-Wzero-length-bounds): Document.
1612         * gimple-match-head.c (try_conditional_simplification): Use memcpy
1613         instead of a hand-rolled loop to avoid PR 92323.
1614         * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
1615         with initializers.
1616         (vrp_prop::check_mem_ref): Handle declared struct objects.
1617         * tree.c (last_field): New function.
1618         (array_at_struct_end_p): Handle MEM_REF.
1619         (get_initializer_for): New helper.
1620         (component_ref_size): Add argument.  Rename locals.  Call
1621         get_initializer_for instead of fold_ctor_reference.  Correct handling
1622         of flexible array members.
1623         * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
1625 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
1627         * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
1628         * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
1629         UNSPEC_VSX_CVSPUXDS): Remove.
1630         (vsx_xvcvspdp): New define_expand, old define_insn split to...
1631         (vsx_xvcvspdp_be): ... this.  New.  And...
1632         (vsx_xvcvspdp_le): ... this.  New.
1633         (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
1634         (vsx_xvcv<su>xwdp_be): ... this.  New.  And...
1635         (vsx_xvcv<su>xwdp_le): ... this.  New.
1636         (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
1637         (vsx_xvcvsp<su>xds_be): ... this.  New.  And...
1638         (vsx_xvcvsp<su>xds_le): ... this.  New.
1640 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
1642         * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
1643         UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
1644         UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
1645         UNSPEC_VSX_XVCVSPSXWS): Remove.
1646         (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
1647         vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
1649 2019-11-01  Kewen Lin  <linkw@gcc.gnu.org>
1651         * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
1652         (UNSPEC_VSX_XVCDPSP): Remove.
1653         * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
1654         Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
1656 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
1658         * hooks.c (hook_tree_tree_bool_null): New.
1659         * hooks.h (hook_tree_tree_bool_null): Declare.
1660         * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
1661         (LANG_HOOKS_DECLS): Add it.
1662         * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
1663         * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
1664         (lower_omp_target): Handle Fortran array with descriptor in
1665         OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
1667 2019-10-31  Richard Sandiford  <richard.sandiford@arm.com>
1669         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
1670         Assert that the type we store in abi_vector_types is its own
1671         main variant.
1672         (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
1674 2019-10-31  Richard Earnshaw  <rearnsha@arm.com>
1676         * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
1677         from a CONST_INT address when TARGET_THUMB2.
1679 2019-10-31  Richard Earnshaw  <rearnsha@arm.com>
1681         * config/arm/arm.md (add_not_cin): New insn.
1682         (add_not_shift_cin): Likewise.
1684 2019-10-31  Martin Liska  <mliska@suse.cz>
1686         * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
1687         * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
1688         and compare_memory_operand.
1690 2019-10-31  Jakub Jelinek  <jakub@redhat.com>
1692         * configure.ac: Compute and substitute omp_device_properties and
1693         omp_device_property_deps.
1694         * Makefile.in (generated_files): Add omp-device-properties.h.
1695         (omp-general.o): Depend on omp-device-properties.h.
1696         (omp_device_properties): New make variable.
1697         (omp-device-properties.h, s-omp-device-properties-h,
1698         install-omp-device-properties): New goals.
1699         (install): Depend on install-omp-device-properties for accelerators.
1700         * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
1701         * target.h (enum omp_device_kind_arch_isa): New enum.
1702         * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
1703         documentation.
1704         * omp-general.c: Include omp-device-properties.h.
1705         (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
1706         colon instead of comma.
1707         (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
1708         functions.
1709         (omp_context_selector_matches): Implement device set arch/isa
1710         selectors, improve device set kind selector handling.
1711         * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
1712         * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
1713         TARGET_SIMD_CLONE_USABLE): Formatting fix.
1714         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
1715         ix86_omp_device_kind_arch_isa.
1716         * config/i386/i386-options.c (struct ix86_target_opts): Move type
1717         definition from ix86_target_string to file scope.
1718         (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
1719         to file scope.
1720         (ix86_omp_device_kind_arch_isa): New function.
1721         (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
1722         isa_opts definitions to file scope.
1723         * config/i386/t-intelmic (omp-device-properties): New goal.
1724         * config/nvptx/t-nvptx (omp-device-properties): Likewise.
1725         * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
1726         (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
1727         nvptx_omp_device_kind_arch_isa.
1728         * configure: Regenerate.
1729         * doc/tm.texi: Regenerate.
1731         PR middle-end/92231
1732         * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
1733         DECL_BUILT_IN in comment.  Remove redundant ()s around return
1734         argument.
1735         * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
1736         before calling fndecl_built_in_p.
1737         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
1738         TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
1739         fndecl_built_in_p on it.
1741 2019-10-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1743         * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
1745 2019-10-31  Martin Liska  <mliska@suse.cz>
1747         * config/arm/arm.c (arm_get_pcs_model): Remove usage
1748         of cgraph_local_info and use local_info_node instead.
1749         * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
1750         (bfin_function_ok_for_sibcall): Likewise.
1751         * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
1752         (must_reload_pic_reg_p): Likewise.
1754 2019-10-31  Jakub Jelinek  <jakub@redhat.com>
1756         PR c++/90947
1757         * tree.h (type_initializer_zero_p): Remove.
1758         * tree.c (type_initializer_zero_p): Remove.
1760 2019-10-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1762         * doc/invoke.texi (-Wshadow, -Wshadow=global
1763         -Wshadow=local, -Wshadow=compatible-local): Update documentation.
1765 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
1767         * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
1768         GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
1769         and 'target exit data'.
1771 2019-10-30  Martin Jambor  <mjambor@suse.cz>
1773         ipa/92278
1774         * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
1775         availability comparison.
1777 2019-10-30  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1779         * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
1780         calls to __mspabi_mpy* functions.
1781         * config/msp430/msp430.md (mulhisi3): New define_expand.
1782         (umulhisi3): New define_expand.
1783         (*mulhisi3_inline): Use old mulhisi3 define_insn.
1784         (*umulhisi3_inline): Use old umulhisi3 define_insn.
1786 2019-10-30  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1788         * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
1789         (msp430_check_plus_not_high_mem): New.
1790         (msp430_op_not_in_high_mem): Use new functions to check if the operand
1791         might be in low memory.
1792         Indicate that a 16-bit absolute address is in lower memory.
1794 2019-10-30  Martin Jambor  <mjambor@suse.cz>
1796         * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
1797         ultimate_alias_target.
1799 2019-10-30  Richard Biener  <rguenther@suse.de>
1801         PR tree-optimization/92275
1802         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
1803         Copy all loop-closed PHIs.
1805 2019-10-30  Martin Liska  <mliska@suse.cz>
1807         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
1808         const_tree as function argument.
1809         (func_checker::compare_decl): Likewise.
1810         (func_checker::operand_equal_p): Likewise.
1811         (func_checker::compare_variable_decl): Likewise.
1812         (func_checker::parse_labels): Likewise.
1813         * ipa-icf-gimple.h: Likewise.
1815 2019-10-30  Martin Liska  <mliska@suse.cz>
1817         * ipa-icf-gimple.c (func_checker::compatible_types_p):
1818         Do not compare alias sets.  It's handled by operand_equal_p.
1820 2019-10-30  Martin Liska  <mliska@suse.cz>
1822         * ipa-icf-gimple.c (func_checker::func_checker): Do not
1823         initialize m_compare_polymorphic.
1824         (func_checker::compare_decl): Do not compare polymorphic types.
1825         * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
1826         * ipa-icf.c (sem_function::equals_private): Do not call
1827         compare_polymorphic_p.
1829 2019-10-30  Martin Liska  <mliska@suse.cz>
1831         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
1832         compare_operand.
1833         (func_checker::compare_memory_operand): Remove.
1834         (func_checker::compare_cst_or_decl): Remove.
1835         (func_checker::operand_equal_valueize): Do not handle
1836         FIELD_DECL.
1837         (func_checker::compare_gimple_call): Call compare_operand.
1838         (func_checker::compare_gimple_assign): Likewise.
1839         * ipa-icf-gimple.h: Remove compare_cst_or_decl.
1840         * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
1841         * ipa-icf.h (icf_handled_component_p): Remove.
1843 2019-10-30  Martin Liska  <mliska@suse.cz>
1845         * ipa-icf-gimple.c (func_checker::hash_operand): New.
1846         (func_checker::compare_cst_or_decl): Remove handling
1847         of FIELD_DECL.
1848         (func_checker::compare_operand): Transform to ...
1849         (func_checker::operand_equal_p): ... this.
1850         * ipa-icf-gimple.h (class func_checker): Add
1851         operand_equal_p and hash_operand.
1852         * ipa-icf.c (sem_function::equals_private): Fix
1853         pushing and popping of cfun.
1855 2019-10-30  Martin Liska  <mliska@suse.cz>
1857         * fold-const.c (operand_equal_p): Move to ...
1858         (operand_compare::operand_equal_p): ... here.
1859         (operand_compare::verify_hash_value): New.
1860         (add_expr): Move to ...
1861         (operand_compare::hash_operand): ... here.
1862         * fold-const.h (operand_equal_p): Move to the class.
1863         (class operand_compare): New.
1864         * tree.c (add_expr): Remove.
1866 2019-10-30  Martin Liska  <mliska@suse.cz>
1868         * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
1869         * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
1871 2019-10-30  Martin Liska  <mliska@suse.cz>
1873         PR lto/91393
1874         PR lto/88220
1875         * cgraph.c (cgraph_node::get_create): Overwrite node->order
1876         from a first_clone in order to get proper LTO section
1877         in LTO stream.
1878         (cgraph_node::get_untransformed_body):
1879         Use lto_get_section_data where symtab_node::order
1880         must be provided.
1881         * cgraphclones.c (cgraph_node::find_replacement):
1882         Update also symbol order.
1883         * ipa-fnsummary.c (ipa_fn_summary_read):
1884         Use new function lto_get_summary_section_data.
1885         * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
1886         * ipa-icf.c (sem_item_optimizer::read_summary):
1887         Likewise.
1888         * ipa-prop.c (ipa_prop_read_jump_functions):
1889         Likewise.
1890         (ipcp_read_transformation_summaries): Likewise.
1891         * ipa-sra.c (ipa_sra_read_summary): Likewise.
1892         * lto-cgraph.c (input_node): Add also order_base.
1893         (input_varpool_node): Likewise.
1894         (input_cgraph_1): Assign the order_base.
1895         (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
1896         * lto-opts.c (lto_write_options): Pass new argument.
1897         * lto-section-in.c (lto_get_section_data): Add new argumente order.
1898         (lto_get_summary_section_data): New.
1899         (lto_get_raw_section_data): Add order argument.
1900         (lto_create_simple_input_block): Likewise.
1901         * lto-section-out.c (lto_destroy_simple_output_block):
1902         Likewise.
1903         * lto-streamer-in.c (lto_input_toplevel_asms):
1904         Use lto_get_summary_section_data.
1905         (lto_input_mode_table): Likewise.
1906         * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
1907         (lto_output_toplevel_asms): Pass new argument.
1908         (copy_function_or_variable): Likewise.
1909         (produce_lto_section):Likewise.
1910         (produce_symtab): Likewise.
1911         (lto_write_mode_table): Likewise.
1912         (produce_asm_for_decls): Likewise.
1913         * lto-streamer.c (lto_get_section_name): Concat symbol name
1914         and symbol order.
1915         * lto-streamer.h (lto_get_section_data): Add order argument.
1916         (lto_get_summary_section_data): New.
1917         (lto_get_raw_section_data): Add order argument.
1918         (lto_get_section_name): Likewise.
1919         * varpool.c (varpool_node::get_constructor): Pass order argument.
1921 2019-10-30  Jakub Jelinek  <jakub@redhat.com>
1923         PR tree-optimization/92262
1924         * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
1925         ubase or cbase here.
1926         (remove_unused_ivs): Unshare comp before using it.
1928 2019-10-30  Jan Hubicka  <hubicka@ucw.cz>
1930         * ipa-prop.c (update_jump_functions_after_inlining):
1931         Watch for missing summaries.
1933 2019-10-30  Richard Biener  <rguenther@suse.de>
1935         PR tree-optimization/65930
1936         * tree-vect-loop.c (vect_is_simple_reduction): For reduction
1937         chains also allow a leading and trailing conversion.
1938         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
1939         intermediate reduction chains.
1940         (vect_analyze_slp_instance): Likewise.  Build a SLP
1941         node for a trailing conversion manually.
1943 2019-10-30  Martin Liska  <mliska@suse.cz>
1945         * cgraph.c (cgraph_node::local_info): Transform to ...
1946         (cgraph_node::local_info_node): ... this.
1947         (cgraph_node::dump): Remove cgraph_local_info and
1948         put its fields directly into cgraph_node.
1949         (cgraph_node::get_availability): Likewise.
1950         (cgraph_node::make_local): Likewise.
1951         (cgraph_node::verify_node): Likewise.
1952         * cgraph.h (struct GTY): Likewise.
1953         * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
1954         (duplicate_thunk_for_node): Likewise.
1955         (cgraph_node::create_clone): Likewise.
1956         (cgraph_node::create_virtual_clone): Likewise.
1957         (cgraph_node::create_version_clone): Likewise.
1958         * cgraphunit.c (cgraph_node::reset): Likewise.
1959         (cgraph_node::finalize_function): Likewise.
1960         (cgraph_node::add_new_function): Likewise.
1961         (analyze_functions): Likewise.
1962         * combine.c (setup_incoming_promotions): Likewise.
1963         * config/i386/i386.c (ix86_function_regparm): Likewise.
1964         (ix86_function_sseregparm): Likewise.
1965         (init_cumulative_args): Likewise.
1966         * ipa-cp.c (determine_versionability): Likewise.
1967         (count_callers): Likewise.
1968         (set_single_call_flag): Likewise.
1969         (initialize_node_lattices): Likewise.
1970         (estimate_local_effects): Likewise.
1971         (create_specialized_node): Likewise.
1972         (identify_dead_nodes): Likewise.
1973         * ipa-fnsummary.c (compute_fn_summary): Likewise.
1974         (ipa_fn_summary_generate): Likewise.
1975         * ipa-hsa.c (check_warn_node_versionable): Likewise.
1976         (process_hsa_functions): Likewise.
1977         * ipa-icf.c (set_local): Likewise.
1978         * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
1979         * ipa-inline.c (speculation_useful_p): Likewise.
1980         * ipa-profile.c (ipa_propagate_frequency): Likewise.
1981         (ipa_profile): Likewise.
1982         * ipa-split.c (split_function): Likewise.
1983         (execute_split_functions): Likewise.
1984         * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
1985         (ipa_sra_ipa_function_checks): Likewise.
1986         * ipa-visibility.c (function_and_variable_visibility): Likewise.
1987         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
1988         * lto-cgraph.c (lto_output_node): Likewise.
1989         (input_overwrite_node): Likewise.
1990         * multiple_target.c (expand_target_clones): Likewise.
1991         * omp-simd-clone.c (simd_clone_create): Likewise.
1992         * trans-mem.c (expand_call_tm): Likewise.
1993         (ipa_tm_mayenterirr_function): Likewise.
1994         (ipa_tm_diagnose_tm_safe): Likewise.
1995         (ipa_tm_diagnose_transaction): Likewise.
1996         (ipa_tm_create_version): Likewise.
1997         (ipa_tm_transform_calls_redirect): Likewise.
1998         (ipa_tm_execute): Likewise.
1999         * tree-inline.c (expand_call_inline): Likewise.
2001 2019-10-29  Martin Liska  <mliska@suse.cz>
2003         * symbol-summary.h (function_summary): Pass memory location
2004         to underlaying hash_map (or vec).
2005         (V>::fast_function_summary): Likewise.
2007 2019-10-29  Martin Liska  <mliska@suse.cz>
2009         * ggc.h (ggc_alloc_no_dtor): New function.
2010         * ipa-fnsummary.c (ipa_free_fn_summary): Call
2011         destructor and ggc_free.
2012         (ipa_free_size_summary): Call delete instead
2013         of release.
2014         * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
2015         * ipa-prop.c (ipa_check_create_edge_args): Likewise.
2016         (ipa_free_all_edge_args): Call destructor and ggc_free.
2017         (ipa_free_all_node_params): Likewise.
2018         (ipcp_free_transformation_sum): Likewise.
2019         * ipa-prop.h (ipa_check_create_node_params):
2020         Call new ggc_alloc_no_dtor.
2021         * ipa-sra.c (ipa_sra_generate_summary): Likewise.
2022         (ipa_sra_analysis): Call destructor and ggc_free.
2023         Replace release with delete operator.
2024         * symbol-summary.h (release): Remove ..
2025         (V>::~fast_function_summary): and move logic here.
2026         Likewise for other classes.
2028 2019-10-29  Richard Biener  <rguenther@suse.de>
2030         PR tree-optimization/92260
2031         * tree-vect-slp.c (vect_get_constant_vectors): Special-case
2032         lane-reducing ops.
2034 2019-10-29  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2036         PR tree-optimization/88915
2037         * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
2038         * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
2039         and make the valueize function pointer also take a void pointer.
2040         * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
2041         around vn_valueize, to call it without a context.
2042         (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
2043         * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
2044         (~_loop_vec_info): Release epilogue_vinfos.
2045         (vect_analyze_loop_costing): Use knowledge of main VF to estimate
2046         number of iterations of epilogue.
2047         (vect_analyze_loop_2): Adapt to analyse main loop for all supported
2048         vector sizes when vect-epilogues-nomask=1.  Also keep track of lowest
2049         versioning threshold needed for main loop.
2050         (vect_analyze_loop): Likewise.
2051         (find_in_mapping): New helper function.
2052         (update_epilogue_loop_vinfo): New function.
2053         (vect_transform_loop): When vectorizing epilogues re-use analysis done
2054         on main loop and call update_epilogue_loop_vinfo to update it.
2055         * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
2056         stmts on loop preheader edge.
2057         (vect_do_peeling): Enable skip-vectors when doing loop versioning if
2058         we decided to vectorize epilogues.  Update epilogues NITERS and
2059         construct ADVANCE to update epilogues data references where needed.
2060         * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
2061         (vect_do_peeling, vect_update_inits_of_drs,
2062          determine_peel_for_niter, vect_analyze_loop): Add or update
2063         declarations.
2064         * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
2065         created loop_vec_info's for epilogues when available.  Otherwise analyse
2066         epilogue separately.
2068 2019-10-29  Richard Biener  <rguenther@suse.de>
2070         * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
2071         example.
2073 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
2075         * tree-vect-stmts.c (vectorizable_condition): Get the reduction
2076         index for the COND_EXPR from stmt_info rather than reduc_info.
2078 2019-10-29  Richard Biener  <rguenther@suse.de>
2080         PR tree-optimization/65930
2081         * tree-vect-loop.c (check_reduction_path): Relax single-use
2082         check allowing out-of-loop uses.
2083         (vect_is_simple_reduction): SLP reduction chains cannot have
2084         intermediate stmts used outside of the loop.
2085         (vect_create_epilog_for_reduction): The adjustment might need
2086         to be converted.
2087         (vectorizable_reduction): Annotate live stmts of the reduction
2088         chain with STMT_VINFO_REDUC_DEF.
2089         * tree-vect-stms.c (process_use): Remove no longer true asserts.
2091 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
2093         * calls.c (pass_by_reference): Leave the target to decide whether
2094         POLY_INT_CST-sized arguments should be passed by value or reference,
2095         rather than forcing them to be passed by reference.
2096         (must_pass_in_stack_var_size): Likewise.
2097         * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
2098         V31_REGNUM to P15_REGNUM.
2099         * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
2100         Take an extra "silent_p" parameter, defaulting to false.
2101         (aarch64_sve::svbool_type_p): Declare.
2102         (aarch64_sve::nvectors_if_data_type): Likewise.
2103         * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
2104         (aarch64_frame::reg_offset): Turn into poly_int64s.
2105         (aarch64_frame::save_regs_size): Likewise.
2106         (aarch64_frame::below_hard_fp_saved_regs_size): New field.
2107         (aarch64_frame::sve_callee_adjust): Likewise.
2108         (aarch64_frame::spare_reg_reg): Likewise.
2109         (ARM_PCS_SVE): New arm_pcs value.
2110         (CUMULATIVE_ARGS::aapcs_nprn): New field.
2111         (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
2112         (CUMULATIVE_ARGS::silent_p): Likewise.
2113         (BITS_PER_SVE_PRED): New macro.
2114         * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
2115         function.  Reject aarch64_vector_pcs attributes on SVE functions.
2116         (aarch64_attribute_table): Use the above handler.
2117         (aarch64_sve_abi): New function.
2118         (aarch64_sve_argument_p): Likewise.
2119         (aarch64_returns_value_in_sve_regs_p): Likewise.
2120         (aarch64_takes_arguments_in_sve_regs_p): Likewise.
2121         (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
2122         descriptor for them.
2123         (aarch64_simd_decl_p): Delete.
2124         (aarch64_emit_cfi_for_reg_p): New function.
2125         (aarch64_reg_save_mode): Remove the fndecl argument and instead use
2126         crtl->abi to choose the mode for FP registers.  Handle the SVE PCS.
2127         (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
2128         as partly clobbered for the SVE PCS.
2129         (aarch64_function_ok_for_sibcall): Check whether the two functions
2130         use the same ABI, rather than checking specifically for whether
2131         they're aarch64_vector_pcs functions.
2132         (aarch64_pass_by_reference): Raise an error for attempts to pass
2133         SVE arguments when SVE is disabled.  Pass SVE arguments by reference
2134         if there are not enough free registers left, or if the argument is
2135         variadic.
2136         (aarch64_function_value): Handle SVE predicates, vectors and tuples.
2137         (aarch64_return_in_memory): Do not return SVE predicates, vectors and
2138         tuples in memory.
2139         (aarch64_layout_arg): Take a function_arg_info rather than
2140         individual properties.  Handle SVE predicates, vectors and tuples.
2141         Raise an error if they are passed to unprototyped functions.
2142         (aarch64_function_arg): If the silent_p flag is set, suppress the
2143         usual error about using float registers without TARGET_FLOAT.
2144         (aarch64_init_cumulative_args): Take a silent_p parameter and store
2145         it in the cumulative_args structure.  Initialize aapcs_nprn and
2146         aapcs_nextnprn.  If the silent_p flag is set, suppress the usual
2147         error about using float registers without TARGET_FLOAT.
2148         If the silent_p flag is not set, also raise an error about
2149         using SVE functions when SVE is disabled.
2150         (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
2151         and call it for SVE functions too.  Update aapcs_nprn similarly
2152         to the other register counts.
2153         (aarch64_layout_frame): If a big-endian function needs to save
2154         and restore Z8-Z15, search for a spare predicate that it can use.
2155         Store SVE predicates at the bottom of the register save area,
2156         followed by SVE vectors, then followed by the normal slots.
2157         Keep pointing the hard frame pointer at the base of the normal slots,
2158         above the SVE vectors.  Update the various frame creation and
2159         tear-down strategies for the new layout, initializing the new
2160         sve_callee_adjust field.  Add an additional layout for frames
2161         whose saved registers are all SVE registers.
2162         (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
2163         (aarch64_return_address_signing_enabled): Likewise.
2164         (aarch64_push_regs, aarch64_pop_regs): Update calls to
2165         aarch64_reg_save_mode.
2166         (aarch64_adjust_sve_callee_save_base): New function.
2167         (aarch64_add_cfa_expression): Move earlier in file.  Take the
2168         saved register as an rtx rather than a register number and use
2169         its mode for the MEM slot.
2170         (aarch64_save_callee_saves): Remove the mode argument and instead
2171         use aarch64_reg_save_mode to get the mode of each save slot.
2172         Add a hard_fp_valid_p parameter.  Cope with poly_int64 register
2173         offsets.  Allow GP offsets to be saved at a VL-based offset from
2174         the stack, handling this case using the frame pointer if available
2175         or a temporary register otherwise.  Use ST1D to save Z8-Z15 for
2176         big-endian SVE functions; use normal moves for other SVE saves.
2177         Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
2178         returns true.  Add explicit CFA notes when not storing via the
2179         stack pointer.  Do not try to pair SVE saves.
2180         (aarch64_restore_callee_saves): Cope with poly_int64 register
2181         offsets.  Use LD1D to restore Z8-Z15 for big-endian SVE functions;
2182         use normal moves for other SVE restores.  Only add CFA restore notes
2183         if aarch64_emit_cfi_for_reg_p returns true.  Do not try to pair
2184         SVE restores.
2185         (aarch64_get_separate_components): Always keep the first SVE save
2186         in the prologue if we need to use it as a stack probe.  Don't allow
2187         Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
2188         Likewise the spare predicate register that they need.  Update the
2189         offset calculation to account for the SVE save area.  Use the
2190         appropriate range check for SVE LDR and STR instructions.
2191         (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
2192         (aarch64_process_components): Likewise.  Update the offset
2193         calculation to account for the SVE save area.  Only mark the
2194         save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
2195         Do not try to pair SVE saves.
2196         (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
2197         reg_offsets.  When handling the final allocation, expect the
2198         first SVE register save to be part of the initial allocation
2199         and for it to act as a probe at SP.  Account for the SVE callee
2200         save area in the dump information.
2201         (aarch64_expand_prologue): Update the frame diagram.  Fold the
2202         SVE callee allocation into the initial allocation if stack clash
2203         protection is enabled.  Use new variables to track the offset
2204         of the frame chain (and hard frame pointer) from the current
2205         stack pointer, and likewise the offset of the bottom of the
2206         register save area.  Update calls to aarch64_save_callee_saves
2207         and aarch64_add_cfa_expression.  Apply sve_callee_adjust before
2208         saving the FP&SIMD registers.  Save the predicate registers.
2209         (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
2210         into account when setting the stack pointer from the frame pointer,
2211         and when deciding whether we can inherit the initial adjustment
2212         amount from the prologue.  Restore the predicate registers after
2213         the vector registers, then apply sve_callee_adjust, then restore
2214         the general registers.
2215         (aarch64_secondary_reload): Don't use secondary SVE reloads
2216         for VNx16BImode.
2217         (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
2218         (aarch64_short_vector_p): Return false for SVE types.
2219         (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
2220         at the start of the function.  Return false for SVE types.
2221         (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
2222         functions too.
2223         (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
2224         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
2225         to big-endian targets for bytewise moves.
2226         (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
2228 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
2229             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
2230             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2232         * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
2233         Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
2234         aarch64-sve-builtins-base.o to extra_objs.  Add
2235         aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
2236         * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
2237         (aarch64-sve-builtins-shapes.o): Likewise.
2238         (aarch64-sve-builtins-base.o): New rules.
2239         * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
2240         (aarch64_resolve_overloaded_builtin): Likewise.
2241         (aarch64_check_builtin_call): Likewise.
2242         (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
2243         and aarch64_check_builtin_call in targetm.  Register the GCC aarch64
2244         pragma.
2245         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
2246         (aarch64_svprfop): New enum.
2247         (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
2248         (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
2249         (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
2250         (aarch64_output_sve_cnt_pat_immediate): Likewise.
2251         (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
2252         (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
2253         (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
2254         (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
2255         (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
2256         (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
2257         (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
2258         (aarch64_sve::mangle_builtin_type): Likewise.
2259         (aarch64_sve::resolve_overloaded_builtin): Likewise.
2260         (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
2261         (aarch64_sve::expand_builtin): Likewise.
2262         * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
2263         (aarch64_sve_int_mode): Likewise.
2264         (aarch64_ptrue_all_mode): New function.
2265         (aarch64_convert_sve_data_to_pred): Make public.
2266         (svprfop_token): New function.
2267         (aarch64_output_sve_prefetch): Likewise.
2268         (aarch64_fold_sve_cnt_pat): Likewise.
2269         (aarch64_output_sve_cnt_pat_immediate): Likewise.
2270         (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
2271         instead of gen_while_ult.
2272         (aarch64_replace_reg_mode): Make public.
2273         (aarch64_init_builtins): Call aarch64_sve::init_builtins.
2274         (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
2275         (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
2276         (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
2277         (aarch64_mangle_type): Call aarch64_sve::mangle_type.
2278         (aarch64_sve_sqadd_sqsub_immediate_p): New function.
2279         (aarch64_sve_ptrue_svpattern_p): Likewise.
2280         (aarch64_sve_pred_valid_immediate): Check
2281         aarch64_sve_ptrue_svpattern_p.
2282         (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
2283         (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
2284         functions.
2285         * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
2286         (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
2287         (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
2288         (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
2289         (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
2290         (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
2291         New unspecs.
2292         * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
2293         (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
2294         (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
2295         (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
2296         (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
2297         (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
2298         (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
2299         (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
2300         (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
2301         (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
2302         (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
2303         (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
2304         (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
2305         (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
2306         (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
2307         (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
2308         (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
2309         (Vesize): Handle partial vector modes.
2310         (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
2311         mode attributes.
2312         (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
2313         iterators.
2314         (s, paired_extend, inc_dec): New code attributes.
2315         (SVE_INT_ADDV, CLAST, LAST): New int iterators.
2316         (SVE_INT_UNARY): Add UNSPEC_RBIT.
2317         (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
2318         (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
2319         (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
2320         (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
2321         UNSPEC_COND_FMULX.
2322         (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
2323         (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
2324         (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
2325         (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
2326         (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
2327         (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
2328         (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
2329         (SVE_BRK_BINARY, SVE_PITER): New int iterators.
2330         (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
2331         UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
2332         UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
2333         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
2334         UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
2335         UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
2336         UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
2337         UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
2338         UNSPEC_COND_FSCALE.
2339         (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
2340         (binqops_op, binqops_op_rev, last_op): New int attributes.
2341         (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
2342         (fn, ab): New int attributes.
2343         (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
2344         (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
2345         (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
2346         UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
2347         UNSPEC_RBIT.
2348         (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
2349         UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
2350         UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
2351         UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
2352         (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
2353         UNSPEC_COND_FMULX.
2354         (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
2355         (brk_reg_con, brk_reg_opno): New int attributes.
2356         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
2357         UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
2358         (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
2359         UNSPEC_COND_FMIN.
2360         (max_elem_bits): New int attribute.
2361         (min_elem_bits): Handle UNSPEC_RBIT.
2362         * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
2363         TRUNCATE as well as SUBREG.
2364         (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
2365         (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
2366         (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
2367         (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
2368         (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
2369         (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
2370         (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
2371         (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
2372         (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
2373         (aarch64_gather_scale_operand_h): New predicates.
2374         * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
2375         (vgd, vgh, vgw, vsQ, vsS): New constraints.
2376         * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
2377         (*aarch64_sve_reinterpret<mode>): Allow any source register
2378         instead of requiring an exact match.
2379         (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
2380         (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
2381         (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
2382         (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
2383         (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
2384         (aarch64_update_ffrt): New patterns.
2385         (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2386         (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2387         (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2388         (@aarch64_ld<fn>f1<mode>): New patterns.
2389         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2390         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2391         (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2392         (@aarch64_ldnt1<mode>): New patterns.
2393         (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
2394         the scalar part of the address.
2395         (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
2396         scalar part of the addresse and add an alternative for handling
2397         nonzero offsets.
2398         (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
2399         (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
2400         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2401         (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2402         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
2403         (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
2404         (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
2405         (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
2406         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2407         (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2408         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
2409         (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
2410         (@aarch64_sve_prefetch<mode>): New patterns.
2411         (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
2412         (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
2413         (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
2414         (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
2415         (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
2416         (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
2417         (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
2418         (@aarch64_stnt1<mode>): New patterns.
2419         (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
2420         the scalar part of the address.
2421         (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
2422         the scalar part of the addresse and add an alternative for handling
2423         nonzero offsets.
2424         (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
2425         (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
2426         (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
2427         (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
2428         (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
2429         (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
2430         New patterns.
2431         (vec_duplicate<mode>): Use QI as the mode of the input operand.
2432         (extract_last_<mode>): Generalize to...
2433         (@extract_<LAST:last_op>_<mode>): ...this.
2434         (*<SVE_INT_UNARY:optab><mode>2): Rename to...
2435         (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
2436         (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
2437         (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
2438         (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
2439         (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
2440         (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
2441         (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
2442         (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
2443         (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
2444         (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
2445         (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
2446         (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
2447         (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
2448         (*aarch64_adr_uxtw_unspec): Likewise.
2449         (*aarch64_adr_uxtw): Rename to...
2450         (*aarch64_adr_uxtw_and): ...this.
2451         (@aarch64_adr<mode>_shift): New expander.
2452         (*aarch64_adr_shift_sxtw): New pattern.
2453         (aarch64_<su>abd<mode>_3): Rename to...
2454         (@aarch64_pred_<su>abd<mode>): ...this.
2455         (<su>abd<mode>_3): Update accordingly.
2456         (@aarch64_cond_<su>abd<mode>): New expander.
2457         (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
2458         (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
2459         (*<su>mul<mode>3_highpart): Rename to...
2460         (@aarch64_pred_<optab><mode>): ...this.
2461         (@cond_<MUL_HIGHPART:optab><mode>): New expander.
2462         (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
2463         (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
2464         (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
2465         (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
2466         (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
2467         (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
2468         (*v<ASHIFT:optab><mode>3): Rename to...
2469         (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
2470         (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
2471         (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
2472         (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
2473         (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
2474         (@cond_asrd<mode>): New expander.
2475         (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
2476         (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
2477         (*sdiv_pow2<mode>3): Delete.
2478         (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
2479         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
2480         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
2481         (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
2482         (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
2483         (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
2484         (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
2485         (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
2486         (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
2487         (*add<SVE_F:mode>3): Rename to...
2488         (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
2489         for SVE_STRICT_GP.
2490         (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
2491         (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
2492         (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
2493         (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
2494         (*sub<SVE_F:mode>3): Rename to...
2495         (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
2496         for SVE_STRICT_GP.
2497         (@aarch64_pred_abd<SVE_F:mode>): New expander.
2498         (*fabd<SVE_F:mode>3): Rename to...
2499         (*aarch64_pred_abd<SVE_F:mode>): ...this.
2500         (@aarch64_cond_abd<SVE_F:mode>): New expander.
2501         (*mul<SVE_F:mode>3): Rename to...
2502         (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
2503         for SVE_STRICT_GP.
2504         (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
2505         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
2506         to...
2507         (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
2508         (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
2509         (*<nlogical><PRED_ALL:mode>3): Rename to...
2510         (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
2511         (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
2512         (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
2513         (*<logical_nn><PRED_ALL:mode>3): Rename to...
2514         (aarch64_pred_<logical_nn><mode>_z): ...this.
2515         (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
2516         (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
2517         (*fma<SVE_I:mode>4): Rename to...
2518         (@aarch64_pred_fma<SVE_I:mode>): ...this.
2519         (*fnma<SVE_I:mode>4): Rename to...
2520         (@aarch64_pred_fnma<SVE_I:mode>): ...this.
2521         (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
2522         (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
2523         (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
2524         (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
2525         (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
2526         (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
2527         (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
2528         (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
2529         (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
2530         (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
2531         (@aarch64_sve_tmad<mode>): Likewise.
2532         (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
2533         (*aarch64_sel_dup<mode>): Rename to...
2534         (@aarch64_sel_dup<mode>): ...this.
2535         (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
2536         (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
2537         (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
2538         (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
2539         (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
2540         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
2541         (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
2542         (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
2543         (*fcm<cmp_op><mode>): Rename to...
2544         (@aarch64_pred_fcm<cmp_op><mode>): ...this.  Make operand order
2545         match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
2546         (*fcmuo<mode>): Rename to...
2547         (@aarch64_pred_fcmuo<mode>): ...this.  Make operand order
2548         match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
2549         (@aarch64_pred_fac<cmp_op><mode>): New expander.
2550         (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
2551         (fold_extract_last_<mode>): Generalize to...
2552         (@fold_extract_<last_op>_<mode>): ...this.
2553         (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
2554         (*reduc_plus_scal_<SVE_I:mode>): Replace with...
2555         (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
2556         DImode result explicit.
2557         (reduc_plus_scal_<mode>): Update accordingly.
2558         (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
2559         (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
2560         (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
2561         (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
2562         (*aarch64_sve_tbl<mode>): Rename to...
2563         (@aarch64_sve_tbl<mode>): ...this.
2564         (@aarch64_sve_compact<mode>): New pattern.
2565         (*aarch64_sve_dup_lane<mode>): Rename to...
2566         (@aarch64_sve_dup_lane<mode>): ...this.
2567         (@aarch64_sve_dupq_lane<mode>): New pattern.
2568         (@aarch64_sve_splice<mode>): Likewise.
2569         (aarch64_sve_<perm_insn><mode>): Rename to...
2570         (@aarch64_sve_<perm_insn><mode>): ...this.
2571         (*aarch64_sve_ext<mode>): Rename to...
2572         (@aarch64_sve_ext<mode>): ...this.
2573         (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
2574         (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
2575         to...
2576         (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
2577         (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
2578         Rename to...
2579         (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
2580         ...this.
2581         (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
2582         (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
2583         (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
2584         (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
2585         to...
2586         (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
2587         (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
2588         a "@" marker.
2589         (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
2590         (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
2591         (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
2592         pattern.
2593         (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
2594         (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
2595         (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
2596         (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
2597         (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
2598         "@" marker.
2599         (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
2600         (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
2601         (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
2602         (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
2603         (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
2604         (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
2605         (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
2606         (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
2607         (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
2608         (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
2609         (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
2610         (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
2611         (aarch64_sve_cnt_pat): Likewise.
2612         (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
2613         (*aarch64_sve_incsi_pat): Likewise.
2614         (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
2615         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
2616         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
2617         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
2618         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
2619         (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
2620         (*aarch64_sve_decsi_pat): Likewise.
2621         (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
2622         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
2623         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
2624         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
2625         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
2626         (@aarch64_pred_cntp<mode>): Likewise.
2627         (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
2628         New expander.
2629         (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
2630         (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
2631         (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
2632         New expander.
2633         (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
2634         New pattern.
2635         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
2636         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
2637         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
2638         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
2639         (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
2640         (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
2641         (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
2642         New expander.
2643         (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
2644         (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
2645         (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
2646         New expander.
2647         (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
2648         New pattern.
2649         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
2650         expander.
2651         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
2652         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
2653         expander.
2654         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
2655         (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
2656         expander.
2657         (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
2658         * config/aarch64/arm_sve.h: New file.
2659         * config/aarch64/aarch64-sve-builtins.h: Likewise.
2660         * config/aarch64/aarch64-sve-builtins.cc: Likewise.
2661         * config/aarch64/aarch64-sve-builtins.def: Likewise.
2662         * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
2663         * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
2664         * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
2665         * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
2666         * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
2667         * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
2669 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
2671         * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
2672         New pattern.
2673         * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
2674         SVE modes.
2676 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
2678         * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
2679         * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
2680         FFRT_REGNUM + 1.
2681         (FFR_REGS, PR_AND_FFR_REGS): New register classes.
2682         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
2683         * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
2684         (aarch64_hard_regno_nregs): Handle the new register classes.
2685         (aarch64_hard_regno_mode_ok): Likewise.
2686         (aarch64_regno_regclass): Likewise.
2687         (aarch64_class_max_nregs): Likewise.
2688         (aarch64_register_move_cost): Likewise.
2689         (aarch64_conditional_register_usage): Don't treat FFR and FFRT
2690         as general register_operands.
2692 2019-10-29  Martin Liska  <mliska@suse.cz>
2694         * ggc-common.c: One can't subtract unsigned types
2695         in compare function.
2697 2019-10-29  Martin Liska  <mliska@suse.cz>
2699         * cgraphunit.c (symbol_table::compile): Pass
2700         title as dump_memory_report argument.
2701         * toplev.c (dump_memory_report):  New argument.
2702         (finalize): Pass new argument.
2703         * toplev.h (dump_memory_report): Add argument.
2705 2019-10-29  Martin Liska  <mliska@suse.cz>
2707         * ggc-common.c: Move Leak to the first column.
2709 2019-10-29  Martin Liska  <mliska@suse.cz>
2711         * cgraphunit.c (symbol_table::compile): Remove argument
2712         for dump_memory_report.
2713         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
2714         (compare_final): Remove in order to make report
2715         better readable.
2716         * ggc.h (dump_ggc_loc_statistics):  Remove argument.
2717         * mem-stats.h (mem_alloc_description::get_list):
2718         Do not pass cmp.
2719         (mem_alloc_description::dump): Likewise here.
2720         * toplev.c (dump_memory_report): Remove final
2721         argument.
2722         (finalize): Likewise.
2723         * toplev.h (dump_memory_report): Remove argument.
2725 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
2727         * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
2728         (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
2729         * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
2730         (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
2731         accept "const".
2733 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
2735         * coretypes.h (string_int_pair): New typedef.
2736         * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
2737         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
2738         * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
2740 2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>
2742         * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
2743         (simulate_builtin_function_decl): Declare.
2744         * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
2745         (LANG_HOOKS_INITIALIZER): Include it.
2746         * langhooks.c (add_builtin_function_common): Rename to...
2747         (build_builtin_function): ...this.  Add a location parameter and use
2748         it instead of BUILTINS_LOCATION.  Remove the hook parameter and return
2749         the decl instead.
2750         (add_builtin_function): Update accordingly, passing the returned
2751         decl to the lang hook.
2752         (add_builtin_function_ext_scope): Likewise
2753         (simulate_builtin_function_decl): New function.
2755 2019-10-29  Jakub Jelinek  <jakub@redhat.com>
2757         * doc/install.texi (--enable-offload-targets): Fix up a typo in the
2758         example, use actual names of supported offload targets.
2760         PR target/92258
2761         * config/i386/sse.md (iptr): Revert 2019-10-27 change.
2763 2019-10-28  Martin Sebor  <msebor@redhat.com>
2765         * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
2766         (handle_store): Pass argument to get_addr_stridx.
2768 2019-10-28  Martin Sebor  <msebor@redhat.com>
2770         PR tree-optimization/92226
2771         * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
2772         the offset is in the open range outlined by SI's length.
2774 2019-10-28  Martin Sebor  <msebor@redhat.com>
2776         PR c/66970
2777         * doc/cpp.texi (__has_builtin): Document.
2778         * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
2780 2019-10-28  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
2782         PR target/82981
2783         * config/mips/mips.md (<u>mulditi3): Generate patterns for high
2784         doubleword and low doubleword result of multiplication on
2785         MIPS64R6.
2787         * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
2788         pure qualifier to the built-in.
2789         (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
2790         built-ins.
2791         (struct mips_builtin_description): Add is_pure flag.
2792         (mips_init_builtins): Mark built-in as pure if the flag in the
2793         corresponding mips_builtin_description struct is set.
2795         * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
2796         alternative which covers the floating-point input value. Also
2797         forbid the split of insert.d pattern for floating-point values.
2799 2019-10-28  Andrew Burgess  <andrew.burgess@embecosm.com>
2801         * config.gcc: Add riscv-sr.o to extra_objs for riscv.
2802         * config/riscv/riscv-sr.c: New file.
2803         * config/riscv/riscv.c (riscv_reorg): New function.
2804         (TARGET_MACHINE_DEPENDENT_REORG): Define.
2805         * config/riscv/riscv.h (SIBCALL_REG_P): Define.
2806         (riscv_remove_unneeded_save_restore_calls): Declare.
2807         * config/riscv/t-riscv (riscv-sr.o): New build rule.
2809 2019-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2811         PR tree-optimization/92163
2812         * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
2813         need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
2814         before calling bitmap_set_bit.
2815         (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
2816         delete_dead_or_redundant_assignment.
2817         (dse_dom_walker::dse_optimize_stmt): Likewise.
2818         * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
2820 2019-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2822         PR middle-end/91272
2823         * tree-vect-stmts.c (vectorizable_condition): Support
2824         EXTRACT_LAST_REDUCTION with fully-masked loops.
2826 2019-10-28  Richard Biener  <rguenther@suse.de>
2828         PR tree-optimization/92252
2829         * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
2830         STMT_VINFO_REDUC_IDX when swapping operands.
2832 2019-10-28  Richard Biener  <rguenther@suse.de>
2834         PR tree-optimization/92241
2835         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
2836         we failed to update the reduction index do not use the pattern
2837         stmts for the reduction chain.
2838         (vectorizable_reduction): When the reduction chain is corrupt,
2839         fail.
2840         * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
2841         fail to update the reduction chain.
2843 2019-10-28  Richard Biener  <rguenther@suse.de>
2845         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
2846         STMT_VINFO_REDUC_IDX from the actual stmt.
2847         (vect_transform_reduction): Likewise.
2848         (vectorizable_reduction): Compute the reduction chain length,
2849         do not recompute the reduction operand index.  Remove no longer
2850         necessary restriction for condition reduction chains.
2852 2019-10-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2854         PR target/92225
2855         * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
2856         condition for V2DImode.
2858 2019-10-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2860         * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
2861         Remove %k operand modifier.
2862         (*vec_extractv2df_1_sse): Remove %q operand modifier.
2864 2019-10-28  Ilya Leoshkevich  <iii@linux.ibm.com>
2866         PR rtl-optimization/92007
2867         * cfgcleanup.c (thread_jump): Add an assertion that we don't
2868         call it after reload if hot/cold partitioning has been done.
2869         (class pass_postreload_jump): Rename to
2870         pass_jump_after_combine.
2871         (make_pass_postreload_jump): Rename to
2872         make_pass_jump_after_combine.
2873         * passes.def(pass_postreload_jump): Move before reload, rename
2874         to pass_jump_after_combine.
2875         * tree-pass.h (make_pass_postreload_jump): Rename to
2876         make_pass_jump_after_combine.
2878 2019-10-25  Jan Hubicka  <hubicka@ucw.cz>
2880         PR ipa/92242
2881         * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
2882         for missing EDGE_REF
2883         * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
2885 2019-10-25  Jiufu Guo  <guojiufu@linux.ibm.com>
2887         PR tree-optimization/88760
2888         * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
2889         Enable -funroll-loops for -O2 and above.
2890         * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
2891         PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
2892         do not turn on web and rngreg implicitly, if the unroller is not
2893         explicitly enabled.
2895 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
2897         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
2898         jump functions.
2900 2019-10-27  Eric Botcazou <ebotcazou@adacore.com>
2902         * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
2903         * cgraph.h (cgraph_node::rtl_info): Likewise.
2905 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
2907         * ipa-cp.c (propagate_constants_across_call): If args are not available
2908         just drop everything to varying.
2909         (find_aggregate_values_for_callers_subset): Watch for missing
2910         edge summary.
2911         (find_more_scalar_values_for_callers_subs): Likewise.
2912         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
2913         update_jump_functions_after_inlining, propagate_controlled_uses):
2914         Watch for missing summaries.
2915         (ipa_propagate_indirect_call_infos): Remove summary after propagation
2916         is finished.
2917         (ipa_write_node_info): Watch for missing summaries.
2918         (ipa_read_edge_info): Create new ref.
2919         (ipa_edge_args_sum_t): Add remove.
2920         (IPA_EDGE_REF_GET_CREATE): New macro.
2921         * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
2922         edge summary.
2923         (remap_edge_change_prob): Likewise.
2925 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
2927         * ipa-inline-transform.c (inline_call): update function summaries
2928         after expanidng thunk.
2930 2019-10-27  Jan Hubicka  <hubicka@ucw.cz>
2932         * ipa-icf.c (sem_function::merge): Update function summaries.
2933         * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
2935 2019-10-27  Hongtao Liu  <hongtao.liu@intel.com>
2937         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
2938         <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
2939         operand already has scalar mode.
2940         (iptr): Remove SF/DF.
2942 2019-10-26  Segher Boessenkool  <segher@kernel.crashing.org>
2944         PR target/91289
2945         * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
2946         an immediate to r0; use r11 instead.  Save and restore r11 to r0 around
2947         this.
2949 2019-10-26  Hongtao Liu  <hongtao.liu@intel.com>
2951         * config/i386/sse.md
2952         (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
2953         <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
2954         <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
2955         <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
2956         <sse>_vmmaskcmp<mode>3):
2957         Change predicates from vector_operand to nonimmediate_operand,
2958         constraints xBm to xm, since scalar operations don't need
2959         memory address alignment.
2960         (avx512f_vmcmp<mode>3<round_saeonly_name>,
2961         avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
2962         round_saeonly_nimm_predicate with
2963         round_saeonly_nimm_scalar_predicate.
2964         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
2965         fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
2966         *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
2967         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
2968         avx512f_vmfmadd_<mode>_mask3<round_name>,
2969         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
2970         *avx512f_vmfmsub_<mode>_mask<round_name>,
2971         avx512f_vmfmsub_<mode>_mask3<round_name>,
2972         *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
2973         *avx512f_vmfnmadd_<mode>_mask<round_name>,
2974         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
2975         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
2976         *avx512f_vmfnmsub_<mode>_mask<round_name>,
2977         *avx512f_vmfnmsub_<mode>_mask3<round_name>,
2978         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
2979         cvtusi2<ssescalarmodesuffix>32<round_name>,
2980         cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
2981         round_nimm_predicate with round_nimm_scalr_predicate.
2982         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
2983         avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
2984         avx512er_vmrcp28<mode><round_saeonly_name>,
2985         avx512er_vmrsqrt28<mode><round_saeonly_name>,
2986         ): Replace round_saeonly_nimm_predicate with
2987         round_saeonly_nimm_scalar_predicate.
2988         (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
2989         vector_operand with nonimmediate_operand.
2990         * config/i386/subst.md (round_scalar_nimm_predicate,
2991         round_saeonly_scalar_nimm_predicate): Replace
2992         vector_operand with nonimmediate_operand.
2994 2019-10-26  Hongtao Liu  <hongtao.liu@intel.com>
2996         PR target/89071
2997         * config/i386/i386.md (*rcpsf2_sse): Add
2998         avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
2999         (*rsqrtsf2_sse): Ditto.
3000         (*sqrt<mode>2_sse): Ditto.
3001         (sse4_1_round<mode>2): separate constraint vm, add
3002         avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
3003         * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
3004         by pass rpad.
3005         (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
3006         Ditto.
3007         (*sse_vmrsqrtv4sf2): Ditto.
3008         (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
3009         (*sse4_1_round<ssescalarmodesuffix>): Ditto.
3010         (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
3011         <iptr> pointer size modifier since vround support memory operand.
3013 2019-10-18  Georg-Johann Lay  <avr@gjlay.de>
3015         PR target/85969
3016         * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
3017         static function.
3019 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
3020             Tobias Burnus  <tobias@codesourcery.com>
3022         * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
3023         (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
3024         common block decls.
3026 2019-10-25  Richard Biener  <rguenther@suse.de>
3028         PR tree-optimization/92222
3029         * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
3030         (_slp_oprnd_info::second_pattern): Likewise.
3031         (_slp_oprnd_info::any_pattern): New.
3032         (vect_create_oprnd_info): Adjust.
3033         (vect_get_and_check_slp_defs): Compute whether any stmt is
3034         in a pattern.
3035         (vect_build_slp_tree_2): Avoid building up a node from scalars
3036         if any of the operand defs, not just the first, is in a pattern.
3038 2019-10-25  Richard Biener  <rguenther@suse.de>
3040         * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
3041         swapping if we actually have to modify the IL on a shared stmt.
3042         (vect_build_slp_tree_2): Never fail swapping on shared stmts
3043         because we no longer modify the IL.
3045 2019-10-25  Martin Liska  <mliska@suse.cz>
3047         * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
3049 2019-10-25  Richard Sandiford  <richard.sandiford@arm.com>
3051         * tree-vect-loop.c (vectorizable_reduction): Restrict the
3052         LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
3053         handled by vect_transform_reduction.  Allow fully-masked loops
3054         to be used with reduction chains.
3055         * tree-vect-stmts.c (vectorizable_operation): Handle reduction
3056         operations in fully-masked loops.
3057         (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
3058         operations in fully-masked loops.
3060 2019-10-25  Richard Biener  <rguenther@suse.de>
3062         * tree-vect-loop.c (vectorizable_reduction): Verify
3063         STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
3064         correctly.
3065         * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
3066         STMT_VINFO_REDUC_IDX from the original stmts to the pattern
3067         stmts.
3069 2019-10-24  Jakub Jelinek  <jakub@redhat.com>
3071         * gimplify.h (omp_construct_selector_matches): Declare.
3072         * gimplify.c (struct gimplify_omp_ctx): Add code member.
3073         (gimplify_call_expr): Call omp_resolve_declare_variant and remap
3074         called function if needed for flag_openmp.
3075         (gimplify_scan_omp_clauses): Set ctx->code.
3076         (omp_construct_selector_matches): New function.
3077         * omp-general.h (omp_constructor_traits_to_codes,
3078         omp_context_selector_matches, omp_resolve_declare_variant): Declare.
3079         * omp-general.c (omp_constructor_traits_to_codes,
3080         omp_context_selector_matches, omp_resolve_declare_variant): New
3081         functions.
3083         * config/arc/arc.c (hwloop_optimize): Add missing space in string
3084         literal.
3085         * config/rx/rx.c (rx_print_operand): Likewise.
3086         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
3087         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
3088         * ipa-sra.c (create_parameter_descriptors, process_scan_results):
3089         Likewise.
3090         * genemit.c (emit_c_code): Likewise.
3091         * plugin.c (try_init_one_plugin): Likewise.  Formatting fix.
3093 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
3095         * symbols-summary.h (fast_function_summary<T *, V>::release,
3096         fast_call_summary<T *, V>::release): Free m_vector.
3098 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
3100         * cgraphunit.c (symbol_table::process_new_functions): Call
3101         ipa_free_size_summary.
3102         * ipa-cp.c (ipcp_cloning_candidate_p): Update.
3103         (devirtualization_time_bonus): Update.
3104         (ipcp_propagate_stage): Update.
3105         * ipa-fnsummary.c (ipa_size_summaries): New.
3106         (ipa_fn_summary_alloc): Alloc size summary.
3107         (dump_ipa_call_summary): Update.
3108         (ipa_dump_fn_summary): Update.
3109         (analyze_function_body): Update.
3110         (compute_fn_summary): Likewise.
3111         (ipa_get_stack_frame_offset): New function.
3112         (inline_update_callee_summaries): Do not update frame offsets.
3113         (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
3114         remove call and function summary.
3115         (ipa_update_overall_fn_summary): Update.
3116         (inline_read_section): Update.
3117         (ipa_fn_summary_write): Update.
3118         (ipa_free_fn_summary): Do not remove summaries.
3119         (ipa_free_size_summary): New.
3120         (release summary pass): Also run at WPA.
3121         * ipa-fnsummary.h (ipa_size_summary): Declare.
3122         (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
3123         estimated_self_stack_size.
3124         (ipa_size_summary_t): New type.
3125         (ipa_size_summaries): Declare.
3126         (ipa_free_size_summary): Declare.
3127         (ipa_get_stack_frame_offset): Declare.
3128         * ipa-icf.c (sem_function::merge): Update.
3129         * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
3130         (estimate_growth): Update.
3131         (growth_likely_positive): Update.
3132         (clone_inlined_nodes): Update.
3133         (inline_call): Update.
3134         * ipa-inline.c (caller_growth_limits): Update.
3135         (edge_badness): Update.
3136         (recursive_inlining): Update.
3137         (inline_small_functions): Update.
3138         (inline_to_all_callers_1): Update.
3139         * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
3141 2019-10-24  Segher Boessenkool  <segher@kernel.crashing.org>
3143         * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
3144         (uavg<mode>3_ceil): ... This.
3145         (altivec_vavgs<VI_char>): Rename to...
3146         (avg<mode>3_ceil): ... This.
3147         * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
3148         VAVGUW, VAVGSW): Adjust.
3150 2019-10-24  Nathan Sidwell  <nathan@acm.org>
3152         * dumpfile.c (dump_begin): Reorder decls to use RAII.
3154 2019-10-24  Martin Liska  <mliska@suse.cz>
3156         * symbol-summary.h (gt_pch_nx): Mark all functions
3157         with gcc_unreachable as we do not expect to be called.
3159 2019-10-24  Richard Biener  <rguenther@suse.de>
3161         * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
3162         chains try harder with operand swapping and instead of
3163         putting a shifted chain into the reduction operands put
3164         a repetition of the final reduction op there as if we'd
3165         reassociate the expression.
3167 2019-10-24  Jan Hubicka  <hubicka@ucw.cz>
3169         * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
3170         statics_not_read and statics_not_written to statics_read and
3171         statics_written respectively.
3172         (no_module_statics): New static var.
3173         (ipa_reference_get_not_read_global): Rename to ...
3174         (ipa_reference_get_read_global): ... this.
3175         (ipa_reference_get_not_written_global): Rename to ...
3176         (ipa_reference_get_written_global): ... this.
3177         (dump_static_vars_set_to_file): Dump no_module_statics.
3178         (copy_static_var_set): Add for propagation parameter.
3179         (ipa_init): Initialize no_module_statics.
3180         (ipa_ref_opt_summary_t::duplicate): Update.
3181         (ipa_ref_opt_summary_t::remove): Update.
3182         (propagate): Update.
3183         (write_node_summary_p): Look correctly for bitmap differences.
3184         (ipa_reference_write_optimization_summary): Update.
3185         (ipa_reference_read_optimization_summary): Update.
3186         * ipa-reference.h
3187         (ipa_reference_get_not_read_global): Rename to ...
3188         (ipa_reference_get_read_global): ... this.
3189         (ipa_reference_get_not_written_global): Rename to ...
3190         (ipa_reference_get_written_global): ... this.
3191         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
3192         (call_may_clobber_ref_p_1): Update.
3194 2019-10-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
3196         * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
3197         and add comment.
3198         (msp430_hard_regno_nregs_with_padding): Remove.
3200 2019-10-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
3202         * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
3203         * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
3204         shift amount is between 1 and 4.
3205         (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
3206         is between 1 and 4.
3208 2019-10-24  Richard Biener  <rguenther@suse.de>
3210         PR tree-optimization/92205
3211         * tree-vect-loop.c (vectorizable_reduction): Restrict
3212         search for alternate vectype_in to lane-reducing patterns
3213         we support.
3215 2019-10-24  Richard Biener  <rguenther@suse.de>
3217         PR tree-optimization/92203
3218         * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
3219         Skip eliminating conversion stmts inserted by insertion.
3221 2019-10-24  Ilya Leoshkevich  <iii@linux.ibm.com>
3223         * config/s390/s390.c (s390_get_thread_pointer): Use
3224         gen_get_thread_pointer.
3225         (s390_expand_split_stack_prologue): Likewise.
3226         * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
3227         (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
3228         (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
3229         (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
3230         parameterized name.
3232 2019-10-24  Richard Biener  <rguenther@suse.de>
3234         * tree-vect-slp.c (vect_analyze_slp): When reduction group
3235         SLP discovery fails try to handle the reduction as part
3236         of SLP reduction discovery.
3238 2019-10-23  Michael Meissner  <meissner@linux.ibm.com>
3240         * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
3241         declaration.
3242         * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
3243         attribute if it exists, rather than the insn size.  If we use the
3244         insn size, adjust the size to remove the extra size that prefixed
3245         instructions take.
3246         (rs6000_adjust_insn_length): New function.
3247         * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
3248         update the instruction sized if prefixed instructions are used.
3249         * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
3250         (non_prefixed_length attribute): Delete.
3251         (num_insns attribute): New insn attribute to return the number of
3252         instructions.
3253         (max_prefixed_insns attribute): New insn attribute to return the
3254         maximum number of prefixed instructions in an insn.
3255         (length attribute): Do not adjust for prefix instructions here,
3256         punt to ADJUST_INSN_LENGTH.
3257         (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
3258         (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
3259         (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
3260         * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
3261         max_prefixed_insns and num_insns.
3263         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
3264         (movtd_64bit_nodm): Reformat.
3265         (mov<mode>_32bit): Reformat.
3266         (mov<mode>_softfloat): Reformat.
3267         (FMOVE128_GPR splitter): Reformat.
3268         (DIFD splitter): Reformat.
3269         (TI2 splitter): Reformat.
3270         * config/rs6000/predicates.md (lwa_operand): If the bottom two
3271         bits of the offset for the memory address are non-zero, use PLWA
3272         if prefixed instructions are available.
3274 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
3276         * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
3278 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
3280         * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
3281         previous patch.
3283 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
3285         * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
3286         (cmp_symbol_files): New.
3287         (lto_output): Copy sections in file order.
3288         * lto-streamer.h (lto_file_decl_data): Add field order.
3290 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
3292         * ipa-reference.h (ipa_reference_var_uid): Move offline.
3293         * ipa-reference.c (reference_vars_map_t): new type.
3294         (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
3295         (ipa_reference_var_uid): Implement.
3296         (varpool_node_hooks): New static var.
3297         (varpool_removal_hook): New function.
3298         (is_improper): Do not check bitmap for id==-1
3299         (get_static_name): Update.
3300         (ipa_init): Initialize new datastructures.
3301         (analyze_function): Do not recompute ids.
3302         (propagate): Free reference_vars_to_consider.
3303         (stream_out_bitmap): Update.
3304         (ipa_reference_read_optimization_summary): Update.
3306 2019-10-23  qing zhao  <qing.zhao@oracle.com>
3308         PR gcov-profile/91971
3309         * coverage.c (coverage_init): Mangle the full path of filename when
3310         filename is a absolute path.
3312 2019-10-23  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
3314         * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
3315         * config/msp430/msp430.c (msp430_no_hwmult): Remove.
3316         (msp430_has_hwmult): New.
3317         (msp430_output_labelref):
3318         s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
3319         * config/msp430/msp430.md (mulhisi3): Likewise.
3320         (umulhisi3): Likewise.
3321         (mulsidi3): Likewise.
3322         (umulsidi3): Likewise.
3324 2019-10-23  Jan Hubicka  <hubicka@ucw.cz>
3326         PR ipa/92074
3327         * params.def (inline-heuristics-hint-percent): Set to 600.
3329 2019-10-23  Richard Biener  <rguenther@suse.de>
3331         PR tree-optimization/65930
3332         * tree-vect-loop.c (check_reduction_path): Allow conversions
3333         that only change the sign.
3334         (vectorizable_reduction): Relax latch def stmts we handle further.
3336 2019-10-23  Jakub Jelinek  <jakub@redhat.com>
3338         PR debug/90231
3339         * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
3340         (remove_unused_ivs): Use it instead of get_computation_at.  When
3341         choosing best candidate, only consider candidates where
3342         get_debug_computation_at actually returns non-NULL.
3344 2019-10-23  Eric Botcazou  <ebotcazou@adacore.com>
3346         PR tree-optimization/92131
3347         * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
3348         range would be symbolic, drop to varying for any explicit overflow
3349         in the constant part or if neither range is a singleton.
3351 2019-10-23  Martin Liska  <mliska@suse.cz>
3353         PR middle-end/81669
3354         * fibonacci_heap.h (fibonacci_node::fibonacci_node):
3355         Initialize m_data.
3357 2019-10-23  Richard Sandiford  <richard.sandiford@arm.com>
3359         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
3360         int_mode_for_mode rather than mode_for_int_vector for scalars.
3362 2019-10-23  Richard Biener  <rguenther@suse.de>
3364         PR tree-optimization/92179
3365         * tree-vect-stmts.c (vectorizable_shift): For shift args
3366         that are all the same remove type restriction in the SLP case.
3367         Adjust SLP code to handle converting of the shift arg to
3368         only apply in case the modes are different.
3370 2019-10-23  Martin Liska  <mliska@suse.cz>
3372         PR ipa/91969
3373         * ipa-inline.c (recursive_inlining): Do not print
3374         when curr->count is not initialized.
3376 2019-10-23  Richard Biener  <rguenther@suse.de>
3378         * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
3379         op from scalars in case there's a constant operand in its
3380         definition.
3382 2019-10-23  Iain Sandoe  <iain@sandoe.co.uk>
3384         * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
3385         against out of range max skip or log values.
3387 2019-10-22  Giuliano Belinassi  <giuliano.belinassi@usp.br>
3389         * cgraph.c (dump_graphviz): Change name to dump_name
3391 2019-10-22  Richard Earnshaw  <rearnsha@arm.com>
3393         * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
3394         * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
3395         subtraction from a carry operation.
3397 2019-10-22  Richard Earnshaw  <rearnsha@arm.com>
3399         * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
3401 2019-10-22  Richard Biener  <rguenther@suse.de>
3403         PR tree-optimization/92173
3404         * tree-vect-loop.c (vectorizable_reduction): If
3405         vect_transform_reduction cannot handle code-generation try without
3406         the single-def-use-cycle optimization.  Pass optab_vector to
3407         optab_for_tree_code to get vector shifts as that's what we'd
3408         generate.
3410 2019-10-22  Michael Matz  <matz@suse.de>
3412         PR middle-end/90796
3413         * gimple-loop-jam.c (any_access_function_variant_p): New function.
3414         (adjust_unroll_factor): Use it to constrain safety, new parameter.
3415         (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
3417 2019-10-22  Richard Biener  <rguenther@suse.de>
3419         PR tree-optimization/92173
3420         * tree-vect-loop.c (vectorizable_reduction): If
3421         vect_transform_reduction cannot handle code-generation try without
3422         the single-def-use-cycle optimization.  Pass optab_vector to
3423         optab_for_tree_code to get vector shifts as that's what we'd
3424         generate.
3426 2019-10-22  Martin Liska  <mliska@suse.cz>
3428         * diagnostic-format-json.cc (json_from_expanded_location):
3429         Use json::integer_number.
3430         * gcov.c (output_intermediate_json_line): Use new
3431         json::integer_number.
3432         (output_json_intermediate_file): Likewise.
3433         * json.cc (number::print): Move to ...
3434         (float_number::print): ... this.
3435         (integer_number::print): New.
3436         (test_writing_numbers): Move to ...
3437         (test_writing_float_numbers): ... this.
3438         (test_writing_integer_numbers): New.
3439         (json_cc_tests): Register test_writing_integer_numbers.
3440         * json.h (class value): Add forward declaration
3441         for float_number and integer_number.
3442         (enum kind): Add JSON_INTEGER and JSON_FLOAT.
3443         (class number): Move to ...
3444         (class float_number): ... this.
3445         (class integer_number): New.
3446         * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
3447         Use json::integer_number.
3448         (optrecord_json_writer::location_to_json): Likewise.
3449         (optrecord_json_writer::profile_count_to_json): Likewise.
3450         (optrecord_json_writer::pass_to_json): Likewise.
3452 2019-10-22  Richard Sandiford  <richard.sandiford@arm.com>
3454         * tree-vect-slp.c (vect_slp_bb_region): Check whether
3455         autodetected_vector_size rather than vector_size is zero.
3456         * tree-vect-loop.c (vect_analyze_loop): Likewise.
3457         Set autodetected_vector_size immediately after calling
3458         vect_analyze_loop_2.  Check for a fatal error before advancing
3459         next_size.
3461 2019-10-21  Jason Merrill  <jason@redhat.com>
3463         * lock-and-run.sh: Check for process existence rather than timeout.
3465 2019-10-21  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
3467         * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
3468         widening multiplication.
3470 2019-10-21  Richard Earnshaw  <rearnsha@arm.com>
3472         * config/arm/iterators.md (t2_binop0): Fix typo in comment.
3473         * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
3474         type attribute.
3475         (subsi3_carryin_shift): Separate into register and constant controlled
3476         alternatives.  Use shift_amount_operand for operand 4.  Set shift
3477         attribute and simplify type attribute.
3478         (subsi3_carryin_shift_alt): Likewise.
3479         (rsbsi3_carryin_shift): Likewise.
3480         (rsbsi3_carryin_shift_alt): Likewise.
3481         (andsi_not_shiftsi_si): Enable for TARGET_32BIT.  Separate constant
3482         and register controlled shifts into distinct alternatives.
3483         (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3484         (andsi_not_shiftsi_si_scc): Likewise.
3485         (arm_cmpsi_negshiftsi_si): Likewise.
3486         (not_shiftsi): Remove redundant M constraint from alternative 1.
3487         (not_shiftsi_compare0): Likewise.
3488         (arm_cmpsi_insn): Remove redundant alternative 2.
3489         (cmpsi_shift_swp): Likewise.
3490         (sub_shiftsi): Likewise.
3491         (sub_shiftsi_compare0_scratch): Likewise.
3492         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
3493         (thumb2_cmpsi_neg_shiftsi): Likewise.
3495 2019-10-21  Richard Biener  <rguenther@suse.de>
3497         PR tree-optimization/92162
3498         * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
3499         STMT_VINFO_REDUC_IDX in reduc_info.
3500         * tree-vect-stmts.c (vectorizable_condition): Likewise.
3502 2019-10-21  Richard Biener  <rguenther@suse.de>
3504         * tree-vectorizer.h (_slp_tree::ops): New member.
3505         (SLP_TREE_SCALAR_OPS): New.
3506         (vect_get_slp_defs): Adjust prototype.
3507         * tree-vect-slp.c (vect_free_slp_tree): Release
3508         SLP_TREE_SCALAR_OPS.
3509         (vect_create_new_slp_node): Initialize it.  New overload for
3510         initializing by an operands array.
3511         (_slp_oprnd_info::ops): New member.
3512         (vect_create_oprnd_info): Initialize it.
3513         (vect_free_oprnd_info): Release it.
3514         (vect_get_and_check_slp_defs): Populate the operands array.
3515         Do not swap operands in the IL when not necessary.
3516         (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
3517         Record SLP_TREE_SCALAR_OPS for all invariant nodes.  Also
3518         swap operands in the operands array.  Do not swap operands in
3519         the IL.
3520         (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
3521         (vect_gather_slp_loads): Fix.
3522         (vect_detect_hybrid_slp_stmts): Likewise.
3523         (vect_slp_analyze_node_operations_1): Search for a internal
3524         def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
3525         (vect_slp_analyze_node_operations): Skip ops-only stmts for
3526         the def-type push/pop dance.
3527         (vect_get_constant_vectors): Compute number_of_vectors here.
3528         Use SLP_TREE_SCALAR_OPS and simplify greatly.
3529         (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
3530         (vect_get_slp_defs): Simplify greatly.
3531         * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
3532         (vect_transform_reduction): Likewise.
3533         * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
3534         (vectorizable_call): Likewise.
3535         (vectorizable_operation): Likewise.
3536         (vectorizable_load): Likewise.
3537         (vectorizable_condition): Likewise.
3538         (vectorizable_comparison): Likewise.
3540 2019-10-21  Richard Biener  <rguenther@suse.de>
3542         PR tree-optimization/92161
3543         * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
3544         for reductions.
3546 2019-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3548         * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
3549         (aarch64_rndr): New define_insn.
3550         (aarch64_rndrrs): Likewise.
3551         * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
3552         (TARGET_RNG): Likewise.
3553         * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
3554         argument.
3555         * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
3556         Add fourth argument in prototype.
3557         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
3558         Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
3559         (aarch64_init_rng_builtins): Define.
3560         (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
3561         (aarch64_expand_rng_builtin): Define.
3562         (aarch64_general_expand_builtin): Use IGNORE argument, handle
3563         RNG builtins.
3564         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3565         __ARM_FEATURE_RNG when TARGET_RNG.
3566         * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
3568 2019-10-21  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3570         * tree-vect-stmts (ensure_base_align): Only change alignment if new
3571         alignment is more restrictive.
3573 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3575         * tree-vectorizer.h (vec_info::vector_size): New member variable.
3576         (vect_update_max_nunits): Update comment.
3577         (current_vector_size): Delete.
3578         * tree-vect-stmts.c (current_vector_size): Likewise.
3579         (get_vectype_for_scalar_type): Use vec_info::vector_size instead
3580         of current_vector_size.
3581         (get_mask_type_for_scalar_type): Likewise.
3582         * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3583         * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
3584         (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
3585         (vect_double_mask_nunits, vect_transform_loop): Likewise.
3586         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3587         (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3589 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3591         * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
3592         * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
3593         * tree-vect-stmts.c (supportable_narrowing_operation):  Update call
3594         accordingly.
3596 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3598         * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
3599         * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3600         * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
3601         call accordingly.
3602         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
3604 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3606         * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
3607         a loop_vec_info.
3608         (vect_set_loop_condition_masked): Update call accordingly.
3610 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3612         * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
3613         * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
3614         (simple_integer_narrowing): Update call accordingly.
3615         (vectorizable_conversion): Likewise.
3617 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3619         * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
3620         (vectorizable_call): Update call accordingly.
3622 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3624         * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
3625         * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3626         (duplicate_and_interleave): Update call accordingly.
3627         * tree-vect-loop.c (vectorizable_reduction): Likewise.
3629 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3631         * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
3632         * tree-vect-slp.c (duplicate_and_interleave): Likewise.
3633         (vect_get_constant_vectors): Update call accordingly.
3634         * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
3636 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3638         * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
3639         * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3640         (vect_prologue_cost_for_slp_op): Update call accordingly.
3641         (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
3642         (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
3643         (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
3644         (get_mask_type_for_scalar_type): Likewise.
3645         (vect_get_vector_types_for_stmt): Likewise.
3646         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
3647         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
3648         (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
3649         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
3650         (vect_split_statement, vect_convert_input): Likewise.
3651         (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
3652         (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
3653         (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
3654         (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
3655         (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
3656         (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
3657         (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
3658         (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
3659         (vect_recog_mask_conversion_pattern): Likewise.
3660         (vect_add_conversion_to_pattern): Likewise.
3661         (vect_recog_gather_scatter_pattern): Likewise.
3662         * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
3663         (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
3665 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3667         * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
3668         * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
3669         (vect_check_load_store_mask): Update call accordingly.
3670         (vect_get_mask_type_for_stmt): Likewise.
3671         * tree-vect-patterns.c (check_bool_pattern): Likewise.
3672         (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
3673         (vect_convert_mask_for_vectype): Likewise.
3675 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3677         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
3678         a vec_info.
3679         (vect_recog_dot_prod_pattern): Update call accordingly.
3680         (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
3681         (vect_recog_widen_sum_pattern): Likewise.
3683 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3685         * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
3686         * tree-vect-stmts.c (vect_supportable_shift): Likewise.
3687         * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
3688         accordingly.
3690 2019-10-21  Richard Sandiford  <richard.sandiford@arm.com>
3692         * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
3693         get_vectype_for_scalar_type_and_size instead of
3694         get_vectype_for_scalar_type.
3696 2019-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3698         * common.opt (-fcommon): Fix description.
3700 2019-10-20  Jakub Jelinek  <jakub@redhat.com>
3702         * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
3703         * config/i386/i386.c (ix86_pre_reload_split): New function.
3704         * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
3705         *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
3706         *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
3707         *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
3708         *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
3709         *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
3710         *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
3711         *<shift_insn><dwi>3_doubleword_mask,
3712         *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
3713         *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
3714         *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
3715         *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
3716         *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
3717         Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
3718         * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
3719         *avx2_<code>v8qiv8si2<mask_name>_2,
3720         *sse4_1_<code>v4qiv4si2<mask_name>_2,
3721         *sse4_1_<code>v4hiv4si2<mask_name>_2,
3722         *avx512f_<code>v8qiv8di2<mask_name>_2,
3723         *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
3724         *sse4_1_<code>v2hiv2di2<mask_name>_2,
3725         *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
3726         sse4_2_pcmpistr): Likewise.
3728 2019-10-20  Gerald Pfeifer  <gerald@pfeifer.com>
3730         * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
3731         now defaults to https.
3733 2019-10-20  Jan Hubicka  <hubicka@ucw.cz>
3735         * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
3736         skip non-zero array accesses.
3738 2019-10-20  Richard Sandiford  <richard.sandiford@arm.com>
3740         * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
3741         and return a boolean success value.  Move the allocation and
3742         initialization of the bb_vec_info to...
3743         (vect_slp_bb_region): ...here.  Update call accordingly.
3744         (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
3745         than in vect_slp_analyze_bb_1.
3747 2019-10-20  Richard Sandiford  <richard.sandiford@arm.com>
3749         * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
3750         when processing the given datarefs for the first time and
3751         check_datarefs subsequently.
3752         (vect_slp_bb_region): New function, split out of...
3753         (vect_slp_bb): ...here.  Don't recompute the region bounds and
3754         dataref sets when retrying with a different vector size.
3756 2019-10-19  Jakub Jelinek  <jakub@redhat.com>
3757             UroÅ¡ Bizjak  <ubizjak@gmail.com>
3759         PR target/92140
3760         * config/i386/predicates.md (int_nonimmediate_operand): New special
3761         predicate.
3762         * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
3763         *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
3764         *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
3765         define_insn_and_split patterns.
3767 2019-10-19  Iain Sandoe  <iain@sandoe.co.uk>
3769         * config/rs6000/rs6000.md: Delete out--of-date comment about
3770         special-casing integer loads.
3772 2019-10-19  JeanHeyd Meneide  <phdofthehouse@gmail.com>
3774         * escaped_string.h (escaped_string): New header.
3775         * tree.c (escaped_string): Remove escaped_string class.
3777 2019-10-18  Martin Sebor  <msebor@redhat.com>
3779         PR tree-optimization/92157
3780         * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
3781         compute_string_length to return a negative result.
3783 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3785         * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
3786         (negvsi3, negvdi3): Delete.
3787         (negdi2_compare): Delete.
3789 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3791         * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
3792         operations.
3793         (subdi3_compare1): Delete pattern.
3794         (subvsi3_borrow): New insn pattern.
3795         (subvsi3_borrow_imm): Likewise.
3797 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3799         * config/arm/arm.md (subv<mode>4): Delete.
3800         (subvdi4): New expander pattern.
3801         (subvsi4): Likewise.  Handle some immediate values.
3802         (subvsi3_intmin): New insn pattern.
3803         (subvsi3): Likewise.
3804         (subvsi3_imm1): Likewise.
3805         * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
3806         idioms.
3808 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3810         * config/arm/arm.md (usubvdi4): Allow registers or integers for
3811         incoming operands.  Early split the calculation into SImode
3812         operations.
3813         (usubvsi3_borrow): New insn pattern.
3814         (usubvsi3_borrow_imm): Likewise.
3816 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3818         * config/arm/arm.md (usubv<mode>4): Delete expansion.
3819         (usubvsi4): New pattern.  Allow some immediate values for inputs.
3820         (usubvdi4): New pattern.
3822 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3824         * config/arm/arm.c (arm_select_cc_mode): Allow either the first
3825         or second operand of the PLUS inside a DImode equality test to be
3826         sign-extend when selecting CC_Vmode.
3827         * config/arm/arm.md (addvdi4): Early-split the operation into SImode
3828         instructions.
3829         (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
3830         expand patterns.
3831         (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
3832         (addsi3_cin_vout_0): Likewise.
3833         (adddi3_compareV): Delete.
3835 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3837         * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
3838         (addsi3_compareV_imm_nosum): New insn.  Also add peephole2 patterns
3839         to transform this back into the summation version when that leads
3840         to smaller code.
3842 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3844         * config/arm/arm.md (addv<mode>4): Delete.
3845         (addvsi4): New pattern.  Handle immediate values that the architecture
3846         supports.
3847         (addvdi4): New pattern.
3848         (addsi3_compareV): Rename to ...
3849         (addsi3_compareV_reg): ... this.  Add constraints for thumb2 variants
3850         and use COMPARE rather than NE.
3851         (addsi3_compareV_imm): New pattern.
3852         * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
3853         a signed-overflow check.
3855 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3857         * config/arm/arm-modes.def (CC_ADC): New CC mode.
3858         * config/arm/arm.c (arm_select_cc_mode): Detect selection of
3859         CC_ADCmode.
3860         (maybe_get_arm_condition_code): Handle CC_ADCmode.
3861         * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
3862         with overflow.
3863         (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
3864         expand patterns.
3865         (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
3866         (addsi3_cin_cout_imm_insn): Likewise.
3867         (adddi3_compareC): Delete insn.
3868         * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
3870 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3872         * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
3873         * (uaddv<mode>4): Delete expansion pattern.
3874         (uaddvsi4): New pattern.
3875         (uaddvdi4): Likewise.
3876         (addsi3_compareC): Delete pattern, change callers to use
3877         addsi3_compare_op1.
3878         (addsi3_compare_op1): No-longer anonymous.  Clean up constraints to
3879         reduce the number of alternatives and re-work type attribute handling.
3880         (addsi3_compare_op2): Clean up constraints to reduce the number of
3881         alternatives and re-work type attribute handling.
3882         (compare_addsi2_op0): Likewise.
3883         (compare_addsi2_op1): Likewise.
3885 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3887         * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
3888         * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
3889         for DImode operands.
3890         (arm_gen_dicompare_reg): Remove unreachable expansion code.
3891         (maybe_get_arm_condition_code): Remove support for CC_CZmode and
3892         CC_NCVmode.
3893         * config/arm/arm.md (arm_cmpdi_insn): Delete.
3894         (arm_cmpdi_unsigned): Delete.
3896 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3898         * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
3899         (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
3900         unchanged only if that will be cheaper.
3901         (arm_select_cc_mode): Recognize a swapped comparison that will
3902         be regenerated using RSBS or RSCS.  Relax restriction on selecting
3903         CC_RSBmode.
3904         (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
3905         a constant.
3906         (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
3907         is CC_RSBmode.
3908         (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
3909         as CCmode.
3910         * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
3911         (rscsi3_<CC_EXTEND>out_scratch): New pattern.
3913 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3915         * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
3916         * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
3917         need these modes.
3918         (arm_gen_dicompare_reg): New code to early expand the sub-operations
3919         of EQ, NE, LT, GE, LTU and GEU.
3920         * config/arm/iterators.md (CC_EXTEND): New code attribute.
3921         * config/arm/predicates.md (arm_adcimm_operand): New predicate..
3922         * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
3923         (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
3924         (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
3926 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3928         * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
3929         operand 2.
3930         (cstoredi4): Similarly, but for operand 3.
3931         * config/arm/arm.c (arm_canoncialize_comparison): Allow
3932         canonicalization of unsigned compares with a constant on Arm.
3933         Prefer using const+1 and adjusting the comparison over swapping the
3934         operands whenever the original constant was not valid.
3935         (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
3936         register here.
3937         (arm_validize_comparison): Do not force invalid DImode operands to
3938         registers here.
3940 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3942         * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
3943         return CC_Zmode if comparing against a constant where one word is
3944         zero.
3945         (arm_gen_compare_reg): Split DImode handling to ...
3946         (arm_gen_dicompare_reg): ... here.  Handle equality comparisons
3947         against simple constants.
3948         * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
3950 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3952         * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
3953         (rsbsi3_carryin_shift_alt): Likewise.
3955 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3957         * config/arm/arm.md (negscc_borrow): New pattern.
3958         (mov_negscc): Don't split if the insn would match negscc_borrow.
3959         * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
3960         (thumb2_mov_negscc_strict_it): Likewise.
3962 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3964         * config/arm/arm.c (arm_insn_cost): New function.
3965         (TARGET_INSN_COST): Override default definition.
3967 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3969         * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
3970         borrow operations.
3972 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3974         * config/arm/arm.c (strip_carry_operation): New function.
3975         (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
3976         for SImode.
3978 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3980         * config/arm/predicates.md (arm_carry_operation): New special
3981         predicate.
3982         * config/arm/iterators.md (LTUGEU): Delete iterator.
3983         (cnb): Delete code attribute.
3984         (optab): Delete ltu and geu elements.
3985         * config/arm/arm.md (addsi3_carryin): Renamed from
3986         addsi3_carryin_<optab>.  Remove iterator and use arm_carry_operand.
3987         (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
3988         (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
3989         (addsi3_carryin_clobercc): Similarly.
3990         (addsi3_carryin_shift): Similarly.  Do not allow register shifts in
3991         Thumb2 state.
3993 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
3995         * config/arm/arm.md (arm_subdi3): Delete insn.
3996         (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
3998 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
4000         * config/arm/arm-modes.def (CC_RSB): New CC mode.
4001         * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
4002         * config/arm/arm.c (arm_select_cc_mode): Detect when we should
4003         return CC_RSBmode.
4004         (maybe_get_arm_condition_code): Handle CC_RSBmode.
4005         * config/arm/arm.md (subsi3_carryin): Make this pattern available to
4006         expand.
4007         (subdi3): Rewrite to early-expand the sub-operations.
4008         (rsb_im_compare): New pattern.
4009         (negdi2): Delete.
4010         (negdi2_insn): Delete.
4011         (arm_negsi2): Correct type attribute to alu_imm.
4012         (negsi2_0compare): New insn pattern.
4013         (negsi2_carryin): New insn pattern.
4015 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
4017         * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
4018         operand 2.
4020 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
4022         * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
4023         to match canonical form.
4025 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
4027         * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
4028         (extend<mode>di2): Likewise.
4030 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
4032         * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
4033         * config/arm/arm.c (arm_decompose_di_binop): New function.
4034         * config/arm/arm.md (adddi3): Also accept any const_int for op2.
4035         If not generating Thumb-1 code, decompose the operation into 32-bit
4036         pieces.
4037         * add0si_carryin_<optab>: New pattern.
4039 2019-10-18  Richard Earnshaw  <rearnsha@arm.com>
4041         * arm.md (adddi3): Only accept register operands.
4042         (arm_adddi3): Convert to simple insn with no split.  Do not accept
4043         constants.
4044         (adddi_sesidi_di): Delete patern.
4045         (adddi_zesidi_di): Likewise.
4046         (uaddv<mode>4): Use LTU as condition for branch.
4047         (adddi3_compareV): Convert to simple insn with no split.
4048         (addsi3_compareV_upper): Delete pattern.
4049         (adddi3_compareC): Convert to simple insn with no split.  Correct
4050         flags setting expression.
4051         (addsi3_compareC_upper): Delete pattern.
4052         (addsi3_compareC): Correct flags setting expression.
4053         (subdi3_compare1): Convert to simple insn with no split.
4054         (subsi3_carryin_compare): Delete pattern.
4055         (arm_subdi3): Convert to simple insn with no split.
4056         (subdi_zesidi): Delete pattern.
4057         (subdi_di_sesidi): Delete pattern.
4058         (subdi_zesidi_di): Delete pattern.
4059         (subdi_sesidi_di): Delete pattern.
4060         (subdi_zesidi_zesidi): Delete pattern.
4061         (negvdi3): Use s_register_operand.
4062         (negdi2_compare): Convert to simple insn with no split.
4063         (negdi2_insn): Likewise.
4064         (negsi2_carryin_compare): Delete pattern.
4065         (negdi_zero_extendsidi): Delete pattern.
4066         (arm_cmpdi_insn): Convert to simple insn with no split.
4067         (negdi2): Don't call gen_negdi2_neon.
4068         * config/arm/neon.md (adddi3_neon): Delete pattern.
4069         (subdi3_neon): Delete pattern.
4070         (negdi2_neon): Delete pattern.
4071         (splits for negdi2_neon): Delete splits.
4073 2019-10-18  Jakub Jelinek  <jakub@redhat.com>
4075         PR middle-end/92153
4076         * ggc-page.c (release_pages): Read g->alloc_size before free rather
4077         than after it.
4079 2019-10-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4081         * config/arm/t-multilib: Add rule to regenerate mutlilib header file
4082         with any change to t-multilib, t-aprofile and t-rmprofile.  Also add
4083         new multilib variants and new mappings.
4085 2019-10-18  Georg-Johann Lay  <avr@gjlay.de>
4087         PR target/86040
4088         * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
4090 2019-10-18  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4091             Richard Sandiford  <richard.sandiford@arm.com>
4093         PR target/86753
4094         * tree-vectorizer.h (scalar_cond_masked_key): New struct,
4095         and define hashmap traits for it.
4096         (loop_vec_info::scalar_cond_masked_set): New member.
4097         (vect_record_loop_mask): Adjust prototype.
4098         * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
4099         Implement method.
4100         * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
4101         vect_record_loop_mask.
4102         (vectorizable_live_operation): Likewise.
4103         (vect_record_loop_mask): New param scalar_mask. Add entry
4104         cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
4105         * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
4106         Pass it as last arg to vect_record_loop_mask.
4107         (vectorizable_call): Pass scalar_mask as last arg to
4108         vect_record_loop_mask.
4109         (vectorizable_store): Likewise.
4110         (vectorizable_load): Likewise.
4111         (vectorizable_condition): Check if another part of vectorized code
4112         applies loop_mask to condition or to it's inverse, and if yes,
4113         apply loop_mask to result of vector comparison.
4115 2019-10-17  John David Anglin  <danglin@gcc.gnu.org>
4117         * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
4119 2019-10-18  Jakub Jelinek  <jakub@redhat.com>
4121         PR tree-optimization/92056
4122         * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
4123         before calling compute_builtin_object_size.
4125 2019-10-17  Iain Sandoe  <iain@sandoe.co.uk>
4127         PR target/65342
4128         * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
4129         (movdi_low_st): Delete.
4130         * config/rs6000/rs6000.c
4131         (darwin_rs6000_legitimate_lo_sum_const_p): New.
4132         (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
4133         * config/rs6000/rs6000.md (movsi_low): Delete.
4135 2019-10-17  Jason Merrill  <jason@redhat.com>
4137         * gimplify.h (get_initialized_tmp_var): Add default argument to
4138         post_p.
4139         * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
4140         NULL post_p argument.
4141         * targhooks (std_gimplify_va_arg_expr): Likewise.
4143 2019-10-17  Richard Biener  <rguenther@suse.de>
4145         * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
4146         (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
4147         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
4148         initialize STMT_VINFO_VEC_COND_REDUC_CODE.
4149         * tree-vect-loop.c (vect_is_simple_reduction): Set
4150         STMT_VINFO_REDUC_CODE.
4151         (vectorizable_reduction): Remove dead and redundant code, use
4152         STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
4154 2019-10-17  Georg-Johann Lay  <avr@gjlay.de>
4156         Fix breakage introduced by r276985.
4158         * config/avr/avr.c (avr_option_override): Remove set of
4159         PARAM_ALLOW_STORE_DATA_RACES.
4160         * common/config/avr/avr-common.c (avr_option_optimization_table)
4161         [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
4163 2019-10-17  H.J. Lu  <hongjiu.lu@intel.com>
4165         * config/i386/i386.h (processor_costs): Add clear_ratio.
4166         (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
4167         * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
4168         of 6 and move_ratio in all cost models.
4170 2019-10-17  Richard Biener  <rguenther@suse.de>
4172         * tree-vect-loop.c (check_reduction_path): Compute reduction
4173         operation here.
4174         (vect_is_simple_reduction): Remove special-case of single-stmt
4175         reduction path detection.
4177 2019-10-17  Richard Earnshaw  <rearnsha@arm.com>
4179         * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
4181 2019-10-17  Yuliang Wang  <yuliang.wang@arm.com>
4183         * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
4184         (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
4185         (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
4186         (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
4187         New combine patterns.
4188         * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
4189         above.
4190         (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
4192 2019-10-17  Aldy Hernandez  <aldyh@redhat.com>
4194         * tree-vrp.c (value_range_base::dump): Display +INF for both
4195         pointers and integers when appropriate.
4197 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4199         * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
4200         when to use versioning threshold.
4202 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4204         * tree-vect-loop.c (determine_peel_for_niter): New function contained
4205         outlined code from ...
4206         (vect_analyze_loop_2): ... here.
4208 2019-10-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4210         * tree-vect-loop.c (vect_transform_loop): Move code from here...
4211         * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
4212         * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
4214 2019-10-17  Richard Biener  <rguenther@suse.de>
4216         * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
4217         (vect_is_simple_reduction): Move all validity checks ...
4218         (vectorizable_reduction): ... here.  Compute whether we
4219         need a fold-left reduction here.
4220         * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
4221         both overloads, check needs_fold_left_reduction_p directly.
4222         * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
4224 2019-10-17  Richard Biener  <rguenther@suse.de>
4226         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
4227         TARGET_MEM_REF creation.
4229 2019-10-17  Richard Biener  <rguenther@suse.de>
4231         PR tree-optimization/92129
4232         * tree-vect-loop.c (vectorizable_reduction): Also fail
4233         on GIMPLE_SINGLE_RHS.
4235 2019-10-17  Jakub Jelinek  <jakub@redhat.com>
4237         PR tree-optimization/92056
4238         * tree-object-size.c (cond_expr_object_size): Return early if then_
4239         processing resulted in unknown size.
4241         PR tree-optimization/92115
4242         * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
4243         temporary if it could trap.
4245 2019-10-17  Richard Biener  <rguenther@suse.de>
4247         PR debug/91887
4248         * dwarf2out.c (gen_formal_parameter_die): Also try to match
4249         context_die against a DW_TAG_GNU_formal_parameter_pack parent.
4251 2019-10-16  Jakub Jelinek  <jakub@redhat.com>
4253         * tree-ssa-strlen.c (maybe_invalidate): Use
4254         HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
4256 2019-10-16  Andrew Burgess  <andrew.burgess@embecosm.com>
4257             Jim Wilson  <jimw@sifive.com>
4259         * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
4260         regs to SIBCALL_REGS.
4261         * config/riscv/riscv.c (riscv_regno_to_class): Change argument
4262         passing regs to SIBCALL_REGS.
4264 2019-10-16  Martin Sebor  <msebor@redhat.com>
4266         PR tree-optimization/83821
4267         * tree-ssa-strlen.c (maybe_invalidate): Add argument.  Consider
4268         the length of a string when available.
4269         (handle_builtin_memset) Add argument.
4270         (handle_store, strlen_check_and_optimize_call): Same.
4271         (check_and_optimize_stmt): Same.  Pass it to callees.
4273 2019-10-16  Martin Sebor  <msebor@redhat.com>
4275         PR tree-optimization/91996
4276         * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
4277         information.
4278         (compare_nonzero_chars): Add an overload.
4279         (count_nonzero_bytes): Add an argument.  Call overload above.
4280         Handle non-constant lengths in some range.
4281         (handle_store): Add an argument.
4282         (check_and_optimize_stmt): Pass an argument to handle_store.
4284 2019-10-16  Richard Earnshaw  <rearnsha@arm.com>
4286         * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
4288 2019-10-16  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
4290         * config/mips/mips.c (mips_expand_builtin_insn): Force the
4291         operands which correspond to the same input-output register to
4292         have the same pseudo assigned to them.
4294 2019-10-16  Ilya Leoshkevich  <iii@linux.ibm.com>
4296         * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
4298 2019-10-16  Wilco Dijkstra  <wdijkstr@arm.com>
4300         * config/aarch64/aarch64.c (aarch64_classify_symbol):
4301         Apply reasonable limit to symbol offsets.
4303 2019-10-16  Richard Biener  <rguenther@suse.de>
4305         * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
4306         (vect_is_simple_reduction): Delay checking to
4307         vectorizable_reduction and relax the checking.
4308         (vectorizable_reduction): Check we have a simple use.  Check
4309         for bogus condition reductions.
4310         * tree-vect-stmts.c (vect_transform_stmt): Make sure we
4311         are looking at the last stmt in a pattern sequence when
4312         filling in backedge PHI values.
4314 2019-10-16  Peter Bergner <bergner@linux.ibm.com>
4315             Jiufu Guo  <guojiufu@linux.ibm.com>
4317         PR target/70010
4318         * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
4319         the callee explicitly disables some isa_flags the caller is using.
4321 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
4323         * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
4325 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
4327         * genmodes.c (mode_data::order): New field.
4328         (blank_mode): Update accordingly.
4329         (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
4330         (make_vector_modes): Likewise.
4331         (VECTOR_MODES): Update use accordingly.
4332         (cmp_modes): Sort by the new order field ahead of sorting by size.
4333         * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
4334         (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
4335         * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
4336         (aarch64_classify_vector_mode): Handle the new partial modes.
4337         (aarch64_vl_bytes): New function.
4338         (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
4339         when counting the number of registers in an SVE mode.
4340         (aarch64_class_max_nregs): Likewise.
4341         (aarch64_hard_regno_mode_ok): Don't allow partial vectors
4342         in registers yet.
4343         (aarch64_classify_address): Treat partial vectors analogously
4344         to full vectors.
4345         (aarch64_print_address_internal): Consolidate the printing of
4346         MUL VL addresses, using aarch64_vl_bytes as the number of
4347         bytes represented by "VL".
4348         (aarch64_vector_mode_supported_p): Reject partial vector modes.
4350 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
4352         * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
4353         rather than known_lt when choosing frame layouts.
4355 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
4357         * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
4358         that all the adjustments add up to the full frame size.
4359         Use crtl->outgoing_args_size directly as the final adjustment
4360         where appropriate.
4362 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
4364         * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
4365         "frame" reference instead of always referring directly to
4366         "cfun->machine->frame".
4368 2019-10-16  Richard Biener  <rguenther@suse.de>
4370         PR tree-optimization/92119
4371         * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
4372         against missing bswap lhs.
4374 2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>
4376         PR middle-end/92033
4377         * poly-int.h (constant_lower_bound_with_limit): New function.
4378         (constant_upper_bound_with_limit): Likewise.
4379         * doc/poly-int.texi: Document them.
4380         * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
4381         into the worst-case INTEGER_CST bounds.
4383 2019-10-16  Feng Xue  <fxue@os.amperecomputing.com>
4385         PR ipa/91088
4386         * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
4387         * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
4388         * ipa-predicat.h (struct expr_eval_op): New struct.
4389         (expr_eval_ops): New typedef.
4390         (struct condition): Add type and param_ops fields, remove size field.
4391         (add_condition): Replace size parameter with type parameter, add
4392         param_ops parameter.
4393         * ipa-predicat.c (expr_eval_ops_equal_p): New function.
4394         (predicate::add_clause): Add comparisons on type and param_ops.
4395         (dump_condition): Add debug dump for param_ops.
4396         (remap_after_inlining): Adjust call arguments to add_condition.
4397         (add_condition): Replace size parameter with type parameter, add
4398         param_ops parameter. Unshare constant value used in conditions.
4399         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
4400         parameter expressions using param_ops.
4401         (decompose_param_expr):  New function.
4402         (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
4403         to replace call to unmodified_parm_or_parm_agg_item.
4404         (set_switch_stmt_execution_predicate): Likewise.
4405         (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
4406         with type.
4407         (inline_read_section): Read param_ops from summary stream.
4408         (ipa_fn_summary_write): Write param_ops to summary stream.
4410 2019-10-15  Segher Boessenkool  <segher@kernel.crashing.org>
4412         PR rtl-optimization/92107
4413         * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
4414         expression written.
4416 2019-10-15  Iain Sandoe  <iain@sandoe.co.uk>
4418         * config/darwin.c: Update description of fix and continue.
4420 2019-10-15  Iain Sandoe  <iain@sandoe.co.uk>
4422         * config/darwin.c (darwin_binds_local_p): Update to call
4423         default_binds_local_p_3 () directly. amend comments.
4425 2019-10-15  Richard Biener  <rguenther@suse.de>
4427         * lto-streamer-out.c (lto_variably_modified_type_p): New.
4428         (tree_is_indexable): Use it.
4429         * tree-streamer-out.c (pack_ts_type_common_value_fields):
4430         Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
4431         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
4433 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4435         * config/msp430/msp430.md (zero_extendqipsi2): New.
4436         (zero_extendqisi2): Optimize case where src register and base dst
4437         register are the same.
4438         (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
4439         (zero_extendpsisi2): Optimize r->m case.
4440         Add unnamed insn patterns to catch insns combine searches for when
4441         optimizing pointer manipulation.
4443 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4445         * config/msp430/msp430.md: Group zero_extend* insns together.
4447 2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4449         * config/msp430/constraints.md: Allow post_inc operand for "Ya"
4450         constraint.
4451         * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
4452         POST_INC.
4453         (msp430_subreg): Likewise.
4454         (msp430_split_addsi): Likewise.
4455         (msp430_print_operand_addr): Likewise.
4456         * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
4457         (USE_STORE_POST_INCREMENT): Define.
4458         * config/msp430/msp430.md: Use the msp430_general_dst_operand or
4459         msp430_general_dst_nonv_operand predicates for the lvalues of insns.
4460         * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
4461         (msp430_general_dst_operand): New.
4462         (msp430_general_dst_nonv_operand): New.
4463         (msp430_nonsubreg_operand): Remove.
4464         (msp430_nonsubreg_dst_operand): New.
4465         (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
4466         of defunct msp430_nonsubreg_operand.
4467         (msp430_nonsubregnonpostinc_or_imm_operand): New.
4469 2019-10-15  Richard Biener  <rguenther@suse.de>
4471         PR tree-optimization/91929
4472         * tree-ssa-pre.c (pre_expr_d::loc): New member.
4473         (get_or_alloc_expr_for_name): Initialize it.
4474         (get_or_alloc_expr_for_constant): Likewise.
4475         (phi_translate_1): Copy it.
4476         (create_expression_by_pieces): Use the original location
4477         of the expression for the inserted stmt.
4478         (compute_avail): Record the location of the stmt for the
4479         expressions created.
4481 2019-10-15  Richard Sandiford  <richard.sandiford@arm.com>
4483         * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
4484         before using tree_to_uhwi.
4486 2019-10-15  Ilya Leoshkevich  <iii@linux.ibm.com>
4488         * config/s390/s390.md: Run %a0:DI splitters only after reload.
4490 2019-10-15  Richard Biener  <rguenther@suse.de>
4492         PR tree-optimization/92094
4493         * tree-vect-loop.c (vectorizable_reduction): For nested cycles
4494         do not adjust the reduction definition def type.
4495         * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
4496         defines the latch argument of the PHI.
4498 2019-10-15  Hongyu Wang  <hongtao.wang@intel.com>
4500         PR target/92035
4501         * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
4502         _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
4503         _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
4504         _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
4505         _mm_maskz_roundscale_round_sd): New intrinsics.
4506         (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
4507         __builtin_ia32_rndscales?_mask_round builtins instead of
4508         __builtin_ia32_rndscales?_round.
4509         * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
4510         __builtin_ia32_rndscalesd_round): Remove.
4511         (__builtin_ia32_rndscaless_mask_round,
4512         __builtin_ia32_rndscalesd_mask_round): New intrinsics.
4513         * config/i386/sse.md
4514         (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
4515         (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
4516          ... this, adjust and add subst atrributes to make it maskable.
4518 2019-10-15  Richard Biener  <rguenther@suse.de>
4520         PR middle-end/92046
4521         * common.opt (fallow-store-data-races): New.
4522         * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
4523         * params.h (ALLOW_STORE_DATA_RACES): Likewise.
4524         * doc/invoke.texi (fallow-store-data-races): Document.
4525         (--param allow-store-data-races): Remove docs.
4526         * opts.c (default_options_table): Enable -fallow-store-data-races
4527         at -Ofast.
4528         (default_options_optimization): Do not enable --param
4529         allow-store-data-races at -Ofast.
4530         * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
4531         instead of PARAM_ALLOW_STORE_DATA_RACES.
4532         * tree-ssa-loop-im.c (execute_sm): Likewise.
4534 2019-10-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4536         PR tree-optimization/92085
4537         * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
4538         instead of calling it unconditionally after
4539         delete_dead_or_redundant_assignment and fix indentation.
4541 2019-10-15  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
4543         * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
4544         TARGET_VFP_DOUBLE.
4545         (*fmsub<SDF:mode>4): Likewise.
4546         *fnmsub<SDF:mode>4): Likewise.
4547         (*fnmadd<SDF:mode>4): Likewise.
4549 2019-10-14 Joel Hutton  <Joel.Hutton@arm.com>
4551         * doc/tree-ssa.texi: Update renamed macro name.
4553 2019-10-14  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
4555         * config/mips/mips.c (mips_cannot_force_const_mem): Reject
4556         vector constants.
4558 2019-10-14  Iain Sandoe  <iain@sandoe.co.uk>
4560         * config/darwin.c: Use unsigned ints for the picbase label
4561         counters, initialise the vars explicitly.
4562         (update_pic_label_number_if_needed): Move a variable declaration
4563         to where it's needed.
4564         (machopic_output_function_base_name): Use a more strict checking
4565         assert, and and unsigned int for the picbase label counter.
4566         (machopic_get_function_picbase): Likewise.
4568 2019-10-14  Richard Biener  <rguenther@suse.de>
4570         PR middle-end/92046
4571         * dse.c (scan_insn): Use param max_active_local_stores.
4572         (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
4573         based on optimization level.
4574         * loop-invariant.c (move_loop_invariants): Adjust
4575         LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
4576         * opts.c (default_options_optimization): Do not adjust
4577         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
4578         LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
4580 2019-10-14  Wilco Dijkstra  <wdijkstr@arm.com>
4582         * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
4584 2019-10-14  Wilco Dijkstra  <wdijkstr@arm.com>
4586         * config/arm/arm.c (arm_option_override): Don't override sched
4587         pressure algorithm.
4589 2019-10-14  Richard Biener  <rguenther@suse.de>
4591         PR tree-optimization/92069
4592         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
4593         cycles do not set vect_nested_cycle on the latch definition.
4595 2019-10-14  Richard Sandiford  <richard.sandiford@arm.com>
4597         * function-abi.h (expr_callee_abi): Declare.
4598         * function-abi.cc (expr_callee_abi): New function.
4600 2019-10-14  Aldy Hernandez  <aldyh@redhat.com>
4602         * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
4603         into [1,MAX].
4604         * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
4605         non-zero being represented as [1,MAX].
4607 2019-10-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
4609         * tree-sra.c (dump_access): Add missing braces.
4611 2019-10-13  Iain Sandoe  <iain@sandoe.co.uk>
4613         * config/darwin.c (machopic_indirection_name): Rework the
4614         function to emit linker-visible symbols only for indirections
4615         in the data section.  Clean up the code and update comments.
4617 2019-10-13  Iain Sandoe  <iain@sandoe.co.uk>
4619         * config/darwin.c (machopic_indirect_data_reference): Remove
4620         redundant code.
4622 2019-10-13  Nathan Sidwell  <nathan@acm.org>
4624         * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
4626 2019-10-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4628         * doc/sourcebuild.texi (Test Directives, Add Options): Remove
4629         c99_runtime.
4631 2019-10-12  Jan Hubicka  <hubicka@ucw.cz>
4633         * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
4634         so non-virutal are before virutals.
4635         (output_function): Avoid body modifications.
4637 2019-10-12  John David Anglin  <danglin@gcc.gnu.org>
4639         * config/pa/pa.c (pa_output_call): Load descriptor address to register
4640         %r22.  Load function address before global pointer.
4641         (pa_attr_length_indirect_call): Adjust length of inline versions of
4642         $$dyncall.
4643         (pa_output_indirect_call): Remove fast inline version of $$dyncall
4644         before normal cases.  Update inline $$dyncall sequences to preserve
4645         function descriptor address in register %r22.
4646         (TRAMPOLINE_CODE_SIZE): Adjust.
4647         (pa_asm_trampoline_template): Revise 32-bit trampoline.  Don't assume
4648         register %r22 contains trampoline address.
4649         (pa_trampoline_init): Adjust offsets.
4650         (pa_trampoline_adjust_address): Likewise.
4651         * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
4653 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
4655         PR target/67183
4656         * config/darwin.c (machopic_indirection): New field to flag
4657         non-lazy-symbol-pointers in the data section.
4658         (machopic_indirection_name): Compute if an indirection should
4659         appear in the data section.
4660         (machopic_output_data_section_indirection): New callback split
4661         from machopic_output_indirection.
4662         (machopic_output_stub_indirection): Likewise.
4663         (machopic_output_indirection): Retain the code for non-lazy
4664         symbol pointers in their regular section.
4665         (machopic_finish): Use the new callbacks to order the indirection
4666         output.
4668 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
4670         * config/darwin-protos.h (machopic_finish): Delete.
4671         * config/darwin.c (machopic_finish): Make static.
4673 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
4675         * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
4676         sections when building kernel extension code.
4678 2019-10-12  Palmer Dabbelt  <palmer@sifive.com>
4680         * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
4681         later standard."
4683 2019-10-12  John David Anglin  <danglin@gcc.gnu.org>
4685         * config/pa/pa.c (pa_option_override): Remove trailing comma
4686         from warning.
4688 2019-10-12  Jakub Jelinek  <jakub@redhat.com>
4690         PR middle-end/92063
4691         * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
4692         <case VEC_COND_EXPR>: Return false with *handled = false.
4693         (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
4694         recursing on the first operand.
4695         * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
4696         instead of tree_could_trap_p.
4697         * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
4699 2019-10-11  Jim Wilson  <jimw@sifive.com>
4701         PR rtl-optimization/91860
4702         * combine.c (subst): If new_rtx is a constant, also check for
4703         SIGN_EXTEND when deciding whether to call simplify_unary_operation.
4705 2019-10-11  Richard Sandiford  <richard.sandiford@arm.com>
4707         * expr.c (store_expr): Use rtx_to_poly_int64 rather than
4708         INTVAL when calling store_bit_field.
4710 2019-10-11  Wilco Dijkstra  <wdijkstr@arm.com>
4712         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
4713         size.
4715 2019-10-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4717         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
4718         vectorizable_live_operation.
4719         (vectorizable_live_operation): Adjust parameters.
4720         * tree-vect-stmts.c (vect_init_vector,
4721         vect_gen_widened_results_half): Fix typo in function comment.
4722         (can_vectorize_live_stmts): Adjust function comment.
4723         Adjust parameters.  Adjust call to vectorizable_live_operation.
4724         (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
4725         (vect_transform_stmt): Adjust function comment.  Adjust call to
4726         can_vectorize_live_stmts.
4727         * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
4729 2019-10-11  Richard Biener  <rguenther@suse.de>
4731         PR tree-optimization/90883
4732         PR tree-optimization/91091
4733         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
4734         alias-sets both for recording VN table entries and continuing
4735         walking after translating through copies.  Handle same-sized
4736         reads from SSA names by returning the plain SSA name.
4737         (eliminate_dom_walker::eliminate_stmt): Properly handle
4738         non-size precision stores in redundant store elimination.
4740 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
4742         * ggc-page.c (release_pages): Output statistics when !quiet_flag.
4743         (ggc_collect): Dump later to not interfere with release_page dump.
4744         (ggc_trim): New function.
4745         * ggc-none.c (ggc_trim): New.
4746         * ggc.h (ggc_trim): Declare.
4748 2019-10-11  Richard Biener  <rguenther@suse.de>
4750         PR tree-optimization/92066
4751         PR tree-optimization/92046
4752         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4753         Fix bogus cost model check.
4755 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
4757         * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
4758         (LANG_HOOKS_DECLS): Add it.
4759         * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
4760         update comment for omp_is_optional_argument.
4761         * omp-general.c (omp_is_allocatable_or_ptr): New.
4762         * omp-general.h (omp_is_allocatable_or_ptr): Declare.
4763         * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
4764         Fortran's optional arguments and allocatable/pointer scalars
4765         with use_device_addr.
4767 2019-10-11  Ilya Leoshkevich  <iii@linux.ibm.com>
4769         PR target/77918
4770         * config/s390/2827.md: Add new opcodes.
4771         * config/s390/2964.md: Likewise.
4772         * config/s390/3906.md: Likewise.
4773         * config/s390/8561.md: Likewise.
4774         * config/s390/s390-builtins.def (s390_vfchesb): Use
4775         the new vec_cmpgev4sf_quiet_nocc.
4776         (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
4777         (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
4778         (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
4779         (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
4780         (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
4781         (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
4782         (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
4783         * config/s390/s390-modes.def (CCSFPS): New mode.
4784         * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
4785         (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
4786         (s390_branch_condition_mask): Reuse CCS for CCSFPS.
4787         (s390_expand_vec_compare): Use non-signaling patterns where
4788         necessary.
4789         (s390_reverse_condition): Support CCSFPS.
4790         * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
4791         * config/s390/vector.md: (VFCMP_HW_OP): Remove.
4792         (asm_fcmp_op): Likewise.
4793         (*smaxv2df3_vx): Use pattern for quiet comparison.
4794         (*sminv2df3_vx): Likewise.
4795         (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
4796         (*vec_cmpeq<mode>_quiet_nocc): New pattern.
4797         (vec_cmpgt<mode>_quiet_nocc): Likewise.
4798         (vec_cmplt<mode>_quiet_nocc): New expander.
4799         (vec_cmpge<mode>_quiet_nocc): New pattern.
4800         (vec_cmple<mode>_quiet_nocc): New expander.
4801         (*vec_cmpeq<mode>_signaling_nocc): New pattern.
4802         (*vec_cmpgt<mode>_signaling_nocc): Likewise.
4803         (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
4804         (*vec_cmpge<mode>_signaling_nocc): Likewise.
4805         (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
4806         (vec_cmpungt<mode>): New expander.
4807         (vec_cmpunge<mode>): Likewise.
4808         (vec_cmpuneq<mode>): Use quiet patterns.
4809         (vec_cmpltgt<mode>): Allow only on z14+.
4810         (vec_cmpordered<mode>): Use quiet patterns.
4811         (vec_cmpunordered<mode>): Likewise.
4812         (VEC_CMP_EXPAND): Add ungt and unge.
4814 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
4816         * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
4817         parameter.
4818         * lto-streamer-out.c: Include tree-dfa.h.
4819         (output_cfg): Do not use cfun.
4820         (lto_prepare_function_for_streaming): New.
4821         (output_function): Do not push cfun; do not initialize loop optimizer.
4822         * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
4823         * passes.c (ipa_write_summaries): Use it.
4824         (ipa_write_optimization_summaries): Do not modify bodies.
4825         * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
4826         * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
4827         * tree-ssa-dse.c (pass_dse::execute): Update use of
4828         renumber_gimple_stmt_uids.
4829         * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
4831 2019-10-11  Kewen Lin  <linkw@gcc.gnu.org>
4833         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
4834         vec_promote_demote cost to 1 for non-Power7 VSX architectures.
4836 2019-10-10  Joseph Myers  <joseph@codesourcery.com>
4838         * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
4839         macros.
4840         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
4841         Also define DFP macros for these conditions.
4842         [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
4843         DEC128_SUBNORMAL_MIN): Do not define.
4844         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
4845         (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
4847 2019-10-10  Xiong Hu Luo  <luoxhu@linux.ibm.com>
4848             Sandra Loosemore  <sandra@codesourcery.com>
4850         PR middle-end/26241
4851         * doc/lto.texi (IPA): Reference to the IPA passes.
4852         * doc/passes.texi (Pass manager): Add node IPA passes and
4853           description for each IPA pass.
4855 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
4857         * ipa-reference.c: Do not include splay-tree.h
4858         (reference_vars_to_consider): Turn to hash map.
4859         (get_static_name, ipa_init, analyze_function, propagate,
4860         stream_out_bitmap, ipa_reference_write_optimization_summary,
4861         ipa_reference_write_optimization_summary): Update.
4863 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
4865         * ipa-reference.c (propagate): Fix releasing of IPA summaries.
4867 2019-10-10  Iain Sandoe  <iain@sandoe.co.uk>
4869         * config/darwin.c: Lookup Objective C metadata and force indirection
4870         for IVAR refs.
4872 2019-10-10  Michael Meissner  <meissner@linux.ibm.com>
4874         * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
4875         addresses.
4876         (mem_operand_gpr): Add check for prefixed addresses.
4877         (mem_operand_ds_form): Add check for prefixed addresses.
4878         (rs6000_legitimate_offset_address_p): If we support prefixed
4879         addresses, check for a 34-bit offset instead of 16-bit.
4880         (rs6000_legitimate_address_p): Add check for prefixed addresses.
4881         Do not allow load/store with update if the address is prefixed.
4882         (rs6000_mode_dependent_address):  If we support prefixed
4883         addresses, check for a 34-bit offset instead of 16-bit.
4885 2019-10-10  Ilya Leoshkevich  <iii@linux.ibm.com>
4887         PR target/77918
4888         * config/s390/vector.md (vcond_comparison_operator): New
4889         predicate.
4890         (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
4892 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
4894         PR 87488
4895         * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
4896         -D.
4897         * configure.ac (--with-documentation-root-url): New option.
4898         * configure: Regenerate.
4899         * diagnostic-format-json.cc (json_end_diagnostic): If there is an
4900         option URL, add it as a new string field of the diagnostic option.
4901         * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
4902         (print_option_information): If get_option_url is non-NULL, call
4903         it, and if the result is non-NULL, potentially emit an escape
4904         sequence to markup the option text with the resulting URL.
4905         * diagnostic.h (diagnostic_context::get_option_url): New callback.
4906         * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
4907         example of JSON output.
4908         * opts-diagnostic.h (get_option_url): New decl.
4909         * opts.c (get_option_url): New function.
4910         * toplev.c (general_init): Initialize the get_option_url callback.
4912 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
4914         PR 87488
4915         * common.opt (fdiagnostics-urls=): New option.
4916         (diagnostic-url.h): Add SourceInclude.
4917         (diagnostic_url_rule): New enum.
4918         * diagnostic-color.c: Include "diagnostic-url.h".
4919         (diagnostic_urls_enabled_p): New function.
4920         * diagnostic-url.h: New file.
4921         * diagnostic.c: Include "diagnostic-url.h".
4922         (diagnostic_urls_init): New function.
4923         * diagnostic.h (diagnostic_urls_init): New decl.
4924         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
4925         -fdiagnostics-urls to the list.
4926         (-fdiagnostics-urls): New option.
4927         * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
4928         (driver::global_initializations): Call diagnostic_urls_init.
4929         * opts-global.c (init_options_once): Likewise.
4930         * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
4931         * pretty-print.c (pretty_printer::pretty_printer): Initialize
4932         show_urls.
4933         (pp_begin_url): New function.
4934         (pp_end_url): New function.
4935         (selftest::test_urls): New selftest.
4936         (selftest::pretty_print_c_tests): Call it.
4937         * pretty-print.h (pretty_printer::show_urls): New field.
4938         (pp_begin_url): New decl.
4939         (pp_end_url): New decl.
4941 2019-10-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4943         PR target/92022
4944         * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
4946 2019-10-10  Oleg Endo  <olegendo@gcc.gnu.org>
4948         PR target/88630
4949         * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
4950         * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
4951         also for TARGET_FPU_SH4_300.
4952         (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
4953         TARGET_SH4_300.
4954         * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
4955         (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
4956         (*negsf2_i): Split into ...
4957         (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
4958         (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
4959         (**abssf2_i): Split into ...
4960         (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
4961         (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
4962         (*negdf2_i): Split into ...
4963         (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
4964         (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
4965         (**abssf2_i): Split into ...
4966         (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
4968 2019-10-10  Richard Biener  <rguenther@suse.de>
4970         PR middle-end/92046
4971         * opts.c (finish_options): Do not influence global --params
4972         from options that are adjustable per function.
4973         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4974         Apply --param adjustment based on active cost-model.
4975         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
4976         further store-sinking when vectorization or if-conversion
4977         are not enabled.
4979 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
4981         PR middle-end/92037
4982         * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
4983         rather than ggc_alloc_cleared to alloc symbol table.
4984         * toplev.c (general_init): Likewise.
4985         * cgraph.h (symbol_table): Explicitly construct every field.
4987 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
4989         * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
4990         (PF_Z15): ... this.
4991         * config.gcc: Add z15 as option for --with-arch and --with-tune
4992         configure switches.
4993         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
4994         error reporting for unsupported builtins.
4995         * config/s390/s390-opts.h (enum processor_type): Rename
4996         PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
4997         * config/s390/8561.md: Rename arch13 to z15 throughout the file.
4998         * config/s390/driver-native.c (s390_host_detect_local_cpu):
4999         Likewise.
5000         * config/s390/s390-builtins.def: Likewise.
5001         * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
5002         (s390_expand_builtin): Add missing check for unsupported builtins.
5003         (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
5004         (s390_rtx_costs): Likewise.
5005         (s390_get_sched_attrmask): Rename arch13 to z15.
5006         (s390_get_unit_mask): Likewise.
5007         (s390_is_fpd): Likewise.
5008         (s390_is_fxd): Likewise.
5009         * config/s390/s390.h (enum processor_flags): Likewise.
5010         * config/s390/s390.md: Likewise.
5011         * config/s390/vector.md: Likewise.
5012         * config/s390/vx-builtins.md: Likewise.
5013         * config/s390/s390.opt: Add z15 to processor_type value.
5015 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
5017         PR target/91035
5018         * config/s390/s390-protos.h (s390_output_split_stack_data): Add
5019         prototype.
5020         * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
5021         ("split_stack_data", "split_stack_call")
5022         ("split_stack_call_<mode>", "split_stack_cond_call")
5023         ("split_stack_cond_call_<mode>"): Remove.
5024         ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
5025         insn definition.
5026         * config/s390/s390.c (s390_output_split_stack_data): New function.
5027         (s390_expand_split_stack_prologue): Use the merged expander.
5029 2019-10-09  Martin Sebor  <msebor@redhat.com>
5031         PR tree-optimization/90879
5032         * builtins.c (check_access): Avoid using maxbound when null.
5033         * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
5034         * doc/invoke.texi (-Wstring-compare): Document new warning option.
5035         * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
5036         conditional.
5037         (get_range_strlen): Overwrite initial maxbound when non-null.
5038         * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
5039         changes.
5040         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
5041         (used_only_for_zero_equality): New function.
5042         (handle_builtin_memcmp): Call it.
5043         (determine_min_objsize): Return an integer instead of tree.
5044         (get_len_or_size, strxcmp_eqz_result): New functions.
5045         (maybe_warn_pointless_strcmp): New function.
5046         (handle_builtin_string_cmp): Call it.  Fold zero-equality of strcmp
5047         between a longer string and a smaller array.
5048         (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
5050 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
5052         * config/darwin.c (darwin_override_options): Make the check for
5053         Objective-C ABI version more specific for 64bit code.
5055 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
5057         * config/darwin.c (machopic_indirect_data_reference): Set flag to
5058         indicate that the new symbol is an indirection.
5059         (machopic_indirect_call_target): Likewise.
5060         * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
5061         (MACHO_SYMBOL_INDIRECTION_P): New.
5062         (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
5064 2019-10-08  Jason Merrill  <jason@redhat.com>
5066         * doc/invoke.texi: Document -fconcepts-ts.
5068 2019-10-09  Richard Biener  <rguenther@suse.de>
5070         * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
5071         allow stmts other than GIMPLE_ASSIGN in nested cycles.
5073 2019-10-08  Richard Biener  <rguenther@suse.de>
5075         * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
5076         (_stmt_vec_info::force_single_cycle): Likewise.
5077         (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
5078         (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
5079         * tree-vect-loop.c (vectorizable_reduction): Set
5080         STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
5081         (vect_transform_reduction): Use them to remove redundant code.
5082         (vect_transform_cycle_phi): Likewise.
5084 2019-10-08  Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
5086         PR tree-optimization/90836
5087         * match.pd (popcount): New pattern.
5089 2019-10-08  Martin Sebor  <msebor@redhat.com>
5091         PR middle-end/92026
5092         PR middle-end/92014
5093         * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
5094         again once nbytes has been set.  Set the access size when not yet set.
5096 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
5098         * config/darwin.c (machopic_select_section): Remove dead code for
5099         old Objective-C section selection method, replace with unreachable.
5101 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
5103         * config/darwin.c (machopic_indirect_data_reference): Check for
5104         required indirections before making direct access to defined
5105         values.
5106         (machopic_output_indirection): Place the indirected pointes for
5107         required indirections into the non-lazy symbol pointers section.
5108         (darwin_encode_section_info):
5109         * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
5110         (MACHO_SYMBOL_MUST_INDIRECT_P): New.
5112 2019-10-08  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5114         PR target/91994
5115         * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
5116         instead of ALL_SSE_REG to check if function call preserves some
5117         256-bit SSE registers.
5119 2019-10-08  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5121         * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
5122         LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
5123         MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
5125 2019-10-08  Richard Biener  <rguenther@suse.de>
5127         * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
5128         (_stmt_vec_info::is_reduc_info): Add.
5129         (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
5130         (vectorizable_condition): Remove.
5131         (vectorizable_shift): Likewise.
5132         (vectorizable_reduction): Adjust.
5133         (info_for_reduction): New.
5134         * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
5135         (vect_analyze_scalar_cycles_1): ... here.
5136         (vect_analyze_loop_operations): Adjust.
5137         (needs_fold_left_reduction_p): Simplify for single caller.
5138         (vect_is_simple_reduction): Likewise.  Remove stmt restriction
5139         for nested cycles not part of double reductions.
5140         (vect_model_reduction_cost): Pass in the reduction type.
5141         (info_for_reduction): New function.
5142         (vect_create_epilog_for_reduction): Use it, access reduction
5143         meta off the stmt info it returns.  Use STMT_VINFO_REDUC_TYPE
5144         instead of STMT_VINFO_VEC_REDUCTION_TYPE.
5145         (vectorize_fold_left_reduction): Remove pointless assert.
5146         (vectorizable_reduction): Analyze the full reduction when
5147         visiting the outermost PHI.  Simplify.  Use STMT_VINFO_REDUC_TYPE
5148         instead of STMT_VINFO_VEC_REDUCTION_TYPE.  Direct reduction
5149         stmt code-generation to vectorizable_* in most cases.  Verify
5150         code-generation only for cases handled by
5151         vect_transform_reductuon.
5152         (vect_transform_reduction): Use info_for_reduction to get at
5153         reduction meta.  Simplify.
5154         (vect_transform_cycle_phi): Likewise.
5155         (vectorizable_live_operation): Likewise.
5156         * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
5157         at the PHI node for STMT_VINFO_REDUC_TYPE.
5158         * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
5159         longer necessary code.
5160         * tree-vect-stmts.c (vectorizable_shift): Make static again.
5161         (vectorizable_condition): Likewise.  Get at reduction related
5162         info via info_for_reduction.
5163         (vect_analyze_stmt): Adjust.
5164         (vect_transform_stmt): Likewise.
5165         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
5166         STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
5168 2019-10-08  Joseph Myers  <joseph@codesourcery.com>
5170         * doc/invoke.texi (-ffp-int-builtin-inexact): Document
5171         -fno-fp-int-builtin-inexact default for C2X.
5173 2019-10-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5174             Richard Biener  <rguenther@suse.de>
5176         PR tree-optimization/91532
5177         * tree-if-conv.c: Include tree-ssa-dse.h.
5178         (ifcvt_local_dce): Change param from bb to loop,
5179         and call dse_classify_store.
5180         (tree_if_conversion): Pass loop instead of loop->header as arg
5181         to ifcvt_local_dce.
5182         * tree-ssa-dse.c: Include tree-ssa-dse.h.
5183         (delete_dead_or_redundant_assignment): Remove static qualifier from
5184         declaration, and add prototype in tree-ssa-dse.h.
5185         (dse_store_status): Move to tree-ssa-dse.h.
5186         (dse_classify_store): Remove static qualifier and add new tree param
5187         stop_at_vuse, and add prototype in tree-ssa-dse.h.
5188         * tree-ssa-dse.h: New header.
5190 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
5192         * config/darwin.c (machopic_output_indirection): Don't put
5193         hidden symbol indirections into the .data section, use the
5194         non-lazy symbol pointers section as normal.
5195         (darwin_encode_section_info): Record if a symbol is hidden.
5196         * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
5197         (MACHO_SYMBOL_HIDDEN_VIS_P): New.
5199 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
5201         * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
5202         predicates instead of accessing bits directly.
5203         (machopic_indirect_call_target): Likewise.
5204         (machopic_output_indirection): Likewise.
5205         (darwin_encode_section_info): Improve description.  Use renamed
5206         symbol flags.  Use predicate macros for variables and functions.
5207         * config/darwin.h:
5208         Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
5209         Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
5210         Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
5211         (MACHO_SYMBOL_VARIABLE_P): New.
5212         (MACHO_SYMBOL_DEFINED_P):New.
5213         (MACHO_SYMBOL_STATIC_P): New.
5214         * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
5215         (SYMBOL_FLAG_SUBT_DEP): New.
5216         * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
5218 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5220         * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
5221         (msp430_expand_epilogue): Likewise.
5222         * config/msp430/predicates.md: Likewise.
5223         * config/msp430/msp430.md: Likewise.
5224         Replace blocks of 8 spaces with tabs.
5226 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5228         * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
5229         * config/msp430/msp430.c (msp430_split_addsi): New.
5230         * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
5231         a block of C code for splitting addsi.
5233 2019-10-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5235         * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
5236         ix86_expand_rounddf_32): Reorder functions.
5237         * config/i386/i386-protos.h: Update.
5239 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5241         * config.in: Regenerate.
5242         * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
5243         Add new "Yx" constraint.
5244         * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
5245         function.
5246         * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
5247         prototype.
5248         * config/msp430/msp430.c (msp430_option_override): Allow the lower
5249         code/data region to be selected in the small memory model.
5250         (msp430_section_attr): Don't warn if the "section" and "lower"
5251         attributes are used together.
5252         (msp430_handle_generic_attribute): Likewise.
5253         (msp430_var_in_low_mem): New function.
5254         (TARGET_ENCODE_SECTION_INFO): Define.
5255         (msp430_encode_section_info): New function.
5256         (gen_prefix): Return early in the small memory model.
5257         Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
5258         ".lower" prefix if -m{code,data}-region=lower have been passed.
5259         (msp430_output_aligned_decl_common): Emit common symbols when
5260         -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
5261         set.
5262         (TARGET_ASM_FILE_END): Define.
5263         (msp430_file_end): New function.
5264         (msp430_do_not_relax_short_jumps): Allow relaxation when
5265         function will be in the lower region.
5266         (msp430_op_not_in_high_mem): New function.
5267         (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
5268         the 'X' operand selector.
5269         Clarify comment for 'x' operand selector.
5270         * config/msp430/msp430.h (LINK_SPEC): Propagate
5271         -m{code,data}-region to the linker via spec function
5272         msp430_propagate_region_opt.
5273         (msp430_propagate_region_opt): New prototype.
5274         (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
5275         (SYMBOL_FLAG_LOW_MEM): Define.
5276         * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
5277         selector.
5278         (zero_extendqihi2): Fix operand number used by "%X" selector.
5279         (zero_extendqisi2): Likewise.
5280         (zero_extendhisi2): Likewise.
5281         (movqi): Use "Yx" constraint in place of "%X" operand selector.
5282         (movhi): Likewise.
5283         (addqi3): Likewise.
5284         (addhi3): Likewise.
5285         (addsi3): Likewise.
5286         (addhi3_cy): Likewise.
5287         (addchi4_cy): Likewise.
5288         (subqi3): Likewise.
5289         (subhi3): Likewise.
5290         (subsi3): Likewise.
5291         (bic<mode>3): Likewise.
5292         (and<mode>3): Likewise.
5293         (ior<mode>3): Likewise.
5294         (xor<mode>3): Likewise.
5295         (slli_1): Add missing "%X" operand selector.
5296         (slll_1): Likewise.
5297         (slll_2): Likewise.
5298         (srai_1): Likewise.
5299         (sral_1): Likewise.
5300         (sral_2): Likewise.
5301         (srli_1): Likewise.
5302         (srll_1): Likewise.
5303         (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
5304         selector.
5305         (cbranchhi4_real): Likewise.
5306         (cbranchqi4_reversed): Likewise.
5307         (cbranchhi4_reversed): Likewise.
5308         (*bitbranch<mode>4): Likewise.
5309         (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
5310         * config/msp430/msp430.opt (mcode-region=): Set default to
5311         MSP430_REGION_LOWER. Improve docstring.
5312         (mdata-region=): Likewise.
5313         (muse-lower-region-prefix): New option.
5314         * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
5315         mdata-region=none multilib.
5316         (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
5317         mdata-region=none multilib.
5318         MULTILIB_EXCEPTIONS: Remove.
5319         MULTILIB_REQUIRED: Define.
5320         * configure: Regenerate.
5321         * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
5322         HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
5323         * doc/extend.texi: Clarify comment for {upper,lower,either}
5324         function attributes.
5325         Add separate description for "lower" variable attribute.
5327 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
5329         PR target/77918
5330         * optabs-tree.c (vcond_icode_p): New function.
5331         (vcond_eq_icode_p): Likewise.
5332         (expand_vec_cond_expr_p): Use vcond_icode_p and
5333         vcond_eq_icode_p.
5334         * optabs.c (can_vcond_compare_p): New function.
5335         * optabs.h (can_vcond_compare_p): Likewise.
5337 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
5339         PR target/77918
5340         * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
5341         caller passes a non-trapping condition.
5342         (is_gimple_condexpr): Allow trapping conditions.
5343         (is_gimple_condexpr_1): New helper function.
5344         (is_gimple_condexpr_for_cond): New function, acts like old
5345         is_gimple_condexpr.
5346         * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
5347         * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
5348         VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
5349         * gimplify.c (gimplify_cond_expr): Use
5350         is_gimple_condexpr_for_cond.
5351         (gimplify_expr): Allow is_gimple_condexpr_for_cond.
5352         * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
5353         VEC_COND_EXPR.
5354         (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
5355         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
5356         is_gimple_condexpr_for_cond, remove pointless tmp check
5357         (forward_propagate_into_cond): Remove pointless tmp check.
5359 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
5361         * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
5362         match that of other gsi_next_* functions.  Adjust the comment.
5363         (gsi_start_nonvirtual_phis): New function.
5364         * ipa-icf.c (sem_function::compare_phi_node): Update uses of
5365         gsi_next_nonvirtual_phi accordingly.  (No functional change.)
5367 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
5369         * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
5370         setjmp situation here.  Fix a verb's ending: "the exact variables or
5371         elements for which there are warnings depends" -> "... depend".
5373 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
5375         * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
5377 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
5379         * ipa-prop.c (ipa_vr::nonzero_p): New.
5380         (ipcp_update_vr): Use nonzero_p instead of open-coding check for
5381         non-zero range.
5382         * ipa-prop.h (class ipa_vr): Add nonzero_p.
5383         * tree-vrp.c (range_has_numeric_bounds_p): New.
5384         (range_int_cst_p): Use range_has_numeric_bounds_p.
5385         (get_range_op_handler): New.
5386         (supported_types_p): New.
5387         (defined_ranges_p): New.
5388         (drop_undefines_to_varying): New.
5389         (range_fold_binary_symbolics_p): New.
5390         (range_fold_unary_symbolics_p): New.
5391         (range_fold_unary_expr): Extract out into above functions.
5392         (range_fold_binary_expr): Same.
5393         (value_range_base::normalize_addresses): New.
5394         (value_range_base::normalize_symbolics): Normalize addresses.
5395         * tree-vrp.h (class value_range_base): Add normalize_addresses.
5397 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
5399         * tree-vrp.c (value_range_base::singleton_p): Use
5400         value_range_base::num_pairs instead of vrp_val_is* to check
5401         if a range has one sub-range.
5403 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
5405         * ira-lives.c (check_and_make_def_conflict): Handle cases in which
5406         DEF is not a true earlyclobber but is tied to a specific input
5407         operand, and so is effectively earlyclobber wrt inputs that have
5408         different values.
5409         (make_early_clobber_and_input_conflicts): Pass this case to the above.
5411 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
5413         * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
5414         (pod_mode): Mark operators likewise.
5415         (scalar_int_mode): Mark non-default constructors and
5416         operators with CONSTEXPR.
5417         (scalar_float_mode, scalar_mode, complex_mode): Likewise.
5418         (fixed_size_mode): Likewise.
5420 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
5422         PR target/91994
5423         * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
5424         and wrap the unspec_volatile in a parallel.
5425         (*avx_vzeroupper): New define_insn.  Use a match_parallel around
5426         the unspec_volatile.
5427         * config/i386/predicates.md (vzeroupper_pattern): Expect the
5428         unspec_volatile to be wrapped in a parallel.
5429         * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
5430         (ix86_add_reg_usage_to_vzerouppers): New functions.
5431         (rest_of_handle_insert_vzeroupper): Use them to add register
5432         usage information to the vzeroupper instructions.
5434 2019-10-07  Richard Biener  <rguenther@suse.de>
5436         PR tree-optimization/91975
5437         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
5438         handle invariants.
5440 2019-10-06  Richard Sandiford  <richard.sandiford@arm.com>
5442         * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
5443         function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
5445 2019-10-06  Iain Sandoe  <iain@sandoe.co.uk>
5447         * config/darwin.c (darwin_override_options): Adjust objective-c
5448         ABI version error messages to avoid punctuation and contracted
5449         negations.
5451 2019-10-05  Jan Hubicka  <hubicka@ucw.cz>
5453         * ipa-inline.c: Fix type; compute size rather than self_size
5454         for size of caller function.
5456 2019-10-05  Iain Sandoe  <iain@sandoe.co.uk>
5458         PR target/59888
5459         * config/darwin.c (darwin_rodata_section): Add relocation flag,
5460         choose const_data section for constants with relocations.
5461         (machopic_select_section): Pass relocation flag to
5462         darwin_rodata_section ().
5464 2019-10-05  Jakub Jelinek  <jakub@redhat.com>
5466         PR tree-optimization/91734
5467         * generic-match-head.c: Include fold-const-call.h.
5468         * match.pd (sqrt(x) cmp c): Check the boundary value and
5469         in case inexact computation of c*c affects comparison of the boundary,
5470         turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
5471         or GT_EXPR into GE_EXPR.  Punt for sqrt comparisons against NaN and
5472         for -frounding-math.  For c2, try the next smaller or larger floating
5473         point constant depending on comparison code and if it has the same
5474         sqrt as c2, use it instead of c2.
5476 2019-10-04  Martin Sebor  <msebor@redhat.com>
5478         PR middle-end/91977
5479         * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
5480         MEM_REF right operand.  Avoid failing for MEM_REF assignments from
5481         uninitialized objects.
5483 2019-10-04  Martin Sebor  <msebor@redhat.com>
5485         * builtins.c (compute_objsize): Add an argument.
5486         * tree-object-size.c (addr_object_size): Same.
5487         (compute_builtin_object_size): Same.
5488         * tree-object-size.h (compute_builtin_object): Same.
5490 2019-10-04  Jan Hubicka  <hubicka@ucw.cz>
5492         * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
5494 2019-10-04  Rafael Tsuha  <rafael.tsuha@usp.br>
5496         * match.pd (sinh (x) / cosh (x)): New simplification rule.
5498 2019-10-04  Martin Jambor  <mjambor@suse.cz>
5500         * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
5501         fntype when switching to calling memcpy instead of memset.
5503 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5505         * hash-table.h (hash_table::empty_slow): Don't assign
5506         size_t values to int variables.
5508 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5510         * expr.c (convert_mode_scalar): Remove shadowing local var.
5511         (emit_block_move): Rename local vars.
5512         (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
5513         (emit_push_insn): Rename local vars.
5514         (expand_assignment): Fix wrong mode in assign_stack_temp.  Remove
5515         shadowing local vars.
5516         (store_constructor): Remove shadowing local vars.  Rename local var.
5517         (store_field, expand_cond_expr_using_cmove,
5518         expand_expr_real_2): Remove shadowing local vars.
5519         (expand_expr_real_1,
5520         do_store_flag): Remove shadowing local vars.  Rename local vars.
5522 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5524         * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
5526 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5528         * genmatch.c (commutate): Rename local var.
5529         (lower_cond): Reuse local var.
5530         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
5531         dt_operand::gen, dt_operand::gen_gimple_expr,
5532         dt_simplify::gen): Add a param.  Rename generated vars.
5533         (decision_tree::insert_operand,
5534         (capture_info::walk_match, capture_info::walk_result,
5535         capture_info::walk_c_expr): Rename local vars.
5536         (expr::gen_transform): Rename generated vars.
5537         Use snprintf.  Rename local vars.
5538         (capture::gen_transform, dt_operand::get_name,
5539         dt_operand::gen_opname): Rename generated vars.
5540         (write_predicate): Adjust call to gen_kids.
5541         (parser::get_internal_capture_id): Rename generated vars.
5542         (parser::parse_expr): Rename local vars.
5543         (parser::parse_if): Remove local var.
5544         (parser::parse_pattern, add_operator): Rename local vars.
5546 2019-10-04  Joseph Myers  <joseph@codesourcery.com>
5548         * builtins.def (DEF_C2X_BUILTIN): New macro.
5549         (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
5550         (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
5551         (strndup): Use DEF_C2X_BUILTIN.
5552         * coretypes.h (enum function_class): Add function_c2x_misc.
5554 2019-10-04  Maya Rashish  <coypu@sdf.org>
5556         * ira-color.c (update_costs_from_allocno): Call
5557         ira_init_register_move_cost_if_necessary.
5559 2019-10-04  Jeff Law  <law@redhat.com>
5561         * config/h8300/h8300.md (cpymemsi): Disable.
5562         (movmd, movmd_internal_<mode>, movstr, movsd):
5563         (movstr, movsd, stpcpy_internal_<mode>: Likewise.
5564         (movmd splitter, movsd splitter): Likewise.
5566         * range-op.cc (range_tests): Avoid two tests when ints and
5567         shorts are the same size.
5569 2019-10-04  Richard Biener  <rguenther@suse.de>
5571         PR lto/91968
5572         * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
5573         BLOCK_VARS.
5575 2019-10-04  Richard Biener  <rguenther@suse.de>
5577         PR tree-optimization/91982
5578         * tree-vect-loop.c (vectorizable_live_operation): Also guard
5579         against EXTRACT_LAST_REDUCTION.
5580         * tree-vect-stmts.c (vect_transform_stmt): Likewise.
5582 2019-10-04  Aldy Hernandez  <aldyh@redhat.com>
5584         * range-op.o (value_range_from_overflowed_bounds): Rename from
5585         adjust_overflow_bound.
5586         (value_range_with_overflow): Rename from
5587         create_range_with_overflow.
5588         (create_possibly_reversed_range): Adjusted for above renames.
5589         (operator_*::wi_fold): Same.
5590         (cross_product_operator::wi_cross_productor): Same.
5592 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5594         * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
5595         -Wshadow=compatible-local): Fix description.
5596         Add an example where -Wshadow=compatible-local does not
5597         warn.
5599 2019-10-03  John David Anglin  <danglin@gcc.gnu.org>
5601         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
5603         * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
5604         (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
5606 2019-10-03  Aaron Sawdey <acsawdey@linux.ibm.com>
5608         * expr.c (emit_block_move_hints): Slightly cleaner fix to
5609         can_move_by_pieces issue.
5611 2019-10-03  Iain Sandoe  <iain@sandoe.co.uk>
5613         PR target/87243
5614         * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
5615         (darwin_driver_init): Use the sysroot provided by SDKROOT when that
5616         is available and the user has not set one on the command line.
5618 2019-10-03  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
5620         PR target/91769
5621         * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
5622         instead of REGNO equality check on addr.reg.
5624 2019-10-03  Jan Hubicka  <hubicka@ucw.cz>
5626         * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
5627         PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
5628         * doc/invoke.texi (inline-heuristics-hint-percent,
5629         inline-heuristics-hint-percent-O2): Document.
5630         * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
5631         hint attribute.
5632         (can_inline_edge_by_limits_p): Use it.
5634 2019-10-03  Richard Sandiford  <richard.sandiford@arm.com>
5636         * config/arm/arm.c (arm_print_value): Use real_to_decimal
5637         to print CONST_DOUBLEs.
5639 2019-10-03  Andrea Corallo  <andrea.corallo@arm.com>
5641         * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
5642         * ipa-prop.c (ipcp_free_transformation_sum): New function.
5643         * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
5645 2019-10-03  Aldy Hernandez  <aldyh@redhat.com>
5647         * Makefile.in (OBJS): Add range.o and range-op.o.
5648         Remove wide-int-range.o.
5649         * function-tests.c (test_ranges): New.
5650         (function_tests_c_tests): Call test_ranges.
5651         * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
5652         range_fold_unary_expr instead of extract_range_from_unary_expr.
5653         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
5654         * range-op.cc: New file.
5655         * range-op.h: New file.
5656         * range.cc: New file.
5657         * range.h: New file.
5658         * selftest.h (range_tests): New prototype.
5659         * ssa.h: Include range.h.
5660         * tree-vrp.c (value_range_base::value_range_base): New
5661         constructors.
5662         (value_range_base::singleton_p): Do not call
5663         ranges_from_anti_range until sure we will need to.
5664         (value_range_base::type): Rename gcc_assert to
5665         gcc_checking_assert.
5666         (vrp_val_is_max): New argument.
5667         (vrp_val_is_min): Same.
5668         (wide_int_range_set_zero_nonzero_bits): Move from
5669         wide-int-range.cc.
5670         (extract_range_into_wide_ints): Remove.
5671         (extract_range_from_multiplicative_op): Remove.
5672         (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
5673         from extract_range_from_binary_expr.
5674         (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
5675         from extract_range_from_binary_expr.
5676         (extract_range_from_binary_expr): Remove.
5677         (normalize_for_range_ops): New.
5678         (range_fold_binary_expr): New.
5679         (range_fold_unary_expr): New.
5680         (value_range_base::num_pairs): New.
5681         (value_range_base::lower_bound): New.
5682         (value_range_base::upper_bound): New.
5683         (value_range_base::upper_bound): New.
5684         (value_range_base::contains_p): New.
5685         (value_range_base::invert): New.
5686         (value_range_base::union_): New.
5687         (value_range_base::intersect): New.
5688         (range_compatible_p): New.
5689         (value_range_base::operator==): New.
5690         (determine_value_range_1): Call range_fold_*expr instead of
5691         extract_range_from_*expr.
5692         * tree-vrp.h (class value_range_base): Add new constructors.
5693         Add methods for union_, intersect, operator==, contains_p,
5694         num_pairs, lower_bound, upper_bound, invert.
5695         (vrp_val_is_min): Add handle_pointers argument.
5696         (vrp_val_is_max): Same.
5697         (extract_range_from_unary_expr): Remove.
5698         (extract_range_from_binary_expr): Remove.
5699         (range_fold_unary_expr): New.
5700         (range_fold_binary_expr): New.
5701         * vr-values.c (vr_values::extract_range_from_binary_expr): Call
5702         range_fold_binary_expr instead of extract_range_from_binary_expr.
5703         (vr_values::extract_range_basic): Same.
5704         (vr_values::extract_range_from_unary_expr): Call
5705         range_fold_unary_expr instead of extract_range_from_unary_expr.
5706         * wide-int-range.cc: Remove.
5707         * wide-int-range.h: Remove.
5709 2019-10-02   Michael Meissner  <meissner@linux.ibm.com>
5711         * config/rs6000/rs6000.c (mem_operand_gpr): Use
5712         SIGNED_16BIT_OFFSET_EXTRA_P macro.
5713         (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
5714         (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
5715         macro.
5717 2019-10-02  Joseph Myers  <joseph@codesourcery.com>
5719         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
5720         condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
5721         (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
5722         * glimits.h: Likewise.
5724 2019-10-03  Jakub Jelinek  <jakub@redhat.com>
5726         PR rtl-optimization/91976
5727         * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
5728         size is not CONST_INT_P, set pieces_ok to false in that case.  Simplify
5729         CONST_INT_P (size) && pieces_ok to pieces_ok.  Formatting fix.
5731 2019-10-02  Martin Sebor  <msebor@redhat.com>
5733         PR tree-optimization/80936
5734         * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
5736 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
5738         * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
5739         instead of reg_class_contents[ALL_REGS].
5741 2019-09-30  Jason Merrill  <jason@redhat.com>
5743         Add some hash_map_safe_* functions like vec_safe_*.
5744         * hash-map.h (default_hash_map_size): New variable.
5745         (create_ggc): Use it as default argument.
5746         (hash_map_maybe_create, hash_map_safe_get)
5747         (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
5749 2019-10-02  Jan Hubicka  <hubicka@ucw.cz>
5751         * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
5752         MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
5753         * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
5754         (can_inline_edge_by_limits_p): Use it.
5755         (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
5756         (want_inline_small_function_p): Use O2 bounds.
5757         (edge_badness): LIkewise.
5758         * opts.c (default_options): Add OPT_finline_functions.
5759         * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
5760         PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
5761         New parameters.
5762         * doc/invoke.texi (-finline-functions): Update documentation.
5763         (max-inline-insns-single-O2, max-inline-insns-auto-O2,
5764         inline-min-speedup-O2): Document.
5765         (early-inlining-insns-O2): Simplify docs.
5767 2019-10-02  Alexander Monakov  <amonakov@ispras.ru>
5769         PR rtl-optimization/87047
5770         * ifcvt.c (average_cost): New static function.  Use it...
5771         (noce_process_if_block): ... here.
5773 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
5775         * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
5776         * config/rs6000/rs6000-string.c (expand_block_move): Add
5777         might_overlap parm.
5778         * config/rs6000/rs6000.md (movmemsi): Add new pattern.
5779         (cpymemsi): Add might_overlap parm to expand_block_move() call.
5781 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
5783         * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
5784         (expand_builtin_memcpy): Use might_overlap parm.
5785         (expand_builtin_mempcpy_args): Use might_overlap parm.
5786         (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
5787         (expand_builtin_memory_copy_args): Add might_overlap parm.
5788         * expr.c (emit_block_move_via_cpymem): Rename to
5789         emit_block_move_via_pattern, add might_overlap parm, use cpymem
5790         or movmem optab as appropriate.
5791         (emit_block_move_hints): Add might_overlap parm, do the right
5792         thing for might_overlap==true.
5793         * expr.h (emit_block_move_hints): Update prototype.
5795 2019-10-02  Eric Botcazou  <ebotcazou@adacore.com>
5797         * tree-eh.h (unsplit_eh_edges): Declare.
5798         * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
5799         (unsplit_eh_edges): New function wrapping unsplit_all_eh.
5800         * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
5801         (struct store_immediate_info): Add lp_nr field.
5802         (store_immediate_info::store_immediate_info): Add NR2 parameter and
5803         initialize lp_nr with it.
5804         (struct merged_store_group): Add lp_nr and only_constants fields.
5805         (merged_store_group::merged_store_group): Initialize them.
5806         (merged_store_group::can_be_merged_into): Deal with them.
5807         (pass_store_merging): Rename terminate_and_release_chain into
5808         terminate_and_process_chain.
5809         (pass_store_merging::terminate_and_process_all_chains): Adjust to above
5810         renaming and remove useless assertions.
5811         (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
5812         (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
5813         (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
5814         instead of always recomputing it and compare lp_nr.
5815         (imm_store_chain_info::output_merged_store): If the group is in an
5816         active EH region, register new stores if they can throw.  Moreover,
5817         if the insertion has created new basic blocks, adjust the PHI nodes
5818         of the post landing pad.
5819         (imm_store_chain_info::output_merged_stores): If the original stores
5820         are in an active EH region, deregister them.
5821         (lhs_valid_for_store_merging_p): Prettify.
5822         (adjust_bit_pos): New function extracted from...
5823         (mem_valid_for_store_merging): ...here.  Use it for the base address
5824         and also for the offset if it is the addition of a constant.
5825         (lp_nr_for_store): New function.
5826         (pass_store_merging::process_store): Change return type to bool.
5827         Call lp_nr_for_store to initialize the store info.  Propagate the
5828         return status of various called functions to the return value.
5829         (store_valid_for_store_merging_p): New predicate.
5830         (enum basic_block_status): New enumeration.
5831         (get_status_for_store_merging): New function.
5832         (pass_store_merging::execute): If the function can throw and catch
5833         non-call exceptions, unsplit the EH edges on entry and clean up the
5834         CFG on exit if something changed.  Call get_status_for_store_merging
5835         for every basic block and keep the chains open across basic blocks
5836         when possible.  Terminate and process open chains at the end, if any.
5838 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
5840         * reginfo.c (globalize_reg): Fix shadowed variable in
5841         function_abis walk.
5843 2019-10-02  Martin Jambor  <mjambor@suse.cz>
5845         * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
5846         do not compute some stuff when set.
5847         (cgraph_node::create_edge): Likewise.
5848         (cgraph_node::create_indirect_edge): Renamed last parameter to
5849         coning_p and flipped its meaning, don't even calculate
5850         inline_failed when set.
5851         * cgraph.h (cgraph_node::create_edge): Add new parameter.
5852         (symbol_table::::create_edge): Likewise.
5853         (cgraph_node::create_indirect_edge): Rename last parameter, flip
5854         the default value.
5855         * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
5856         call graph edge creating functions.
5858 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
5860         PR c++/91222
5861         * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
5862         namespace types.
5864 2019-10-02  Shahab Vahedi  <shahab@synopsys.com>
5866         * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
5868 2019-10-02  Richard Biener  <rguenther@suse.de>
5870         * tree-vectorizer.h (vect_transform_reduction): Declare.
5871         * tree-vect-stmts.c (vect_transform_stmt): Use it.
5872         * tree-vect-loop.c (vectorizable_reduction): Split out reduction
5873         stmt transform to ...
5874         (vect_transform_reduction): ... this.
5876 2019-10-02  Tobias Burnus  <tobias@codesourcery.com>
5878         * omp-low.c (lower_omp_target): Dereference optional argument
5879         to work with the right pointer.
5881 2019-10-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
5883         * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
5884         false.
5885         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
5886         * langhooks.h (omp_is_optional_argument): New hook.
5887         * omp-general.c (omp_is_optional_argument): New.
5888         * omp-general.h (omp_is_optional_argument): New declaration.
5889         * omp-low.c (lower_omp_target): Create temporary for received value
5890         and take the address for new_var if the original variable was a
5891         DECL_BY_REFERENCE.  Use size of referenced object when a
5892         pass-by-reference optional argument used as argument to firstprivate.
5894 2019-10-02  Jakub Jelinek  <jakub@redhat.com>
5896         PR tree-optimization/91940
5897         * tree-vect-patterns.c: Include tree-vector-builder.h and
5898         vec-perm-indices.h.
5899         (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
5900         unpromoting the argument back to uint16_t, or by converting into a
5901         rotate, or into shifts plus ior.
5903 2019-10-02  Richard Biener  <rguenther@suse.de>
5905         * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
5906         New.
5907         (vect_transform_cycle_phi): Declare.
5908         * tree-vect-stmts.c (vect_transform_stmt): Call
5909         vect_transform_cycle_phi.
5910         * tree-vect-loop.c (vectorizable_reduction): Split out
5911         PHI transformation stage to ...
5912         (vect_transform_cycle_phi): ... here.
5914 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
5916         PR middle-end/91957
5917         * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
5918         eliminable registers.
5919         (make_hard_regno_live): Likewise, and don't make them live.
5921 2019-10-01  David Malcolm  <dmalcolm@redhat.com>
5923         * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
5924         Call pp_emit_prefix.
5925         (layout::print_source_line): Likewise.
5926         (layout::start_annotation_line): Likewise.
5927         (diagnostic_show_locus): Remove call to temporarily clear the
5928         prefix.
5929         (selftest::test_one_liner_fixit_remove): Add test coverage for the
5930         interaction of pp_set_prefix with rulers and fix-it hints.
5931         * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
5932         prefix when calling diagnostic_show_locus, rather than destroying
5933         it afterwards.
5934         (print_parseable_fixits): Temporarily clear prefix.
5935         * pretty-print.c (pp_format): Save and restore line_length, rather
5936         than assuming it is zero.
5937         (pp_output_formatted_text): Remove assertion that line_length is
5938         zero.
5940 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
5942         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
5943         Rename to ...
5944         (nonoverlapping_refs_since_match_p): ... this; handle also
5945         ARRAY_REFs.
5946         (alias_stats): Update stats.
5947         (dump_alias_stats): Likewise.
5948         (cheap_array_ref_low_bound): New function.
5949         (aliasing_matching_component_refs_p): Add partial_overlap
5950         argument;
5951         pass it to nonoverlapping_refs_since_match_p.
5952         (aliasing_component_refs_walk): Update call of
5953         aliasing_matching_component_refs_p
5954         (nonoverlapping_array_refs_p): New function.
5955         (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
5956         indirect_refs_may_alias_p): Update calls of
5957         nonoverlapping_refs_since_match_p.
5959 2019-10-01  Maya Rashish  <coypu@sdf.org>
5961         PR target/85401
5962         * ira-color.c (allocno_copy_cost_saving): Call
5963         ira_init_register_move_cost_if_necessary.
5965 2019-10-01  Maciej W. Rozycki  <macro@wdc.com>
5967         * Makefile.in (gnat_install_lib): New variable.
5968         * configure.ac: Substitute it.
5969         * configure: Regenerate.
5971 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
5973         PR lto/91222
5974         * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
5975         is matched with non-C++ type
5977 2019-10-01  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5979         * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
5980         after local CSE.
5982 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
5984         * doc/invoke.texi (early-inlining-insns-O2): Document.
5985         (early-inlining-insns): Update.
5986         * params.def (early-inlining-insns-O2): New bound.
5987         (early-inlining-insns): Update docs.
5988         * ipa-inline.c (want_early_inline_function_p): Use new bound.
5990 2019-10-01  Oleg Endo  <olegendo@gcc.gnu.org>
5992         PR target/88562
5993         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
5994         sh_check_add_incdec_notes to preserve REG_INC notes when replacing
5995         a memory access insn.
5997 2019-10-01  Bill Schmidt  <wschmidt@linux.ibm.com>
5999         * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
6000         vpmsumd.
6002 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
6004         PR target/77918
6005         * config/s390/s390.c (s390_expand_vec_compare): Use
6006         gen_vec_cmpordered and gen_vec_cmpunordered.
6007         * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
6008         vec_unordered): Delete.
6009         (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
6010         (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
6011         (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
6012         (vec_cmp<code>): Generic dispatcher.
6014 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
6016         PR target/77918
6017         * config/s390/vector.md (V_HW): Add V1TI in order to make
6018         vcond$a$b generate vcondv1tiv1tf.
6020 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
6022         PR rtl-optimization/91948
6023         * ira-build.c (ira_create_allocno): Initialize
6024         ALLOCNO_CROSSED_CALLS_ABIS.
6025         * ira-color.c (allocno_reload_assign): Pass hard_regno rather
6026         than regno to ira_need_caller_save_p.
6028 2019-10-01  Alexandre Oliva <oliva@adacore.com>
6030         * config/i386/i386-options.c
6031         (ix86_recompute_optlev_based_flags): New, moved out of...
6032         (ix86_option_override_internal): ... this.  Call it.
6033         (ix86_override_options_after_change): Call it here too.
6035         PR debug/91507
6036         * dwarf2out.c (override_type_for_decl_p): New.
6037         (gen_variable_die): Use it.
6039 2019-10-01  Richard Biener  <rguenther@suse.de>
6041         * tree-vect-loop.c (vectorizable_reduction): Move variables
6042         to where they are used.
6044 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
6046         * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
6047         (build_def_use): Use PC instead of CC0 in a comment.
6049 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
6051         * rtl.def (CLOBBER_HIGH): Delete.
6052         * doc/rtl.texi (clobber_high): Remove documentation.
6053         * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
6054         (reg_is_clobbered_by_clobber_high): Delete.
6055         (gen_hard_reg_clobber_high): Likewise.
6056         * alias.c (record_set): Remove CLOBBER_HIGH handling.
6057         * cfgexpand.c (expand_gimple_stmt): Likewise.
6058         * combine-stack-adj.c (single_set_for_csa): Likewise.
6059         * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
6060         (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
6061         (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
6062         * cse.c (invalidate_reg): Remove clobber_high parameter.
6063         (invalidate): Update call accordingly.
6064         (canonicalize_insn): Remove CLOBBER_HIGH handling.
6065         (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
6066         (count_reg_usage, insn_live_p): Likewise.
6067         * cselib.h (cselib_invalidate_rtx): Remove sett argument.
6068         * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
6069         (cselib_invalidate_rtx_note_stores): Update call accordingly.
6070         (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
6071         (cselib_invalidate_regno, cselib_process_insn): Likewise.
6072         * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
6073         (mark_nonreg_stores_2): Likewise.
6074         * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
6075         (df_get_call_refs): Likewise.
6076         * dwarf2out.c (mem_loc_descriptor): Likewise.
6077         * emit-rtl.c (verify_rtx_sharing): Likewise.
6078         (copy_insn_1, copy_rtx_if_shared_1): Likewise.
6079         (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
6080         * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
6081         * genemit.c (gen_exp, gen_insn): Likewise.
6082         * genrecog.c (validate_pattern, remove_clobbers): Likewise.
6083         * haifa-sched.c (haifa_classify_rtx): Likewise.
6084         * ira-build.c (create_insn_allocnos): Likewise.
6085         * ira-costs.c (scan_one_insn): Likewise.
6086         * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
6087         (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
6088         * jump.c (mark_jump_label_1): Likewise.
6089         * lra-int.h (lra_insn_reg::clobber_high): Delete.
6090         * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
6091         handling.
6092         (mark_not_eliminable): Likewise.
6093         * lra-lives.c (process_bb_lives): Likewise.
6094         * lra.c (new_insn_reg): Remove clobber_high parameter.
6095         (collect_non_operand_hard_regs): Likewise.  Update call to new
6096         insn_reg.  Remove CLOBBER_HIGH handling.
6097         (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling.  Update call
6098         to collect_non_operand_hard_regs.
6099         (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
6100         Update call to new_insn_reg.
6101         (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
6102         * postreload.c (reload_cse_simplify, reload_combine_note_use)
6103         (move2add_note_store): Likewise.
6104         * print-rtl.c (print_pattern): Likewise.
6105         * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
6106         (if_test_bypass_p): Likewise.
6107         * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
6108         * reginfo.c (reg_scan_mark_refs): Likewise.
6109         * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
6110         (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
6111         (forget_old_reloads_1): Likewise.
6112         * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
6113         (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
6114         (dbr_schedule): Likewise.
6115         * resource.c (update_live_status, mark_referenced_resources)
6116         (mark_set_resources): Likewise.
6117         * rtl.c (copy_rtx): Likewise.
6118         * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
6119         (note_pattern_stores): Likewise.
6120         (reg_is_clobbered_by_clobber_high): Delete.
6121         * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
6122         CLOBBER_HIGH handling.
6124 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
6126         PR target/91452
6127         * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
6128         * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
6129         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
6130         Handle ARM_PCS_TLSDESC.
6131         (aarch64_tlsdesc_abi_id): New function.
6132         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
6133         rtx instead of a list of clobbers and clobber_highs.
6134         (tlsdesc_small_<mode>): Update accordingly.
6136 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
6138         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
6139         extra callee_abi argument.
6140         * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
6141         Insert a CALLEE_ABI unspec into the call pattern as the second
6142         element in the PARALLEL.
6143         (aarch64_simd_call_p): Delete.
6144         (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
6145         the new CALLEE_ABI element of the PARALLEL.
6146         (aarch64_init_cumulative_args): Get the arm_pcs of the callee
6147         from the function type, if given.
6148         (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
6149         (aarch64_function_arg): Likewise.  Return the arm_pcs of the callee
6150         when passed the function_arg_info end marker.
6151         (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
6152         final argument of gen_sibcall.
6153         * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
6154         (call): Make operand 2 a const_int_operand and pass it to expand_call.
6155         Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
6156         pattern.
6157         (call_value): Likewise operand 3.
6158         (sibcall): Likewise operand 2.  Place the unspec before rather than
6159         after the return.
6160         (sibcall_value): Likewise operand 3.
6161         (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
6162         (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
6163         (*sibcall_insn, *sibcall_value_insn): Likewise.  Remove empty
6164         constraint strings.
6165         (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
6167 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
6169         * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
6170         choose_hard_reg_mode.
6171         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6173 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
6175         * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
6176         (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
6177         (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
6179 2019-09-30  David Malcolm  <dmalcolm@redhat.com>
6181         * diagnostic-show-locus.c (line_label::line_label): Initialize
6182         m_has_vbar.
6183         (line_label::comparator): Reverse the sort order by m_state_idx,
6184         so that when the list is walked backwards the labels appear in
6185         order of insertion into the rich_location.
6186         (line_label::m_has_vbar): New field.
6187         (layout::print_any_labels): When dealing with multiple labels at
6188         the same line and column, only print vertical bars for the one
6189         with the highest label_line.
6190         (selftest::test_one_liner_labels): Update test for multiple labels
6191         to expect the labels to be in the order of insertion into the
6192         rich_location.  Add a test for many such labels, where the column
6193         numbers are out-of-order relative to the insertion order.
6195 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6197         * config/i386/i386.h (ix86_frame::expensive_p): New field.
6198         (ix86_frame::expensive_count): Likewise.
6199         * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
6200         of use_fast_prologue_epilogue robust against incidental changes
6201         in function size.
6203 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
6205         PR target/77918
6206         * config/s390/vector.md (vec_unordered<mode>): Call
6207         gen_vec_ordered<mode>.
6209 2019-09-30  Yuliang Wang  <yuliang.wang@arm.com>
6211         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
6212         New pattern for ASRD.
6213         * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
6214         * internal-fn.def (IFN_DIV_POW2): New internal function.
6215         * optabs.def (sdiv_pow2_optab): New optab.
6216         * tree-vect-patterns.c (vect_recog_divmod_pattern):
6217         Modify pattern to support new operation.
6218         * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
6219         * doc/sourcebuild.texi (vect_sdiv_pow2_si):
6220         Document new target selector.
6222 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6224         * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
6225         to test whether we're compiling a vector PCS function and to test
6226         whether the function needs to save a particular register.
6227         Remove the vector PCS handling of df_set_regs_ever_live.
6228         (aarch64_components_for_bb): Use crtl->abi to test whether
6229         the function needs to save a particular register.
6230         (aarch64_process_components): Use crtl->abi to test whether
6231         we're compiling a vector PCS function.
6232         (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
6233         (aarch64_epilogue_uses): Remove handling of vector PCS functions.
6235 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6237         * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
6238         Delete.
6239         * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
6240         whether the block calls a function that clobbers more registers
6241         than the current function is allowed to.
6242         (aarch64_use_simple_return_insn_p): Delete.
6243         * config/aarch64/aarch64.md (simple_return): Remove condition.
6245 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6247         * function-abi.h (function_abi_aggregator): New class.
6248         * function-abi.cc (function_abi_aggregator::caller_save_regs): New
6249         function.
6250         * ira.c (update_equiv_regs_prescan): New function.  Call
6251         set_paradoxical_subreg here rather than...
6252         (update_equiv_regs): ...here.
6253         (ira): Call update_equiv_regs_prescan.
6255 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6257         * hard-reg-set.h (regs_invalidated_by_call): Only define if
6258         IN_TARGET_CODE.
6259         (call_used_or_fixed_regs): Likewise.
6260         (call_used_or_fixed_reg_p): Likewise.
6261         * reginfo.c (regs_invalidated_by_call): New macro.
6263 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6265         * shrink-wrap.c: Include function-abi.h.
6266         (requires_stack_frame_p): Use crtl->abi to test whether the
6267         current function can use a register without saving it first.
6269 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6271         * sel-sched-ir.h (_def::crosses_call): Replace with...
6272         (_def::crossed_call_abis): ..this new field.
6273         (def_list_add): Take a mask of ABIs instead of a crosses_call
6274         boolean.
6275         * sel-sched-ir.c (def_list_add): Likewise.  Update initialization
6276         of _def accordingly.
6277         * sel-sched.c: Include function-abi.h.
6278         (hard_regs_data::regs_for_call_clobbered): Delete.
6279         (reg_rename::crosses_call): Replace with...
6280         (reg_rename::crossed_call_abis): ...this new field.
6281         (fur_static_params::crosses_call): Replace with...
6282         (fur_static_params::crossed_call_abis): ...this new field.
6283         (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
6284         (init_hard_regs_data): Use crtl->abi to test which registers the
6285         current function would need to save before it uses them.
6286         (mark_unavailable_hard_regs): Update handling of call-clobbered
6287         registers, using call_clobbers_in_region to find out which registers
6288         might be call-clobbered (but without taking -fipa-ra into account
6289         for now).  Remove separate handling of partially call-clobbered
6290         registers.
6291         (verify_target_availability): Use crossed_call_abis instead of
6292         crosses_call.
6293         (get_spec_check_type_for_insn, find_used_regs): Likewise.
6294         (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
6296 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6298         * sched-deps.c (deps_analyze_insn): Use the ABI of the target
6299         function to test whether a register is fully or partly clobbered.
6301 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6303         * rtlanal.c: Include function-abi.h.
6304         (reg_set_p): Use insn_callee_abi to get the ABI of the called
6305         function and clobbers_reg_p to test whether the register
6306         is call-clobbered.
6307         (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
6308         to get the ABI of the called function and full_reg_clobbers to
6309         get the set of fully call-clobbered registers.  Warn about the
6310         pitfalls of using this mode.
6312 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6314         * reload.c: Include function-abi.h.
6315         (find_equiv_reg): Use clobbers_reg_p to test whether either
6316         of the equivalent registers is clobbered by a call.
6317         * reload1.c: Include function-abi.h.
6318         (reg_reloaded_call_part_clobbered): Delete.
6319         (reload): Use crtl->abi to test which registers would need
6320         saving in the prologue before use.
6321         (find_reg): Likewise.
6322         (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
6323         (reload_as_needed): Likewise.  Use full_and_partial_reg_clobbers
6324         instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
6326 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6328         * regrename.h (du_head::call_clobber_mask): New field.
6329         (du_head::need_caller_save_reg): Replace with...
6330         (du_head::call_abis): ...this new field.
6331         * regrename.c: Include function-abi.h.
6332         (call_clobbered_in_chain_p): New function.
6333         (check_new_reg_p): Use crtl->abi when deciding whether a register
6334         is free for use after RA.  Use call_clobbered_in_chain_p to test
6335         whether a candidate register would be clobbered by a call.
6336         (find_rename_reg): Don't add call-clobber conflicts here.
6337         (rename_chains): Check call_abis instead of need_caller_save_reg.
6338         (merge_chains): Update for changes to du_head.
6339         (build_def_use): Use insn_callee_abi to get the ABI of the call insn
6340         target.  Record the ABI identifier in call_abis and the set of
6341         fully or partially clobbered registers in call_clobber_mask.
6342         Add fully-clobbered registers to hard_conflicts here rather
6343         than in find_rename_reg.
6344         * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
6345         (rename_single_chain): Check call_abis instead of need_caller_save_reg.
6346         * config/aarch64/falkor-tag-collision-avoidance.c: Include
6347         function-abi.h.
6348         * config/c6x/c6x.c: Likewise.
6350 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6352         * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
6353         mode of the register when deciding whether it is no longer
6354         available after a call.
6356 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6358         * recog.c: Include function-abi.h.
6359         (peep2_find_free_register): Use crtl->abi when deciding whether
6360         a register is free for use after RA.
6362 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6364         * postreload-gcse.c: Include regs.h and function-abi.h.
6365         (record_opr_changes): Use insn_callee_abi to get the ABI of the
6366         call insn target.  Conservatively assume that partially-clobbered
6367         registers are altered.
6369 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6371         * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
6372         when deciding whether a register is free for use after RA.
6373         (reload_combine): Remove unnecessary use of fixed_reg_set.
6374         (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
6375         call insn target.  Use reg_mode when testing whether a register
6376         is no longer available.
6378 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6380         * target.def (return_call_with_max_clobbers): Delete.
6381         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
6382         * doc/tm.texi: Regenerate.
6383         * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
6384         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
6385         * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
6386         (lra_reg::call_insn): Delete.
6387         * lra.c: Include function-abi.h.
6388         (initialize_lra_reg_info_element): Don't initialize the fields above.
6389         (lra): Use crtl->abi to test whether the current function needs to
6390         save a register in the prologue.  Remove special pre-inheritance
6391         lra_create_live_ranges pass for flag_ipa_ra.
6392         * lra-assigns.c: Include function-abi.h
6393         (find_hard_regno_for_1): Use crtl->abi to test whether the current
6394         function needs to save a register in the prologue.
6395         (lra_assign): Assert that registers aren't allocated to a
6396         conflicting register, rather than checking only for overlaps
6397         with call_used_or_fixed_regs.  Do this even for flag_ipa_ra,
6398         and for registers that are not live across a call.
6399         * lra-constraints.c (last_call_for_abi): New variable.
6400         (full_and_partial_call_clobbers): Likewise.
6401         (setup_next_usage_insn): Remove the register from
6402         full_and_partial_call_clobbers.
6403         (need_for_call_save_p): Use call_clobbered_in_region_p to test
6404         whether the register needs a caller save.
6405         (need_for_split_p): Use full_and_partial_reg_clobbers instead
6406         of call_used_or_fixed_regs.
6407         (inherit_in_ebb): Initialize and maintain last_call_for_abi and
6408         full_and_partial_call_clobbers.
6409         * lra-lives.c (check_pseudos_live_through_calls): Replace
6410         last_call_used_reg_set and call_insn arguments with an abi argument.
6411         Remove handling of lra_reg::call_insn.  Use function_abi::mode_clobbers
6412         as the set of conflicting registers.
6413         (calls_have_same_clobbers_p): Delete.
6414         (process_bb_lives): Track the ABI of the last call instead of an
6415         insn/HARD_REG_SET pair.  Update calls to
6416         check_pseudos_live_through_calls.  Use eh_edge_abi to calculate
6417         the set of registers that could be clobbered by an EH edge.
6418         Include partially-clobbered as well as fully-clobbered registers.
6419         (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
6420         * lra-remat.c: Include function-abi.h.
6421         (call_used_regs_arr_len, call_used_regs_arr): Delete.
6422         (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
6423         registers and bitmap_view to combine them into dead_regs.
6424         (call_used_input_regno_present_p): Take a function_abi argument
6425         and use it to test whether a register is call-clobbered.
6426         (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
6427         call insn target.  Update tje call to call_used_input_regno_present_p.
6428         (do_remat): Likewise.
6429         (lra_remat): Remove the initialization of call_used_regs_arr_len
6430         and call_used_regs_arr.
6432 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6434         * loop-iv.c: Include regs.h and function-abi.h.
6435         (simplify_using_initial_values): Use insn_callee_abi to get the
6436         ABI of the call insn target.  Conservatively assume that
6437         partially-clobbered registers are altered.
6439 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6441         * function-abi.h (call_clobbers_in_region): Declare.
6442         (call_clobbered_in_region_p): New function.
6443         * function-abi.cc (call_clobbers_in_region): Likewise.
6444         * ira-int.h: Include function-abi.h.
6445         (ira_allocno::crossed_calls_abis): New field.
6446         (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
6447         (ira_need_caller_save_regs): New function.
6448         (ira_need_caller_save_p): Likewise.
6449         * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
6450         of call_used_or_fixed_regs.
6451         (do_reload): Use crtl->abi to test whether the current function
6452         needs to save a register in the prologue.  Count registers that
6453         need to be saved rather than registers that don't.
6454         * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
6455         Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6456         (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
6457         (propagate_some_info_from_allocno): Likewise.
6458         (copy_info_to_removed_store_destinations): Likewise.
6459         (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
6460         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
6461         (ira_build): Use ira_need_caller_save_regs instead of
6462         call_used_or_fixed_regs.
6463         * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
6464         whether the current function would need to save a register
6465         before using it.
6466         (calculate_spill_cost): Likewise.
6467         (allocno_reload_assign): Use ira_need_caller_save_regs and
6468         ira_need_caller_save_p instead of call_used_or_fixed_regs.
6469         * ira-conflicts.c (ira_build_conflicts): Use
6470         ira_need_caller_save_regs rather than call_used_or_fixed_regs
6471         as the set of call-clobbered registers.  Remove the
6472         call_used_or_fixed_regs mask from the calculation of
6473         temp_hard_reg_set and mask its use instead.  Remove special
6474         handling of partially-clobbered registers.
6475         * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
6476         * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
6477         calculate the set of conflicting registers for calls that
6478         can throw.  Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
6479         Use full_and_partial_reg_clobbers rather than full_reg_clobbers
6480         for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6481         Use eh_edge_abi to calculate the set of registers that could
6482         be clobbered by an EH edge.  Include partially-clobbered as
6483         well as fully-clobbered registers.
6485 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6487         * haifa-sched.c: Include function-abi.h.
6488         (alloc_global_sched_pressure_data): Use crtl->abi to check whether
6489         the function would need to save a register before using it.
6491 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6493         * gcse.c: Include function-abi.h.
6494         (compute_hash_table_work): Use insn_callee_abi to get the ABI of
6495         the call insn target.  Invalidate partially call-clobbered
6496         registers as well as fully call-clobbered ones.
6498 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6500         * function.c (aggregate_value_p): Work out which ABI the
6501         function is using before testing which registers are at least
6502         partly preserved by a call.
6504 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6506         * early-remat.c: Include regs.h and function-abi.h.
6507         (early_remat::maybe_add_candidate): Don't check for call-clobbered
6508         registers here.
6509         (early_remat::restrict_remat_for_unavail_regs): New function.
6510         (early_remat::restrict_remat_for_call): Likewise.
6511         (early_remat::process_block): Before calling emit_remat_insns
6512         for a previous call in the block, invalidate any candidates
6513         that would clobber call-preserved registers.
6514         (early_remat::emit_remat_insns_for_block): Likewise for the
6515         final call in a block.  Do the same thing for live-in registers
6516         when calling emit_remat_insns at the head of a block.
6518 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6520         * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
6521         whether the current function needs to save at least part of a
6522         register before using it.
6523         (df_get_exit_block_use_set): Likewise for epilogue restores.
6525 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6527         * df-problems.c: Include regs.h and function-abi.h.
6528         (df_rd_problem_data): Rename sparse_invalidated_by_call to
6529         sparse_invalidated_by_eh and dense_invalidated_by_call to
6530         dense_invalidated_by_eh.
6531         (df_print_bb_index): Update accordingly.
6532         (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
6533         (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
6534         that are clobbered by an EH edge.  Clobber partially-clobbered
6535         registers as well as fully-clobbered ones.
6536         (df_md_confluence_n): Likewise.
6537         (df_rd_local_compute): Likewise.  Update for changes to
6538         df_rd_problem_data.
6539         * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
6540         of registers that are clobbered by an EH edge.  Includde partially-
6541         clobbered registers as well as fully-clobbered ones.
6543 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6545         * cselib.c (cselib_process_insn): If we know what mode a
6546         register was set in, check whether it is clobbered in that
6547         mode by a call.  Only fall back to reg_raw_mode if that fails.
6549 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6551         * cse.c: Include regs.h and function-abi.h.
6552         (invalidate_for_call): Take the call insn as an argument.
6553         Use insn_callee_abi to get the ABI of the call and invalidate
6554         partially clobbered registers as well as fully clobbered ones.
6555         (cse_insn): Update call accordingly.
6557 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6559         * combine.c: Include function-abi.h.
6560         (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
6561         of the target of call insns.  Invalidate partially-clobbered
6562         registers as well as fully-clobbered ones.
6564 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6566         * cfgloopanal.c: Include regs.h and function-abi.h.
6567         (init_set_costs): Use default_function_abi to test whether
6568         a general register is call-clobbered.
6570 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6572         * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
6573         instead of the call-clobbered sets.
6575 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6577         * caller-save.c (setup_save_areas): Remove redundant |s of
6578         fixed_reg_set.
6579         (save_call_clobbered_regs): Likewise.  Use the call ABI rather
6580         than call_used_or_fixed_regs to decide whether a REG_RETURNED
6581         value is useful.
6583 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6585         * rtl.h (predefined_function_abi): Declare.
6586         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
6587         instead of a boolean call_save flag.
6588         * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
6589         accordingly.
6590         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6591         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6592         * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
6593         * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6594         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6595         * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
6596         * reginfo.c (init_reg_modes_target): Likewise.
6597         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
6598         instead of a boolean call_save flag.
6599         * targhooks.c: Include function-abi.h.
6600         (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
6601         using eh_edge_abi to choose the mode.
6603 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6605         * target.def (hard_regno_call_part_clobbered): Take an ABI
6606         identifier instead of an rtx_insn.
6607         * doc/tm.texi: Regenerate.
6608         * hooks.h (hook_bool_insn_uint_mode_false): Delete.
6609         (hook_bool_uint_uint_mode_false): New function.
6610         * hooks.c (hook_bool_insn_uint_mode_false): Delete.
6611         (hook_bool_uint_uint_mode_false): New function.
6612         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
6613         Take an ABI identifier instead of an rtx_insn.
6614         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
6615         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
6616         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
6617         * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
6618         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
6619         Likewise.
6620         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
6621         * cselib.c: Include function-abi.h.
6622         (cselib_process_insn): Update call to
6623         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
6624         to get the appropriate ABI identifier.
6625         * function-abi.cc (predefined_function_abi::initialize): Update call
6626         to targetm.hard_regno_call_part_clobbered.
6627         * ira-conflicts.c (ira_build_conflicts): Likewise.
6628         * ira-costs.c (ira_tune_allocno_costs): Likewise.
6629         * lra-constraints.c: Include function-abi.h.
6630         (need_for_call_save_p): Update call to
6631         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
6632         to get the appropriate ABI identifier.
6633         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
6634         * regcprop.c (copyprop_hardreg_forward_1): Update call
6635         to targetm.hard_regno_call_part_clobbered.
6636         * reginfo.c (choose_hard_reg_mode): Likewise.
6637         * regrename.c (check_new_reg_p): Likewise.
6638         * reload.c (find_equiv_reg): Likewise.
6639         * reload1.c (emit_reload_insns): Likewise.
6640         * sched-deps.c: Include function-abi.h.
6641         (deps_analyze_insn): Update call to
6642         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
6643         to get the appropriate ABI identifier.
6644         * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
6645         call to targetm.hard_regno_call_part_clobbered.
6646         * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
6648 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6650         * config/i386/i386.c: Include function-abi.h.
6651         (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
6652         if they preserve some 256-bit or 512-bit SSE registers.
6654 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6656         * target.def (insn_callee_abi): New hook.
6657         (remove_extra_call_preserved_regs): Delete.
6658         * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
6659         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
6660         * doc/tm.texi: Regenerate.
6661         * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
6662         * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
6663         * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
6664         insn argument.
6665         (aarch64_remove_extra_call_preserved_regs): Delete.
6666         (aarch64_insn_callee_abi): New function.
6667         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
6668         (TARGET_INSN_CALLEE_ABI): New macro.
6669         * rtl.h (get_call_fndecl): Declare.
6670         (cgraph_rtl_info): Fix formatting.  Tweak comment for
6671         function_used_regs.  Remove function_used_regs_valid.
6672         * rtlanal.c (get_call_fndecl): Moved from final.c
6673         * function-abi.h (insn_callee_abi): Declare.
6674         (target_function_abi_info): Mention insn_callee_abi.
6675         * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
6676         way to get_call_reg_set_usage did.
6677         (insn_callee_abi): New function.
6678         * regs.h (get_call_reg_set_usage): Delete.
6679         * final.c: Include function-abi.h.
6680         (collect_fn_hard_reg_usage): Add fixed and stack registers to
6681         function_used_regs before the main loop rather than afterwards.
6682         Use insn_callee_abi instead of get_call_reg_set_usage.  Exit early
6683         if function_used_regs ends up not being useful.
6684         (get_call_fndecl): Move to rtlanal.c
6685         (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
6686         * caller-save.c: Include function-abi.h.
6687         (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
6688         instead of get_call_reg_set_usage.
6689         * cfgcleanup.c: Include function-abi.h.
6690         (old_insns_match_p): Use insn_callee_abi instead of
6691         get_call_reg_set_usage.
6692         * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
6693         a tree.
6694         * cgraph.c (cgraph_node::rtl_info): Likewise.  Initialize
6695         function_used_regs.
6696         * df-scan.c: Include function-abi.h.
6697         (df_get_call_refs): Use insn_callee_abi instead of
6698         get_call_reg_set_usage.
6699         * ira-lives.c: Include function-abi.h.
6700         (process_bb_node_lives): Use insn_callee_abi instead of
6701         get_call_reg_set_usage.
6702         * lra-lives.c: Include function-abi.h.
6703         (process_bb_lives): Use insn_callee_abi instead of
6704         get_call_reg_set_usage.
6705         * postreload.c: Include function-abi.h.
6706         (reload_combine): Use insn_callee_abi instead of
6707         get_call_reg_set_usage.
6708         * regcprop.c: Include function-abi.h.
6709         (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
6710         get_call_reg_set_usage.
6711         * resource.c: Include function-abi.h.
6712         (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
6713         instead of get_call_reg_set_usage.
6714         * var-tracking.c: Include function-abi.h.
6715         (dataflow_set_clear_at_call): Use insn_callee_abi instead of
6716         get_call_reg_set_usage.
6718 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6720         * target.def (fntype_abi): New target hook.
6721         * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
6722         * doc/tm.texi: Regenerate.
6723         * target.h (predefined_function_abi): Declare.
6724         * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
6725         if defined.
6726         * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
6727         * config/aarch64/aarch64.c: Include function-abi.h.
6728         (aarch64_simd_abi, aarch64_fntype_abi): New functions.
6729         (TARGET_FNTYPE_ABI): Define.
6731 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6733         * Makefile.in (OBJS): Add function-abi.o.
6734         (GTFILES): Add function-abi.h.
6735         * function-abi.cc: New file.
6736         * function-abi.h: Likewise.
6737         * emit-rtl.h (rtl_data::abi): New field.
6738         * function.c: Include function-abi.h.
6739         (prepare_function_start): Initialize crtl->abi.
6740         * read-rtl-function.c: Include regs.h and function-abi.h.
6741         (read_rtl_function_body): Initialize crtl->abi.
6742         (read_rtl_function_body_from_file_range): Likewise.
6743         * reginfo.c: Include function-abi.h.
6744         (init_reg_sets_1): Initialize default_function_abi.
6745         (globalize_reg): Call add_full_reg_clobber for each predefined ABI
6746         when making a register global.
6747         * target-globals.h (this_target_function_abi_info): Declare.
6748         (target_globals::function_abi_info): New field.
6749         (restore_target_globals): Copy it.
6750         * target-globals.c: Include function-abi.h.
6751         (default_target_globals): Initialize the function_abi_info field.
6752         (target_globals): Allocate it.
6753         (save_target_globals): Free it.
6755 2019-09-30  Nick Clifton  <nickc@redhat.com>
6757         PR target/85978
6758         * config/frv/frv.c (frv_register_move_cost): Add break statements
6759         to avoid falling through to the wrong cases.  Tidy code.
6761 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
6763         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
6764         For multi-registers modes, test how big each register part is.
6766 2019-09-30  Nick Clifton  <nickc@redhat.com>
6768         PR target/59205
6769         * config/iq2000/iq2000.c (iq2000_select_section): Delete.
6770         (TARGET_ASM_SELECT_SECTION): Remove definition.
6771         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
6773 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
6775         * emit-rtl.c (init_raw_REG): New function.
6776         (gen_raw_REG): Use init_raw_REG.
6777         * gengenrtl.c (gendef): Emit init_* functions and alloca_*
6778         macros.
6779         * rtl.c (rtx_alloc_stat_v): Use rtx_init.
6780         * rtl.h (rtx_init): New function.
6781         (rtx_alloca): New function.
6782         (init_raw_REG): New function.
6783         (alloca_raw_REG): New macro.
6785 2019-09-30  Michael Meissner  <meissner@linux.ibm.com>
6787         * config/rs6000/predicates.md (pcrel_address): Delete predicate.
6788         (pcrel_local_address): Replace pcrel_address predicate, use the
6789         new function address_to_insn_form.
6790         (pcrel_external_address): Replace with new implementation using
6791         address_to_insn_form..
6792         (prefixed_mem_operand): Delete predicate which is now unused.
6793         (pcrel_external_mem_operand): Delete predicate which is now
6794         unused.
6795         * config/rs6000/rs6000-protos.h (enum insn_form): New
6796         enumeration.
6797         (enum non_prefixed_form): New enumeration.
6798         (address_to_insn_form): New declaration.
6799         (prefixed_load_p): New declaration.
6800         (prefixed_store_p): New declaration.
6801         (prefixed_paddi_p): New declaration.
6802         (rs6000_asm_output_opcode): New declaration.
6803         (rs6000_final_prescan_insn): Move declaration and update calling
6804         signature.
6805         (address_is_prefixed): New helper inline function.
6806         * config/rs6000/rs6000.c(print_operand_address): Check for either
6807         PC-relative local symbols or PC-relative external symbols.
6808         (rs6000_emit_move): Support loading PC-relative addresses.
6809         (mode_supports_prefixed_address_p): Delete, no longer used.
6810         (rs6000_prefixed_address_mode_p): Delete, no longer used.
6811         (address_to_insn_form): New function to decode an address format.
6812         (reg_to_non_prefixed): New function to identify what the
6813         non-prefixed memory instruction format is for a register.
6814         (prefixed_load_p): New function to identify prefixed loads.
6815         (prefixed_store_p): New function to identify prefixed stores.
6816         (prefixed_paddi_p): New function to identify prefixed load
6817         immediates.
6818         (next_insn_prefixed_p): New static state variable.
6819         (rs6000_final_prescan_insn): New function to determine if an insn
6820         uses a prefixed instruction.
6821         (rs6000_asm_output_opcode): New function to emit 'p' in front of a
6822         prefixed instruction.
6823         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
6824         (ASM_OUTPUT_OPCODE): New target hook.
6825         * config/rs6000/rs6000.md (prefixed): New insn attribute for
6826         prefixed instructions.
6827         (prefixed_length): New insn attribute for the size of prefixed
6828         instructions.
6829         (non_prefixed_length): New insn attribute for the size of
6830         non-prefixed instructions.
6831         (pcrel_local_addr): New insn to load up a local PC-relative
6832         address.
6833         (pcrel_extern_addr): New insn to load up an external PC-relative
6834         address.
6835         (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
6836         GPR and loading a 128-bit floating point type to a GPR.
6838 2019-09-30  Richard Biener  <rguenther@suse.de>
6840         * gimple.c (gimple_get_lhs): For PHIs return the result.
6841         * tree-vectorizer.h (vectorizable_live_operation): Also get the
6842         SLP instance as argument.
6843         * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
6844         double-reduction PHIs with vectorizable_lc_phi.
6845         (vect_analyze_loop_operations): Adjust.
6846         (vect_create_epilog_for_reduction): Remove all code not dealing
6847         with reduction LC PHI or epilogue generation.
6848         (vectorizable_live_operation): Call vect_create_epilog_for_reduction
6849         for live stmts of reductions.
6850         * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
6851         do not handle defs that are not vect_internal_def.
6852         (can_vectorize_live_stmts): Adjust.
6853         (vect_analyze_stmt): When the vectorized stmt defined a value
6854         used on backedges adjust the backedge uses of vectorized PHIs.
6856 2019-09-30  Martin Jambor  <mjambor@suse.cz>
6858         PR ipa/91853
6859         * tree-inline.c (force_value_to_type): New function.
6860         (setup_one_parameter): Use force_value_to_type to convert type.
6861         * tree-inline.c (force_value_to_type): Declare.
6862         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
6863         with register type mismatches.
6865 2019-09-30  Andreas Tobler  <andreast@gcc.gnu.org>
6867         * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
6868         32-bit PowerPC.
6869         Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
6870         * config/rs6000/t-freebsd64: Make use of the above define and build
6871         the 32-bit libraries with secure-plt.
6873 2019-09-30  Jakub Jelinek  <jakub@redhat.com>
6875         PR target/91931
6876         * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
6877         gen_int_mode instead of GEN_INT.
6879 2019-09-29  Iain Sandoe  <iain@sandoe.co.uk>
6881         * config/darwin.c (gen_macho_low): Amend to include the mode
6882         argument.
6883         (machopic_indirect_data_reference): Amend gen_macho_low call
6884         to include mode argument
6885         * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
6886         * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
6887         the macho_high expander and two define_insn entries.
6889 2019-09-29  Jakub Jelinek  <jakub@redhat.com>
6891         PR bootstrap/90543
6892         * optc-save-gen.awk: Fix up printing string option differences.
6894 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
6896         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
6897         vec_perm cost to 1 for non-Power7 VSX architectures.
6899 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
6901         * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
6902         (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
6903         (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
6905 2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>
6907         * config/darwin.c (gen_macho_high): Amend to include the mode
6908         argument.
6909         (machopic_indirect_data_reference): Amend gen_macho_high call
6910         to include mode argument.
6911         (machopic_legitimize_pic_address): Likewise.
6912         * config/rs6000/rs6000.c (rs6000_legitimize_address):
6913         * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
6914         the macho_high expander and two define_insn entries.
6916 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
6918         PR target/86805
6919         * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
6921 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
6923         PR target/80672
6924         * config/sh/sh.c (parse_validate_atomic_model_option): Use
6925         std::string::compare instead of std::string::find.
6927 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
6929         * configure: Regenerate.
6931 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
6933         PR middle-end/91920
6934         * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
6935         variables as shared.
6937 2019-09-27  Iain Sandoe  <iain@sandoe.co.uk>
6939         * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
6940         replaces the expander and two define_insn entries.
6941         (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
6942         call.
6943         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
6945 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
6947         * fibonacci_heap.h (fibonacci_heap::empty): Make const.
6948         (fibonacci_heap::nodes): Likewise.
6949         (fibonacci_heap::min_key): Likewise.
6950         (fibonacci_heap::min): Likewise.
6952 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
6954         * cgraph.c (cgraph_node::get_fun): Make const.
6955         * cgraph.h (cgraph_node::get_fun): Likewise.
6957 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
6959         PR target/91919
6960         * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
6961         of SImode MULT.
6963 2019-09-27  Richard Biener  <rguenther@suse.de>
6965         * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
6966         (STMT_VINFO_REDUC_FN): Likewise.
6967         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
6968         STMT_VINFO_REDUC_FN.
6969         * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
6970         for condition reductions.
6971         (vect_create_epilog_for_reduction): Compute all required state
6972         from the stmt to be vectorized.
6973         (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
6974         invocation and remove then dead code.  For single def-use chains
6975         record only a single vector stmt.
6977 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
6979         * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
6980         (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
6981         (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
6982         (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
6983         (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
6984         (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
6985         (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
6986         (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
6987         (aarch64_general_builtin_rsqrt): Declare.
6988         * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
6989         New function.
6990         (aarch64_mangle_builtin_type): Rename to...
6991         (aarch64_general_mangle_builtin_type): ...this.
6992         (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
6993         (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
6994         (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
6995         aarch64_general_add_builtin instead of add_builtin_function.
6996         (aarch64_init_builtins): Rename to...
6997         (aarch64_general_init_builtins): ...this.  Use
6998         aarch64_general_add_builtin instead of add_builtin_function.
6999         (aarch64_builtin_decl): Rename to...
7000         (aarch64_general_builtin_decl): ...this and remove the unused
7001         arguments.
7002         (aarch64_expand_builtin): Rename to...
7003         (aarch64_general_expand_builtin): ...this and remove the unused
7004         arguments.
7005         (aarch64_builtin_rsqrt): Rename to...
7006         (aarch64_general_builtin_rsqrt): ...this.
7007         (aarch64_fold_builtin): Rename to...
7008         (aarch64_general_fold_builtin): ...this.  Take the function subcode
7009         and return type as arguments.  Remove the "ignored" argument.
7010         (aarch64_gimple_fold_builtin): Rename to...
7011         (aarch64_general_gimple_fold_builtin): ...this.  Take the function
7012         subcode and gcall as arguments, and return the new function call.
7013         * config/aarch64/aarch64.c (aarch64_init_builtins)
7014         (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
7015         (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
7016         (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
7017         instead of aarch64_builtin_rsqrt.
7018         (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
7019         instead of aarch64_mangle_builtin_type.
7021 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
7023         * target.def (check_builtin_call): New target hook.
7024         * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
7025         * doc/tm.texi: Regenerate.
7027 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
7029         PR tree-optimization/91909
7030         * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
7031         reduc_index parameter.  When handling COND_REDUCTION, make sure
7032         that the reduction phi operand is in the correct arm of the
7033         VEC_COND_EXPR.
7034         (vectorizable_reduction): Pass reduc_index to the above.
7036 2019-09-27  Yuliang Wang  <yuliang.wang@arm.com>
7038         * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
7039         New combine pattern.
7041 2019-09-26  Max Filippov  <jcmvbkbc@gmail.com>
7043         * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
7044         loop instruction into new basic block before the loop when basic
7045         block that precedes the loop is empty.
7047 2019-09-26  Jakub Jelinek  <jakub@redhat.com>
7049         * function.c (gimplify_parameters): Use build_clobber function.
7050         * tree-ssa.c (execute_update_addresses_taken): Likewise.
7051         * tree-inline.c (expand_call_inline): Likewise.
7052         * tree-sra.c (clobber_subtree): Likewise.
7053         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
7054         * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
7055         lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
7056         lower_omp_target): Likewise.
7057         * omp-expand.c (expand_omp_for_generic): Likewise.
7058         * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
7060 2019-09-26  Will Schmidt <will_schmidt@vnet.ibm.com>
7062         * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
7063         LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
7064         LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
7065         LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
7066         LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
7067         LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
7068         LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
7069         LD_ELEMREV_V16QI): Use the PURE attribute.
7071 2019-09-26  Iain Sandoe  <iain@sandoe.co.uk>
7073         * config/rs6000/darwin.md: Replace the expanders for
7074         load_macho_picbase and reload_macho_picbase with use of '@'
7075         and <mode> in their respective define_insns.
7076         (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
7077         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
7078         Pmode to gen_load_macho_picbase.
7079         * config/rs6000/rs6000.md: Likewise.
7081 2019-09-25  Richard Biener  <rguenther@suse.de>
7083         PR tree-optimization/91896
7084         * tree-vect-loop.c (vectorizable_reduction): The single
7085         def-use cycle optimization cannot apply when there's more
7086         than one pattern stmt involved.
7088 2019-09-26  Richard Biener  <rguenther@suse.de>
7090         * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
7091         loop-closed PHIs that are vect_internal_def.
7092         (vect_create_epilog_for_reduction): Exit early for nested cycles.
7093         Simplify.
7094         (vectorizable_lc_phi): New.
7095         * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
7096         (vect_transform_stmt): Likewise.
7097         * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
7098         (vectorizable_lc_phi): Declare.
7100 2019-09-26  Richard Biener  <rguenther@suse.de>
7102         * tree-vect-loop.c (vect_analyze_loop_operations): Also call
7103         vectorizable_reduction for vect_double_reduction_def.
7104         (vect_transform_loop): Likewise.
7105         (vect_create_epilog_for_reduction): Move double-reduction
7106         PHI creation and preheader argument setting of PHIs ...
7107         (vectorizable_reduction): ... here.  Also process
7108         vect_double_reduction_def PHIs, creating the vectorized
7109         PHI nodes, remembering the scalar adjustment computed for
7110         the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
7111         Remember the original reduction code in STMT_VINFO_REDUC_CODE.
7112         * tree-vectorizer.c (vec_info::new_stmt_vec_info):
7113         Initialize STMT_VINFO_REDUC_CODE.
7114         * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
7115         (_stmt_vec_info::reduc_code): Likewise.
7116         (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
7117         (STMT_VINFO_REDUC_CODE): Likewise.
7119 2019-09-26  Matt Turner  <mattst88@gmail.com>
7121         PR driver/69471
7122         * config/aarch64/aarch64.opt (march=): Add Negative(march=).
7123         (mtune=): Add Negative(mtune=).
7124         (mcpu=): Add Negative(mcpu=).
7125         * config/arm/arm.opt: Likewise.
7127 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7129         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
7130         * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
7131         Define.
7132         * config/arm/arm_acle.h: Define builtins for the above.
7133         * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
7134         (simd32_op): Handle the above.
7135         * config/arm/unspecs.md: Define unspecs for the above.
7137 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7139         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
7140         (arm_<sup>xtb16): Likewise.
7141         (arm_usada8): Likewise.
7142         * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
7143         __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
7144         __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
7145         __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
7146         __sxtb16, __uxtab16, __uxtb16): Define.
7147         * config/arm/arm_acle_builtins.def: Define builtins for the above.
7148         * config/arm/unspecs.md: Define unspecs for the above.
7149         * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
7150         (USXTB16): Likewise.
7151         (simd32_op): New int_attribute.
7152         (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
7153         * doc/sourcebuild.exp (arm_simd32_ok): Document.
7155 2019-09-26  Martin Jambor  <mjambor@suse.cz>
7157         * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
7158         internal_error.
7160 2019-09-26  Martin Jambor  <mjambor@suse.cz>
7162         * ipa-sra.c (process_scan_results): Fix continue condition.
7164 2019-09-26  Martin Liska  <mliska@suse.cz>
7166         PR tree-optimization/91885
7167         * tree-vectorizer.c (try_vectorize_loop_1): Add
7168         TODO_update_ssa_only_virtuals similarly to what slp pass does.
7170 2019-09-26  Richard Sandiford  <richard.sandiford@arm.com>
7172         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
7173         aarch64_plus_immediate rather than aarch64_uimm12_shift
7174         to test for valid PLUS immediates.
7176 2019-09-25  Martin Jambor  <mjambor@suse.cz>
7178         * tree-sra.c (no_accesses_p): Remove.
7179         (no_accesses_representant): Likewise.
7181 2019-09-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7183         * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
7184         consistenly.
7185         (vaba_s16): Likewise.
7186         (vaba_s32): Likewise.
7187         (vaba_u8): Likewise.
7188         (vaba_u16): Likewise.
7189         (vaba_u32): Likewise.
7190         (vabal_high_s8): Likewise.
7191         (vabal_high_s16): Likewise.
7192         (vabal_high_s32): Likewise.
7193         (vabal_high_u8): Likewise.
7194         (vabal_high_u16): Likewise.
7195         (vabal_high_u32): Likewise.
7196         (vabal_s8): Likewise.
7197         (vabal_s16): Likewise.
7198         (vabal_s32): Likewise.
7199         (vabal_u8): Likewise.
7200         (vabal_u16): Likewise.
7201         (vabal_u32): Likewise.
7202         (vabaq_s8): Likewise.
7203         (vabaq_s16): Likewise.
7204         (vabaq_s32): Likewise.
7205         (vabaq_u8): Likewise.
7206         (vabaq_u16): Likewise.
7207         (vabaq_u32): Likewise.
7208         (vabd_s8): Likewise.
7209         (vabd_s16): Likewise.
7210         (vabd_s32): Likewise.
7211         (vabd_u8): Likewise.
7212         (vabd_u16): Likewise.
7213         (vabd_u32): Likewise.
7214         (vabdl_high_s8): Likewise.
7215         (vabdl_high_s16): Likewise.
7216         (vabdl_high_s32): Likewise.
7217         (vabdl_high_u8): Likewise.
7218         (vabdl_high_u16): Likewise.
7219         (vabdl_high_u32): Likewise.
7220         (vabdl_s8): Likewise.
7221         (vabdl_s16): Likewise.
7222         (vabdl_s32): Likewise.
7223         (vabdl_u8): Likewise.
7224         (vabdl_u16): Likewise.
7225         (vabdl_u32): Likewise.
7226         (vabdq_s8): Likewise.
7227         (vabdq_s16): Likewise.
7228         (vabdq_s32): Likewise.
7229         (vabdq_u8): Likewise.
7230         (vabdq_u16): Likewise.
7231         (vabdq_u32): Likewise.
7232         (vaddlv_s8): Likewise.
7233         (vaddlv_s16): Likewise.
7234         (vaddlv_u8): Likewise.
7235         (vaddlv_u16): Likewise.
7236         (vaddlvq_s8): Likewise.
7237         (vaddlvq_s16): Likewise.
7238         (vaddlvq_s32): Likewise.
7239         (vaddlvq_u8): Likewise.
7240         (vaddlvq_u16): Likewise.
7241         (vaddlvq_u32): Likewise.
7242         (vcvtx_f32_f64): Likewise.
7243         (vcvtx_high_f32_f64): Likewise.
7244         (vcvtxd_f32_f64): Likewise.
7245         (vmla_n_f32): Likewise.
7246         (vmla_n_s16): Likewise.
7247         (vmla_n_s32): Likewise.
7248         (vmla_n_u16): Likewise.
7249         (vmla_n_u32): Likewise.
7250         (vmla_s8): Likewise.
7251         (vmla_s16): Likewise.
7252         (vmla_s32): Likewise.
7253         (vmla_u8): Likewise.
7254         (vmla_u16): Likewise.
7255         (vmla_u32): Likewise.
7256         (vmlal_high_n_s16): Likewise.
7257         (vmlal_high_n_s32): Likewise.
7258         (vmlal_high_n_u16): Likewise.
7259         (vmlal_high_n_u32): Likewise.
7260         (vmlal_high_s8): Likewise.
7261         (vmlal_high_s16): Likewise.
7262         (vmlal_high_s32): Likewise.
7263         (vmlal_high_u8): Likewise.
7264         (vmlal_high_u16): Likewise.
7265         (vmlal_high_u32): Likewise.
7266         (vmlal_n_s16): Likewise.
7267         (vmlal_n_s32): Likewise.
7268         (vmlal_n_u16): Likewise.
7269         (vmlal_n_u32): Likewise.
7270         (vmlal_s8): Likewise.
7271         (vmlal_s16): Likewise.
7272         (vmlal_s32): Likewise.
7273         (vmlal_u8): Likewise.
7274         (vmlal_u16): Likewise.
7275         (vmlal_u32): Likewise.
7276         (vmlaq_n_f32): Likewise.
7277         (vmlaq_n_s16): Likewise.
7278         (vmlaq_n_s32): Likewise.
7279         (vmlaq_n_u16): Likewise.
7280         (vmlaq_n_u32): Likewise.
7281         (vmlaq_s8): Likewise.
7282         (vmlaq_s16): Likewise.
7283         (vmlaq_s32): Likewise.
7284         (vmlaq_u8): Likewise.
7285         (vmlaq_u16): Likewise.
7286         (vmlaq_u32): Likewise.
7287         (vmls_n_f32): Likewise.
7288         (vmls_n_s16): Likewise.
7289         (vmls_n_s32): Likewise.
7290         (vmls_n_u16): Likewise.
7291         (vmls_n_u32): Likewise.
7292         (vmls_s8): Likewise.
7293         (vmls_s16): Likewise.
7294         (vmls_s32): Likewise.
7295         (vmls_u8): Likewise.
7296         (vmls_u16): Likewise.
7297         (vmls_u32): Likewise.
7298         (vmlsl_high_n_s16): Likewise.
7299         (vmlsl_high_n_s32): Likewise.
7300         (vmlsl_high_n_u16): Likewise.
7301         (vmlsl_high_n_u32): Likewise.
7302         (vmlsl_high_s8): Likewise.
7303         (vmlsl_high_s16): Likewise.
7304         (vmlsl_high_s32): Likewise.
7305         (vmlsl_high_u8): Likewise.
7306         (vmlsl_high_u16): Likewise.
7307         (vmlsl_high_u32): Likewise.
7308         (vmlsl_n_s16): Likewise.
7309         (vmlsl_n_s32): Likewise.
7310         (vmlsl_n_u16): Likewise.
7311         (vmlsl_n_u32): Likewise.
7312         (vmlsl_s8): Likewise.
7313         (vmlsl_s16): Likewise.
7314         (vmlsl_s32): Likewise.
7315         (vmlsl_u8): Likewise.
7316         (vmlsl_u16): Likewise.
7317         (vmlsl_u32): Likewise.
7318         (vmlsq_n_f32): Likewise.
7319         (vmlsq_n_s16): Likewise.
7320         (vmlsq_n_s32): Likewise.
7321         (vmlsq_n_u16): Likewise.
7322         (vmlsq_n_u32): Likewise.
7323         (vmlsq_s8): Likewise.
7324         (vmlsq_s16): Likewise.
7325         (vmlsq_s32): Likewise.
7326         (vmlsq_u8): Likewise.
7327         (vmlsq_u16): Likewise.
7328         (vmlsq_u32): Likewise.
7329         (vmovl_high_s8): Likewise.
7330         (vmovl_high_s16): Likewise.
7331         (vmovl_high_s32): Likewise.
7332         (vmovl_high_u8): Likewise.
7333         (vmovl_high_u16): Likewise.
7334         (vmovl_high_u32): Likewise.
7335         (vmovl_s8): Likewise.
7336         (vmovl_s16): Likewise.
7337         (vmovl_s32): Likewise.
7338         (vmovl_u8): Likewise.
7339         (vmovl_u16): Likewise.
7340         (vmovl_u32): Likewise.
7341         (vmovn_high_s16): Likewise.
7342         (vmovn_high_s32): Likewise.
7343         (vmovn_high_s64): Likewise.
7344         (vmovn_high_u16): Likewise.
7345         (vmovn_high_u32): Likewise.
7346         (vmovn_high_u64): Likewise.
7347         (vmovn_s16): Likewise.
7348         (vmovn_s32): Likewise.
7349         (vmovn_s64): Likewise.
7350         (vmovn_u16): Likewise.
7351         (vmovn_u32): Likewise.
7352         (vmovn_u64): Likewise.
7353         (vmull_high_n_s16): Likewise.
7354         (vmull_high_n_s32): Likewise.
7355         (vmull_high_n_u16): Likewise.
7356         (vmull_high_n_u32): Likewise.
7357         (vmull_high_p8): Likewise.
7358         (vmull_high_s8): Likewise.
7359         (vmull_high_s16): Likewise.
7360         (vmull_high_s32): Likewise.
7361         (vmull_high_u8): Likewise.
7362         (vmull_high_u16): Likewise.
7363         (vmull_high_u32): Likewise.
7364         (vmull_n_s16): Likewise.
7365         (vmull_n_s32): Likewise.
7366         (vmull_n_u16): Likewise.
7367         (vmull_n_u32): Likewise.
7368         (vmull_p8): Likewise.
7369         (vmull_s8): Likewise.
7370         (vmull_s16): Likewise.
7371         (vmull_s32): Likewise.
7372         (vmull_u8): Likewise.
7373         (vmull_u16): Likewise.
7374         (vmull_u32): Likewise.
7375         (vpadal_s8): Likewise.
7376         (vpadal_s16): Likewise.
7377         (vpadal_s32): Likewise.
7378         (vpadal_u8): Likewise.
7379         (vpadal_u16): Likewise.
7380         (vpadal_u32): Likewise.
7381         (vpadalq_s8): Likewise.
7382         (vpadalq_s16): Likewise.
7383         (vpadalq_s32): Likewise.
7384         (vpadalq_u8): Likewise.
7385         (vpadalq_u16): Likewise.
7386         (vpadalq_u32): Likewise.
7387         (vpaddl_s8): Likewise.
7388         (vpaddl_s16): Likewise.
7389         (vpaddl_s32): Likewise.
7390         (vpaddl_u8): Likewise.
7391         (vpaddl_u16): Likewise.
7392         (vpaddl_u32): Likewise.
7393         (vpaddlq_s8): Likewise.
7394         (vpaddlq_s16): Likewise.
7395         (vpaddlq_s32): Likewise.
7396         (vpaddlq_u8): Likewise.
7397         (vpaddlq_u16): Likewise.
7398         (vpaddlq_u32): Likewise.
7399         (vpaddq_s8): Likewise.
7400         (vpaddq_s16): Likewise.
7401         (vpaddq_s32): Likewise.
7402         (vpaddq_s64): Likewise.
7403         (vpaddq_u8): Likewise.
7404         (vpaddq_u16): Likewise.
7405         (vpaddq_u32): Likewise.
7406         (vpaddq_u64): Likewise.
7407         (vqdmulh_n_s16): Likewise.
7408         (vqdmulh_n_s32): Likewise.
7409         (vqdmulhq_n_s16): Likewise.
7410         (vqdmulhq_n_s32): Likewise.
7411         (vqmovn_high_s16): Likewise.
7412         (vqmovn_high_s32): Likewise.
7413         (vqmovn_high_s64): Likewise.
7414         (vqmovn_high_u16): Likewise.
7415         (vqmovn_high_u32): Likewise.
7416         (vqmovn_high_u64): Likewise.
7417         (vqmovun_high_s16): Likewise.
7418         (vqmovun_high_s32): Likewise.
7419         (vqmovun_high_s64): Likewise.
7420         (vqrdmulh_n_s16): Likewise.
7421         (vqrdmulh_n_s32): Likewise.
7422         (vqrdmulhq_n_s16): Likewise.
7423         (vqrdmulhq_n_s32): Likewise.
7424         (vrsqrte_u32): Likewise.
7425         (vrsqrteq_u32): Likewise.
7426         (vtst_p8): Likewise.
7427         (vtst_p16): Likewise.
7428         (vtst_p64): Likewise.
7429         (vtstq_p8): Likewise.
7430         (vtstq_p16): Likewise.
7431         (vtstq_p64): Likewise.
7432         (vaddlv_s32): Likewise.
7433         (vaddlv_u32): Likewise.
7434         (vqtbl1_p8): Likewise.
7435         (vqtbl1_s8): Likewise.
7436         (vqtbl1_u8): Likewise.
7437         (vqtbl1q_p8): Likewise.
7438         (vqtbl1q_s8): Likewise.
7439         (vqtbl1q_u8): Likewise.
7440         (vqtbx1_s8): Likewise.
7441         (vqtbx1_u8): Likewise.
7442         (vqtbx1_p8): Likewise.
7443         (vqtbx1q_s8): Likewise.
7444         (vqtbx1q_u8): Likewise.
7445         (vqtbx1q_p8): Likewise.
7446         (vtbl1_s8): Likewise.
7447         (vtbl1_u8): Likewise.
7448         (vtbl1_p8): Likewise.
7449         (vtbl2_s8): Likewise.
7450         (vtbl2_u8): Likewise.
7451         (vtbl2_p8): Likewise.
7452         (vtbl3_s8): Likewise.
7453         (vtbl3_u8): Likewise.
7454         (vtbl3_p8): Likewise.
7455         (vtbl4_s8): Likewise.
7456         (vtbl4_u8): Likewise.
7457         (vtbl4_p8): Likewise.
7458         (vtbx2_s8): Likewise.
7459         (vtbx2_u8): Likewise.
7460         (vtbx2_p8): Likewise.
7461         (vld1_f32): Likewise.
7462         (vld1_f64): Likewise.
7463         (vld1_p8): Likewise.
7464         (vld1_p16): Likewise.
7465         (vld1_p64): Likewise.
7466         (vld1_s8): Likewise.
7467         (vld1_s16): Likewise.
7468         (vld1_s32): Likewise.
7469         (vld1_s64): Likewise.
7470         (vld1_u8): Likewise.
7471         (vld1_u16): Likewise.
7472         (vld1_u32): Likewise.
7473         (vld1_u64): Likewise.
7474         (vld1q_f32): Likewise.
7475         (vld1q_f64): Likewise.
7476         (vld1q_p8): Likewise.
7477         (vld1q_p16): Likewise.
7478         (vld1q_p64): Likewise.
7479         (vld1q_s8): Likewise.
7480         (vld1q_s16): Likewise.
7481         (vld1q_s32): Likewise.
7482         (vld1q_s64): Likewise.
7483         (vld1q_u8): Likewise.
7484         (vld1q_u16): Likewise.
7485         (vld1q_u32): Likewise.
7486         (vld1q_u64): Likewise.
7487         (vpmax_s8): Likewise.
7488         (vpmax_s16): Likewise.
7489         (vpmax_s32): Likewise.
7490         (vpmax_u8): Likewise.
7491         (vpmax_u16): Likewise.
7492         (vpmax_u32): Likewise.
7493         (vpmaxq_s8): Likewise.
7494         (vpmaxq_s16): Likewise.
7495         (vpmaxq_s32): Likewise.
7496         (vpmaxq_u8): Likewise.
7497         (vpmaxq_u16): Likewise.
7498         (vpmaxq_u32): Likewise.
7499         (vpmax_f32): Likewise.
7500         (vpmaxq_f32): Likewise.
7501         (vpmaxq_f64): Likewise.
7502         (vpmaxqd_f64): Likewise.
7503         (vpmaxs_f32): Likewise.
7504         (vpmaxnm_f32): Likewise.
7505         (vpmaxnmq_f32): Likewise.
7506         (vpmaxnmq_f64): Likewise.
7507         (vpmaxnmqd_f64): Likewise.
7508         (vpmaxnms_f32): Likewise.
7509         (vpmin_s8): Likewise.
7510         (vpmin_s16): Likewise.
7511         (vpmin_s32): Likewise.
7512         (vpmin_u8): Likewise.
7513         (vpmin_u16): Likewise.
7514         (vpmin_u32): Likewise.
7515         (vpminq_s8): Likewise.
7516         (vpminq_s16): Likewise.
7517         (vpminq_s32): Likewise.
7518         (vpminq_u8): Likewise.
7519         (vpminq_u16): Likewise.
7520         (vpminq_u32): Likewise.
7521         (vpmin_f32): Likewise.
7522         (vpminq_f32): Likewise.
7523         (vpminq_f64): Likewise.
7524         (vpminqd_f64): Likewise.
7525         (vpmins_f32): Likewise.
7526         (vpminnm_f32): Likewise.
7527         (vpminnmq_f32): Likewise.
7528         (vpminnmq_f64): Likewise.
7529         (vpminnmqd_f64): Likewise.
7530         (vpminnms_f32): Likewise.
7531         (vmla_f32): Likewise.
7532         (vmlaq_f32): Likewise.
7533         (vmlaq_f64): Likewise.
7534         (vmls_f32): Likewise.
7535         (vmlsq_f32): Likewise.
7536         (vmlsq_f64): Likewise.
7537         (vqtbl2_s8): Likewise.
7538         (vqtbl2_u8): Likewise.
7539         (vqtbl2_p8): Likewise.
7540         (vqtbl2q_s8): Likewise.
7541         (vqtbl2q_u8): Likewise.
7542         (vqtbl2q_p8): Likewise.
7543         (vqtbl3_s8): Likewise.
7544         (vqtbl3_u8): Likewise.
7545         (vqtbl3_p8): Likewise.
7546         (vqtbl3q_s8): Likewise.
7547         (vqtbl3q_u8): Likewise.
7548         (vqtbl3q_p8): Likewise.
7549         (vqtbl4_s8): Likewise.
7550         (vqtbl4_u8): Likewise.
7551         (vqtbl4_p8): Likewise.
7552         (vqtbl4q_s8): Likewise.
7553         (vqtbl4q_u8): Likewise.
7554         (vqtbl4q_p8): Likewise.
7555         (vqtbx2_s8): Likewise.
7556         (vqtbx2_u8): Likewise.
7557         (vqtbx2_p8): Likewise.
7558         (vqtbx2q_s8): Likewise.
7559         (vqtbx2q_u8): Likewise.
7560         (vqtbx2q_p8): Likewise.
7561         (vqtbx3_s8): Likewise.
7562         (vqtbx3_u8): Likewise.
7563         (vqtbx3_p8): Likewise.
7564         (vqtbx3q_s8): Likewise.
7565         (vqtbx3q_u8): Likewise.
7566         (vqtbx3q_p8): Likewise.
7567         (vqtbx4_s8): Likewise.
7568         (vqtbx4_u8): Likewise.
7569         (vqtbx4_p8): Likewise.
7570         (vqtbx4q_s8): Likewise.
7571         (vqtbx4q_u8): Likewise.
7572         (vqtbx4q_p8): Likewise.
7573         (vrev16_p8): Likewise.
7574         (vrev16_s8): Likewise.
7575         (vrev16_u8): Likewise.
7576         (vrev16q_p8): Likewise.
7577         (vrev16q_s8): Likewise.
7578         (vrev16q_u8): Likewise.
7579         (vrev32_p8): Likewise.
7580         (vrev32_p16): Likewise.
7581         (vrev32_s8): Likewise.
7582         (vrev32_s16): Likewise.
7583         (vrev32_u8): Likewise.
7584         (vrev32_u16): Likewise.
7585         (vrev32q_p8): Likewise.
7586         (vrev32q_p16): Likewise.
7587         (vrev32q_s8): Likewise.
7588         (vrev32q_s16): Likewise.
7589         (vrev32q_u8): Likewise.
7590         (vrev32q_u16): Likewise.
7591         (vrev64_f32): Likewise.
7592         (vrev64_p8): Likewise.
7593         (vrev64_p16): Likewise.
7594         (vrev64_s8): Likewise.
7595         (vrev64_s16): Likewise.
7596         (vrev64_s32): Likewise.
7597         (vrev64_u8): Likewise.
7598         (vrev64_u16): Likewise.
7599         (vrev64_u32): Likewise.
7600         (vrev64q_f32): Likewise.
7601         (vrev64q_p8): Likewise.
7602         (vrev64q_p16): Likewise.
7603         (vrev64q_s8): Likewise.
7604         (vrev64q_s16): Likewise.
7605         (vrev64q_s32): Likewise.
7606         (vrev64q_u8): Likewise.
7607         (vrev64q_u16): Likewise.
7608         (vrev64q_u32): Likewise.
7609         (vsha1cq_u32): Likewise.
7610         (vsha1mq_u32): Likewise.
7611         (vsha1pq_u32): Likewise.
7612         (vsha1h_u32): Likewise.
7613         (vsha1su0q_u32): Likewise.
7614         (vsha1su1q_u32): Likewise.
7615         (vsha256hq_u32): Likewise.
7616         (vsha256h2q_u32): Likewise.
7617         (vsha256su0q_u32): Likewise.
7618         (vsha256su1q_u32): Likewise.
7619         (vmull_p64): Likewise.
7620         (vmull_high_p64): Likewise.
7621         (vsqrt_f32): Likewise.
7622         (vsqrtq_f32): Likewise.
7623         (vsqrt_f64): Likewise.
7624         (vsqrtq_f64): Likewise.
7625         (vst1_f32): Likewise.
7626         (vst1_f64): Likewise.
7627         (vst1_p8): Likewise.
7628         (vst1_p16): Likewise.
7629         (vst1_p64): Likewise.
7630         (vst1_s8): Likewise.
7631         (vst1_s16): Likewise.
7632         (vst1_s32): Likewise.
7633         (vst1_s64): Likewise.
7634         (vst1_u8): Likewise.
7635         (vst1_u16): Likewise.
7636         (vst1_u32): Likewise.
7637         (vst1_u64): Likewise.
7638         (vst1q_f32): Likewise.
7639         (vst1q_f64): Likewise.
7640         (vst1q_p8): Likewise.
7641         (vst1q_p16): Likewise.
7642         (vst1q_p64): Likewise.
7643         (vst1q_s8): Likewise.
7644         (vst1q_s16): Likewise.
7645         (vst1q_s32): Likewise.
7646         (vst1q_s64): Likewise.
7647         (vst1q_u8): Likewise.
7648         (vst1q_u16): Likewise.
7649         (vst1q_u32): Likewise.
7650         (vst1q_u64): Likewise.
7651         (vst1_s64_x2): Likewise.
7652         (vst1_u64_x2): Likewise.
7653         (vst1_f64_x2): Likewise.
7654         (vst1_s8_x2): Likewise.
7655         (vst1_p8_x2): Likewise.
7656         (vst1_s16_x2): Likewise.
7657         (vst1_p16_x2): Likewise.
7658         (vst1_s32_x2): Likewise.
7659         (vst1_u8_x2): Likewise.
7660         (vst1_u16_x2): Likewise.
7661         (vst1_u32_x2): Likewise.
7662         (vst1_f16_x2): Likewise.
7663         (vst1_f32_x2): Likewise.
7664         (vst1_p64_x2): Likewise.
7665         (vst1q_s8_x2): Likewise.
7666         (vst1q_p8_x2): Likewise.
7667         (vst1q_s16_x2): Likewise.
7668         (vst1q_p16_x2): Likewise.
7669         (vst1q_s32_x2): Likewise.
7670         (vst1q_s64_x2): Likewise.
7671         (vst1q_u8_x2): Likewise.
7672         (vst1q_u16_x2): Likewise.
7673         (vst1q_u32_x2): Likewise.
7674         (vst1q_u64_x2): Likewise.
7675         (vst1q_f16_x2): Likewise.
7676         (vst1q_f32_x2): Likewise.
7677         (vst1q_f64_x2): Likewise.
7678         (vst1q_p64_x2): Likewise.
7679         (vst1_s64_x3): Likewise.
7680         (vst1_u64_x3): Likewise.
7681         (vst1_f64_x3): Likewise.
7682         (vst1_s8_x3): Likewise.
7683         (vst1_p8_x3): Likewise.
7684         (vst1_s16_x3): Likewise.
7685         (vst1_p16_x3): Likewise.
7686         (vst1_s32_x3): Likewise.
7687         (vst1_u8_x3): Likewise.
7688         (vst1_u16_x3): Likewise.
7689         (vst1_u32_x3): Likewise.
7690         (vst1_f16_x3): Likewise.
7691         (vst1_f32_x3): Likewise.
7692         (vst1_p64_x3): Likewise.
7693         (vst1q_s8_x3): Likewise.
7694         (vst1q_p8_x3): Likewise.
7695         (vst1q_s16_x3): Likewise.
7696         (vst1q_p16_x3): Likewise.
7697         (vst1q_s32_x3): Likewise.
7698         (vst1q_s64_x3): Likewise.
7699         (vst1q_u8_x3): Likewise.
7700         (vst1q_u16_x3): Likewise.
7701         (vst1q_u32_x3): Likewise.
7702         (vst1q_u64_x3): Likewise.
7703         (vst1q_f16_x3): Likewise.
7704         (vst1q_f32_x3): Likewise.
7705         (vst1q_f64_x3): Likewise.
7706         (vst1q_p64_x3): Likewise.
7707         (vst2_s64): Likewise.
7708         (vst2_u64): Likewise.
7709         (vst2_f64): Likewise.
7710         (vst2_s8): Likewise.
7711         (vst2_p8): Likewise.
7712         (vst2_s16): Likewise.
7713         (vst2_p16): Likewise.
7714         (vst2_s32): Likewise.
7715         (vst2_u8): Likewise.
7716         (vst2_u16): Likewise.
7717         (vst2_u32): Likewise.
7718         (vst2_f16): Likewise.
7719         (vst2_f32): Likewise.
7720         (vst2_p64): Likewise.
7721         (vst2q_s8): Likewise.
7722         (vst2q_p8): Likewise.
7723         (vst2q_s16): Likewise.
7724         (vst2q_p16): Likewise.
7725         (vst2q_s32): Likewise.
7726         (vst2q_s64): Likewise.
7727         (vst2q_u8): Likewise.
7728         (vst2q_u16): Likewise.
7729         (vst2q_u32): Likewise.
7730         (vst2q_u64): Likewise.
7731         (vst2q_f16): Likewise.
7732         (vst2q_f32): Likewise.
7733         (vst2q_f64): Likewise.
7734         (vst2q_p64): Likewise.
7735         (vst3_s64): Likewise.
7736         (vst3_u64): Likewise.
7737         (vst3_f64): Likewise.
7738         (vst3_s8): Likewise.
7739         (vst3_p8): Likewise.
7740         (vst3_s16): Likewise.
7741         (vst3_p16): Likewise.
7742         (vst3_s32): Likewise.
7743         (vst3_u8): Likewise.
7744         (vst3_u16): Likewise.
7745         (vst3_u32): Likewise.
7746         (vst3_f16): Likewise.
7747         (vst3_f32): Likewise.
7748         (vst3_p64): Likewise.
7749         (vst3q_s8): Likewise.
7750         (vst3q_p8): Likewise.
7751         (vst3q_s16): Likewise.
7752         (vst3q_p16): Likewise.
7753         (vst3q_s32): Likewise.
7754         (vst3q_s64): Likewise.
7755         (vst3q_u8): Likewise.
7756         (vst3q_u16): Likewise.
7757         (vst3q_u32): Likewise.
7758         (vst3q_u64): Likewise.
7759         (vst3q_f16): Likewise.
7760         (vst3q_f32): Likewise.
7761         (vst3q_f64): Likewise.
7762         (vst3q_p64): Likewise.
7763         (vst4_s64): Likewise.
7764         (vst4_u64): Likewise.
7765         (vst4_f64): Likewise.
7766         (vst4_s8): Likewise.
7767         (vst4_p8): Likewise.
7768         (vst4_s16): Likewise.
7769         (vst4_p16): Likewise.
7770         (vst4_s32): Likewise.
7771         (vst4_u8): Likewise.
7772         (vst4_u16): Likewise.
7773         (vst4_u32): Likewise.
7774         (vst4_f16): Likewise.
7775         (vst4_f32): Likewise.
7776         (vst4_p64): Likewise.
7777         (vst4q_s8): Likewise.
7778         (vst4q_p8): Likewise.
7779         (vst4q_s16): Likewise.
7780         (vst4q_p16): Likewise.
7781         (vst4q_s32): Likewise.
7782         (vst4q_s64): Likewise.
7783         (vst4q_u8): Likewise.
7784         (vst4q_u16): Likewise.
7785         (vst4q_u32): Likewise.
7786         (vst4q_u64): Likewise.
7787         (vst4q_f16): Likewise.
7788         (vst4q_f32): Likewise.
7789         (vst4q_f64): Likewise.
7790         (vst4q_p64): Likewise.
7791         (vtbx4_s8): Likewise.
7792         (vtbx4_u8): Likewise.
7793         (vtbx4_p8): Likewise.
7794         (vtrn_f32): Likewise.
7795         (vtrn_p8): Likewise.
7796         (vtrn_p16): Likewise.
7797         (vtrn_s8): Likewise.
7798         (vtrn_s16): Likewise.
7799         (vtrn_s32): Likewise.
7800         (vtrn_u8): Likewise.
7801         (vtrn_u16): Likewise.
7802         (vtrn_u32): Likewise.
7803         (vtrnq_f32): Likewise.
7804         (vtrnq_p8): Likewise.
7805         (vtrnq_p16): Likewise.
7806         (vtrnq_s8): Likewise.
7807         (vtrnq_s16): Likewise.
7808         (vtrnq_s32): Likewise.
7809         (vtrnq_u8): Likewise.
7810         (vtrnq_u16): Likewise.
7811         (vtrnq_u32): Likewise.
7812         (vrsqrte_f16): Likewise.
7813         (vrsqrteq_f16): Likewise.
7814         (vsqrt_f16): Likewise.
7815         (vsqrtq_f16): Likewise.
7816         (vabd_f16): Likewise.
7817         (vabdq_f16): Likewise.
7818         (vpadd_f16): Likewise.
7819         (vpaddq_f16): Likewise.
7820         (vpmax_f16): Likewise.
7821         (vpmaxq_f16): Likewise.
7822         (vpmaxnm_f16): Likewise.
7823         (vpmaxnmq_f16): Likewise.
7824         (vpmin_f16): Likewise.
7825         (vpminq_f16): Likewise.
7826         (vpminnm_f16): Likewise.
7827         (vpminnmq_f16): Likewise.
7828         (vrsqrts_f16): Likewise.
7829         (vrsqrtsq_f16): Likewise.
7831 2019-09-25  Richard Biener  <rguenther@suse.de>
7833         PR tree-optimization/91896
7834         * tree-vect-loop.c (vectorizable_reduction): The single
7835         def-use cycle optimization cannot apply when there's more
7836         than one pattern stmt involved.
7838 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
7840         * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
7841         the 'P' mode iterator, replacing the (removed) SI and DI variants.
7842         (reload_macho_picbase_<mode>): Likewise.
7844 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
7846         * config/rs6000/rs6000.md: Move darwin.md include until
7847         after the definition of the mode iterators.
7849 2019-09-23  Martin Sebor  <msebor@redhat.com>
7851         PR tree-optimization/91570
7852         * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
7853         non-constant minlen, maxlen and maxbound.
7855 2019-09-24  Richard Biener  <rguenther@suse.de>
7857         * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
7858         Rename to...
7859         (_stmt_vec_info::cond_reduc_code): ... this.
7860         (_stmt_vec_info::induc_cond_initial_val): Add.
7861         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
7862         (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
7863         (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
7864         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
7865         * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
7866         the reduction code.
7867         (vect_create_epilog_for_reduction): Drop special
7868         induction condition reduction params, pass in reduction code
7869         and simplify.
7870         (vectorizable_reduction): Perform condition reduction kind
7871         selection only at analysis time.  Adjust passing on state.
7873 2019-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7875         * config/aarch64/aarch64.md (mov<mode>): Don't call
7876         aarch64_split_dimode_const_store on volatile MEM.
7878 2019-09-24  Stamatis Markianos-Wright  <stam.markianos-wright@arm.com>
7880         * config/aarch64/aarch64-option-extensions.def (fp16fml):
7881         Update hwcap string for fp16fml.
7883 2019-09-24  Jakub Jelinek  <jakub@redhat.com>
7885         PR middle-end/91866
7886         * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
7887         (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
7889 2019-09-24  Martin Liska  <mliska@suse.cz>
7891         * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
7892         instead of if-elseif-elseif-...
7893         * gimple-expr.c (extract_ops_from_tree): Likewise.
7894         * gimple.c (get_gimple_rhs_num_ops): Likewise.
7895         * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
7897 2019-09-24  Martin Jambor  <mjambor@suse.cz>
7899         PR ipa/91831
7900         * ipa-param-manipulation.c (carry_over_param): Make a method of
7901         ipa_param_body_adjustments, remove now unnecessary argument.  Also copy
7902         in case of a context mismatch.
7903         (ipa_param_body_adjustments::common_initialization): Adjust call to
7904         carry_over_param.
7905         * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
7906         private method carry_over_param.
7908 2019-09-24  Martin Jambor  <mjambor@suse.cz>
7910         PR ipa/91832
7911         * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
7913 2019-09-24  Richard Biener  <rguenther@suse.de>
7915         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
7916         base.
7918 2019-09-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7920         * config/arm/t-arm (arm-builtins.o): Add dependency on
7921         arm_acle_builtins.def.
7923 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
7925         PR target/91823
7926         * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
7927         canonical CONST_INTs.  Use gen_rtvec.
7929 2019-09-23  Richard Biener  <rguenther@suse.de>
7931         * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
7932         avoid adjusting by + 0 or * 1.
7933         (vect_create_epilog_for_reduction): Get reduction code only
7934         when necessary.  Deal with adjustment_def only when necessary.
7936 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
7938         * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
7939         memmodel index.
7941 2019-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7943         PR ipa/91835
7944         * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
7945         "ipa-sra".
7947 2019-09-22  Iain Sandoe  <iain@sandoe.co.uk>
7949         * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
7950         code.  Merge code blocks with common conditionals. Use declared
7951         macro instead of a magic number for PIC level.
7953 2019-09-21  Martin Sebor  <msebor@redhat.com>
7955         PR middle-end/91830
7956         * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
7957         Simplify computation of the offset of the referenced subobject.
7959 2019-09-21  Iain Sandoe  <iain@sandoe.co.uk>
7961         * config/darwin.c (machopic_legitimize_pic_address): Check
7962         for lra not reload.
7964 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
7966         * ira-conflicts.c (can_use_same_reg_p): New function.
7967         (process_reg_shuffles): Take an insn parameter.  Ignore cases
7968         in which input operand op_num could seemingly never be allocated
7969         to the same register as the destination.
7970         (add_insn_allocno_copies): Update call to process_reg_shuffles.
7972 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
7974         * simplify-rtx.c (neg_const_int): Replace with...
7975         (neg_poly_int_rtx): ...this new function.
7976         (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
7977         to all CONST_SCALAR_INTs and to CONST_POLY_INT.
7978         (simplify_plus_minus): Likewise for constant terms here.
7980 2019-09-20  Jonas Pfeil  <jonas.pfeil@uli-ulm.de>
7982         * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
7983         HOST_WIDE_PRINT_UNSIGNED.
7985 2019-09-20  John David Anglin  <danglin@gcc.gnu.org>
7987         * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
7988         character.
7990 2019-09-20  Maya Rashish  <coypu@sdf.org>
7992         PR target/86811
7993         * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
7994         Define to speculation_safe_value_not_needed.
7996 2019-09-20  Richard Biener  <rguenther@suse.de>
7997             Uros Bizjak  <ubizjak@gmail.com>
7999         PR target/91814
8000         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
8001         previous change.
8002         (general_scalar_chain::convert_op): Force not suitable memory
8003         operands to a register.
8005 2019-09-20  Richard Biener  <rguenther@suse.de>
8007         PR tree-optimization/91821
8008         * tree-vect-loop.c (check_reduction_path): Check we can compute
8009         reduc_idx.
8010         (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
8011         * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
8012         operands in canonical order.
8013         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8014         STMT_VINFO_REDUC_IDX.
8015         * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
8016         (STMT_VINFO_REDUC_IDX): Likewise.
8018 2019-09-20  Eric Botcazou  <ebotcazou@adacore.com>
8020         PR target/91269
8021         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8023 2019-09-20  Richard Biener  <rguenther@suse.de>
8025         PR tree-optimization/91822
8026         * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
8027         parameter.
8028         * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
8029         for reduc_index in nested cycles, adjust vectorizable_condition
8030         calls.
8031         * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
8032         parameter.
8033         (vect_analyze_stmt): Adjust.
8034         (vect_transform_stmt): Likewise.
8036 2019-09-20  Richard Biener  <rguenther@suse.de>
8038         PR target/91767
8039         * config/i386/i386-features.c (general_scalar_chain::convert_registers):
8040         Ensure there's a sequence point between allocating the new register
8041         and passing a reference to a reg via regno_reg_rtx.
8043 2019-09-20  Martin Jambor  <mjambor@suse.cz>
8045         * coretypes.h (cgraph_edge): Declare.
8046         * ipa-param-manipulation.c: Rewrite.
8047         * ipa-param-manipulation.h: Likewise.
8048         * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
8049         (OBJS): Added ipa-sra.o.
8050         * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
8051         and ref_p, added fields param_adjustments and performed_splits.
8052         (struct cgraph_clone_info): Remove ags_to_skip and
8053         combined_args_to_skip, new field param_adjustments.
8054         (cgraph_node::create_clone): Changed parameters to use
8055         ipa_param_adjustments.
8056         (cgraph_node::create_virtual_clone): Likewise.
8057         (cgraph_node::create_virtual_clone_with_body): Likewise.
8058         (tree_function_versioning): Likewise.
8059         (cgraph_build_function_type_skip_args): Removed.
8060         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
8061         using ipa_param_adjustments.
8062         (clone_of_p): Likewise.
8063         * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
8064         (build_function_decl_skip_args): Likewise.
8065         (duplicate_thunk_for_node): Adjust parameters using
8066         ipa_param_body_adjustments, copy param_adjustments instead of
8067         args_to_skip.
8068         (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
8069         (cgraph_node::create_virtual_clone): Likewise.
8070         (cgraph_node::create_version_clone_with_body): Likewise.
8071         (cgraph_materialize_clone): Likewise.
8072         (symbol_table::materialize_all_clones): Likewise.
8073         * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
8074         ipa_replace_map check.
8075         * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
8076         (initialize_node_lattices): Make aware that some parameters might have
8077         already been removed.
8078         (want_remove_some_param_p): New function.
8079         (create_specialized_node): Convert to using ipa_param_adjustments and
8080         deal with possibly pre-existing adjustments.
8081         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
8082         (output_node_opt_summary): Do not stream removed fields.  Stream
8083         parameter adjustments instead of argumetns to skip.
8084         (input_node_opt_summary): Likewise.
8085         (input_node_opt_summary): Likewise.
8086         * lto-section-in.c (lto_section_name): Added ipa-sra section.
8087         * lto-streamer.h (lto_section_type): Likewise.
8088         * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
8089         param_body_adjs.
8090         (copy_decl_to_var): Declare.
8091         * tree-inline.c (update_clone_info): Do not remap old_tree.
8092         (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
8093         statements, walk all extra generated statements and remap their
8094         operands.
8095         (redirect_all_calls): Add killed SSA names to a hash set.
8096         (remap_ssa_name): Do not remap killed SSA names.
8097         (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
8098         half of functionality moved to ipa_param_body_adjustments.
8099         (copy_decl_to_var): Make exported.
8100         (copy_body): Destroy killed_new_ssa_names hash set.
8101         (expand_call_inline): Remap performed splits.
8102         (update_clone_info): Likewise.
8103         (tree_function_versioning): Simplify tree_map processing.  Updated to
8104         accept ipa_param_adjustments and use ipa_param_body_adjustments.
8105         * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
8106         for the new interface.
8107         (simd_clone_clauses_extract): Likewise, make args an auto_vec.
8108         (simd_clone_compute_base_data_type): Likewise.
8109         (simd_clone_init_simd_arrays): Adjust for the new interface.
8110         (simd_clone_adjust_argument_types): Likewise.
8111         (struct modify_stmt_info): Likewise.
8112         (ipa_simd_modify_stmt_ops): Likewise.
8113         (ipa_simd_modify_function_body): Likewise.
8114         (simd_clone_adjust): Likewise.
8115         * tree-sra.c: Removed IPA-SRA.  Include tree-sra.h.
8116         (type_internals_preclude_sra_p): Make public.
8117         * tree-sra.h: New file.
8118         * ipa-inline-transform.c (save_inline_function_body): Update to
8119         refelct new tree_function_versioning signature.
8120         * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
8121         ipa_param_adjustments to get current parameter indices.
8122         (ipcp_modif_dom_walker::before_dom_children): Likewise.
8123         (ipcp_update_bits): Likewise.
8124         (ipcp_update_vr): Likewise.
8125         * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
8126         * ipa-sra.c: New file.
8127         * multiple_target.c (create_target_clone): Update to reflet new type
8128         of create_version_clone_with_body.
8129         * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
8130         tree_function_versioning.
8131         (modify_function): Update to reflect new type of
8132         tree_function_versioning.
8133         * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
8134         * passes.def: Remove old IPA-SRA and add new one.
8135         * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
8136         (make_pass_ipa_sra): Declare.
8137         * dbgcnt.def: Remove eipa_sra.  Added ipa_sra_params and
8138         ipa_sra_retvalues.
8139         * doc/invoke.texi (ipa-sra-max-replacements): New.
8141 2019-09-19  Martin Sebor  <msebor@redhat.com>
8143         PR middle-end/91631
8144         * builtins.c (component_size): Correct trailing array computation,
8145         rename to component_ref_size and move...
8146         (compute_objsize): Adjust.
8147         * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
8148         (builtin_access::strict): Do not consider memmove.
8149         (builtin_access::write_off): New function.
8150         (builtin_memref::builtin_memref): Initialize refsize.
8151         (builtin_memref::set_base_and_offset): Adjust refoff and compute
8152         refsize.
8153         (builtin_memref::offset_out_of_bounds): Use ooboff input values.
8154         Handle refsize.
8155         (builtin_access::builtin_access): Initialize dstoff to destination
8156         refeence offset here instead of in maybe_diag_overlap.  Adjust
8157         referencess even to unrelated objects.  Adjust sizrange of bounded
8158         string functions to reflect bound.  For strcat, adjust destination
8159         sizrange by that of source.
8160         (builtin_access::strcat_overlap):  Adjust offsets and sizes
8161         to reflect the increase in destination sizrange above.
8162         (builtin_access::overlap): Do not set dstoff here but instead
8163         in builtin_access::builtin_access.
8164         (check_bounds_or_overlap): Use builtin_access::write_off.
8165         (maybe_diag_access_bounds): Add argument.  Add informational notes.
8166         (dump_builtin_memref, dump_builtin_access): New functions.
8167         * tree.c (component_ref_size): ...to here.
8168         * tree.h (component_ref_size): Declare.
8169         * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
8170         nul in the size of the source string.
8172 2019-09-19  Lewis Hyatt  <lhyatt@gmail.com>
8174         PR c/67224
8175         * doc/cpp.texi: Document support for extended characters in
8176         identifiers.
8177         * doc/cppopts.texi: Likewise.
8179 2019-09-19  Richard Biener  <rguenther@suse.de>
8181         * tree-vect-loop.c (vect_is_slp_reduction): Remove.
8182         (check_reduction_path): New overload having the path as result.
8183         (vect_is_simple_reduction): From the detected reduction
8184         path build a SLP reduction chain if possible.
8186 2019-09-19  Richard Biener  <rguenther@suse.de>
8188         PR target/91814
8189         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
8190         Force operand to a register if it isn't nonimmediate_operand.
8192 2019-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
8194         * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
8195         * config/arm/iterators.md (optab): Add and, ior, xor entries.
8196         (logical_op): Remove code attribute.
8197         (logical_OP): Likewise.
8199 2019-09-19  Martin Liska  <mliska@suse.cz>
8201         * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
8202         Use proper casting.
8204 2019-09-19  Richard Henderson  <richard.henderson@linaro.org>
8206         * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
8207         registers with %R.
8209         * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
8210         for NE comparison of TImode values.
8211         (aarch64_emit_load_exclusive): Add support for TImode.
8212         (aarch64_emit_store_exclusive): Likewise.
8213         (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
8214         * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
8215         Change iterator from ALLI to ALLI_TI.
8216         (@atomic_compare_and_swap<JUST_TI>): New.
8217         (@atomic_compare_and_swap<JUST_TI>_lse): New.
8218         (aarch64_load_exclusive_pair): New.
8219         (aarch64_store_exclusive_pair): New.
8220         * config/aarch64/iterators.md (JUST_TI): New.
8222         * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
8223         strong_zero_p for aarch64_track_speculation; unify some code paths;
8224         use aarch64_gen_compare_reg instead of open-coding.
8226         * config/aarch64/aarch64.opt (-moutline-atomics): New.
8227         * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
8228         (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
8229         (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
8230         (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
8231         (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
8232         * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
8233         (atomic_<atomic_op><ALLI>): Likewise.
8234         (atomic_fetch_<atomic_op><ALLI>): Likewise.
8235         (atomic_<atomic_op>_fetch<ALLI>): Likewise.
8236         * doc/invoke.texi: Document -moutline-atomics.
8238 2019-09-19  Feng Xue  <fxue@os.amperecomputing.com>
8240         * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
8241         trivial predicate for condition branch.
8242         (set_switch_stmt_execution_predicate): Do not compute trivial predicate
8243         for switch case.
8244         (compute_bb_predicates): Update predicate based on post-dominating
8245         relationship.
8246         (analyze_function_body): Calculate post-dominating information.
8248 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
8250         * tree-vectorizer.h (vectorizable_condition): Take an int
8251         reduction index instead of a boolean flag.
8252         * tree-vect-stmts.c (vectorizable_condition): Likewise.
8253         Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
8254         reductions if the reduction accumulator is the "then" rather
8255         than the "else" value.
8256         (vect_analyze_stmt): Update call accordingly.
8257         (vect_transform_stmt): Likewise.
8258         * tree-vect-loop.c (vectorizable_reduction): Likewise,
8259         asserting that the index is > 0.
8261 2019-09-19  Martin Liska  <mliska@suse.cz>
8263         * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
8264         (sort_congruence_classes_by_decl_uid): Likewise.
8265         (sort_congruence_class_groups_by_decl_uid): Use std::pair for
8266         easier sorting.
8267         (sem_item_optimizer::merge_classes): Likewise.
8269 2019-09-19  Richard Biener  <rguenther@suse.de>
8271         PR tree-optimization/91812
8272         * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
8273         volatile loads.
8275 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
8277         * defaults.h (TARGET_UNIT): New macro.
8278         (target_unit): New type.
8279         * rtl.h (native_encode_rtx, native_decode_rtx)
8280         (native_decode_vector_rtx, subreg_size_lsb): Declare.
8281         (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
8282         * rtlanal.c (subreg_lsb_1): Delete.
8283         (subreg_size_lsb): New function.
8284         * simplify-rtx.c: Include rtx-vector-builder.h
8285         (simplify_immed_subreg): Delete.
8286         (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
8287         (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
8288         functions.
8289         (simplify_subreg): Use them.
8290         (test_vector_subregs_modes, test_vector_subregs_repeating)
8291         (test_vector_subregs_fore_back, test_vector_subregs_stepped)
8292         (test_vector_subregs): New functions.
8293         (test_vector_ops): Call test_vector_subregs for integer vector
8294         modes with at least 2 elements.
8296 2019-09-19  Richard Biener  <rguenther@suse.de>
8298         * tree-parloops.c (parloops_is_slp_reduction): Do not set
8299         LOOP_VINFO_OPERANDS_SWAPPED.
8300         (parloops_is_simple_reduction): Likewise.
8301         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
8302         initialize operands_swapped.
8303         (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
8304         (vect_is_slp_reduction): Do not swap operands.
8305         * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
8306         (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
8308 2019-09-19  Hongtao Liu <hongtao.liu@intel.com>
8310         PR target/87007
8311         * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
8312         Add avx_partial_xmm_update.
8314 2019-09-18  Jim Wilson  <jimw@sifive.com>
8316         PR target/91683
8317         * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
8318         (riscv_move_integer): Likewise.
8319         * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
8320         riscv_move_integer arg.
8321         (riscv_legitimize_move): Likewise.
8322         (riscv_force_temporary): New parameter in_splitter.  Don't call
8323         force_reg if true.
8324         (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
8325         arg.
8326         (riscv_add_offset): Likewise.
8327         (riscv_split_symbol): New parameter in_splitter.  Pass to
8328         riscv_force_temporary.
8329         (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
8330         arg.
8331         (riscv_move_integer): New parameter in_splitter.  New local
8332         can_create_psuedo.  Don't call riscv_split_integer or force_reg when
8333         in_splitter TRUE.
8334         (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
8335         riscv_split_symbol, and riscv_force_temporary args.
8336         * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
8337         riscv_move_integer arg.
8338         (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
8340 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
8342         PR target/90878
8343         * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
8344         hard register store cost to 6.
8346 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
8348         PR target/91446
8349         * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
8350         pseudo register store cost from 3 to 6 to make it the same as
8351         QImode and HImode.
8353 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
8355         PR target/91738
8356         * config/arm/arm.md (<logical_op>di3): Expand explicitly.
8357         (one_cmpldi2): Likewise.
8358         * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
8359         of the constant parts is simple.
8360         * config/arm/iterators.md (LOGICAL): Add new code iterator.
8361         (logical_op): Add new code attribute.
8362         (logical_OP): Likewise.
8363         * config/arm/predicates.md (arm_anddi_operand): Add predicate.
8364         (arm_iordi_operand): Add predicate.
8365         (arm_xordi_operand): Add predicate.
8367 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
8369         * config/arm/arm.md (maddsidi4): Remove expander.
8370         (mulsidi3adddi): Remove pattern.
8371         (mulsidi3adddi_v6): Likewise.
8372         (mulsidi3_nov6): Likewise.
8373         (mulsidi3_v6): Likewise.
8374         (umulsidi3): Remove expander.
8375         (umulsidi3_nov6): Remove pattern.
8376         (umulsidi3_v6): Likewise.
8377         (umulsidi3adddi): Likewise.
8378         (umulsidi3adddi_v6): Likewise.
8379         (<Us>mulsidi3): Add combined expander.
8380         (<Us>maddsidi4): Likewise.
8381         (<US>mull): Add combined umull and smull pattern.
8382         (<US>mlal): Likewise.
8383         * config/arm/iterators.md (Us): Add new iterator.
8385 2019-09-18  Richard Biener  <rguenther@suse.de>
8387         * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
8388         swapping.
8389         (vectorize_fold_left_reduction): Remove assert.
8390         (vectorizable_reduction): Also expect COND_EXPR non-reduction
8391         operand in position 2.  Remove assert.
8393 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
8395         * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
8396         (smulsi3_highpart_nov6): Remove pattern.
8397         (smulsi3_highpart_v6): Likewise.
8398         (umulsi3_highpart): Likewise.
8399         (umulsi3_highpart_nov6): Likewise.
8400         (umulsi3_highpart_v6): Likewise.
8401         (<US>mull_high): Add new combined multiply pattern.
8403 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
8405         * config/arm/arm.md (arm_mulsi3): Remove pattern.
8406         (arm_mulsi3_v6): Likewise.
8407         (mulsi3addsi_v6): Likewise.
8408         (mulsi3subsi): Likewise.
8409         (mul): Add new multiply pattern.
8410         (mla): Likewise.
8411         (mls): Likewise.
8413 2019-09-18  Richard Biener  <rguenther@suse.de>
8415         * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
8416         (parloops_valid_reduction_input_p): Copy from
8417         valid_reduction_input_p.
8418         (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
8419         (parloops_needs_fold_left_reduction_p): Copy from
8420         needs_fold_left_reduction_p.
8421         (parloops_is_simple_reduction): Copy from
8422         vect_is_simple_reduction.
8423         (parloops_force_simple_reduction): Copy from
8424         vect_force_simple_reduction.
8425         (gather_scalar_reductions): Adjust.
8426         * tree-vect-loop.c (vect_force_simple_reduction): Make static.
8427         * tree-vectorizer.h (vect_force_simple_reduction): Remove.
8429 2019-09-18  Richard Biener  <rguenther@suse.de>
8431         * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
8432         * tree-vect-loop.c (get_initial_def_for_reduction): Make
8433         static.
8434         (vect_create_epilog_for_reduction): Remove dead code.
8436 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
8438         * varasm.c (assemble_real): Generate canonical const_ints.
8440 2019-09-18  Richard Biener  <rguenther@suse.de>
8442         PR lto/91763
8443         * lto-streamer-in.c (input_eh_regions): Move EH init to
8444         lto_materialize_function.
8445         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
8446         Likewise.
8448 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
8450         * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
8451         are INTEGER_CSTs.
8453 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
8455         * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
8456         of checking specifically for INTEGER_CST.
8458 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
8460         * stor-layout.c (compute_record_mode): Operate on poly_uint64
8461         sizes instead of uhwi sizes.
8463 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
8465         * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
8466         (add_const_value_attribute): Handle CONST_POLY_INT.
8468 2019-09-18  Martin Liska  <mliska@suse.cz>
8470         * dbgcnt.def (store_merging): New counter.
8471         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
8472         Use it in store merging.
8474 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
8476         * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
8477         function.
8478         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
8479         * config/arm/arm.c (arm_sched_variable_issue): New function.
8480         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
8482 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
8484         * config/arm/types.md (no_reservation): New reservation.
8485         * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
8486         no_insn here.
8487         * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
8488         * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
8489         * config/aarch64/tsv110.md (tsv110_alu): Likewise.
8490         * config/arm/arm1020e.md (1020alu_op): Likewise.
8491         * config/arm/arm1026ejs.md (alu_op): Likewise.
8492         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8493         * config/arm/arm926ejs.md (9_alu_op): Likewise.
8494         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8495         * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
8496         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8497         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8498         * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
8499         * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
8500         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8501         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8502         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8503         * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
8504         * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
8505         * config/arm/fa526.md (526_alu_op): Likewise.
8506         * config/arm/fa606te.md (606te_alu_op): Likewise.
8507         * config/arm/fa626te.md (626te_alu_op): Likewise.
8508         * config/arm/fa726te.md (726te_alu_op): Likewise.
8509         * config/arm/xgene1.md (xgene1_nop): Likewise.
8511 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
8513         * config/arm/thumb1.md (*thumb1_tablejump): Change type from
8514         "no_insn" to "branch".
8516 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
8518         * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
8520 2019-09-17  Richard Biener  <rguenther@suse.de>
8522         PR debug/91772
8523         * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
8524         was missing generate locations only once.
8526 2019-09-17  Feng Xue  <fxue@os.amperecomputing.com>
8528         PR ipa/91089
8529         * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
8530         option.
8531         * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
8532         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
8533         for switch default case using range analysis information.
8535 2019-09-17  Christophe Lyon  <christophe.lyon@linaro.org>
8537         PR target/91749
8538         * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
8539         mode attributed is supported by FDPIC.
8541 2019-09-17  Richard Biener  <rguenther@suse.de>
8543         PR tree-optimization/91790
8544         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
8545         use the correct DR for setting up realignment.
8547 2019-09-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8549         PR target/91719
8550         * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
8551         * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
8552         * config/i386/sync.md (atomic_store<mode>): emit XCHG for
8553         TARGET_USE_XCHG_FOR_ATOMIC_STORE.
8555 2019-09-16  Jason Merrill  <jason@redhat.com>
8557         * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
8559 2019-09-16  Martin Liska  <mliska@suse.cz>
8561         * gimple-fold.c (or_comparisons_1): Remove rules moved
8562         to ...
8563         * match.pd: ... here.
8565 2019-09-16  Martin Liska  <mliska@suse.cz>
8567         * gimple-fold.c (or_comparisons_1): Remove rules
8568         moved to ...
8569         * match.pd: ... here.
8571 2019-09-16  Martin Liska  <mliska@suse.cz>
8573         * genmatch.c (dt_node::append_simplify): Do not print
8574         warning when we have duplicate patterns belonging
8575         to a same simplify rule.
8576         * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
8577         (maybe_fold_comparisons_from_match_pd): Handle
8578         tcc_comparison as a results.
8579         * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
8581 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
8582             Qi Feng  <ffengqi@linux.ibm.com>
8584         PR middle-end/88784
8585         * match.pd (x >  y  &&  x != XXX_MIN): Optimize into 'x > y'.
8586         (x >  y  &&  x == XXX_MIN): Optimize into 'false'.
8587         (x <= y  &&  x == XXX_MIN): Optimize into 'x == XXX_MIN'.
8588         (x <  y  &&  x != XXX_MAX): Optimize into 'x < y'.
8589         (x <  y  &&  x == XXX_MAX): Optimize into 'false'.
8590         (x >= y  &&  x == XXX_MAX): Optimize into 'x == XXX_MAX'.
8591         (x >  y  ||  x != XXX_MIN): Optimize into 'x != XXX_MIN'.
8592         (x <= y  ||  x != XXX_MIN): Optimize into 'true'.
8593         (x <= y  ||  x == XXX_MIN): Optimize into 'x <= y'.
8594         (x <  y  ||  x != XXX_MAX): Optimize into 'x != XXX_MAX'.
8595         (x >= y  ||  x != XXX_MAX): Optimize into 'true'.
8596         (x >= y  ||  x == XXX_MAX): Optimize into 'x >= y'.
8598 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
8599             Martin Liska  <mliska@suse.cz>
8601         * gimple-fold.c (and_comparisons_1): Add type as first
8602         argument.
8603         (and_var_with_comparison): Likewise.
8604         (and_var_with_comparison_1): Likewise.
8605         (or_comparisons_1): Likewise.
8606         (or_var_with_comparison): Likewise.
8607         (or_var_with_comparison_1): Likewise.
8608         (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
8609         (maybe_fold_or_comparisons): Likewise.
8610         (maybe_fold_comparisons_from_match_pd): New.
8611         * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
8612         (maybe_fold_or_comparisons): Likewise.
8613         * gimple.c (gimple_size): Make it public and add num_ops argument.
8614         (gimple_init): New function.
8615         (gimple_alloc): Call gimple_init.
8616         * gimple.h (gimple_size): New.
8617         (gimple_init): Likewise.
8618         * tree-if-conv.c (fold_or_predicates): Pass type.
8619         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
8620         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
8621         (optimize_vec_cond_expr): Likewise.
8622         (ovce_extract_ops): Return type of conditional expression.
8623         * tree-ssanames.c (init_ssa_name_imm_use): New.
8624         (make_ssa_name_fn): Use init_ssa_name_imm_use.
8625         * tree-ssanames.h (init_ssa_name_imm_use): New.
8627 2019-09-16  Richard Biener  <rguenther@suse.de>
8629         PR tree-optimization/91756
8630         PR tree-optimization/87132
8631         * tree-ssa-alias.h (enum translate_flags): New.
8632         (get_continuation_for_phi): Use it instead of simple bool flag.
8633         (walk_non_aliased_vuses): Likewise.
8634         * tree-ssa-alias.c (maybe_skip_until): Adjust.
8635         (get_continuation_for_phi): When looking across backedges only
8636         disallow valueization.
8637         (walk_non_aliased_vuses): Adjust.
8638         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
8639         if requested.
8641 2019-09-14  Kewen Lin  <linkw@gcc.gnu.org>
8643         PR middle-end/80791
8644         * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
8645         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
8646         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
8647         * target.def (have_count_reg_decr_p): New hook.
8648         (doloop_cost_for_generic): Likewise.
8649         (doloop_cost_for_address): Likewise.
8650         * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
8651         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
8652         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
8653         * doc/tm.texi: Regenerate.
8654         * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
8655         addend.
8656         (record_group): Init doloop_p.
8657         (add_candidate_1): Add optional argument doloop, change the handlings
8658         accordingly.
8659         (add_candidate): Likewise.
8660         (generic_predict_doloop_p): Update attribute.
8661         (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
8662         LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
8663         UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
8664         MIN_EXPR.
8665         (get_computation_cost): Update for doloop IV cand extra cost.
8666         (determine_group_iv_cost_cond): Update for doloop IV cand.
8667         (determine_iv_cost): Likewise.
8668         (ivopts_estimate_reg_pressure): Likewise.
8669         (may_eliminate_iv): Update handlings for doloop IV cand.
8670         (add_iv_candidate_for_doloop): New function.
8671         (find_iv_candidates): Call function add_iv_candidate_for_doloop.
8672         (iv_ca_set_no_cp): Update for doloop IV cand.
8673         (iv_ca_set_cp): Likewise.
8674         (iv_ca_dump): Dump register cost.
8675         (find_doloop_use): New function.
8676         (analyze_and_mark_doloop_use): Likewise.
8677         (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
8679 2019-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8681         PR middle-end/91708
8682         * cse.c (cse_insn): Do not replace anything with a
8683         MEM.
8685 2019-09-13  Ian Lance Taylor  <iant@golang.org>
8687         * doc/invoke.texi (Optimize Options): Fix typo.
8689 2019-09-12  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8691         PR tree-optimization/89386
8692         * config/i386/sse.md (smulhrs<mode>3): New expander.
8693         (smulhrsv4hi3): Ditto.
8695 2019-09-12  Richard Biener  <rguenther@suse.de>
8697         PR tree-optimization/91750
8698         * tree-vect-loop.c (vectorizable_induction): Compute IV increments
8699         in the type of the evolution.
8701 2019-09-12  Yuliang Wang  <yuliang.wang@arm.com>
8703         PR tree-optimization/89386
8704         * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
8705         (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
8706         (<su>mulh<r>s<mode>3): New pattern for MULHRS.
8707         * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
8708         (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
8709         (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
8710         UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
8711         (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
8712         (su, r): Handle the unspecs above.
8713         (bt): New int attribute.
8714         * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
8715         * internal-fn.c (first_commutative_argument): Commutativity info for
8716         above.
8717         * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
8718         (umulhrs_optab): New optabs.
8719         * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
8720         (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
8721         * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
8722         function.
8723         (vect_vect_recog_func_ptrs): Add it.
8725 2019-09-11  Michael Meissner  <meissner@linux.ibm.com>
8727         * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
8728         code.
8730 2019-09-11  Nathan Sidwell  <nathan@acm.org>
8732         * tree.h (MARK_TS_TYPE_NON_COMMON): New.
8733         * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
8735 2019-09-11  Richard Biener  <rguenther@suse.de>
8737         * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
8738         * lto-wrapper.c (merge_and_complain): Pick up -g.
8739         (append_compiler_options): Likewise.
8740         (run_gcc): Re-instantiate handling -g0 at link-time.
8741         * doc/invoke.texi (flto): Document debug info generation.
8743 2019-09-11  Richard Biener  <rguenther@suse.de>
8745         PR tree-optimization/90387
8746         * vr-values.c (vr_values::extract_range_basic): After inlining
8747         simplify non-constant __builtin_constant_p to false.
8749 2019-09-11  Eric Botcazou  <ebotcazou@adacore.com>
8751         PR rtl-optimization/89795
8752         * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
8753         inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
8755 2019-09-11  Jakub Jelinek  <jakub@redhat.com>
8757         PR tree-optimization/91723
8758         * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
8759         instead of pointer equality when checking if argument vectypes are
8760         the same.
8762         PR middle-end/91725
8763         * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
8764         of get_nonzero_bits, only call it for integral types.
8766 2019-09-11  Richard Biener  <rguenther@suse.de>
8768         Revert
8769         2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
8771         * match.pd: Add flag_unsafe_math_optimizations check
8772         before deciding on the widest type in a binary math operation.
8774 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
8776         * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
8777         and CALL_REALLY_USED_REGISTERS must be defined, and that
8778         CALL_REALLY_USED_REGISTERS is preferred.
8779         * doc/tm.texi: Regenerate.
8780         * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
8781         (call_really_used_regs): Likewise.
8782         * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
8783         CALL_REALLY_USED_REGISTERS are defined.
8784         (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
8785         initial value if defined.
8786         (initial_call_really_used_regs): Delete.
8787         (saved_call_really_used_regs): Likewise.
8788         (CALL_REALLY_USED_REGNO_P): Likewise.
8789         (init_reg_sets): Remove handling of call_really_used_regs.
8790         (save_register_info, restore_register_info, globalize_reg): Likewise.
8791         (init_reg_sets_1): Likewise.  Use call_used_regs instead of
8792         CALL_REALLY_USED_REGNO_P.  Don't set call_used_regs for registers
8793         outside operand_reg_set.
8794         (fix_register): Don't change call_used_regs if
8795         CALL_REALLY_USED_REGISTERS is defined.
8796         * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
8797         * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
8798         instead of call_really_used_regs.
8799         (csky_conditional_register_usage): Remove the old handling of
8800         call_used_regs and change the handling of call_really_used_regs
8801         to use call_used_regs instead.
8802         * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
8803         * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
8804         making a register fixed.
8805         * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
8806         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
8807         instead of call_really_used_regs.
8808         (m32r_conditional_register_usage): Don't set call_used_regs when
8809         making a register fixed.
8810         * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
8811         * config/mips/mips.c (mips_global_pointer): Use call_used_regs
8812         instead of call_really_used_regs.
8813         (mips_interrupt_extra_call_saved_reg_p): Likewise.
8814         (mips_cfun_call_saved_reg_p): Likewise.
8815         (mips_swap_registers): Remove the old handling of call_used_regs
8816         and change the handling of call_really_used_regs to use call_used_regs
8817         instead.
8818         (mips_conditional_register_usage): Likewise.
8819         * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
8820         * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
8821         instead of call_really_used_regs.
8822         (mn10300_get_live_callee_saved_regs): Likewise.
8823         (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
8824         (mn10300_conditional_register_usage): Don't set call_used_regs when
8825         making a register fixed.
8826         * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
8827         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
8828         Remove the old handling of call_used_regs and change the handling
8829         of call_really_used_regs to use call_used_regs instead.
8830         * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
8831         * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
8832         instead of call_really_used_regs.
8833         (s390_register_info_gprtofpr, s390_register_info): Likewise.
8834         (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
8835         (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
8836         (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
8837         (s390_conditional_register_usage): Remove the old handling of
8838         call_used_regs and change the handling of call_really_used_regs
8839         to use call_used_regs instead.
8840         * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
8841         * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
8842         (sh_fix_range, reg_unused_after): Likewise.
8843         (sh_conditional_register_usage): Remove the old handling of
8844         call_used_regs and change the handling of call_really_used_regs
8845         to use call_used_regs instead.
8846         * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
8847         * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
8848         call_used_regs when making a register fixed.
8849         * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
8850         * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
8851         call_used_regs when making a register fixed.
8852         * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
8853         * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
8854         set call_used_regs when making a register fixed.
8855         * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
8856         * config/visium/visium.c (visium_conditional_register_usage): Remove
8857         the old handling of call_used_regs and change the handling of
8858         call_really_used_regs to use call_used_regs instead.
8860 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
8862         * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
8863         (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
8864         * reginfo.c (call_used_regs): New macro.
8866 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
8868         * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
8869         fixed_regs test.
8870         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
8871         (bpf_expand_epilogue): Likewise.
8872         * config/c6x/c6x.c (c6x_save_reg): Likewise.
8873         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
8874         (ft32_expand_epilogue): Likewise.
8875         * config/i386/i386.c (ix86_save_reg): Likewise.
8876         * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
8877         (moxie_expand_epilogue): Likewise.
8878         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
8879         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
8880         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
8882 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
8884         * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
8885         * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
8886         instead of testing call_used_regs directly.
8887         * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
8888         (aarch64_components_for_bb): Likewise.
8889         * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
8890         * config/arc/arc.c (arc_must_save_register): Likewise.
8891         (arc_epilogue_uses): Likewise.
8892         * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
8893         (legitimize_pic_address, callee_saved_reg_p): Likewise.
8894         (arm_compute_save_reg0_reg12_mask): Likewise.
8895         (arm_compute_save_core_reg_mask): Likewise.
8896         (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
8897         (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
8898         (cmse_nonsecure_entry_clear_before_return): Likewise.
8899         (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
8900         (arm_expand_epilogue): Likewise.
8901         * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
8902         (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
8903         (_reg_unused_after): Likewise.
8904         * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
8905         (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
8906         (add_to_reg, hwloop_optimize): Likewise.
8907         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
8908         (bpf_expand_epilogue): Likewise.
8909         * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
8910         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
8911         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
8912         * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
8913         (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
8914         (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
8915         * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
8916         * config/frv/frv.c (frv_stack_info): Likewise.
8917         * config/ft32/ft32.c (ft32_compute_frame): Likewise.
8918         (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
8919         * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
8920         (move_callee_saved_registers): Likewise.
8921         * config/h8300/h8300.c (byte_reg): Likewise.
8922         * config/i386/i386-options.c (ix86_set_current_function): Likewise.
8923         * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
8924         (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
8925         * config/i386/predicates.md (sibcall_memory_operand): Likewise.
8926         * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
8927         (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
8928         * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
8929         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
8930         * config/m32c/m32c.c (need_to_save): Likewise.
8931         * config/m68k/m68k.c (m68k_save_reg): Likewise.
8932         * config/mcore/mcore.c (calc_live_regs): Likewise.
8933         * config/microblaze/microblaze.c (microblaze_must_save_register):
8934         Likewise.
8935         * config/mmix/mmix.c (mmix_local_regno): Likewise.
8936         (mmix_initial_elimination_offset, mmix_reorg): Likewise.
8937         (mmix_use_simple_return, mmix_expand_prologue): Likewise.
8938         (mmix_expand_epilogue): Likewise.
8939         * config/moxie/moxie.c (moxie_compute_frame): Likewise.
8940         (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
8941         * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
8942         * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
8943         (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
8944         * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
8945         * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
8946         * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
8947         * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
8948         * config/pru/pru.c (prologue_saved_reg_p): Likewise.
8949         * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
8950         (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
8951         * config/rl78/rl78.c (need_to_save): Likewise.
8952         * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
8953         (rs6000_stack_info, generate_set_vrsave): Likewise.
8954         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
8955         * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
8956         * config/rx/rx.c (rx_get_stack_layout): Likewise.
8957         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
8958         * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
8959         * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
8960         (save_local_or_in_reg_p): Likewise.
8961         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
8962         (xstormy16_epilogue_uses): Likewise.
8963         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
8964         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
8965         * config/v850/v850.c (compute_register_save_size): Likewise.
8966         * config/vax/vax.c (vax_expand_prologue): Likewise.
8967         * config/visium/visium.c (visium_save_reg_p): Likewise.
8968         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
8969         * cselib.c (cselib_process_insn): Likewise.
8970         * df-scan.c (df_get_entry_block_def_set): Likewise.
8971         * function.c (aggregate_value_p): Likewise.
8972         * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
8973         * ira-lives.c (process_bb_node_lives): Likewise.
8974         * ira.c (do_reload): Likewise.
8975         * lra-lives.c (process_bb_lives): Likewise.
8976         * lra-remat.c (lra_remat): Likewise.
8977         * lra.c (lra): Likewise.
8978         * postreload.c (reload_combine_recognize_pattern): Likewise.
8979         (reload_cse_move2add): Likewise.
8980         * recog.c (peep2_find_free_register): Likewise.
8981         * regrename.c (check_new_reg_p): Likewise.
8982         * reload.c (find_equiv_reg): Likewise.
8983         * reload1.c (reload, find_reg): Likewise.
8984         * sel-sched.c (init_hard_regs_data): Likewise.
8986 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
8988         * config/frv/frv.c (frv_ifcvt_modify_tests): Use
8989         regs_invalidated_by_call & ~fixed_reg_set instead of
8990         call_used_or_fixed_regs & ~fixed_reg_set.
8991         * config/sh/sh.c (output_stack_adjust): Likewise.
8993 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
8995         * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
8996         (call_used_reg_set): Delete.
8997         (call_used_or_fixed_regs): New macro.
8998         * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
8999         of call_used_reg_set.
9000         * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
9001         instead of call_used_regs.
9002         (save_call_clobbered_regs): Likewise.
9003         * cfgcleanup.c (old_insns_match_p): Likewise.
9004         * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
9005         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
9006         Likewise.
9007         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
9008         * config/sh/sh.c (output_stack_adjust): Likewise.
9009         * final.c (collect_fn_hard_reg_usage): Likewise.
9010         * ira-build.c (ira_build): Likewise.
9011         * ira-color.c (calculate_saved_nregs): Likewise.
9012         (allocno_reload_assign, calculate_spill_cost): Likewise.
9013         * ira-conflicts.c (ira_build_conflicts): Likewise.
9014         * ira-costs.c (ira_tune_allocno_costs): Likewise.
9015         * ira-lives.c (process_bb_node_lives): Likewise.
9016         * ira.c (setup_reg_renumber): Likewise.
9017         * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
9018         * lra-constraints.c (need_for_call_save_p): Likewise.
9019         (need_for_split_p, inherit_in_ebb): Likewise.
9020         * lra-lives.c (process_bb_lives): Likewise.
9021         * lra-remat.c (call_used_input_regno_present_p): Likewise.
9022         * postreload.c (reload_combine): Likewise.
9023         * regrename.c (find_rename_reg): Likewise.
9024         * reload1.c (reload_as_needed): Likewise.
9025         * rtlanal.c (find_all_hard_reg_sets): Likewise.
9026         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9027         * shrink-wrap.c (requires_stack_frame_p): Likewise.
9029 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
9031         * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
9032         (no_caller_save_reg_set): Delete.
9033         * caller-save.c (init_caller_save): Don't initialize it.
9034         * ira-conflicts.c (ira_build_conflicts): Calculate
9035         no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
9037 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
9039         * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
9040         (target_hard_regs::x_savable_regs): New field.
9041         (call_fixed_reg_set): Delete.
9042         (savable_regs): New macro,
9043         * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
9044         (init_reg_sets_1): Likewise.  Initialize savable_regs.
9045         * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
9046         for all registers.  Set savable_regs instead of call_fixed_reg_set.
9047         (setup_save_areas, save_call_clobbered_regs): Replace uses of
9048         ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
9049         * config/sh/sh.c (output_stack_adjust): Likewise.
9051 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
9053         * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
9054         * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
9055         * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
9057 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
9059         * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
9060         * rtlanal.c (get_call_rtx_from): Likewise.
9061         * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
9062         than the pattern to get_call_rtx_from.
9063         * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
9064         an rtx_insn * instead of an rtx.
9065         * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
9067 2019-09-10  Martin Liska  <mliska@suse.cz>
9069         * common.opt: Use newly added WarnRemoved.
9070         * config/aarch64/aarch64.opt: Likewise.
9071         * config/arm/arm.opt: Likewise.
9072         * config/i386/i386.opt: Likewise.
9073         * config/ia64/ia64.opt: Likewise.
9074         * config/rs6000/rs6000.opt: Likewise.
9075         * doc/options.texi: Document WarnRemoved properly.
9076         * dwarf2out.c (gen_producer_string): Handle renamed
9077         OPT_SPECIAL_warn_removed.
9078         * lto-opts.c (lto_write_options): Likewise.
9079         * lto-wrapper.c (merge_and_complain): Likewise.
9080         * opts-common.c (decode_cmdline_option): Likewise.
9081         (prune_options): Likewise.
9082         (read_cmdline_option): Likewise.
9083         (control_warning_option): Likewise.
9084         * opts.c (print_filtered_help): Likewise.
9085         * optc-gen.awk: Parse for WarnRemoved and make usage
9086         of Deprecated an error.
9087         * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
9089 2019-09-10  Arnaud Charlet  <charlet@adacore.com>
9091         * doc/install.texi: Fix syntax for html generation.
9093 2019-09-10  Jakub Jelinek  <jakub@redhat.com>
9095         PR middle-end/91680
9096         * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
9097         the shift type to type.
9099 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
9101         * config/arm/arm.md (stack_protect_combined_set_insn): Handle
9102         FDPIC mode.
9103         (stack_protect_combined_test_insn): Likewise.
9105 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
9106             Mickaël Guêné <mickael.guene@st.com>
9108         * config/arm/arm.c (arm_load_tp): Add FDPIC support.
9109         * config/arm/arm.md (FDPIC_REGNUM): New constant.
9110         (load_tp_soft_fdpic): New pattern.
9111         (load_tp_soft): Disable in FDPIC mode.
9113 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
9114             Mickaël Guêné <mickael.guene@st.com>
9116         * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
9117         TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
9118         (arm_call_tls_get_addr): Add FDPIC support.
9119         (legitimize_tls_address): Likewise.
9120         (arm_emit_tls_decoration): Likewise.
9122 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
9123             Mickaël Guêné <mickael.guene@st.com>
9125         * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
9126         support.
9127         (arm_trampoline_init): Likewise.
9128         (arm_trampoline_adjust_address): Likewise.
9129         * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
9131 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
9132             Mickaël Guêné <mickael.guene@st.com>
9134         * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
9135         (legitimize_pic_address): Enforce binding rules on function
9136         pointers in FDPIC mode.
9137         (arm_assemble_integer): Likewise.
9139 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
9140             Mickaël Guêné <mickael.guene@st.com>
9142         * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
9143         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
9144         FDPIC.
9146 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
9147             Mickaël Guêné <mickael.guene@st.com>
9149         * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
9150         field.
9152 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
9153             Mickaël Guêné <mickael.guene@st.com>
9155         * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
9156         in FDPIC mode.
9157         * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
9158         new function.
9159         * config/arm/arm.c (arm_option_override): Define pic register to
9160         FDPIC_REGNUM.
9161         (arm_function_ok_for_sibcall): Disable sibcall optimization if we
9162         have no decl or go through PLT.
9163         (calculate_pic_address_constant): New function.
9164         (legitimize_pic_address): Call calculate_pic_address_constant.
9165         (arm_load_pic_register): Handle TARGET_FDPIC.
9166         (arm_is_segment_info_known): New function.
9167         (arm_pic_static_addr): Add support for FDPIC.
9168         (arm_load_function_descriptor): New function.
9169         (arm_emit_call_insn): Add support for FDPIC.
9170         (arm_assemble_integer): Add support for FDPIC.
9171         * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
9172         Define. (FDPIC_REGNUM): New define.
9173         * config/arm/arm.md (call): Add support for FDPIC.
9174         (call_value): Likewise.
9175         (restore_pic_register_after_call): New pattern.
9176         (untyped_call): Disable if FDPIC.
9177         (untyped_return): Likewise.
9178         * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
9180 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
9181             Mickaël Guêné <mickael.guene@st.com>
9183         * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
9184         * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
9185         (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
9186         * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
9187         (CC1_SPEC): Use FDPIC_CC1_SPEC.
9188         (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
9189         * config/arm/uclinuxfdpiceabi.h: New file.
9191 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
9193         * config.gcc: Handle *-*-uclinuxfdpiceabi.
9195 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
9196             Mickaël Guêné  <mickael.guene@st.com>
9198         * config/arm/arm.opt: Add -mfdpic option.
9199         * doc/invoke.texi: Add documentation for -mfdpic.
9201 2019-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9203         * expmed.c (extract_bit_field): Update function comment
9204         regarding alt_rtl.
9205         * expr.c (expand_expr_real): Update function comment
9206         regarding alt_rtl.
9207         (expand_misaligned_mem_ref): New helper function.
9208         (expand_expr_real_2): Use expand_misaligned_mem_ref.
9209         Remove duplicate assignment to "base" at case MEM_REF.
9210         Remove a shadowed variable "unsignedp" at case VCE. 
9212 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
9214         * regset.h (regs_invalidated_by_call_regset): Delete.
9215         (fixed_reg_set_regset): Likewise.
9216         * reginfo.c (regs_invalidated_by_call_regset): Likewise.
9217         (fixed_reg_set_regset, persistent_obstack): Likewise.
9218         (init_reg_sets_1, globalize_reg): Update accordingly.
9219         * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
9220         instead of a bitmap.
9221         * df-core.c (df_print_regset, df_print_word_regset): Likewise.
9222         * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
9223         instead of regs_invalidated_by_call_regset.
9224         (df_lr_confluence_n, df_md_confluence_n): Likewise.
9225         * df-scan.c (df_scan_start_dump): Likewise.
9226         * dse.c (copy_fixed_regs): Likewise.
9227         * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
9229 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
9231         * array-traits.h: New file.
9232         * coretypes.h (array_traits, bitmap_view): New types.
9233         * bitmap.h: Include "array-traits.h"
9234         (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
9235         (base_bitmap_view, bitmap_view): New classes.
9236         * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
9237         * hard-reg-set.h: Include array-traits.h.
9238         (array_traits<HARD_REG_SET>): New struct.
9239         * regset.h (IOR_REG_SET_HRS): New macro.
9240         * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
9241         rather than iterating over each hard register.
9242         * sched-deps.c (sched_analyze_insn): Likewise.
9243         * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
9245 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
9247         * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
9248         instead of a HARD_REG_SET *.
9249         * ira-build.c (ior_hard_reg_conflicts): Likewise.
9250         (ira_build): Update call accordingly.
9251         * ira-emit.c (add_range_and_copies_from_move_list): 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         (hard_reg_set_equal_p): Delete.
9258         * cfgcleanup.c (old_insns_match_p): Use == instead of
9259         hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
9260         * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
9261         (add_allocno_hard_regs_to_forest): Likewise.
9262         (setup_allocno_available_regs_num): Likewise.
9263         * ira.c (setup_pressure_classes): Likewise.
9264         (setup_allocno_and_important_classes): Likewise.
9265         (setup_reg_class_relations): Likewise.
9266         * lra-lives.c (process_bb_lives): Likewise.
9267         * reg-stack.c (change_stack, convert_regs_1): Likewise.
9269 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
9271         * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
9272         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
9273         Use "|~" instead of IOR_COMPL_HARD_REG_SET.
9274         * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
9275         Likewise.
9276         * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
9277         * ira.c (setup_reg_renumber): Likewise.
9278         * lra-assigns.c (find_hard_regno_for_1): Likewise.
9279         * regrename.c (regrename_find_superclass): Likewise.
9280         * reload1.c (find_reg): Likewise.
9282 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
9284         * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
9285         * caller-save.c (setup_save_areas): Use "&~" instead of
9286         AND_COMPL_HARD_REG_SET.
9287         (save_call_clobbered_regs): Likewise.
9288         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
9289         Likewise.
9290         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
9291         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
9292         * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
9293         * config/mips/mips.c (mips_class_max_nregs): Likewise.
9294         (mips_conditional_register_usage): Likewise.
9295         * config/sh/sh.c (output_stack_adjust): Likewise.
9296         * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
9297         (setup_profitable_hard_regs): Likewise.
9298         (get_conflict_and_start_profitable_regs): Likewise.
9299         * ira-conflicts.c (print_allocno_conflicts): Likewise.
9300         (ira_build_conflicts): Likewise.
9301         * ira-costs.c (restrict_cost_classes): Likewise.
9302         (setup_regno_cost_classes_by_aclass): Likewise.
9303         * ira-lives.c (process_bb_node_lives): Likewise.
9304         * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
9305         (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
9306         (setup_allocno_and_important_classes, setup_class_translate_array)
9307         (setup_reg_class_relations, setup_prohibited_class_mode_regs):
9308         Likewise.
9309         * lra-assigns.c (find_hard_regno_for_1): Likewise.
9310         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
9311         (process_alt_operands, inherit_in_ebb): Likewise.
9312         * lra-eliminations.c (update_reg_eliminate): Likewise.
9313         * lra-lives.c (process_bb_lives): Likewise.
9314         * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
9315         * resource.c (find_dead_or_set_registers): Likewise.
9316         (mark_target_live_regs): Likewise.
9317         * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
9318         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9319         (implicit_clobber_conflict_p): Likewise.
9320         * shrink-wrap.c (requires_stack_frame_p): Likewise.
9321         (try_shrink_wrapping): Likewise.
9323 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
9325         * hard-reg-set.h (HARD_REG_SET::operator|): New function.
9326         (HARD_REG_SET::operator|=): Likewise.
9327         (IOR_HARD_REG_SET): Delete.
9328         * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
9329         IOR_HARD_REG_SET.
9330         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
9331         * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
9332         * final.c (collect_fn_hard_reg_usage): Likewise.
9333         * hw-doloop.c (scan_loop, optimize_loop): Likewise.
9334         * ira-build.c (merge_hard_reg_conflicts): Likewise.
9335         (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
9336         (propagate_some_info_from_allocno): Likewise.
9337         (copy_info_to_removed_store_destinations): Likewise.
9338         * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
9339         (allocno_reload_assign, ira_reassign_pseudos): Likewise.
9340         (fast_allocation): Likewise.
9341         * ira-conflicts.c (ira_build_conflicts): Likewise.
9342         * ira-lives.c (make_object_dead, process_single_reg_class_operands)
9343         (process_bb_node_lives): Likewise.
9344         * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
9345         * lra-assigns.c (find_hard_regno_for_1): Likewise.
9346         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
9347         * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
9348         * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
9349         * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
9350         (process_bb_lives): Likewise.
9351         * lra-spills.c (assign_spill_hard_regs): Likewise.
9352         * postreload.c (reload_combine): Likewise.
9353         * reginfo.c (init_reg_sets_1): Likewise.
9354         * regrename.c (merge_overlapping_regs, find_rename_reg)
9355         (merge_chains): Likewise.
9356         * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
9357         (find_reload_regs, finish_spills, choose_reload_regs_init)
9358         (emit_reload_insns): Likewise.
9359         * reorg.c (redundant_insn): Likewise.
9360         * resource.c (find_dead_or_set_registers, mark_set_resources)
9361         (mark_target_live_regs): Likewise.
9362         * rtlanal.c (find_all_hard_reg_sets): Likewise.
9363         * sched-deps.c (sched_analyze_insn): Likewise.
9364         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9365         (find_best_reg_for_expr): Likewise.
9366         * shrink-wrap.c (try_shrink_wrapping): Likewise.
9368 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
9370         * hard-reg-set.h (HARD_REG_SET::operator&): New function.
9371         (HARD_REG_SET::operator&): Likewise.
9372         (AND_HARD_REG_SET): Delete.
9373         * caller-save.c (setup_save_areas): Use "&" instead of
9374         AND_HARD_REG_SET.
9375         (save_call_clobbered_regs): Likewise.
9376         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
9377         * config/m32c/m32c.c (reduce_class): Likewise.
9378         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
9379         * final.c (get_call_reg_set_usage): Likewise.
9380         * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
9381         (setup_left_conflict_sizes_p): Likewise.
9382         * ira-conflicts.c (print_allocno_conflicts): Likewise.
9383         (ira_build_conflicts): Likewise.
9384         * ira-costs.c (restrict_cost_classes): Likewise.
9385         * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
9386         (setup_reg_class_relations): Likewise.
9387         * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
9388         * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
9389         * resource.c (find_dead_or_set_registers): Likewise.
9390         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9392 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
9394         * hard-reg-set.h (HARD_REG_SET::operator~): New function.
9395         (COMPL_HARD_REG_SET): Delete.
9396         * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
9397         of COMPL_HARD_REG_SET.
9398         (try_rename_operands): Likewise.
9399         * config/sh/sh.c (push_regs): Likewise.
9400         * lra-assigns.c (find_hard_regno_for_1): Likewise.
9401         * lra-constraints.c (contains_reg_p): Likewise.
9402         * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
9404 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
9406         * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
9407         * caller-save.c (save_call_clobbered_regs): Use assignment instead
9408         of COPY_HARD_REG_SET.
9409         * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
9410         (epiphany_conditional_register_usage): Likewise.
9411         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
9412         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
9413         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
9414         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
9415         * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
9416         * config/mips/mips.c (mips_class_max_nregs): Likewise.
9417         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
9418         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
9419         * config/sh/sh.c (output_stack_adjust): Likewise.
9420         * final.c (collect_fn_hard_reg_usage): Likewise.
9421         (get_call_reg_set_usage): Likewise.
9422         * ira-build.c (ira_create_object, remove_low_level_allocnos)
9423         (ira_flattening): Likewise.
9424         * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
9425         (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
9426         (get_conflict_and_start_profitable_regs, allocno_reload_assign)
9427         (ira_reassign_pseudos): Likewise.
9428         * ira-conflicts.c (print_allocno_conflicts): Likewise.
9429         (ira_build_conflicts): Likewise.
9430         * ira-costs.c (restrict_cost_classes): Likewise.
9431         (setup_regno_cost_classes_by_aclass): Likewise.
9432         * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
9433         (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
9434         (setup_stack_reg_pressure_class, setup_pressure_classes)
9435         (setup_allocno_and_important_classes, setup_class_translate_array)
9436         (setup_reg_class_relations, setup_prohibited_class_mode_regs)
9437         (ira_setup_eliminable_regset): Likewise.
9438         * lra-assigns.c (find_hard_regno_for_1): Likewise.
9439         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
9440         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
9441         (process_alt_operands, inherit_in_ebb): Likewise.
9442         * lra-lives.c (process_bb_lives): Likewise.
9443         * lra-spills.c (assign_spill_hard_regs): Likewise.
9444         * lra.c (lra): Likewise.
9445         * mode-switching.c (new_seginfo): Likewise.
9446         * postreload.c (reload_combine): Likewise.
9447         * reg-stack.c (straighten_stack): Likewise.
9448         * reginfo.c (save_register_info, restore_register_info): Likewise.
9449         (init_reg_sets_1, record_subregs_of_mode): Likewise
9450         * regrename.c (create_new_chain, rename_chains): Likewise.
9451         * reload1.c (order_regs_for_reload, find_reg): Likewise.
9452         (find_reload_regs): Likewise.
9453         * resource.c (find_dead_or_set_registers): Likewise.
9454         (mark_target_live_regs): Likewise.
9455         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9457 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
9459         * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
9460         (note_pattern_stores): Declare.
9461         (note_stores): Take an rtx_insn *.
9462         * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
9463         (find_all_hard_reg_sets): Pass the insn rather than its pattern to
9464         note_stores.  Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
9465         (note_stores): Take an rtx_insn * as argument and process
9466         CALL_INSN_FUNCTION_USAGE.  Rename old function to...
9467         (note_pattern_stores): ...this.
9468         (find_first_parameter_load): Pass the insn rather than
9469         its pattern to note_stores.
9470         * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
9471         * caller-save.c (setup_save_areas, save_call_clobbered_regs)
9472         (insert_one_insn): Likewise.
9473         * combine.c (combine_instructions): Likewise.
9474         (likely_spilled_retval_p): Likewise.
9475         (try_combine): Use note_pattern_stores instead of note_stores.
9476         (record_dead_and_set_regs): Pass the insn rather than its pattern
9477         to note_stores.
9478         (reg_dead_at_p): Likewise.
9479         * config/bfin/bfin.c (workaround_speculation): Likewise.
9480         * config/c6x/c6x.c (maybe_clobber_cond): Likewise.  Take an rtx_insn *
9481         rather than an rtx.
9482         * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
9483         instead of note_stores.
9484         (frv_optimize_membar_local): Pass the insn rather than its pattern
9485         to note_stores.
9486         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
9487         * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
9488         * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
9489         (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
9490         (mips_reorg_process_insns): Likewise.
9491         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
9492         * config/sh/sh.c (flow_dependent_p): Likewise.  Take rtx_insn *s
9493         rather than rtxes.
9494         * cse.c (delete_trivially_dead_insns): Pass the insn rather than
9495         its pattern to note_stores.
9496         * cselib.c (cselib_record_sets): Use note_pattern_stores instead
9497         of note_stores.
9498         * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
9499         the insn to note_stores.
9500         (prescan_insns_for_dce): Update call accordingly.
9501         * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
9502         to note_stores.
9503         * df-problems.c (can_move_insns_across): Likewise.
9504         * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
9505         * function.c (assign_parm_setup_reg): Likewise.
9506         * gcse-common.c (record_last_mem_set_info_common): Likewise.
9507         * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
9508         (single_set_gcse): Likewise.
9509         * ira.c (validate_equiv_mem): Likewise.
9510         (update_equiv_regs): Use note_pattern_stores rather than note_stores
9511         for no_equiv.
9512         * loop-doloop.c (doloop_optimize): Pass the insn rather than its
9513         pattern to note_stores.
9514         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9515         * loop-iv.c (simplify_using_initial_values): Likewise.
9516         * mode-switching.c (optimize_mode_switching): Likewise.
9517         * optabs.c (emit_libcall_block_1): Likewise.
9518         (expand_atomic_compare_and_swap): Likewise.
9519         * postreload-gcse.c (load_killed_in_block_p): Likewise.
9520         (record_opr_changes): Likewise.  Remove explicit handling of
9521         CALL_INSN_FUNCTION_USAGE.
9522         * postreload.c (reload_combine, reload_cse_move2add): Likewise.
9523         * regcprop.c (kill_clobbered_values): Likewise.
9524         (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
9525         to note_stores.
9526         * regrename.c (build_def_use): Likewise.
9527         * reload1.c (reload):  Use note_pattern_stores instead of note_stores
9528         for mark_not_eliminable.
9529         (reload_as_needed): Pass the insn rather than its pattern
9530         to note_stores.
9531         (emit_output_reload_insns): Likewise.
9532         * resource.c (mark_target_live_regs): Likewise.
9533         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9534         * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
9535         instead of note_stores.
9536         * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
9537         its pattern to note_stores.
9538         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
9539         * var-tracking.c (adjust_insn, add_with_sets): Likewise.
9541 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
9543         * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
9544         than a #define.  Use a structure rather than an array as the
9545         fallback definition.  Remove special cases for low array sizes.
9546         (const_hard_reg_set): New typedef.
9547         (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
9548         (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
9549         (hard_reg_set_empty_p): Likewise.
9550         (SET_HARD_REG_BIT): Use a function rather than a macro to
9551         handle the case in which HARD_REG_SET is a structure.
9552         (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
9553         (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
9554         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
9555         (IOR_COMPL_HARD_REG_SET): Likewise.
9556         (hard_reg_set_iterator::pset): Constify the pointer target.
9557         (hard_reg_set_iter_init): Take a const_hard_reg_set instead
9558         of a "const HARD_REG_SET".  Update the handling of non-integer
9559         HARD_REG_SETs.
9560         * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
9561         * reload.h: Likewise.
9562         * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
9563         * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
9564         of a "const HARD_REG_SET".
9565         (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
9566         (range_in_hard_reg_set_p): Likewise.
9567         * ira-costs.c (restrict_cost_classes): Likewise.
9568         * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
9569         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9570         Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
9571         * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
9572         use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
9573         (rws_insn_set, rws_insn_test): In the CHECKING_P version,
9574         take an unsigned int and open-code the HARD_REG_SET operations.
9576 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
9578         * Makefile.in (OBJS): Remove bt-load.o.
9579         * doc/invoke.texi (fbranch-target-load-optimize): Delete.
9580         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
9581         * common.opt (fbranch-target-load-optimize): Mark as Ignore and
9582         document that the option no longer does anything.
9583         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
9584         * target.def (branch_target_register_class): Delete.
9585         (branch_target_register_callee_saved): Likewise.
9586         * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
9587         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
9588         * doc/tm.texi: Regenerate.
9589         * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
9590         (make_pass_branch_target_load_optimize2): Likewise.
9591         * passes.def (pass_branch_target_load_optimize1): Likewise.
9592         (pass_branch_target_load_optimize2): Likewise.
9593         * targhooks.h (default_branch_target_register_class): Likewise.
9594         * targhooks.c (default_branch_target_register_class): Likewise.
9595         * opt-suggestions.c (test_completion_valid_options): Remove
9596         -fbtr-bb-exclusive from the list of test options.
9597         * bt-load.c: Remove.
9599 2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
9601         * match.pd: Add flag_unsafe_math_optimizations check
9602         before deciding on the widest type in a binary math operation.
9604 2019-09-09  Martin Liska  <mliska@suse.cz>
9606         * config/i386/i386.opt: Update comment of removed
9607         options that are preserved only for backward
9608         compatibility.
9610 2019-09-09  Jakub Jelinek  <jakub@redhat.com>
9612         PR target/87853
9613         * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
9614         instead of __v16qs.
9616         PR target/91704
9617         * config/i386/avxintrin.h (__v32qs): New typedef.
9618         * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
9619         instead of __v32qi.
9621 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
9623         * doc/invoke.texi (Option Summary): Cover eBPF.
9624         (eBPF Options): New section.
9625         * doc/extend.texi (BPF Built-in Functions): Likewise.
9626         (BPF Kernel Helpers): Likewise.
9628 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
9630         * config.gcc: Support for bpf-*-* targets.
9631         * common/config/bpf/bpf-common.c: New file.
9632         * config/bpf/t-bpf: Likewise.
9633         * config/bpf/predicates.md: Likewise.
9634         * config/bpf/constraints.md: Likewise.
9635         * config/bpf/bpf.opt: Likewise.
9636         * config/bpf/bpf.md: Likewise.
9637         * config/bpf/bpf.h: Likewise.
9638         * config/bpf/bpf.c: Likewise.
9639         * config/bpf/bpf-protos.h: Likewise.
9640         * config/bpf/bpf-opts.h: Likewise.
9641         * config/bpf/bpf-helpers.h: Likewise.
9642         * config/bpf/bpf-helpers.def: Likewise.
9644 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
9646         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9647         indirect_calls.
9649 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
9651         * opt-functions.awk (integer_range_info): Make sure values are in
9652         numeric context before operating with them.
9654 2019-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
9656         * genemit.c (gen_split): Print the filename and line number where the
9657         splitter (or peephole2) was defined, to the dump file.
9659 2019-09-07  Jakub Jelinek  <jakub@redhat.com>
9661         PR tree-optimization/91665
9662         * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
9663         incompatible with the type of PHI result.
9665 2019-09-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9667         PR target/91684
9668         * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
9669         gen_unaligned_storedi for 4-byte aligned addresses.
9671 2019-09-06  Jim Wilson  <jimw@sifive.com>
9673         * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
9674         change.
9676 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
9678         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
9680 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
9682         * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
9683         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
9685 2019-09-06  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9687         PR target/91654
9688         * config/i386/x86-tune-costs.h (skylake_cost): Raise the
9689         cost of SSE->integer and integer->SSE moves from 2 to 6.
9690         (core_cost): Ditto.
9692 2019-09-06  Jakub Jelinek  <jakub@redhat.com>
9694         * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
9695         before testing TYPE_TRANSPARENT_AGGR.
9696         * calls.c (initialize_argument_information, load_register_parameters):
9697         Likewise.
9699 2019-09-06  Richard Earnshaw  <rearnsha@arm.com>
9701         * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
9702         high regs.
9703         (cmp_ior): Likewise.
9705 2019-09-06  Martin Liska  <mliska@suse.cz>
9707         * doc/match-and-simplify.texi: Separate tuples with ;.
9709 2019-09-06  Martin Liska  <mliska@suse.cz>
9711         PR c++/91125
9712         * Makefile.in: Remove tlink.o.
9713         * collect2.c (do_link): New function isolated
9714         from do_tlink.
9715         (main): Use.
9716         * collect2.h (do_tlink): Remove declaration of do_tlink.
9717         * doc/extend.texi: Remove documentation of -frepo.
9718         * doc/invoke.texi: Likewise.
9719         * doc/sourcebuild.texi: Remove cleanup-repo-files.
9720         * tlink.c: Remove.
9722 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
9723             Jim Wilson  <jimw@sifive.com>
9725         PR target/91635
9726         * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
9727         extend<SHORT:mode><SUPERQI:mode>2): Don't split if
9728         paradoxical_subreg_p (operands[0]).
9729         (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
9730         use as intermediate value.
9732 2019-09-05  Andrew Stubbs  <ams@codesourcery.com>
9734         * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
9735         (sync_compare_and_swap<mode>_insn): Likewise.
9737 2019-09-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9739         PR middle-end/91615
9740         * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
9741         without movmisalign optab.
9743 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
9745         PR middle-end/91001
9746         PR middle-end/91105
9747         PR middle-end/91106
9748         * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
9749         types, use type of their first field instead of type of
9750         args[i].tree_value.
9752 2019-09-05  Richard Biener  <rguenther@suse.de>
9754         PR rtl-optimization/91656
9755         * postreload-gcse.c (record_last_mem_set_info): Revert addition
9756         of early out.
9758 2019-09-05  Richard Biener  <rguenther@suse.de>
9760         PR middle-end/90501
9761         * tree-inline.c (declare_return_variable): Mark the return
9762         slot as addressable after building an address of it.
9764 2019-09-05  Arnaud Charlet  <charlet@adacore.com>
9766         * doc/install.texi: Update and clarify requirements to build GNAT.
9768 2019-09-05  Richard Sandiford  <richard.sandiford@arm.com>
9770         PR middle-end/91577
9771         * cfgexpand.c (discover_nonconstant_array_refs): Force the source
9772         of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
9773         call to be in memory.
9774         (pass_expand::execute): Call discover_nonconstant_array_refs before
9775         setting currently_expanding_to_rtl.
9777 2019-09-04  Caroline Tice  <cmtice@google.com>
9779         * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
9780         specified together.
9782 2019-09-04  Marek Polacek  <polacek@redhat.com>
9784         * doc/invoke.texi: Remove -fdeduce-init-list documentation.
9786 2019-09-04  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9788         PR target/32413
9789         * config/i386/i386.c (inline_secondary_memory_needed): Return true
9790         for QI and HImode moves between SSE and general registers.
9792 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9794         PR c/78736
9795         * doc/invoke.texi: Document -Wenum-conversion.
9797 2019-09-04  Richard Biener  <rguenther@suse.de>
9799         PR rtl-optimization/36262
9800         * postreload-gcse.c: Include intl.h and gcse.h.
9801         (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
9802         to avoid linear list walk.
9803         (record_last_mem_set_info): Gate off if not computing transparentness.
9804         (get_bb_avail_insn): If transparentness isn't computed give up
9805         early.
9806         (gcse_after_reload_main): Skip compute_transp and extended PRE
9807         if gcse_or_cprop_is_too_expensive says so.
9809 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9811         * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
9812         noinit section.
9813         (msp430_select_section): Handle decls with the "noinit" attribute with
9814         default_elf_select_section.
9815         Handle SECCAT_RODATA_MERGE_* section types with
9816         default_elf_select_section.
9817         Add comments about handling of unsupported section types.
9818         (msp430_section_type_flags): Remove handling of the noinit section.
9820 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9822         * config/msp430/msp430.c (msp430_attr): Remove warnings about
9823         conflicting msp430-specific attributes.
9824         (msp430_section_attr): Likewise.
9825         Add warnings about conflicts with generic "noinit" and "section"
9826         attributes.
9827         Fix grammar in -mlarge error message.
9828         (msp430_data_attr): Rename to msp430_persist_attr.
9829         Add warnings about conflicts with generic "noinit" and "section"
9830         attributes.
9831         Add warning for when variable is not initialized.
9832         Chain conditionals which prevent the attribute being added.
9833         (ATTR_EXCL): New helper.
9834         (attr_reent_exclusions): New exclusion table.
9835         (attr_naked_exclusions): Likewise.
9836         (attr_crit_exclusions): Likewise.
9837         (attr_lower_exclusions): Likewise.
9838         (attr_upper_exclusions): Likewise.
9839         (attr_either_exclusions): Likewise.
9840         (attr_persist_exclusions): Likewise.
9841         (msp430_attribute_table): Update with exclusion rules.
9842         (msp430_output_aligned_decl_common): Don't output common symbol if decl
9843         has a section.
9845 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9847         * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
9848         (msp430_handle_generic_attribute): New function.
9849         * doc/tm.texi: Regenerate.
9850         * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
9851         * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
9852         * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
9853         * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
9855 2019-09-03  Kamlesh Kumar  <kamleshbhalui@gmail.com>
9857         PR tree-optimization/91504
9858         * match.pd: Add ((~a & b) ^a) --> (a | b).
9860 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
9862         PR target/91604
9863         * config/i386/i386-expand.c (split_double_mode): If there is more than
9864         one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
9865         already split matching MEM operand instead of calling adjust_address
9866         again.
9868 2019-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
9870         * config.gcc: Obsolete spu target.  Remove references to spu.
9871         * configure.ac: Remove references to spu.
9872         * configure: Regenerate.
9873         * config/spu/: Remove directory.
9874         * common/config/spu/: Remove directory.
9876         * doc/extend.texi: Remove references to spu.
9877         * doc/invoke.texi: Likewise.
9878         * doc/md.texi: Likewise.
9879         * doc/sourcebuild.texi: Likewise.
9881 2019-09-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9883         PR middle-end/91603
9884         PR middle-end/91612
9885         PR middle-end/91613
9886         * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
9887         and SSA_NAME referring to CONSTANT_P correctly.
9889 2019-09-03  Richard Biener  <rguenther@suse.de>
9891         * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
9892         (vn_nary_op_insert): Likewise.
9893         * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
9894         (vn_nary_op_lookup): Likewise.
9895         (vn_nary_op_insert): Likewise.
9897 2019-09-03  Ilya Leoshkevich  <iii@linux.ibm.com>
9899         * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
9900         (*op0, 1) instead of XEXP (*op1, 0).
9902 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9904         * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
9905         (aarch64_fjcvtzs): New define_insn.
9906         * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
9907         * config/aarch64/aarch64-builtins.c (aarch64_builtins):
9908         Add AARCH64_JSCVT.
9909         (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
9910         (aarch64_expand_builtin): Handle AARCH64_JSCVT.
9911         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9912         __ARM_FEATURE_JCVT where appropriate.
9913         * config/aarch64/arm_acle.h (__jcvt): Define.
9915 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9917         * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
9918         UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
9919         (aarch64_<frintnzs_op><mode>): New define_insn.
9920         * config/aarch64/aarch64.h (TARGET_FRINT): Define.
9921         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9922         __ARM_FEATURE_FRINT when appropriate.
9923         * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
9924         frint32x, frint64z, frint64x.
9925         * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
9926         __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
9927         * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
9928         vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
9929         vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
9930         vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
9931         * config/aarch64/iterators.md (VSFDF): Define.
9932         (FRINTNZX): Likewise.
9933         (frintnzs_op): Likewise.
9935 2019-09-03  Dennis Zhang  <dennis.zhang@arm.com>
9937         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
9938         for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
9939         Cortex-A34.
9940         * config/aarch64/aarch64-tune.md: Regenerated.
9941         * doc/invoke.texi: Document the new processors.
9943 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9945         * config/aarch64/aarch64-option-extensions.def (sb): Add feature
9946         string.
9947         (ssbs): Likewise.
9948         (sve2): Likewise.
9949         (sve2-sm4): Likewise.
9950         (sveaes): Likewise.
9951         (svesha3): Likewise.
9952         (svebitperm): Likewise.
9954 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
9955             Richard Biener  <rguenther@suse.de>
9957         PR tree-optimization/91597
9958         * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
9959         BIT_AND_EXPR optimization for pointers, even if both operand
9960         ranges don't include NULL, the result can be NULL.
9962 2019-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9964         PR middle-end/91605
9965         * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
9966         (non_mem_decl_p): ...this.
9967         (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
9968         (expand_assignment): Call mem_ref_referes_to_non_mem_p
9969         unconditionally as before.
9971 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
9973         PR target/91323
9974         * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
9975         * rtl.def (LTGT): Likewise.  Add note about floating-point exceptions.
9976         * tree.def (LTGT_EXPR): Likewise.
9977         * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
9979 2019-09-02  Jakub Jelinek  <jakub@redhat.com>
9981         PR go/91617
9982         * fold-const.c (range_check_type): For enumeral and boolean
9983         type, pass 1 to type_for_size langhook instead of
9984         TYPE_UNSIGNED (etype).  Return unsigned_type_for result whenever
9985         etype isn't TYPE_UNSIGNED INTEGER_TYPE.
9986         (build_range_check): Don't call unsigned_type_for for pointer types.
9987         * match.pd (X / C1 op C2): Don't call unsigned_type_for on
9988         range_check_type result.
9990 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
9992         * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
9993         (replace_ref): Do not replace a chain of only two candidates which are
9994         valid memory references.
9996 2019-09-02  Martin Liska  <mliska@suse.cz>
9998         * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
9999         Bail out when we'll end up with the same number of clusters as
10000         at the beginning.
10001         (bit_test_cluster::find_bit_tests): Likewise for bit tests.
10002         (jump_table_cluster::can_be_handled): Remove the guard
10003         as it's already handled in ::is_enabled.  Allocate output
10004         after early bail out.
10006 2019-09-02  Martin Liska  <mliska@suse.cz>
10008         PR gcov-profile/91601
10009         * gcov.c (path_contains_zero_cycle_arc): Rename to ...
10010         (path_contains_zero_or_negative_cycle_arc): ... this and handle
10011         also negative edges.
10012         (circuit): Handle also negative edges as they can happen
10013         in some situations.
10015 2019-09-01  Eric Botcazou  <ebotcazou@adacore.com>
10017         PR target/91472
10018         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
10019         during LRA/reload in PIC mode if the PIC register hasn't been used yet.
10020         (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
10022 2019-09-01  Jakub Jelinek  <jakub@redhat.com>
10024         PR middle-end/91623
10025         * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
10026         EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
10027         zeros or negative elements and use NE_EXPR instead of LT_EXPR against
10028         zero vector.
10030         PR lto/91572
10031         * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
10032         GIMPLE_ASM TREE_LIST operands.
10034 2019-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
10036         * doc/generic.texi (Unary and Binary Expressions): Mark up
10037         an instance of TYPE_MIN.
10039 2019-08-31  Stafford Horne  <shorne@gmail.com>
10041         * config/or1k/constraints.md (t): New constraint.
10042         * config/or1k/or1k.h (GOT_REGS): New register class.
10043         * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
10045 2019-08-30  Jim Wilson  <jimw@sifive.com>
10047         * config/riscv/riscv.c (riscv_option_override): If -msave-restore
10048         and -fpic and -mplt then disable -msave-restore and warn.
10050 2019-08-30  Martin Sebor  <msebor@redhat.com>
10052         PR middle-end/91599
10053         * tree-ssa-strlen.c (handle_store): Use a fallback location if
10054         the statement doesn't have one.
10055         * gimple-pretty-print.c (percent_G_format): Same.
10057         PR middle-end/91584
10058         * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
10059         before using them to validate MEM_REF offset.
10061 2019-08-30  Marek Polacek  <polacek@redhat.com>
10063         * doc/invoke.texi (-Wvolatile): Use @code for volatile.
10065 2019-08-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10067         * config/arm/arm.md (unaligned_loaddi,
10068         unaligned_storedi): New unspec insn patterns.
10069         * config/arm/neon.md (unaligned_storev8qi): Likewise.
10070         * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
10071         and unaligned_storedi for 4-byte aligned memory.
10072         (arm_block_set_aligned_vect): Use unaligned_storev8qi for
10073         4-byte aligned memory.
10075 2019-08-30  Martin Jambor  <mjambor@suse.cz>
10077         tree-optimization/91579
10078         * tree-tailcall.c (tailr_arg_needs_copy): New variable.
10079         (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
10080         appropriate.
10081         (arg_needs_copy_p): Removed.
10082         (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
10083         arg_needs_copy_p.
10084         (tree_optimize_tail_calls_1): Likewise.  Free tailr_arg_needs_copy.
10086 2019-08-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10088         * config/i386/i386-features.c
10089         (general_scalar_chain::compute_convert_gain):
10090         Correct cost for double-word shifts.
10091         (general_scalar_to_vector_candidate_p): Reject count operands
10092         greater or equal to mode bitsize.
10094 2019-08-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10096         * config/i386/i386.c (inline_secondary_memory_needed): Return true
10097         for moves between SSE and non-general registers and between
10098         mask and non-general registers.
10099         (ix86_register_move_cost): Remove stalled comment.
10101 2019-08-29  Richard Biener  <rguenther@suse.de>
10103         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
10104         Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
10106 2019-08-29  Richard Biener  <rguenther@suse.de>
10108         PR bootstrap/91580
10109         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
10110         Do not emit scalar copies for debug-insns, instead replace
10111         their uses with the reg copy used in the chain or reset them
10112         if there is a reaching definition outside of the chain as well.
10114 2019-08-29  Jakub Jelinek  <jakub@redhat.com>
10116         PR target/91560
10117         * config/i386/i386-expand.c (expand_vec_perm_movs,
10118         expand_vec_perm_blend, expand_vec_perm_vpermil,
10119         expand_vec_perm_pshufb, expand_vec_perm_1,
10120         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
10121         expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
10122         expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
10123         expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
10124         expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
10125         comments - replace ix86_expand_vec_perm_builtin_1 with
10126         ix86_expand_vec_perm_const_1.
10127         (expand_vec_perm2_vperm2f128_vblend): New function.
10128         (ix86_expand_vec_perm_const_1): New forward declaration.  Call
10129         expand_vec_perm2_vperm2f128_vblend as last resort.
10130         (canonicalize_perm): Formatting fix.
10132         PR tree-optimization/91351
10133         * tree-cfg.c (generate_range_test): Use range_check_type instead of
10134         unsigned_type_for.
10135         * tree-cfgcleanup.c (convert_single_case_switch): Punt if
10136         range_check_type returns NULL.
10137         * tree-switch-conversion.c (switch_conversion::build_one_array):
10138         Use range_check_type instead of unsigned_type_for, don't perform
10139         linear opt if it returns NULL.
10140         (bit_test_cluster::find_bit_tests): Formatting fix.
10141         (bit_test_cluster::emit): Use range_check_type instead of
10142         unsigned_type_for.
10143         (switch_decision_tree::try_switch_expansion): Punt if range_check_type
10144         returns NULL.
10146 2019-08-29  Richard Biener  <rguenther@suse.de>
10148         PR tree-optimization/91568
10149         * tree-vectorizer.h (_slp_tree::max_nunits): Add.
10150         (vect_update_max_nunits): Add overload for poly_uint64.
10151         * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
10152         (vect_build_slp_tree): Record max_nunits into the subtree
10153         and merge it upwards.
10154         (vect_print_slp_tree): Print max_nunits.
10156 2019-08-28  Marek Polacek  <polacek@redhat.com>
10158         Implement P1152R4: Deprecating some uses of volatile.
10159         PR c++/91361
10160         * doc/invoke.texi: Document -Wvolatile.
10162 2019-08-28  Marek Polacek  <polacek@redhat.com>
10164         PR c++/91360 - Implement C++20 P1143R2: constinit.
10165         * doc/invoke.texi: Document -Wc++20-compat.
10167 2019-08-28  Martin Sebor  <msebor@redhat.com>
10169         PR tree-optimization/91457
10170         * builtins.c (component_size): New function.
10171         (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
10172         * builtins.h (compute_objsize): Add argument.
10173         * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
10174         * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
10175         (vrp_prop::check_mem_ref): Same.
10176         (vrp_prop::search_for_addr_array): Set no-warning bit.
10177         (check_array_bounds): Same.
10179 2019-08-28  Martin Sebor  <msebor@redhat.com>
10181         PR driver/80545
10182         * opts-common.c (option_enabled): Correct checking for language
10183         options.
10185 2019-08-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10187         * config/i386/i386.c (ix86_register_move_cost): Do not
10188         limit the cost of moves to/from XMM register to minimum 8.
10190 2019-08-28  Martin Jambor  <mjambor@suse.cz>
10192         PR ipa/91468
10193         * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
10194         checking assert a normal assert to test it really is redundant.
10195         * ipa-prop.c (compute_complex_assign_jump_func): Removed
10196         redundant test.
10197         (update_jump_functions_after_inlining): Removed combining unary
10198         arithmetic operations with an ancestor jump function.
10199         (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
10200         instead of t.
10202 2019-08-28  Richard Biener  <rguenther@suse.de>
10204         * config/i386/i386-features.c (convert_scalars_to_vector): Do not
10205         add the MD problem.
10207 2019-08-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10208             Richard Biener  <rguenther@suse.de>
10210         * expr.c (expand_assignment): Handle misaligned DECLs.
10211         (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
10212         * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
10213         too.
10214         (assign_parm_setup_stack): Allocate properly aligned stack slots.
10215         * varasm.c (build_constant_desc): Align constants of misaligned types.
10216         * config/arm/predicates.md (aligned_operand): New predicate.
10217         * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
10218         aligned_operand to check restrictions on memory addresses.
10219         * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
10220         * config/arm/vec-common.md (mov<VALL>): Likewise.
10222 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
10224         PR libgomp/91530
10225         * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
10226         V_128 iterator instead of VI_128.
10228 2019-08-28  Martin Liska  <mliska@suse.cz>
10230         PR tree-optimization/90970
10231         * builtins.c (check_access): Remove assignment to maxread
10232         as it hasn't been used since when it was introduced in r255755.
10234 2019-08-27  Martin Sebor  <msebor@redhat.com>
10236         PR tree-optimization/91567
10237         * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
10238         of unknown strings.
10239         * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
10240         to PTRDIFF_MAX - 2.
10242 2019-08-27  Jeff Law  <law@redhat.com>
10244         * tree-ssa-strlen.c (printf_strlen_execute): Initialize
10245         the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
10247 2019-08-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10249         PR target/91528
10250         * config/i386/i386-features.c (convert_scalars_to_vector):
10251         Update crtl->stack_realign_needed, crtl->stack_realign_tried and
10252         crtl->stack_realign_processed.  Update crtl->drap_reg by calling
10253         targetm.calls.get_drap_rtx.  If drap_rtx is non-null then
10254         Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
10256 2019-08-27  Richard Biener  <rguenther@suse.de>
10258         * config/i386/i386-features.h
10259         (general_scalar_chain::~general_scalar_chain): Add.
10260         (general_scalar_chain::insns_conv): New bitmap.
10261         (general_scalar_chain::n_sse_to_integer): New.
10262         (general_scalar_chain::n_integer_to_sse): Likewise.
10263         (general_scalar_chain::make_vector_copies): Adjust signature.
10264         * config/i386/i386-features.c
10265         (general_scalar_chain::general_scalar_chain): Outline,
10266         initialize new members.
10267         (general_scalar_chain::~general_scalar_chain): New.
10268         (general_scalar_chain::mark_dual_mode_def): Record insns
10269         we need to insert conversions at and count them.
10270         (general_scalar_chain::compute_convert_gain): Account
10271         for conversion instructions at chain boundary.
10272         (general_scalar_chain::make_vector_copies): Generate a single
10273         copy for a def by a specific insn.
10274         (general_scalar_chain::convert_registers): First populate
10275         defs_map, then make copies at out-of chain insns.
10277 2019-08-27  Richard Earnshaw  <rearnsha@arm.com>
10279         * config/arm/arm.md (stack_protect_set_insn): Add security-related
10280         comment.
10281         * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
10283 2019-08-27  Martin Liska  <mliska@suse.cz>
10285         * cgraph.c (cgraph_node::remove): Remove dead assignment before
10286         loop.
10287         * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
10288         Enclose in anonymous namespace.
10289         * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
10290         hard_register initialization in braces.
10291         * tree-vrp.h (value_range_base::supports_type_p): Return false
10292         for function with boolean return type.
10294 2019-08-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10296         * config/i386/i386.c (emit_i387_cw_initialization)
10297         <case I387_CW_ROUNDEVEN>: Fix masking operand value.
10299 2019-08-26  Martin Sebor  <msebor@redhat.com>
10301         PR c++/83431
10302         * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
10303         (sprintf_dom_walker): Remove class.
10304         (get_int_range): Make argument const.
10305         (directive::fmtfunc, directive::set_precision): Same.
10306         (format_none): Same.
10307         (build_intmax_type_nodes): Same.
10308         (adjust_range_for_overflow): Same.
10309         (format_floating): Same.
10310         (format_character): Same.
10311         (format_string): Same.
10312         (format_plain): Same.
10313         (get_int_range): Cast away constness.
10314         (format_integer): Same.
10315         (get_string_length): Call get_range_strlen_dynamic.  Handle
10316         null lendata.maxbound.
10317         (should_warn_p): Adjust argument scope qualifier.
10318         (maybe_warn): Same.
10319         (format_directive): Same.
10320         (parse_directive): Same.
10321         (is_call_safe): Same.
10322         (try_substitute_return_value): Same.
10323         (sprintf_dom_walker::handle_printf_call): Rename...
10324         (handle_printf_call): ...to this.  Initialize target to host charmap
10325         here instead of in pass_sprintf_length::execute.
10326         (struct call_info): Make global.
10327         (sprintf_dom_walker::compute_format_length): Make global.
10328         (sprintf_dom_walker::handle_gimple_call): Same.
10329         * passes.def (pass_sprintf_length): Replace with pass_strlen.
10330         * print-rtl.c (print_pattern): Reduce the number of spaces to
10331         avoid -Wformat-truncation.
10332         * tree-pass.h (make_pass_warn_printf): New function.
10333         * tree-ssa-strlen.c (strlen_optimize): New variable.
10334         (get_string_length): Add comments.
10335         (get_range_strlen_dynamic): New function.
10336         (check_and_optimize_call): New function.
10337         (handle_integral_assign): New function.
10338         (strlen_check_and_optimize_stmt): Factor code out into
10339         strlen_check_and_optimize_call and handle_integral_assign.
10340         (strlen_dom_walker::evrp): New member.
10341         (strlen_dom_walker::before_dom_children): Use evrp member.
10342         (strlen_dom_walker::after_dom_children): Use evrp member.
10343         (printf_strlen_execute): New function.
10344         (pass_strlen::gate): Update to handle printf calls.
10345         (dump_strlen_info): New function.
10346         (pass_data_warn_printf): New variable.
10347         (pass_warn_printf): New class.
10348         * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
10349         (handle_printf_call): Same.
10350         * tree-vrp.c (value_range_base::type): Adjust assertion.
10351         * vr-values.c (vr_values::update_value_range): Use type of the first
10352         argument rather than the second.
10354 2019-08-26  Richard Biener  <rguenther@suse.de>
10356         * config/i386/i386-features.c (general_remove_non_convertible_regs):
10357         Remove.
10358         (convert_scalars_to_vector): Do not call it.
10360 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
10361             Uros Bizjak  <ubizjak@gmail.com>
10363         * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
10364         CASE_MATHFN_FLOATN for roundeven.
10365         * config/i386/i386.c (ix86_i387_mode_needed): Add case
10366         I387_ROUNDEVEN.
10367         (ix86_mode_needed): Likewise.
10368         (ix86_mode_after): Likewise.
10369         (ix86_mode_entry): Likewise.
10370         (ix86_mode_exit): Likewise.
10371         (ix86_emit_mode_set): Likewise.
10372         (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
10373         * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
10374         (ix86_entity): Add I387_ROUNDEVEN.
10375         (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
10376         * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
10377         (define_int_iterator): Likewise.
10378         (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
10379         (define_constant): Define ROUND_ROUNDEVEN mode.
10380         (define_attr): Add roundeven mode for i387_cw.
10381         (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
10382         * internal-fn.def (ROUNDEVEN): New builtin function.
10383         * optabs.def (roundeven_optab): New optab.
10385 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
10387         * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
10388         for ROUNDEVEN.
10389         * builtins.def: Added function definitions for roundeven function
10390         variants.
10391         * fold-const-call.c (fold_const_call_ss): Added case for roundeven
10392         function call.  Adjust condition for floor, ceil, trunc and round.
10393         * fold-const.c (negate_mathfn_p): Added case for roundeven function.
10394         (tree_call_nonnegative_warnv_p): Added case for roundeven function.
10395         (integer_valued_real_call_p): Added case for roundeven function.
10396         * real.c (is_even): New function. Returns true if real number is even,
10397         otherwise returns false.
10398         (is_halfway_below): New function. Returns true if real number is
10399         halfway between two integers, else return false.
10400         (real_roundeven): New function. Round real number to nearest integer,
10401         rounding halfway cases towards even.
10402         * real.h (real_value): Added descriptive comments.  Added function
10403         declaration for roundeven function.
10404         * doc/extend.texi (Other Builtins): List roundeven variants among
10405         functions which can be handled as builtins.
10407 2019-08-26  Richard Biener  <rguenther@suse.de>
10409         PR target/91522
10410         PR target/91527
10411         * config/i386/i386-features.h (general_scalar_chain::defs_map):
10412         New member.
10413         (general_scalar_chain::replace_with_subreg): Remove.
10414         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
10415         (general_scalar_chain::convert_reg): Adjust signature.
10416         * config/i386/i386-features.c (scalar_chain::add_insn): Do not
10417         iterate over all defs of a reg.
10418         (general_scalar_chain::replace_with_subreg): Remove.
10419         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
10420         (general_scalar_chain::make_vector_copies): Populate defs_map,
10421         place copy only after defs that are used as vectors in the chain.
10422         (general_scalar_chain::convert_reg): Emit a copy for a specific
10423         def in a specific instruction.
10424         (general_scalar_chain::convert_op): All reg uses are converted here.
10425         (general_scalar_chain::convert_insn): Emit copies for scalar
10426         uses of defs here.  Replace uses with the copies we created.
10427         Replace and convert the def.  Adjust REG_DEAD notes, remove
10428         REG_EQUIV/EQUAL notes.
10429         (general_scalar_chain::convert_registers): Only handle copies
10430         into the chain here.
10432 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
10434         * match.pd: Add (T)(A) + CST -> (T)(A + CST).
10436 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
10438         * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
10439         Add nop_convert case.
10440         * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
10441         Fold all statements if requested.
10442         * tree-ssa-propagate.h (class substitute_and_fold_engine):
10443         Allow to fold all statements.
10444         * tree-vrp.c (class vrp_folder):
10445         Let substitute_and_fold_engine fold all statements.
10447 2019-08-26  Richard Biener  <rguenther@suse.de>
10449         PR tree-optimization/91526
10450         * passes.def: Note that after late FRE we do TODO_update_address_taken.
10451         * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
10452         TODO_update_address_taken.
10454 2019-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
10456         * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
10457         __STDC_HOSTED__.
10459 2019-08-23  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
10461         * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
10462         machine mode for unspec_volatile operand.
10464 2019-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
10466         * doc/invoke.texi (mneon-for-64bits): Deprecate option.
10467         * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
10468         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
10469         (prefer_neon_for_64bits): Remove.
10470         * config/arm/arm.c (prefer_neon_for_64bits): Remove.
10471         (tune_params): Remove PREF_NEON_64_FALSE uses.
10472         (arm_option_override): Remove prefer_neon selection code.
10473         (arm_print_tune_info): Remove prefer_neon_for_64bits.
10474         * config/arm/arm-protos.h (tune_params): Remove
10475         prefer_neon_for_64bits.
10476         (prefer_neon_for_64bits): Remove.
10478 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
10480         PR pch/61250
10481         * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
10482         and issue any diagnostics needed before collecting the pre-PCH
10483         state.
10485 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
10487         PR middle-end/91283
10488         * common.opt (fexcess-precision=): Add Optimization flag.  Use
10489         flag_excess_precision variable instead of
10490         flag_excess_precision_cmdline.
10491         * flags.h (class target_flag_state): Remove x_flag_excess_precision
10492         member.
10493         (flag_excess_precision): Don't define.
10494         * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
10495         flag_excess_precision_cmdline.  Remove comment.
10496         * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
10497         and x_flag_excess_precision instead of
10498         frontend_set_flag_excess_precision_cmdline and
10499         x_flag_excess_precision_cmdline.
10500         (fast_math_flags_set_p): Use x_flag_excess_precision instead of
10501         x_flag_excess_precision_cmdline.
10502         * toplev.c (init_excess_precision): Remove.
10503         (lang_dependent_init_target): Don't call it.
10505 2019-08-23  Martin Liska  <mliska@suse.cz>
10507         * lto-wrapper.c (run_gcc): When setting jobserver
10508         set also parallel to 1.  This was done so before r273908.
10510 2019-08-23  Dennis Zhang  <dennis.zhang@arm.com>
10512         * config/arm/arm-cpus.in (cortex-m35p): New entry.
10513         (cortex-a76ae): Likewise.
10514         (cortex-a77): Likewise
10515         * config/arm/arm-tables.opt: Regenerate.
10516         * config/arm/arm-tune.md: Likewise.
10517         * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
10518         cortex-a77 CPU options.
10520 2019-08-23  Martin Liska  <mliska@suse.cz>
10522         * profile.c (instrument_values): Do not set
10523         0 as last argument.
10524         * tree-profile.c (gimple_gen_interval_profiler): Remove
10525         last argument.
10526         (gimple_gen_pow2_profiler): Likewise.
10527         (gimple_gen_topn_values_profiler): Likewise.
10528         (gimple_gen_ic_profiler): Likewise.
10529         (gimple_gen_time_profiler): Likewise.
10530         (gimple_gen_average_profiler): Likewise.
10531         (gimple_gen_ior_profiler): Likewise.
10532         * value-prof.c (dump_histogram_value): Use default
10533         in switch statement instead of HIST_TYPE_MAX.
10534         (stream_in_histogram_value): Likewise.
10535         (gimple_duplicate_stmt_histograms): Do not
10536         use NULL for implicitly set arguments.
10537         (gimple_divmod_values_to_profile): Do not use
10538         reserve+quick_push.
10539         (gimple_indirect_call_to_profile): Likewise.
10540         (gimple_find_values_to_profile): Use implicit
10541         function call arguments.
10542         * value-prof.h (gimple_alloc_histogram_value):
10543         Set default values.
10544         (gimple_gen_interval_profiler): Remove last argument.
10545         (gimple_gen_pow2_profiler): Likewise.
10546         (gimple_gen_topn_values_profiler): Likewise.
10547         (gimple_gen_ic_profiler): Likewise.
10548         (gimple_gen_time_profiler): Likewise.
10549         (gimple_gen_average_profiler): Likewise.
10550         (gimple_gen_ior_profiler): Likewise.
10552 2019-08-22  Martin Sebor  <msebor@redhat.com>
10554         PR middle-end/91490
10555         * builtins.c (c_strlen): Rename argument and introduce new local.
10556         Set no-warning bit on original argument.
10557         * expr.c (string_constant): Pass argument type to fold_ctor_reference.
10558         Fold empty and zero constructors into empty strings.
10559         * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
10560         for missing initializers.
10561         * tree.c (build_string_literal): Handle optional argument.
10562         * tree.h (build_string_literal): Add defaulted argument.
10563         * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
10564         no-warning bit on original expression.
10566 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
10568         PR target/91481
10569         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
10570         and UNSPEC_DARN_RAW.
10571         (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
10572         UNSPECV_DARN_RAW.
10573         (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
10574         (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
10575         (darn): Use an unspec_volatile, and UNSPECV_DARN.
10577 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
10579         * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
10580         UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
10581         * config/rs6000/rs6000.md (unspec): ... here.
10582         * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
10583         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
10584         cmpeqb, *cmpeqb_internal): Delete, move to...
10585         * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
10586         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
10587         cmpeqb, *cmpeqb_internal): ... here.
10589 2019-08-22  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10591         * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
10592         intrinsics if __ARM_FP.
10593         Use __ARM_FEATURE_CRC32 ifdef guard.
10595 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
10597         * config/arm/arm.md (neon_for_64bits): Remove.
10598         (avoid_neon_for_64bits): Remove.
10599         (arm_adddi3): Always split early.
10600         (arm_subdi3): Always split early.
10601         (negdi2): Remove Neon expansion.
10602         (split zero_extend): Split before reload.
10603         (split sign_extend): Split before reload.
10605 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
10607         * config/arm/iterators.md (qhs_extenddi_cstr): Update.
10608         (qhs_extenddi_cstr): Likewise.
10609         * config/arm/arm.md (ashldi3): Always expand early.
10610         (ashlsi3): Likewise.
10611         (ashrsi3): Likewise.
10612         (zero_extend<mode>di2): Remove Neon variants.
10613         (extend<mode>di2): Likewise.
10614         * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
10615         (signed_shift_di3_neon): Likewise.
10616         (unsigned_shift_di3_neon): Likewise.
10617         (ashrdi3_neon_imm_noclobber): Likewise.
10618         (lshrdi3_neon_imm_noclobber): Likewise.
10619         (<shift>di3_neon): Likewise.
10620         (split extend): Remove DI extend split patterns.
10622 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
10624         * config/arm/arm.md (split and/eor/ior): Remove Neon check.
10625         (split not): Add DImode not splitter.
10626         (anddi3): Remove pattern.
10627         (anddi3_insn): Likewise.
10628         (anddi_zesidi_di): Likewise.
10629         (anddi_sesdi_di): Likewise.
10630         (anddi_notdi_di): Likewise.
10631         (anddi_notzesidi_di): Likewise.
10632         (anddi_notsesidi_di): Likewise.
10633         (iordi3): Likewise.
10634         (iordi3_insn): Likewise.
10635         (iordi_zesidi_di): Likewise.
10636         (iordi_sesidi_di): Likewise.
10637         (xordi3): Likewise.
10638         (xordi3_insn): Likewise.
10639         (xordi_sesidi_di): Likewise.
10640         (xordi_zesidi_di): Likewise.
10641         (one_cmpldi2): Likewise.
10642         (one_cmpldi2_insn): Likewise.
10643         * config/arm/constraints.md: Remove De, Df, Dg constraints.
10644         * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
10645         alternative.
10646         (iwmmxt_xordi3): Likewise.
10647         (iwmmxt_anddi3): Likewise.
10648         * config/arm/neon.md (orndi3_neon): Remove pattern.
10649         (anddi_notdi_di): Likewise.
10650         * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
10651         (arm_iordi_operand_neon): Likewise.
10652         (arm_xordi_operand_neon): Likewise.
10653         * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
10654         (iordi_notzesidi_di): Likewise.
10655         (iordi_notdi_zesidi): Likewise.
10656         (iordi_notsesidi_di): Likewise.
10658 2019-08-22  Richard Earnshaw  <rearnsha@arm.com>
10660         * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
10661         insn.
10662         (iorsi3_compare0_scratch): Likewise.
10664 2019-08-22  Sylvia Taylor  <sylvia.taylor@arm.com>
10666         * config/aarch64/aarch64-simd-builtins.def:
10667         (ld1x4): New.
10668         (st1x4): Likewise.
10669         * config/aarch64/aarch64-simd.md:
10670         (aarch64_ld1x4<VALLDIF:mode>): New pattern.
10671         (aarch64_st1x4<VALLDIF:mode>): Likewise.
10672         (aarch64_ld1_x4_<mode>): Likewise.
10673         (aarch64_st1_x4_<mode>): Likewise.
10674         * config/aarch64/arm_neon.h:
10675         (vld1_s8_x4): New function.
10676         (vld1q_s8_x4): Likewise.
10677         (vld1_s16_x4): Likewise.
10678         (vld1q_s16_x4): Likewise.
10679         (vld1_s32_x4): Likewise.
10680         (vld1q_s32_x4): Likewise.
10681         (vld1_u8_x4): Likewise.
10682         (vld1q_u8_x4): Likewise.
10683         (vld1_u16_x4): Likewise.
10684         (vld1q_u16_x4): Likewise.
10685         (vld1_u32_x4): Likewise.
10686         (vld1q_u32_x4): Likewise.
10687         (vld1_f16_x4): Likewise.
10688         (vld1q_f16_x4): Likewise.
10689         (vld1_f32_x4): Likewise.
10690         (vld1q_f32_x4): Likewise.
10691         (vld1_p8_x4): Likewise.
10692         (vld1q_p8_x4): Likewise.
10693         (vld1_p16_x4): Likewise.
10694         (vld1q_p16_x4): Likewise.
10695         (vld1_s64_x4): Likewise.
10696         (vld1_u64_x4): Likewise.
10697         (vld1_p64_x4): Likewise.
10698         (vld1q_s64_x4): Likewise.
10699         (vld1q_u64_x4): Likewise.
10700         (vld1q_p64_x4): Likewise.
10701         (vld1_f64_x4): Likewise.
10702         (vld1q_f64_x4): Likewise.
10703         (vst1_s8_x4): Likewise.
10704         (vst1q_s8_x4): Likewise.
10705         (vst1_s16_x4): Likewise.
10706         (vst1q_s16_x4): Likewise.
10707         (vst1_s32_x4): Likewise.
10708         (vst1q_s32_x4): Likewise.
10709         (vst1_u8_x4): Likewise.
10710         (vst1q_u8_x4): Likewise.
10711         (vst1_u16_x4): Likewise.
10712         (vst1q_u16_x4): Likewise.
10713         (vst1_u32_x4): Likewise.
10714         (vst1q_u32_x4): Likewise.
10715         (vst1_f16_x4): Likewise.
10716         (vst1q_f16_x4): Likewise.
10717         (vst1_f32_x4): Likewise.
10718         (vst1q_f32_x4): Likewise.
10719         (vst1_p8_x4): Likewise.
10720         (vst1q_p8_x4): Likewise.
10721         (vst1_p16_x4): Likewise.
10722         (vst1q_p16_x4): Likewise.
10723         (vst1_s64_x4): Likewise.
10724         (vst1_u64_x4): Likewise.
10725         (vst1_p64_x4): Likewise.
10726         (vst1q_s64_x4): Likewise.
10727         (vst1q_u64_x4): Likewise.
10728         (vst1q_p64_x4): Likewise.
10729         (vst1_f64_x4): Likewise.
10730         (vst1q_f64_x4): Likewise.
10732 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10734         * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
10736 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10737             Richard Sandiford  <richard.sandiford@arm.com>
10739         PR target/88839
10740         * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
10741         (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
10743 2019-08-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10745         PR target/90724
10746         * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
10747         in reg if it fails aarch64_plus_operand predicate.
10749 2019-08-21  Richard Biener  <rguenther@suse.de>
10751         PR tree-optimization/91482
10752         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
10753         BUILT_IN_ASSUME_ALIGNED calls.
10755 2019-08-21  Richard Biener  <rguenther@suse.de>
10757         PR target/91498
10758         PR target/91503
10759         * config/i386/i386-features.c
10760         (general_scalar_chain::make_vector_copies): Copy stack temporary
10761         rtx when using it multiple times.
10762         (general_scalar_chain::convert_reg): Likewise.
10764 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10766         * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
10768 2019-08-20  Matthew Beliveau  <mbelivea@redhat.com>
10770         * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
10771         catch more redundant zero initialization cases.
10772         (dse_dom_walker::dse_optimize_stmt): Likewise.
10774 2019-08-20  Richard Biener  <rguenther@suse.de>
10776         PR lto/91307
10777         * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
10778         by collect2 when targetm.have_ctors_dtors which avoids dragging
10779         in temporary filenames from LTO input objects.
10781 2019-08-20  Richard Biener  <rguenther@suse.de>
10783         PR tree-optimization/37242
10784         * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
10785         to (T)a + (T)b if we know that a + b does not overflow.
10787 2019-08-20  Eric Botcazou  <ebotcazou@adacore.com>
10789         PR rtl-optimization/91347
10790         * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
10791         before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
10793 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
10795         * calls.h (function_arg_info): Add a pass_by_reference field,
10796         defaulting to false.
10797         * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
10798         when applying pass-by-reference semantics.
10799         (initialize_argument_information): Likewise.
10800         (emit_library_call_value_1): Likewise.
10801         * function.c (assign_parm_data_one): Remove passed_pointer field.
10802         (assign_parm_find_data_types): Don't set it.
10803         (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
10804         (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
10805         arg.pass_by_reference instead of passed_pointer.
10807 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
10809         * calls.c (emit_library_call_value_1): Merge arg and orig_arg
10810         into a single function_arg_info, updating its fields when we
10811         apply pass-by-reference and promotion semantics.  Use the
10812         function_arg_info to track the mode rather than keeping it in
10813         a separate local variable.
10814         (initialize_argument_information): Likewise.  Base the final
10815         arg_to_skip on this new function_arg_info rather than creating
10816         a new one from scratch.
10818 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
10820         * function.c (assign_parm_data_one): Replace passed_type,
10821         promoted_mode and named_arg with a function_arg_info field.
10822         (assign_parm_find_data_types): Remove local variables and
10823         assign directly to "data".  Make data->passed_mode shadow
10824         data->arg.mode until promotion, then assign the promoted
10825         mode to data->arg.mode.
10826         (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
10827         (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
10828         (assign_parm_remove_parallels, assign_parm_setup_block_p)
10829         (assign_parm_setup_block, assign_parm_setup_reg)
10830         (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
10831         arg.mode instead of promoted_mode, arg.type instead of passed_type
10832         and arg.named instead of named_arg.  Use data->arg for
10833         function_arg_info structures that had the field values passed_type,
10834         promoted_mode and named_arg.  Base other function_arg_infos on
10835         data->arg, changing the necessary properties.
10837 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
10839         * calls.h (apply_pass_by_reference_rules): Declare.
10840         * calls.c (apply_pass_by_reference_rules): New function.
10841         * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
10842         * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
10843         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
10844         * function.c (assign_parm_find_data_types): Likewise.
10845         * var-tracking.c (prepare_call_arguments): Likewise.
10847 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
10849         * target.def (must_pass_in_stack): Take a function_arg_info instead
10850         of a mode and a type.
10851         * doc/tm.texi: Regenerate.
10852         * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
10853         instead of a mode and a type.
10854         (must_pass_in_stack_var_size_or_pad): Likewise.
10855         * calls.c (must_pass_in_stack_var_size): Likewise.
10856         (must_pass_in_stack_var_size_or_pad): Likewise.
10857         (initialize_argument_information): Update call to
10858         targetm.calls.must_pass_in_stack.
10859         (must_pass_va_arg_on_stack): Likewise.
10860         * function.c (assign_parm_find_entry_rtl): Likewise.
10861         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
10862         * config/alpha/alpha.c (alpha_function_arg): Likewise.
10863         (alpha_function_arg_advance): Likewise.
10864         * config/cr16/cr16.c (cr16_function_arg): Likewise.
10865         (cr16_function_arg_advance): Likewise.
10866         * config/cris/cris.c (cris_pass_by_reference): Likewise.
10867         (cris_arg_partial_bytes): Likewise.
10868         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
10869         * config/lm32/lm32.c (lm32_function_arg): Likewise.
10870         * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
10871         (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
10872         * config/mips/mips.c (mips_pass_by_reference): Likewise.
10873         * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
10874         (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
10875         * config/sh/sh.c (sh_pass_by_reference): Likewise.
10876         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
10877         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
10878         * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
10879         instead of a mode and a type.
10880         * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
10881         (fr30_num_arg_regs): Likewise.
10882         (fr30_setup_incoming_varargs): Update calls accordingly.
10883         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
10884         (fr30_function_arg_advance): Likewise.
10885         * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
10886         instead of a mode and a type.
10887         * config/gcn/gcn.c (num_arg_regs): Likewise.
10888         (gcn_function_arg, gcn_function_arg_advance): Update calls to
10889         num_arg_regs and targetm.calls.must_pass_in_stack.
10890         (gcn_arg_partial_bytes): Likewise.
10891         * config/i386/i386.c (ix86_must_pass_in_stack): Take a
10892         function_arg_info instead of a mode and a type.
10893         (classify_argument): Update call accordingly.
10894         * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
10895         function_arg_info instead of a mode and a type.
10896         * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
10897         Likewise.
10898         * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
10899         (rs6000_parm_needs_stack): Update call accordingly.
10900         (setup_incoming_varargs): Likewise.
10902 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
10904         * target.def (callee_copies): Take a function_arg_info instead
10905         of a mode, type and named flag.
10906         * doc/tm.texi: Regenerate.
10907         * targhooks.h (hook_callee_copies_named): Take a function_arg_info
10908         instead of a mode, type and named flag.
10909         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
10910         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
10911         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
10912         * targhooks.c (hook_callee_copies_named): Take a function_arg_info
10913         instead of a mode, type and named flag.
10914         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
10915         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
10916         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
10917         * calls.h (reference_callee_copied): Take a function_arg_info
10918         instead of a mode, type and named flag.
10919         * calls.c (reference_callee_copied): Likewise.
10920         (initialize_argument_information): Update call accordingly.
10921         (emit_library_call_value_1): Likewise.
10922         * function.c (gimplify_parameters): Likewise.
10923         * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
10924         hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
10925         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
10926         * config/c6x/c6x.c (c6x_callee_copies): Delete.
10927         (TARGET_CALLEE_COPIES): Define to
10928         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
10929         * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
10930         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
10931         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
10932         * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
10933         instead of a mode, type and named flag.
10934         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
10935         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
10936         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
10937         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
10938         * config/msp430/msp430.c (msp430_callee_copies): Delete.
10939         (TARGET_CALLEE_COPIES): Define to
10940         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
10941         * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
10942         instead of a mode, type and named flag.
10943         * config/sh/sh.c (sh_callee_copies): Likewise.
10944         * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
10945         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
10946         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
10948 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
10950         * target.def (function_arg_advance): Take a function_arg_info instead
10951         of a mode, type and named flag.
10952         * doc/tm.texi: Regenerate.
10953         * targhooks.h (default_function_arg_advance): Take a function_arg_info
10954         instead of a mode, type and named flag.
10955         * targhooks.c (default_function_arg_advance): Likewise.
10956         * calls.c (initialize_argument_information): Update call to
10957         targetm.calls.function_arg_advance.
10958         (emit_library_call_value_1): Likewise.
10959         * dse.c (get_call_args): Likewise.
10960         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
10961         * function.c (assign_parms, gimplify_parameters): Likewise.
10962         * var-tracking.c (prepare_call_arguments): Likewise.
10963         * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
10964         function_arg_info instead of a mode, type and named flag.
10965         (aarch64_setup_incoming_varargs): Update call accordingly.
10966         * config/alpha/alpha.c (alpha_function_arg_advance): Take a
10967         function_arg_info instead of a mode, type and named flag.
10968         (alpha_setup_incoming_varargs): Update call accordingly.
10969         * config/arc/arc.c (arc_function_arg_advance): Take a
10970         function_arg_info instead of a mode, type and named flag.
10971         (arc_setup_incoming_varargs): Update call accordingly.
10972         * config/arm/arm.c (arm_function_arg_advance): Take a
10973         function_arg_info instead of a mode, type and named flag.
10974         (cmse_func_args_or_return_in_stack): Update call accordingly.
10975         (arm_function_ok_for_sibcall): Likewise.
10976         (cmse_nonsecure_call_clear_caller_saved): Likewise.
10977         * config/avr/avr.c (avr_function_arg_advance): Take a
10978         function_arg_info instead of a mode, type and named flag.
10979         * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
10980         * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
10981         (c6x_call_saved_register_used): Update call accordingly.
10982         * config/cr16/cr16.c (cr16_function_arg_advance): Take a
10983         function_arg_info instead of a mode, type and named flag.
10984         * config/cris/cris.c (cris_function_arg_advance): Likewise.
10985         * config/csky/csky.c (csky_function_arg_advance): Likewise.
10986         (csky_setup_incoming_varargs): Update call accordingly.
10987         * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
10988         function_arg_info instead of a mode, type and named flag.
10989         * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
10990         * config/frv/frv.c (frv_function_arg_advance): Likewise.
10991         * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
10992         * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
10993         * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
10994         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
10995         (ix86_setup_incoming_varargs): Update call accordingly.
10996         * config/ia64/ia64.c (ia64_function_arg_advance): Take a
10997         function_arg_info instead of a mode, type and named flag.
10998         (ia64_setup_incoming_varargs): Update call accordingly.
10999         * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
11000         function_arg_info instead of a mode, type and named flag.
11001         (iq2000_expand_prologue): Update call accordingly.
11002         * config/lm32/lm32.c (lm32_function_arg_advance): Take a
11003         function_arg_info instead of a mode, type and named flag.
11004         * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
11005         * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
11006         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
11007         * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
11008         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
11009         Likewise.
11010         (microblaze_expand_prologue): Update call accordingly.
11011         * config/mips/mips.c (mips_function_arg_advance): Take a
11012         function_arg_info instead of a mode, type and named flag.
11013         (mips_setup_incoming_varargs): Update call accordingly.
11014         (mips_output_args_xfer): Likewise.
11015         * config/mmix/mmix.c (mmix_function_arg_advance): Take a
11016         function_arg_info instead of a mode, type and named flag.
11017         * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
11018         * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
11019         * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
11020         * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
11021         * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
11022         (nios2_setup_incoming_varargs): Update call accordingly.
11023         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
11024         function_arg_info instead of a mode, type and named flag.
11025         * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
11026         * config/pa/pa.c (pa_function_arg_advance): Likewise.
11027         * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
11028         * config/pru/pru.c (pru_function_arg_advance): Likewise.
11029         * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
11030         (riscv_setup_incoming_varargs): Update call accordingly.
11031         * config/rl78/rl78.c (rl78_function_arg_advance): Take a
11032         function_arg_info instead of a mode, type and named flag.
11033         * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
11034         Likewise.
11035         * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
11036         (rs6000_parm_needs_stack): Update call accordingly.
11037         * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
11038         instead of a mode, type and named flag.
11039         * config/s390/s390.c (s390_function_arg_advance): Likewise.
11040         (s390_call_saved_register_used): Update call accordingly.
11041         * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
11042         instead of a mode, type and named flag.
11043         (sh_output_mi_thunk): Update call accordingly.
11044         * config/sparc/sparc.c (sparc_function_arg_advance): Take a
11045         function_arg_info instead of a mode, type and named flag.
11046         * config/spu/spu.c (spu_function_arg_advance): Likewise.
11047         (spu_setup_incoming_varargs): Update call accordingly.
11048         * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
11049         function_arg_info instead of a mode, type and named flag.
11050         * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
11051         (tilegx_setup_incoming_varargs): Update call accordingly.
11052         * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
11053         function_arg_info instead of a mode, type and named flag.
11054         (tilegx_setup_incoming_varargs): Update call accordingly.
11055         * config/v850/v850.c (v850_function_arg_advance): Take a
11056         function_arg_info instead of a mode, type and named flag.
11057         * config/vax/vax.c (vax_function_arg_advance): Likewise.
11058         * config/visium/visium.c (visium_function_arg_advance): Likewise.
11059         (visium_setup_incoming_varargs): Update call accordingly.
11060         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
11061         function_arg_info instead of a mode, type and named flag.
11063 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
11065         * target.def (function_arg, function_incoming_arg): Take a
11066         function_arg_info instead of a mode, tree and named flag.
11067         * doc/tm.texi: Regenerate.
11068         * targhooks.h (default_function_arg): Take a function_arg_info
11069         instead of a mode, tree and named flag.
11070         (default_function_incoming_arg): Likewise.
11071         * targhooks.c (default_function_arg): Likewise.
11072         (default_function_incoming_arg): Likewise.
11073         * calls.h (function_arg_info::end_marker_p): New function.
11074         (function_arg_info::end_marker): Likewise.
11075         * calls.c (prepare_call_address, initialize_argument_information)
11076         (expand_call, emit_library_call_value_1): Update calls to
11077         targetm.calls.function_arg and targetm.calls.function_incoming_arg.
11078         * dse.c: Include calls.h.
11079         (get_call_args): Update call to targetm.calls.function_arg.
11080         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11081         * var-tracking.c (prepare_call_arguments): Likewise.
11082         * function.c (assign_parm_find_entry_rtl): Update call to
11083         targetm.calls.function_incoming_arg.
11084         * config/aarch64/aarch64.c (aarch64_function_arg): Take a
11085         function_arg_info instead of a mode, tree and named flag.
11086         * config/alpha/alpha.c (alpha_function_arg): Likewise.
11087         * config/arc/arc.c (arc_function_arg): Likewise.
11088         * config/arm/arm.c (arm_function_arg): Likewise.
11089         (cmse_func_args_or_return_in_stack): Update call accordingly.
11090         (arm_function_ok_for_sibcall): Likewise.
11091         (cmse_nonsecure_call_clear_caller_saved): Likewise.
11092         * config/avr/avr.c (avr_function_arg): Take a function_arg_info
11093         instead of a mode, tree and named flag.
11094         * config/bfin/bfin.c (bfin_function_arg): Likewise.
11095         * config/c6x/c6x.c (c6x_function_arg): Likewise.
11096         (c6x_call_saved_register_used): Update call accordingly.
11097         * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
11098         instead of a mode, tree and named flag.
11099         * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
11100         (cris_function_arg_1): Likewise.
11101         * config/csky/csky.c (csky_function_arg): Likewise.
11102         * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
11103         * config/fr30/fr30.c (fr30_function_arg): Likewise.
11104         * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
11105         (frv_function_arg_1): Likewise.
11106         * config/ft32/ft32.c (ft32_function_arg): Likewise.
11107         * config/gcn/gcn.c (gcn_function_arg): Likewise.
11108         * config/h8300/h8300.c (h8300_function_arg): Likewise.
11109         * config/i386/i386.c (ix86_function_arg): Likewise.
11110         * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
11111         (ia64_function_arg_1): Likewise.
11112         * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
11113         (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
11114         accordingly.
11115         * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
11116         instead of a mode, tree and named flag.
11117         * config/m32c/m32c.c (m32c_function_arg): Likewise.
11118         * config/m32r/m32r.c (m32r_function_arg): Likewise.
11119         * config/m68k/m68k.c (m68k_function_arg): Likewise.
11120         * config/mcore/mcore.c (mcore_function_arg): Likewise.
11121         * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
11122         (microblaze_expand_prologue): Update call accordingly.
11123         * config/mips/mips.c (mips_function_arg): Take a function_arg_info
11124         instead of a mode, tree and named flag.
11125         * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
11126         (mmix_function_arg_1): Likewise.
11127         * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
11128         * config/moxie/moxie.c (moxie_function_arg): Likewise.
11129         * config/msp430/msp430.c (msp430_function_arg): Likewise.
11130         * config/nds32/nds32.c (nds32_function_arg): Likewise.
11131         * config/nios2/nios2.c (nios2_function_arg): Likewise.
11132         * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
11133         (nvptx_function_incoming_arg): Likewise.
11134         * config/or1k/or1k.c (or1k_function_arg): Likewise.
11135         * config/pa/pa.c (pa_function_arg): Likewise.
11136         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
11137         * config/pru/pru.c (pru_function_arg): Likewise.
11138         * config/riscv/riscv.c (riscv_function_arg): Likewise.
11139         * config/rl78/rl78.c (rl78_function_arg): Likewise.
11140         * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
11141         * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
11142         (rs6000_parm_needs_stack): Update call accordingly.
11143         * config/rx/rx.c (rx_function_arg): Take a function_arg_info
11144         instead of a mode, tree and named flag.
11145         * config/s390/s390.c (s390_function_arg): Likewise.
11146         (s390_call_saved_register_used): Update call accordingly.
11147         * config/sh/sh.c (sh_function_arg): Take a function_arg_info
11148         instead of a mode, tree and named flag.
11149         (sh_output_mi_thunk): Update call accordingly.
11150         * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
11151         (sparc_function_incoming_arg): Take a function_arg_info instead of
11152         a mode, tree and named flag.
11153         * config/spu/spu.c (spu_function_arg): Likewise.
11154         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
11155         * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
11156         * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
11157         * config/v850/v850.c (v850_function_arg): Likewise.
11158         * config/vax/vax.c (vax_function_arg): Likewise.
11159         * config/visium/visium.c (visium_function_arg): Likewise.
11160         * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
11161         (xtensa_function_incoming_arg): Likewise.
11163 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
11165         * target.def (setup_incoming_varargs): Take a function_arg_info
11166         instead of a mode and tree.
11167         * doc/tm.texi: Regenerate.
11168         * targhooks.h (default_setup_incoming_varargs): Take a
11169         function_arg_info instead of a mode and tree.
11170         * targhooks.c (default_setup_incoming_varargs): Likewise.
11171         * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
11172         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
11173         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
11174         * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
11175         * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
11176         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
11177         * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
11178         * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
11179         Likewise.
11180         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
11181         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
11182         * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
11183         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
11184         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
11185         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
11186         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11187         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11188         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
11189         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
11190         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
11191         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
11192         * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
11193         * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
11194         * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
11195         * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
11196         * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
11197         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
11198         * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
11199         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
11200         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
11201         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
11202         * function.c (assign_parms_setup_varargs): Update call to
11203         targetm.calls.setup_incoming_varargs.
11205 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
11207         * target.def (pass_by_reference): Take a function_arg_info instead
11208         of a mode, type and named flag.
11209         * doc/tm.texi: Regenerate.
11210         * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
11211         accordingly.
11212         (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
11213         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
11214         function_arg_info instead of a mode, type and named flag.
11215         (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
11216         * calls.h (pass_by_reference): Take a function_arg_info instead of a
11217         mode, type and named flag.
11218         * calls.c (pass_by_reference): Likewise.
11219         (pass_va_arg_by_reference): Update call accordingly.
11220         (initialize_argument_information): Likewise.
11221         (emit_library_call_value_1): Likewise.
11222         * function.c (assign_parm_find_data_types): Likewise.
11223         * var-tracking.c (prepare_call_arguments): Likewise.
11224         * stor-layout.c: Include calls.h.
11225         (compute_record_mode): Update call to targetm.calls.pass_by_reference.
11226         * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
11227         function_arg_info instead of a mode, type and named flag.
11228         * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
11229         * config/arc/arc.c (arc_pass_by_reference): Likewise.
11230         * config/arm/arm.c (arm_pass_by_reference): Likewise.
11231         * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
11232         * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
11233         (c6x_call_saved_register_used): Update call to pass_by_reference.
11234         * config/cris/cris.c (cris_pass_by_reference): Take a
11235         function_arg_info instead of a mode, type and named flag.
11236         * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
11237         function_arg_info instead of a mode, type and named flag.
11238         (epiphany_arg_partial_bytes): Update call accordingly.
11239         * config/ft32/ft32.c (ft32_pass_by_reference): Take a
11240         function_arg_info instead of a mode, type and named flag.
11241         (ft32_arg_partial_bytes): Update call accordingly.
11242         * config/i386/i386.c (ix86_pass_by_reference): Take a
11243         function_arg_info instead of a mode, type and named flag.
11244         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
11245         * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
11246         * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
11247         (m32r_return_in_memory): Update call accordingly.
11248         * config/mips/mips.c (mips_pass_by_reference): Take a
11249         function_arg_info instead of a mode, type and named flag.
11250         * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
11251         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
11252         * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
11253         (moxie_arg_partial_bytes): Update call accordingly.
11254         * config/msp430/msp430.c (msp430_pass_by_reference): Take a
11255         function_arg_info instead of a mode, type and named flag.
11256         * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
11257         * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
11258         * config/pa/pa.c (pa_pass_by_reference): Likewise.
11259         * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
11260         (riscv_return_in_memory): Update call accordingly.
11261         * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
11262         function_arg_info instead of a mode, type and named flag.
11263         * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
11264         (rs6000_parm_needs_stack): Update call to pass_by_reference.
11265         * config/s390/s390.c (s390_pass_by_reference): Take a
11266         function_arg_info instead of a mode, type and named flag.
11267         (s390_call_saved_register_used): Update call accordingly.
11268         * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
11269         instead of a mode, type and named flag.
11270         * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
11271         * config/spu/spu.c (spu_pass_by_reference): Likewise.
11272         * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
11273         * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
11274         * config/v850/v850.c (v850_pass_by_reference): Likewise.
11275         * config/visium/visium.c (visium_pass_by_reference): Likewise.
11277 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
11279         * target.def (arg_partial_bytes): Take a function_arg_info instead
11280         of a mode, type and named flag.
11281         * doc/tm.texi: Regenerate.
11282         * target.h (function_arg_info): Declare.
11283         * calls.h (function_arg_info): New class.
11284         * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
11285         (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
11286         * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
11287         (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
11288         * calls.c (initialize_argument_information): Update call to
11289         targetm.calls.partial_bytes.
11290         (emit_library_call_value_1): Likewise.
11291         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11292         * function.c (assign_parm_find_entry_rtl): Likewise.
11293         * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
11294         function_arg_info instead of a mode, type and named flag.
11295         * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
11296         * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
11297         (cmse_func_args_or_return_in_stack): Update accordingly.
11298         * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
11299         function_arg_info instead of a mode, type and named flag.
11300         * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
11301         * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
11302         * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
11303         * config/fr30/fr30.c: Include calls.h.
11304         (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
11305         type and named flag.
11306         * config/frv/frv.c: Include calls.h.
11307         (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
11308         type and named flag.
11309         * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
11310         * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
11311         * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
11312         * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
11313         * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
11314         * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
11315         * config/microblaze/microblaze.c (function_arg_partial_bytes):
11316         Likewise.
11317         * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
11318         * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
11319         * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
11320         * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
11321         * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
11322         * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
11323         * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
11324         * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
11325         * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
11326         * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
11327         * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
11328         (rs6000_parm_needs_stack): Update call accordingly.
11329         * config/sh/sh.c (sh_arg_partial_bytes): Take a
11330         function_arg_info instead of a mode, type and named flag.
11331         * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
11332         * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
11334 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
11336         * calls.h (must_pass_va_arg_in_stack): Declare.
11337         * calls.c (must_pass_va_arg_in_stack): New function.
11338         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
11339         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
11340         * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
11341         Likewise.
11342         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
11344 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
11346         * calls.h (pass_va_arg_by_reference): Declare.
11347         * calls.c (pass_va_arg_by_reference): New function.
11348         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
11349         * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
11350         * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
11351         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
11352         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
11353         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
11354         (mips_gimplify_va_arg_expr): Likewise.
11355         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
11356         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
11357         * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
11358         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
11359         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
11360         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
11361         * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
11362         * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
11363         * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
11364         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
11365         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
11367 2019-08-20  Richard Biener  <rguenther@suse.de>
11369         PR target/91498
11370         * config/i386/i386-features.c (general_scalar_chain::convert_op):
11371         Use (vec_merge (vec_duplicate..)) style vector from scalar move.
11372         (convert_scalars_to_vector): Add timode_p parameter and use it
11373         to guard TImode-only operation.
11374         (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
11375         (pass_stv::execute): Pass down timode_p.
11377 2019-08-20  Lili Cui  <lili.cui@intel.com>
11379         * common/config/i386/i386-common.c
11380         (processor_names): Add tigerlake and cooperlake.
11381         (processor_alias_table): Add tigerlake and cooperlake.
11382         * config.gcc: Add -march=tigerlake and cooperlake.
11383         * config/i386/driver-i386.c
11384         (host_detect_local_cpu): Detect tigerlake and cooperlake.
11385         Add "has_avx" to classify processor.
11386         * config/i386/i386-builtins.c (processor_model) :
11387         Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
11388         (arch_names_table): Add tigerlake and cooperlake.
11389         (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
11390         and PROCESSOR_COOPERLAKE.
11391         * config/i386/i386-c.c
11392         (ix86_target_macros_internal): Handle tigerlake and cooperlake.
11393         * config/i386/i386-options.c
11394         (m_TIGERLAKE): Define.
11395         (m_COOPERLAKE): Ditto.
11396         (m_CORE_AVX512): Ditto.
11397         (processor_cost_table): Add cascadelake.
11398         (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
11399         * config/i386/i386.h
11400         (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
11401         (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
11402         (PTA_MOVDIRI): Ditto.
11403         (PTA_MOVDIR64B): Ditto.
11404         (PTA_COOPERLAKE): Ditto.
11405         (PTA_TIGERLAKE): Ditto.
11406         (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
11407         * doc/extend.texi: Add tigerlake and cooperlake.
11408         * doc/invoke.texi: Add tigerlake and cooperlake.
11410 2019-08-20  Gerald Pfeifer  <gerald@pfeifer.com>
11412         * doc/install.texi (Specific, alpha): Remove note to use
11413         binutils 2.11.2 or later.
11415 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11417         PR middle-end/89544
11418         * function.c (assign_parm_find_stack_rtl): Use larger alignment
11419         when possible.
11421 2019-08-19  Joel Hutton  <Joel.Hutton@arm.com>
11423         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
11424         * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
11425         * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
11426         (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
11427         * config/aarch64/constraints.md (Dt): New constraint
11428         * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
11430 2019-08-19  Richard Biener  <rguenther@suse.de>
11432         PR tree-optimization/91403
11433         * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
11434         cases we can handle with tail-recursion...
11435         (follow_ssa_edge_expr): ... here.  Do so.
11437 2019-08-19  Kito Cheng  <kito.cheng@sifive.com>
11439         PR target/91441
11440         * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
11441         implemented for -fsanitize=kernel-address, and merge check logic
11442         with -fsanitize=address.
11444 2019-08-18  Iain Sandoe  <iain@sandoe.co.uk>
11446         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
11447         for cpu and machine.  Factor 64/32b builtins.
11449 2019-08-18  Gerald Pfeifer  <gerald@pfeifer.com>
11451         * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
11452         gone, point to sourceforge.net.
11454 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
11455         
11456         * doc/ux.texi (User Experience Guidelines): Update reference.
11458 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
11459         
11460         * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
11461         not LGPL".
11463 2019-08-16  Eric Botcazou  <ebotcazou@adacore.com>
11465         * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
11466         of NULL.  Add guard for broken VIEW_CONVERT_EXPRs.
11468 2019-08-16  Martin Sebor  <msebor@redhat.com>
11470         * tree.def (TYPE_SIZE): Clarify.
11471         * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
11473 2019-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11475         PR tree-optimization/91109
11476         * lra-int.h (lra_need_for_scratch_reg_p): Declare.
11477         * lra.c (lra): Use lra_need_for_scratch_reg_p.
11478         * lra-spills.c (lra_need_for_scratch_reg_p): New function.
11480 2019-08-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
11482         * config/i386/mmx.md (mmxdoublemode): New mode attribute.
11483         (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
11484         mmx_uavgv4hi3 using MMXMODE12 mode iterator.
11485         (uavg<mode>3_ceil): New expander.
11486         * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
11487         mode iterator when creating CONST1_RTX.
11488         (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
11489         (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
11490         mode iterator for const1_operand predicate.
11492 2019-08-16  Richard Biener  <rguenther@suse.de>
11494         * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
11495         (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
11496         follow_ssa_edge.
11497         (follow_ssa_edge_in_condition_phi_branch): Likewise.
11498         (analyze_evolution_in_loop): Likewise.
11499         (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
11500         (follow_ssa_edge_expr): ... here.  Refactor code.
11502 2019-08-16  Richard Biener  <rguenther@suse.de>
11504         PR target/91469
11505         * config/i386/i386-features.c
11506         (general_scalar_chain::replace_with_subreg): Stop at memory operands.
11508 2019-08-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11510         PR other/91255
11511         * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
11512         only if subst_name matches curr_attr string.
11514 2019-08-16  Richard Biener  <rguenther@suse.de>
11516         * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
11517         stmt at gsi_p, instead replace it with a NOP removed later.
11518         (pass_forwprop::execute): Fully propagate lattice, DCE stmts
11519         that became dead because of that.
11521 2019-08-16  Aldy Hernandez  <aldyh@redhat.com>
11523         * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
11524         for which we can't represent a range.
11525         * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
11526         set_varying.
11527         * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
11528         Set VR_UNDEFINED if type is not supported.
11529         * tree-ssanames.c (get_range_info): Pass type to set_varying.
11530         * tree-vrp.c (value_range_base::check): Assert that a varying has
11531         min/max set.
11532         (value_range_base::equal_p): Early bail for undefines.
11533         (value_range_base::set_varying): Accept a type.
11534         (value_range::set_varying): Same.
11535         (value_range_base::type): VARYING can have a type, while UNDEFINE
11536         is typeless.
11537         (value_range_base::dump): Print type for VARYING nodes.
11538         (value_range_base::set): Add type to VARYING.
11539         (extract_range_from_multiplicative_op): Pass type to set_varying.
11540         (extract_range_from_binary_expr): Same.
11541         (value_range_base::intersect_helper): Same.
11542         (value_range_base::union_helper): Same.
11543         (value_range_base::normalize_symbolics): Same.
11544         (determine_value_range_1): Same.
11545         * tree-vrp.h (class value_range_base): Add type to set_varying.
11546         Add prototype for dump(void).
11547         Add prototype for supports_type_p.
11548         (class value_range): Add type to set_varying.
11549         Add prototype for dump(void).
11550         * vr-values.c (set_value_range_to_truthvalue): Pass type to
11551         set_varying.
11552         (vr_values::get_lattice_entry): Set varying even if propagation
11553         finished.
11554         Pass type to set_varying.
11555         (vr_values::get_value_range): Remove vr_const_varying.
11556         Reallocate the lattice if needed.
11557         (vr_values::update_value_range): Pass type to set_varying.
11558         (vr_values::extract_range_for_var_from_comparison_expr): Same.
11559         (vr_values::extract_range_from_binary_expr): Same.
11560         (vr_values::extract_range_from_unary_expr): Same.
11561         (vr_values::extract_range_from_cond_expr): Same.
11562         (vr_values::check_for_binary_op_overflow): Same.
11563         (vr_values::extract_range_basic): Same.
11564         (vr_values::extract_range_from_assignment): Same.
11565         (vr_values::vr_values): Increase size of num_vr_values.
11566         (vr_values::extract_range_from_phi_node): Pass type to
11567         set_varying.
11569 2019-08-15  H.J. Lu  <hongjiu.lu@intel.com>
11571         PR target/90878
11572         * config/i386/i386.c (inline_memory_move_cost): Use hard_register
11573         for costs of hard register moves.
11574         (ix86_register_move_cost): Likewise.
11575         * config/i386/i386.h (processor_costs): Move costs of hard
11576         register moves to hard_register.  Add int_load, int_store,
11577         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
11578         sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
11579         for costs of RTL expressions.
11580         * config/i386/x86-tune-costs.h: Move costs of hard register
11581         moves to hard_register.  Duplicate int_load, int_store,
11582         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
11583         sse_load, sse_store for costs of RTL expressions.
11585 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11587         * target.def (setup_incoming_vararg_bounds): Remove.
11588         * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
11589         * doc/tm.texi: Regenerate.
11590         * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
11591         * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
11592         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
11593         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
11595 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
11597         MSP430: Fix lines over 80 characters long in
11598         config/msp430/*.{c,h} files
11600         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
11601         specifier in string.
11602         (msp430_select_hwmult_lib): Split line more than 80 characters long.
11603         * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
11604         redundant old comment.
11605         * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
11606         Split line more than 80 characters long.
11607         * config/msp430/msp430.c (msp430_option_override): Likewise.
11608         (msp430_return_in_memory): Likewise.
11609         (msp430_gimplify_va_arg_expr): Likewise.
11610         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
11611         (msp430_legitimate_constant): Likewise.
11612         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
11613         (msp430_attr): Likewise.
11614         (msp430_data_attr): Likewise.
11615         (msp430_start_function): Likewise.
11616         (gen_prefix): Likewise.
11617         (msp430_init_sections): Likewise.
11618         (msp430_select_section): Likewise.
11619         (msp430_function_section): Likewise.
11620         (msp430_unique_section): Likewise.
11621         (msp430_output_aligned_decl_common): Likewise.
11622         (msp430_do_not_relax_short_jumps): Likewise.
11623         (msp430_init_builtins): Likewise.
11624         (msp430_expand_delay_cycles): Likewise.
11625         (msp430_expand_prologue): Likewise.
11626         (msp430_expand_epilogue): Likewise.
11627         (msp430_expand_helper): Likewise.
11628         (msp430_split_movsi): Likewise.
11629         (msp430_print_operand): Likewise.
11630         (msp430_return_addr_rtx): Likewise.
11631         (msp430x_extendhisi): Likewise.
11632         * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
11633         (ASM_SPEC): Likewise.
11634         Remove very obvious comments.
11635         (LIB_SPEC): Split line more than 80 characters long.
11636         (EH_RETURN_HANDLER_RTX): Likewise.
11637         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11639 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
11641         MSP430: Fix whitespace errors and incorrect indentation in
11642         config/msp430/*.{c,h} files
11644         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
11645         (msp430_select_hwmult_lib): Likewise.
11646         * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
11647         (msp430_extract_mcu_data): Likewise.
11648         (struct t_msp430_mcu_data): Likewise.
11649         * config/msp430/msp430.c (struct machine_function): Remove whitespace
11650         before left square bracket.
11651         (msp430_option_override): Fix indentation.
11652         (msp430_hard_regno_nregs_with_padding): Likewise.
11653         (msp430_initial_elimination_offset): Likewise.
11654         (msp430_special_register_convention_p): Remove whitespace before left
11655         square bracket and after exclamation mark.
11656         (msp430_evaluate_arg): Likewise.
11657         (msp430_callee_copies): Fix indentation.
11658         (msp430_gimplify_va_arg_expr): Likewise.
11659         (msp430_function_arg_advance): Remove whitespace before left square
11660         bracket.
11661         (reg_ok_for_addr): Likewise.
11662         (msp430_preserve_reg_p): Likewise.
11663         (msp430_compute_frame_info): Likewise.
11664         (msp430_asm_output_addr_const_extra): Add space between function name
11665         and open parenthesis.
11666         (has_section_name): Fix indentation.
11667         (msp430_attr): Remove trailing whitespace.
11668         (msp430_section_attr): Likewise.
11669         (msp430_data_attr): Likewise.
11670         (struct msp430_attribute_table): Fix comment and whitespace.
11671         (msp430_start_function): Remove whitespace before left square bracket.
11672         Add space between function name and open parenthesis.
11673         (msp430_select_section): Remove trailing whitespace.
11674         (msp430_section_type_flags): Remove trailing whitespace.
11675         (msp430_unique_section): Remove space before closing parenthesis.
11676         (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
11677         (msp430_builtins): Remove whitespace before left square bracket.
11678         (msp430_init_builtins): Fix indentation.
11679         (msp430_expand_prologue): Remove whitespace before left square bracket.
11680         Remove space before closing parenthesis.
11681         (msp430_expand_epilogue): Remove whitespace before left square bracket.
11682         (msp430_split_movsi): Remove space before closing parenthesis.
11683         (helper_function_name_mappings): Fix indentation.
11684         (msp430_use_f5_series_hwmult): Fix whitespace.
11685         (use_32bit_hwmult): Likewise.
11686         (msp430_no_hwmult): Likewise.
11687         (msp430_output_labelref): Remove whitespace before left square bracket.
11688         (msp430_print_operand_raw): Likewise.
11689         (msp430_print_operand_addr): Likewise.
11690         (msp430_print_operand): Add two spaces after '.' in comment.
11691         Fix trailing whitespace.
11692         (msp430x_extendhisi): Fix indentation.
11693         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
11694         tab.
11695         (PC_REGNUM): Likewise.
11696         (STACK_POINTER_REGNUM): Likewise.
11697         (CC_REGNUM): Likewise.
11699 2019-08-15  Richard Biener  <rguenther@suse.de>
11701         PR target/91454
11702         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
11703         helper.
11704         (general_scalar_chain::make_vector_copies): Use it.
11706 2019-08-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11708         * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
11710 2019-08-15  Martin Liska  <mliska@suse.cz>
11712         * tree-ssa-dce.c (propagate_necessity): We can't reach now
11713         operators with no arguments.
11714         (eliminate_unnecessary_stmts): Likewise here.
11716 2019-08-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
11718         * config/i386/i386-features.c (general_scalar_chain::convert_insn)
11719         <case COMPARE>: Revert 2019-08-14 change.
11720         (convertible_comparison_p): Revert 2019-08-14 change.  Return false
11721         for (TARGET_64BIT || mode != DImode).
11723 2019-08-15  Aldy Hernandez  <aldyh@redhat.com>
11725         * tree-vrp.c (value_range_base::set): Merge in code from
11726         value_range_base::set_and_canonicalize.
11727         Enforce canonicalization at set time.
11728         Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
11729         (value_range_base::set_undefined): Inline call to set().
11730         (value_range_base::set_varying): Same.
11731         (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
11732         (vrp_val_max): New argument handle_pointers.
11733         (vrp_val_min): Same.
11734         (ranges_from_anti_range): Same.
11735         (extract_range_into_wide_ints): Use tree argument instead of sign
11736         and precision.
11737         (extract_range_from_multiplicative_op): Take in tree type instead
11738         of precision and sign.  Adapt function for canonicalized ranges.
11739         (extract_range_from_binary_expr): Pass type to
11740         extract_range_from_multiplicative_op.
11741         Adapt for canonicalized ranges.
11742         (extract_range_from_unary_expr): Same.
11743         (value_range_base::intersect_helper): Adjust for canonicalized
11744         ranges.
11745         (value_range_base::union_helper): Same.
11746         (value_range_base::normalize_symbolics): New.
11747         * tree-vrp.h (class value_range_base): Remove
11748         set_and_canonicalize.
11749         New prototype for normalize_symbolics.
11750         (class value_range): Remove set_and_canonicalize.
11751         (vrp_val_min): Adjust prototype.
11752         (vrp_val_max): Same.
11753         * vr-values.c
11754         (vr_values::extract_range_for_var_from_comparison_expr):  Call set
11755         instead of set_and_canonicalize.
11757 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11759         PR middle-end/91444
11760         * tree-vect-stmts.c (vectorizable_call): Check that the function
11761         is a BUILT_IN_MD function before passing it to
11762         targetm.vectorize.builtin_md_vectorized_function.
11764 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11766         * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
11767         * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
11768         (aarch64_select_early_remat_modes): Use it.
11770 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11772         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
11773         16 for SVE predicates even if they are fixed-length.
11775 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11777         * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
11778         operand order match the MOV /Z alias.
11780 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11782         * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
11783         the vector pattern as an aarch64_svpattern argument.  Update the
11784         overloaded caller accordingly.
11785         (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
11786         (aarch64_output_sve_vector_inc_dec): Likewise.
11788 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11790         * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
11791         multiplication case, try to compute VG * (lowest set bit) directly
11792         rather than always basing the multiplication on VG.  Use
11793         expand_mult for the multiplication if we can.
11795 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11797         * config/aarch64/aarch64-protos.h
11798         (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
11799         (aarch64_sve_inc_dec_immediate_p): Rename to...
11800         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
11801         (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
11802         (aarch64_output_sve_scalar_inc_dec): Declare.
11803         (aarch64_output_sve_inc_dec_immediate): Rename to...
11804         (aarch64_output_sve_vector_inc_dec): ...this.
11805         * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
11806         (aarch64_output_sve_scalar_inc_dec): New functions.
11807         (aarch64_output_sve_addvl_addpl): Remove the base and offset
11808         arguments.  Only handle true ADDVL and ADDPL instructions;
11809         don't emit an INC or DEC.
11810         (aarch64_sve_inc_dec_immediate_p): Rename to...
11811         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
11812         (aarch64_output_sve_inc_dec_immediate): Rename to...
11813         (aarch64_output_sve_vector_inc_dec): ...this.  Update call to
11814         aarch64_sve_vector_inc_dec_immediate_p.
11815         * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
11816         (aarch64_sve_plus_immediate): New predicates.
11817         (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
11818         rather than aarch64_sve_addvl_addpl_immediate.
11819         (aarch64_sve_inc_dec_immediate): Rename to...
11820         (aarch64_sve_vector_inc_dec_immediate): ...this.  Update call to
11821         aarch64_sve_vector_inc_dec_immediate_p.
11822         (aarch64_sve_add_operand): Update accordingly.
11823         * config/aarch64/constraints.md (Uai): New constraint.
11824         (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
11825         * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
11826         operand into a register if it satisfies aarch64_sve_plus_immediate.
11827         (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
11828         for Uai.  Update calls to aarch64_output_sve_addvl_addpl.
11829         * config/aarch64/aarch64-sve.md (add<mode>3): Call
11830         aarch64_output_sve_vector_inc_dec instead of
11831         aarch64_output_sve_inc_dec_immediate.
11833 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11835         * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
11836         (UNSPEC_REVW): New constants.
11837         (elem_bits): New mode attribute.
11838         (SVE_INT_UNARY): New int iterator.
11839         (optab): Handle UNSPEC_REV[BHW].
11840         (sve_int_op): New int attribute.
11841         (min_elem_bits): Handle VNx16QI and the predicate modes.
11842         * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
11843         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
11844         (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
11845         * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
11846         (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
11847         (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
11848         unspecs based on the total width of the reversed data.
11849         (aarch64_evpc_rev_local): Likewise (for SVE only).  Use a
11850         reinterpret followed by a subreg on big-endian targets.
11852 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11853             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
11855         * config/aarch64/aarch64-sve.md
11856         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
11857         alternatives in which one of the inputs is in the same register
11858         as the output.
11860 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11862         * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
11863         (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
11865 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11867         * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
11868         FADD and FSUB alternatives.  Add a MOVPRFX alternative for FSUBR.
11870 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11871             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
11873         * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
11874         (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
11875         (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
11877 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11878             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11880         * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
11881         Add an alternative that uses reversed shifts.
11883 2019-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11885         * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
11886         struct.
11888 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11890         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
11891         a commutativity marker.
11893 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11894             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
11896         * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
11897         (aarch64_prepare_sve_cond_int_fma): Declare.
11898         * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
11899         (aarch64_prepare_sve_int_fma): New functions.
11900         (aarch64_prepare_sve_cond_int_fma): Likewise.
11901         * config/aarch64/aarch64-sve.md
11902         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
11903         (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
11904         (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
11905         (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
11906         (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
11907         (*madd<mode>): Rename to...
11908         (*fma<mode>4): ...this.
11909         (*msub<mode>): Rename to...
11910         (*fnma<mode>4): ...this.
11912 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11913             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
11915         * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
11916         Print 2.0 naturally.
11917         (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
11918         * config/aarch64/predicates.md
11919         (aarch64_sve_float_negated_arith_immediate): New predicate,
11920         renamed from aarch64_sve_float_arith_with_sub_immediate.
11921         (aarch64_sve_float_arith_with_sub_immediate): Test for both
11922         positive and negative constants.
11923         (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
11924         or an aarch64_sve_float_arith_with_sub_immediate.
11925         * config/aarch64/constraints.md (vsN): Use
11926         aarch64_sve_float_negated_arith_immediate.
11927         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
11928         iterator.
11929         (sve_pred_fp_rhs2_immediate): New int attribute.
11930         * config/aarch64/aarch64-sve.md
11931         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
11932         sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
11933         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
11934         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
11935         (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
11936         (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
11938 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11939             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
11941         * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
11942         (*aarch64_cond_abd<SVE_F:mode>_3)
11943         (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
11945 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11946             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
11948         * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
11949         (*aarch64_cond_<su>abd<mode>_any): New patterns.
11951 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
11952             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11954         * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
11955         * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
11956         * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
11957         * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
11958         optabs.
11959         * optabs.h (create_convert_operand_from): Expand comment.
11960         * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
11961         when mapping scalar rtxes to vector operands.
11962         * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
11963         ashiftrt and lshiftrt.
11964         (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
11965         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
11966         (*cond_<optab><mode>_any_const): New patterns.
11968 2019-08-15  Martin Liska  <mliska@suse.cz>
11970         PR ipa/91438
11971         * cgraph.c (cgraph_node::remove): When setting
11972         n->origin = NULL for all nested functions, reset
11973         also next_nested.
11975 2019-08-15  Martin Liska  <mliska@suse.cz>
11977         * cgraph.c (cgraph_node::verify_node): Verify origin, nested
11978         and next_nested.
11980 2019-08-15  Martin Liska  <mliska@suse.cz>
11982         PR ipa/91404
11983         * passes.c (order): Remove.
11984         (uid_hash_t): Likewise).
11985         (remove_cgraph_node_from_order): Remove from set
11986         of pointers (cgraph_node *).
11987         (insert_cgraph_node_to_order): New.
11988         (duplicate_cgraph_node_to_order): New.
11989         (do_per_function_toporder): Register all 3 cgraph hooks.
11990         Skip removed_nodes now as we know about all of them.
11992 2019-08-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
11994         * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
11995         <case E_V8QImode>: Use vector_set path for
11996         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
11997         (ix86_expand_vector_init_one_var) <case E_V8QImode>:
11998         Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
12000 2019-08-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12002         * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
12004 2019-08-14  Martin Sebor  <msebor@redhat.com>
12006         PR tree-optimization/91294
12007         * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
12008         source length as exact.
12010 2019-08-14  Christophe Lyon  <christophe.lyon@linaro.org>
12012         * doc/extend.texi: Add "noinit" attribute documentation.
12013         * doc/sourcebuild.texi: Add noinit effective target documentation.
12014         * varasm.c (default_section_type_flags): Add support for "noinit"
12015         section.
12016         (default_elf_select_section): Add support for "noinit" attribute.
12017         * config/msp430/msp430.c (msp430_attribute_table): Remove
12018         "noinit" entry.
12020 2019-08-14  Richard Biener  <rguenther@suse.de>
12021             UroÅ¡ Bizjak  <ubizjak@gmail.com>
12023         PR target/91154
12024         * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
12025         mode arguments.
12026         (scalar_chain::smode): New member.
12027         (scalar_chain::vmode): Likewise.
12028         (dimode_scalar_chain): Rename to...
12029         (general_scalar_chain): ... this.
12030         (general_scalar_chain::general_scalar_chain): Take mode arguments.
12031         (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
12032         base with TImode and V1TImode.
12033         * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
12034         (general_scalar_chain::vector_const_cost): Adjust for SImode
12035         chains.
12036         (general_scalar_chain::compute_convert_gain): Likewise.  Add
12037         {S,U}{MIN,MAX} support.
12038         (general_scalar_chain::replace_with_subreg): Use vmode/smode.
12039         (general_scalar_chain::make_vector_copies): Likewise.  Handle
12040         non-DImode chains appropriately.
12041         (general_scalar_chain::convert_reg): Likewise.
12042         (general_scalar_chain::convert_op): Likewise.
12043         (general_scalar_chain::convert_insn): Likewise.  Add
12044         fatal_insn_not_found if the result is not recognized.
12045         (convertible_comparison_p): Pass in the scalar mode and use that.
12046         (general_scalar_to_vector_candidate_p): Likewise.  Rename from
12047         dimode_scalar_to_vector_candidate_p.  Add {S,U}{MIN,MAX} support.
12048         (scalar_to_vector_candidate_p): Remove by inlining into single
12049         caller.
12050         (general_remove_non_convertible_regs): Rename from
12051         dimode_remove_non_convertible_regs.
12052         (remove_non_convertible_regs): Remove by inlining into single caller.
12053         (convert_scalars_to_vector): Handle SImode and DImode chains
12054         in addition to TImode chains.
12055         * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
12056         (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
12057         (*<maxmin>di3_doubleword): Likewise.
12059 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12060             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
12062         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
12063         (*cond_bic<mode>_any): New patterns.
12065 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12067         * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
12068         take the equivalent mask, as well as a bit count.
12069         * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
12070         (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
12071         (aarch64_sve_pred_and_operand): New predicates.
12072         * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
12073         code attribute.
12074         * config/aarch64/aarch64-sve.md
12075         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
12076         (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
12078 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12080         * config/aarch64/aarch64-sve.md
12081         (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
12082         (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
12083         New patterns.
12085 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12086             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
12088         * config/aarch64/aarch64-sve.md
12089         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
12090         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
12092 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12093             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
12095         * config/aarch64/aarch64-sve.md
12096         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
12097         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
12099 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12101         * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
12102         * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
12103         New pattern.
12105 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12106             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
12108         * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
12110 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12111             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
12113         * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
12114         (aarch64_print_vector_float_operand): Also handle 8-bit floats.
12115         (aarch64_print_operand): Add support for %I.
12116         (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
12117         Bitcast floating-point constants to the corresponding integer constant.
12118         (aarch64_float_const_representable_p): Handle vectors as well
12119         as scalars.
12120         (aarch64_expand_sve_vcond): Make sure that the operands are valid
12121         for the new vcond_mask_<mode><vpred> expander.
12122         * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
12123         test aarch64_float_const_representable_p.
12124         (aarch64_sve_reg_or_dup_imm): New predicate.
12125         * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
12126         gen_vcond_mask_<mode><vpred> instead of
12127         gen_aarch64_sve_dup<mode>_const.
12128         (vcond_mask_<mode><vpred>): Turn into a define_expand that
12129         accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
12130         for operands 1 and 2 respectively.  Force operand 2 into a
12131         register if operand 1 is a register.  Fold old define_insn...
12132         (aarch64_sve_dup<mode>_const): ...and this define_insn...
12133         (*vcond_mask_<mode><vpred>): ...into this new pattern.  Handle
12134         floating-point constants that can be moved as integers.  Add
12135         alternatives for MOV /M and FMOV /M.
12136         (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
12137         (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
12138         1 and 2 respectively.
12139         * config/aarch64/constraints.md (Ufc): Handle vectors as well
12140         as scalars.
12141         (vss): New constraint.
12143 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12145         * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
12146         (aarch64_sve_float_maxmin_operand): New predicates.
12147         * config/aarch64/constraints.md (vsB): New constraint.
12148         (vsM): Fix typo.
12149         * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
12150         aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
12151         UNSPEC_COND_FMINNM.
12152         * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
12153         Use aarch64_sve_float_maxmin_operand for operand 2.
12154         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
12155         Add alternatives for the constant forms.
12157 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12159         * config/aarch64/constraints.md (vsb): New constraint.
12160         (vsm): Generalize description.
12161         * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
12162         iterator.
12163         (sve_imm_con): Handle smax, smin, umax and umin.
12164         (sve_imm_prefix): New code attribute.
12165         * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
12166         (aarch64_sve_vsb_operand): New predicates.
12167         (aarch64_sve_mul_immediate): Rename to...
12168         (aarch64_sve_vsm_immediate): ...this.
12169         (aarch64_sve_mul_operand): Rename to...
12170         (aarch64_sve_vsm_operand): ...this.
12171         * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
12172         (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
12173         (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
12174         (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
12175         (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
12176         add movprfx support for the immediate alternatives.
12177         (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
12178         of the above.
12179         (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
12180         for operand 3.
12182 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12184         * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
12185         * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
12186         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
12188 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12190         * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
12191         (optab, sve_int_op): Handle them.
12192         * config/aarch64/aarch64-sve.md: Expand comment.
12194 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12196         * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
12197         * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
12198         (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
12200 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12202         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
12203         (aarch64_expand_sve_const_pred_trn): New functions.
12204         (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
12205         use the above functions when the parameter is true.
12206         (aarch64_expand_sve_const_pred): Update call accordingly.
12207         * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
12208         Rename to...
12209         (@aarch64_sve_<perm_insn><mode>): ...this.
12211 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12213         * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
12214         Declare.
12215         * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
12216         (aarch64_sve_emit_int_cmp): New functions.
12217         (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
12218         (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
12219         (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
12220         * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
12221         (UNSPEC_PRED_Z): New unspec.
12222         (set_clobber_cc_nzc): Delete.
12223         * config/aarch64/aarch64-sve.md: Add a block comment about
12224         UNSPEC_PRED_Z.
12225         (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
12226         (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
12227         the old pattern with that name.  Use UNSPEC_PRED_Z instead of
12228         UNSPEC_MERGE_PTRUE.
12229         (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
12230         UNSPEC_MERGE_PTRUE.  Use aarch64_sve_same_pred_for_ptest_p to
12231         check for compatible predicates.
12232         (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
12233         (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
12234         of UNSPEC_MERGE_PTRUE.  Split into the new form of predicated
12235         comparisons above.
12237 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12239         * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
12240         * config/aarch64/aarch64-sve.md: Add a section describing it.
12241         (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
12242         (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
12243         (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
12244         (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
12245         (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
12246         (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
12247         (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
12248         (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
12249         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
12250         UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
12251         * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
12252         (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
12253         * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
12254         (aarch64_evpc_rev_local): Update accordingly.
12256 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12258         * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
12259         iterators.
12260         (SVE_BHSI, SVE_SDI): Tweak comment.
12261         (SVE_HSDI): Likewise.  Fix definition.
12262         (SVE_SDF): New mode iterator.
12263         (elem_bits): New mode attribute.
12264         (SVE_COND_FCVT): New int iterator.
12265         * config/aarch64/aarch64-sve.md
12266         (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
12267         (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
12268         (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
12269         (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
12270         (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
12271         ...these new patterns.
12272         (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
12273         (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
12274         (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
12275         Merge into...
12276         (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
12277         (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
12278         ...these new patterns.
12279         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
12280         (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
12281         (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
12282         ...this new pattern.
12283         (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
12284         (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
12285         ...this new pattern.
12286         (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
12288 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12290         * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
12291         * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
12292         (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
12293         unspecs.
12294         (optab, su): Handle them.
12295         (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
12296         * config/aarch64/aarch64-sve.md
12297         (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
12298         (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
12299         (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
12300         (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
12301         (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
12302         (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
12303         (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
12304         (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
12305         (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
12306         FIXUORS.
12307         (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
12308         (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
12309         (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
12310         (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
12311         (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
12312         (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
12313         (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
12314         (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
12315         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
12316         operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
12317         (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
12318         (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
12319         of UNSPEC_FLOAT_CONVERT.
12320         (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
12321         aarch64_sve_extend<mode><Vwide>2.
12323 2019-08-14  Richard Biener  <rguenther@suse.de>
12325         PR target/91154
12326         * config/i386/i386-features.c
12327         (dimode_scalar_chain::compute_convert_gain): Compute and dump
12328         individual instruction gain.  Fix reg-reg copy GRP cost.  Use
12329         ix86_cost->sse_op for vector instruction costs.
12331 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12333         * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
12334         (cmp_op): Handle it.
12335         (SVE_COND_FP_CMP): Rename to...
12336         (SVE_COND_FP_CMP_I0): ...this.
12337         (SVE_FP_CMP): Remove.
12338         * config/aarch64/aarch64-sve.md
12339         (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
12340         (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
12341         using unspecs to represent the comparison.
12342         (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
12343         (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
12344         accordingly.
12345         * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
12346         (aarch64_unspec_cond_code): Move after integer code.  Handle
12347         UNORDERED.
12348         (aarch64_emit_sve_predicated_cond): Replace with...
12349         (aarch64_emit_sve_fp_cond): ...this new function.
12350         (aarch64_emit_sve_or_conds): Replace with...
12351         (aarch64_emit_sve_or_fp_conds): ...this new function.
12352         (aarch64_emit_sve_inverted_cond): Replace with...
12353         (aarch64_emit_sve_invert_fp_cond): ...this new function.
12354         (aarch64_expand_sve_vec_cmp_float): Update accordingly.
12356 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12358         * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
12359         (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
12360         * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
12361         SVE_HSD instead of SVE_SD.
12363 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12364             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
12366         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
12367         iterator.
12368         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
12369         attributes.
12370         * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
12371         (mul<SVE_F:mode>3, div<SVE_F:mode>3)
12372         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
12373         (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
12374         (*div<SVE_F:mode>3): Generalize to...
12375         (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
12377 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12378             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
12380         * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
12381         constants.
12382         * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
12383         predicate.
12384         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
12385         Declare.
12386         * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
12387         function.
12388         * config/aarch64/aarch64-sve.md: Add a block comment about the
12389         handling of predicated FP operations.
12390         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
12391         (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
12392         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
12393         (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
12394         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
12395         operand.
12396         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
12397         (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
12398         operand.
12399         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
12400         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
12401         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
12402         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
12403         (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
12404         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
12405         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
12406         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
12407         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
12408         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
12409         strictness operands.  Use aarch64_sve_pred_dominates_p to check
12410         whether the predicate on the conditional operation is suitable
12411         for merging.  Split patterns into the canonical equal-predicate form.
12412         (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
12413         Restrict the unpredicated alternatives to SVE_RELAXED_GP.
12415 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12416             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
12418         * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
12419         (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
12420         (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
12421         rtx codes.
12422         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
12423         (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
12424         unspecs.
12426 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12427             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
12429         * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
12430         (*bic<SVE_I:mode>3): ...this.  Match the form that an SVE inverse
12431         actually has, rather than relying on REG_EQUAL notes.
12432         Make the insn operand order match the SVE operand order.
12433         (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
12434         the SVE operand order.
12436 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12438         * config/aarch64/aarch64.c (aarch64_target_reg): New function.
12439         (aarch64_emit_set_immediate): Likewise.
12440         (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
12441         (aarch64_pfalse_reg): Likewise.
12442         (aarch64_convert_sve_data_to_pred): New function.
12443         (aarch64_sve_move_pred_via_while): Take an optional target register
12444         and the required register mode.
12445         (aarch64_expand_sve_const_pred_1): New function.
12446         (aarch64_expand_sve_const_pred): Likewise.
12447         (aarch64_expand_mov_immediate): Build an all-true predicate
12448         if the significant bits of the immediate are all true.  Use
12449         aarch64_expand_sve_const_pred for all compile-time predicate constants.
12450         (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
12451         before register allocation.
12452         * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
12453         a VNx16BI PTRUE when splitting the memory alternative.
12454         (vec_duplicate<mode>): Update accordingly.
12455         (*pred_cmp<cmp_op><mode>): Rename to...
12456         (@aarch64_pred_cmp<cmp_op><mode>): ...this.
12458 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
12460         * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
12461         * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
12462         * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
12463         (UNSPEC_PTEST): New unspec.
12464         (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
12465         * config/aarch64/iterators.md (data_bytes): New mode attribute.
12466         * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
12467         * config/aarch64/aarch64-sve.md: Add a new section describing the
12468         handling of UNSPEC_PTEST.
12469         (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
12470         (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
12471         (ptest_ptrue<mode>): Replace with...
12472         (aarch64_ptest<mode>): ...this new pattern.
12473         (cbranch<mode>4): Update after above changes.
12474         (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
12475         UNSPEC_PTEST_PTRUE.
12476         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
12477         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
12478         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
12480 2019-08-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
12482         PR lto/91287
12483         * builtins.c (builtin_with_linkage_p): New function.
12484         * builtins.h (builtin_with_linkage_p): New function.
12485         * symtab.c (write_symbol): Remove redundant assert.
12486         * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
12487         Remove FIXME and use builtin_with_linkage_p.
12489 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
12491         PR middle-end/91421
12492         * tree-core.h (function_decl::function_code): Change type to
12493         unsigned int.
12494         * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
12495         (DECL_UNCHECKED_FUNCTION_CODE): ...this.
12496         (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
12497         (DECL_FUNCTION_CODE): New function.  Assert that the built-in class
12498         is BUILT_IN_NORMAL.
12499         (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
12500         (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
12501         (fndecl_built_in_p): Change the type of the "name" argument to
12502         unsigned int.
12503         * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
12504         after check for DECL_BUILT_IN_CLASS.
12505         * cgraphclones.c (build_function_decl_skip_args): Use
12506         set_decl_built_in_function.
12507         * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
12508         * ipa-split.c (split_function): Likewise.
12509         * langhooks.c (add_builtin_function_common): Likewise.
12510         * omp-simd-clone.c (simd_clone_create): Likewise.
12511         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
12512         * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
12513         (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
12514         DECL_FUNCTION_CODE.
12515         * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
12516         instead of DECL_FUNCTION_CODE.
12517         * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
12518         instead of DECL_FUNCTION_CODE.
12519         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
12520         * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
12521         printing DECL_BUILT_IN_MD.  Handle DECL_BUILT_IN_FRONTEND.
12522         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
12523         (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
12524         DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
12525         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
12526         * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
12527         (alpha_gimple_fold_builtin): Likewise.
12528         * config/arc/arc.c (arc_expand_builtin): Likewise.
12529         * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
12530         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
12531         * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
12532         * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
12533         * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
12534         * config/frv/frv.c (frv_expand_builtin): Likewise.
12535         * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
12536         (gcn_expand_builtin): Likewise.
12537         * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
12538         (fold_builtin_cpu): Likewise.
12539         * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
12540         * config/i386/i386.c (ix86_fold_builtin): Likewise.
12541         (ix86_gimple_fold_builtin): Likewise.
12542         * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
12543         (ia64_expand_builtin): Likewise.
12544         * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
12545         * config/mips/mips.c (mips_expand_builtin): Likewise.
12546         * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
12547         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
12548         * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
12549         * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
12550         * config/pa/pa.c (pa_expand_builtin): Likewise.
12551         * config/pru/pru.c (pru_expand_builtin): Likewise.
12552         * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
12553         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12554         Likewise.
12555         * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
12556         (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
12557         (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
12558         * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
12559         (rs6000_builtin_reciprocal): Likewise.
12560         * config/rx/rx.c (rx_expand_builtin): Likewise.
12561         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
12562         * config/s390/s390.c (s390_expand_builtin): Likewise.
12563         * config/sh/sh.c (sh_expand_builtin): Likewise.
12564         * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
12565         (sparc_fold_builtin): Likewise.
12566         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
12567         * config/spu/spu.c (spu_expand_builtin): Likewise.
12568         * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
12569         * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
12570         * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
12571         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
12572         (xtensa_expand_builtin): Likewise.
12574 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
12576         PR middle-end/91421
12577         * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
12578         before the DECL_FUNCTION_CODE.
12579         * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
12580         to check for a BUILT_IN_ALLOCA call.
12581         * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
12582         BUILT_IN_UNREACHABLE.  Don't check for a FUNCTION_TYPE.
12583         * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
12584         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
12585         * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
12586         for BUILT_IN_NORMAL functions.
12587         * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
12588         test for BUILT_IN_TM_ABORT.
12589         * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
12590         to check for a BUILT_IN_STACK_RESTORE call.
12591         (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
12592         * tree-ssa-threadedge.c
12593         (record_temporary_equivalences_from_stmts_at_dest): Check for a
12594         BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
12595         * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
12596         test for a BUILT_IN_NORMAL call instead of a negative test for
12597         an internal function call.
12599 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
12601         * tree.h (build_vector_a_then_b): Declare.
12602         * tree.c (build_vector_a_then_b): New function.
12603         * fold-const-call.c (fold_while_ult): Likewise.
12604         (fold_const_call): Use it to handle IFN_WHILE_ULT.
12605         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
12606         (aarch64_svpattern): New enum.
12607         * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
12608         constants through aarch64_expand_mov_immediate.
12609         (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
12610         than general_operand as the predicate for operand 1.
12611         (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
12612         * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
12613         insn_type.
12614         (simd_immediate_info::simd_immediate_info): New overload that
12615         takes a scalar_int_mode and an svpattern.
12616         (simd_immediate_info::u): Add a "pattern" field.
12617         (svpattern_token): New function.
12618         (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
12619         (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
12620         (aarch64_sve_move_pred_via_while): New functions.
12621         (aarch64_expand_mov_immediate): Try using
12622         aarch64_sve_move_pred_via_while for predicates that contain N ones
12623         followed by M zeros but that do not correspond to a VLnnn pattern.
12624         (aarch64_sve_pred_valid_immediate): New function.
12625         (aarch64_simd_valid_immediate): Use it instead of dealing directly
12626         with PTRUE and PFALSE.
12627         (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
12628         forms.
12630 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
12632         * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
12633         flag.
12634         (darwin_override_options): Likewise.
12635         * config/darwin.h: Likewise.
12636         * config/darwin.opt: Likewise.
12637         * config/i386/i386.c (output_pic_addr_const): Likewise.
12638         * config/rs6000/darwin.h: Likewise.
12639         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
12640         * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
12641         ... this TARGET_MACHO_SYMBOL_STUBS.
12642         (FUNCTION_PROFILER):Likewise.
12643         * config/i386/i386.h: Likewise.
12645 2019-08-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12647         * config/i386/i386-expand.c (ix86_expand_vector_extract)
12648         <case E_V2SImode>: Use vec_extr path for
12649         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
12650         <case E_V8QImode>: Ditto.
12651         * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
12652         Use SWI48 mode iterator.  Use %k to output operand 0.
12653         (*mmx_pextrw): New insn pattern.
12654         (*mmx_pextrb): Ditto.
12655         (*mmx_pextrb_zext): Ditto.
12657 2019-08-13  Jonathan Wakely  <jwakely@redhat.com>
12659         * target.def (libc_has_function, libc_has_fast_function): Improve
12660         documentation strings.
12661         * doc/tm.texi: Regenerate.
12663 2019-08-13  Caroline Tice  <cmtice@google.com>
12665         PR other/91396
12666         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
12667         vtv_end.o or vtv_end_preinit.o files if !static.
12669 2019-08-13  Olivier Hainque  <hainque@adacore.com>
12671         * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
12673 2019-08-13  Olivier Hainque  <hainque@adacore.com>
12675         * rtlanal.c (tablejump_casesi_pattern): New function, to
12676         determine if a tablejump insn is a casesi dispatcher. Extracted
12677         from patch_jump_insn.
12678         * rtl.h (tablejump_casesi_pattern): Declare.
12679         * cfgrtl.c (patch_jump_insn): Use it.
12680         * dwarf2cfi.c (create_trace_edges): Use it.
12682 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
12684         PR target/81800
12685         * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
12686         operand is larger than a long int.
12688 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
12690         * machmode.h (opt_mode::else_mode): New function.
12691         (opt_mode::else_blk): Use it.
12692         * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
12693         (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
12694         (aarch64_gen_stepped_int_parallel): Likewise.
12695         (aarch64_stepped_int_parallel_p): Likewise.
12696         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
12697         argument.
12698         * config/aarch64/aarch64.c
12699         (aarch64_expand_sve_widened_duplicate): Delete.
12700         (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
12701         (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
12702         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
12703         argument.  Use early returns in the !CONST_INT_P handling.
12704         Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
12705         than handling some inline.
12706         (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
12707         from...
12708         (aarch64_simd_container_mode): ...here.
12709         (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
12710         (aarch64_sve_ld1rq_operand_p): New functions.
12711         * config/aarch64/predicates.md (descending_int_parallel)
12712         (aarch64_sve_ld1rq_operand): New predicates.
12713         * config/aarch64/constraints.md (UtQ): New constraint.
12714         * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
12715         * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
12716         gen_vec_duplicate from call to aarch64_expand_mov_immediate.
12717         (@aarch64_sve_reinterpret<mode>): New expander.
12718         (*aarch64_sve_reinterpret<mode>): New pattern.
12719         (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
12720         (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
12721         (*sve_ld1rq<Vesize>): Replace with...
12722         (@aarch64_sve_ld1rq<mode>): ...this new pattern.
12724 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
12726         * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
12727         16:12.
12729 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
12731         * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
12732         * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
12733         (msp430_check_path_for_devices): New.
12734         (parse_devices_csv_1): New.
12735         (parse_devices_csv): New.
12736         (msp430_extract_mcu_data): Try to find devices.csv and search for the
12737         MCU data in devices.csv before using the hard-coded data.
12738         Warn if devices.csv isn't found and the MCU wasn't found in the
12739         hard-coded data either.
12740         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
12741         msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
12742         Search for devices.csv on -I and -L paths.
12743         (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
12744         msp430_set_driver_var.
12745         * config/msp430/msp430.opt: Add -mwarn-devices-csv and
12746         -mdevices-csv-loc=.
12747         * doc/invoke.texi (-mmcu): Document that -I and -L paths are
12748         searched for devices.csv.
12749         (mwarn-devices-csv): Document option.
12751 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
12753         * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
12754         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
12755         Use a single Dn alternative instead of separate Dz and Dm
12756         alternatives.  Use aarch64_output_sve_move_immediate.
12757         * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
12758         function.
12759         (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
12760         for predicates too.
12761         (aarch64_output_sve_mov_immediate): Handle predicate modes.
12762         (aarch64_output_ptrue): Delete.
12764 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
12766         * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
12767         INDEX.
12768         (simd_immediate_info::value, simd_immediate_info::step)
12769         (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
12770         with...
12771         (simd_immediate_info::u): ...this new union.
12772         (simd_immediate_info::simd_immediate_info): Update accordingly.
12773         (aarch64_output_simd_mov_immediate): Likewise.
12774         (aarch64_output_sve_mov_immediate): Likewise.
12776 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
12778         * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
12779         extra_gcc_objs.
12780         * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
12781         (msp430_select_cpu): New spec function.
12782         (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
12783         MCU data.
12784         * config/msp430/msp430-devices.c: New file.
12785         * config/msp430/msp430-devices.h: New file.
12786         * config/msp430/msp430.c: Remove msp430_mcu_data.
12787         (msp430_option_override): Use msp430_extract_mcu_data to extract
12788         MCU data.
12789         (msp430_use_f5_series_hwmult): Likewise.
12790         (use_32bit_hwmult): Likewise.
12791         (msp430_no_hwmult): Likewise.
12792         * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
12793         assembler.
12794         (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
12795         and -mcpu option.
12796         (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
12797         * config/msp430/t-msp430: Add rule to build msp430-devices.o.
12798         Remove hard-coded MCU multilib data.
12800 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
12802         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
12803         based on the mode instead of testing properties of it.
12805 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
12807         * doc/md.texi: Document the x and y constraints for AArch64.
12808         * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
12809         (FP_LO8_REGS): New reg_class.
12810         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
12811         * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
12812         (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
12813         * config/aarch64/predicates.md (aarch64_simd_register): Use
12814         FP_REGNUM_P instead of checking the classes manually.
12815         * config/aarch64/constraints.md (y): New constraint.
12817 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
12819         * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
12820         (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
12821         * config/aarch64/aarch64-simd.md
12822         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
12823         (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
12824         from the asm template.
12825         * config/aarch64/aarch64-sve.md
12826         (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
12827         (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
12828         from the asm template.
12829         (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
12830         (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
12831         from the asm template.
12832         * config/aarch64/aarch64-simd-builtins.def: Update comment.
12834 2019-08-13  Martin Liska  <mliska@suse.cz>
12836         * value-prof.c (gimple_ic_transform): Add new line.
12837         Print details with MSG_NOTE.
12839 2019-08-13  Martin Liska  <mliska@suse.cz>
12841         * doc/invoke.texi: Document automatic detection of jobserver.
12842         * lto-wrapper.c (run_gcc): Detect jobserver always.
12844 2019-08-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12846         * config/i386/i386-expand.c (ix86_expand_vector_set)
12847         <case E_V2SImode>: Use vec_merge path for
12848         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
12849         <case E_V8QImode>: Ditto.
12850         * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
12851         (*mmx_pinsrb): Ditto.
12853 2019-08-12  Jakub Jelinek  <jakub@redhat.com>
12855         PR target/83250
12856         PR target/91340
12857         * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
12858         _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
12859         * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
12860         _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
12861         _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
12863 2019-08-12  Richard Biener  <rguenther@suse.de>
12865         PR lto/91375
12866         * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
12867         flag_devirtualize.
12869 2019-08-12  Richard Biener  <rguenther@suse.de>
12871         PR driver/91130
12872         * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
12873         lang_mask option, always use CL_DRIVER.
12874         (get_options_from_collect_gcc_options): Adjust.
12875         (find_and_merge_options): Likewise.
12876         (run_gcc): Likewise.
12878 2019-08-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12880         * ipa-predicate.c (add_condition): Restore inverted test.
12882 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
12884         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
12885         (enum omp_clause_device_type_kind): New enum.
12886         (struct tree_omp_clause): Add subcode.device_type_kind.
12887         * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
12888         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
12889         for device_type clause.
12890         (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
12891         * tree-pretty-print.c (dump_omp_clause): Likewise.
12893         PR target/91408
12894         * config/i386/mmx.md (usadv8qi): Use register_operand instead of
12895         vector_operand.
12897 2019-08-09  Vladimir Makarov  <vmakarov@redhat.com>
12899         * reload1.c (finish_spills): Do not check ira_conflicts_p when
12900         handling spilled pseudos.
12902 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
12904         PR target/91386
12905         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
12906         to preserve the contents of the original insns.
12908 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
12910         * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
12911         (addsi3_compare_op2): Likewise.
12913 2019-08-09  Martin Liska  <mliska@suse.cz>
12915         * alias.c (alias_ptr_types_compatible_p): Strengten
12916         type comparison in LTO mode.
12918 2019-08-09  Richard Sandiford  <richard.sandiford@arm.com>
12920         PR middle-end/90313
12921         * tree-tailcall.c (find_tail_calls): Reject calls that might
12922         read from an escaped RESULT_DECL.
12924 2019-08-09  Martin Liska  <mliska@suse.cz>
12926         * doc/invoke.texi: Document the option value.
12927         * lto-wrapper.c (run_gcc): Set auto_parallel
12928         only with -flto=auto.
12930 2019-08-09  Martin Liska  <mliska@suse.cz>
12932         * opts.c (common_handle_option): Error for an invalid argument
12933         to -flto=.
12935 2019-08-09  Martin Liska  <mliska@suse.cz>
12937         * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
12938         use dump_printf to report optimization.
12939         (sem_variable::merge): Likwise.
12940         (sem_item_optimizer::merge_classes): Use dump_printf to report
12941         ICF hits.
12943 2019-08-09  Martin Liska  <mliska@suse.cz>
12945         * value-prof.c (gimple_divmod_fixed_value_transform):
12946         Use dump_printf_loc.
12947         (gimple_mod_pow2_value_transform): Likewise.
12948         (gimple_mod_subtract_transform): Likewise.
12949         (init_node_map): Likewise.
12950         (gimple_ic_transform): Likewise.
12951         (gimple_stringops_transform): Likewise.
12953 2019-08-08  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
12955         * doc/extend.texi: Add const qualifier to ld intrinsics.
12957 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
12959         * config/rs6000/dfp.md (D64_D128): Rename to ...
12960         (DDTD): ... this, throughout.
12961         (dfp_suffix): Rename to ...
12962         (q): ... this, throughout.
12964 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
12966         * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
12967         (dfp_suffix): Ditto.
12968         (adddd3, addtd3): Merge to ...
12969         (add<mode>3 for D64_D128): ... this.
12970         (subdd3, subtd3): Merge to ...
12971         (sub<mode>3 for D64_D128): ... this.
12972         (muldd3, multd3): Merge to ...
12973         (mul<mode>3 for D64_D128): ... this.
12974         (divdd3, divtd3): Merge to ...
12975         (div<mode>3 for D64_D128): ... this.
12976         (*cmpdd_internal1, *cmptd_internal1): Merge to ...
12977         (*cmp<mode>_internal1 for D64_D128): ... this.
12978         (ftruncdd2, ftrunctd2): Merge to ...
12979         (ftrunc<mode>2 for D64_D128): ... this.
12980         (fixdddi2, fixtddi2): Merge to ...
12981         (fix<mode>di2 for D64_D128): ... this.
12983 2019-08-08  Jim Wilson  <jimw@sifive.com>
12985         PR target/91229
12986         * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
12987         ignore_zero_width_bit_field_p.  Skip zero size bitfields when true.
12988         Pass into recursive call.
12989         (riscv_flatten_aggregate_argument): New arg.  Pass to
12990         riscv_flatten_aggregate_field.
12991         (riscv_pass_aggregate_in_fpr_pair_p): New local warned.  Call
12992         riscv_flatten_aggregate_argument twice, with false and true as last
12993         arg.  Process result twice.  Compare results and warn if different.
12994         (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
12996 2019-08-08  Martin Liska  <mliska@suse.cz>
12998         PR bootstrap/91352
12999         * gcc.c (driver::detect_jobserver): Use is_valid_fd.
13000         * lto-wrapper.c (jobserver_active_p): Likewise.
13002 2019-08-08  Martin Liska  <mliska@suse.cz>
13004         * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
13005         IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
13006         (create_version_clone_with_body): Likewise.
13008 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
13010         * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
13011         for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
13012         (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
13013         GOVD_EXPLICIT flags.
13014         (gimplify_omp_workshare): For OMP_TARGET_DATA move all
13015         OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
13016         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
13017         call install_var_field with mask 11 instead of 3.
13018         (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
13019         (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
13021 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
13023         * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
13024         * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
13026 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
13028         * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
13029         MOVPRFX alternatives.  Make the GPR alternatives more expensive
13030         than the FPR ones.
13032 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
13034         * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
13035         Disparage the GPR alternative relative to the FPR one.
13036         Fix handling of 8-bit and 16-bit FPR values.
13038 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
13040         * config/aarch64/iterators.md (BITWISEV): Delete.
13041         (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
13042         (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
13043         UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
13044         UNSPEC_FMINNMV, UNSPEC_FMINV.
13045         (bit_reduc_op): Delete.
13046         (sve_int_op): New int attribute.
13047         (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
13048         UNSPEC_FMINNMV, UNSPEC_FMINV.
13049         * config/aarch64/aarch64-sve.md
13050         (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
13051         (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
13052         (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
13053         (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
13054         (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
13055         (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
13056         new patterns.
13057         (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
13058         (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
13059         (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
13060         (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
13061         (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
13062         new patterns.
13064 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
13066         * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
13067         (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
13068         (fms<mode>4, *fms<mode>4): Replace with...
13069         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
13070         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
13071         Use unspecs instead of rtx codes.
13072         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
13073         (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
13075 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
13077         * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
13078         int iterator.
13079         (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
13080         * config/aarch64/aarch64-sve.md
13081         (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
13082         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
13083         use a single unspec for the rhs.
13084         (*<su><maxmin><mode>3): Delete.
13085         (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
13087 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
13089         * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
13090         (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
13091         (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
13092         (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
13093         (optab, sve_fp_op): Handle them.
13094         (SVE_FP_UNARY): Delete.
13095         (optab): Remove sqrt entry.
13096         (sve_fp_op): Remove neg, abs and sqrt entries.
13097         (SVE_COND_FP_UNARY): New int iterator.
13098         * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
13099         (*<frint_pattern><mode>2): Delete.
13100         (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
13101         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
13102         (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
13103         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
13105 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
13107         * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
13109 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
13111         * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
13112         (UNSPEC_COND_FADD): ...this.
13113         (UNSPEC_COND_SUB): Rename to...
13114         (UNSPEC_COND_FSUB): ...this.
13115         (UNSPEC_COND_MUL): Rename to...
13116         (UNSPEC_COND_FMUL): ...this.
13117         (UNSPEC_COND_DIV): Rename to...
13118         (UNSPEC_COND_FDIV): ...this.
13119         (UNSPEC_COND_MAX): Rename to...
13120         (UNSPEC_COND_FMAXNM): ...this.
13121         (UNSPEC_COND_MIN): Rename to...
13122         (UNSPEC_COND_FMINNM): ...this.
13123         (UNSPEC_COND_LT): Rename to...
13124         (UNSPEC_COND_FCMLT): ...this.
13125         (UNSPEC_COND_LE): Rename to...
13126         (UNSPEC_COND_FCMLE): ...this.
13127         (UNSPEC_COND_EQ): Rename to...
13128         (UNSPEC_COND_FCMEQ): ...this.
13129         (UNSPEC_COND_NE): Rename to...
13130         (UNSPEC_COND_FCMNE): ...this.
13131         (UNSPEC_COND_GE): Rename to...
13132         (UNSPEC_COND_FCMGE): ...this.
13133         (UNSPEC_COND_GT): Rename to...
13134         (UNSPEC_COND_FCMGT): ...this.
13135         (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
13136         (sve_fp_op_rev): Update accordingly.
13137         * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
13139 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
13141         * config/aarch64/aarch64-sve.md: Reorganize contents and add
13142         banner comments.
13143         * config/aarch64/check-sve-md.awk: New file.
13144         * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
13145         (insn-conditions.md): Depend on it.
13147 2019-08-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13149         PR target/91385
13150         * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
13151         (*negsi2_cmpz_zext): Ditto.
13153 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
13155         * config/aarch64/iterators.md (commutative): Remove.
13157 2019-08-07  Richard Earnshaw  <rearnsha@arm.com>
13159         PR driver/91130
13160         * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
13161         processing COLLECT_GCC_OPTIONS.
13162         (run_gcc): Likewise.
13164 2019-08-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13166         PR tree-optimization/91109
13167         * lra-remat.c (update_scratch_ops): Remove assignment of the
13168         hard register.
13170 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
13172         * data-streamer.h (streamer_write_poly_uint64): Declare.
13173         (streamer_read_poly_uint64): Likewise.
13174         * data-streamer-in.c (streamer_read_poly_uint64): New function.
13175         * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
13176         * ipa-predicate.h (condition::size): Turn into a poly_int64.
13177         (add_condition): Take a poly_int64 size.
13178         * ipa-predicate.c (add_condition): Likewise.
13179         * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
13180         * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
13181         (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
13182         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
13183         condition::size as a poly_int64.
13184         (unmodified_parm_1): Take a poly_int64 size pointer.
13185         (unmodified_parm): Likewise.
13186         (unmodified_parm_or_parm_agg_item): Likewise.
13187         (set_cond_stmt_execution_predicate): Update accordingly.
13188         (set_switch_stmt_execution_predicate): Likewise.
13189         (will_be_nonconstant_expr_predicate): Likewise.
13190         (will_be_nonconstant_predicate): Likewise.
13191         (inline_read_section): Stream condition::size as a poly_int.
13192         (ipa_fn_summary_write): Likewise.
13194 2019-08-07  Martin Liska  <mliska@suse.cz>
13196         * fold-const.c (twoval_comparison_p): Replace int
13197         with bool as a return type.
13198         (simple_operand_p): Likewise.
13199         (operand_equal_p): Replace int with bool as a return type.
13200         * fold-const.h (operand_equal_p): Likewise.
13202 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
13204         * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
13205         OpenMP description.  Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
13206         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
13207         for OMP_CLAUSE_USE_DEVICE_ADDR clause.
13208         (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
13209         * tree-pretty-print.c (dump_omp_clause): Likewise.
13210         * tree-nested.c (convert_nonlocal_omp_clauses,
13211         convert_local_omp_clauses): Likewise.
13212         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
13213         Likewise.
13214         * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
13215         Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
13216         clause with array or reference to array types, no matter what type
13217         except for reference it has.
13219 2019-08-07  Kewen Lin  <linkw@gcc.gnu.org>
13221         * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
13223 2019-08-07  Kito Cheng  <kito.cheng@sifive.com>
13225         * config/riscv/multilib-generator: (canonical_order): Add 'g'.
13226         (arch_canonicalize): Support rv32g and rv64g and fix error
13227         handling.
13229 2019-08-06  Martin Liska  <mliska@suse.cz>
13231         * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
13232         and DECL_IS_OPERATOR_DELETE_P.
13234 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
13236         * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
13237         (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this.  Adjust comment.
13238         * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
13239         new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
13240         (gimplify_omp_for): Don't do C++ random access iterator clause
13241         adjustments on combined constructs from OMP_LOOP.  For OMP_LOOP,
13242         don't predetermine the artificial iterator in case of C++ random
13243         access iterators as lastprivate, but private.  For OMP_LOOP, force
13244         bind expr around simd body and force for_pre_body before the
13245         construct.  Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
13246         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
13247         (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
13248         diff var of C++ random access iterators.  Handle
13249         OMP_CLAUSE_FIRSTPRIVATE.  For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
13250         not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
13251         clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
13252         on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
13253         * omp-low.c (lower_rec_input_clauses): For
13254         OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
13255         variables instead of default constructing them.
13256         (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
13257         instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
13258         is_taskloop_ctx check from the assert to the guarding condition.
13260 2019-08-06  Kito Cheng  <kito.cheng@sifive.com>
13262         * config/riscv/multilib-generator: (canonical_order): New.
13263         (arch_canonicalize): Dito.
13264         Apply arch_canonicalize for alts.
13266 2019-08-05  Martin Sebor  <msebor@redhat.com>
13268         * doc/extend.texi (Common Variable Attributes): Document alias
13269         attribute.
13271 2019-08-05  Marek Polacek  <polacek@redhat.com>
13273         PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
13274         * doc/invoke.texi: Document -Wcomma-subscript.
13276 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13278         * tree-core.h (tree_function_decl): Make function_code an
13279         independent field.  Group the remaining bitfields into bytes
13280         and move decl_type so that it contines to be at a byte boundary.
13281         Leave 12 bits for future expansion.
13283 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13285         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
13286         (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
13287         (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
13288         IFN_MASK_STORE.
13290 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13292         * gimple.h (gimple_move_vops): Declare.
13293         * gimple.c (gimple_move_vops): New function
13294         * gimple-fold.c (replace_call_with_call_and_fold)
13295         (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
13296         (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
13297         (gimple_fold_call): Use it.
13298         * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
13299         * tree-call-cdce.c (use_internal_fn): Likewise.
13300         * tree-if-conv.c (predicate_load_or_store): Likewise.
13301         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
13302         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
13303         * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
13304         (update_call_from_tree): Likewise.
13305         * tree-vect-stmts.c (vectorizable_load): Likewise.
13306         * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
13308 2019-08-05  Martin Liska  <mliska@suse.cz>
13310         PR c++/91334
13311         * tree-ssa-dce.c (propagate_necessity): Handle new operators
13312         with not arguments.
13313         (eliminate_unnecessary_stmts): Likewise.
13315 2019-08-05  Richard Biener  <rguenther@suse.de>
13317         PR middle-end/91169
13318         * fold-const.c (get_array_ctor_element_at_index): Create
13319         offset_ints according to the sign of the index type and treat
13320         that as signed if it is obviously so.
13322 2019-08-05  Jakub Jelinek  <jakub@redhat.com>
13324         PR target/91341
13325         * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
13326         _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
13327         _mm256_storeu2_m128i): New function.
13329 2019-08-05  Kito Cheng  <kito.cheng@sifive.com>
13331         * config/riscv/riscv.c (riscv_promote_function_mode): New.
13332         (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
13334 2019-08-05  Alan Modra  <amodra@gmail.com>
13336         PR target/91349
13337         * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
13338         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
13340 2019-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
13342         * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
13343         bug that was fixed in Tcl 8.6.1.
13345 2019-08-02  Michael Meissner  <meissner@linux.ibm.com>
13347         * config/rs6000/future.md: New file.
13348         * config/rs6000/rs6000.md: Include future.md.
13349         * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
13351 2019-08-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13353         * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
13354         check to use targetm.slow_unaligned_access instead.
13356         * function.c (assign_param_data_one): Remove unused data members.
13358 2019-08-02  Steve Ellcey  <sellcey@marvell.com>
13360         * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
13361         build_distinct_type_copy.
13362         (simd_clone_adjust_argument_types): Ditto.
13363         (simd_clone_adjust): Call build_distinct_type_copy here.
13364         (expand_simd_clones): Ditto.
13366 2019-08-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13368         PR target/91201
13369         * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
13371 2019-08-02  Alexander Monakov  <amonakov@ispras.ru>
13373         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
13374         from 'const void *'.
13375         (sort_locs_in_loop_postorder_cmp): Likewise.
13377 2019-08-02  Eric Botcazou  <ebotcazou@adacore.com>
13379         * doc/invoke.texi (hot-bb-count-fraction): Rework description.
13380         (hot-bb-count-ws-permille): Likewise.
13381         (hot-bb-frequency-fraction): Likewise.
13382         (unlikely-bb-count-fraction): Likewise.
13383         * params.def (hot-bb-count-fraction): Rework description.
13384         (hot-bb-count-ws-permille): Likewise.
13385         (hot-bb-frequency-fraction): Likewise.
13386         (unlikely-bb-count-fraction): Likewise.  Remove min and max values.
13387         * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
13389 2019-08-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13391         PR target/91323
13392         * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
13393         Return false.
13395 2019-08-02  Richard Biener  <rguenther@suse.de>
13397         * vec.h (vec::sort): Add gcc_qsort_r support.
13398         (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
13399         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
13400         to gcc_qsort_r style callback.
13401         (sort_locs_in_loop_postorder_cmp): Likewise.
13402         (analyze_memory_references): Use gcc_sort_r interfaces.
13403         (find_ref_loc_in_loop_cmp): Use new bsearch overload.
13405 2019-08-02  Martin Liska  <mliska@suse.cz>
13407         PR lto/91313
13408         * gcc.c (driver::maybe_run_linker): Call detect_jobserver
13409         to detect working job server.
13410         (driver::detect_jobserver): Test whether jobserver
13411         is active from GCC driver. That will prevent situation where
13412         GCC is invoked from a LD plugin and the linker already uses
13413         file descriptors suggested by make.  That leads to a wrong
13414         detection.
13415         * gcc.h (driver): Add detect_jobserver.
13416         * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
13417         not scanning for --jobserver-auth prefix.
13419 2019-08-02  Jakub Jelinek  <jakub@redhat.com>
13421         PR tree-optimization/91201
13422         * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
13423         V16QImode extraction without sse4.1 try to use V4SImode lowpart
13424         extraction.
13426 2019-08-01  Martin Sebor  <msebor@redhat.com>
13428         PR c++/90947
13429         * tree.c (type_initializer_zero_p): Define.
13430         * tree.h (type_initializer_zero_p): New function.
13432 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
13434         * cfgrtl.c (relink_block_chain): Add line returns in dump file.
13436 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
13438         * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
13439         * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.  Remove useless test.
13440         * predict.c (maybe_hot_count_p): Likewise.
13441         (maybe_hot_bb_p): Tweak comment.
13442         (maybe_hot_edge_p): Likewise.
13443         (probably_never_executed): Likewise.  Minor tweak.
13444         (probably_never_executed_bb_p): Likewise.
13445         (unlikely_executed_edge_p): Likewise.
13446         (probably_never_executed_edge_p): Likewise.
13447         (optimize_function_for_size_p): Likewise.
13448         (optimize_function_for_speed_p): Likewise.
13449         (function_optimization_type): Likewise.
13450         (optimize_bb_for_size_p): Likewise.
13451         (optimize_bb_for_speed_p): Likewise.
13452         (bb_optimization_type): Likewise.
13453         (optimize_edge_for_size_p): Likewise.
13454         (optimize_edge_for_speed_p): Likewise.
13455         (optimize_insn_for_size_p): Likewise.
13456         (optimize_insn_for_speed_p): Likewise.
13457         (optimize_loop_for_size_p): Likewise.
13458         (optimize_loop_for_speed_p): Likewise.
13459         (optimize_loop_nest_for_speed_p): Likewise.
13460         (optimize_loop_nest_for_size_p): Likewise.
13461         (predictable_edge_p): Likewise.
13462         (handle_missing_profiles): Minor tweak.
13464 2019-08-01  Michael Meissner  <meissner@linux.ibm.com>
13466         * config/rs6000/predicates.md (pcrel_external_address): Update
13467         comment.
13469 2019-08-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13471         PR target/85693
13472         * config/i386/mmx.md (usadv8qi): New expander.
13474 2019-08-01  Matthew Beliveau  <mbelivea@redhat.com>
13476         PR c++/90590
13477         * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
13478         with reserved names that are in a system header.
13480 2019-08-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13482         * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
13483         (*vec_extractv2si_0_zext_sse4): New insn pattern.
13484         (*vec_extractv2si_0_zext): Ditto.
13485         (*vec_extractv2si_1): Add (rm,x) alternative.
13486         (*vec_extractv2si_1_zext): New insn pattern.
13487         (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
13488         insn constraint.
13490 2019-08-01  Richard Biener  <rguenther@suse.de>
13492         * domwalk.c (bb_postorder): Remove static variable.
13493         (cmp_bb_postorder): Adjust.
13494         (sort_bbs_postorder): Adjust and use gcc_sort_r.
13495         (dom_walker::walk): Adjust.
13497 2019-08-01  Alexander Monakov  <amonakov@ispras.ru>
13499         * sort.cc (sort_r_ctx): New struct.
13500         (reorder23): Make templated on context type.
13501         (reorder45): Ditto.
13502         (cmp1): Ditto.  Adjust signature.
13503         (netsort): Ditto.
13504         (mergesort): Ditto.
13505         [CHECKING_P] (cmp2to3): New static function.  Use it...
13506         (gcc_qsort) [CHECKING_P]: ...here.
13507         (gcc_sort_r): New function.
13508         * system.h (sort_r_cmp_fn): New function typedef.
13509         (qsort_chk): Adjust signature.
13510         (gcc_sort_r): Declare.
13511         * vec.c (qsort_chk_error): Adjust.
13512         (qsort_chk): Adjust.
13514 2019-08-01  Richard Biener  <rguenther@suse.de>
13516         * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
13517         (compute_antic): Localize it here.
13519 2019-07-31  Maxim Blinov  <maxim.blinov@embecosm.com>
13521         * common/config/riscv/riscv-common.c: Check -march string ends
13522         with null.
13524 2019-07-31  Alexander Monakov  <amonakov@ispras.ru>
13526         * ipa-devirt.c (type_warning_cmp): Make static.
13527         (decl_warning_cmp): Ditto.
13529 2019-07-31  Peter Bergner  <bergner@linux.ibm.com>
13531         PR target/91050
13532         * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
13533         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
13534         use of deleted rs6000_dejagnu_cpu_index variable.
13535         * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
13536         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
13537         * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
13538         (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
13539         * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
13540         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
13542 2019-07-31  Richard Biener  <rguenther@suse.de>
13544         PR tree-optimization/91280
13545         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13546         Decompose MEM_REF manually for offset handling.
13548 2019-07-31  Richard Biener  <rguenther@suse.de>
13550         PR tree-optimization/91293
13551         * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
13552         of reduction stmts.
13554 2019-07-31  Matt Thomas  <matt@3am-software.com>
13555             Nick Hudson  <nick@nthcliff.demon.co.uk>
13556             Matthew Green  <mrg@eterna.com.au>
13557             Maya Rashish  <coypu@sdf.org>
13559         * config.gcc (hppa*-*-netbsd*): New target.
13560         * config/pa/pa-netbsd.h: New file.
13561         * config/pa/pa32-netbsd.h: New file.
13563 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
13565         PR tree-optimization/91201
13566         * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
13568 2019-07-31  Andrew Stubbs  <ams@codesourcery.com>
13570         * config/gcn/gcn-valu.md
13571         (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
13572         (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
13573         (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
13574         * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
13575         struct ilist. Add nops for delayeduse insns.
13576         * config/gcn/gcn.md (delayeduse): New attribute.
13577         (*movbi): Remove s_waitcnt from stores.
13578         (*mov<mode>_insn): Likewise.
13579         (*movti_insn): Likewise. Add delayeduse attribute.
13580         (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
13581         (atomic_store<mode>): Remove or adjust s_waitcnt.
13583 2019-07-31  Richard Biener  <rguenther@suse.de>
13585         * vr-values.h (vr_values::swap_vr_value): New.
13586         (vr_values::free_value_range): likewise.
13587         * vr-values.c (vr_values::swap_vr_value): Implement.
13588         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
13589         Do not return a range or take a var.
13590         (evrp_range_analyzer::stack): Change back to recording a non-const
13591         value_range *.
13592         * gimple-ssa-evrp-analyze.c
13593         (evrp_range_analyzer::record_ranges_from_stmt): Free unused
13594         value-range.
13595         (evrp_range_analyzer::pop_to_marker): Adjust.
13596         (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
13597         (evrp_range_analyzer::pop_value_range): Likewise.  Free the
13598         no longer needed value-range.
13600 2019-07-31  Martin Liska  <mliska@suse.cz>
13602         * tree-ssa-dce.c (propagate_necessity): Delete operator can
13603         have size and (or) alignment as 2nd and later arguments.
13604         Mark all of them as necessary.
13606 2019-07-31  Richard Biener  <rguenther@suse.de>
13608         PR tree-optimization/91178
13609         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
13610         Use tail-recursion.
13612 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
13614         PR tree-optimization/91201
13615         * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
13616         (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
13617         TARGET_AVX512F.
13618         (reduc_plus_scal_<mode>): Improve formatting by introducing
13619         a temporary.
13621 2019-07-31  Sudakshina Das  <sudi.das@arm.com>
13623         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
13624         AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
13625         AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
13626         (aarch64_init_tme_builtins): New.
13627         (aarch64_init_builtins): Call aarch64_init_tme_builtins.
13628         (aarch64_expand_builtin_tme): New.
13629         (aarch64_expand_builtin): Handle TME builtins.
13630         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13631         __ARM_FEATURE_TME when enabled.
13632         * config/aarch64/aarch64-option-extensions.def: Add "tme".
13633         * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
13634         (TARGET_TME): New.
13635         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
13636         (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
13637         UNSPECV_TCANCEL.
13638         (tstart, ttest, tcommit, tcancel): New instructions.
13639         * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
13640         (__tcancel, __ttest): New.
13641         (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
13642         (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
13643         (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
13644         (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
13645         * config/arm/types.md: Add new tme type attr.
13646         * doc/invoke.texi: Document "tme".
13648 2019-07-31  Joel Hutton  <Joel.Hutton@arm.com>
13650         * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
13651         warn_unused_result attribute.
13652         (cmse_check_address_range): Add warn_unused_result attribute.
13654 2019-07-31  Richard Biener  <rguenther@suse.de>
13656         PR tree-optimization/91257
13657         * tree-vrp.c (union_ranges): Unify equality and less tests
13658         by using compare_values.  Re-order cheap tests first.
13660 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
13662         PR middle-end/91301
13663         * gimplify.c (gimplify_omp_for): If for class iterator on
13664         distribute parallel for there is no data sharing clause
13665         on inner_for_stmt, look for private clause on combined
13666         parallel too and if found, move it to inner_for_stmt.
13668 2019-07-31  Richard Sandiford  <richard.sandiford@arm.com>
13670         * lra-int.h (lra_operand_data): Remove early_clobber field.
13671         (lra_insn_reg): Likewise.
13672         * lra.c (debug_operand_data): Update accordingly.
13673         (setup_operand_alternative): Likewise.
13674         (new_insn_reg): Likewise.  Remove early_clobber parameter.
13675         (collect_non_operand_hard_regs): Update call accordingly.
13676         Don't assign to lra_insn_reg::early_clobber.
13677         (add_regs_to_insn_regno_info): Remove early_clobber parameter
13678         and update calls to new_insn_reg.
13679         (lra_update_insn_regno_info): Update calls accordingly.
13680         * lra-constraints.c (update_and_check_small_class_inputs): Take the
13681         alternative number as a parameter and test whether the operand
13682         is earlyclobbered in that particular alternative.
13683         (process_alt_operands): Update call accordingly.  Use per-alternative
13684         checks for earyclobber here too.
13685         * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
13686         against zero for IRA_UNKNOWN_ALT.
13688 2019-07-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13690         * config/alpha/alpha.c (alpha_option_override): Quote a C type.
13692 2019-07-30  Wilco Dijkstra  <wdijkstr@arm.com>
13694         * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
13695         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
13697 2019-07-30  Martin Liska  <mliska@suse.cz>
13699         PR ipa/89330
13700         * cgraph.c (cgraph_edge::make_direct): Use
13701         edge->indirect_unknown_callee as edge->resolve_speculation can
13702         deallocate edge which is this pointer.
13704 2019-07-30  Richard Biener  <rguenther@suse.de>
13706         PR tree-optimization/91257
13707         * bitmap.c (bitmap_ior_and_compl_into): Open-code.
13709 2019-07-30  Martin Liska  <mliska@suse.cz>
13711         * doc/invoke.texi: Document new behavior.
13712         * lto-wrapper.c (cpuset_popcount): New function
13713         is a copy of libgomp/config/linux/proc.c.
13714         (init_num_threads): Likewise.
13715         (run_gcc): Automatically detect core count for -flto.
13716         (jobserver_active_p): New function.
13718 2019-07-30  Richard Biener  <rguenther@suse.de>
13720         PR tree-optimization/91257
13721         * bitmap.h (bitmap_ior_into_and_free): Declare.
13722         * bitmap.c (bitmap_list_unlink_element): Add defaulted param
13723         whether to add the unliked element to the freelist.
13724         (bitmap_list_insert_element_after): Add defaulted param for
13725         an already allocated element.
13726         (bitmap_ior_into_and_free): New function.
13727         * tree-ssa-structalias.c (condense_visit): Reduce the
13728         ponts-to and edge bitmaps of the SCC members in a
13729         logarithmic fashion rather than all to one.
13731 2019-07-30  Richard Sandiford  <richard.sandiford@arm.com>
13733         * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
13734         parameter.  When nonnull, make sure that the addition or subtraction
13735         has the same condition.
13736         (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
13737         for CFN_COND_MUL too.
13739 2019-07-30  Richard Biener  <rguenther@suse.de>
13741         PR tree-optimization/91291
13742         * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
13743         constant values.
13745 2019-07-30  Jakub Jelinek  <jakub@redhat.com>
13747         PR middle-end/91216
13748         * omp-low.c (global_nonaddressable_vars): New variable.
13749         (use_pointer_for_field): For global decls, if they are non-addressable,
13750         remember it in the global_nonaddressable_vars bitmap, if they are
13751         addressable and in the global_nonaddressable_vars bitmap, ignore their
13752         TREE_ADDRESSABLE bit.
13753         (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
13754         vars in global_nonaddressable_vars bitmap.
13755         (execute_lower_omp): Free global_nonaddressable_vars bitmap.
13757         PR target/91150
13758         * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
13759         from unsigned to unsigned HOST_WIDE_INT.  For E_V64QImode cast
13760         comparison to unsigned HOST_WIDE_INT before shifting it left.
13762 2019-07-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13764         * config/i386/i386.md (movstrict<mode>): Use register_operand
13765         predicate for operand 0.  Add expander condition.  Assert that
13766         operand 0 is a SUBREG RTX.
13767         (*movstrict<mode>_1): Use register_operand predicate for operand 0.
13768         Update operand constraints and insn condition.
13769         (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
13770         (zero_extendqihi2_and): Do not call gen_movstrictqi.
13771         (*setcc_qi_slp): Use register_operand predicate for operand 0.
13772         Update operand 0 constraints.
13773         (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
13775 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
13777         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
13778         when -m{code,data}-region are used without -mlarge.
13779         * config/msp430/msp430.c (msp430_option_override): Error when a
13780         non-default code or data region is used without -mlarge.
13781         (msp430_section_attr): Emit a warning and do not add upper/lower/either
13782         attributes when they are used without -mlarge.
13784 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
13786         PR target/70320
13787         * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
13789 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
13791         PR middle-end/91242
13792         * wide-int.h (generic_wide_int::sext_elt): New function.
13793         * inchash.h (hash::add_wide_int): Use it instead of elt.
13795 2019-07-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13797         * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
13798         CODE_FOR_arm_##.
13799         * config/arm/arm.md (<crc_variant>): Rename to...
13800         (arm_<crc_variant>): ... This.
13801         (<cdp>): Rename to...
13802         (arm_<cdp>): ... This.
13803         (<ldc>): Rename to...
13804         (arm_<ldc>): ... This.
13805         (<stc>): Rename to...
13806         (arm_<stc>): ... This.
13807         (<mcr>): Rename to...
13808         (arm_<mcr>): ... This.
13809         (<mrc>): Rename to...
13810         (arm_<mrc>): ... This.
13811         (<mcrr>): Rename to...
13812         (arm_<mcrr>): ... This.
13813         (<mrrc>): Rename to...
13814         (arm_<mrrc>): ... This.
13816 2019-07-29  Richard Biener  <rguenther@suse.de>
13818         PR tree-optimization/91257
13819         * tree-ssa-sccvn.h (struct vn_avail): New.
13820         (struct vn_ssa_aux): Add avail member.
13821         * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
13822         member, add m_avail_freelist one.
13823         (rpo_elim::~rpo_elim): Remove.
13824         (rpo_elim::eliminate_avail): Adjust to new avail tracking
13825         data structure.
13826         (rpo_elim::eliminate_push_avail): Likewise.
13827         (do_unwind): Likewise.
13828         (do_rpo_vn): Likewise.
13830 2019-07-29  Richard Biener  <rguenther@suse.de>
13832         PR tree-optimization/91257
13833         * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
13834         most cases, instead call compare_values which handles the
13835         symbolic ranges we handle specially.
13836         (compare_values_warnv): Do not call operand_less_p but open-code
13837         the effective fold calls.  Avoid converting so much.
13839 2019-07-29  Martin Liska  <mliska@suse.cz>
13841         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
13842         remove LHS of operator new call.  It's handled latter.
13844 2019-07-29  Richard Biener  <rguenther@suse.de>
13846         PR tree-optimization/91267
13847         * vr-values.c (vr_values::update_value_range): Add early return
13848         for effectively VARYING lattice entry.
13850 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
13852         PR debug/86638
13853         * tree-ssa-dce.c (keep_all_vdefs_p): New function.
13854         (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
13855         necessary if keep_all_vdefs_p is true.
13856         (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
13857         that keep_all_vdefs_p is false.
13858         (mark_all_reaching_defs_necessary): Likewise.
13859         (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
13861 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
13863         * common.opt (Og): Change the initial value of flag_dse to 0.
13864         * opts.c (default_options_table): Move OPT_ftree_dse from
13865         OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Also add
13866         OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Put the OPT_ftree_pta
13867         entry before the OPT_ftree_sra entry.
13868         * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
13869         of flags disabled by Og.
13871 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
13873         * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
13874         variables for -Og.
13876 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
13878         * doc/sourcebuild.texi (check-function-bodies): Document.
13880 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
13882         * simplify-rtx.c (simplify_const_unary_operation): Fold a
13883         VEC_DUPLICATE of a fixed-length vector even if the result
13884         is variable-length.  Likewise fold a duplicate of a
13885         variable-length vector if the variable-length vector is
13886         itself a duplicate of a fixed-length sequence.
13887         (test_vector_ops_duplicate): Test more cases.
13889 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
13891         * vector-builder.h (vector_builder): Add a shape template parameter.
13892         (vector_builder::new_unary_operation): New function, generalizing
13893         the old tree_vector_builder function.
13894         (vector_builder::new_binary_operation): Likewise.
13895         (vector_builder::binary_encoded_nelts): Likewise.
13896         * int-vector-builder.h (int_vector_builder): Update template
13897         parameters to vector_builder.
13898         (int_vector_builder::shape_nelts): New function.
13899         * rtx-vector-builder.h (rtx_vector_builder): Update template
13900         parameters to vector_builder.
13901         (rtx_vector_builder::shape_nelts): New function.
13902         (rtx_vector_builder::nelts_of): Likewise.
13903         (rtx_vector_builder::npatterns_of): Likewise.
13904         (rtx_vector_builder::nelts_per_pattern_of): Likewise.
13905         * tree-vector-builder.h (tree_vector_builder): Update template
13906         parameters to vector_builder.
13907         (tree_vector_builder::shape_nelts): New function.
13908         (tree_vector_builder::nelts_of): Likewise.
13909         (tree_vector_builder::npatterns_of): Likewise.
13910         (tree_vector_builder::nelts_per_pattern_of): Likewise.
13911         * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
13912         (tree_vector_builder::new_binary_operation): Delete.
13913         (tree_vector_builder::binary_encoded_nelts): Likewise.
13914         * simplify-rtx.c: Include rtx-vector-builder.h.
13915         (distributes_over_addition_p): New function.
13916         (simplify_const_unary_operation)
13917         (simplify_const_binary_operation): Generalize handling of vector
13918         constants to include variable-length vectors.
13919         (test_vector_ops_series): Add more tests.
13921 2019-07-28  Jan Hubicka  <hubicka@ucw.cz>
13923         PR lto/91222
13924         * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
13925         than INDENTIFIER_POINTER.
13927 2019-07-28  Martin Liska  <mliska@suse.cz>
13929         PR ipa/89330
13930         * cgraph.c (symbol_table::create_edge): Always allocate
13931         a cgraph_edge.
13932         (symbol_table::free_edge): Store summary_id to
13933         edge_released_summary_ids if != -1;
13934         * cgraph.h (NEXT_FREE_NODE): Remove.
13935         (SET_NEXT_FREE_NODE): Likewise.
13936         (NEXT_FREE_EDGE): Likewise.
13937         (symbol_table::release_symbol): Store summary_id to
13938         cgraph_released_summary_ids if != -1;
13939         (symbol_table::allocate_cgraph_symbol): Always allocate
13940         a cgraph_node.
13942 2019-07-28  Alan Modra  <amodra@gmail.com>
13944         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
13945         gen_sibcall.
13947 2019-07-28  Alan Modra  <amodra@gmail.com>
13949         PR target/91135
13950         * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
13951         define.
13952         * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
13953         GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
13954         (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
13956 2019-07-28  Alan Modra  <amodra@gmail.com>
13958         PR target/91050
13959         * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
13960         * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
13961         * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
13962         * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
13963         * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
13964         * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
13965         in asm_default spec.
13966         * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
13967         * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
13969 2019-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
13971         * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
13973 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
13975         PR target/89517
13976         * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
13977         * config/aarch64/aarch64-option-extensions.def: Add new comments
13978         and restore easier to read options.
13980 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
13982         * convert.c (convert_to_real_1): Move part of conversion code...
13983         * match.pd: ...To here.
13985 2019-07-26  Martin Jambor  <mjambor@suse.cz>
13987         PR ipa/89330
13988         * ipa-inline-transform.c (check_speculations_1): New function.
13989         (push_all_edges_in_set_to_vec): Likewise.
13990         (check_speculations): Use check_speculations_1, new parameter
13991         new_edges.
13992         (inline_call): Pass new_edges to check_speculations.
13993         * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
13994         NULL.
13995         (speculation_useful_p): Early return true if edge is inlined, remove
13996         later checks for inline_failed.
13998 2019-07-25  Vladimir Makarov  <vmakarov@redhat.com>
14000         PR rtl-optimization/91223
14001         * lra-constraints.c (process_alt_operands): Fail for unsuccessful
14002         matching with INOUT operand.
14004 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
14006         * stmt.c (expand_case): Try to narrow the index type if it's larger
14007         than a word.  Tidy up.
14009 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
14011         * cif-code.def (NEVER_CALL): New code.
14012         * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
14013         Set the failure to CIF_NEVER_CALL if the IPA count is zero.
14015 2019-07-25  Wilco Dijkstra  <wdijkstr@arm.com>
14017         * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
14018         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
14020 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
14022         * ipa-devirt.c (add_type_duplicate): Fix return value.
14024 2019-07-25  Richard Biener  <rguenther@suse.de>
14026         * tree-vrp.c (extract_range_from_multiplicative_op): Add
14027         type parameter and use it instead of guessing expression
14028         type from the first operand.
14029         (extract_range_from_binary_expr): Pass expr_type down.
14031 2019-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14033         * config/arm/arm.md (SATrev): Change to code attribute.
14034         (*satsi_<SAT:code>): Adjust for the above.
14035         (*satsi_<SAT:code>_shift): Likewise.
14037 2019-07-25  Richard Biener  <rguenther@suse.de>
14039         * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
14040         Make value_range * temporary const.
14041         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
14042         Likewise.
14043         (evrp_range_analyzer::record_ranges_from_): Likewise.
14044         (evrp_range_analyzer::pop_value_range): Return a const value_range *,
14045         deal with having recorded a const one.
14046         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
14047         Return a const value_range *.
14048         (evrp_range_analyzer::pop_value_range): Likewise.
14049         (evrp_range_analyzer::stack): Record const value_range *s.
14050         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
14051         Adjust.
14052         * gimple-ssa-sprintf.c (get_int_range): Likewise.
14053         (format_integer): Likewise.
14054         (sprintf_dom_walker::handle_gimple_call): Likewise.
14055         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
14056         * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
14057         (vrp_prop::get_value_range): Adjust.
14058         (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
14059         modifying the lattice in-place.
14060         (vrp_prop::visit_stmt): Likewise.
14061         * vr-values.c (vr_values::get_lattice_entry): New private method.
14062         (vr_values::get_value_range): Wrap it and return a const
14063         value_range *.
14064         (vr_values::set_def_to_varying): New.
14065         (vr_values::set_defs_to_varying): Use it.
14066         (vr_values::update_value_range): Likewise.
14067         (vr_values::vrp_stmt_computes_nonzero): Adjust.
14068         (values::op_with_constant_singleton_va): Likewise.
14069         (vr_values::extract_range_for_var_from_co): Likewise.
14070         (vr_values::extract_range_from_ssa_name): Likewise.
14071         (vr_values::extract_range_from_cond_expr): Likewise.
14072         (vr_values::extract_range_basic): Likewise.
14073         (compare_ranges): Take const value_range *, adjust.
14074         (compare_range_with_value): Likewise.
14075         (vrp_valueize): Adjust.
14076         (vrp_valueize_1): Likewise.
14077         (vr_values::get_vr_for_comparison): Return a const value_range *.
14078         (vr_values::compare_name_with_value): Adjust.
14079         (vr_values::compare_names): Likewise.
14080         (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14081         Likewise.
14082         (vr_values::vrp_evaluate_conditional): Likewise.
14083         (find_case_label_ranges): Take a const value_range *.
14084         (vr_values::vrp_visit_switch_stmt): Adjust.
14085         (vr_values::extract_range_from_phi_node): Likewise.
14086         (vr_values::simplify_div_or_mod_using_ran): Likewise.
14087         (vr_values::simplify_abs_using_ranges): Likewise.
14088         (test_for_singularity): Take a const value_range *.
14089         (range_fits_type_p): Likewise.
14090         (vr_values::simplify_cond_using_ranges_1): Adjust.
14091         (vr_values::simplify_cond_using_ranges_2): Likewise.
14092         (vr_values::simplify_switch_using_ranges): Likewise.
14093         (vr_values::simplify_float_conversion_usi): Likewise.
14094         (vr_values::two_valued_val_range_p): Likewise.
14095         * vr-values.h (vr_values::get_value_range): Return a const
14096         value_range *.
14097         (vr_values::set_def_to_varying): New.
14098         (vr_values::get_lattice_entry): New private method.
14099         (vr_values::get_vr_for_comparison): Return a const value_range *.
14101 2019-07-25  Martin Liska  <mliska@suse.cz>
14102             Dominik Infuhr  <dominik.infuehr@theobroma-systems.com>
14104         PR c++/23383
14105         * common.opt: Add -fallocation-dce
14106         * gimple.c (gimple_call_operator_delete_p): New.
14107         * gimple.h (gimple_call_operator_delete_p): Likewise.
14108         * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
14109         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
14110         DECL_IS_OPERATOR_DELETE_P.
14111         (mark_all_reaching_defs_necessary_1): Likewise.
14112         (propagate_necessity): Likewise.
14113         (eliminate_unnecessary_stmts): Handle
14114         gimple_call_operator_delete_p.
14115         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
14116         Add packing of OPERATOR_DELETE.
14117         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
14118         Similarly here.
14119         * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
14120         (DECL_SET_IS_OPERATOR_DELETE): New.
14121         (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
14123 2019-07-25  Martin Liska  <mliska@suse.cz>
14125         * calls.c (maybe_warn_alloc_args_overflow): Use new macros
14126         (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
14127         * coverage.c (coverage_begin_function): Likewise.
14128         * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
14129         * gimple.c (gimple_call_nonnull_result_p): Likewise.
14130         * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
14131         (sem_item::hash_referenced_symbol_properties): Likewise.
14132         * lto-streamer-out.c (hash_tree): Likewise.
14133         * predict.c (expr_expected_value_1): Likewise.
14134         * tree-inline.c (expand_call_inline): Likewise.
14135         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
14136         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
14137         * tree-core.h (enum function_decl_type): New enum.
14138         (struct tree_function_decl): Remove operator_new_flag and lambda_function.
14139         * tree.h (FUNCTION_DECL_DECL_TYPE): New.
14140         (set_function_decl_type): Likewise.
14141         (DECL_IS_OPERATOR_NEW_P): New.
14142         (DECL_SET_IS_OPERATOR_NEW): Likewise.
14143         (DECL_LAMBDA_FUNCTION): Likewise.
14144         (DECL_LAMBDA_FUNCTION_P): Likewise.
14145         (DECL_IS_OPERATOR_NEW): Remove.
14146         (DECL_SET_LAMBDA_FUNCTION): Likewise.
14148 2019-07-25  Xiong Hu Luo  <luoxhu@linux.ibm.com>
14150         * ipa-profile.c (get_most_common_single_value): Use
14151         get_nth_most_common_value.
14152         * profile.c (sort_hist_value): New function.
14153         (compute_value_histograms): Call sort_hist_value to sort the
14154         values after loading from disk.
14155         * value-prof.c (get_most_common_single_value): Rename to ...
14156         get_nth_most_common_value.  Add input params n, return
14157         the n_th value and count.
14158         (gimple_divmod_fixed_value_transform): Use
14159         get_nth_most_common_value.
14160         (gimple_ic_transform): Likewise.
14161         (gimple_stringops_transform): Likewise.
14162         * value-prof.h (get_most_common_single_value): Add input params
14163         n, default to 0.
14165 2019-07-25  Richard Biener  <rguenther@suse.de>
14167         PR tree-optimization/91236
14168         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
14169         size of CONSTRUCTOR write.  Fix buffer size we pass to
14170         native_encode_expr.
14172 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14174         * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
14175         * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
14176         r273773.
14178 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14180         * config.gcc (msp430*-*-*): Enable initfini_array by default unless
14181         explicitly disabled with --disable-initfini-array.
14183 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14185         * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
14186         if-exists.
14188 2019-07-24  Martin Sebor  <msebor@redhat.com>
14190         PR tree-optimization/91183
14191         PR tree-optimization/86688
14192         * builtins.c (compute_objsize): Handle MEM_REF.
14193         * tree-ssa-strlen.c (class ssa_name_limit_t): New.
14194         (get_min_string_length): Remove.
14195         (count_nonzero_bytes): New function.
14196         (handle_char_store): Rename...
14197         (handle_store): to this.  Handle multibyte stores via integer types.
14198         (strlen_check_and_optimize_stmt): Adjust conditional and the called
14199         function name.
14201 2019-07-24  Martin Sebor  <msebor@redhat.com>
14203         PR driver/80545
14204         * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
14205         (diagnostic_report_diagnostic): Same.
14206         * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
14207         (diagnostic_context::lang_mask): New data member.
14208         * ipa-pure-const.c (suggest_attribute): Use
14209         lang_hooks.option_lang_mask ().
14210         * opts-common.c (option_enabled): Handle new argument.
14211         (get_option_state): Pass an additional argument.
14212         * opts.c (print_filtered_help): Print supported languages for
14213         unsupported options.  Adjust printing of current state.
14214         * opts.h (option_enabled): Add argument.
14215         * toplev.c (print_switch_values): Use lang_mask.
14216         (general_init): Set global_dc->lang_mask.
14218 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
14220         PR bootstrap/87030
14221         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
14223 2019-07-24  Giuliano Belinassi  <giuliano.belinassi@usp.br>
14225         * cgraphunit.c (symbol_table::compile): Start and stop
14226         TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
14227         * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
14229 2019-07-24  Oliver Browne  <oliverbrowne62@gmail.com>
14231         * gimplify.c (flag_instrument_functions_exclude_p): Include
14232         namespace/class information in the printable name.
14233         * opts.c (add_comma_separated_to_vector): Add NUL terminator
14234         to tokens entered into the vector.
14236 2019-07-24  Eric Botcazou  <ebotcazou@adacore.com>
14238         * tree-nested.c (build_simple_mem_ref_notrap): New function.
14239         (get_static_chain): Call it instead of build_simple_mem_ref.
14240         (get_frame_field): Likewise.
14241         (get_nonlocal_debug_decl): Likewise.
14242         (convert_nonlocal_reference_op): Likewise.
14244 2019-07-24  Claudiu Zissulescu  <claziss@synopsys.com>
14246         * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
14247         declaration.
14248         (arc_compute_frame_size): Millicode is disabled when compiling
14249         ISR.
14250         (arc_return_address_register): Likewise.
14251         (arc_compute_function_type): Likewise.
14252         (arc_compute_frame_size): Likewise.
14253         (secondary_reload_info): Likewise.
14254         (arc_get_unalign): Likewise.
14255         (arc_can_use_return_insn): Declare.
14256         * config/arc/arc.c (AUX_LP_START): Define
14257         (AUX_LP_END): Likewise.
14258         (arc_frame_info): Update gmask member to 64-bit datum.
14259         (GMASK_LEN): Update.
14260         (arc_compute_function_type): Make it static, move it forward.
14261         (arc_must_save_register): Update, consider the extra regs.
14262         (arc_compute_millicode_save_restore_regs): Update to use the 64
14263         bit gmask.
14264         (arc_compute_frame_size): Likewise.
14265         (arc_enter_leave_p): Likewise.
14266         (arc_save_callee_saves): Likewise.
14267         (arc_restore_callee_saves): Likewise.
14268         (arc_save_callee_enter): Likewise.
14269         (arc_restore_callee_leave): Likewise.
14270         (arc_save_callee_milli): Likewise.
14271         (arc_restore_callee_milli): Likewise.
14272         (arc_expand_prologue): Add new interrupt handling.
14273         (arc_return_address_register): Make it static, move it forward.
14274         (arc_expand_epilogue): Add new interrupt handling.
14275         (arc_get_unalign): Delete.
14276         (arc_epilogue_uses): Make sure we do not remove the extra
14277         saved/restored registers when interrupt.
14278         (arc_can_use_return_insn): New function.
14279         (push_reg): Likewise.
14280         (pop_reg): Likewise.
14281         (arc_save_callee_saves): Add ZOL and FPX aux registers saving
14282         procedures.
14283         (arc_restore_callee_saves): Likewise, but restoring.
14284         * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
14285         (R33_REG): Likewise.
14286         (R34_REG): Likewise.
14287         (R35_REG): Likewise.
14288         (R36_REG): Likewise.
14289         (R37_REG): Likewise.
14290         (R38_REG): Likewise.
14291         (R39_REG): Likewise.
14292         (R45_REG): Likewise.
14293         (R46_REG): Likewise.
14294         (R47_REG): Likewise.
14295         (R48_REG): Likewise.
14296         (R49_REG): Likewise.
14297         (R50_REG): Likewise.
14298         (R51_REG): Likewise.
14299         (R52_REG): Likewise.
14300         (R53_REG): Likewise.
14301         (R54_REG): Likewise.
14302         (R55_REG): Likewise.
14303         (R56_REG): Likewise.
14304         (R58_REG): Likewise.
14305         (type): Add rtie attribute.
14306         (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
14307         (movsi_insn): Accept moves to lp_count.
14308         (rtie): Update pattern.
14309         (simple_return): Simplify it, don't use this pattern as a return
14310         from an interrupt.
14311         (arc600_rtie): New pattern.
14312         (p_return_i): Clean up.
14313         (return): Likewise.
14314         * config/arc/builtins.def (rtie): Only available for non ARC6xx
14315         family CPUs.
14316         * config/arc/predicates.md (move_src_operand): Consider lp_count
14317         as a register.
14319 2019-07-24  Andreas Krebbel  <krebbel@linux.ibm.com>
14321         * config/s390/predicates.md (addv_const_operand): New predicate.
14322         * config/s390/s390-modes.def (CCO): New condition code mode.
14323         * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
14324         (s390_branch_condition_mask): Likewise.
14325         * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
14326         ("mulv<mode>4"): New expanders.
14327         ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
14328         ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
14329         pattern definitions.
14331 2019-07-24  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14333         PR middle-end/91166
14334         * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
14335         (define_predicates): Add entry for uniform_vector_p.
14336         (vec_same_elem_p): New match pattern.
14338 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
14340         PR bootstrap/87030
14341         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
14342         * config/i386/darwin32-biarch.h .. to here.
14343         * config/i386/darwin64-biarch.h: Adjust comments.
14344         * config/rs6000/darwin32-biarch.h: Likewise.
14345         * config/rs6000/darwin64-biarch.h: Likewise.
14346         * config.gcc: Missed commit from r273746
14347         (*-*-darwin*): Don't include CPU t-darwin here.
14348         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
14349         an error message if i686-darwin configuration is attempted for
14350         Darwin >= 18.
14352 2019-07-23  Iain Sandoe  <iain@sandoe.co.uk>
14354         PR bootstrap/87030
14355         * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
14356         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
14357         an error message if i686-darwin configuration is attempted for
14358         Darwin >= 18.
14359         (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
14360         (powerpc-*-darwin*): Use biarch files where needed.
14361         (powerpc64-*-darwin*): Likewise.
14362         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
14363         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
14364         arch case.
14365         * config/i386/darwin32-biarch.h: New.
14366         * config/i386/darwin64.h: Rename.
14367         * config/i386/darwin64-biarch.h: To this.
14368         * config/i386/t-darwin: Rename.
14369         * config/i386/t-darwin32-biarch: To this.
14370         * config/i386/t-darwin64: Rename.
14371         * config/i386/t-darwin64-biarch: To this.
14372         * config/rs6000/darwin32-biarch.h: New.
14373         * config/rs6000/darwin64.h: Rename.
14374         * config/rs6000/darwin64-biarch.h: To this.
14375         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
14376         arch case.
14377         * config/rs6000/t-darwin8: Rename.
14378         * config/rs6000/t-darwin32-biarch: To this.
14379         * config/rs6000/t-darwin64 Rename.
14380         * config/rs6000/t-darwin64-biarch: To this.
14382 2019-07-23  Martin Sebor  <msebor@redhat.com>
14384         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
14386 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
14388         * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
14389         (rh): New alias for it.
14391 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
14393         * gdbhooks.py: Pass replace=True to
14394         gdb.printing.register_pretty_printer.
14396 2019-07-23  Richard Biener  <rguenther@suse.de>
14398         PR debug/91231
14399         * lto-streamer-in.c (input_function): Drop inline-entry markers
14400         that ended up with an unknown location block.
14402 2019-07-23  Richard Biener  <rguenther@suse.de>
14404         PR tree-optimization/83518
14405         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
14406         init from a constant even when partial defs are already recorded.
14408 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
14410         * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
14411         * config/i386/znver1.md: Enable patterns for znver2 and add store
14412         variants which use extra AGU unit.
14414 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
14416         * config/i386/i386-options.c (ix86_option_override_internal): Default
14417         PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
14418         * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
14419         for ZNVER2.
14421 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
14423         * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
14424         (znver2_costs): Update 256 bit SSE costs and multiplication.
14426 2019-07-23  Jan Beulich  <jbeulich@suse.com>
14428         * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
14429         Require only AVX512F.
14430         (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise.  Add
14431         alternative expanding to vpternlog.
14433 2019-07-23  Martin Liska  <mliska@suse.cz>
14435         * dwarf2out.c (gen_producer_string): Canonize -flto=N
14436         to -flto in dwarf producer string.
14438 2019-07-23  Richard Biener  <rguenther@suse.de>
14440         * tree-cfg.c (label_for_bb): Remove global var.
14441         (main_block_label): Take label_for_bb as argument.
14442         (cleanup_dead_labels_eh): Likewise, adjust.
14443         (cleanup_dead_labels): Adjust.
14445 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
14447         * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
14448         Configurations): Add documentation for __builtin_mtfsf.
14450 2019-07-22  Ilia Diachkov  <ilia.diachkov@optimitech.com>
14452         * config/riscv/riscv-opts.h (struct riscv_align_data): New.
14453         * config/riscv/riscv.c (riscv_constant_alignment): Use
14454         riscv_align_data_type.
14455         * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
14456         (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
14457         (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
14458         * config/riscv/riscv.opt (malign-data): New.
14459         * doc/invoke.texi (RISC-V Options): Document -malign-data=.
14461 2019-07-02  Giuliano Belinassi  <giuliano.belinassi@usp.br>
14463         * cgraph.c (dump_graphviz): New function.
14464         * cgraph.h (dump_graphviz): New function.
14465         * symtab.c (dump_graphviz): New function.
14467 2019-07-22  Sylvia Taylor  <sylvia.taylor@arm.com>
14469         * config/aarch64/aarch64-simd.md
14470         (*aarch64_simd_sra<mode>): New.
14471         * config/aarch64/iterators.md
14472         (SHIFTRT): New iterator.
14473         (sra_op): New attribute.
14475 2019-07-22  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14477         * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
14478         callee-saved regs R4->R10 in an interrupt function that calls another
14479         function.
14481 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
14483         * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
14484         (_mm_blendv_epi8): New.
14486 2019-07-22  Richard Biener  <rguenther@suse.de>
14488         PR tree-optimization/91221
14489         * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
14490         restrict partial-def handling of empty constructors and
14491         memset to refs with known offset.
14493 2019-07-22  Jan Beulich  <jbeulich@suse.com>
14495         * config/i386/sse.md (ternlogsuffix): New.
14496         (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
14497         AVX512F is in use.
14498         (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
14500 2019-07-22  Martin Liska  <mliska@suse.cz>
14502         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
14503         comment.
14504         * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
14506 2019-07-22  Martin Liska  <mliska@suse.cz>
14508         * lto-section-in.c (lto_get_section_data):
14509         Use new function get_compression.
14510         * lto-streamer-out.c (produce_lto_section): Use
14511         set_compression to encode compression algorithm.
14512         * lto-streamer.h (struct lto_section): Do not
14513         use bitfields in the format.
14515 2019-07-22  Martin Liska  <mliska@suse.cz>
14517         PR driver/91172
14518         * opts-common.c (decode_cmdline_option): Decode
14519         argument of -Werror and check it for a wrong language.
14520         * opts-global.c (complain_wrong_lang): Remove such case.
14522 2019-07-22  Claudiu Zissulescu  <claziss@synopsys.com>
14524         * config/arc/arc.c (prepare_move_operands): Always use an
14525         intermediate register when storing a TLS symbols.
14527 2019-07-22  Stafford Horne  <shorne@gmail.com>
14529         * config/or1k/or1k.c (or1k_expand_compare): Check for int before
14530         force_reg.
14532 2019-07-22  Stafford Horne  <shorne@gmail.com>
14534         * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
14535         and munordered-float validations.
14536         * config/or1k/constraints.md (d): New register constraint.
14537         * config/or1k/predicates.md (fp_comparison_operator): New.
14538         * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
14539         operands.
14540         (or1k_expand_compare): Normalize unordered comparisons.
14541         * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
14542         (REG_CLASS_NAMES): Add "DOUBLE_REGS".
14543         (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
14544         * config/or1k/or1k.md (type): Add fpu.
14545         (fpu): New instruction reservation.
14546         (F, f, fr, fi, FI, FOP, fop): New.
14547         (<fop><F:mode>3): New ALU instruction definition.
14548         (float<fi><F:mode>2): New conversion instruction definition.
14549         (fix_trunc<F:mode><fi>2): New conversion instruction definition.
14550         (fpcmpcc): New code iterator.
14551         (*sf_fp_insn): New instruction definition.
14552         (cstore<F:mode>4): New expand definition.
14553         (cbranch<F:mode>4): New expand definition.
14554         * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
14555         munordered-float): New options.
14556         * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
14557         munordered-float.
14559 2019-07-22  Stafford Horne  <shorne@gmail.com>
14561         * config.gcc (or1k*-*-*): Add mrori and mror to validation.
14562         * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
14563         documenation to be more clear.
14564         * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
14565         more clear.
14566         * config/or1k/or1k.opt (mrori): New option.
14567         (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
14568         msfimm, mshftimm): Rewrite documentation to be more clear.
14569         * config/or1k/or1k.md (insn_support): Add ror and rori.
14570         (enabled): Add conditions for ror and rori.
14571         (rotrsi3): Replace condition for shftimm with ror and rori.
14573 2019-07-22  Stafford Horne  <shorne@gmail.com>
14575         PR target/90363
14576         * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
14577         (extend<mode>si2): Update predicate.
14578         * config/or1k/predicates.md (volatile_mem_operand): New.
14579         (reg_or_mem_operand): New.
14581 2019-07-21  Iain Sandoe  <iain@sandoe.co.uk>
14583         * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
14584         * config/rs6000/rs6000-call.c: ... to here.
14586 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
14588         * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
14589         memory.
14591 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
14593         * config/rs6000/predicates.md (input_operand): Allow volatile memory.
14595 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
14597         * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
14599 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
14601         * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
14602         (any_memory_operand): New predicate.
14603         (reg_or_mem_operand): Use it.
14605 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
14607         PR target/91204
14608         * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
14610 2019-07-20  John David Anglin  <danglin@gcc.gnu.org>
14612         * config/pa/pa.h (hppa_profile_hook): Delete declaration.
14613         * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
14615 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
14617         * tree.def (OMP_LOOP): New tree code.
14618         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
14619         (enum omp_clause_bind_kind): New enum.
14620         (struct tree_omp_clause): Add subcode.bind_kind.
14621         * tree.h (OMP_LOOP_CHECK): Rename to ...
14622         (OMP_LOOPING_CHECK): ... this.
14623         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
14624         OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
14625         OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
14626         (OMP_CLAUSE_BIND_KIND): Define.
14627         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
14628         bind clause entries.
14629         (walk_tree_1): Handle OMP_CLAUSE_BIND.
14630         * tree-pretty-print.c (dump_omp_clause): Likewise.
14631         (dump_generic_node): Handle OMP_LOOP.
14632         * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
14633         (in_omp_construct): New variable.
14634         (is_gimple_stmt): Handle OMP_LOOP.
14635         (gimplify_scan_omp_clauses): For lastprivate don't set
14636         check_non_private if code == OMP_LOOP.  For reduction clause
14637         on OMP_LOOP combined with parallel or teams propagate as shared
14638         on the combined construct.  Handle OMP_CLAUSE_BIND.
14639         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
14640         (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
14641         for constructs from a loop construct to gimplify_scan_omp_clauses.
14642         Don't predetermine iterator linear on OMP_SIMD from loop construct.
14643         (replace_reduction_placeholders, gimplify_omp_loop): New functions.
14644         (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
14645         to match the implicit ORT_TARGET construct around whole body.
14646         Temporarily clear in_omp_construct when processing body.
14647         (gimplify_expr): Handle OMP_LOOP.  For OMP_MASTER, OMP_TASKGROUP
14648         etc. temporarily set in_omp_construct when processing body.
14649         (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
14650         * omp-low.c (struct omp_context): Add loop_p.
14651         (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
14652         in that the original var might be private.
14653         (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
14654         (check_omp_nesting_restrictions): Adjust nesting restrictions for
14655         addition of loop construct.
14656         (scan_omp_1_stmt): Allow setjmp inside of loop construct.
14658         * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
14659         lastprivate non-addressable iterator of a collapse(1) simd.
14661 2019-07-17  Bill Seurer  <seurer@linux.vnet.ibm.com>
14663         * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
14664         as in rs6000.c.
14666 2019-07-19  Iain Sandoe  <iain@sandoe.co.uk>
14668         * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
14669         refer to default conditions.  Warn for the 'y' spec which is ignored
14670         by current linkers.
14672 2019-07-19  Bill Seurer  <seurer@linux.vnet.ibm.com>
14674         * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
14675         cpu_supports_info, builtin_hash_struct, builtin_hasher,
14676         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
14677         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
14678         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
14679         init_cumulative_args, rs6000_promote_function_mode,
14680         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
14681         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
14682         rs6000_function_arg_boundary, rs6000_parm_offset,
14683         rs6000_parm_start, rs6000_arg_size,
14684         rs6000_darwin64_record_arg_advance_flush,
14685         rs6000_darwin64_record_arg_advance_recurse,
14686         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
14687         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
14688         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
14689         rs6000_mixed_function_arg, rs6000_psave_function_arg,
14690         rs6000_finish_function_arg, rs6000_function_arg,
14691         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
14692         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
14693         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
14694         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
14695         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
14696         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
14697         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
14698         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
14699         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
14700         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
14701         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
14702         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
14703         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
14704         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
14705         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
14706         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
14707         get_element_number, altivec_expand_vec_set_builtin,
14708         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
14709         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
14710         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
14711         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
14712         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
14713         rs6000_expand_builtin, rs6000_vector_type,
14714         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
14715         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
14716         rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
14717         to rs6000-call.c.
14718         * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
14719         cpu_supports_info, builtin_hash_struct, builtin_hasher,
14720         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
14721         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
14722         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
14723         init_cumulative_args, rs6000_promote_function_mode,
14724         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
14725         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
14726         rs6000_function_arg_boundary, rs6000_parm_offset,
14727         rs6000_parm_start, rs6000_arg_size,
14728         rs6000_darwin64_record_arg_advance_flush,
14729         rs6000_darwin64_record_arg_advance_recurse,
14730         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
14731         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
14732         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
14733         rs6000_mixed_function_arg, rs6000_psave_function_arg,
14734         rs6000_finish_function_arg, rs6000_function_arg,
14735         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
14736         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
14737         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
14738         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
14739         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
14740         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
14741         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
14742         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
14743         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
14744         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
14745         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
14746         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
14747         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
14748         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
14749         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
14750         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
14751         get_element_number, altivec_expand_vec_set_builtin,
14752         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
14753         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
14754         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
14755         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
14756         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
14757         rs6000_expand_builtin, rs6000_vector_type,
14758         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
14759         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
14760         rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
14761         to here from rs6000.c.
14762         * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
14763         rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
14764         rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
14765         rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
14766         rs6000_gimplify_va_arg, rs6000_promote_function_mode,
14767         rs6000_return_in_memory, rs6000_return_in_msb,
14768         rs6000_pass_by_reference, setup_incoming_varargs,
14769         rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
14770         rs6000_arg_partial_bytes, rs6000_function_arg_advance,
14771         rs6000_function_arg_padding, rs6000_function_arg,
14772         rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
14773         rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
14774         rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
14775         rs6000_passes_long_double, rs6000_passes_vector,
14776         rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
14777         altivec_builtin_mask_for_load) Add declarations.
14778         * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
14779         * config/config.gcc: Add new source file rs6000-call.c to garbage
14780         collector and extra_objs.
14782 2019-07-19  Jeff Law  <law@redhat.com>
14784         PR tree-optimization/86061
14785         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
14786         strncpy.  Drop some trivial dead code.
14787         (maybe_trim_memstar_call): Handle strncpy.
14789 2019-07-19  Richard Biener  <rguenther@suse.de>
14791         PR tree-optimization/91211
14792         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
14793         memset encoding size.
14795 2019-07-19  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14797         PR target/91204
14798         * config/i386/mmx.md (one_cmpl<mode>2): New expander.
14800 2019-07-19  Jan Hubicka  <hubicka@ucw.cz>
14802         PR ipa/91194
14803         * ipa-inline.c (recursive_inlining): Fix limits check.
14805 2019-07-19  Richard Biener  <rguenther@suse.de>
14807         PR tree-optimization/91200
14808         * tree-ssa-phiopt.c (cond_store_replacement): Check we have
14809         no PHI nodes in middle-bb.
14811 2019-07-19  Richard Sandiford  <richard.sandiford@arm.com>
14813         * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
14814         to +sve-bitperm.
14815         * config/aarch64/aarch64-option-extensions.def: Likewise.
14817 2019-07-19  Jakub Jelinek  <jakub@redhat.com>
14819         PR middle-end/91190
14820         * function.c (insert_temp_slot_address): Store into the hash table
14821         a copy of address to avoid RTL sharing issues.
14823 2019-07-19  Richard Biener  <rguenther@suse.de>
14825         PR tree-optimization/91207
14826         Revert
14827         2019-07-17  Richard Biener  <rguenther@suse.de>
14829         PR tree-optimization/91178
14830         * tree-vect-stmts.c (get_group_load_store_type): For SLP
14831         loads with a gap larger than the vector size always use
14832         VMAT_STRIDED_SLP.
14833         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
14834         avoid loading vectors that are only contained in the gap
14835         and thus are not needed.
14837 2019-07-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14839         * config/i386/i386.md (*addqi_2_slp): Remove.
14840         (*<code>qi_2_slp): Ditto.
14842 2019-07-18  Michael Meissner  <meissner@linux.ibm.com>
14844         * config/rs6000/predicates.md (prefixed_mem_operand): Call
14845         rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
14846         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
14847         Rename function from rs6000_prefixed_address.
14848         * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
14849         TARGET_HAS_TOC.
14850         (TARGET_TOC): Likewise.
14851         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
14852         rs6000.h.
14853         * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
14854         TARGET_HAS_TOC.
14855         (TARGET_TOC): Likewise.
14856         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
14857         rs6000.h.
14858         * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
14859         TARGET_HAS_TOC.
14860         (TARGET_TOC): Likewise.
14861         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
14862         check to require -mcmodel=medium for pc-relative addressing.
14863         (create_TOC_reference): Add assertion for TARGET_TOC.
14864         (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
14865         TARGET_NO_TOC.
14866         (rs6000_emit_move): Likewise.
14867         (TOC_alias_set): Rename TOC alias set static variable from 'set'
14868         to 'TOC_alias_set'.
14869         (get_TOC_alias_set): Likewise.
14870         (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
14871         TARGET_NO_TOC.
14872         (rs6000_can_eliminate): Likewise.
14873         (rs6000_prefixed_address_mode_p): Rename function from
14874         rs6000_prefixed_address.
14875         * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
14876         TARGET_HAS_TOC and not pc-relative.
14877         (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
14878         * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
14879         TARGET_HAS_TOC.
14880         (TARGET_TOC): Likewise.
14881         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
14882         rs6000.h.
14884 2019-07-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14886         PR target/91188
14887         * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
14888         for operand 0.  Do not use (match_dup) to match operand 1 with
14889         operand 0.  Add check in insn constraint that either input operand
14890         matches operand 0.  Use SWI12 mode iterator to also handle
14891         HImode operands.
14892         (*and<mode>_1_slp): Ditto.
14893         (*<code>qi_1_slp): Ditto.
14894         (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
14895         Do not use (match_dup) to match operand 1 with operand 0.  Add
14896         check in insn constraint that operand 1 matches operand 0.
14897         Use SWI12 mode iterator to also handle HImode operands.
14898         (*ashl<mode>3_1_slp): Ditto.
14899         (*<shift_insn><mode>3_1_slp): Ditto.
14900         (*<rotate_insn><mode>3_1_slp): Ditto.
14902 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
14904         * config/arm/arm-builtins.c
14905         (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
14906         (arm_expand_unop_builtin): Likewise.
14907         * config/arm/crypto.md
14908         (crypto_sha1h): Convert from define_insn to define_expand.
14909         (crypto_<crypto_pattern>): Likewise.
14910         (crypto_sha1h_lb): New define_insn.
14911         (crypto_<crypto_pattern>_lb): Likewise.
14913 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
14915         PR target/90317
14916         * config/arm/arm_neon.h (vsha1h_u32): Refactor.
14917         (vsha1cq_u32): Likewise.
14918         (vsha1pq_u32): Likewise.
14919         (vsha1mq_u32): Likewise.
14920         * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
14921         vec select.
14922         (crypto_sha1c): Correct vec select.
14923         (crypto_sha1m): Likewise.
14924         (crypto_sha1p): Likewise.
14926 2019-07-18  Richard Earnshaw  <rearnsha@arm.com>
14928         * config/arm/predicates.md (arm_borrow_operation): New predicate.
14929         * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
14930         (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
14931         (subdi_zesidi_zesidi): Likewise.
14932         (negdi2_compare, negdi2_insn): Likewise.
14933         (negdi_extensidi): Likewise.
14934         (negdi_zero_extendsidi): Likewise.
14935         (arm_cmpdi_insn): Likewise.
14936         (subsi3_carryin): Use arm_borrow_operation.
14937         (subsi3_carryin_const): Likewise.
14938         (subsi3_carryin_const0): Likewise.
14939         (subsi3_carryin_compare): Likewise.
14940         (subsi3_carryin_compare_const): Likewise.
14941         (subsi3_carryin_compare_const0): Likewise.
14942         (subsi3_carryin_shift): Likewise.
14943         (rsbsi3_carryin_shift): Likewise.
14944         (negsi2_carryin_compare): Likewise.
14946 2019-07-18  Bin Cheng  <bin.cheng@linux.alibaba.com>
14948         PR tree-optimization/91137
14949         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
14950         (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
14951         Init, use and fini the above new field.
14952         (determine_base_object_1): New function.
14953         (determine_base_object): Reimplement using walk_tree.
14955 2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>
14957         * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
14958         * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
14959         CLEANUP_FORCE_FAST_DCE is set.
14960         * ifcvt.c (rest_of_handle_if_conversion): Pass
14961         CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
14962         if-conversion succeeded.
14964 2019-07-18  Richard Biener  <rguenther@suse.de>
14966         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
14967         branches to make code less indented.
14969 2019-07-17  Alexandre Oliva  <oliva@adacore.com>
14971         PR middle-end/81824
14972         * attribs.c (decls_mismatched_attributes): Simplify the logic
14973         that avoids duplicates and false positives.
14975 2019-07-17  John David Anglin  <danglin@gcc.gnu.org>
14977         * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
14978         data into data section when generating PIC code.
14979         (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
14980         (pa_reloc_rw_mask): Return 3 when generating PIC code and when
14981         generating code for SOM targets earlier than HP-UX 11.  Otherwise,
14982         return 2 for SOM and 0 for other targets.
14984 2019-07-17  Jeff Law  <law@redhat.com>
14986         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
14987         (dse_walker::dse_optimize_stmt): Likewise.  Add missing return to
14988         avoid unexpected switch statement fallthru.
14990 2019-07-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14992         * config/i386/i386.md (*add<dwi>3_doubleword):
14993         Remove redundant constraints.
14994         (*add<mode>_1): Ditto.
14995         (*addhi_1): Ditto.
14996         (*addqi_1): Ditto.
14997         (*addqi_1_slp): Ditto.
14998         (*add<mode>_2): Ditto.
14999         (*addv<mode>4): Ditto.
15000         (*sub<dwi>3_doubleword): Ditto.
15001         (*sub<mode>_1): Ditto.
15002         (*subqi_1_slp): Ditto.
15003         (*sub<mode>_2): Ditto.
15004         (*subv<mode>4): Ditto.
15005         (*sub<mode>_3): Ditto.
15006         (@add<mode>3_carry): Ditto.
15007         (@sub<mode>3_carry): Ditto.
15008         (*add<mode>3_cc_overflow_1): Ditto.
15009         (*add<mode>3_zext_cc_overflow_2): Ditto.
15010         (*anddi_1): Ditto.
15011         (*and<mode>_1): Ditto.
15012         (*andqi_1): Ditto.
15013         (*andqi_1_slp): Ditto.
15014         (*anddi_2): Ditto.
15015         (*andqi_2_maybe_si): Ditto.
15016         (*and<mode>_2): Ditto.
15017         (*andqi_2_slp): Ditto.
15018         (*<code><mode>_1): Ditto.
15019         (*<code>qi_1): Ditto.
15020         (*<code>qi_1_slp): Ditto.
15021         (*<code><mode>_2): Ditto.
15022         (*<code>qi_2_slp): Ditto.
15024 2019-07-17  Jan Hubicka  <hubicka@ucw.cz>
15026         * alias.c (record_component_aliases): Do not simplify pointed-to
15027         types of ODR types.
15029 2019-07-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15031         * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
15032         partial reg stall on alternative 2.
15034 2019-07-17  Richard Biener  <rguenther@suse.de>
15036         PR tree-optimization/91178
15037         * tree-ssa.c (release_defs_bitset): Iterate from higher to
15038         lower SSA names to avoid quadratic behavior in the common case.
15039         * tree-data-ref.c (split_constant_offset): Add limit argument
15040         and pass it down.  Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
15041         (split_constant_offset_1): Add limit argument and use it to
15042         limit SSA def walking.  Optimize the common plus/minus case.
15044 2019-07-17  Richard Biener  <rguenther@suse.de>
15046         PR tree-optimization/91178
15047         * tree-vect-stmts.c (get_group_load_store_type): For SLP
15048         loads with a gap larger than the vector size always use
15049         VMAT_STRIDED_SLP.
15050         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
15051         avoid loading vectors that are only contained in the gap
15052         and thus are not needed.
15054 2019-07-17  Richard Biener  <rguenther@suse.de>
15056         PR tree-optimization/91180
15057         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
15058         computation for memset partial defs.
15060 2019-07-17  Jakub Jelinek  <jakub@redhat.com>
15062         * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
15063         GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
15064         divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
15065         GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
15066         GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
15067         * omp-grid.c (grid_process_grid_body,
15068         grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
15069         of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
15070         == GF_OMP_FOR_KIND_SIMD.
15071         * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
15072         check_omp_nesting_restrictions, scan_omp_1_stmt,
15073         lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
15074         lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
15075         omp_find_scan): Likewise.
15076         * omp-expand.c (expand_omp_for): Likewise.
15077         * omp-general.c (omp_extract_for_data): Likewise.
15079         PR tree-optimization/91157
15080         * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
15081         a vector boolean with scalar mode.
15082         (expand_vector_condition): Handle first operand being a vector boolean
15083         with scalar mode.
15084         (expand_vector_operations_1): For comparisons, don't bail out early
15085         if the return type is vector boolean with scalar mode, but comparison
15086         operand type is not.
15088 2019-07-17  Richard Biener  <rguenther@suse.de>
15090         PR tree-optimization/91181
15091         * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
15092         IFN_LOADs as calls.
15094 2019-07-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15096         * config/i386/i386.md (*testdi_1): Match CCZmode for
15097         constants that might have the SImode sign bit set.
15098         (*testqi_1_maybe_si): Remove "!" constraint modifier.
15099         Use correct constraints for pentium pairing.
15100         (*test<mode>_1): Ditto.
15102 2019-07-16  Jeff Law  <law@redhat.com>
15104         PR rtl-optimization/91173
15105         * tree-ssa-address.c (addr_for_mem_ref): If the base is an
15106         SSA_NAME with a constant value, fold its value into the offset
15107         and clear the base before calling gen_addr_rtx.
15109 2019-07-16  Jakub Jelinek  <jakub@redhat.com>
15111         PR rtl-optimization/91164
15112         * dse.c (rest_of_handle_dse): If dead edges have been purged,
15113         invalidate dominance info.
15115 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15117         * read-md.h (md_reader::record_potential_iterator_use): Add a
15118         file_location parameter.
15119         * read-rtl.c (attribute_use::loc): New field.
15120         (map_attr_string): Take a file_location parameter.  Report cases
15121         in which attributes map to multiple distinct values.
15122         (apply_attribute_uses): Update call accordingly.
15123         (md_reader::handle_overloaded_name): Likewise.
15124         (md_reader::apply_iterator_to_string): Likewise.  Skip empty
15125         nonnull strings.
15126         (record_attribute_use): Take a file_location parameter.
15127         Initialize attribute_use::loc.
15128         (md_reader::record_potential_iterator_use): Take a file_location
15129         parameter.  Update call to record_attribute_use.
15130         (rtx_reader::rtx_alloc_for_name): Update call accordingly.
15131         (rtx_reader::read_rtx_code): Likewise.
15132         (rtx_reader::read_rtx_operand): Likewise.  Record a location
15133         for implicitly-expanded empty strings.
15135 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15137         * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
15138         Use file_location instead of separate fields.
15139         (md_reader::set_md_ptr_loc): Take a file_location instead of a
15140         separate filename and line number.
15141         * read-md.c (ptr_loc): As above.
15142         (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
15143         (md_reader::fprint_md_ptr_loc): Likewise.
15144         (md_reader::set_md_ptr_loc): Likewise.  Take a file_location
15145         instead of a separate filename and line number.
15146         (md_reader::read_string): Update call accordingly.
15148 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15150         * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
15151         use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
15152         leaving the choice between SFDF and P implicit.
15153         (*mov<mode>_update2): Likewise.
15154         (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
15155         rather than leaving the choice betweem IBM128 and GPR implicit.
15156         (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
15157         <IEEE128:MODE> rather than leaving the choice between IEEE128 and
15158         QHSI implicit.
15159         (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
15160         rather than leaving the choice between ALTIVEC_DFORM and P implicit.
15161         * config/rs6000/vsx.md
15162         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
15163         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
15164         use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
15165         and VSX_EXTRACT_I implicit.
15167 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15169         * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
15170         Explicitly use <MOVEP1:MODE> for the mode attribute.
15172 2019-07-16  Jan Hubicka  <hubicka@ucw.cz>
15174         PR bootstrap/91176
15175         * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
15177 2019-07-15  Segher Boessenkool  <segher@kernel.crashing.org>
15179         PR target/91050
15180         * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
15181         .machine directive.
15183 2019-07-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15185         * config/i386/i386.md (@test<mode>_ccno_1):
15186         Rename from test<mode>_ccno_1.
15187         (*testdi_1): Remove redundant alternatives.  Remove modrm attribute.
15188         (*testqi_1_maybe_si): Remove modrm attribute.
15189         (*test<mode>_1): Ditto.
15190         * config/i386/i386-expand.c (ix86_split_idivmod): Use
15191         gen_test_ccno_1 and gen_extend_insn.
15193 2019-07-15  Jan Hubicka  <hubicka@ucw.cz>
15195         * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
15196         to 0.
15198 2019-07-15  Richard Biener  <rguenther@suse.de>
15200         PR middle-end/91162
15201         * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
15202         node make sure to replace all uses with something valid.
15204 2019-07-15  Kewen Lin  <linkw@gcc.gnu.org>
15206         PR tree-optimization/88497
15207         * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
15208         GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
15209         function undistribute_bitref_for_vector.
15210         (undistribute_bitref_for_vector): New function.
15211         (cleanup_vinfo_map): Likewise.
15212         (sort_by_mach_mode): Likewise.
15214 2019-07-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15216         * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
15217         (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
15218         and testdi_ccno_1 using SWI48 mode attribute.
15219         (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
15220         x86_64_szext_general_operand.
15221         (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
15222         (*test<mode>_1): Use nonmemory_szext_operand mode attribute
15223         instead of genera_operand mode attribute.
15225 2019-07-14  Vladislav Ivanishin  <vlad@ispras.ru>
15227         * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
15228         fopen and fclose to their respective types.
15229         (DotFn.invoke): Ditto.
15231 2019-07-14  Jan Hubicka  <hubicka@ucw.cz>
15233         * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
15234         (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
15235         (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
15236         (array_index_predicate): Remove.
15237         (analyze_function_body): Account cost for variable ofsetted array
15238         indexing.
15239         (estimate_node_size_and_time): Do not compute array index hint.
15240         (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
15241         (inline_read_section): Do not read array index hint.
15242         (ipa_fn_summary_write): Do not write array index hint.
15243         * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
15244         * ipa-cp.c (hint_time_bonus): Remove.
15245         * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
15246         (ipa_fnsummary): Remove array_index.
15247         * ipa-inline.c (want_inline_small_function_p): Do not use
15248         array_index.
15249         (edge_badness): Likewise.
15250         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
15252 2019-07-14  Segher Boessenkool  <segher@kernel.crashing.org>
15254         PR target/91148
15255         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
15256         superfluous "builtin function" phrasing.
15258 2019-07-13  Jan Hubicka  <hubicka@ucw.cz>
15260         * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
15261         Break out from ...
15262         (aliasing_component_refs_walk): Break out from ...
15263         (aliasing_component_refs_p): ... here.
15265 2019-07-13  Segher Boessenkool  <segher@kernel.crashing.org>
15267         PR target/91148
15268         * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
15269         "builtin function" phrasing.
15271 2019-07-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15273         PR target/90723
15274         * recog.h (temporary_volatile_ok): New class.
15275         * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
15276         volatile_ok temporarily to true using temporary_volatile_ok.
15277         * expr.c (emit_block_move_via_cpymem): Likewise.
15278         * optabs.c (maybe_legitimize_operand): Likewise.
15280 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
15282         * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
15283         (omp_notice_threadprivate_variable): Diagnose threadprivate variable
15284         uses inside of order(concurrent) constructs.
15285         (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
15286         OMP_CLAUSE_ORDER is seen.
15287         * omp-low.c (struct omp_context): Add order_concurrent member.
15288         (scan_sharing_clauses): Set ctx->order_concurrent if
15289         OMP_CLAUSE_ORDER is seen.
15290         (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
15291         of simd order(concurrent).  Diagnose constructs not allowed inside of
15292         for order(concurrent).
15293         (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
15294         complaining about static double setjmp (double); or class static
15295         methods or non-global namespace setjmps.
15296         (omp_runtime_api_call): New function.
15297         (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
15298         order(concurrent) loops.
15300 2019-07-12  Martin Sebor  <msebor@redhat.com>
15302         * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
15303         * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
15304         * tree-vrp.c (vrp_prop::check_mem_ref): Use
15305         PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
15307 2019-07-12  Jan Hubicka  <jh@suse.cz>
15309         * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
15310         (indirect_refs_may_alias_p): ... here.
15311         (nonoverlapping_component_refs_since_match_p): Support also non-trivial
15312         mem refs in the access paths.
15314 2019-07-12  Jiangning Liu  <jiangning.liu@amperecomputing.com>
15316         PR tree-optimization/89430
15317         * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
15318         store elimination for local variable without address escape.
15320 2019-07-12  Jeff Law  <law@redhat.com>
15322         * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
15323         for the ".far" section.
15325 2019-07-12  Richard Biener  <rguenther@suse.de>
15327         PR tree-optimization/91145
15328         * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
15329         chain check.
15331 2019-07-12  Alexandre Oliva  <oliva@adacore.com>
15333         * tree-eh.c (honor_protect_cleanup_actions): Use outer_
15334         rather than this_state as the lowering context for the ELSE
15335         seq in a GIMPLE_EH_ELSE.
15337 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
15339         * vector-builder.h (vector_builder::elt): Allow already-supplied
15340         elements to be read back before building is complete.
15342 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
15344         PR rtl-optimization/91136
15345         * df-core.c (ACCESSING REFS): Fix typos in comment.
15346         * resource.c (mark_target_live_reg): Add artificial defs that occur at
15347         the beginning of the block to the initial set of live registers.
15349 2019-07-12  Richard Biener  <rguenther@suse.de>
15351         * fold-const.h (get_array_ctor_element_at_index): Adjust.
15352         * fold-const.c (get_array_ctor_element_at_index): Add
15353         ctor_idx output parameter informing the caller where in
15354         the constructor the element was (not) found.  Add early exit
15355         for when the ctor is sorted.
15356         * gimple-fold.c (fold_array_ctor_reference): Support constant
15357         folding across multiple array elements.
15359 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
15361         * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
15362         doesn't have location, set the current location to the function's end.
15364 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
15366         * config/aarch64/aarch64.md (*compare_condjump<mode>)
15367         (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
15368         (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
15369         (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
15370         * config/aarch64/aarch64-simd.md
15371         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
15372         (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
15373         * config/aarch64/aarch64-sve.md
15374         (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
15375         (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
15377 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
15379         * doc/md.texi: Document that @ patterns can have different
15380         numbers of operands.
15381         * genemit.c (handle_overloaded_gen): Handle this case.
15382         * genopinit.c (handle_overloaded_gen): Likewise.
15383         * gensupport.c (replace_operands_with_dups): Iterate over
15384         the new rtx's format rather than the old one's.
15386 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
15388         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
15389         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
15390         order clause entries.
15391         (walk_tree_1): Handle OMP_CLAUSE_ORDER.
15392         * tree-pretty-print.c (dump_omp_clause): Likewise.
15393         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
15394         Likewise.
15395         * omp-low.c (scan_sharing_clauses): Likewise.
15396         * tree-nested.c (convert_nonlocal_omp_clauses,
15397         convert_local_omp_clauses): Likewise.
15399 2019-07-12  Kewen Lin  <linkw@gcc.gnu.org>
15401         * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
15402         fallthrough target of current basic block isn't the placed
15403         right next.
15405 2019-07-11  Sunil K Pandey  <sunil.k.pandey@intel.com>
15407         PR target/90980
15408         * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
15409         (_mm512_storeu_epi64): Likewise.
15410         (_mm512_loadu_epi32): Likewise.
15411         (_mm512_storeu_epi32): Likewise.
15412         * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
15413         (_mm_storeu_epi64): Likewise.
15414         (_mm256_storeu_epi32): Likewise.
15415         (_mm_storeu_epi32): Likewise.
15417 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
15419         * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
15421 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
15423         * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
15424         Handle Modula-2.
15426 2019-07-11  Jakub Jelinek  <jakub@redhat.com>
15428         PR target/91124
15429         * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
15430         (sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
15431         (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
15432         (ufix_notruncv2dfv2si2<mask_name>): Change into ...
15433         (ufix_notruncv2dfv2si2): ... this.  Remove mask substitution macros.
15434         (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
15435         define_insns.
15436         (ufix_truncv2dfv2si2<mask_name>): Change into ...
15437         (ufix_truncv2dfv2si2): ... this.  Remove mask substitution macros.
15438         (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
15439         define_insns.
15440         (sse2_cvttpd2dq<mask_name>): Change into ...
15441         (sse2_cvttpd2dq): ... this.  Remove mask substitution macros.
15442         (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
15443         (*sse2_cvtpd2dq<mask_name>): Change into ...
15444         (*sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
15445         Add "C" constraint to const0_operand.
15446         (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
15447         (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
15448         changes.
15450         PR target/91124
15451         * config/i386/i386-builtin-types.def
15452         (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
15453         V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
15454         V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
15455         V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
15456         V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
15457         * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
15458         __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
15459         __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
15460         __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
15461         __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
15462         __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
15463         __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
15464         __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
15465         __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
15466         __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
15467         __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
15468         __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
15469         __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
15470         __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
15471         __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
15472         __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
15473         __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
15474         __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
15475         __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
15476         __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
15477         __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
15478         __builtin_ia32_vpdpbusd_v4si_maskz,
15479         __builtin_ia32_vpdpbusds_v16si_mask,
15480         __builtin_ia32_vpdpbusds_v16si_maskz,
15481         __builtin_ia32_vpdpbusds_v8si_mask,
15482         __builtin_ia32_vpdpbusds_v8si_maskz,
15483         __builtin_ia32_vpdpbusds_v4si_mask,
15484         __builtin_ia32_vpdpbusds_v4si_maskz,
15485         __builtin_ia32_vpdpwssd_v16si_mask,
15486         __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
15487         __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
15488         __builtin_ia32_vpdpwssd_v4si_maskz,
15489         __builtin_ia32_vpdpwssds_v16si_mask,
15490         __builtin_ia32_vpdpwssds_v16si_maskz,
15491         __builtin_ia32_vpdpwssds_v8si_mask,
15492         __builtin_ia32_vpdpwssds_v8si_maskz,
15493         __builtin_ia32_vpdpwssds_v4si_mask,
15494         __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
15495         suffixed types rather than *_INT.
15496         * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
15497         V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
15498         V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
15499         V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
15500         V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
15501         and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
15503 2019-07-11  Aldy Hernandez  <aldyh@redhat.com>
15505         * tree-vrp.c (intersect_ranges): If we know the intersection is
15506         empty, there is no need to conservatively add anything else to
15507         the set.
15509 2019-07-11  Richard Biener  <rguenther@suse.de>
15511         PR middle-end/91131
15512         * gimplify.c (gimplify_compound_literal_expr): Force a temporary
15513         when the object is volatile and we have not cleared it even though
15514         there are no nonzero elements.
15516 2019-07-10  Michael Meissner  <meissner@linux.ibm.com>
15518         * config/rs6000/predicates.md (cint34_operand): Update
15519         SIGNED_34BIT_OFFSET_P call.
15520         (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
15521         (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
15522         * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
15523         SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
15524         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
15525         argument.
15526         (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
15527         (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
15528         SIGNED_16BIT_OFFSET_P with an EXTRA argument.
15529         (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
15530         SIGNED_34BIT_OFFSET_P with an EXTRA argument.
15532 2019-07-10  Iain Sandoe  <iain@sandoe.co.uk>
15534         * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
15535         * config/rs6000/darwin7.h (LIB_SPEC): Remove.
15536         * config/rs6000/darwin8.h (LIB_SPEC): Remove.
15537         (DEF_MIN_OSX_VERSION): New.
15539 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
15541         * fold-const.c (fold_relational_const): Fix folding of
15542         vector-to-scalar NE_EXPRs.
15543         (test_vector_folding): Add more tests.
15545 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
15547         PR target/91060
15548         * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
15549         * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
15550         (vec_setv2di_internal): Reexpress as...
15551         (@vec_set<V2DI_ONLY:mode>_internal): ...this.
15552         * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
15553         rather than gen_neon_vset_lane<mode>.
15555 2019-07-10  Vladimir Makarov  <vmakarov@redhat.com>
15557         PR target/91102
15558         * lra-constraints.c (process_alt_operands): Don't match user
15559         defined regs only if they are early clobbers.
15561 2019-07-10  Marc Glisse  <marc.glisse@inria.fr>
15563         * wide-int.h (wi::lshift): Reject negative values for the fast path.
15565 2019-07-10  Richard Biener  <rguenther@suse.de>
15567         PR tree-optimization/91126
15568         * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
15569         native encoding offset for BYTES_BIG_ENDIAN.
15570         (vn_reference_lookup_3): Likewise.
15572 2019-07-10  Richard Biener  <rguenther@suse.de>
15574         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
15575         LHS whenever possible.
15577 2019-07-09  Jan Hubicka  <hubicka@ucw.cz>
15579         * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
15580         from ...; work also on duplicated types.
15581         (nonoverlapping_component_refs_since_match): ... here
15582         (ncr_type_uid): Break out from ...
15583         (ncr_compar): ... here; look for TYPE_UID of canonical type if
15584         available.
15585         (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
15586         the types and nonoverlapping_component_refs_p_1 to disambiguate.
15588 2019-07-09  Martin Sebor  <msebor@redhat.com>
15590         PR tree-optimization/90989
15591         * tree-ssa-strlen.c (handle_char_store): Constrain a single character
15592         optimization to just single character stores.
15594 2019-07-09  Joern Rennecke  <joern.rennecke@riscy-ip.com>
15596         * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
15597         Swap operands only once.
15599 2019-07-09  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
15601         * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
15602         for both call instructions.
15604 2019-07-09  John Darrington  <john@darrington.wattle.id.au>
15606         * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
15607         rather than GET_MODE_BITSIZE to better handle partial integer modes.
15609 2019-07-09  Michael Meissner  <meissner@linux.ibm.com>
15611         * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
15612         * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
15613         function from rs6000-logue.c back to rs6000.c.
15614         * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
15616 2019-07-09  Martin Sebor  <msebor@redhat.com>
15618         PR c++/61339
15619         * auto-profile.c: Change class-key of PODs to struct and others
15620         to class.
15621         * basic-block.h: Same.
15622         * bitmap.c (bitmap_alloc): Same.
15623         * bitmap.h: Same.
15624         * builtins.c (expand_builtin_prefetch): Same.
15625         (expand_builtin_interclass_mathfn): Same.
15626         (expand_builtin_strlen): Same.
15627         (expand_builtin_mempcpy_args): Same.
15628         (expand_cmpstr): Same.
15629         (expand_builtin___clear_cache): Same.
15630         (expand_ifn_atomic_bit_test_and): Same.
15631         (expand_builtin_thread_pointer): Same.
15632         (expand_builtin_set_thread_pointer): Same.
15633         * caller-save.c (setup_save_areas): Same.
15634         (replace_reg_with_saved_mem): Same.
15635         (insert_restore): Same.
15636         (insert_save): Same.
15637         (add_used_regs): Same.
15638         * cfg.c (get_bb_copy): Same.
15639         (set_loop_copy): Same.
15640         * cfg.h: Same.
15641         * cfganal.h: Same.
15642         * cfgexpand.c (alloc_stack_frame_space): Same.
15643         (add_stack_var): Same.
15644         (add_stack_var_conflict): Same.
15645         (add_scope_conflicts_1): Same.
15646         (update_alias_info_with_stack_vars): Same.
15647         (expand_used_vars): Same.
15648         * cfghooks.c (redirect_edge_and_branch_force): Same.
15649         (delete_basic_block): Same.
15650         (split_edge): Same.
15651         (make_forwarder_block): Same.
15652         (force_nonfallthru): Same.
15653         (duplicate_block): Same.
15654         (lv_flush_pending_stmts): Same.
15655         * cfghooks.h: Same.
15656         * cfgloop.c (flow_loops_cfg_dump): Same.
15657         (flow_loop_nested_p): Same.
15658         (superloop_at_depth): Same.
15659         (get_loop_latch_edges): Same.
15660         (flow_loop_dump): Same.
15661         (flow_loops_dump): Same.
15662         (flow_loops_free): Same.
15663         (flow_loop_nodes_find): Same.
15664         (establish_preds): Same.
15665         (flow_loop_tree_node_add): Same.
15666         (flow_loop_tree_node_remove): Same.
15667         (flow_loops_find): Same.
15668         (find_subloop_latch_edge_by_profile): Same.
15669         (find_subloop_latch_edge_by_ivs): Same.
15670         (mfb_redirect_edges_in_set): Same.
15671         (form_subloop): Same.
15672         (merge_latch_edges): Same.
15673         (disambiguate_multiple_latches): Same.
15674         (disambiguate_loops_with_multiple_latches): Same.
15675         (flow_bb_inside_loop_p): Same.
15676         (glb_enum_p): Same.
15677         (get_loop_body_with_size): Same.
15678         (get_loop_body): Same.
15679         (fill_sons_in_loop): Same.
15680         (get_loop_body_in_dom_order): Same.
15681         (get_loop_body_in_custom_order): Same.
15682         (release_recorded_exits): Same.
15683         (get_loop_exit_edges): Same.
15684         (num_loop_branches): Same.
15685         (remove_bb_from_loops): Same.
15686         (find_common_loop): Same.
15687         (delete_loop): Same.
15688         (cancel_loop): Same.
15689         (verify_loop_structure): Same.
15690         (loop_preheader_edge): Same.
15691         (loop_exit_edge_p): Same.
15692         (single_exit): Same.
15693         (loop_exits_to_bb_p): Same.
15694         (loop_exits_from_bb_p): Same.
15695         (get_loop_location): Same.
15696         (record_niter_bound): Same.
15697         (get_estimated_loop_iterations_int): Same.
15698         (max_stmt_executions_int): Same.
15699         (likely_max_stmt_executions_int): Same.
15700         (get_estimated_loop_iterations): Same.
15701         (get_max_loop_iterations): Same.
15702         (get_max_loop_iterations_int): Same.
15703         (get_likely_max_loop_iterations): Same.
15704         * cfgloop.h (simple_loop_desc): Same.
15705         (get_loop): Same.
15706         (loop_depth): Same.
15707         (loop_outer): Same.
15708         (loop_iterator::next): Same.
15709         (loop_outermost): Same.
15710         * cfgloopanal.c (mark_irreducible_loops): Same.
15711         (num_loop_insns): Same.
15712         (average_num_loop_insns): Same.
15713         (expected_loop_iterations_unbounded): Same.
15714         (expected_loop_iterations): Same.
15715         (mark_loop_exit_edges): Same.
15716         (single_likely_exit): Same.
15717         * cfgloopmanip.c (fix_bb_placement): Same.
15718         (fix_bb_placements): Same.
15719         (remove_path): Same.
15720         (place_new_loop): Same.
15721         (add_loop): Same.
15722         (scale_loop_frequencies): Same.
15723         (scale_loop_profile): Same.
15724         (create_empty_if_region_on_edge): Same.
15725         (create_empty_loop_on_edge): Same.
15726         (loopify): Same.
15727         (unloop): Same.
15728         (fix_loop_placements): Same.
15729         (copy_loop_info): Same.
15730         (duplicate_loop): Same.
15731         (duplicate_subloops): Same.
15732         (loop_redirect_edge): Same.
15733         (can_duplicate_loop_p): Same.
15734         (duplicate_loop_to_header_edge): Same.
15735         (mfb_keep_just): Same.
15736         (has_preds_from_loop): Same.
15737         (create_preheader): Same.
15738         (create_preheaders): Same.
15739         (lv_adjust_loop_entry_edge): Same.
15740         (loop_version): Same.
15741         * cfgloopmanip.h: Same.
15742         * cgraph.h: Same.
15743         * cgraphbuild.c: Same.
15744         * combine.c (make_extraction): Same.
15745         * config/i386/i386-features.c: Same.
15746         * config/i386/i386-features.h: Same.
15747         * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
15748         (ix86_emit_outlined_ms2sysv_restore): Same.
15749         (ix86_noce_conversion_profitable_p): Same.
15750         (ix86_init_cost): Same.
15751         (ix86_simd_clone_usable): Same.
15752         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
15753         Wstruct-not-pod.
15754         * coretypes.h: Same.
15755         * data-streamer-in.c (string_for_index): Change class-key of PODs
15756         to struct and others to class.
15757         (streamer_read_indexed_string): Same.
15758         (streamer_read_string): Same.
15759         (bp_unpack_indexed_string): Same.
15760         (bp_unpack_string): Same.
15761         (streamer_read_uhwi): Same.
15762         (streamer_read_hwi): Same.
15763         (streamer_read_gcov_count): Same.
15764         (streamer_read_wide_int): Same.
15765         * data-streamer.h (streamer_write_bitpack): Same.
15766         (bp_unpack_value): Same.
15767         (streamer_write_char_stream): Same.
15768         (streamer_write_hwi_in_range): Same.
15769         (streamer_write_record_start): Same.
15770         * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
15771         (add_cross_iteration_register_deps): Same.
15772         (build_intra_loop_deps): Same.
15773         * df-core.c (df_analyze): Same.
15774         (loop_post_order_compute): Same.
15775         (loop_inverted_post_order_compute): Same.
15776         * df-problems.c (df_rd_alloc): Same.
15777         (df_rd_simulate_one_insn): Same.
15778         (df_rd_local_compute): Same.
15779         (df_rd_init_solution): Same.
15780         (df_rd_confluence_n): Same.
15781         (df_rd_transfer_function): Same.
15782         (df_rd_free): Same.
15783         (df_rd_dump_defs_set): Same.
15784         (df_rd_top_dump): Same.
15785         (df_lr_alloc): Same.
15786         (df_lr_reset): Same.
15787         (df_lr_local_compute): Same.
15788         (df_lr_init): Same.
15789         (df_lr_confluence_n): Same.
15790         (df_lr_free): Same.
15791         (df_lr_top_dump): Same.
15792         (df_lr_verify_transfer_functions): Same.
15793         (df_live_alloc): Same.
15794         (df_live_reset): Same.
15795         (df_live_init): Same.
15796         (df_live_confluence_n): Same.
15797         (df_live_finalize): Same.
15798         (df_live_free): Same.
15799         (df_live_top_dump): Same.
15800         (df_live_verify_transfer_functions): Same.
15801         (df_mir_alloc): Same.
15802         (df_mir_reset): Same.
15803         (df_mir_init): Same.
15804         (df_mir_confluence_n): Same.
15805         (df_mir_free): Same.
15806         (df_mir_top_dump): Same.
15807         (df_word_lr_alloc): Same.
15808         (df_word_lr_reset): Same.
15809         (df_word_lr_init): Same.
15810         (df_word_lr_confluence_n): Same.
15811         (df_word_lr_free): Same.
15812         (df_word_lr_top_dump): Same.
15813         (df_md_alloc): Same.
15814         (df_md_simulate_one_insn): Same.
15815         (df_md_reset): Same.
15816         (df_md_init): Same.
15817         (df_md_free): Same.
15818         (df_md_top_dump): Same.
15819         * df-scan.c (df_insn_delete): Same.
15820         (df_insn_rescan): Same.
15821         (df_notes_rescan): Same.
15822         (df_sort_and_compress_mws): Same.
15823         (df_install_mws): Same.
15824         (df_refs_add_to_chains): Same.
15825         (df_ref_create_structure): Same.
15826         (df_ref_record): Same.
15827         (df_def_record_1): Same.
15828         (df_find_hard_reg_defs): Same.
15829         (df_uses_record): Same.
15830         (df_get_conditional_uses): Same.
15831         (df_get_call_refs): Same.
15832         (df_recompute_luids): Same.
15833         (df_get_entry_block_def_set): Same.
15834         (df_entry_block_defs_collect): Same.
15835         (df_get_exit_block_use_set): Same.
15836         (df_exit_block_uses_collect): Same.
15837         (df_mws_verify): Same.
15838         (df_bb_verify): Same.
15839         * df.h (df_scan_get_bb_info): Same.
15840         * doc/tm.texi: Same.
15841         * dse.c (record_store): Same.
15842         * dumpfile.h: Same.
15843         * emit-rtl.c (const_fixed_hasher::equal): Same.
15844         (set_mem_attributes_minus_bitpos): Same.
15845         (change_address): Same.
15846         (adjust_address_1): Same.
15847         (offset_address): Same.
15848         * emit-rtl.h: Same.
15849         * except.c (dw2_build_landing_pads): Same.
15850         (sjlj_emit_dispatch_table): Same.
15851         * explow.c (allocate_dynamic_stack_space): Same.
15852         (emit_stack_probe): Same.
15853         (probe_stack_range): Same.
15854         * expmed.c (store_bit_field_using_insv): Same.
15855         (store_bit_field_1): Same.
15856         (store_integral_bit_field): Same.
15857         (extract_bit_field_using_extv): Same.
15858         (extract_bit_field_1): Same.
15859         (emit_cstore): Same.
15860         * expr.c (emit_block_move_via_cpymem): Same.
15861         (expand_cmpstrn_or_cmpmem): Same.
15862         (set_storage_via_setmem): Same.
15863         (emit_single_push_insn_1): Same.
15864         (expand_assignment): Same.
15865         (store_constructor): Same.
15866         (expand_expr_real_2): Same.
15867         (expand_expr_real_1): Same.
15868         (try_casesi): Same.
15869         * flags.h: Same.
15870         * function.c (try_fit_stack_local): Same.
15871         (assign_stack_local_1): Same.
15872         (assign_stack_local): Same.
15873         (cut_slot_from_list): Same.
15874         (insert_slot_to_list): Same.
15875         (max_slot_level): Same.
15876         (move_slot_to_level): Same.
15877         (temp_address_hasher::equal): Same.
15878         (remove_unused_temp_slot_addresses): Same.
15879         (assign_temp): Same.
15880         (combine_temp_slots): Same.
15881         (update_temp_slot_address): Same.
15882         (preserve_temp_slots): Same.
15883         * function.h: Same.
15884         * fwprop.c: Same.
15885         * gcc-rich-location.h: Same.
15886         * gcov.c: Same.
15887         * genattrtab.c (check_attr_test): Same.
15888         (check_attr_value): Same.
15889         (convert_set_attr_alternative): Same.
15890         (convert_set_attr): Same.
15891         (check_defs): Same.
15892         (copy_boolean): Same.
15893         (get_attr_value): Same.
15894         (expand_delays): Same.
15895         (make_length_attrs): Same.
15896         (min_fn): Same.
15897         (make_alternative_compare): Same.
15898         (simplify_test_exp): Same.
15899         (tests_attr_p): Same.
15900         (get_attr_order): Same.
15901         (clear_struct_flag): Same.
15902         (gen_attr): Same.
15903         (compares_alternatives_p): Same.
15904         (gen_insn): Same.
15905         (gen_delay): Same.
15906         (find_attrs_to_cache): Same.
15907         (write_test_expr): Same.
15908         (walk_attr_value): Same.
15909         (write_attr_get): Same.
15910         (eliminate_known_true): Same.
15911         (write_insn_cases): Same.
15912         (write_attr_case): Same.
15913         (write_attr_valueq): Same.
15914         (write_attr_value): Same.
15915         (write_dummy_eligible_delay): Same.
15916         (next_comma_elt): Same.
15917         (find_attr): Same.
15918         (make_internal_attr): Same.
15919         (copy_rtx_unchanging): Same.
15920         (gen_insn_reserv): Same.
15921         (check_tune_attr): Same.
15922         (make_automaton_attrs): Same.
15923         (handle_arg): Same.
15924         * genextract.c (gen_insn): Same.
15925         (VEC_char_to_string): Same.
15926         * genmatch.c (print_operand): Same.
15927         (lower): Same.
15928         (parser::parse_operation): Same.
15929         (parser::parse_capture): Same.
15930         (parser::parse_c_expr): Same.
15931         (parser::parse_simplify): Same.
15932         (main): Same.
15933         * genoutput.c (output_operand_data): Same.
15934         (output_get_insn_name): Same.
15935         (compare_operands): Same.
15936         (place_operands): Same.
15937         (process_template): Same.
15938         (validate_insn_alternatives): Same.
15939         (validate_insn_operands): Same.
15940         (gen_expand): Same.
15941         (note_constraint): Same.
15942         * genpreds.c (write_one_predicate_function): Same.
15943         (add_constraint): Same.
15944         (process_define_register_constraint): Same.
15945         (write_lookup_constraint_1): Same.
15946         (write_lookup_constraint_array): Same.
15947         (write_insn_constraint_len): Same.
15948         (write_reg_class_for_constraint_1): Same.
15949         (write_constraint_satisfied_p_array): Same.
15950         * genrecog.c (optimize_subroutine_group): Same.
15951         * gensupport.c (process_define_predicate): Same.
15952         (queue_pattern): Same.
15953         (remove_from_queue): Same.
15954         (process_rtx): Same.
15955         (is_predicable): Same.
15956         (change_subst_attribute): Same.
15957         (subst_pattern_match): Same.
15958         (alter_constraints): Same.
15959         (alter_attrs_for_insn): Same.
15960         (shift_output_template): Same.
15961         (alter_output_for_subst_insn): Same.
15962         (process_one_cond_exec): Same.
15963         (subst_dup): Same.
15964         (process_define_cond_exec): Same.
15965         (mnemonic_htab_callback): Same.
15966         (gen_mnemonic_attr): Same.
15967         (read_md_rtx): Same.
15968         * ggc-page.c: Same.
15969         * gimple-loop-interchange.cc (dump_reduction): Same.
15970         (dump_induction): Same.
15971         (loop_cand::~loop_cand): Same.
15972         (free_data_refs_with_aux): Same.
15973         (tree_loop_interchange::interchange_loops): Same.
15974         (tree_loop_interchange::map_inductions_to_loop): Same.
15975         (tree_loop_interchange::move_code_to_inner_loop): Same.
15976         (compute_access_stride): Same.
15977         (compute_access_strides): Same.
15978         (proper_loop_form_for_interchange): Same.
15979         (tree_loop_interchange_compute_ddrs): Same.
15980         (prune_datarefs_not_in_loop): Same.
15981         (prepare_data_references): Same.
15982         (pass_linterchange::execute): Same.
15983         * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
15984         (unroll_jam_possible_p): Same.
15985         (fuse_loops): Same.
15986         (adjust_unroll_factor): Same.
15987         (tree_loop_unroll_and_jam): Same.
15988         * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
15989         (loop_versioning::expensive_stmt_p): Same.
15990         (loop_versioning::version_for_unity): Same.
15991         (loop_versioning::dump_inner_likelihood): Same.
15992         (loop_versioning::find_per_loop_multiplication): Same.
15993         (loop_versioning::analyze_term_using_scevs): Same.
15994         (loop_versioning::record_address_fragment): Same.
15995         (loop_versioning::analyze_expr): Same.
15996         (loop_versioning::analyze_blocks): Same.
15997         (loop_versioning::prune_conditions): Same.
15998         (loop_versioning::merge_loop_info): Same.
15999         (loop_versioning::add_loop_to_queue): Same.
16000         (loop_versioning::decide_whether_loop_is_versionable): Same.
16001         (loop_versioning::make_versioning_decisions): Same.
16002         (loop_versioning::implement_versioning_decisions): Same.
16003         * gimple-ssa-evrp-analyze.c
16004         (evrp_range_analyzer::record_ranges_from_phis): Same.
16005         * gimple-ssa-store-merging.c (split_store::split_store): Same.
16006         (count_multiple_uses): Same.
16007         (split_group): Same.
16008         (imm_store_chain_info::output_merged_store): Same.
16009         (pass_store_merging::process_store): Same.
16010         * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
16011         * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
16012         (is_max): Same.
16013         (alloca_call_type): Same.
16014         (pass_walloca::execute): Same.
16015         * gimple-streamer-in.c (input_phi): Same.
16016         (input_gimple_stmt): Same.
16017         * gimple-streamer.h: Same.
16018         * godump.c (go_force_record_alignment): Same.
16019         (go_format_type): Same.
16020         (go_output_type): Same.
16021         (go_output_fndecl): Same.
16022         (go_output_typedef): Same.
16023         (keyword_hash_init): Same.
16024         (find_dummy_types): Same.
16025         * graph.c (draw_cfg_nodes_no_loops): Same.
16026         (draw_cfg_nodes_for_loop): Same.
16027         * hard-reg-set.h (hard_reg_set_iter_next): Same.
16028         * hsa-brig.c: Same.
16029         * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
16030         * hsa-dump.c (dump_hsa_cfun): Same.
16031         * hsa-gen.c (gen_function_def_parameters): Same.
16032         * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
16033         * input.c (dump_line_table_statistics): Same.
16034         (test_lexer): Same.
16035         * input.h: Same.
16036         * internal-fn.c (get_multi_vector_move): Same.
16037         (expand_load_lanes_optab_fn): Same.
16038         (expand_GOMP_SIMT_ENTER_ALLOC): Same.
16039         (expand_GOMP_SIMT_EXIT): Same.
16040         (expand_GOMP_SIMT_LAST_LANE): Same.
16041         (expand_GOMP_SIMT_ORDERED_PRED): Same.
16042         (expand_GOMP_SIMT_VOTE_ANY): Same.
16043         (expand_GOMP_SIMT_XCHG_BFLY): Same.
16044         (expand_GOMP_SIMT_XCHG_IDX): Same.
16045         (expand_addsub_overflow): Same.
16046         (expand_neg_overflow): Same.
16047         (expand_mul_overflow): Same.
16048         (expand_call_mem_ref): Same.
16049         (expand_mask_load_optab_fn): Same.
16050         (expand_scatter_store_optab_fn): Same.
16051         (expand_gather_load_optab_fn): Same.
16052         * ipa-cp.c (ipa_get_parm_lattices): Same.
16053         (print_all_lattices): Same.
16054         (ignore_edge_p): Same.
16055         (build_toporder_info): Same.
16056         (free_toporder_info): Same.
16057         (push_node_to_stack): Same.
16058         (ipcp_lattice<valtype>::set_contains_variable): Same.
16059         (set_agg_lats_to_bottom): Same.
16060         (ipcp_bits_lattice::meet_with): Same.
16061         (set_single_call_flag): Same.
16062         (initialize_node_lattices): Same.
16063         (ipa_get_jf_ancestor_result): Same.
16064         (ipcp_verify_propagated_values): Same.
16065         (propagate_scalar_across_jump_function): Same.
16066         (propagate_context_across_jump_function): Same.
16067         (propagate_bits_across_jump_function): Same.
16068         (ipa_vr_operation_and_type_effects): Same.
16069         (propagate_vr_across_jump_function): Same.
16070         (set_check_aggs_by_ref): Same.
16071         (set_chain_of_aglats_contains_variable): Same.
16072         (merge_aggregate_lattices): Same.
16073         (agg_pass_through_permissible_p): Same.
16074         (propagate_aggs_across_jump_function): Same.
16075         (call_passes_through_thunk_p): Same.
16076         (propagate_constants_across_call): Same.
16077         (devirtualization_time_bonus): Same.
16078         (good_cloning_opportunity_p): Same.
16079         (context_independent_aggregate_values): Same.
16080         (gather_context_independent_values): Same.
16081         (perform_estimation_of_a_value): Same.
16082         (estimate_local_effects): Same.
16083         (value_topo_info<valtype>::add_val): Same.
16084         (add_all_node_vals_to_toposort): Same.
16085         (value_topo_info<valtype>::propagate_effects): Same.
16086         (ipcp_propagate_stage): Same.
16087         (ipcp_discover_new_direct_edges): Same.
16088         (same_node_or_its_all_contexts_clone_p): Same.
16089         (cgraph_edge_brings_value_p): Same.
16090         (gather_edges_for_value): Same.
16091         (create_specialized_node): Same.
16092         (find_more_scalar_values_for_callers_subset): Same.
16093         (find_more_contexts_for_caller_subset): Same.
16094         (copy_plats_to_inter): Same.
16095         (intersect_aggregates_with_edge): Same.
16096         (find_aggregate_values_for_callers_subset): Same.
16097         (cgraph_edge_brings_all_agg_vals_for_node): Same.
16098         (decide_about_value): Same.
16099         (decide_whether_version_node): Same.
16100         (spread_undeadness): Same.
16101         (identify_dead_nodes): Same.
16102         (ipcp_store_vr_results): Same.
16103         * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
16104         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
16105         (redirect_to_unreachable): Same.
16106         (edge_set_predicate): Same.
16107         (evaluate_conditions_for_known_args): Same.
16108         (evaluate_properties_for_edge): Same.
16109         (ipa_fn_summary_t::duplicate): Same.
16110         (ipa_call_summary_t::duplicate): Same.
16111         (dump_ipa_call_summary): Same.
16112         (ipa_dump_fn_summary): Same.
16113         (eliminated_by_inlining_prob): Same.
16114         (set_cond_stmt_execution_predicate): Same.
16115         (set_switch_stmt_execution_predicate): Same.
16116         (compute_bb_predicates): Same.
16117         (will_be_nonconstant_expr_predicate): Same.
16118         (phi_result_unknown_predicate): Same.
16119         (analyze_function_body): Same.
16120         (compute_fn_summary): Same.
16121         (estimate_edge_devirt_benefit): Same.
16122         (estimate_edge_size_and_time): Same.
16123         (estimate_calls_size_and_time): Same.
16124         (estimate_node_size_and_time): Same.
16125         (remap_edge_change_prob): Same.
16126         (remap_edge_summaries): Same.
16127         (ipa_merge_fn_summary_after_inlining): Same.
16128         (ipa_fn_summary_generate): Same.
16129         (inline_read_section): Same.
16130         (ipa_fn_summary_read): Same.
16131         (ipa_fn_summary_write): Same.
16132         * ipa-fnsummary.h: Same.
16133         * ipa-hsa.c (ipa_hsa_read_section): Same.
16134         * ipa-icf-gimple.c (func_checker::compare_loops): Same.
16135         * ipa-icf.c (sem_function::param_used_p): Same.
16136         * ipa-inline-analysis.c (do_estimate_edge_time): Same.
16137         * ipa-inline.c (edge_badness): Same.
16138         (inline_small_functions): Same.
16139         * ipa-polymorphic-call.c
16140         (ipa_polymorphic_call_context::stream_out): Same.
16141         * ipa-predicate.c (predicate::remap_after_duplication): Same.
16142         (predicate::remap_after_inlining): Same.
16143         (predicate::stream_out): Same.
16144         * ipa-predicate.h: Same.
16145         * ipa-profile.c (ipa_profile_read_summary): Same.
16146         * ipa-prop.c (ipa_get_param_decl_index_1): Same.
16147         (count_formal_params): Same.
16148         (ipa_dump_param): Same.
16149         (ipa_alloc_node_params): Same.
16150         (ipa_print_node_jump_functions_for_edge): Same.
16151         (ipa_print_node_jump_functions): Same.
16152         (ipa_load_from_parm_agg): Same.
16153         (get_ancestor_addr_info): Same.
16154         (ipa_compute_jump_functions_for_edge): Same.
16155         (ipa_analyze_virtual_call_uses): Same.
16156         (ipa_analyze_stmt_uses): Same.
16157         (ipa_analyze_params_uses_in_bb): Same.
16158         (update_jump_functions_after_inlining): Same.
16159         (try_decrement_rdesc_refcount): Same.
16160         (ipa_impossible_devirt_target): Same.
16161         (update_indirect_edges_after_inlining): Same.
16162         (combine_controlled_uses_counters): Same.
16163         (ipa_edge_args_sum_t::duplicate): Same.
16164         (ipa_write_jump_function): Same.
16165         (ipa_write_indirect_edge_info): Same.
16166         (ipa_write_node_info): Same.
16167         (ipa_read_edge_info): Same.
16168         (ipa_prop_read_section): Same.
16169         (read_replacements_section): Same.
16170         * ipa-prop.h (ipa_get_param_count): Same.
16171         (ipa_get_param): Same.
16172         (ipa_get_type): Same.
16173         (ipa_get_param_move_cost): Same.
16174         (ipa_set_param_used): Same.
16175         (ipa_get_controlled_uses): Same.
16176         (ipa_set_controlled_uses): Same.
16177         (ipa_get_cs_argument_count): Same.
16178         * ipa-pure-const.c (analyze_function): Same.
16179         (pure_const_read_summary): Same.
16180         * ipa-ref.h: Same.
16181         * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
16182         * ipa-split.c (test_nonssa_use): Same.
16183         (dump_split_point): Same.
16184         (dominated_by_forbidden): Same.
16185         (split_part_set_ssa_name_p): Same.
16186         (find_split_points): Same.
16187         * ira-build.c (finish_loop_tree_nodes): Same.
16188         (low_pressure_loop_node_p): Same.
16189         * ira-color.c (ira_reuse_stack_slot): Same.
16190         * ira-int.h: Same.
16191         * ira.c (setup_reg_equiv): Same.
16192         (print_insn_chain): Same.
16193         (ira): Same.
16194         * loop-doloop.c (doloop_condition_get): Same.
16195         (add_test): Same.
16196         (record_reg_sets): Same.
16197         (doloop_optimize): Same.
16198         * loop-init.c (loop_optimizer_init): Same.
16199         (fix_loop_structure): Same.
16200         * loop-invariant.c (merge_identical_invariants): Same.
16201         (compute_always_reached): Same.
16202         (find_exits): Same.
16203         (may_assign_reg_p): Same.
16204         (find_invariants_bb): Same.
16205         (find_invariants_body): Same.
16206         (replace_uses): Same.
16207         (can_move_invariant_reg): Same.
16208         (free_inv_motion_data): Same.
16209         (move_single_loop_invariants): Same.
16210         (change_pressure): Same.
16211         (mark_ref_regs): Same.
16212         (calculate_loop_reg_pressure): Same.
16213         * loop-iv.c (biv_entry_hasher::equal): Same.
16214         (iv_extend_to_rtx_code): Same.
16215         (check_iv_ref_table_size): Same.
16216         (clear_iv_info): Same.
16217         (latch_dominating_def): Same.
16218         (iv_get_reaching_def): Same.
16219         (iv_constant): Same.
16220         (iv_subreg): Same.
16221         (iv_extend): Same.
16222         (iv_neg): Same.
16223         (iv_add): Same.
16224         (iv_mult): Same.
16225         (get_biv_step): Same.
16226         (record_iv): Same.
16227         (analyzed_for_bivness_p): Same.
16228         (record_biv): Same.
16229         (iv_analyze_biv): Same.
16230         (iv_analyze_expr): Same.
16231         (iv_analyze_def): Same.
16232         (iv_analyze_op): Same.
16233         (iv_analyze): Same.
16234         (iv_analyze_result): Same.
16235         (biv_p): Same.
16236         (eliminate_implied_conditions): Same.
16237         (simplify_using_initial_values): Same.
16238         (shorten_into_mode): Same.
16239         (canonicalize_iv_subregs): Same.
16240         (determine_max_iter): Same.
16241         (check_simple_exit): Same.
16242         (find_simple_exit): Same.
16243         (get_simple_loop_desc): Same.
16244         * loop-unroll.c (report_unroll): Same.
16245         (decide_unrolling): Same.
16246         (unroll_loops): Same.
16247         (loop_exit_at_end_p): Same.
16248         (decide_unroll_constant_iterations): Same.
16249         (unroll_loop_constant_iterations): Same.
16250         (compare_and_jump_seq): Same.
16251         (unroll_loop_runtime_iterations): Same.
16252         (decide_unroll_stupid): Same.
16253         (unroll_loop_stupid): Same.
16254         (referenced_in_one_insn_in_loop_p): Same.
16255         (reset_debug_uses_in_loop): Same.
16256         (analyze_iv_to_split_insn): Same.
16257         * lra-eliminations.c (lra_debug_elim_table): Same.
16258         (setup_can_eliminate): Same.
16259         (form_sum): Same.
16260         (lra_get_elimination_hard_regno): Same.
16261         (lra_eliminate_regs_1): Same.
16262         (eliminate_regs_in_insn): Same.
16263         (update_reg_eliminate): Same.
16264         (init_elimination): Same.
16265         (lra_eliminate): Same.
16266         * lra-int.h: Same.
16267         * lra-lives.c (initiate_live_solver): Same.
16268         * lra-remat.c (create_remat_bb_data): Same.
16269         * lra-spills.c (lra_spill): Same.
16270         * lra.c (lra_set_insn_recog_data): Same.
16271         (lra_set_used_insn_alternative_by_uid): Same.
16272         (init_reg_info): Same.
16273         (expand_reg_info): Same.
16274         * lto-cgraph.c (output_symtab): Same.
16275         (read_identifier): Same.
16276         (get_alias_symbol): Same.
16277         (input_node): Same.
16278         (input_varpool_node): Same.
16279         (input_ref): Same.
16280         (input_edge): Same.
16281         (input_cgraph_1): Same.
16282         (input_refs): Same.
16283         (input_symtab): Same.
16284         (input_offload_tables): Same.
16285         (output_cgraph_opt_summary): Same.
16286         (input_edge_opt_summary): Same.
16287         (input_cgraph_opt_section): Same.
16288         * lto-section-in.c (lto_free_raw_section_data): Same.
16289         (lto_create_simple_input_block): Same.
16290         (lto_free_function_in_decl_state_for_node): Same.
16291         * lto-streamer-in.c (lto_tag_check_set): Same.
16292         (lto_location_cache::revert_location_cache): Same.
16293         (lto_location_cache::input_location): Same.
16294         (lto_input_location): Same.
16295         (stream_input_location_now): Same.
16296         (lto_input_tree_ref): Same.
16297         (lto_input_eh_catch_list): Same.
16298         (input_eh_region): Same.
16299         (lto_init_eh): Same.
16300         (make_new_block): Same.
16301         (input_cfg): Same.
16302         (fixup_call_stmt_edges): Same.
16303         (input_struct_function_base): Same.
16304         (input_function): Same.
16305         (lto_read_body_or_constructor): Same.
16306         (lto_read_tree_1): Same.
16307         (lto_read_tree): Same.
16308         (lto_input_scc): Same.
16309         (lto_input_tree_1): Same.
16310         (lto_input_toplevel_asms): Same.
16311         (lto_input_mode_table): Same.
16312         (lto_reader_init): Same.
16313         (lto_data_in_create): Same.
16314         * lto-streamer-out.c (output_cfg): Same.
16315         * lto-streamer.h: Same.
16316         * modulo-sched.c (duplicate_insns_of_cycles): Same.
16317         (generate_prolog_epilog): Same.
16318         (mark_loop_unsched): Same.
16319         (dump_insn_location): Same.
16320         (loop_canon_p): Same.
16321         (sms_schedule): Same.
16322         * omp-expand.c (expand_omp_for_ordered_loops): Same.
16323         (expand_omp_for_generic): Same.
16324         (expand_omp_for_static_nochunk): Same.
16325         (expand_omp_for_static_chunk): Same.
16326         (expand_omp_simd): Same.
16327         (expand_omp_taskloop_for_inner): Same.
16328         (expand_oacc_for): Same.
16329         (expand_omp_atomic_pipeline): Same.
16330         (mark_loops_in_oacc_kernels_region): Same.
16331         * omp-offload.c (oacc_xform_loop): Same.
16332         * omp-simd-clone.c (simd_clone_adjust): Same.
16333         * optabs-query.c (get_traditional_extraction_insn): Same.
16334         * optabs.c (expand_vector_broadcast): Same.
16335         (expand_binop_directly): Same.
16336         (expand_twoval_unop): Same.
16337         (expand_twoval_binop): Same.
16338         (expand_unop_direct): Same.
16339         (emit_indirect_jump): Same.
16340         (emit_conditional_move): Same.
16341         (emit_conditional_neg_or_complement): Same.
16342         (emit_conditional_add): Same.
16343         (vector_compare_rtx): Same.
16344         (expand_vec_perm_1): Same.
16345         (expand_vec_perm_const): Same.
16346         (expand_vec_cond_expr): Same.
16347         (expand_vec_series_expr): Same.
16348         (maybe_emit_atomic_exchange): Same.
16349         (maybe_emit_sync_lock_test_and_set): Same.
16350         (expand_atomic_compare_and_swap): Same.
16351         (expand_atomic_load): Same.
16352         (expand_atomic_store): Same.
16353         (maybe_emit_op): Same.
16354         (valid_multiword_target_p): Same.
16355         (create_integer_operand): Same.
16356         (maybe_legitimize_operand_same_code): Same.
16357         (maybe_legitimize_operand): Same.
16358         (create_convert_operand_from_type): Same.
16359         (can_reuse_operands_p): Same.
16360         (maybe_legitimize_operands): Same.
16361         (maybe_gen_insn): Same.
16362         (maybe_expand_insn): Same.
16363         (maybe_expand_jump_insn): Same.
16364         (expand_insn): Same.
16365         * optabs.h (create_expand_operand): Same.
16366         (create_fixed_operand): Same.
16367         (create_output_operand): Same.
16368         (create_input_operand): Same.
16369         (create_convert_operand_to): Same.
16370         (create_convert_operand_from): Same.
16371         * optinfo.h: Same.
16372         * poly-int.h: Same.
16373         * predict.c (optimize_insn_for_speed_p): Same.
16374         (optimize_loop_for_size_p): Same.
16375         (optimize_loop_for_speed_p): Same.
16376         (optimize_loop_nest_for_speed_p): Same.
16377         (get_base_value): Same.
16378         (predicted_by_loop_heuristics_p): Same.
16379         (predict_extra_loop_exits): Same.
16380         (predict_loops): Same.
16381         (predict_paths_for_bb): Same.
16382         (predict_paths_leading_to): Same.
16383         (propagate_freq): Same.
16384         (pass_profile::execute): Same.
16385         * predict.h: Same.
16386         * profile-count.c (profile_count::differs_from_p): Same.
16387         (profile_probability::differs_lot_from_p): Same.
16388         * profile-count.h: Same.
16389         * profile.c (branch_prob): Same.
16390         * regrename.c (free_chain_data): Same.
16391         (mark_conflict): Same.
16392         (create_new_chain): Same.
16393         (merge_overlapping_regs): Same.
16394         (init_rename_info): Same.
16395         (merge_chains): Same.
16396         (regrename_analyze): Same.
16397         (regrename_do_replace): Same.
16398         (scan_rtx_reg): Same.
16399         (record_out_operands): Same.
16400         (build_def_use): Same.
16401         * regrename.h: Same.
16402         * reload.h: Same.
16403         * reload1.c (init_reload): Same.
16404         (maybe_fix_stack_asms): Same.
16405         (copy_reloads): Same.
16406         (count_pseudo): Same.
16407         (count_spilled_pseudo): Same.
16408         (find_reg): Same.
16409         (find_reload_regs): Same.
16410         (select_reload_regs): Same.
16411         (spill_hard_reg): Same.
16412         (fixup_eh_region_note): Same.
16413         (set_reload_reg): Same.
16414         (allocate_reload_reg): Same.
16415         (compute_reload_subreg_offset): Same.
16416         (reload_adjust_reg_for_icode): Same.
16417         (emit_input_reload_insns): Same.
16418         (emit_output_reload_insns): Same.
16419         (do_input_reload): Same.
16420         (inherit_piecemeal_p): Same.
16421         * rtl.h: Same.
16422         * sanopt.c (maybe_get_dominating_check): Same.
16423         (maybe_optimize_ubsan_ptr_ifn): Same.
16424         (can_remove_asan_check): Same.
16425         (maybe_optimize_asan_check_ifn): Same.
16426         (sanopt_optimize_walker): Same.
16427         * sched-deps.c (add_dependence_list): Same.
16428         (chain_to_prev_insn): Same.
16429         (add_insn_mem_dependence): Same.
16430         (create_insn_reg_set): Same.
16431         (maybe_extend_reg_info_p): Same.
16432         (sched_analyze_reg): Same.
16433         (sched_analyze_1): Same.
16434         (get_implicit_reg_pending_clobbers): Same.
16435         (chain_to_prev_insn_p): Same.
16436         (deps_analyze_insn): Same.
16437         (deps_start_bb): Same.
16438         (sched_free_deps): Same.
16439         (init_deps): Same.
16440         (init_deps_reg_last): Same.
16441         (free_deps): Same.
16442         * sched-ebb.c: Same.
16443         * sched-int.h: Same.
16444         * sched-rgn.c (add_branch_dependences): Same.
16445         (concat_insn_mem_list): Same.
16446         (deps_join): Same.
16447         (sched_rgn_compute_dependencies): Same.
16448         * sel-sched-ir.c (reset_target_context): Same.
16449         (copy_deps_context): Same.
16450         (init_id_from_df): Same.
16451         (has_dependence_p): Same.
16452         (change_loops_latches): Same.
16453         (bb_top_order_comparator): Same.
16454         (make_region_from_loop_preheader): Same.
16455         (sel_init_pipelining): Same.
16456         (get_loop_nest_for_rgn): Same.
16457         (make_regions_from_the_rest): Same.
16458         (sel_is_loop_preheader_p): Same.
16459         * sel-sched-ir.h (inner_loop_header_p): Same.
16460         (get_all_loop_exits): Same.
16461         * selftest.h: Same.
16462         * sese.c (sese_build_liveouts): Same.
16463         (sese_insert_phis_for_liveouts): Same.
16464         * sese.h (defined_in_sese_p): Same.
16465         * sreal.c (sreal::stream_out): Same.
16466         * sreal.h: Same.
16467         * streamer-hooks.h: Same.
16468         * target-globals.c (save_target_globals): Same.
16469         * target-globals.h: Same.
16470         * target.def: Same.
16471         * target.h: Same.
16472         * targhooks.c (default_has_ifunc_p): Same.
16473         (default_empty_mask_is_expensive): Same.
16474         (default_init_cost): Same.
16475         * targhooks.h: Same.
16476         * toplev.c: Same.
16477         * tree-affine.c (aff_combination_mult): Same.
16478         (aff_combination_expand): Same.
16479         (aff_combination_constant_multiple_p): Same.
16480         * tree-affine.h: Same.
16481         * tree-cfg.c (build_gimple_cfg): Same.
16482         (replace_loop_annotate_in_block): Same.
16483         (replace_uses_by): Same.
16484         (remove_bb): Same.
16485         (dump_cfg_stats): Same.
16486         (gimple_duplicate_sese_region): Same.
16487         (gimple_duplicate_sese_tail): Same.
16488         (move_block_to_fn): Same.
16489         (replace_block_vars_by_duplicates): Same.
16490         (move_sese_region_to_fn): Same.
16491         (print_loops_bb): Same.
16492         (print_loop): Same.
16493         (print_loops): Same.
16494         (debug): Same.
16495         (debug_loops): Same.
16496         * tree-cfg.h: Same.
16497         * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
16498         (chrec_fold_multiply_poly_poly): Same.
16499         (chrec_evaluate): Same.
16500         (chrec_component_in_loop_num): Same.
16501         (reset_evolution_in_loop): Same.
16502         (is_multivariate_chrec): Same.
16503         (chrec_contains_symbols): Same.
16504         (nb_vars_in_chrec): Same.
16505         (chrec_convert_1): Same.
16506         (chrec_convert_aggressive): Same.
16507         * tree-chrec.h: Same.
16508         * tree-core.h: Same.
16509         * tree-data-ref.c (dump_data_dependence_relation): Same.
16510         (canonicalize_base_object_address): Same.
16511         (data_ref_compare_tree): Same.
16512         (prune_runtime_alias_test_list): Same.
16513         (get_segment_min_max): Same.
16514         (create_intersect_range_checks): Same.
16515         (conflict_fn_no_dependence): Same.
16516         (object_address_invariant_in_loop_p): Same.
16517         (analyze_ziv_subscript): Same.
16518         (analyze_siv_subscript_cst_affine): Same.
16519         (analyze_miv_subscript): Same.
16520         (analyze_overlapping_iterations): Same.
16521         (build_classic_dist_vector_1): Same.
16522         (add_other_self_distances): Same.
16523         (same_access_functions): Same.
16524         (build_classic_dir_vector): Same.
16525         (subscript_dependence_tester_1): Same.
16526         (subscript_dependence_tester): Same.
16527         (access_functions_are_affine_or_constant_p): Same.
16528         (get_references_in_stmt): Same.
16529         (loop_nest_has_data_refs): Same.
16530         (graphite_find_data_references_in_stmt): Same.
16531         (find_data_references_in_bb): Same.
16532         (get_base_for_alignment): Same.
16533         (find_loop_nest_1): Same.
16534         (find_loop_nest): Same.
16535         * tree-data-ref.h (dr_alignment): Same.
16536         (ddr_dependence_level): Same.
16537         * tree-if-conv.c (fold_build_cond_expr): Same.
16538         (add_to_predicate_list): Same.
16539         (add_to_dst_predicate_list): Same.
16540         (phi_convertible_by_degenerating_args): Same.
16541         (idx_within_array_bound): Same.
16542         (all_preds_critical_p): Same.
16543         (pred_blocks_visited_p): Same.
16544         (predicate_bbs): Same.
16545         (build_region): Same.
16546         (if_convertible_loop_p_1): Same.
16547         (is_cond_scalar_reduction): Same.
16548         (predicate_scalar_phi): Same.
16549         (remove_conditions_and_labels): Same.
16550         (combine_blocks): Same.
16551         (version_loop_for_if_conversion): Same.
16552         (versionable_outer_loop_p): Same.
16553         (ifcvt_local_dce): Same.
16554         (tree_if_conversion): Same.
16555         (pass_if_conversion::gate): Same.
16556         * tree-if-conv.h: Same.
16557         * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
16558         * tree-loop-distribution.c (bb_top_order_cmp): Same.
16559         (free_rdg): Same.
16560         (stmt_has_scalar_dependences_outside_loop): Same.
16561         (copy_loop_before): Same.
16562         (create_bb_after_loop): Same.
16563         (const_with_all_bytes_same): Same.
16564         (generate_memset_builtin): Same.
16565         (generate_memcpy_builtin): Same.
16566         (destroy_loop): Same.
16567         (build_rdg_partition_for_vertex): Same.
16568         (compute_access_range): Same.
16569         (data_ref_segment_size): Same.
16570         (latch_dominated_by_data_ref): Same.
16571         (compute_alias_check_pairs): Same.
16572         (fuse_memset_builtins): Same.
16573         (finalize_partitions): Same.
16574         (find_seed_stmts_for_distribution): Same.
16575         (prepare_perfect_loop_nest): Same.
16576         * tree-parloops.c (lambda_transform_legal_p): Same.
16577         (loop_parallel_p): Same.
16578         (reduc_stmt_res): Same.
16579         (add_field_for_name): Same.
16580         (create_call_for_reduction_1): Same.
16581         (replace_uses_in_bb_by): Same.
16582         (transform_to_exit_first_loop_alt): Same.
16583         (try_transform_to_exit_first_loop_alt): Same.
16584         (transform_to_exit_first_loop): Same.
16585         (num_phis): Same.
16586         (gen_parallel_loop): Same.
16587         (gather_scalar_reductions): Same.
16588         (get_omp_data_i_param): Same.
16589         (try_create_reduction_list): Same.
16590         (oacc_entry_exit_single_gang): Same.
16591         (parallelize_loops): Same.
16592         * tree-pass.h: Same.
16593         * tree-predcom.c (determine_offset): Same.
16594         (last_always_executed_block): Same.
16595         (split_data_refs_to_components): Same.
16596         (suitable_component_p): Same.
16597         (valid_initializer_p): Same.
16598         (find_looparound_phi): Same.
16599         (insert_looparound_copy): Same.
16600         (add_looparound_copies): Same.
16601         (determine_roots_comp): Same.
16602         (predcom_tmp_var): Same.
16603         (initialize_root_vars): Same.
16604         (initialize_root_vars_store_elim_1): Same.
16605         (initialize_root_vars_store_elim_2): Same.
16606         (finalize_eliminated_stores): Same.
16607         (initialize_root_vars_lm): Same.
16608         (remove_stmt): Same.
16609         (determine_unroll_factor): Same.
16610         (execute_pred_commoning_cbck): Same.
16611         (base_names_in_chain_on): Same.
16612         (combine_chains): Same.
16613         (pcom_stmt_dominates_stmt_p): Same.
16614         (try_combine_chains): Same.
16615         (prepare_initializers_chain_store_elim): Same.
16616         (prepare_initializers_chain): Same.
16617         (prepare_initializers): Same.
16618         (prepare_finalizers_chain): Same.
16619         (prepare_finalizers): Same.
16620         (insert_init_seqs): Same.
16621         * tree-scalar-evolution.c (loop_phi_node_p): Same.
16622         (compute_overall_effect_of_inner_loop): Same.
16623         (add_to_evolution_1): Same.
16624         (add_to_evolution): Same.
16625         (follow_ssa_edge_binary): Same.
16626         (follow_ssa_edge_expr): Same.
16627         (backedge_phi_arg_p): Same.
16628         (follow_ssa_edge_in_condition_phi_branch): Same.
16629         (follow_ssa_edge_in_condition_phi): Same.
16630         (follow_ssa_edge_inner_loop_phi): Same.
16631         (follow_ssa_edge): Same.
16632         (analyze_evolution_in_loop): Same.
16633         (analyze_initial_condition): Same.
16634         (interpret_loop_phi): Same.
16635         (interpret_condition_phi): Same.
16636         (interpret_rhs_expr): Same.
16637         (interpret_expr): Same.
16638         (interpret_gimple_assign): Same.
16639         (analyze_scalar_evolution_1): Same.
16640         (analyze_scalar_evolution): Same.
16641         (analyze_scalar_evolution_for_address_of): Same.
16642         (get_instantiated_value_entry): Same.
16643         (loop_closed_phi_def): Same.
16644         (instantiate_scev_name): Same.
16645         (instantiate_scev_poly): Same.
16646         (instantiate_scev_binary): Same.
16647         (instantiate_scev_convert): Same.
16648         (instantiate_scev_not): Same.
16649         (instantiate_scev_r): Same.
16650         (instantiate_scev): Same.
16651         (resolve_mixers): Same.
16652         (initialize_scalar_evolutions_analyzer): Same.
16653         (scev_reset_htab): Same.
16654         (scev_reset): Same.
16655         (derive_simple_iv_with_niters): Same.
16656         (simple_iv_with_niters): Same.
16657         (expression_expensive_p): Same.
16658         (final_value_replacement_loop): Same.
16659         * tree-scalar-evolution.h (block_before_loop): Same.
16660         * tree-ssa-address.h: Same.
16661         * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
16662         * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
16663         (record_edge_info): Same.
16664         * tree-ssa-live.c (var_map_base_fini): Same.
16665         (remove_unused_locals): Same.
16666         * tree-ssa-live.h: Same.
16667         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
16668         (pass_ch_vect::execute): Same.
16669         (pass_ch::process_loop_p): Same.
16670         * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
16671         (movement_possibility): Same.
16672         (outermost_invariant_loop): Same.
16673         (stmt_cost): Same.
16674         (determine_max_movement): Same.
16675         (invariantness_dom_walker::before_dom_children): Same.
16676         (move_computations): Same.
16677         (may_move_till): Same.
16678         (force_move_till_op): Same.
16679         (force_move_till): Same.
16680         (memref_free): Same.
16681         (record_mem_ref_loc): Same.
16682         (set_ref_stored_in_loop): Same.
16683         (mark_ref_stored): Same.
16684         (sort_bbs_in_loop_postorder_cmp): Same.
16685         (sort_locs_in_loop_postorder_cmp): Same.
16686         (analyze_memory_references): Same.
16687         (mem_refs_may_alias_p): Same.
16688         (find_ref_loc_in_loop_cmp): Same.
16689         (rewrite_mem_ref_loc::operator): Same.
16690         (first_mem_ref_loc_1::operator): Same.
16691         (sm_set_flag_if_changed::operator): Same.
16692         (execute_sm_if_changed_flag_set): Same.
16693         (execute_sm): Same.
16694         (hoist_memory_references): Same.
16695         (ref_always_accessed::operator): Same.
16696         (refs_independent_p): Same.
16697         (record_dep_loop): Same.
16698         (ref_indep_loop_p_1): Same.
16699         (ref_indep_loop_p): Same.
16700         (can_sm_ref_p): Same.
16701         (find_refs_for_sm): Same.
16702         (loop_suitable_for_sm): Same.
16703         (store_motion_loop): Same.
16704         (store_motion): Same.
16705         (fill_always_executed_in): Same.
16706         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
16707         (estimated_unrolled_size): Same.
16708         (loop_edge_to_cancel): Same.
16709         (remove_exits_and_undefined_stmts): Same.
16710         (remove_redundant_iv_tests): Same.
16711         (unloop_loops): Same.
16712         (estimated_peeled_sequence_size): Same.
16713         (try_peel_loop): Same.
16714         (canonicalize_loop_induction_variables): Same.
16715         (canonicalize_induction_variables): Same.
16716         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
16717         (name_info): Same.
16718         (stmt_after_inc_pos): Same.
16719         (contains_abnormal_ssa_name_p): Same.
16720         (niter_for_exit): Same.
16721         (find_bivs): Same.
16722         (mark_bivs): Same.
16723         (find_givs_in_bb): Same.
16724         (find_induction_variables): Same.
16725         (find_interesting_uses_cond): Same.
16726         (outermost_invariant_loop_for_expr): Same.
16727         (idx_find_step): Same.
16728         (add_candidate_1): Same.
16729         (add_iv_candidate_derived_from_uses): Same.
16730         (alloc_use_cost_map): Same.
16731         (prepare_decl_rtl): Same.
16732         (generic_predict_doloop_p): Same.
16733         (computation_cost): Same.
16734         (determine_common_wider_type): Same.
16735         (get_computation_aff_1): Same.
16736         (get_use_type): Same.
16737         (determine_group_iv_cost_address): Same.
16738         (iv_period): Same.
16739         (difference_cannot_overflow_p): Same.
16740         (may_eliminate_iv): Same.
16741         (determine_set_costs): Same.
16742         (cheaper_cost_pair): Same.
16743         (compare_cost_pair): Same.
16744         (iv_ca_cand_for_group): Same.
16745         (iv_ca_recount_cost): Same.
16746         (iv_ca_set_remove_invs): Same.
16747         (iv_ca_set_no_cp): Same.
16748         (iv_ca_set_add_invs): Same.
16749         (iv_ca_set_cp): Same.
16750         (iv_ca_add_group): Same.
16751         (iv_ca_cost): Same.
16752         (iv_ca_compare_deps): Same.
16753         (iv_ca_delta_reverse): Same.
16754         (iv_ca_delta_commit): Same.
16755         (iv_ca_cand_used_p): Same.
16756         (iv_ca_delta_free): Same.
16757         (iv_ca_new): Same.
16758         (iv_ca_free): Same.
16759         (iv_ca_dump): Same.
16760         (iv_ca_extend): Same.
16761         (iv_ca_narrow): Same.
16762         (iv_ca_prune): Same.
16763         (cheaper_cost_with_cand): Same.
16764         (iv_ca_replace): Same.
16765         (try_add_cand_for): Same.
16766         (get_initial_solution): Same.
16767         (try_improve_iv_set): Same.
16768         (find_optimal_iv_set_1): Same.
16769         (create_new_iv): Same.
16770         (rewrite_use_compare): Same.
16771         (remove_unused_ivs): Same.
16772         (determine_scaling_factor): Same.
16773         * tree-ssa-loop-ivopts.h: Same.
16774         * tree-ssa-loop-manip.c (create_iv): Same.
16775         (compute_live_loop_exits): Same.
16776         (add_exit_phi): Same.
16777         (add_exit_phis): Same.
16778         (find_uses_to_rename_use): Same.
16779         (find_uses_to_rename_def): Same.
16780         (find_uses_to_rename_in_loop): Same.
16781         (rewrite_into_loop_closed_ssa): Same.
16782         (check_loop_closed_ssa_bb): Same.
16783         (split_loop_exit_edge): Same.
16784         (ip_end_pos): Same.
16785         (ip_normal_pos): Same.
16786         (copy_phi_node_args): Same.
16787         (gimple_duplicate_loop_to_header_edge): Same.
16788         (can_unroll_loop_p): Same.
16789         (determine_exit_conditions): Same.
16790         (scale_dominated_blocks_in_loop): Same.
16791         (niter_for_unrolled_loop): Same.
16792         (tree_transform_and_unroll_loop): Same.
16793         (rewrite_all_phi_nodes_with_iv): Same.
16794         * tree-ssa-loop-manip.h: Same.
16795         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
16796         (number_of_iterations_ne): Same.
16797         (assert_no_overflow_lt): Same.
16798         (assert_loop_rolls_lt): Same.
16799         (number_of_iterations_lt): Same.
16800         (adjust_cond_for_loop_until_wrap): Same.
16801         (tree_simplify_using_condition): Same.
16802         (simplify_using_initial_conditions): Same.
16803         (simplify_using_outer_evolutions): Same.
16804         (loop_only_exit_p): Same.
16805         (ssa_defined_by_minus_one_stmt_p): Same.
16806         (number_of_iterations_popcount): Same.
16807         (number_of_iterations_exit): Same.
16808         (find_loop_niter): Same.
16809         (finite_loop_p): Same.
16810         (chain_of_csts_start): Same.
16811         (get_val_for): Same.
16812         (loop_niter_by_eval): Same.
16813         (derive_constant_upper_bound_ops): Same.
16814         (do_warn_aggressive_loop_optimizations): Same.
16815         (record_estimate): Same.
16816         (get_cst_init_from_scev): Same.
16817         (record_nonwrapping_iv): Same.
16818         (idx_infer_loop_bounds): Same.
16819         (infer_loop_bounds_from_ref): Same.
16820         (infer_loop_bounds_from_array): Same.
16821         (infer_loop_bounds_from_pointer_arith): Same.
16822         (infer_loop_bounds_from_signedness): Same.
16823         (bound_index): Same.
16824         (discover_iteration_bound_by_body_walk): Same.
16825         (maybe_lower_iteration_bound): Same.
16826         (estimate_numbers_of_iterations): Same.
16827         (estimated_loop_iterations): Same.
16828         (estimated_loop_iterations_int): Same.
16829         (max_loop_iterations): Same.
16830         (max_loop_iterations_int): Same.
16831         (likely_max_loop_iterations): Same.
16832         (likely_max_loop_iterations_int): Same.
16833         (estimated_stmt_executions_int): Same.
16834         (max_stmt_executions): Same.
16835         (likely_max_stmt_executions): Same.
16836         (estimated_stmt_executions): Same.
16837         (stmt_dominates_stmt_p): Same.
16838         (nowrap_type_p): Same.
16839         (loop_exits_before_overflow): Same.
16840         (scev_var_range_cant_overflow): Same.
16841         (scev_probably_wraps_p): Same.
16842         (free_numbers_of_iterations_estimates): Same.
16843         * tree-ssa-loop-niter.h: Same.
16844         * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
16845         (idx_analyze_ref): Same.
16846         (analyze_ref): Same.
16847         (gather_memory_references_ref): Same.
16848         (mark_nontemporal_store): Same.
16849         (emit_mfence_after_loop): Same.
16850         (may_use_storent_in_loop_p): Same.
16851         (mark_nontemporal_stores): Same.
16852         (should_unroll_loop_p): Same.
16853         (volume_of_dist_vector): Same.
16854         (add_subscript_strides): Same.
16855         (self_reuse_distance): Same.
16856         (insn_to_prefetch_ratio_too_small_p): Same.
16857         * tree-ssa-loop-split.c (split_at_bb_p): Same.
16858         (patch_loop_exit): Same.
16859         (find_or_create_guard_phi): Same.
16860         (easy_exit_values): Same.
16861         (connect_loop_phis): Same.
16862         (connect_loops): Same.
16863         (compute_new_first_bound): Same.
16864         (split_loop): Same.
16865         (tree_ssa_split_loops): Same.
16866         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
16867         (is_maybe_undefined): Same.
16868         (tree_may_unswitch_on): Same.
16869         (simplify_using_entry_checks): Same.
16870         (tree_unswitch_single_loop): Same.
16871         (tree_unswitch_loop): Same.
16872         (tree_unswitch_outer_loop): Same.
16873         (empty_bb_without_guard_p): Same.
16874         (used_outside_loop_p): Same.
16875         (get_vop_from_header): Same.
16876         (hoist_guard): Same.
16877         * tree-ssa-loop.c (gate_oacc_kernels): Same.
16878         (get_lsm_tmp_name): Same.
16879         * tree-ssa-loop.h: Same.
16880         * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
16881         (build_and_add_sum): Same.
16882         (no_side_effect_bb): Same.
16883         (get_ops): Same.
16884         (linearize_expr): Same.
16885         (should_break_up_subtract): Same.
16886         (linearize_expr_tree): Same.
16887         * tree-ssa-scopedtables.c: Same.
16888         * tree-ssa-scopedtables.h: Same.
16889         * tree-ssa-structalias.c (condense_visit): Same.
16890         (label_visit): Same.
16891         (dump_pred_graph): Same.
16892         (perform_var_substitution): Same.
16893         (move_complex_constraints): Same.
16894         (remove_preds_and_fake_succs): Same.
16895         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
16896         (determine_bb_domination_status): Same.
16897         (duplicate_thread_path): Same.
16898         (thread_through_all_blocks): Same.
16899         * tree-ssa-threadupdate.h: Same.
16900         * tree-streamer-in.c (streamer_read_string_cst): Same.
16901         (input_identifier): Same.
16902         (unpack_ts_type_common_value_fields): Same.
16903         (unpack_ts_block_value_fields): Same.
16904         (unpack_ts_translation_unit_decl_value_fields): Same.
16905         (unpack_ts_omp_clause_value_fields): Same.
16906         (streamer_read_tree_bitfields): Same.
16907         (streamer_alloc_tree): Same.
16908         (lto_input_ts_common_tree_pointers): Same.
16909         (lto_input_ts_vector_tree_pointers): Same.
16910         (lto_input_ts_poly_tree_pointers): Same.
16911         (lto_input_ts_complex_tree_pointers): Same.
16912         (lto_input_ts_decl_minimal_tree_pointers): Same.
16913         (lto_input_ts_decl_common_tree_pointers): Same.
16914         (lto_input_ts_decl_non_common_tree_pointers): Same.
16915         (lto_input_ts_decl_with_vis_tree_pointers): Same.
16916         (lto_input_ts_field_decl_tree_pointers): Same.
16917         (lto_input_ts_function_decl_tree_pointers): Same.
16918         (lto_input_ts_type_common_tree_pointers): Same.
16919         (lto_input_ts_type_non_common_tree_pointers): Same.
16920         (lto_input_ts_list_tree_pointers): Same.
16921         (lto_input_ts_vec_tree_pointers): Same.
16922         (lto_input_ts_exp_tree_pointers): Same.
16923         (lto_input_ts_block_tree_pointers): Same.
16924         (lto_input_ts_binfo_tree_pointers): Same.
16925         (lto_input_ts_constructor_tree_pointers): Same.
16926         (lto_input_ts_omp_clause_tree_pointers): Same.
16927         (streamer_read_tree_body): Same.
16928         * tree-streamer.h: Same.
16929         * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
16930         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
16931         (vect_analyze_possibly_independent_ddr): Same.
16932         (vect_analyze_data_ref_dependence): Same.
16933         (vect_compute_data_ref_alignment): Same.
16934         (vect_enhance_data_refs_alignment): Same.
16935         (vect_analyze_data_ref_access): Same.
16936         (vect_check_gather_scatter): Same.
16937         (vect_find_stmt_data_reference): Same.
16938         (vect_create_addr_base_for_vector_ref): Same.
16939         (vect_setup_realignment): Same.
16940         (vect_supportable_dr_alignment): Same.
16941         * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
16942         (adjust_phi_and_debug_stmts): Same.
16943         (vect_set_loop_mask): Same.
16944         (add_preheader_seq): Same.
16945         (vect_maybe_permute_loop_masks): Same.
16946         (vect_set_loop_masks_directly): Same.
16947         (vect_set_loop_condition_masked): Same.
16948         (vect_set_loop_condition_unmasked): Same.
16949         (slpeel_duplicate_current_defs_from_edges): Same.
16950         (slpeel_add_loop_guard): Same.
16951         (slpeel_can_duplicate_loop_p): Same.
16952         (create_lcssa_for_virtual_phi): Same.
16953         (iv_phi_p): Same.
16954         (vect_update_ivs_after_vectorizer): Same.
16955         (vect_gen_vector_loop_niters_mult_vf): Same.
16956         (slpeel_update_phi_nodes_for_loops): Same.
16957         (slpeel_update_phi_nodes_for_guard1): Same.
16958         (find_guard_arg): Same.
16959         (slpeel_update_phi_nodes_for_guard2): Same.
16960         (slpeel_update_phi_nodes_for_lcssa): Same.
16961         (vect_do_peeling): Same.
16962         (vect_create_cond_for_alias_checks): Same.
16963         (vect_loop_versioning): Same.
16964         * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
16965         (vect_inner_phi_in_double_reduction_p): Same.
16966         (vect_analyze_scalar_cycles_1): Same.
16967         (vect_fixup_scalar_cycles_with_patterns): Same.
16968         (vect_get_loop_niters): Same.
16969         (bb_in_loop_p): Same.
16970         (vect_get_max_nscalars_per_iter): Same.
16971         (vect_verify_full_masking): Same.
16972         (vect_compute_single_scalar_iteration_cost): Same.
16973         (vect_analyze_loop_form_1): Same.
16974         (vect_analyze_loop_form): Same.
16975         (vect_active_double_reduction_p): Same.
16976         (vect_analyze_loop_operations): Same.
16977         (neutral_op_for_slp_reduction): Same.
16978         (vect_is_simple_reduction): Same.
16979         (vect_model_reduction_cost): Same.
16980         (get_initial_def_for_reduction): Same.
16981         (get_initial_defs_for_reduction): Same.
16982         (vect_create_epilog_for_reduction): Same.
16983         (vectorize_fold_left_reduction): Same.
16984         (vectorizable_reduction): Same.
16985         (vectorizable_induction): Same.
16986         (vectorizable_live_operation): Same.
16987         (loop_niters_no_overflow): Same.
16988         (vect_get_loop_mask): Same.
16989         (vect_transform_loop_stmt): Same.
16990         (vect_transform_loop): Same.
16991         * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
16992         (vect_determine_precisions): Same.
16993         (vect_pattern_recog_1): Same.
16994         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
16995         * tree-vect-stmts.c (stmt_vectype): Same.
16996         (process_use): Same.
16997         (vect_init_vector_1): Same.
16998         (vect_truncate_gather_scatter_offset): Same.
16999         (get_group_load_store_type): Same.
17000         (vect_build_gather_load_calls): Same.
17001         (vect_get_strided_load_store_ops): Same.
17002         (vectorizable_simd_clone_call): Same.
17003         (vectorizable_store): Same.
17004         (permute_vec_elements): Same.
17005         (vectorizable_load): Same.
17006         (vect_transform_stmt): Same.
17007         (supportable_widening_operation): Same.
17008         * tree-vectorizer.c (vec_info::replace_stmt): Same.
17009         (vec_info::free_stmt_vec_info): Same.
17010         (vect_free_loop_info_assumptions): Same.
17011         (vect_loop_vectorized_call): Same.
17012         (set_uid_loop_bbs): Same.
17013         (vectorize_loops): Same.
17014         * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
17015         * tree.c (add_tree_to_fld_list): Same.
17016         (fld_type_variant_equal_p): Same.
17017         (fld_decl_context): Same.
17018         (fld_incomplete_type_of): Same.
17019         (free_lang_data_in_binfo): Same.
17020         (need_assembler_name_p): Same.
17021         (find_decls_types_r): Same.
17022         (get_eh_types_for_runtime): Same.
17023         (find_decls_types_in_eh_region): Same.
17024         (find_decls_types_in_node): Same.
17025         (assign_assembler_name_if_needed): Same.
17026         * value-prof.c (stream_out_histogram_value): Same.
17027         * value-prof.h: Same.
17028         * var-tracking.c (use_narrower_mode): Same.
17029         (prepare_call_arguments): Same.
17030         (vt_expand_loc_callback): Same.
17031         (resolve_expansions_pending_recursion): Same.
17032         (vt_expand_loc): Same.
17033         * varasm.c (const_hash_1): Same.
17034         (compare_constant): Same.
17035         (tree_output_constant_def): Same.
17036         (simplify_subtraction): Same.
17037         (get_pool_constant): Same.
17038         (output_constant_pool_2): Same.
17039         (output_constant_pool_1): Same.
17040         (mark_constants_in_pattern): Same.
17041         (mark_constant_pool): Same.
17042         (get_section_anchor): Same.
17043         * vr-values.c (compare_range_with_value): Same.
17044         (vr_values::extract_range_from_phi_node): Same.
17045         * vr-values.h: Same.
17046         * web.c (unionfind_union): Same.
17047         * wide-int.h: Same.
17049 2019-07-09  Martin Sebor  <msebor@redhat.com>
17051         PR c++/61339
17052         * align.h: Change class-key from class to struct and vice versa
17053         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
17054         * alloc-pool.h: Same.
17055         * asan.c (shadow_mem_size): Same.
17056         * auto-profile.c: Same.
17057         * basic-block.h: Same.
17058         * bitmap.h: Same.
17059         * cfgexpand.c (set_rtl): Same.
17060         (expand_one_stack_var_at): Same.
17061         * cfghooks.h: Same.
17062         * cfgloop.h: Same.
17063         * cgraph.h: Same.
17064         * config/i386/i386.h: Same.
17065         * df-problems.c (df_print_bb_index): Same.
17066         * df-scan.c: Same.
17067         * df.h (df_single_use): Same.
17068         * diagnostic-show-locus.c (layout::print_annotation_line): Same.
17069         (layout::annotation_line_showed_range_p): Same.
17070         (get_printed_columns): Same.
17071         (correction::ensure_terminated): Same.
17072         (line_corrections::~line_corrections): Same.
17073         * dojump.h: Same.
17074         * dse.c: Same.
17075         * dump-context.h: Same.
17076         * dumpfile.h: Same.
17077         * dwarf2out.c: Same.
17078         * edit-context.c: Same.
17079         * fibonacci_heap.c (test_union_of_equal_heaps): Same.
17080         * flags.h: Same.
17081         * function.c (assign_stack_local): Same.
17082         * function.h: Same.
17083         * gcc.c: Same.
17084         * gcov.c (block_info::block_info): Same.
17085         * genattrtab.c: Same.
17086         * genextract.c: Same.
17087         * genmatch.c (comparison_code_p): Same.
17088         (id_base::id_base): Same.
17089         (decision_tree::print): Same.
17090         * genoutput.c: Same.
17091         * genpreds.c (write_one_predicate_function): Same.
17092         * genrecog.c (validate_pattern): Same.
17093         (find_operand_positions): Same.
17094         (optimize_subroutine_group): Same.
17095         (merge_pattern_transition::merge_pattern_transition): Same.
17096         (merge_pattern_info::merge_pattern_info): Same.
17097         (merge_state_result::merge_state_result): Same.
17098         (merge_into_state): Same.
17099         * gensupport.c: Same.
17100         * gensupport.h: Same.
17101         * ggc-common.c (init_ggc_heuristics): Same.
17102         * ggc-tests.c (test_union): Same.
17103         * gimple-loop-interchange.cc (dump_induction): Same.
17104         * gimple-loop-versioning.cc: Same.
17105         * gimple-match.h (gimple_match_cond::any_else): Same.
17106         * gimple-ssa-backprop.c: Same.
17107         * gimple-ssa-sprintf.c: Same.
17108         * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
17109         Same.
17110         (store_immediate_info::store_immediate_info): Same.
17111         (merged_store_group::apply_stores): Same.
17112         (get_location_for_stmts): Same.
17113         * gimple-ssa-strength-reduction.c: Same.
17114         * gimple-ssa-warn-alloca.c: Same.
17115         * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
17116         * godump.c (go_type_decl): Same.
17117         * hash-map-tests.c (test_map_of_strings_to_int): Same.
17118         * hash-map.h: Same.
17119         * hash-set-tests.c (test_set_of_strings): Same.
17120         * hsa-brig.c: Same.
17121         * hsa-common.h: Same.
17122         * hsa-gen.c (transformable_switch_to_sbr_p): Same.
17123         * input.c (assert_loceq): Same.
17124         * input.h: Same.
17125         * ipa-cp.c: Same.
17126         * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
17127         * ipa-fnsummary.h: Same.
17128         * ipa-inline.h: Same.
17129         * ipa-prop.h: Same.
17130         * ipa-split.c (visit_bb): Same.
17131         * ira-int.h (minmax_set_iter_next): Same.
17132         * loop-invariant.c: Same.
17133         * loop-iv.c: Same.
17134         * lra-eliminations.c: Same.
17135         * lra-int.h: Same.
17136         * lra-lives.c (mark_regno_dead): Same.
17137         * lra-remat.c: Same.
17138         * lra-spills.c: Same.
17139         * lto-streamer.h: Same.
17140         * mem-stats.h: Same.
17141         * omp-grid.c (omp_grid_lastprivate_predicate): Same.
17142         * omp-low.c (omp_clause_aligned_alignment): Same.
17143         * optabs-query.h (get_vcond_eq_icode): Same.
17144         * optabs.h: Same.
17145         * opts.c (wrap_help): Same.
17146         * poly-int.h: Same.
17147         * predict.c (predict_paths_leading_to_edge): Same.
17148         * pretty-print.h: Same.
17149         * profile-count.h: Same.
17150         * read-md.h: Same.
17151         * read-rtl-function.c: Same.
17152         * ree.c: Same.
17153         * reginfo.c: Same.
17154         * regrename.c: Same.
17155         * regrename.h: Same.
17156         * reload.h: Same.
17157         * rtl-iter.h: Same.
17158         * rtl.h (costs_add_n_insns): Same.
17159         * sanopt.c: Same.
17160         * sched-int.h: Same.
17161         * sel-sched-ir.h: Same.
17162         * selftest.h: Same.
17163         * sese.h (vec_find): Same.
17164         * stmt.c: Same.
17165         * target-globals.h: Same.
17166         * tree-affine.c (aff_combination_find_elt): Same.
17167         * tree-affine.h: Same.
17168         * tree-data-ref.h: Same.
17169         * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
17170         * tree-predcom.c: Same.
17171         * tree-scalar-evolution.c (find_var_scev_info): Same.
17172         * tree-ssa-alias.h: Same.
17173         * tree-ssa-ccp.c: Same.
17174         * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
17175         * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
17176         (rewrite_mem_refs): Same.
17177         (execute_sm_if_changed): Same.
17178         (hoist_memory_references): Same.
17179         * tree-ssa-loop-ivopts.c (operator<=): Same.
17180         * tree-ssa-loop.h: Same.
17181         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
17182         * tree-ssa-structalias.c: Same.
17183         * tree-switch-conversion.h (cluster::cluster): Same.
17184         (simple_cluster::simple_cluster): Same.
17185         * tree-vect-patterns.c (type_conversion_p): Same.
17186         * tree-vectorizer.c (dump_stmt_cost): Same.
17187         * tree-vectorizer.h (loop_vec_info_for_loop): Same.
17188         * tree.c (protected_set_expr_location): Same.
17189         * tree.h (desired_pro_or_demotion_p): Same.
17190         (fndecl_built_in_p): Same.
17191         * unique-ptr-tests.cc: Same.
17192         * var-tracking.c (delete_variable_part): Same.
17193         * varasm.c (assemble_real): Same.
17194         (tree_output_constant_def): Same.
17195         * vec.c: Same.
17196         * wide-int-bitmask.h: Same.
17197         * wide-int.h (decompose): Same.
17199 2019-07-09  Richard Biener  <rguenther@suse.de>
17201         PR tree-optimization/91114
17202         * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
17203         find a vector type isn't fatal.
17205 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
17207         * config/aarch64/aarch64-simd.md
17208         (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
17209         (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
17210         (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
17211         (*aarch64_crypto_aese_fused,
17212         *aarch64_crypto_aesd_fused): Update to new definition.
17213         * config/aarch64/aarch64.c
17214         (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
17216 2019-07-09  Richard Biener  <rguenther@suse.de>
17218         * gimple-match.h (gimple_match_op::resimplify): New.
17219         (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
17220         gimple_resimplify4, gimple_resimplify5): Remove.
17221         * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
17222         gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
17223         Make static.
17224         (gimple_match_op::resimplify): New.
17225         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
17226         according to availability.  Use gimple_match_op::resimplify.
17228 2019-07-09  Eric Botcazou  <ebotcazou@adacore.com>
17230         * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
17232 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
17234         * config/arm/crypto.md:
17235         (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
17236         (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
17237         (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
17238         (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
17239         * config/arm/arm.c
17240         (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
17241         * config/arm/aarch-common-protos.h
17242         (aarch_crypto_can_dual_issue): Remove.
17243         * config/arm/aarch-common.c
17244         (aarch_crypto_can_dual_issue): Likewise.
17245         * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
17246         * config/arm/cortex-a53.md: Likewise.
17247         * config/arm/cortex-a57.md: Likewise.
17248         * config/arm/iterators.md:
17249         (CRYPTO_BINARY): Redefine.
17250         (CRYPTO_UNARY): Removed.
17251         (CRYPTO_AES, CRYPTO_AESMC): New.
17253 2019-07-09  Richard Biener  <rguenther@suse.de>
17255         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
17256         (vn_reference_lookup_3): If the main ref has no access path recorded
17257         but orig_ref has use it to do access-path based disambiguation.
17258         (vn_reference_lookup_pieces): Adjust.
17259         (vn_reference_lookup): Pass down original ref if we valueized.
17261 2019-07-09  Martin Liska  <mliska@suse.cz>
17263         * doc/extend.texi: Document influence on loop
17264         optimizers.
17266 2019-07-09  Martin Liska  <mliska@suse.cz>
17268         * lto-compress.c (lto_normalized_zstd_level): Do not use
17269         ZSTD_CLEVEL_DEFAULT as it is not default in old releases
17270         of libzstd.  One can use 0 as a default compression level.
17272 2019-07-09  Martin Liska  <mliska@suse.cz>
17274         * doc/invoke.texi: Add link from -fprofile-dir option.
17275         Use better wording for 'gcno filename'.
17277 2019-07-08  Martin Sebor  <msebor@redhat.com>
17279         PR middle-end/71924
17280         PR middle-end/90549
17281         * gimple-ssa-isolate-paths.c (isolate_path): Add attribute.  Update
17282         comment.
17283         (args_loc_t): New type.
17284         (args_loc_t, locmap_t): same.
17285         (diag_returned_locals): New function.
17286         (is_addr_local): Same.
17287         (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
17288         (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
17289         (find_explicit_erroneous_behavior): Call warn_return_addr_local.
17291 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
17293         * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
17294         with SSA_NAME address of POINTER_PLUS_EXPR.  Handle MULT_EXPR
17295         and casts in offset when different, both through gimple stmts
17296         and through trees.  Rewritten using loops to minimize code duplication
17297         for each operand.
17299 2019-07-08  Eric Botcazou  <ebotcazou@adacore.com>
17301         * emit-rtl.c (set_insn_locations): New function moved from...
17302         * function.c (set_insn_locations): ...here.
17303         * ira-emit.c (emit_moves): Propagate location of the first instruction
17304         to the inserted move instructions.
17305         * reg-stack.c (compensate_edge): Set the location if the sequence is
17306         inserted on the edge.
17307         * rtl.h (set_insn_locations): Declare.
17309 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
17311         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
17312         OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
17313         .machine string.
17315 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
17317         PR rtl-optimization/88233
17318         * common.opt (fsplit-wide-types-early): New option.
17319         * common/config/rs6000/rs6000-common.c
17320         (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
17321         OPT_LEVELS_ALL.
17322         * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
17323         * lower-subreg.c (pass_lower_subreg2::gate): Add test for
17324         flag_split_wide_types_early.
17325         (pass_data_lower_subreg3): New.
17326         (pass_lower_subreg3): New.
17327         (make_pass_lower_subreg3): New.
17328         * passes.def (pass_lower_subreg2): Move after the loop passes.
17329         (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
17330         * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
17331         the pass pipeline; its previous place is taken by ...
17332         (make_pass_lower_subreg3): ... this.
17334 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
17336         * config/s390/s390.c (s390_shift_truncation_mask): Define.
17337         (TARGET_SHIFT_TRUNCATION_MASK): Define.
17339 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
17341         * config/s390/constraints.md: Add new jsc constraint.
17342         * config/s390/predicates.md: New predicates.
17343         * config/s390/s390-protos.h (s390_valid_shift_count): New function.
17344         * config/s390/s390.c (s390_valid_shift_count): New function.
17345         (print_shift_count_operand): Use s390_valid_shift_count.
17346         (print_operand): Likewise.
17347         * config/s390/s390.md: Use new predicate.
17348         * config/s390/subst.md: Remove addr_style_op and masked_op substs.
17349         * config/s390/vector.md: Use new predicate.
17351 2019-07-08  Andrew Waterman  <andrew@sifive.com>
17352             Jim Wilson  <jimw@sifive.com>
17354         * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
17355         bitsize instead of BITS_PER_WORD.
17357 2019-07-08  Martin Liska  <mliska@suse.cz>
17359         * collect2.c (defined): Revert to before r254460.
17360         (scan_prog_file): Revert to before r254460.
17362 2019-07-08  Richard Biener  <rguenther@suse.de>
17364         PR tree-optimization/83518
17365         * tree-ssa-sccvn.c: Include splay-tree.h.
17366         (struct pd_range, struct pd_data): New.
17367         (struct vn_walk_cb_data): Add data to track partial definitions.
17368         (vn_walk_cb_data::~vn_walk_cb_data): New.
17369         (vn_walk_cb_data::push_partial_def): New.
17370         (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
17371         (vn_reference_lookup_2): When partial defs are registered give up.
17372         (vn_reference_lookup_3): Track partial defs for memset and
17373         constructor zeroing and for defs from constants.
17375 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
17377         * doc/install.texi (bootstrap-Og): Document.
17379 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
17381         * config/riscv/pic.md (*local_pic_load_s<mode>)
17382         (*local_pic_load_u<mode>): Explicitly specify the mode iterator
17383         referenced by <mode>, giving...
17384         (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
17385         * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
17386         (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
17387         use <X:MODE> for the mode attribute.
17389 2019-07-07  Jeff Law  <law@redhat.com>
17391         PR tree-optimization/91090
17392         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
17393         in handling of ranges to simplify switch statements.
17395 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
17397         * config/darwin.c (darwin_override_options): Make a final check on PIC
17398         options.
17400 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
17402         * config/darwin.c (darwin_override_options): Don't jam symbol stubs
17403         on for kernel code.
17405 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
17407         PR target/91068
17408         * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
17409         (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
17410         instead of matching them to "l" output operands.
17412 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
17414         * config/mips/mips.c (mips_split_move): Zero-initialize addr
17415         and check whether addr.reg is nonnull before using it.
17417 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
17419         * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
17420         ctx->for_simd_scan_phase simd copy the outer var to the privatized
17421         variable(s).  For conditional lastprivate look through outer
17422         GIMPLE_OMP_SCAN context.
17423         (lower_omp_1): For conditional lastprivate look through outer
17424         GIMPLE_OMP_SCAN context.
17426         * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
17427         member to combined_into_simd_safelen1.
17428         (lower_rec_input_clauses, lower_omp_1): Adjust uses.
17429         (lower_lastprivate_clauses): Likewise.  For conditional lastprivate
17430         clauses if ctx->combined_into_simd_safelen1 put statements after the
17431         predicate conditionalized block rather than into it.
17433 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
17435         * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
17436         operand 1.
17437         * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
17438         Make the choice of <mode> explicit, giving...
17439         (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
17441 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
17443         * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
17444         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
17445         of .md attributes.
17446         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
17447         (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
17448         (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
17449         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
17450         (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
17451         (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
17452         (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
17453         (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
17454         (*avx512f_scatterdi<mode>): Likewise.
17455         (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
17457 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
17459         * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
17460         specify the mode iterator referenced by <mode>, giving...
17461         (*push1_h8300hs_<QHI:mode>): ...this.
17463 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
17465         * config/gcn/gcn-valu.md
17466         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
17467         gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
17468         gen_vec_cmp<VEC_1REG_MODE:mode>di.  Explicitly use
17469         gen_vcond_mask_<VEC_1REG_MODE:mode>di.
17470         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
17471         but using the _exec comparison patterns.
17472         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
17473         gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
17474         gen_vec_cmp<VEC_1REG_INT_MODE:mode>di.  Explicitly use
17475         gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
17476         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
17477         but using the _exec comparison patterns.
17479 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
17481         * config/arm/sync.md
17482         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
17483         <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
17484         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
17485         <SIDI:sync_predtab>.  Use <SIDI:cas_cmp_operand> and
17486         <SIDI:cas_cmp_str>.
17488 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
17490         * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
17491         (maybe_lookup_ctx): Add forward declaration.
17492         (omp_find_scan): Likewise.  Walk into body of simd if composited
17493         with worksharing loop.
17494         (scan_omp_simd_scan): New function.
17495         (scan_omp_1_stmt): Call it.
17496         (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
17497         ctx->for_simd_scan_phase.
17498         (lower_rec_input_clauses): Do much less work for inscan reductions
17499         in ctx->for_simd_scan_phase is_simd regions.
17500         (lower_omp_scan): Set is_simd also on simd constructs composited
17501         with worksharing loop, unless ctx->for_simd_scan_phase.  Never emit
17502         a sorry message.  Don't change GIMPLE_OMP_SCAN stmts into nops and
17503         emit their body after in simd constructs composited with worksharing
17504         loop.
17505         (lower_omp_for_scan): Handle worksharing loop composited with simd.
17507         * omp-low.c (omp_find_scan): Make static.
17508         (lower_omp_for_scan): Fix order of merge arguments in input phase of
17509         the second loop, var2 represents the first partial sum and so needs
17510         to go before rprivb[ivar].
17512 2019-07-05  Iain Sandoe  <iain@sandoe.co.uk>
17514         * config/rs6000/rs6000-logue.c: Remove unused code.
17516 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
17518         * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
17520 2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>
17522         PR target/90712
17523         * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
17524         check with a frame laid out check.
17526 2019-07-05  Richard Biener  <rguenther@suse.de>
17528         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
17529         when comparing against a store with possibly the same value.
17531 2019-07-05  Richard Biener  <rguenther@suse.de>
17533         PR tree-optimization/91091
17534         * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
17535         (walk_non_aliased_vuses): Likewise.
17536         * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
17537         (get_continuation_for_phi): New tbaa_p parameter and pass
17538         it down.
17539         (walk_non_aliased_vuses): Likewise.
17540         * ipa-prop.c (determine_known_aggregate_parts): Adjust.
17541         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
17542         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
17543         Likewise.
17544         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
17545         (adjust_offsets_for_equal_base_address): New function.
17546         (vn_reference_lookup_3): Use it to catch more base equivalences.
17547         Handle and pass down tbaa_p flag.
17548         (vn_reference_lookup_pieces): Adjust.
17549         (vn_reference_lookup): Remove alias-set altering, instead pass
17550         down false as tbaa_p.
17552 2019-07-05  Richard Biener  <rguenther@suse.de>
17554         PR tree-optimization/91091
17555         * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
17556         accesses can happen with -fno-strict-aliasing.
17558 2019-07-05  Jan Hubicka  <hubicka@ucw.cz>
17560         * tree-ssa-alias.c (alias_stats): Add
17561         nonoverlapping_component_refs_since_match_p_must_overlap.
17562         (dump_alias_stats): Print it.
17563         (nonoverlapping_component_refs_since_match_p): Add early exit.
17564         (nonoverlapping_component_refs_p): Do not account early exit.
17566 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
17568         * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
17569         * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
17570         (emit_eh_dispatch): Delete.
17571         (lower_catch): Emit the eh_dispatch manually and set the location of
17572         the first catch statement onto it.
17573         (lower_eh_filter): Emit the eh_dispatch manually and set location.
17574         (lower_eh_dispatch): Propagate location.
17575         * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
17576         (eliminate_build): Likewise.
17578 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
17580         * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
17581         phi nodes if possible.
17582         * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
17583         location info on the newly created statement.
17584         * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
17585         newly created increment if needed.
17587 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
17589         PR middle-end/78884
17590         * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
17591         (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
17592         loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
17593         (gimplify_adjust_omp_clauses): Add safelen (1) clause if
17594         ctx->add_safelen1 is set.
17596         * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
17597         GOMP_loop_start at the start of second worksharing loop in a scan.
17598         For nowait, don't emit GOMP_loop_end_nowait at the end of first
17599         worksharing loop in a scan even if there are conditional lastprivates,
17600         and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
17602 2019-07-04  Jan Hubicka  <jh@suse.cz>
17604         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
17605         Fix check for match in the ref walk.
17607 2019-07-04  Martin Liska  <mliska@suse.cz>
17609         * tree-ssa-loop-niter.c
17610         (get_upper_bound_based_on_builtin_expr_with_prob): New function.
17611         (estimate_numbers_of_iterations):
17612         Support __builtin_expect_with_probability for analysis
17613         of # of loop iterations.
17615 2019-07-04  Alexandre Oliva  <oliva@adacore.com>
17617         * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
17618         * except.c: Likewise.
17619         * expr.c (expand_expr_real_1): Reject it.
17620         * gimplify.c (gimplify_expr): Gimplify it, within
17621         TRY_FINALLY_EXPR.
17622         * tree-dump.c (dequeue_and_dump): Dump it.
17623         * tree-pretty-print.c (dump_generic_node): Likewise.
17624         * tree.c (block_may_fallthru): Handle it.
17625         * tree.def (EH_ELSE_EXPR): Introduce it.
17626         * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
17627         with GIMPLE_EH_ELSE as try/finally/else.
17629 2019-07-04  Richard Biener  <rguenther@suse.de>
17631         PR ipa/91062
17632         * tree-pass.h (execute_all_ipa_transforms): Add a flag
17633         parameter whether to disable GC collection.
17634         * passes.c (execute_one_ipa_transform_pass): Likewise, and
17635         honor it.
17636         (execute_all_ipa_transforms): Likewise and pass it down.
17637         * cgraph.c (cgraph_node::get_body): Do not invoke garbage
17638         collection from applying IPA transforms.
17639         * cgraphunit.c (cgraph_node::expand): Allow garbage collection
17640         from applying IPA transforms.
17642 2019-07-04  Richard Biener  <rguenther@suse.de>
17644         PR tree-optimization/90911
17645         * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
17646         (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
17647         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
17648         scalar_loop_scaling.
17649         (vect_transform_loop): Scale scalar loop profile if needed.
17650         * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
17651         the loop copy from if-conversion adjust edge probabilities
17652         and scale the vectorized loop body profile, queue the scalar
17653         profile for updating after peeling.
17655 2019-07-04  Jan Hubicka  <jh@suse.cz>
17657         * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
17658         parameters; return early for must-alias.
17659         (indirect_ref_may_alias_decl_p): Likewise; when establishing
17660         outer types match, try nonoverlapping_component_refs
17661         if must-alias is not obvious.
17662         (indirect_refs_may_alias_p): Likewise.
17663         (refs_may_alias_p_2): Likewise.
17665 2019-07-04  Richard Biener  <rguenther@suse.de>
17667         * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
17668         argument.
17669         * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
17670         globals into...
17671         (struct vn_walk_cb_data): New callback data struct.
17672         (vn_reference_lookup_2): Adjust.
17673         (vn_reference_lookup_3): Likewise.
17674         (vn_reference_lookup_pieces): Likewise.
17675         (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
17676         (visit_reference_op_load): Adjust.
17678 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
17680         PR tree-optimization/91063
17681         * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
17682         stmt from stmts sequence before calling vect_init_vector_1.
17683         Formatting fix.
17685 2019-07-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17687         PR target/88833
17688         * fwprop.c (reg_single_def_p): New function.
17689         (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
17690         (forward_propagate_into): New parameter reg_prop_only
17691         with default value false.
17692         Propagate def's src into loop only if SET_SRC and SET_DEST
17693         of def_set have single definitions.
17694         Likewise if reg_prop_only is set to true.
17695         (fwprop): New param fwprop_addr_p.
17696         Integrate fwprop_addr into fwprop.
17697         (fwprop_addr): Remove.
17698         (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
17699         to true.
17700         (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
17701         * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
17702         * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
17704 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
17706         * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
17707         in worksharing loop scans.
17709         PR tree-optimization/91074
17710         * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
17711         temporary.
17713         PR rtl-optimization/90756
17714         * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
17715         for VECTOR_TYPE_P.
17717 2019-07-03  Dennis Zhang  <dennis.zhang@arm.com>
17719         * config/aarch64/aarch64.md: Remove redundant constraints from
17720         define_expand but keep some patterns untouched if they are
17721         specially selected by TARGET_SECONDARY_RELOAD hook.
17722         * config/aarch64/aarch64-sve.md: Likewise.
17723         * config/aarch64/atomics.md: Remove redundant constraints from
17724         define_expand.
17725         * config/aarch64/aarch64-simd.md: Likewise.
17727 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
17729         * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
17730         (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
17731         (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
17732         clauses.
17733         (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
17734         DARWIN_NOPIE_SPEC.
17736 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
17738         * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
17739         (STARTFILE_SPEC): Split crt3 into a separate spec.
17740         (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
17741         (DARWIN_CRT2_SPEC): New.
17742         (DARWIN_CRT3_SPEC): New.
17743         (MIN_LD64_OMIT_STUBS): Revise to 62.1.
17744         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
17745         (DARWIN_CRT3_SPEC): New.
17747 2019-07-03  Michael Meissner  <meissner@linux.ibm.com>
17749         * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
17750         Change the RTL attribute "length" from "4" to "*" to allow the
17751         length attribute to be adjusted automatically for prefixed load,
17752         store, and add immediate instructions.
17753         * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
17754         Likewise.
17755         (extendsi<mode>2, EXTSI iterator): Likewise.
17756         (movsi_internal1): Likewise.
17757         (movsi_from_sf): Likewise.
17758         (movdi_from_sf_zero_ext): Likewise.
17759         (mov<mode>_internal): Likewise.
17760         (movcc_internal1, QHI iterator): Likewise.
17761         (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
17762         (movsf_from_si): Likewise.
17763         (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
17764         (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
17765         (mov<mode>, FMOVE128 iterator): Likewise.
17766         (movdi_internal64): Likewise.
17767         * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
17768         Likewise.
17769         (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
17770         (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
17771         (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
17772         (vsx_splat_v4sf): Likewise.
17774 2019-07-03  Mark Wielaard  <mark@klomp.org>
17776         PR debug/90981
17777         * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
17778         DW_AT_addr_base if there is actually a .debug_addr section with
17779         addresses.
17780         (output_addr_table): Add DWARF5 table header generation here after
17781         checking there are actually any addresses from...
17782         (dwarf2out_finish): ...here.
17784 2019-07-03  Richard Biener  <rguenther@suse.de>
17786         PR middle-end/91069
17787         * match.pd (vec_perm -> bit_insert): Fix element read from
17788         first vector.
17790 2019-07-03  Martin Liska  <mliska@suse.cz>
17792         * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
17793         * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
17794         condition.
17795         * generic-match-head.c: Include dbgcnt.h.
17796         * gimple-match-head.c: Likewise.
17798 2019-07-03  Martin Liska  <mliska@suse.cz>
17800         * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
17801         (GCOV_COUNTER_V_TOPN): New.
17802         (GCOV_COUNTER_V_INDIR): Use _topn.
17803         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
17804         (GCOV_TOPN_VALUES): New.
17805         (GCOV_SINGLE_VALUE_COUNTERS): Remove.
17806         (GCOV_TOPN_VALUES_COUNTERS): New.
17807         * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
17808         * tree-profile.c:
17809         (gimple_init_gcov_profiler): Rename variables from one_value
17810         to topn_values.
17811         (gimple_gen_one_value_profiler): Remove.
17812         (gimple_gen_topn_values_profiler): New function.
17813         * value-prof.c (dump_histogram_value): Use TOPN_VALUES
17814         names instead of SINGLE_VALUE.
17815         (stream_out_histogram_value): Likewise.
17816         (stream_in_histogram_value): Likewise.
17817         (get_most_common_single_value): Likewise.
17818         (gimple_divmod_fixed_value_transform): Likewise.
17819         (gimple_stringops_transform): Likewise.
17820         (gimple_divmod_values_to_profile): Likewise.
17821         (gimple_stringops_values_to_profile): Likewise.
17822         (gimple_find_values_to_profile): Likewise.
17823         * value-prof.h (enum hist_type): Rename to TOPN.
17824         (gimple_gen_one_value_profiler): Remove.
17825         (gimple_gen_topn_values_profiler): New.
17827 2019-07-03  Eric Botcazou  <ebotcazou@adacore.com>
17829         * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
17830         if it has the DW_AT_data_member_location attribute.
17832 2019-07-03  Richard Biener  <rguenther@suse.de>
17834         * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
17835         dumping.
17837 2019-07-03  Sylvia Taylor  <sylvia.taylor@arm.com>
17839         * config/aarch64/aarch64.md (FP_REGNUM): New constant.
17840         (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
17841         (tlsdesc_small_sve_<mode>): Likewise.
17843 2019-07-03  Martin Liska  <mliska@suse.cz>
17845         * Makefile.in: Define ZSTD_LIB.
17846         * common.opt: Adjust compression level
17847         to support also zstd levels.
17848         * config.in: Regenerate.
17849         * configure: Likewise.
17850         * configure.ac: Add --with-zstd and --with-zstd-include options
17851         and detect ZSTD.
17852         * doc/install.texi: Mention zstd dependency.
17853         * gcc.c: Print supported LTO compression algorithms.
17854         * lto-compress.c (lto_normalized_zstd_level): Likewise.
17855         (lto_compression_zstd): Likewise.
17856         (lto_uncompression_zstd): Likewise.
17857         (lto_end_compression): Dispatch in between zlib and zstd.
17858         (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
17859         (lto_uncompression_zlib): Make it static.
17860         * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
17861         * lto-section-in.c (lto_get_section_data): Pass info
17862         about used compression.
17863         * lto-streamer-out.c: By default use zstd when possible.
17864         * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
17865         (TV_IPA_LTO_COMPRESS): Likewise for compression.
17867 2019-07-03  Martin Liska  <mliska@suse.cz>
17869         * lto-section-in.c (lto_get_section_data): Add "lto" section.
17870         * lto-section-out.c (lto_destroy_simple_output_block): Never
17871         compress LTO_section_lto section.
17872         * lto-streamer-out.c (produce_asm): Do not set major_version
17873         and minor_version.
17874         (lto_output_toplevel_asms): Likewise.
17875         (produce_lto_section): New function.
17876         (lto_output): Call produce_lto_section.
17877         (lto_write_mode_table): Do not set major_version and
17878         minor_version.
17879         (produce_asm_for_decls): Likewise.
17880         * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
17881         type.
17882         (struct lto_header): Remove.
17883         (struct lto_section): New struct.
17884         (struct lto_simple_header): Do not inherit from lto_header.
17885         (struct lto_file_decl_data): Add lto_section_header field.
17887 2019-07-03  Martin Liska  <mliska@suse.cz>
17889         * lra-eliminations.c (eliminate_regs_in_insn): Remove
17890         dead assignemts.
17891         * reg-stack.c (check_asm_stack_operands): Likewise.
17892         * tree-ssa-structalias.c (create_function_info_for): Likewise.
17893         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
17894         * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
17895         force_expand_binop.
17897 2019-07-03  Martin Liska  <mliska@suse.cz>
17899         PR tree-optimization/90892
17900         * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
17901         in string constants.
17903 2019-07-03  Martin Liska  <mliska@suse.cz>
17905         PR middle-end/90899
17906         * multiple_target.c (create_dispatcher_calls): Add to comdat
17907         group only if set for ifunc.
17909 2019-07-03  Martin Liska  <mliska@suse.cz>
17911         PR target/88056
17912         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
17913         Define local_object_name in outer scope in order to handle
17914         use-after-scope issue.
17916 2019-07-03  Martin Liska  <mliska@suse.cz>
17918         * common.opt: Add fprofile-note.
17919         * coverage.c (coverage_init): Append the option
17920         to bbg_file_name.
17921         * doc/invoke.texi: Document -fprofile-note.
17923 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
17925         PR tree-optimization/91033
17926         * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
17927         vect_analyze_data_refs): Add bool * arguments.
17928         * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
17929         if failure is due to scatter/gather, set *fatal to false if non-NULL.
17930         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
17931         * tree-vect-loop.c (vect_analyze_loop_2): Adjust
17932         vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
17933         * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
17934         vect_analyze_data_refs caller.
17936         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
17937         clause.
17938         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
17939         OMP_CLAUSE__CONDTEMP_ as range's upper bound.
17940         (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
17941         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17942         OMP_CLAUSE__SCANTEMP_ entry.
17943         (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
17944         * tree-pretty-print.c (dump_omp_clause): Likewise.
17945         * tree-nested.c (convert_nonlocal_omp_clauses,
17946         convert_local_omp_clauses): Likewise.
17947         * omp-general.h (struct omp_for_data): Add have_scantemp and
17948         have_nonctrl_scantemp members.
17949         * omp-general.c (omp_extract_for_data): Initialize them.
17950         * omp-low.c (struct omp_context): Add scan_exclusive member.
17951         (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
17952         result again with GF_OMP_FOR_KIND_MASK.  Initialize also
17953         ctx->scan_exclusive.
17954         (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
17955         of !ctx->scan_inclusive.
17956         (lower_rec_input_clauses): Simplify gimplification of dtors using
17957         gimplify_and_add.  For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
17958         rather than rvarp.  Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
17959         loops.  Don't add barrier for reduction_omp_orig_ref if
17960         ctx->scan_??xclusive.
17961         (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
17962         (lower_omp_scan): Use ctx->scan_exclusive instead
17963         of !ctx->scan_inclusive.  Handle worksharing loops with inscan
17964         reductions.  Use new_vard != new_var instead of repeated
17965         omp_is_reference calls.
17966         (omp_find_scan, lower_omp_for_scan): New functions.
17967         (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
17968         inscan reductions.
17969         * omp-expand.c (expand_omp_scantemp_alloc): New function.
17970         (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
17971         and fd->have_scantemp.
17973         * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
17974         on worksharing loop propagate it as shared clause to containing
17975         combined parallel.
17977         * omp-expand.c (expand_omp_for_static_nochunk,
17978         expand_omp_for_static_chunk): For nowait worksharing loop with
17979         conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
17980         at the end.
17982 2019-07-02  qing zhao  <qing.zhao@oracle.com>
17984         PR preprocessor/90581
17985         * doc/cppopts.texi: Add document for -fmax-include-depth.
17986         * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
17988 2019-07-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17990         * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
17991         Use TARGET_SSE2 && SSE_REGNO_P in split condition.
17992         (mmx_packssdw): Ditto.
17993         (mmx_punpckhbw): Ditto.
17994         (mmx_punpcklbw): Ditto.
17995         (mmx_punpckhwd): Ditto.
17996         (mmx_punpcklwd): Ditto.
17997         (mmx_punpckhdq): Ditto.
17998         (mmx_punpckldq): Ditto.
17999         (*vec_dupv4hi): Ditto.
18000         (*vec_dupv2si): Ditto.
18001         (mmx_pmovmskb): Ditto.
18002         * config/i386/sse.md (sse_cvtpi2ps): Use
18003         TARGET_SSE2 && SSE_REG_P in split condition.
18004         (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
18005         TARGET_SSSE3 && SSE_REGNO_P in split condition.
18006         (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
18007         (ssse3_pshufbv8qi3): Ditto.
18008         (ssse3_palignrdi): Ditto.
18010 2019-07-02  Andrew Stubbs  <ams@codesourcery.com>
18012         * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
18013         with inlined save and restore.
18015 2019-07-02  Eric Botcazou  <ebotcazou@adacore.com>
18017         * cfgexpand.c (pass_expand::execute): Deal specially with instructions
18018         to be inserted on single successor edge of the entry block.  Then call
18019         commit_edge_insertions instead of inserting the instructions manually.
18020         * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
18021         RTL expansion and rebuild jump labels chain.
18023 2019-07-02  Richard Biener  <rguenther@suse.de>
18025         * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
18026         TI_CHREC_KNOWN.
18027         * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
18028         Define here.
18029         * tree.c (build_common_tree_nodes): Initialize them.
18030         * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
18031         Make declarations comments.
18032         * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
18033         chrec_known): Remove definitions.
18034         (initialize_scalar_evolutions_analyzer): Remove.
18035         (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
18036         * tree-streamer.c (preload_common_nodes): Do not preload
18037         TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
18039 2019-07-02  Jan Hubicka  <jh@suse.cz>
18041         * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
18042         sanity check.
18044 2019-07-02  Jan Hubicka  <jh@suse.cz>
18046         * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
18047         to ..
18048         (nonoverlapping_component_refs_since_match_p): ... this one;
18049         handle also non-decl bases; return -1 if search gave up.
18050         (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
18051         nonoverlapping_component_refs_of_decl_p_no_alias to
18052         nonoverlapping_component_refs_since_match_p_may_alias,
18053         nonoverlapping_component_refs_since_match_p_no_alias.
18054         (dump_alias_stats): Update dumping.
18055         (aliasing_matching_component_refs_p): Break out from ...;
18056         dispatch to nonoverlapping_component_refs_for_decl_p
18057         and nonoverlapping_component_refs_since_match_p.
18058         (aliasing_component_refs_p): ... here; call
18059         nonoverlapping_component_refs_p in scenarios where we can not
18060         precisely determine base match.
18061         (decl_refs_may_alias_p): Use
18062         nonoverlapping_component_refs_since_match_p.
18063         (indirect_ref_may_alias_decl_p): Do not call
18064         nonoverlapping_component_refs_p.
18065         (indirect_refs_may_alias_p): Likewise.
18067 2019-07-02  Jan Hubicka  <jh@suse.cz>
18069         * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
18070         to clobber of return value.
18072 2019-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18074         * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
18075         for is_neon_type instructions that have not already been categorized.
18077 2019-07-02  Richard Biener  <rguenther@suse.de>
18079         PR tree-optimization/58483
18080         * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
18081         for MEM_REF base hashing.
18082         (equal_mem_array_ref_p): Likewise for base comparison.
18084 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
18086         * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
18087         parameterized name.
18088         (signbit<mode>2): Use that name.  Simplify.
18090 2019-07-01  Joern Rennecke  <joern.rennecke@riscy-ip.com>
18092         PR middle-end/66726
18093         * tree-ssa-phiopt.c (factor_out_conditional_conversion):
18094         Tune heuristic from PR71016 to allow MIN / MAX.
18096 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
18098         * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
18099         parameterized name.
18100         (abs<mode>2): Use that name.  Simplify.
18102 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
18104         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
18105         parameterized name.
18106         (neg<mode>2): Use that name.  Simplify.
18108 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
18110         * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
18111         name.
18112         (abs<mode>2): Use that name.  Simplify.
18114 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
18116         * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
18117         name.
18118         (neg<mode>2): Use that name.  Simplify.
18120 2019-07-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18122         * config/i386/i386.md ("isa" attribute): Add sse_noavx.
18123         ("enabled" attribute): Handle sse_noavx isa attribute.
18124         * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
18125         Use TARGET_SSE && SSE_REGNO_P in split condition.
18126         (*vec_dupv2sf): Ditto.
18128 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
18130         * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
18131         name.
18132         (floatsi<mode>2): Use that name.  Simplify.
18134 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
18136         * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
18137         parameterized name.
18138         (extenddf<mode>2_vsx): Make this a parameterized name.
18139         (extenddf<mode>2): Use those names.  Simplify.
18141 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
18143         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
18144         name.
18145         (eh_return): Use that name.  Simplify.
18147 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
18149         * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
18150         (doloop_end): Use that name.  Simplify.
18152 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
18154         * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
18155         parameterized name.
18156         (indirect_jump): Use that name.  Simplify.
18158 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
18160         * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
18161         parameterized name.
18162         (abs<mode>2): Use that name.  Simplify.
18164 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
18166         * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
18167         parameterized name.
18168         (fix_trunc<mode>si2): Use that name.  Simplify.
18170 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
18172         * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
18173         (allocate_stack): Use that name.  Simplify.
18175 2019-07-01  Martin Sebor  <msebor@redhat.com>
18177         PR middle-end/90923
18178         * hash-map.h (hash_map::put): On insertion invoke element ctor.
18179         (hash_map::get_or_insert): Same.  Reformat comment.
18180         * hash-set.h (hash_set::add): On insertion invoke element ctor.
18181         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
18182         * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
18183         * hash-table.h (hash_table::operator=): Prevent copy assignment.
18184          (hash_table::hash_table (const hash_table&)): Use copy ctor
18185          instead of assignment to copy elements.
18187 2019-07-01  Wilco Dijkstra  <wdijkstr@arm.com>
18188             John David Anglin  <danglin@gcc.gnu.org>
18190         PR target/90963
18191         * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
18192         using saved frame pointer.
18194 2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>
18196         PR middle-end/64242
18197         * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
18198         Add frame clobber and schedule blockage.
18200 2019-07-01  Sandra Loosemore  <sandra@codesourcery.com>
18202         * doc/invoke.texi (Link Options): Further editorial changes to
18203         -flinker-output docs.
18205 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
18207         * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
18208         Load both operands of a PLUS into registers separately.
18210 2019-07-01  Andreas Krebbel  <krebbel@linux.ibm.com>
18212         * config/s390/vector.md: Fix shift count operand printing.
18214 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
18216         * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
18218 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
18220         * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
18221         Use recog_data to test for an output operand.
18223 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
18225         * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
18226         exclude any others that are disparaged or that are bound to need
18227         a reload or spill.
18228         (ira_get_dup_out_num): Expand comment.
18230 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
18232         * ira.c (ira_setup_alts): Use preprocess_constraints to get the
18233         constraint string for each operand/alternative combo.  Only handle
18234         '%' at the start of constraint strings, and look for it outside
18235         the main loop.
18237 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
18239         * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
18240         alternative_mask instead of HARD_REG_SET to represent a
18241         bitmask of alternatives.
18242         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18243         * ira-conflicts.c (add_insn_allocno_copies): Likewise.
18245 2019-07-01  Martin Liska  <mliska@suse.cz>
18247         * edit-context.c (test_applying_fixits_unreadable_file): Do not
18248         use () for a constructor call.
18249         (test_applying_fixits_line_out_of_range): Likewise.
18250         * ggc-page.c (alloc_page): Use (void *) for %p printf format
18251         argument.
18252         (free_page): Likewise.
18254 2019-07-01  Vladislav Ivanishin  <vlad@ispras.ru>
18256         * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
18257         parameter names to match usage (no functional change).
18258         (GdbPrettyPrinters.add_printer_for_regex): Ditto.
18260 2019-07-01  Richard Biener  <rguenther@suse.de>
18262         * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
18263         pass parameter.
18264         (pass_fre::execute): Honor it.
18265         * passes.def: Adjust pass_fre invocations to allow iterating,
18266         add non-iterating pass_fre before late threading/dom.
18268 2019-07-01  Richard Biener  <rguenther@suse.de>
18270         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
18271         TARGET_MEM_REF handling to also handle address-taken ones.
18273 2019-07-01  Hongtao Liu  <hongtao.liu@intel.com>
18275         * doc/sourcebuild.texi (Effective-Target Keywords, Other
18276         hardware attributes): Document avx512vp2intersect.
18278 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18280         * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
18281         (abs<mode>2): New expander.
18282         * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
18283         Use CODE_FOR_ssse3_absv8qi2.
18284         (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
18285         (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
18287 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18289         * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
18290         to sse, sse_noavx and avx.  Update all uses.
18292 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18294         * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
18295         (*mmx_<plusminus_insn><mode>3): Ditto.
18296         (*mmx_mulv4hi3"): Ditto.
18297         (*mmx_smulv4hi3_highpart): Ditto.
18298         (*mmx_umulv4hi3_highpart): Ditto.
18299         (*mmx_pmaddwd): Ditto.
18300         (*sse2_umulv1siv1di3): Ditto.
18301         (*mmx_<code>v4hi3): Ditto.
18302         (*mmx_<code>v8qi3): Ditto.
18303         (mmx_ashr<mode>3): Ditto.
18304         ("mmx_<shift_insn><mode>3): Ditto.
18305         (*mmx_eq<mode>3): Ditto.
18306         (mmx_gt<mode>3): Ditto.
18307         (mmx_andnot<mode>3): Ditto.
18308         (*mmx_<code><mode>3): Ditto.
18309         (*mmx_pinsrw): Ditto.
18310         (*mmx_pextrw): Ditto.
18311         (mmx_pshufw_1): Ditto.
18312         (*mmx_uavgv8qi3): Ditto.
18313         (*mmx_uavgv4hi3): Ditto.
18314         ("mmx_psadbw): Ditto.
18315         * config/i386/sse.md (sse_cvtps2pi): Ditto.
18316         (sse_cvttps2pi): Ditto.
18317         (ssse3_pmaddubsw): Ditto.
18318         (*ssse3_pmulhrswv4hi3): Ditto.
18319         (ssse3_psign<mode>3): Ditto.
18321 2019-06-29  Eric Botcazou  <ebotcazou@adacore.com>
18323         * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
18324         adjustment for bit-fields to all aggregate types.
18326 2019-06-28   Michael Meissner  <meissner@linux.ibm.com>
18328         * config/rs6000/predicates.md (pcrel_address): Use
18329         SYMBOL_REF_LOCAL_P to determine if a label is local.
18330         (pcrel_external_address): New predicate.
18331         (non_prefixed_mem_operand): Delete, predicate not used.
18332         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
18333         SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
18334         addressing.
18335         (SYMBOL_REF_PCREL_P): Likewise.
18337         PR target/91009
18338         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
18339         alternative.
18340         (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
18341         (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
18342         (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
18344 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
18346         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
18347         override on extra_headers.
18349 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
18351         * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
18352         * config/darwin-driver.c (darwin_default_min_version): Remove newline
18353         from warning.
18354         (darwin_driver_init): Likewise.
18356 2019-06-28  Jan Beulich  <jbeulich@suse.com>
18358         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
18359         vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
18360         Eliminate redundant alternative.
18362 2019-06-28  Jan Beulich  <jbeulich@suse.com>
18364         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
18365         vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
18366         Use vector_operand.
18368 2019-06-28  Claudiu Zissulescu  <claziss@synopsys.com>
18370         * config/arc/arc.c (arc_rtx_costs): All short instructions are
18371         having a lower cost regardless of the speed option.
18373 2019-06-28  Jan Beulich  <jbeulich@suse.com>
18375         * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
18376         vector_operand plus, on both alternatives, "Bm" constraint.
18378 2019-06-28  Dennis Zhang  <dennis.zhang@arm.com>
18380         * config/arm/arm.md: Remove redundant constraints from
18381         define_expand but leave reload_inm and reload_outm patterns
18382         untouched since they need special constraints to work.
18383         * config/arm/arm-fixed.md: Remove redundant constraints from
18384         define_expand.
18385         * config/arm/iwmmxt.md: Likewise.
18386         * config/arm/neon.md: Likewise.
18387         * config/arm/sync.md: Likewise.
18388         * config/arm/thumb1.md: Likewise.
18389         * config/arm/vec-common.md: Likewise.
18391 2019-06-27  Ilia Diachkov  <ilia.diachkov@optimitech.com>
18393         * doc/install.texi: Document --disable-tm-clone-registry.
18395 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
18397         PR c++/91024
18398         * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
18399         statements.
18401         PR tree-optimization/91010
18402         * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
18403         return true.  Otherwise, don't call operand_equal_p if offset1 or
18404         offset2 is NULL and just return false.
18406 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
18408         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
18409         user-specified float mode choice for kernel mode code.
18411 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
18413         * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
18414         spec.
18416 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
18418         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
18419         use longcall for 64b code.
18421 2019-06-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
18423         * builtins.c (get_memory_rtx): Fix comment.
18424         * optabs.def (movmem_optab): Change to cpymem_optab.
18425         * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
18426         (emit_block_move_hints): Change movmem to cpymem.
18427         * defaults.h: Change movmem to cpymem.
18428         * targhooks.c (get_move_ratio): Change movmem to cpymem.
18429         (default_use_by_pieces_infrastructure_p): Ditto.
18430         * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
18431         * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
18432         to cpymem.
18433         * config/aarch64/aarch64.h: Change movmem to cpymem.
18434         * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
18435         * config/alpha/alpha.h: Change movmem to cpymem in comment.
18436         * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
18437         movmem to cpymem.
18438         * config/arc/arc-protos.h: Change movmem to cpymem.
18439         * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
18440         * config/arc/arc.h: Change movmem to cpymem in comment.
18441         * config/arc/arc.md (movmemsi): Change movmem to cpymem.
18442         * config/arm/arm-protos.h: Change movmem to cpymem in names.
18443         * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
18444         gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
18445         * config/arm/arm.md (movmemqi): Change movmem to cpymem.
18446         * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
18447         * config/avr/avr-protos.h: Change movmem to cpymem.
18448         * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
18449         avr_out_movmem): Change movmem to cpymem.
18450         * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
18451         Change movmem to cpymem.
18452         * config/bfin/bfin-protos.h: Change movmem to cpymem.
18453         * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
18454         Change movmem to cpymem.
18455         * config/bfin/bfin.h: Change movmem to cpymem in comment.
18456         * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
18457         * config/c6x/c6x-protos.h: Change movmem to cpymem.
18458         * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
18459         * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
18460         * config/frv/frv.md (movmemsi): Change name to cpymemsi.
18461         * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
18462         * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
18463         * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
18464         expand_set_or_movmem_via_rep, expand_movmem_epilogue,
18465         expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
18466         expand_small_cpymem_or_setmem,
18467         expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
18468         expand_set_or_cpymem_constant_prologue,
18469         ix86_expand_set_or_cpymem): Change movmem to cpymem.
18470         * config/i386/i386-protos.h: Change movmem to cpymem.
18471         * config/i386/i386.h: Change movmem to cpymem in comment.
18472         * config/i386/i386.md (movmem<mode>): Change name to cpymem.
18473         (setmem<mode>): Change expansion function name.
18474         * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
18475         * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
18476         movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
18477         * config/m32c/m32c-protos.h: Change movmem to cpymem.
18478         * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
18479         * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
18480         * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
18481         to cpymem.
18482         * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
18483         * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
18484         * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
18485         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
18486         Change movmem to cpymem.
18487         * config/mips/mips.h: Change movmem to cpymem.
18488         * config/mips/mips.md (movmemsi): Change name to cpymemsi.
18489         * config/nds32/nds32-memory-manipulation.c
18490         (nds32_expand_movmemsi_loop_unknown_size,
18491         nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
18492         nds32_expand_movmemsi_unroll,
18493         nds32_expand_movmemsi): Change movmem to cpymem.
18494         * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
18495         * config/nds32/nds32-protos.h: Change movmem to cpymem.
18496         * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
18497         (pa_adjust_insn_length): Change call to compute_movmem_length.
18498         * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
18499         movmemdi, movmemdi_prereload,
18500         movmemdi_postreload): Change movmem to cpymem.
18501         * config/pdp11/pdp11.md (movmemhi, movmemhi1,
18502         movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
18503         * config/riscv/riscv.c: Change movmem to cpymem in comment.
18504         * config/riscv/riscv.h: Change movmem to cpymem.
18505         * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
18506         * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
18507         * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
18508         movmem to cpymem.
18509         * config/s390/s390-protos.h: Change movmem to cpymem.
18510         * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
18511         s390_expand_insv): Change movmem to cpymem.
18512         * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
18513         movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
18514         * config/sh/sh.md (movmemsi): Change name to cpymemsi.
18515         * config/sparc/sparc.h: Change movmem to cpymem in comment.
18516         * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
18517         for nonexistent function.
18518         * config/vax/vax.h: Change movmem to cpymem in comment.
18519         * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
18520         * config/visium/visium.h: Change movmem to cpymem in comment.
18521         * config/visium/visium.md (movmemsi): Change name to cpymemsi.
18522         * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
18523         * doc/md.texi: Change movmem to cpymem and update description to match.
18524         * doc/rtl.texi: Change movmem to cpymem.
18525         * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
18526         * doc/tm.texi: Regenerate.
18528 2019-06-27  Bill Schmidt  <wschmidt@linux.ibm.com>
18530         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
18531         -fvariable-expansion-in-unroller by default.
18532         * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
18533         default for Power.
18535 2019-06-27  David Edelsohn  <dje.gcc@gmail.com>
18537         Revert
18538         2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
18539         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
18541         * config.gcc(rs6000-*-*): Define target_gtfiles.
18543 2019-06-27  Jan Hubicka  <jh@suse.cz>
18545         * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
18546         (add_type_duplicate): When odr hash is not allocated, to nothing.
18547         (odr_based_tbaa_p): New function.
18548         (set_type_canonical_for_odr_type): New function.
18549         * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
18550         set_type_canonical_for_odr_type): New.
18551         * tree.c (gimple_canonical_types_compatible_p): ODR types with
18552         ODR based TBAA are not equivalent to non-ODR types.
18554 2019-06-27  Martin Liska  <mliska@suse.cz>
18556         PR tree-optimization/90974
18557         PR rtl-optimization/90975
18558         PR rtl-optimization/90976
18559         PR target/91016
18560         PR tree-optimization/91017
18561         * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
18562         unused tmp.
18563         * lra.c (lra_set_insn_recog_data): Remove a leftover from
18564         initial commit of IRA.
18565         * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
18566         of op0 and op1.
18567         * tree-vect-loop.c (vect_create_epilog_for_reduction):
18568         Remove unused mode1.
18569         * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
18570         to new_stmt_info.
18572 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
18574         PR target/90991
18575         * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
18576         instead of register_operand for operands[1], add m to its constraints
18577         if operands[2] uses "C" constraint.  Ensure in condition that if
18578         operands[2] is not 0, then operands[1] is not a MEM.  For last two
18579         alternatives, use unaligned loads instead of aligned if operands[1] is
18580         misaligned_operand.
18582 2019-06-27  Martin Liska  <mliska@suse.cz>
18584         * asan.c (asan_emit_allocas_unpoison): Remove obviously
18585         dead assignments.
18586         * bt-load.c (move_btr_def): Likewise.
18587         * builtins.c (expand_builtin_apply_args_1): Likewise.
18588         (expand_builtin_apply): Likewise.
18589         * cfgexpand.c (expand_asm_stmt): Likewise.
18590         (construct_init_block): Likewise.
18591         * cfghooks.c (verify_flow_info): Likewise.
18592         * cfgloopmanip.c (remove_path): Likewise.
18593         * cfgrtl.c (rtl_verify_bb_layout): Likewise.
18594         * cgraph.c (cgraph_node::set_pure_flag): Likewise.
18595         * combine.c (simplify_if_then_else): Likewise.
18596         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
18597         (choose_basereg): Likewise.
18598         (ix86_expand_prologue): Likewise.
18599         (ix86_preferred_output_reload_class): Likewise.
18600         * cselib.c (cselib_record_sets): Likewise.
18601         * df-scan.c (df_scan_alloc): Likewise.
18602         * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
18603         * early-remat.c (early_remat::record_equiv_candidates): Likewise.
18604         * emit-rtl.c (try_split): Likewise.
18605         * graphite-scop-detection.c (assign_parameter_index_in_region):
18606         Likewise.
18607         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
18608         * ira-color.c (setup_profitable_hard_regs): Likewise.
18609         * ira.c (rtx_moveable_p): Likewise.
18610         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
18611         * read-rtl.c (read_subst_mapping): Likewise.
18612         * regrename.c (scan_rtx): Likewise.
18613         * reorg.c (fill_slots_from_thread): Likewise.
18614         * tree-inline.c (tree_function_versioning): Likewise.
18615         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
18616         * tree-ssa-sink.c (statement_sink_location): Likewise.
18617         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
18618         * tree-vect-loop.c (vect_get_loop_niters): Likewise.
18619         (vect_create_epilog_for_reduction): Likewise.
18620         * tree.c (build_nonstandard_integer_type): Likewise.
18622 2019-06-27  Richard Biener  <rguenther@suse.de>
18624         * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
18626 2019-06-27  Jun Ma  <JunMa@linux.alibaba.com>
18628         PR tree-optimization/89772
18629         * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
18630         out-of-bound accesses checking.
18632 2019-06-27  Martin Liska  <mliska@suse.cz>
18634         PR tree-optimization/91014
18635         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
18636         when LHS is NULL_TREE.
18638 2019-06-27  Martin Liska  <mliska@suse.cz>
18640         * symbol-summary.h (traverse): Pass
18641         argument a to the call of callback.
18642         (gt_ggc_mx): Mark arguments as unused.
18643         (gt_pch_nx): Likewise.
18645 2019-06-27  Kewen Lin  <linkw@gcc.gnu.org>
18647         PR target/62147
18648         * loop-iv.c (find_simple_exit): Call finite_loop_p to update
18649         finiteness.
18651 2019-06-26  Jeff Law  <law@redhat.com>
18653         PR tree-optimization/90883
18654         * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
18655         (delete_dead_or_redundant_assignment): Likewise.
18657         PR tree-optimization/90883
18658         * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
18659         * tree-ssa-dse.c: Update various comments to distinguish between
18660         dead and redundant stores.
18661         (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
18662         (dse_optimize_redundant_stores): New function.
18663         (delete_dead_or_redundant_call): Renamed from delete_dead_call.
18664         Distinguish between dead and redundant calls in dump output.  All
18665         callers updated.
18666         (delete_dead_or_redundant_assignment): Similarly for assignments.
18667         (dse_optimize_stmt): Handle _CHK variants.  For statements which
18668         store 0 into multiple memory locations, try to prove a subsequent
18669         store is redundant.
18671 2019-06-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18673         PR target/89021
18674         * config/i386/i386.c (ix86_autovectorize_vector_sizes):
18675         Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
18677 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
18679         * config/rs6000/rs6000-internal.h (branch_island): New typedef.
18680         (branch_islands): New extern.
18681         * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
18682         * config/rs6000/rs6000.c: .. here.
18684 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
18686         * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
18687         (powerpc*-*-*) ... to here.
18689 2019-06-26  Jeff Law  <law@redhat.com>
18691         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
18692         memcpy, memmove and memset builtins.
18693         (maybe_trim_memstar_call): Likewise.
18695 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
18697         * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
18699 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
18701         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
18703 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
18705         * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
18706         declaration.
18707         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
18708         "static".
18709         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
18710         declaration.
18712 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
18714         * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
18716 2019-06-26  Richard Biener  <rguenther@suse.de>
18718         PR ipa/90982
18719         * tree-inline.c (remap_ssa_name): Copy SSA range info.
18721 2019-06-26  Richard Biener  <rguenther@suse.de>
18723         * lto-streamer.h (lto_bitmap_alloc): Remove.
18724         (lto_bitmap_free): Likewise.
18725         * lto-streamer.c (lto_bitmap_alloc): Remove.
18726         (lto_bitmap_free): Likewise.
18727         (lto_obstack): Likewise.
18728         (lto_obstack_initialized): Likewise.
18729         * lto-streamer-out.c (lto_output): Use own obstack for local
18730         bitmap, free it consistently.
18732 2019-06-26  Jakub Jelinek  <jakub@redhat.com>
18734         PR target/90991
18735         * config/i386/sse.md
18736         (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
18737         vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
18738         insns if operands[2] is misaligned_operand.
18740 2019-06-26  Li Jia He  <helijia@linux.ibm.com>
18742         * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
18743         TARGET_POWERPC64.
18744         * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
18745         to GPR.
18747 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
18749         * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
18751 2019-06-26  Martin Liska  <mliska@suse.cz>
18753         PR tree-optimization/90973
18754         * tree-vect-loop.c (vect_get_known_peeling_cost): Use
18755         epilogue_cost_vec instead of prologue_cost_vec for
18756         a epilogue cost.
18758 2019-06-26  Martin Liska  <mliska@suse.cz>
18760         * bb-reorder.c (connect_better_edge_p): Add missing else
18761         statement in the middle of if-else statements.
18763 2019-06-25  Hongtao Liu  <hongtao.liu@intel.com>
18764             H.J. Lu  <hongjiu.lu@intel.com>
18765             Olga Makhotina  <olga.makhotina@intel.com>
18767         * common/config/i386/i386-common.c
18768         (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
18769         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
18770         (OPTION_MASK_ISA2_AVX512F_UNSET): Add
18771         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
18772         (ix86_handle_option): Handle -mavx512vp2intersect.
18773         * config/i386/avx512vp2intersectintrin.h: New.
18774         * config/i386/avx512vp2intersectvlintrin.h: New.
18775         * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
18776         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18777         AVX512VP2INTERSECT.
18778         * config/i386/i386-builtin-types.def: Add new types.
18779         * config/i386/i386-builtin.def: Add new builtins.
18780         * config/i386/i386-builtins.c: (enum processor_features): Add
18781         F_AVX512VP2INTERSECT.
18782         (static const _isa_names_table isa_names_table): Ditto.
18783         * config/i386/i386-c.c (ix86_target_macros_internal): Define
18784         __AVX512VP2INTERSECT__.
18785         * config/i386/i386-expand.c (ix86_expand_builtin): Expand
18786         IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
18787         IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
18788         IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
18789         * config/i386/i386-modes.def (P2QI, P2HI): New modes.
18790         * config/i386/i386-options.c (ix86_target_string): Add
18791         -mavx512vp2intersect.
18792         (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
18793         * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
18794         P2HImode and P2QImode.
18795         (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
18796         number for P2QImode and P2HImode.
18797         (ix86_regmode_natural_size): New function.
18798         * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
18799         TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
18800         REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
18801         * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
18802         * config/i386/i386.opt: Add -mavx512vp2intersect.
18803         * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
18804         avx512vp2intersectvlintrin.h.
18805         * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
18806         (define_mode_iterator VI48_AVX512VP2VL): New.
18807         (avx512vp2intersect_2intersect<mode>,
18808         avx512vp2intersect_2intersectv16si): New define_insn patterns.
18809         * config.gcc: Add avx512vp2intersectvlintrin.h and
18810         avx512vp2intersectintrin.h to extra_headers.
18811         * doc/invoke.texi: Document -mavx512vp2intersect.
18813 2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
18815         * config/rs6000/darwin.h (ENDFILE_SPEC): New.
18817 2019-06-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
18819         * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
18820         savres_routine_syms, savres_routine_name, morestack_ref,
18821         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
18822         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
18823         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
18824         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
18825         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
18826         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
18827         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
18828         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
18829         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
18830         get_stack_clash_protection_probe_interval,
18831         get_stack_clash_protection_guard_size,
18832         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
18833         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
18834         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
18835         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
18836         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
18837         gen_frame_mem_offset, rs6000_savres_routine_name,
18838         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
18839         ptr_regno_for_savres, rs6000_emit_savres_rtx,
18840         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
18841         rs6000_global_entry_point_prologue_needed_p,
18842         rs6000_get_separate_components, rs6000_components_for_bb,
18843         rs6000_disqualify_components, rs6000_emit_prologue_components,
18844         rs6000_emit_epilogue_components, rs6000_set_handled_components,
18845         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
18846         rs6000_output_savres_externs, rs6000_output_function_prologue,
18847         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
18848         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
18849         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
18850         rs6000_output_function_epilogue, gen_add3_const,
18851         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
18852         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
18853         to rs6000-logue.c.
18854         (machine_function): Moved to rs6000.h.
18855         (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
18856         rs6000-internal.h.
18857         * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
18858         savres_routine_syms, savres_routine_name, morestack_ref,
18859         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
18860         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
18861         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
18862         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
18863         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
18864         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
18865         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
18866         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
18867         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
18868         get_stack_clash_protection_probe_interval,
18869         get_stack_clash_protection_guard_size,
18870         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
18871         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
18872         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
18873         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
18874         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
18875         gen_frame_mem_offset, rs6000_savres_routine_name,
18876         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
18877         ptr_regno_for_savres, rs6000_emit_savres_rtx,
18878         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
18879         rs6000_global_entry_point_prologue_needed_p,
18880         rs6000_get_separate_components, rs6000_components_for_bb,
18881         rs6000_disqualify_components, rs6000_emit_prologue_components,
18882         rs6000_emit_epilogue_components, rs6000_set_handled_components,
18883         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
18884         rs6000_output_savres_externs, rs6000_output_function_prologue,
18885         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
18886         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
18887         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
18888         rs6000_output_function_epilogue, gen_add3_const,
18889         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
18890         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
18891         to here from rs6000.c.
18892         * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
18893         * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
18894         quad_address_offset_p) Moved to here from rs6000.c.
18895         * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
18896         * config/config.gcc: Add new source file rs6000-logue.c to garbage
18897         collector.
18899 2019-06-25  Martin Liska  <mliska@suse.cz>
18901         * hash-table.c (hashtab_chk_error): Move here from ...
18902         * hash-table.h (hashtab_chk_error): ... here.
18904 2019-06-25  Martin Liska  <mliska@suse.cz>
18906         PR tree-optimization/90978
18907         * df-scan.c (df_update_entry_block_defs): Remove dead else
18908         branch.
18909         (df_update_exit_block_uses): Likewise.
18911 2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
18912             Andrew Stubbs  <ams@codesourcery.com>
18914         * config.gcc (thread_file): Set to gcn for AMD GCN.
18915         * config/gcn/gcn.c (gcn_emutls_var_init): New function.
18916         (TARGET_EMUTLS_VAR_INIT): New hook.
18918 2019-06-25  Martin Jambor  <mjambor@suse.cz>
18920         PR ipa/90939
18921         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
18923 2019-06-25  Richard Biener  <rguenther@suse.de>
18925         PR tree-optimization/90930
18926         * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
18927         into parallel form in the last pass instance.
18929 2019-06-25  Claudiu Zissulescu  <claziss@synopsys.com>
18931         * config/arc/arc.c (arc_symbol_binds_local_p): New function.
18932         (arc_legitimize_pic_address): Simplify and cleanup the function.
18933         (SYMBOLIC_CONST): Remove.
18934         (prepare_pic_move): Likewise.
18935         (prepare_move_operands): Handle complex mov cases here.
18936         (arc_legitimize_address_0): Remove call to
18937         arc_legitimize_pic_address.
18938         (arc_legitimize_address): Remove call to
18939         arc_legitimize_tls_address.
18940         * config/arc/arc.md (movqi_insn): Allow Cm3 match.
18941         (movhi_insn): Likewise.
18943 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18945         * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
18946         PTRDIFF_TYPE.
18947         * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
18948         format of "__intN" types for UINTMAX_TYPE.
18949         * stor-layout.c (initialize_sizetypes): Accept "__intN__"
18950         format of "__intN" types for SIZETYPE.
18951         * tree.c (build_common_tree_nodes): Accept "__intN__"
18952         format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
18953         * doc/invoke.texi: Document that __intN__ disables pedantic
18954         warnings.
18956 2019-06-25  Jan Hubicka  <jh@suse.cz>
18958         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
18959         base2_alias_set is non-zero before doing TBAA based disambiguation.
18961 2019-06-25  Martin Liska  <mliska@suse.cz>
18963         PR tree-optimization/90973
18964         * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
18965         of prologue and epilogue.
18967 2019-06-24  Jan Hubicka  <jh@suse.cz>
18969         * ipa-utils.h (type_with_linkage_p): Verify that type is
18970         CXX_ODR_P.
18971         (odr_type_p): Remove extra return.
18972         * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
18973         hash STRING_FLAG only for arrays and integers.
18974         * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
18975         Update analogously.
18976         * tree-streamer-out.c (pack_ts_type_common_value_fields):
18977         Likewise.
18978         * print-tree.c (print_node): Print cxx-odr-p
18979         and string-flag.
18980         * tree.c (need_assembler_name_p): Also check that type
18981         is CXX_ODR_TYPE_P
18982         (verify_type_variant): Update verification of SRING_FLAG;
18983         also check CXX_ODR_P.
18984         * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
18985         (TYPE_STRING_FLAG): Use it.
18986         (TYPE_CXX_ODR_P): New macro.
18987         * dwarf2out.c (gen_array_type_die): First check that type
18988         is an array and then test string flag.
18990 2019-06-24  Richard Biener  <rguenther@suse.de>
18992         PR tree-optimization/90972
18993         * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
18994         in common code, dealing with STRING_CST properly.
18996 2019-06-24  Richard Biener  <rguenther@suse.de>
18998         PR tree-optimization/90930
18999         PR tree-optimization/90316
19000         * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
19001         decrement of limit.
19003 2019-06-24  Martin Sebor  <msebor@redhat.com>
19005         * tree-pretty-print.h: Remove unnecessary punctuation characters
19006         from a diagnostic.
19007         * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
19009 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
19011         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
19012         (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
19013         (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
19015 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
19017         * config/rs6000/darwin.h: Handle GCC target pragma.
19019 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
19021         * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
19023 2019-06-22  Jeff Law  <law@redhat.com>
19025         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19027 2019-06-22  Jan Hubicka  <jh@suse.cz>
19029         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
19030         give up on bitfields; continue searching for different refs
19031         appearing later.
19033 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
19035         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
19036         even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
19037         containing the offset as possible simd lane access.  Look through
19038         widening conversion.  Move the
19039         TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
19041 2019-06-21  Richard Biener  <rguenther@suse.de>
19043         PR tree-optimization/90930
19044         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
19045         flag on new stmts to avoid re-processing them.
19047 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
19049         PR c++/90875 - added -Wswitch-outside-range option
19050         * doc/invoke.texi (Wswitch-outside-range): Document.
19052 2019-06-21  Jeff Law  <law@redhat.com>
19054         PR tree-optimization/90949
19055         * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
19056         * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
19058 2019-06-21  Richard Biener  <rguenther@suse.de>
19060         PR debug/90914
19061         * dwarf2out.c (prune_unused_types_walk): Always consider
19062         function-local extern declarations as used.
19064 2019-06-21  Richard Biener  <rguenther@suse.de>
19066         PR tree-optimization/90913
19067         * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
19068         the scalar variant of if-conversion versioning.
19070 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
19072         * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
19073         create another "omp scan inscan exclusive" array if
19074         !ctx->scan_inclusive.
19075         (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
19076         (lower_omp_scan): Likewise.
19077         * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
19078         2-bit bitfield for simd_lane_access_p member.
19079         * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
19080         aux == (void *)-4 as simd lane access.
19081         * tree-vect-stmts.c (check_scan_store): Handle exclusive scan.  Update
19082         comment with permutations to show the canonical permutation order.
19083         (vectorizable_scan_store): Handle exclusive scan.
19084         (vectorizable_store): Call vectorizable_scan_store even for
19085         STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
19087         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
19088         "omp simd array" arrays with one byte elements.
19090 2019-06-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19092         * config/alpha/alpha.md (@unaligned_store<mode>):
19093         Rename from unaligned_store<mode>.
19094         (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
19095         * config/alpha/sync.md (@load_locked_<mode>): Rename
19096         from load_locked_<mode>.
19097         (@store_conditional_<mode>): Rename from store_conditional_<mode>.
19098         (@atomic_compare_and_swap<mode>_1): Rename
19099         from atomic_compare_and_swap<mode>_1.
19100         (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
19101         * config/alpha/alpha.c (alpha_expand_mov_nobwx):
19102         Use gen_reload_in_aligned and gen_unaligned_store.
19103         (emit_load_locked): Remove.
19104         (emit_store_conditional): Ditto.
19105         (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
19106         (alpha_split_compare_and_swap): Ditto.
19107         (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
19108         (alpha_split_compare_and_swap_12): Use gen_load_locked
19109         and gen_store_conditional.
19110         (alpha_split_atomic_exchange): Ditto.
19111         (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
19112         (alpha_split_atomic_exchange_12): Use gen_load_locked
19113         and gen_store_conditional.
19115 2019-06-20  Richard Earnshaw  <rearnsha@arm.com>
19117         * config/aarch64/aarch64-errata.h: New file.
19118         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
19119         (CA53_ERR_843419_SPEC): Delete.
19120         (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
19121         * config/aarch64/aarch64-linux.h: Likewise.
19122         * config/aarch64/aarch64-netbsd.h: Likewise.
19123         * config/aarch64/aarch64-freebsd.h: Likewise.
19125 2019-06-20  Marek Polacek  <polacek@redhat.com>
19127         * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
19129 2019-06-20  Michael Meissner  <meissner@linux.ibm.com>
19131         * config/rs6000/rs6000.md (isa attribute): Add support for
19132         for a future processor.
19134 2019-06-20  H.J. Lu  <hongjiu.lu@intel.com>
19136         PR target/54855
19137         * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
19138         standard scalar operation pattern for V2DF.
19139         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
19140         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
19141         (*ieee_<ieee_maxmin><mode>3): Likewise.
19142         (vec_setv2df_0): Likewise.
19144 2019-06-20  Jan Hubicka  <jh@suse.cz>
19146         * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
19147         parameter; it has no use in gimple memory model.
19148         (indirect_ref_may_alias_decl_p): Update.
19150 2019-06-20  Martin Liska  <mliska@suse.cz>
19152         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
19153         to 10.
19155 2019-06-20  Jakub Jelinek  <jakub@redhat.com>
19157         * tree-vect-stmts.c (enum scan_store_kind): New type.
19158         (scan_store_can_perm_p): Change last argument from int * to
19159         vec<enum scan_store_kind> *, record precisely which permutations
19160         need whole vector left shift or that plus VEC_COND_EXPR.
19161         (vectorizable_scan_store): Adjust caller, use whole vector left shift
19162         and additional VEC_COND_EXPR only for those iterations that need it.
19164 2019-06-20  Alexandre Oliva  <oliva@adacore.com>
19166         * config.gcc: Fix ARM --with-fpu checking and error message.
19168 2019-06-19  Marek Polacek  <polacek@redhat.com>
19170         PR c++/60364 - noreturn after first decl not diagnosed.
19171         * attribs.c (get_attribute_namespace): No longer static.
19172         (decl_attributes): Avoid shadowing.  Preserve the C++11 form for C++11
19173         attributes.
19174         (attr_noreturn_exclusions): Make it extern.
19175         * attribs.h (get_attribute_namespace): Declare.
19176         * tree-inline.c (function_attribute_inlinable_p): Use
19177         get_attribute_name.
19179 2019-06-19  Martin Sebor  <msebor@redhat.com>
19181         PR tree-optimization/90626
19182         * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
19184         PR tree-optimization/90626
19185         * tree-ssa-strlen.c (strxcmp_unequal): New function.
19186         (handle_builtin_string_cmp): Call it.
19188 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
19190         * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
19191         and DARWIN_NOPIE_SPEC.
19192         (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
19193         (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
19194         (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
19195         (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
19196         (DARWIN_EXPORT_DYNAMIC): Delete.
19197         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
19198         and pie options processing to  darwin.h.
19199         * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
19201 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
19203         * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
19204         in computing the number of options to be moved.
19206 2019-06-19  Maya Rashish  <coypu@sdf.org>
19208         *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
19209         (CLEAR_INSN_CACHE) Use it.
19211 2019-06-19  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19213         * config/i386/i386.md (cmpstrnsi): Remove dead code.
19215 2019-06-19  Wilco Dijkstra  <wdijkstr@arm.com>
19217         PR middle-end/84521
19218         * builtins.c (expand_builtin_setjmp_setup): Save
19219         hard_frame_pointer_rtx.
19220         (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
19221         restore fp.
19222         * function.c (expand_function_start): Save hard_frame_pointer_rtx for
19223         non-local goto.
19224         * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
19225         elimination code.
19226         (remove_reg_equal_offset_note): Remove unused function.
19227         * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
19228         code.
19229         * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19230         (arc_builtin_setjmp_frame_value): Remove function.
19231         * config/avr/avr.c  (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19232         (avr_builtin_setjmp_frame_value): Remove function.
19233         * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19234         (ix86_builtin_setjmp_frame_value): Remove function.
19235         * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
19236         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19237         (sparc_builtin_setjmp_frame_value): Remove function.
19238         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
19239         (vax_builtin_setjmp_frame_value): Remove function.
19240         * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
19241         pointer if has_nonlocal_label.
19243 2019-06-19  Jakub Jelinek  <jakub@redhat.com>
19245         * doc/md.texi: Document vec_shl_<mode> pattern.
19246         * optabs.def (vec_shl_optab): New optab.
19247         * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
19248         argument, if == vec_shl_optab, check for left whole vector shift
19249         pattern rather than right shift.
19250         (expand_vec_perm_const): Add vec_shl_optab support.
19251         * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
19252         in the comment.
19253         * tree-vect-generic.c (lower_vec_perm): Support permutations which
19254         can be handled by vec_shl_optab.
19255         * tree-vect-stmts.c (scan_store_can_perm_p): New function.
19256         (check_scan_store): Use it.
19257         (vectorizable_scan_store): If target can't do normal permutations,
19258         try to use whole vector left shifts and if needed a VEC_COND_EXPR
19259         after it.
19260         * config/i386/sse.md (vec_shl_<mode>): New expander.
19262         * omp-low.c (lower_rec_input_clauses): Handle references properly
19263         in inscan clauses.
19264         (lower_omp_scan): Likewise.
19266 2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
19268         * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
19269         mem_mode is BLKmode.
19271 2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>
19273         PR target/90922
19274         * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
19275         pointer adjustment for the case of no callee-saved registers and
19276         stack frame bigger than 128 bytes.
19278 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
19280         PR middle-end/90862
19281         * omp-low.c (check_omp_nesting_restrictions): Handle
19282         GF_OMP_TARGET_KIND_OACC_DECLARE.
19284 2019-06-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19286         * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
19287         (@add<mode>3_carry): Rename from add<mode>3_carry.
19288         (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
19289         (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
19290         (@copysign<mode>3_const): Rename from copysign<mode>3_const.
19291         (@copysign<mode>3_var): Rename from copysign<mode>3_var.
19292         (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
19293         (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
19294         (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
19295         (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
19296         (cmpstrnsi): Use gen_cmp_1.
19297         (lwp_slwpcb): Use gen_lwp_slwpcb_1.
19298         (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
19299         (@umonitor_<mode>): Rename from umonitor_<mode>.
19300         * config/i386/i386-expand.c (ix86_expand_copysign):
19301         Use gen_copysign3_const and gen_copysign3_var.
19302         (ix86_expand_xorsign): Use gen_xorsign3_1.
19303         (ix86_expand_branch): Use gen_sub3_carry_ccc,
19304         gen_sub3_carry_ccgz and gen_cmp1.
19305         (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
19306         (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
19307         (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
19308         (ix86_split_lshr): Ditto.
19309         (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
19311 2019-06-18  Jason Merrill  <jason@redhat.com>
19313         * tree.c (build_constructor): Add MEM_STAT_DECL.
19315 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
19317         * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
19318         * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
19319         (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
19320         (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
19321         (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
19322         (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
19323         (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
19324         Use CC_NZC instead of CC.
19325         * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
19326         * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
19327         (aarch64_print_operand): Handle E_CC_NZCmode.
19328         (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
19329         of gen_set_clobber_cc.
19331 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
19333         * config/aarch64/aarch64-sve.md: Tabify file.
19335 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
19337         * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
19338         * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
19339         * config/aarch64/aarch64-sve.md: Use it.
19341 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
19343         * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
19344         * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
19345         (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
19346         (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
19347         (aarch64_expand_sve_vec_cmp_int): Use it.
19348         (aarch64_expand_sve_vec_cmp_float): Likewise.
19349         * config/aarch64/aarch64-sve.md: Likewise throughout.
19351 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
19352             Kugan Vivekanandarajah  <kuganv@linaro.org>
19354         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
19355         (*cond_<optab><mode>_z): Fold into...
19356         (*cond_<optab><mode>_any): ...here.  Also handle cases in which
19357         operand 4 can be tied to operand 0 (either inherently or via RA).
19359 2019-06-18  Richard Biener  <rguenther@suse.de>
19361         PR debug/90900
19362         * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
19363         as if optimized away.
19365 2019-06-18  Tom de Vries  <tdevries@suse.de>
19367         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
19368         * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
19369         * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
19370         Rename to ...
19371         (define_insn "@set_softstack_<mode>"): ... this.
19372         (define_insn "omp_simt_enter_<mode>"): Rename to ...
19373         (define_insn "@omp_simt_enter_<mode>"): ... this.
19374         (define_insn "omp_simt_exit_<mode>"): Rename to ...
19375         (define_insn "@omp_simt_exit_<mode>"): ... this.
19377 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
19379         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
19380         vf parameter.  Restore the previous iv step of nscalars_step,
19381         but give it iv_type rather than compare_type.  Tweak code order
19382         to match the comments.
19383         (vect_set_loop_condition_masked): Update accordingly.
19384         * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
19385         for iv_precision.  Tweak comment formatting.
19387 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
19389         * config/darwin.c: Strip trailing whitespace.
19391 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
19393         * config/darwin.c (darwin_emit_unwind_label): New default to false.
19394         (darwin_override_options): Set darwin_emit_unwind_label as needed.
19396 2019-06-18  Martin Jambor  <mjambor@suse.cz>
19398         PR ipa/90889
19399         * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
19400         caller does not have flag_ipa_cp set.
19402 2019-06-18  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
19404         * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
19405         from "*fold_left_plus_<mode>", updated operands order.
19406         * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
19407         * internal-fn.c (mask_fold_left_direct): New define.
19408         (expand_mask_fold_left_optab_fn): Likewise.
19409         (direct_mask_fold_left_optab_supported_p): Likewise.
19410         * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
19411         * optabs.def (mask_fold_left_plus_optab): New optab.
19412         * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
19413         masked internal_fn for a reduction ifn.
19414         (vectorize_fold_left_reduction): Add support for masking reductions.
19416 2019-06-18  Kewen Lin  <linkw@gcc.gnu.org>
19418         PR middle-end/80791
19419         * target.def (predict_doloop_p): New hook.
19420         * targhooks.h (default_predict_doloop_p): New declaration.
19421         * targhooks.c (default_predict_doloop_p): New function.
19422         * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
19423         * doc/tm.texi: Regenerate.
19424         * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
19425         (TARGET_PREDICT_DOLOOP_P): New macro.
19426         * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
19428 2019-06-17  Jakub Jelinek  <jakub@redhat.com>
19430         * omp-low.c (struct omp_context): Add scan_inclusive field.
19431         (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
19432         if inclusive scan.
19433         (struct omplow_simd_context): Add lastlane member.
19434         (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
19435         reductions.  Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
19436         1 or 2 argument.
19437         (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
19438         (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
19439         (lower_omp_scan): New function.
19440         (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
19441         * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
19442         check 3rd argument if present rather than 2nd.
19443         * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
19444         (struct _stmt_vec_info): Change simd_lane_access_p from bool into
19445         2-bit bitfield.
19446         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
19447         scan_map.  For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
19448         than 2nd.
19449         (_loop_vec_info::~_loop_vec_info): Delete scan_map.
19450         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
19451         different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
19452         init.
19453         (vect_find_stmt_data_reference): Encode in ->aux the 2nd
19454         IFN_GOMP_SIMD_LANE argument.
19455         (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
19456         encoded ->aux value.
19457         * tree-vect-stmts.c: Include attribs.h.
19458         (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
19459         (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
19460         functions.
19461         (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
19462         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
19464 2019-06-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19466         PR target/62055
19467         * config/i386/i386.md (*nabstf2_1): New insn pattern.
19468         (*nabs<mode>2_1): Ditto.
19469         (nabs sse-reg splitter): New splitter.
19470         * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
19472 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
19474         PR bootstrap/90873.
19475         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
19476         TMR index check.
19478 2019-06-17  Tom de Vries  <tdevries@suse.de>
19480         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
19481         * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
19482         * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
19483         ...
19484         (define_insn "set_softstack_<mode>"): ... this.  Use P iterator on
19485         match_operand 0.
19486         (define_insn "omp_simt_enter_insn"): Rename to ...
19487         (define_insn "omp_simt_enter_<mode>"): ... this.  Use P iterator on
19488         match_operand 0, 1 and 2, as well as the unspec_volatile result.
19489         (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
19490         gen_omp_simt_enter_si.
19491         (define_expand "omp_simt_exit"): New.
19492         (define_insn "omp_simt_exit"): Rename to ...
19493         (define_insn "omp_simt_exit_<mode>"): ... this.  Use P iterator on
19494         match_operand 0.
19496 2019-06-17  Matthew Green  <mrg@eterna.com.au>
19497             Maya Rashish  <coypu@sdf.org>
19499         * config.gcc (aarch64*-*-netbsd*): New target.
19500         * config/aarch64/aarch64-netbsd.h: New file.
19501         * config/aarch64/t-aarch64-netbsd: Likewise.
19503 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
19505         * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
19506         the access path from base to first VIEW_CONVERT_EXPR or
19507         BIT_FIELD_REF.
19509 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
19511         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
19512         access path on BIT_FIELD_REFs.
19514 2019-06-17  Martin Liska  <mliska@suse.cz>
19516         PR ipa/90874
19517         * ipa-utils.h (odr_type_p): Remove dead code.
19519 2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19521         * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
19522         alternative Solaris 11.4 format.
19523         * configure: Regenerate.
19525 2019-06-17  Tom de Vries  <tdevries@suse.de>
19527         * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
19528         (define_insn "call_insn_<mode>"): ... this.  Use P iterator on
19529         match_operand 0.
19530         (define_insn "call_value_insn"): Rename to ...
19531         (define_insn "call_value_insn_<mode>"): this.  Use P iterator on
19532         match_operand 0.
19533         (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
19534         DI.
19536 2019-06-16  John David Anglin  <danglin@gcc.gnu.org>
19538         PR middle-end/64242
19539         * config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
19540         frame clobbers and schedule block.
19541         (builtin_longjmp): Likewise.
19543 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19545         * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
19546         describe how to perform MSPABI compliant 64-bit shift.
19547         * config/msp430/msp430.md (ashldi3): New define_expand.
19548         (ashrdi3): New define_expand.
19549         (lshrdi3): New define_expand.
19551 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19553         * doc/sourcebuild.texi: Document new effective target keyword
19554         longlong64.
19556 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
19558         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
19559         indirect_refs_may_alias_p): Revert accidental commits.
19561         * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
19562         at the end of structures.
19564 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
19566         * config/darwin.c (machopic_indirect_call_target): Use renamed
19567         darwin_picsymbol_stubs to decide on output.
19568         (darwin_override_options): Handle darwin_picsymbol_stubs.
19569         * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
19570         (LD64_VERSION): Revise default.
19571         * config/darwin.opt: (mpic-symbol-stubs): New option.
19572         (darwin_picsymbol_stubs): New variable.
19573         * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
19574         rename to TARGET_MACHO_PICSYM_STUBS.
19575         * config/i386/i386.c (output_pic_addr_const): Likewise.
19576         * config/i386/i386.h Likewise.
19577         * config/rs6000/darwin.h: Likewise.
19578         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
19579         darwin_picsymbol_stubs.
19581 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
19583         * config/darwin.opt (prebind, noprebind, seglinkedit,
19584         noseglinkedit): Add RejectNegative.
19586 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
19588         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
19589         in my previous patch.
19591 2019-06-16  Tom de Vries  <tdevries@suse.de>
19593         PR tree-optimization/89376
19594         * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
19596 2019-06-15  Maya Rashish  <coypu@sdf.org>
19598         * doc/invoke.texi (Spec Files): Update location of the
19599         Fortran spec file.
19601 2019-06-15  Gerald Pfeifer  <gerald@pfeifer.com>
19603         * doc/extend.texi (Common Function Attributes): Clarify
19604         no_sanitize.  Fix grammar.
19606 2019-06-15  Jan Hubicka  <hubicka@ucw.cz>
19608         * tree-ssa-alias.c (alias_stats): Add
19609         nonoverlapping_component_refs_p_may_alias,
19610         nonoverlapping_component_refs_p_no_alias,
19611         nonoverlapping_component_refs_of_decl_p_may_alias,
19612         nonoverlapping_component_refs_of_decl_p_no_alias.
19613         (dump_alias_stats): Dump them.
19614         (nonoverlapping_component_refs_of_decl_p): Add stats.
19615         (nonoverlapping_component_refs_p): Add stats; do not stop on first
19616         ARRAY_REF.
19618 2019-06-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19620         * config/i386/i386.md (and<mode>3): Generate zero-extends for
19621         TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
19622         only.
19623         (*anddi3_doubleword): Split before reload. Merge with
19624         anddi->zext pre-reload splitter.
19625         (*andndi3_doubleword): Split before reload.
19626         (*<code>di3_doubleword): Ditto.
19627         (*one_cmpldi2_doubleword): Ditto.
19629 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
19631         PR middle-end/90779
19632         * gimplify.c: Include omp-offload.h and context.h.
19633         (gimplify_bind_expr): Add "omp declare target" attributes
19634         to static block scope variables inside of target region or target
19635         functions.
19637 2019-06-15  Tom de Vries  <tdevries@suse.de>
19639         PR tree-optimization/90009
19640         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
19641         Return NULL if bb contains IFN_UNIQUE.
19643 2019-06-14  Segher Boessenkool  <segher@kernel.crashing.org>
19645         * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
19646         (un): New define_mode_attr.
19647         (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
19648         (isel_<un>signed_<GPR:mode>): ... this.  New define_insn.
19649         (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
19650         merge into ...
19651         (isel_reversed_<un>signed_<GPR:mode>): ... this.  New define_insn.
19653 2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>
19655         * config/darwin.opt: Add RejectNegative where needed, reorder
19656         and add minimal functional descriptions.
19658 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
19660         PR rtl-optimization/90765
19661         * calls.c (update_stack_alignment_for_call): New function.
19662         (expand_call): Call update_stack_alignment_for_call when
19663         outgoing parameter is passed in the stack.
19664         (emit_library_call_value_1): Likewise.
19665         * function.c (locate_and_pad_parm): Don't update
19666         stack_alignment_needed and preferred_stack_boundary.
19668 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
19670         PR target/90877
19671         * config/i386/i386-features.c
19672         (dimode_scalar_chain::compute_convert_gain): Replace
19673         mmxsse_to_integer with sse_to_integer.
19674         * config/i386/i386.c (ix86_register_move_cost): Verify that
19675         moves between MMX and non-MMX units require secondary memory.
19676         Correct costs of moves between SSE and integer units.
19677         * config/i386/i386.h (processor_costs): Rename cost of moving
19678         SSE register to integer to sse_to_integer.  Rename cost of
19680 2019-06-14  Matt Thomas  <matt@3am-software.com>
19681             Matthew Green  <mrg@eterna.com.au>
19682             Nick Hudson  <skrll@netbsd.org>
19683             Maya Rashish  <coypu@sdf.org>
19684             Richard Earnshaw  <rearnsha@arm.com>
19686         * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
19687         * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
19688         * config/arm/netbsd-eabi.h: New file.
19689         * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
19690         redefining.
19691         (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
19692         * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
19693         (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
19694         (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
19696 2019-06-14  Richard Biener  <rguenther@suse.de>
19698         * tree-loop-distribution.c (classify_partition): Return
19699         whether a reduction appeared in all partitions and do not
19700         stop builtin detection because of this.
19701         (distribute_loop): Sort a non-builtin partition last if
19702         there's a reduction in all partitions and make sure the
19703         partition prevailing as last is not a builtin.
19705 2019-06-14  Feng Xue  <fxue@os.amperecomputing.com>
19707         PR ipa/90401
19708         * ipa-prop.c (add_to_agg_contents_list): New function.
19709         (clobber_by_agg_contents_list_p): Likewise.
19710         (extract_mem_content): Likewise.
19711         (get_place_in_agg_contents_list): Delete.
19712         (determine_known_aggregate_parts): Renamed from
19713         determine_locally_known_aggregate_parts.  New parameter
19714         aa_walk_budget_p.
19716 2019-06-13  Martin Sebor  <msebor@redhat.com>
19718         PR tree-optimization/90662
19719         * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
19720         to the same type.
19722 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
19724         PR bootstrap/90873
19725         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
19726         dbase is not TARGET_MEM_REF.
19728 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19730         * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
19731         Update all uses.
19732         (and<mode>3): Use gen_extend_insn instead of indirect functions.
19733         Do not generate DImode extends for 32bit targets.
19734         (and->zext post-reload splitter): Use gen_extend_insn
19735         instead of indirect functions.
19736         (anddi->zext pre-reload splitter): New.
19737         (*zext<mode>_doubleword_and): Remove.
19738         (*zext<mode>_doubleword): Ditto.
19739         (*zextsi_doubleword): Dittto.
19741 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19743         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
19744         Use gen_sub3_insn instead of indirect function.
19745         (ix86_expand_ashl_const): Use gen_add2_insn instead of
19746         indirect function.
19747         (ix86_adjust_counter): Ditto.
19749 2019-06-13  Jiufu Guo  <guojiufu@linux.ibm.com>
19750             Lijia He  <helijia@linux.ibm.com>
19752         PR tree-optimization/77820
19753         * tree-ssa-threadedge.c
19754         (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
19755         function.
19756         (thread_across_edge): Add call to
19757         edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
19759 2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
19761         * config/darwin-driver.c (validate_macosx_version_min): New.
19762         (darwin_default_min_version): Cleanup and validate supplied version.
19763         (darwin_driver_init): Likewise and push cleaned version into opts.
19765 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
19767         PR tree-optimization/90869
19768         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
19769         converts in MEM_REF referencing decl rather than view converts
19770         from decl type to MEM_REF type.
19772 2019-06-13  Richard Biener  <rguenther@suse.de>
19774         PR tree-optimization/90856
19775         * tree-sra.c (build_ref_for_model): Only use
19776         build_reconstructed_reference when address-spaces are the same.
19778 2019-06-13  Jakub Jelinek  <jakub@redhat.com>
19780         * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
19781         wrap ei variable name in the declaration in ()s.
19782         (nvptx_single): Actually use mode_label variable.  Formatting fix.
19784 2019-06-13  Richard Biener  <rguenther@suse.de>
19786         * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
19787         * tree-vectorizer.c (vect_loop_vectorized_call): Export and
19788         also return the condition stmt.
19789         * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
19790         loop we can version and version that, reusing the loop version
19791         created by if-conversion instead of versioning again.
19793 2019-06-13  Aldy Hernandez  <aldyh@redhat.com>
19795         * gimple-loop-versioning.cc (prune_loop_conditions): Use
19796         may_contain_p.
19797         * tree-vrp (value_range_base::may_contain_p): Call into
19798         value_inside_range.
19799         (value_inside_range): Make private inside value_range_base class.
19800         Take min/max from *this.
19801         (range_includes_p): Remove.
19802         * tree-vrp.h (value_range_base): Add value_inside_range.
19803         (range_includes_p): Remove.
19804         (range_includes_zero_p): Call may_contain_p.
19805         * vr-values.c (compare_range_with_value): Same.
19807 2019-06-13  Claudiu Zissulescu  <claziss@synopsys.com>
19809         * doc/extend.texi (ARC Function Attributes): Update info.
19811 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
19813         PR tree-optimization/89713
19814         * doc/invoke.texi (-ffinite-loops): Document new option.
19815         * common.opt (-ffinite-loops): New option.
19816         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
19817         IFN_GOACC_LOOP calls as necessary.
19818         * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
19819         is finite.
19820         * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
19821         IFN_GOACC_LOOP call is not used.
19822         * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
19824 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
19826         PR target/88838
19827         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
19828         compare_type is not with Pmode size, we will create an IV with
19829         Pmode size with truncated use (i.e. converted to the correct type).
19830         * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
19831         (vect_iv_limit_for_full_masking): New. Factored out of
19832         vect_set_loop_condition_masked.
19833         * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
19834         (vect_iv_limit_for_full_masking): Declare.
19836 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
19838         PR target/88834
19839         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
19840         IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
19841         (get_alias_ptr_type_for_ptr_address): Likewise.
19842         (add_iv_candidate_for_use): Add scaled index candidate if useful.
19843         * tree-ssa-address.c (preferred_mem_scale_factor): New.
19844         * config/aarch64/aarch64.c (aarch64_classify_address): Relax
19845         allow_reg_index_p.
19847 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
19849         * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
19851 2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>
19853         * common/config/pru/pru-common.c: New file.
19854         * config.gcc: Add PRU target.
19855         * config/pru/alu-zext.md: New file.
19856         * config/pru/constraints.md: New file.
19857         * config/pru/predicates.md: New file.
19858         * config/pru/pru-opts.h: New file.
19859         * config/pru/pru-passes.c: New file.
19860         * config/pru/pru-pragma.c: New file.
19861         * config/pru/pru-protos.h: New file.
19862         * config/pru/pru.c: New file.
19863         * config/pru/pru.h: New file.
19864         * config/pru/pru.md: New file.
19865         * config/pru/pru.opt: New file.
19866         * config/pru/t-pru: New file.
19867         * doc/extend.texi: Document PRU pragmas.
19868         * doc/invoke.texi: Document PRU-specific options.
19869         * doc/md.texi: Document PRU asm constraints.
19871 2019-06-12  Martin Sebor  <msebor@redhat.com>
19873         PR middle-end/90676
19874         * tree-pretty-print.c (dump_mem_ref): New function.  Include
19875         MEM_REF type in output when different size than operand.
19876         (dump_generic_node): Move code to dump_mem_ref and call it.
19878 2019-06-12  Martin Sebor  <msebor@redhat.com>
19880         PR tree-optimization/90662
19881         * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
19882         to arrays.
19884 2019-06-12  Tom de Vries  <tdevries@suse.de>
19886         PR tree-optimization/90009
19887         * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
19889 2019-06-12  Martin Liska  <mliska@suse.cz>
19891         * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
19892         the created map.
19893         * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
19894         * mem-stats.h (mem_alloc_description::mem_alloc_description):
19895         Do not sanitize created maps.
19897 2019-06-12  Aldy Hernandez  <aldyh@redhat.com>
19899         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
19900         value_range::singleton_p.
19901         * tree-vrp.c (value_range_constant_singleton): Remove.
19902         * tree-vrp.h (value_range_constant_singleton): Remove.
19903         * vr-values.c (vr_values::singleton): Use
19904         value_range::singleton_p.
19906 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
19908         PR target/90811
19909         * cfgexpand.c (align_local_variable): Add really_expand argument,
19910         don't SET_DECL_ALIGN if it is false.
19911         (add_stack_var): Add really_expand argument, pass it through to
19912         align_local_variable.
19913         (expand_one_stack_var_1): Pass true as really_expand to
19914         align_local_variable.
19915         (expand_one_ssa_partition): Pass true as really_expand to
19916         add_stack_var.
19917         (expand_one_var): Pass really_expand through to add_stack_var.
19919 2019-06-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
19921         * config/arm/iterators.md (VABAL): New int iterator.
19922         * config/arm/neon.md (<sup>sadv16qi): New define_expand.
19923         * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
19924         UNSPEC_VABAL_U values.
19926 2019-06-12  Martin Liska  <mliska@suse.cz>
19928         * value-prof.c (stream_out_histogram_value): Only first value
19929         can't be negative.
19931 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
19933         PR c/90760
19934         * symtab.c (symtab_node::set_section): Allow being called on aliases
19935         as long as they aren't analyzed yet.
19937 2019-06-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
19939         * config/mips/mips.c (mips_final_postscan_insn): Modify call
19940         to `mips_set_text_contents_type' to indicate whether a
19941         non-debug insn follows.
19943 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
19945         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
19946         enabling -mpcrel by default.
19947         * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
19948         test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
19949         that the test against -mcpu=future is done first.  Then test if
19950         -mprefixed-addr is on for -mpcrel.
19951         (rs6000_disable_incompatible_switches): Add -mcpu=future support.
19953 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
19955         PR target/90811
19956         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
19957         instead of and.u%d.
19959 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
19961         * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
19963 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
19965         PR c++/90449 - add -Winaccessible-base option.
19966         * doc/invoke.texi (Winaccessible-base): Document.
19968 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
19970         PR tree-optimization/62041
19971         * fold-const.c (fold_real_zero_addition_p): Handle vectors.
19973 2019-06-11  Jason Merrill  <jason@redhat.com>
19975         * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
19976         * tree.c (get_tree_code_name): Likewise.
19977         * print-tree.c (print_node): Only briefly print a node with an
19978         invalid code.
19980 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
19982         PR bootstrap/90819
19983         * trans-mem.c (tm_memopt_compute_available): Add assertion
19984         that blocks is not empty.  Formatting fix.
19986 2019-06-11  Martin Liska  <mliska@suse.cz>
19988         PR c++/87847
19989         * hash-table.h: Extend create_gcc, add one parameter
19990         that is passed into hash_table::hash_table.
19992 2019-06-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19994         * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
19995         New prototype.
19996         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
19997         Emit clobber also for non-sse operations.
19998         (ix86_split_fp_absneg_operator): New function.
19999         * config/i386/i386.md (SSEMODEF): New mode iterator.
20000         (ssevecmodef): New mode attribute.
20001         (<code>tf2): Use absneg code iterator.
20002         (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
20003         Add three-operand AVX alternatives.
20004         (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
20005         Use absneg code iterator and X87MODEF mode iterator.
20006         (absneg fp_reg non-sse splitter): Call absneg code iterator
20007         and X87MODEF mode iterator.
20008         (absneg general_reg non-sse splitter): Use absneg code iterator
20009         and X87MODEF mode iterator.  Use ix86_split_fp_absneg_operator.
20010         (*<code><mode>2_1): Rename from *absneg<mode>2.  Use absneg
20011         code iterator.  Add three-operand AVX alternative.
20012         (absneg sse_reg splitter): Use absneg code iterator
20013         and SSEMODEF mode iterator.  Handle AVX operands.
20014         (absneg fp_reg splitter): Use absneg code iterator
20015         and MODEF mode iterator.
20016         (absneg general_reg splitter): Merge splitters using MODEF mode
20017         iterator.  Use absneg code iterator.  Call
20018         ix86_split_fp_absneg_operator.
20019         (*<code><mode>2_i387): Rename from *<code><mode>2_1.
20020         Do not enable for non-sse modes before reload.
20021         (CSGNMODE): Remove.
20022         (CSGNVMODE): Ditto.
20023         (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
20024         ssevecmodef mode attribute instaed of CSGNVMODE.
20025         (copysign<mode>3_const): Ditto.
20026         (copysign<mode>3_var): Ditto.
20027         * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
20028         Use absneg code iterator.  Simplify code using std::swap.
20029         * config/i386/predicates.md (absneg_operator): Remove.
20031 2019-06-10  Martin Sebor  <msebor@redhat.com>
20033         * gimple-fold.c (get_range_strlen): Update comment that didn't
20034         make it into r267503 or related commits.
20036 2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
20038         * gcov-tool.c (merge_usage, rewrite_usage): Mark with
20039         ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
20041 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
20043         * tree.def (OMP_SCAN): New tree code.
20044         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
20045         OMP_CLAUSE_EXCLUSIVE.
20046         * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
20047         (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
20048         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
20049         OMP_CLAUSE_{IN,EX}CLUSIVE.
20050         (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
20051         * tree-nested.c (convert_nonlocal_reference_stmt,
20052         convert_local_reference_stmt, convert_gimple_call): Handle
20053         GIMPLE_OMP_SCAN.
20054         * tree-pretty-print.c (dump_omp_clause): Handle
20055         OMP_CLAUSE_{IN,EX}CLUSIVE.
20056         (dump_generic_node): Handle OMP_SCAN.
20057         * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
20058         * gimple.h (gomp_scan): New type.
20059         (is_a_helper <gomp_scan *>::test,
20060         is_a_helper <const gomp_scan *>::test): New templates.
20061         (gimple_build_omp_scan): Declare.
20062         (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
20063         gimple_omp_scan_set_clauses): New inline functions.
20064         (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
20065         * gimple.c (gimple_build_omp_scan): New function.
20066         (gimple_copy): Handle GIMPLE_OMP_SCAN.
20067         * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
20068         * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
20069         GIMPLE_OMP_TASKGROUP.
20070         (dump_gimple_omp_scan): New function.
20071         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
20072         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
20073         * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
20074         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
20075         (is_gimple_stmt): Handle OMP_SCAN.
20076         (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
20077         other than OMP_FOR or OMP_SIMD.  Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
20078         (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
20079         mentioned in nested #pragma omp scan.  Handle
20080         OMP_CLAUSE_{IN,EX}CLUSIVE.
20081         (gimplify_expr): Handle OMP_SCAN.
20082         * omp-low.c (check_omp_nesting_restrictions): For parent context,
20083         look through GIMPLE_OMP_SCAN context.  Allow #pragma omp scan in
20084         simd constructs.
20085         (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
20086         GIMPLE_OMP_SCAN.
20088 2019-06-10  Martin Liska  <mliska@suse.cz>
20090         * ipa-cp.c (ignore_edge_p): New function.
20091         (build_toporder_info): Use it.
20092         * ipa-inline.c (ignore_edge_p): New function.
20093         (inline_small_functions): Use it.
20094         * ipa-pure-const.c (ignore_edge_for_nothrow):
20095         Verify opt_for_fn for caller and callee.
20096         (ignore_edge_for_pure_const): Likewise.
20097         * ipa-reference.c (ignore_edge_p): Extend to check
20098         for opt_for_fn.
20099         * ipa-utils.c (searchc): Refactor.
20100         * ipa-utils.h: Fix coding style.
20102 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
20104         * config/arc/arc.c (arc_rtx_costs): Update costs.
20106 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
20108         * config/arc/arc-protos.h (arc_check_ior_const): Declare.
20109         (arc_split_ior): Likewise.
20110         (arc_check_mov_const): Likewise.
20111         (arc_split_mov_const): Likewise.
20112         * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
20113         (arc_rtx_costs): Replace check Crr with Cax constraint.
20114         (prepare_move_operands): Cleanup, remove unused code.
20115         (arc_split_ior): New function.
20116         (arc_check_ior_const): Likewise.
20117         (arc_split_mov_const): Likewise.
20118         (arc_check_mov_const): Likewise.
20119         * config/arc/arc.md (movsi_insn): Restructure it, and convert it
20120         in define_insn_and_split pattern.
20121         (iorsi3): Likewise.
20122         (mulsi3_v2): Add new matching variant.
20123         (andsi3_i): Cleanup pattern.
20124         (rotrsi3_cnt1): Update pattern.
20125         (rotrsi3_cnt8): New pattern.
20126         (ashlsi2_cnt8): Likewise.
20127         (ashlsi2_cnt16): Likewise.
20128         * config/arc/constraints.md (C0p): Update constraint.
20129         (Crr): Remove it.
20130         (C0x): New pattern.
20131         (Cax): New pattern.
20133 2019-06-10  Martin Liska  <mliska@suse.cz>
20135         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
20136         Update coding style.
20137         (sem_item_optimizer::dump_cong_classes):
20138         Print how many items are in a non-singular class.  Improve
20139         coding style.
20141 2019-06-10  Martin Liska  <mliska@suse.cz>
20143         * value-prof.c (dump_histogram_value): Change dump format.
20144         (gimple_mod_subtract_transform): Remove legacy comment.
20146 2019-06-10  Martin Liska  <mliska@suse.cz>
20148         * value-prof.c (dump_histogram_value): Print histogram values
20149         only if present.
20151 2019-06-10  Martin Liska  <mliska@suse.cz>
20153         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
20154         (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
20155         * ipa-profile.c (ipa_profile_generate_summary):
20156         Use get_most_common_single_value.
20157         * tree-profile.c (gimple_init_gcov_profiler):
20158         Instrument with __gcov_one_value_profiler_v2
20159         and __gcov_indirect_call_profiler_v4.
20160         * value-prof.c (dump_histogram_value):
20161         Print all values for HIST_TYPE_SINGLE_VALUE.
20162         (stream_out_histogram_value): Update assert for
20163         N values.
20164         (stream_in_histogram_value): Set number of
20165         counters for HIST_TYPE_SINGLE_VALUE.
20166         (get_most_common_single_value): New.
20167         (gimple_divmod_fixed_value_transform):
20168         Use get_most_common_single_value.
20169         (gimple_ic_transform): Likewise.
20170         (gimple_stringops_transform): Likewise.
20171         (gimple_find_values_to_profile): Set number
20172         of counters for HIST_TYPE_SINGLE_VALUE.
20173         * value-prof.h (get_most_common_single_value): New.
20175 2019-06-10  Martin Liska  <mliska@suse.cz>
20177         * hash-map.h: Pass default value to hash_table ctor.
20178         * hash-table.h: Add default value to call of a ctor.
20180 2019-06-08  Jonathan Wakely  <jwakely@redhat.com>
20182         * doc/invoke.texi (C Dialect Options): Minor grammatical change.
20183         (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
20185 2019-06-07  John David Anglin  <danglin@gcc.gnu.orig>
20187         PR target/90751
20188         * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
20189         Call pa_output_function_label.
20190         (TARGET_ASM_FUNCTION_PROLOGUE): define.
20191         * config/pa/pa-protos.h (pa_output_function_label): Declare.
20192         * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
20193         to declaration.
20194         (pa_linux_output_function_prologue): Declare.
20195         (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
20196         (pa_output_function_label): New.
20197         (pa_output_function_prologue): Revise to use pa_output_function_label.
20198         (pa_linux_output_function_prologue): New.
20199         * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
20201 2019-06-07  Aldy Hernandez  <aldyh@redhat.com>
20203         * tree-vrp.h (value_range_base::intersect): New.
20204         (value_range::intersect_helper): Move from here...
20205         (value_range_base::intersect_helper): ...to here.
20206         * tree-vrp.c (value_range::intersect_helper): Rename to...
20207         (value_range_base::intersect_helper): ...this, and rewrite to
20208         return a value instead of modifying THIS in place.
20209         Also, move equivalence handling...
20210         (value_range::intersect): ...here, while calling intersect_helper.
20211         * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
20212         calling intersect.
20213         * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
20214         Same.
20215         * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
20217 2019-06-07  Jakub Jelinek  <jakub@redhat.com>
20219         * Makefile.in (genprogerr): Add condmd.
20220         (genprog): Remove it here.
20222 2019-06-07  Andrew Stubbs  <ams@codesourcery.com>
20224         * doc/invoke.texi (AMD GCN Options): Add gfx906.
20226 2019-06-07  Richard Biener  <rguenther@suse.de>
20228         PR debug/90574
20229         * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
20230         that appear after user labels.
20232 2019-06-07  Martin Liska  <mliska@suse.cz>
20234         * cselib.c (cselib_init): Disable hash table
20235         sanitization.
20236         * hash-set.h: Pass new default argument to m_table.
20237         * hash-table.c: Add global variable with hash table
20238         sanitization limit.
20239         * hash-table.h (Allocator>::hash_table): Add new argument
20240         to ctor.
20241         (hashtab_chk_error): New.
20242         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
20243         * toplev.c (process_options): Set hash_table_sanitize_eq_limit
20244         from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
20246 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
20248         * common.opt (flto-odr-type-merging): Ignore.
20249         * invoke.texi (-flto-odr-type-merging): Remove.
20250         * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
20251         (can_be_vtable_hashed_p): Remove.
20252         (hash_odr_vtable): Remove.
20253         (odr_vtable_hasher::hash): Remove.
20254         (types_same_for_odr): Remove.
20255         (types_odr_comparable): Remove.
20256         (odr_vtable_hasher::equal): Remove.
20257         (odr_vtable_hash_type, odr_vtable_hash): Remove.
20258         (add_type_duplicate): Do not synchronize vtable and name hashtables.
20259         (get_odr_type): Do not use vtable hash.
20260         (dump_odr_type): Remove commented out code.
20261         (build_type_inheritance_graph): Do not allocate vtable hash.
20262         (rebuild_type_inheritance_graph): Do not delete vtable hash.
20263         * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
20264         (odr_type_p): Likewise.
20265         * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
20266         test.
20268 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
20270         * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
20271         immediately after same_types_for_tbaa_p returns -1 and continue
20272         looking for possible exact match; if matching types are arrays
20273         watch for partial overlaps.
20274         (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
20275         (indirect_refs_may_alias_p): Do type based disambiguation first;
20276         update comment.
20278 2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
20280         * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
20282 2019-06-07  Martin Liska  <mliska@suse.cz>
20284         * doc/invoke.texi: Remove param.
20285         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
20286         Remove.
20287         * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
20288         (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
20289         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
20290         * profile.c (instrument_values): Remove
20291         HIST_TYPE_INDIR_CALL_TOPN.
20292         * tree-profile.c (init_ic_make_global_vars):
20293         Always build __gcov_indirect_call only.
20294         (gimple_init_gcov_profiler): Remove usage
20295         of PARAM_INDIR_CALL_TOPN_PROFILE.
20296         (gimple_gen_ic_profiler): Likewise.
20297         * value-prof.c (dump_histogram_value): Likewise.
20298         (stream_in_histogram_value): Likewise.
20299         (gimple_indirect_call_to_profile): Likewise.
20300         (gimple_find_values_to_profile): Likewise.
20301         * value-prof.h (enum hist_type): Likewise.
20303 2019-06-07  Martin Liska  <mliska@suse.cz>
20305         * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
20306         function.
20308 2019-06-07  Martin Liska  <mliska@suse.cz>
20310         PR tree-optimization/78902
20311         * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
20312         (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
20313         (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
20314         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
20315         (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
20316         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
20317         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
20318         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
20319         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
20320         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
20321         (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
20322         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
20323         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
20324         New.
20325         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
20326         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
20327         (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
20328         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
20329         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
20330         (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
20331         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
20332         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
20333         * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
20334         warn_unused_result attribute.
20335         (BUILT_IN_STRDUP): Likewise.
20336         (BUILT_IN_STRNDUP): Likewise.
20337         (BUILT_IN_ALLOCA): Likewise.
20338         (BUILT_IN_CALLOC): Likewise.
20339         (BUILT_IN_MALLOC): Likewise.
20340         (BUILT_IN_REALLOC): Likewise.
20342 2019-06-06  Jim Wilson  <jimw@sifive.com>
20344         PR target/89955
20345         * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
20346         * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
20347         * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
20349 2019-06-06  Martin Sebor  <msebor@redhat.com>
20351         * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
20352         (handle_builtin_malloc): Remove trailing spaces.
20353         (handle_builtin_memset): Same.
20354         (handle_builtin_memcmp): Same.
20355         (compute_string_length): Same.
20356         (determine_min_objsize): Same.
20357         (handle_builtin_string_cmp): Same.
20358         (handle_char_store): Same.  Break up excessively long line.
20360 2019-06-06  Martin Jambor  <mjambor@suse.cz>
20362         * tree-sra.c (build_reconstructed_reference): Drop the alignment
20363         check.
20365 2019-06-06  Martin Jambor  <mjambor@suse.cz>
20367         * tree-sra.c (struct access): New field grp_same_access_path.
20368         (dump_access): Dump it.
20369         (build_reconstructed_reference): New function.
20370         (build_ref_for_model): Use it if possible.
20371         (path_comparable_for_same_access): New function.
20372         (same_access_path_p): Likewise.
20373         (sort_and_splice_var_accesses): Set the new flag.
20374         (analyze_access_subtree): Likewise.
20375         (propagate_subaccesses_across_link): Propagate zero value of the new
20376         flag down the access tree.
20378 2019-06-06  Andrew Stubbs  <ams@codesourcery.com>
20380         * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
20381         * config/gcn/gcn.opt (gpu_type): Add gfx906.
20382         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
20383         (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
20384         Add gfx906.
20386 2019-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20388         PR tree-optimization/90332
20389         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
20390         Handle VALS containing two vectors.
20391         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
20392         to...
20393         (@aarch64_combinez<mode>): ... This.
20394         (*aarch64_combinez_be<mode>): Rename to...
20395         (@aarch64_combinez_be<mode>): ... This.
20396         (vec_init<mode><Vhalf>): New define_expand.
20397         * config/aarch64/iterators.md (Vhalf): Handle V8HF.
20399 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
20401         * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
20402         library functions only when not optimizing for size.
20403         (ashlsi3): Likewise.
20404         (ashrhi3): Likewise.
20405         (ashrsi3): Likewise.
20406         (lshrhi3): Likewise.
20407         (lshrsi3): Likewise.
20409 2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>
20411         PR rtl-optimization/88751
20412         * ira.c (ira): Use the number of the actually referenced registers
20413         when calculating the threshold.
20415 2019-06-06  Jakub Jelinek  <jakub@redhat.com>
20417         * configure: Regenerate.
20419 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
20421         * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
20422         register if it is in memory, so the shift can be emulated with a rotate
20423         instruction.
20424         (ashrhi3): Likewise.
20425         (lshrhi3): Likewise.
20427 2019-06-06  Martin Liska  <mliska@suse.cz>
20429         PR tree-optimization/87954
20430         * match.pd: Simplify mult where both arguments are 0 or 1.
20432 2019-06-06  Richard Biener  <rguenther@suse.de>
20434         * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
20435         put equivalences on UNDEFINED ranges.
20436         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
20437         Make sure to drop defs of stmts added during simplification
20438         to VARYING.
20440 2019-06-06  Richard Biener  <rguenther@suse.de>
20442         * tree-ssa-structalias.c: Include tree-cfg.h.
20443         (make_heapvar): Do not make heap vars artificial.
20444         (find_func_aliases_for_builtin_call): Handle stack allocation
20445         functions.
20446         (find_func_aliases): Delay processing of simple enough returns
20447         in non-IPA mode.
20448         (set_uids_in_ptset): Adjust.
20449         (find_what_var_points_to): Likewise.
20450         (solve_constraints): Do not dump points-to sets here.
20451         (compute_points_to_sets): Post-process return statements,
20452         amending the escaped solution.  Dump points-to sets afterwards.
20453         (ipa_pta_execute): Dump points-to sets.
20455 2019-06-06  Martin Liska  <mliska@suse.cz>
20457         PR web/87933
20458         * doc/install.texi: Fix HTML headers and
20459         titles for 'Installing GCC' pages.
20461 2019-06-06  Martin Liska  <mliska@suse.cz>
20463         * ipa-icf-gimple.h (dump_message_1): Remove.
20464         (dump_message): Likewise.
20465         (return_false_with_message_1): Print also file.
20466         (return_false_with_msg): Likewise.
20467         (return_with_result): Likewise.
20468         (return_with_debug): Likewise.
20469         * ipa-icf.c (sem_function::equals_private): Remove call
20470         to dump_message.
20472 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
20474         * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
20475         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
20476         memory operand for it.
20477         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
20479 2019-06-05  Martin Sebor  <msebor@redhat.com>
20481         * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
20482         Adjust quoting and hyphenation.
20483         * convert.c (convert_to_real_1): Same.
20484         * gcc.c (driver_wrong_lang_callback): Same.
20485         (driver::handle_unrecognized_options): Same.
20486         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
20487         * opts-common.c (cmdline_handle_error): Same.
20488         (read_cmdline_option): Same.
20489         * opts-global.c (complain_wrong_lang): Same.
20490         (print_ignored_options): Same.
20491         (handle_common_deferred_options): Same.
20492         * pretty-print.h: Same.
20493         * print-rtl.c (debug_bb_n_slim): Same.
20494         * sched-rgn.c (make_pass_sched_fusion): Same.
20495         * tree-cfg.c (verify_gimple_assign_unary): Same.
20496         (verify_gimple_label): Same.
20497         * tree-ssa-operands.c (verify_ssa_operands): Same.
20498         * varasm.c (do_assemble_alias): Same.
20499         (assemble_alias): Same.
20501 2019-06-05  Richard Henderson  <rth@twiddle.net>
20503         * config/alpha/alpha.c (direct_return): Move down after
20504         struct machine_function definition; use saved frame_size;
20505         return bool.
20506         (struct machine_function): Add sa_mask, sa_size, frame_size.
20507         (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
20508         (alpha_compute_frame_layout): ... new function.
20509         (TARGET_COMPUTE_FRAME_LAYOUT): New.
20510         (alpha_initial_elimination_offset): Use saved sa_size.
20511         (alpha_vms_initial_elimination_offset): Likewise.
20512         (alpha_vms_can_eliminate): Remove alpha_sa_size call.
20513         (alpha_expand_prologue): Use saved frame data.  Merge integer
20514         and fp register save loops.
20515         (alpha_expand_epilogue): Likewise.
20516         (alpha_start_function): Use saved frame data.
20517         * config/alpha/alpha-protos.h (direct_return): Update.
20518         (alpha_sa_size): Remove.
20520 2019-06-05  Eric Botcazou  <ebotcazou@adacore.com>
20522         * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
20523         multiplication by a power-of-two value.
20524         (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
20525         and turn the modulo operation into a masking operation.
20527 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
20529         PR debug/90733
20530         * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
20531         with VOIDmode inner operands.
20533 2019-06-05  Richard Biener  <rguenther@suse.de>
20535         PR middle-end/90726
20536         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
20537         turn an expression graph into a tree.
20539 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
20541         * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
20542         member.
20543         (expand_parallel_call): If region->inner->has_lastprivate_conditional,
20544         treat it like explicit monotonic schedule modifier.
20545         (expand_omp_for): Initialize has_lastprivate_conditional.
20546         If fd.lastprivate_conditional != 0, treat it like explicit monotonic
20547         schedule modifier.
20549         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
20550         references, lookup in in hash map MEM_REF operand instead of the
20551         MEM_REF itself.
20552         (lower_omp_1): When looking for lastprivate conditional assignments,
20553         handle MEM_REFs with REFERENCE_TYPE operands.
20555         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
20556         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
20557         and references a VLA.  Handle references to non-VLAs if is_simd
20558         all privatization clauses like reductions.
20559         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
20560         If omp_is_reference, use always omp simd arrays and set
20561         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
20562         fails, emit reference initialization.
20564 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
20566         PR target/89803
20567         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
20568         _mm_mask_fpclass_sd_mask): New intrinsics.
20569         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
20570         * config/i386/i386-builtin.def
20571         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
20572         New builtins.
20573         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
20574         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
20575         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
20576         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
20577         case QI_FTYPE_V2SF_INT): Ditto.
20578         * config/i386/sse.md
20579         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
20580         Extended to insnstructions with mask operands.
20582 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20584         * config/rs6000/constraints.md (define_register_constraint "wp"):
20585         Delete.
20586         (define_register_constraint "wq"): Delete.
20587         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20588         (rs6000_init_hard_regno_mode_ok): Adjust.
20589         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20590         RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
20591         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
20592         (define_mode_attr VSa): Delete.
20593         (define_mode_attr VSisa): New.
20594         (rest of file): Adjust.
20595         * doc/md.texi (Machine Constraints): Adjust.
20597 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20599         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
20600         (define_attr "enabled"): Handle those new isa values.
20602 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20604         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
20605         (define_mode_attr VSr5): Delete.
20606         (define_mode_attr VStype_sqrt): Delete.
20607         (define_mode_iterator VSX_SPDP): Delete.
20608         (define_mode_attr VS_spdp_res): Delete.
20609         (define_mode_attr VS_spdp_insn): Delete.
20610         (define_mode_attr VS_spdp_type): Delete.
20611         (*vsx_sqrt<mode>2): Adjust.
20612         (vsx_<VS_spdp_insn>): Delete, split to...
20613         (vsx_xscvdpsp): ... this.  New.  And...
20614         (vsx_xvcvspdp): ... this.  New.  And...
20615         (vsx_xvcvdpsp): ... this.  New.
20617 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20619         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
20620         and V2DF.
20621         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
20622         (rest of file): Adjust.
20624 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20626         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
20627         (vsx_extract_<mode>_var): Ditto.
20629 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20631         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
20632         with just "wa".
20634 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20636         * config/rs6000/constraints.md (define_register_constraint "ww"):
20637         Delete.
20638         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20639         (rs6000_init_hard_regno_mode_ok): Adjust.
20640         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20641         RS6000_CONSTRAINT_ww.
20642         * config/rs6000/rs6000.md: Adjust.
20643         * config/rs6000/vsx.md: Adjust.
20644         * doc/md.texi (Machine Constraints): Adjust.
20646 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20648         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
20649         (define_mode_attr sd): New.
20650         (define_mode_attr s): New.
20651         (define_mode_attr Ftrad): Delete.
20652         (define_mode_attr Fvsx): Delete.
20653         (define_mode_attr Fs): Delete.
20654         (rest of file): Use the new mode attributes.
20655         * config.rs6000/vsx.md: Use the new mode attributes.
20657 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20659         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
20660         with just "wa".
20662 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20664         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
20665         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
20666         used with VSX_B, VSX_D, or VSX_F, with just "wa".
20668 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
20670         PR target/78263
20671         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
20672         C++ with strict ANSI requirements.
20674 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
20676         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
20677         computations when step is 1.
20679 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20681         * config/rs6000/constraints.md (define_register_constraint "wf"):
20682         Delete.
20683         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20684         (rs6000_init_hard_regno_mode_ok): Adjust.
20685         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20686         RS6000_CONSTRAINT_wf.
20687         * config/rs6000/rs6000.md: Adjust.
20688         * config/rs6000/vsx.md: Adjust.
20689         * doc/md.texi (Machine Constraints): Adjust.
20691 2019-06-04  Andrew Pinski  <apinski@marvell.com>
20693         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
20694         Fix ILP32 value.
20696 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20698         * config/rs6000/constraints.md (define_register_constraint "wd"):
20699         Delete.
20700         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20701         (rs6000_init_hard_regno_mode_ok): Adjust.
20702         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20703         RS6000_CONSTRAINT_wd.
20704         * config/rs6000/rs6000.md: Adjust.
20705         * config/rs6000/vsx.md: Adjust.
20706         * doc/md.texi (Machine Constraints): Adjust.
20708 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20710         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
20711         (rest of file): Adjust.
20713 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20715         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
20716         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
20717         (vsx_splat_<mode>_reg): Adjust.
20719 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20721         * config/rs6000/constraints.md (define_register_constraint "ws"):
20722         Delete.
20723         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20724         (rs6000_init_hard_regno_mode_ok): Adjust.
20725         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20726         RS6000_CONSTRAINT_ws.
20727         * config/rs6000/rs6000.md: Adjust.
20728         * config/rs6000/vsx.md: Adjust.
20729         * doc/md.texi (Machine Constraints): Adjust.
20731 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20733         * config/rs6000/constraints.md (define_register_constraint "wv"):
20734         Delete.
20735         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20736         (rs6000_init_hard_regno_mode_ok): Adjust.
20737         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20738         RS6000_CONSTRAINT_wv.
20739         * config/rs6000/rs6000.md: Adjust.
20740         * config/rs6000/vsx.md: Adjust.
20741         * doc/md.texi (Machine Constraints): Adjust.
20743 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
20745         * config/rs6000/constraints.md (define_register_constraint "wi"):
20746         Delete.
20747         (define_register_constraint "wt"): Delete.
20748         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20749         (rs6000_init_hard_regno_mode_ok): Adjust.
20750         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20751         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
20752         * config/rs6000/rs6000.md: Adjust.
20753         * config/rs6000/vsx.md: Adjust.
20754         * doc/md.texi (Machine Constraints): Adjust.
20756 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20758         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
20759         const.
20760         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
20761         default_elf_asm_output_external.
20763 2019-06-04  Martin Liska  <mliska@suse.cz>
20765         * ipa-icf.c (INCLUDE_LIST): Remove.
20766         (sem_item_optimizer::execute): Remove call to init_wpa.
20767         * ipa-icf.h (init_wpa): Remove.
20769 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
20771         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
20772         conditional on combined for simd.
20773         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
20774         member.
20775         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
20776         constructs, don't remove lastprivate_conditional_map, but instead set
20777         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
20778         to parent construct temporaries.
20779         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
20780         like !ctx->lastprivate_conditional_map.
20781         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
20782         use up->outer context instead of up.
20783         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
20784         gimple_omp_for_combined_p.
20785         (expand_omp_for_static_nochunk): Likewise.
20786         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
20787         probably moved over into expand_omp_for_generic rather than being copied
20788         there.
20790 2019-06-04  Martin Liska  <mliska@suse.cz>
20792         * value-prof.c (dump_histogram_value): Fix typo.
20793         (gimple_mod_subtract_transform): Likewise.
20795 2019-06-04  Richard Biener  <rguenther@suse.de>
20797         PR middle-end/90726
20798         * tree-chrec.c (chrec_contains_symbols): Add to visited.
20799         (tree_contains_chrecs): Likewise.
20800         (chrec_contains_symbols_defined_in_loop): Move here and avoid
20801         exponential behaivor from ...
20802         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
20803         ... here.
20804         (expression_expensive_p): Avoid exponential behavior and compute
20805         expanded size, rejecting any expansion.
20806         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
20807         (idx_contains_abnormal_ssa_name_p): Likewise.
20808         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
20809         (contains_abnormal_ssa_name_p): Simplify and use
20810         walk_tree_without_duplicates.
20812 2019-06-04  Richard Biener  <rguenther@suse.de>
20814         PR tree-optimization/90738
20815         Revert
20816         2019-06-03  Richard Biener  <rguenther@suse.de>
20818         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
20819         full reference tree and record in ref->ref.
20820         (vn_reference_lookup_3): Pass in original ref to
20821         ao_ref_init_from_vn_reference.
20822         (vn_reference_lookup): Likewise.
20823         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
20824         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
20825         Handle non-decl bases in the original reference.
20827 2019-06-04  Martin Liska  <mliska@suse.cz>
20829         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
20830         number of references.
20831         (sem_item_optimizer::do_congruence_step):
20832         (sem_item_optimizer::worklist_push): Dump how references
20833         a class has.
20834         (sem_item_optimizer::worklist_pop): Use heap.
20835         (sem_item_optimizer::process_cong_reduction): Likewise.
20836         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
20838 2019-06-04  Martin Liska  <mliska@suse.cz>
20840         * ipa-icf.h (struct sem_usage_pair_hash): New.
20841         (sem_usage_pair_hash::hash): Likewise.
20842         (sem_usage_pair_hash::equal): Likewise.
20843         (struct sem_usage_hash): Likewise.
20844         * ipa-icf.c (sem_item::sem_item): Initialize
20845         referenced_by_count.
20846         (sem_item::add_reference): Register a reference
20847         in ref_map and not in target->usages.
20848         (sem_item::setup): Remove initialization of
20849         dead vectors.
20850         (sem_item::~sem_item): Remove usage of dead vectors.
20851         (sem_item::dump): Remove dump of references.
20852         (sem_item_optimizer::sem_item_optimizer): Initialize
20853         m_references.
20854         (sem_item_optimizer::read_section): Remove useless
20855         dump.
20856         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
20857         (sem_item_optimizer::build_graph): Pass m_references
20858         to ::add_reference.
20859         (sem_item_optimizer::verify_classes): Remove usage of dead
20860         vectors.
20861         (sem_item_optimizer::traverse_congruence_split): Return true
20862         when a class is split.
20863         (sem_item_optimizer::do_congruence_step_for_index): Use
20864         hash_map for look up of (sem_item *, index). That brings
20865         significant speed up.
20866         (sem_item_optimizer::do_congruence_step): Return true
20867         when a split is done.
20868         (congruence_class::is_class_used): Use referenced_by_count.
20870 2019-06-04  Alan Modra  <amodra@gmail.com>
20872         PR target/90689
20873         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
20874         error.
20876 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
20878         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
20879         * config/rs6000/rs6000.c (direct_move_p): Adjust.
20880         (rs6000_secondary_reload_simple_move): Adjust.
20881         (rs6000_opt_masks): Neuter the "mfpgpr" option.
20882         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
20883         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
20884         comment.
20885         (power6x): Adjust.
20886         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
20887         (floatunssi<mode>2_lfiwzx): Adjust.
20888         (fix_trunc<mode>si2_stfiwx): Adjust.
20889         (fixuns_trunc<mode>si2_stfiwx): Adjust.
20890         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
20891         (mfpgpr): Mark as deprecated.
20892         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
20893         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
20894         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
20896 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
20898         * config/rs6000/constraints.md (define_register_constraint "wg"):
20899         Delete.
20900         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
20901         RS6000_CONSTRAINT_wg.
20902         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
20903         (rs6000_init_hard_regno_mode_ok): Adjust.
20904         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
20905         Delete "wg" alternatives.
20906         * doc/md.texi (Machine Constraints): Adjust.
20908 2019-06-03  Alan Modra  <amodra@gmail.com>
20910         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
20911         (get_uncond_jump_length): Assert length less than INT_MAX and
20912         non-negative.
20914 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
20916         PR middle-end/64242
20917         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
20918         block.
20919         (expand_builtin_nonlocal_goto): Likewise.
20921 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20923         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
20924         (aarch64_asm_output_external): Declare.
20925         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
20926         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
20927         (aarch64_asm_output_alias): New.
20928         (aarch64_asm_output_external): New.
20929         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
20930         (ASM_OUTPUT_EXTERNAL): Define.
20932 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
20933         * tree-vrp.h (value_range_base::nonzero_p): New.
20934         (value_range_base::set_nonnull): Rename to...
20935         (value_range_base::set_nonzero): ...this.
20936         (value_range_base::set_null): Rename to...
20937         (value_range_base::set_zero): ...this.
20938         (value_range::set_nonnull): Remove.
20939         (value_range::set_null): Remove.
20940         * tree-vrp.c (range_is_null): Remove.
20941         (range_is_nonnull): Remove.
20942         (extract_range_from_binary_expr): Use value_range_base::*zero_p
20943         instead of range_is_*null.
20944         (extract_range_from_unary_expr): Same.
20945         (value_range_base::set_nonnull): Rename to...
20946         (value_range_base::set_nonzero): ...this.
20947         (value_range::set_nonnull): Remove.
20948         (value_range_base::set_null): Rename to...
20949         (value_range_base::set_zero): ...this.
20950         (value_range::set_null): Remove.
20951         (extract_range_from_binary_expr): Rename set_*null uses to
20952         set_*zero.
20953         (extract_range_from_unary_expr): Same.
20954         (union_helper): Same.
20955         * vr-values.c (get_value_range): Use set_*zero instead of
20956         set_*null.
20957         (vr_values::extract_range_from_binary_expr): Same.
20958         (vr_values::extract_range_basic): Same.
20960 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
20962         PR driver/90684
20963         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
20965 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20967         * config/aarch64/iterators.md (MAX_OPP): New code attr.
20968         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
20969         Rename to...
20970         (aarch64_<su>abd<mode>_3): ... This.
20971         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
20973 2019-06-03  Richard Biener  <rguenther@suse.de>
20975         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
20976         full reference tree and record in ref->ref.
20977         (vn_reference_lookup_3): Pass in original ref to
20978         ao_ref_init_from_vn_reference.
20979         (vn_reference_lookup): Likewise.
20980         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
20981         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
20982         Handle non-decl bases in the original reference.
20984 2019-06-03  Martin Liska  <mliska@suse.cz>
20986         * doc/generic.texi: Remove Java Trees.
20988 2019-06-03  Martin Liska  <mliska@suse.cz>
20990         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
20991         returns 0 when operands are equal.
20993 2019-06-03  Richard Biener  <rguenther@suse.de>
20995         PR tree-optimization/90716
20996         * tree-loop-distribution.c (destroy_loop): Process blocks in
20997         correct order.
20999 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21001         PR target/88837
21002         * vector-builder.h (vector_builder::count_dups): New method.
21003         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
21004         Declare prototype.
21005         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
21006         (vec_init<mode><Vel>): New pattern.
21007         * config/aarch64/aarch64.c (emit_insr): New function.
21008         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
21009         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
21010         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
21011         (aarch64_sve_expand_vector_init): Define two overloaded functions.
21013 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
21015         PR tree-optimization/90681
21016         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
21017         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
21018         special case for SLP, but fail on non-groupped loads.
21020 2019-06-03  Martin Liska  <mliska@suse.cz>
21022         * cfg.c (debug): Use TDF_DETAILS for debug and
21023         print edge info only once.
21025 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
21027         PR fortran/90539
21028         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
21030 2019-06-01  Martin Sebor  <msebor@redhat.com>
21032         PR middle-end/90694
21033         * tree-pretty-print.c (dump_generic_node): Add parentheses.
21035 2019-05-31  Jan Hubicka  <jh@suse.cz>
21037         * alias.c: Include ipa-utils.h.
21038         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
21039         * ipa-devirt.c (prevailing_odr_type): New.
21040         * ipa-utils.h (previaling_odr_type): Declare.
21042 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
21043             Hongtao Liu  <hongtao.liu@intel.com>
21045         PR target/89355
21046         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
21047         NOTE_INSN_DELETED_LABEL check.
21049 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
21050             Robert Suchanek  <robert.suchanek@mips.com>
21052         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
21053         and 3rd operands of the fmadd/fmsub/maddv builtin.
21055 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
21057         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
21058         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
21059         on OMP_SIMD if not nested inside of worksharing loop that also has
21060         lastprivate conditional clause for the same decl.
21061         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
21062         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
21063         on simd.
21064         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
21065         on simd construct.
21066         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
21067         on simd construct.
21068         (lower_lastprivate_clauses): Likewise.
21069         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
21070         calling lower_rec_input_clauses.
21071         (lower_omp_for): Likewise.
21072         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
21073         clause on simd construct.
21074         * omp-expand.c (expand_omp_simd): Initialize cond_var if
21075         OMP_CLAUSE__CONDTEMP_ clause is present.
21077         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
21078         ivar and lvar.
21080 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
21082         PR c/43673
21083         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
21084         TEX_D32, TEX_D64 or TEX_D128.
21086 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
21088         * match.pd (~(vec?cst1:cst2)): New transformation.
21090 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
21092         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
21093         ((size_t)(A /[ex] B) CMP C): New transformation.
21095 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
21097         * doc/md.texi: Document define_insn_and_rewrite.
21098         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
21099         * gensupport.c (queue_elem): Update comment.
21100         (replace_operands_with_dups): New function.
21101         (gen_rewrite_sequence): Likewise.
21102         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
21103         * read-rtl.c (apply_subst_iterator): Likewise.
21104         (add_condition_to_rtx, named_rtx_p): Likewise.
21105         (rtx_reader::read_rtx_operand): Likewise.
21106         * config/aarch64/aarch64-sve.md
21107         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
21108         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
21109         define_insn_and_rewrite.
21110         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
21111         Remove separate define_split.
21113 2019-05-31  Jan Hubicka  <jh@suse.cz>
21115         * tree-ssa-alias.c (type_has_components_p): New function.
21116         (aliasing_component_refs_p): Use it.
21118 2019-05-31  Martin Liska  <mliska@suse.cz>
21120         * gdbhooks.py: Add const_tree to TreePrinter.
21122 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
21124         PR debug/86964
21125         * common.opt (feliminate-unused-debug-symbols): Enable by default.
21126         * doc/invoke.texi (Debugging Options): Document new default of
21127         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
21129 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
21131         PR tree-optimization/90671
21132         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
21133         template_block used to be empty on the first call, don't use
21134         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
21135         seq with bb_seq and set it with set_bb_seq.
21137 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
21139         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
21141 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
21142             Michael Meissner  <meissner@linux.ibm.com>
21144         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
21145         (prefixed_mem_operand): Likewise.
21146         (non_prefixed_mem_operand): Likewise.
21147         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
21148         prototype.
21149         * config/rs6000/rs6000.c (print_operand_address): Handle
21150         PC-relative addresses.
21151         (mode_supports_prefixed_address_p): New function.
21152         (rs6000_prefixed_address): New function.
21153         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
21154         (SYMBOL_REF_PCREL_P): Likewise.
21156 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
21158         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
21159         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
21160         (gimplify_omp_for): If worksharing loop with lastprivate conditional
21161         is nested inside of parallel region, add _condtemp_ clause to both.
21162         * tree-nested.c (convert_nonlocal_omp_clauses,
21163         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
21164         assertion failure.
21165         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
21166         member.
21167         * omp-general.c (omp_extract_for_data): Compute it.
21168         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
21169         (lower_rec_input_clauses): Likewise.
21170         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
21171         clause is already present, just add one further one after it.
21172         (lower_lastprivate_clauses): Handle cond_ptr with array type.
21173         (lower_send_shared_vars): Clear _condtemp_ vars.
21174         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
21175         or section or taskgroup.
21176         * omp-expand.c (determine_parallel_type): Disallow combining only if
21177         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
21178         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
21179         (expand_omp_for_generic, expand_omp_for_static_nochunk,
21180         expand_omp_for_static_chunk, expand_omp_for): Use
21181         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
21182         determine if a special set of API routines are needed and if condtemp
21183         needs to be initialized, while always initialize cond_var if
21184         fd->lastprivate_conditional is non-zero.
21186 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
21187             Michael Meissner  <meissner@linux.ibm.com>
21189         * config/rs6000/constraints.md (eI): New constraint.
21190         * config/rs6000/predicates.md (cint34_operand): New predicate.
21191         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
21192         (SIGNED_34BIT_OFFSET_P): Likewise.
21193         * doc/md.texi (eI): Document constraint.
21195 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
21197         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
21199 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
21200             Michael Meissner  <meissner@linux.ibm.com>
21202         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
21203         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
21204         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
21205         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
21206         (OTHER_FUTURE_MASKS): Likewise.
21207         (POWERPC_MASKS): Likewise.
21208         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
21209         specified without -mprefixed-addr or -mcpu=future.  Error if
21210         -mprefixed-addr is specified without -mcpu=future.
21211         (rs6000_opt_masks): Add entry for prefixed-addr.
21212         * rs6000.opt (mprefixed-addr): New option.
21214 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
21216         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
21217         cfun->is_thunk check.
21219 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
21221         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
21222         to length.
21224 2019-05-30  Martin Liska  <mliska@suse.cz>
21226         * gdbinit.in: Fix 'ptc' command.  Add trt
21227         that prints TREE_TYPE($).
21229 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
21230             Alan Modra  <amodra@gmail.com>
21232         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
21233         calls here...
21234         (rs6000_indirect_call_template_1): ...and here.
21235         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
21236         plt16_ha, plt16_lo, mtctr indirect calls.  Use
21237         rs6000_pltseq_enum.
21238         (rs6000_decl_ok_for_sibcall): New function.
21239         (rs6000_function_ok_for_sibcall): Refactor.
21240         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
21241         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
21242         when pcrel.  Reorganize.
21243         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
21244         * rs6000.h (rs6000_pltseq_enum): New enum.
21245         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
21246         (*pltseq_tocsave): Use rs6000_pltseq_enum.
21247         (*pltseq_plt16_ha): Likewise.
21248         (*pltseq_plt16_lo): Likewise.
21249         (*pltseq_mtctr): Likewise.
21250         (*pltseq_plt_pcrel): New insn.
21251         (*call_local_aix): Handle @notoc calls.
21252         (*call_value_local_aix): Likewise.
21253         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
21254         (*call_value_nonlocal_aix): Likewise.
21255         (*call_indirect_pcrel): New insn.
21256         (*call_value_indirect_pcrel): Likewise.
21258 2019-05-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
21260         * config/i386/sse.md (*save_multiple<mode>): Rename from
21261         save_multiple<mode>.
21262         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
21263         (*restore_multiple_and_return<mode>): Rename from
21264         restore_multiple_and_return<mode>.
21265         (*restore_multiple_leave_return<mode>): Rename from
21266         restore_multiple_leave_return<mode>.
21268 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
21270         * config.gcc (rx-*-linux*): New target.
21271         * config/rx/elf.opt: New file.
21272         * config/rx/linux.h: Likewise.
21273         * config/rx/t-linux: Likewise.
21274         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
21275         make it zero.
21276         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
21277         (ASM_APP_OFF): Likewise.
21278         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
21279         moved elsewhere.
21281 2019-05-29  Jan Hubicka  <jh@suse.cz>
21283         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
21284         variants are pointer equivalent.
21286 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
21288         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
21289         * config/aarch64/aarch64-sve2.md: New file.
21290         (<u>avg<mode>3_floor): New pattern.
21291         (<u>avg<mode>3_ceil): Likewise.
21292         (*<sur>h<addsub><mode>): Likewise.
21293         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
21294         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
21296 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
21298         PR bootstrap/90543
21299         * optc-save-gen.awk: In cl_optimization_print, use correct condition
21300         for var_opt_string printing.  In cl_optimization_print_diff, print
21301         (null) instead of invoking undefined behavior if one of the
21302         var_opt_string pointers is NULL and use && instead of first || in the
21303         guarding condition.  For var_target_other options, handle const char *
21304         target variables similarly to const char * optimize node variables.
21306 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
21308         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
21309         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
21310         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
21311         Add autib1716 and pacib1716 initialisation.
21312         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
21313         for autib1716 and pacib1716.
21314         * config/aarch64/aarch64-protos.h (aarch64_key_type,
21315         aarch64_post_cfi_startproc): Define.
21316         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
21317         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
21318         aarch64_handle_pac_ret_protection): Set default sign key to A.
21319         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
21320         aarch64_expand_prologue): Add check for b-key.
21321         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
21322         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
21323         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
21324         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
21325         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
21326         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
21327         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
21328         * config/aarch64/aarch64.md (do_return): Add check for b-key.
21329         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
21330         pauth_hint_num_a with pauth_hint_num.
21331         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
21332         pauth_hint_num_a with pauth_hint_num.
21333         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
21334         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
21335         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
21336         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
21337         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
21338         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
21339         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
21340         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
21341         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
21342         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
21343         UNSPEC_AUTIA1716 respectively.
21344         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
21345         pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
21346         UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
21347         * doc/invoke.texi (-mbranch-protection): Add b-key type.
21348         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
21349         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
21351 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
21353         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
21354         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
21355         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
21356         explicit clause on combined parallel into implicit shared clause.
21357         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
21358         and firstprivate if the decl has one too from combined parallel to
21359         the worksharing construct.
21361 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
21362             Michael Meissner  <meissner@linux.ibm.com>
21364         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
21366 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
21368         * rtl.h (LABEL_REF_P): New #define.
21370 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
21372         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
21374 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
21376         * internal-fn.c: Marked mask_load_direct as vectorizable.
21377         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
21378         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
21379         combined even if masks different with allow_slp_p param.
21380         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
21381         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
21382         dissolve SLP-only vectorizable groups when SLP has been discarded.
21383         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
21384         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
21385         masks.
21386         (vect_build_slp_tree_1): Fixed comment typo.
21387         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
21388         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
21389         loads for SLP only.
21390         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
21391         vectorizable.
21392         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
21394 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21396         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
21397         Remove obsolete use_thunk reference.
21398         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
21399         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
21400         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
21401         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
21402         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
21403         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
21404         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
21405         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
21406         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
21408 2019-05-28  Nathan Sidwell  <nathan@acm.org>
21410         * tree.h (IDENTIFIER_ANON_P): New.
21411         (anon_aggrname_format, anon_aggname_p): Don't declare.
21412         (make_anon_name): Declare.
21413         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
21414         (hash_tree): Likewise.
21415         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
21416         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
21417         (anon_cnt, make_anon_name): New.
21419 2019-05-28  Martin Liska  <mliska@suse.cz>
21421         PR other/90315
21422         * opts-global.c (decode_options): Print help for all
21423         help_option_arguments.
21424         * opts.c (print_help): Add new argument.
21425         (common_handle_option): Remember all values into
21426         help_option_arguments.
21427         * opts.h (print_help): Add new argument.
21429 2019-05-28  Martin Liska  <mliska@suse.cz>
21431         PR ipa/90555
21432         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
21433         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
21434         (func_checker::compare_bb): Call compare_loops.
21436 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
21438         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
21439         on sections construct.
21440         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
21441         construct.
21442         (lower_omp_sections): Handle lastprivate conditional.
21443         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
21444         lastprivate_conditional_map.
21445         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
21447         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
21448         critical, taskgroup and section regions when looking for a region
21449         with non-NULL lastprivate_conditional_map.
21451 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
21453         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
21454         (*ix86_gen_sub3): Ditto.
21455         (*ix86_gen_sub3_carry): Ditto.
21456         (*ix86_gen_one_cmpl2): Ditto.
21457         (*ix86_gen_andsp): Ditto.
21458         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
21459         (gen_and2_insn): New static function.
21460         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
21461         Use gen_add3_insn instead of ix86_gen_add3.
21462         (ix86_expand_split_stack_prologue): Use gen_add2_insn
21463         instead of ix86_gen_add3.
21464         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
21465         Use gen_sub3_insn instead of ix86_gen_sub3.
21466         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
21467         instead of ix86_gen_add3.
21468         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
21469         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
21470         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
21471         * config/i386/i386-options.c (ix86_option_override_internal):
21472         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
21473         ix86_gen_one_cmpl2 and ix86_gen_andsp.
21475 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
21477         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
21478         and DW_OP_GNU_const_index opcodes.
21480 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
21482         * config/i386/i386.h (STACK_SIZE_MODE): Define.
21484 2019-05-27  Richard Biener  <rguenther@suse.de>
21486         PR tree-optimization/90637
21487         * tree-ssa-sink.c (statement_sink_location): Honor the
21488         computed sink location for single-uses.
21490 2019-05-27  Richard Biener  <rguenther@suse.de>
21492         PR middle-end/90610
21493         * match.pd (vec_perm): Avoid clobbering op0 when not generating
21494         a bit-insert.
21496 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
21498         * config/i386/i386.md (@sub<mode>3_carry): Rename
21499         from sub<mode>3_carry.
21500         (@leave_<mode>): New expander.
21501         (*leave): Rename from leave.
21502         (*leave_rex64): Rename from leave_rex64.
21503         (@monitorx_<mode>): Rename from monitorx_<mode>.
21504         (@clzero_<mode>): Rename from clzero_<mode>.
21505         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
21506         from sse3_monitor_<mode>.
21507         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
21508         (*ix86_gen_leave): Ditto.
21509         (*ix86_gen_monitor): Ditto.
21510         (*ix86_gen_monitorx): Ditto.
21511         (*ix86_gen_clzero): Ditto.
21512         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
21513         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
21514         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
21515         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
21516         Use gen_sse3_monitor instead of ix86_gen_monitor.
21517         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
21518         instead of ix86_gen_monitorx.
21519         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
21520         instead of ix86_gen_clzero.
21521         * config/i386/i386-options.c (ix86_option_override_internal):
21522         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
21523         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
21525 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
21527         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
21528         Rename from tls_global_dynamic_64_<mode>.
21529         (@tls_local_dynamic_base_64_<mode>): Rename from
21530         tls_local_dynamic_base_64_<mode>.
21531         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
21532         Remove indirect function.
21533         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
21534         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
21535         instead of ix86_gen_tls_global_dynamic_64.
21536         Use gen_tls_local_dynamic_base_64 instead of
21537         ix86_gen_tls_local_dynamic_base_64.
21538         * config/i386/i386-options.c (ix86_option_override_internal):
21539         Do not initialize ix86_gen_tls_global_dynamic_64 and
21540         ix86_gen_tls_local_dynamic_base_64.
21542 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
21544         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
21545         Rename from pro_epilogue_adjust_stack_<mode>_add.
21546         (@pro_epilogue_adjust_stack_sub_<mode>)
21547         Rename from pro_epilogue_adjust_stack_<mode>_sub.
21548         (@allocate_stack_worker_probe_<mode>):
21549         Rename from allocate_stack_worker_probe_<mode>.
21550         (allocate_stack): Use gen_allocate_stack_worker_probe.
21551         (probe_stack): Use gen_probe_stack_1.
21552         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
21553         (@adjust_stack_and_probe_<mode>): Rename from
21554         adjust_stack_and_probe<mode>.
21555         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
21556         (stack_protect_set): Use gen_stack_protect_set_1.
21557         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
21558         (stack_protect_test): Use gen_stack_protect_test_1.
21559         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
21560         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
21561         Remove indirect function.
21562         (*ix86_gen_adjust_stack_and_probe): Ditto.
21563         (*ix86_gen_probe_stack_range): Ditto.
21564         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
21565         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
21566         (ix86_adjust_stack_and_probe_stack_clash): Use
21567         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
21568         (ix86_adjust_stack_and_probe): Ditto.
21569         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
21570         of ix86_gen_probe_stack_range.
21571         (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
21572         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
21573         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
21574         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
21575         CODE_FOR_stack_protect_test_{si,di}.
21576         * config/i386/i386-options.c (ix86_option_override_internal):
21577         Do not initialize ix86_gen_allocate_stack_worker,
21578         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
21580 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
21582         * doc/invoke.texi (Link Options): Many editorial changes around
21583         -flinker-output.
21585 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21587         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
21588         pre-Solaris 11 referene and most Studio compiler details.
21590 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
21592         PR target/90530
21593         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
21594         DImode to SImode in floating-point registers on 64-bit target.
21595         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
21596         register_operand in xmpyu patterns.
21598 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
21600         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
21601         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
21602         OMP_CLAUSE__REDUCTEMP_.
21603         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21604         OMP_CLAUSE__CONDTEMP_.
21605         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
21606         * tree-pretty-print.c (dump_omp_clause): Likewise.
21607         * tree-nested.c (convert_nonlocal_omp_clauses,
21608         convert_local_omp_clauses): Likewise.
21609         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
21610         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
21611         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
21612         on OMP_FOR.
21613         (gimplify_omp_for): Warn and disable conditional modifier from
21614         lastprivate on loop iterators.
21615         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
21616         member.
21617         * omp-general.c (omp_extract_for_data): Initialize it.
21618         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
21619         member.
21620         (delete_omp_context): Delete it.
21621         (lower_lastprivate_conditional_clauses): New function.
21622         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
21623         handle lastprivate conditional clauses.
21624         (lower_reduction_clauses): Add CLIST argument, emit it into
21625         the critical section if any.
21626         (lower_omp_sections): Adjust lower_lastprivate_clauses and
21627         lower_reduction_clauses callers.
21628         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
21629         to lower_lastprivate_clauses.
21630         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
21631         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
21632         clist into a critical section if not emitted there already by
21633         lower_reduction_clauses.
21634         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
21635         callers.
21636         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
21637         conditional variables.
21638         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
21639         clause is present.
21640         (expand_omp_for_generic, expand_omp_for_static_nochunk,
21641         expand_omp_for_static_chunk): Handle lastprivate conditional.
21642         (expand_omp_for): Handle fd.lastprivate_conditional like
21643         fd.have_reductemp.
21645 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
21647         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
21648         kernel does not exit cleanly.
21649         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
21651 2019-05-24  Jason Merrill  <jason@redhat.com>
21653         Revert:
21654         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
21656 2019-05-24  Richard Biener  <rguenther@suse.de>
21658         PR testsuite/90607
21659         * tree-loop-distribution.c (struct partition): Add location
21660         member.
21661         (partition_alloc): Initialize all fields.
21662         (generate_memset_builtin): Use the location recorded in the
21663         partition for the generated call.
21664         (generate_memcpy_builtin): Likewise.
21665         (classify_partition): Record the location of a single store
21666         as location for the partition.
21668 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
21670         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
21671         for lo-part.
21673 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
21675         PR target/90588
21676         * common/config/aarch64/aarch64-common.c
21677         (aarch64_rewrite_selected_cpu): Change local temporary variable
21678         type from unsigned long to uint64_t.
21679         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
21680         aarch64_get_extension_string_for_isa_flags): Change declaration to
21681         match new definition by replacing unsigned long with uint64_t.
21683 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
21685         PR target/90568
21686         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
21687         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
21688         Handle stack_protect_test_<mode> codegen similarly to corresponding
21689         sub instruction.
21691 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
21693         * config/i386/darwin.h: Reject -mfentry*.
21694         * doc/sourcebuild.texi: Document mfentry target support.
21696 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
21698         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
21699         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
21700         false for PC-relative functions.
21701         (rs6000_output_function_prologue): Change called function name to
21702         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
21703         name,1" for PC-relative functions.
21704         (rs6000_elf_declare_function_name): Change called function name to
21705         rs6000_global_entry_point_prologue_needed_p.
21707 2019-05-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
21709         PR target/90552
21710         * config/i386/i386.c (gen_rtx_cost):
21711         Use ix86_tune_cost instead of ix86_cost.
21713 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
21714             Michael Meissner  <meissner@linux.ibm.com>
21715             Segher Boessenkool  <segher@kernel.crashing.org>
21717         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
21718         OPTION_MASK_PCREL.
21719         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
21720         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
21721         (rs6000_fndecl_pcrel_p): Likewise.
21722         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
21723         error if -mpcrel is requested without -mcpu=future.
21724         (rs6000_opt_masks): Add entry for pcrel.
21725         (rs6000_fndecl_pcrel_p): New function.
21726         (rs6000_pcrel_p): Likewise.
21727         * config/rs6000/rs6000.opt (mpcrel): New option.
21728         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
21730 2019-05-23  Jan Hubicka  <jh@suse.cz>
21731             Martin Liska  <mliska@suse.cz>
21733         PR tree-optimization/90576
21734         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
21735         poly_int_tree_p.
21736         (aliasing_component_refs_p): Fix three way size compare conditional;
21737         give up earlier in case we can not decide on equivalence.
21739 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
21740             Michael Meissner  <meissner@linux.ibm.com>
21741             Segher Boessenkool  <segher@kernel.crashing.org>
21743         * config.gcc: Add future cpu.
21744         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
21745         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
21746         #define.
21747         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
21748         (RS6000_CPU): New instantiation for future cpu.
21749         * config/rs6000/rs6000-opts.h (enum processor_type): Add
21750         PROCESSOR_FUTURE.
21751         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
21752         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
21753         * config/rs6000/rs6000-tables.opt: Regenerate.
21754         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
21755         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
21756         (rs6000_machine_from_flags): Handle future cpu.
21757         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
21758         PROCESSOR_POWER9 for now.
21759         (rs6000_adjust_cost): Likewise.
21760         (rs6000_issue_rate): Likewise.
21761         (rs6000_register_move_cost): Likewise.
21762         (rs6000_opt_masks): Add entry for future.
21763         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
21764         (MASK_FUTURE): New #define.
21765         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
21766         * config/rs6000/rs6000.opt (mfuture): New target option.
21767         * doc/invoke.texi (mcpu): Add future cpu.
21769 2019-05-23  Martin Liska  <mliska@suse.cz>
21771         PR c++/90587
21772         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
21773         operation points to a temporary (pointed via tree_to_wide_ref)
21774         that is out of scope after the &.
21776 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
21778         PR c++/90592
21779         * doc/extend.texi (Function Names): Add missing word.
21781 2019-05-23  Richard Biener  <rguenther@suse.de>
21783         PR tree-optimization/88440
21784         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
21785         at -O[2s]+.
21786         * tree-loop-distribution.c (generate_memset_builtin): Fold the
21787         generated call.
21788         (generate_memcpy_builtin): Likewise.
21789         (distribute_loop): Pass in whether to only distribute patterns.
21790         (prepare_perfect_loop_nest): Also allow size optimization.
21791         (pass_loop_distribution::execute): When optimizing a loop
21792         nest for size allow pattern replacement.
21794 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
21796         PR target/90568
21797         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
21798         of xor.
21800 2019-05-23  Martin Liska  <mliska@suse.cz>
21802         PR sanitizer/90570
21803         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
21804         expression similarly to gimplify_decl_expr.
21806 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21808         * cse.c (cse_dump_path): s/dump_file/f.
21810 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
21812         PR c++/90462
21813         * diagnostic-format-json.cc: Include "selftest.h".
21814         (json_from_expanded_location): Only add "file" key for non-NULL
21815         file strings.
21816         (json_from_location_range): Don't add "start" and "finish"
21817         children if they are UNKNOWN_LOCATION.
21818         (selftest::test_unknown_location): New selftest.
21819         (selftest::test_bad_endpoints): New selftest.
21820         (selftest::diagnostic_format_json_cc_tests): New function.
21821         * json.cc (json::object::get): New function.
21822         (selftest::test_object_get): New selftest.
21823         (selftest::json_cc_tests): Call it.
21824         * json.h (json::object::get): New decl.
21825         * selftest-run-tests.c (selftest::run_tests): Call
21826         selftest::diagnostic_format_json_cc_tests.
21827         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
21828         decl.
21830 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
21831             Andrew Stubbs  <amd@codesourcery.com>
21833         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
21834         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
21835         (kernel): Rename to...
21836         (main_kernel): ... this.
21837         (load_image): Load _init_array and _fini_array kernels.
21838         (run): Add argument for kernel to run.
21839         (main): Run init_array_kernel before main_kernel, and
21840         fini_array_kernel after.
21841         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
21842         amdgpu_hsa_kernel attribute on functions.
21843         (gcn_disable_constructors): Delete.
21844         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
21845         * config/gcn/crt0.c (size_t): Define.
21846         (_init_array, _fini_array): New.
21847         (__preinit_array_start, __preinit_array_end,
21848         __init_array_start, __init_array_end,
21849         __fini_array_start, __fini_array_end): Declare weak references.
21851 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
21853         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
21855 2019-05-22  Jason Merrill  <jason@redhat.com>
21857         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
21859 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
21861         PR target/88483
21862         * config/i386/i386-options.c (ix86_init_machine_status): Set
21863         stack_frame_required to true.
21864         * config/i386/i386.c (ix86_get_frame_size): New function.
21865         (ix86_frame_pointer_required): Replace get_frame_size with
21866         ix86_get_frame_size.
21867         (ix86_compute_frame_layout): Likewise.
21868         (ix86_find_max_used_stack_alignment): Changed to void.  Set
21869         stack_frame_required.
21870         (ix86_finalize_stack_frame_flags): Always call
21871         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
21872         ix86_get_frame_size.
21873         * config/i386/i386.h (machine_function): Add stack_frame_required.
21875 2019-05-22  UroÅ¡ Bizjak  <ubizjak@gmail.com>
21877         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
21879 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
21881         * common/config/aarch64/aarch64-common.c
21882         (struct aarch64_option_extension, struct processor_name_to_arch,
21883         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
21884         aarch64_contains_opt,
21885         aarch64_get_extension_string_for_isa_flags): Change type of
21886         variables storing flags to uint64_t.
21887         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
21888         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
21889         * config/aarch64/aarch64.c (struct processor,
21890         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
21891         aarch64_validate_march, aarch64_override_options,
21892         aarch64_option_print, aarch64_handle_attr_isa_flags,
21893         aarch64_declare_function_name, aarch64_start_file): Make flag
21894         variables uint64_t.
21895         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
21896         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
21897         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
21898         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
21899         * config/aarch64/driver-aarch64.c
21900         (struct aarch64_arch_extension, struct aarch64_core_data,
21901         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
21902         flag variables uint64_t.
21903         * doc/invoke.texi: Add documentation for new arguments.
21905 2019-05-22  Richard Biener  <rguenther@suse.de>
21907         * alias.c (ao_ref_from_mem): Move stack-slot sharing
21908         rewrite ...
21909         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
21911 2019-05-22  Martin Liska  <mliska@suse.cz>
21913         PR lto/90500
21914         * doc/extend.texi: Document the change.
21916 2019-05-22  Richard Biener  <rguenther@suse.de>
21918         PR tree-optimization/90450
21919         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
21920         (mem_ref_hasher::equal): Check it.
21921         (mem_ref_alloc): Initialize it.
21922         (gather_mem_refs_stmt): Set it.
21924 2019-05-22  Richard Biener  <rguenther@suse.de>
21926         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
21927         Add ABS_EXPR.
21928         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
21929         as ABSU_EXPR.
21931 2019-05-22  Alan Modra  <amodra@gmail.com>
21933         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
21934         (ASM_CPU_SPEC): Conditionally add -many.
21935         * config/rs6000/rs6000.c (rs6000_machine): New static var.
21936         (rs6000_machine_from_flags, emit_asm_machine): New functions..
21937         (rs6000_file_start): ..extracted from here, and modified to
21938         test all ISA bits.
21939         (rs6000_output_function_prologue): Emit .machine as necessary.
21941 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
21943         PR middle-end/90553
21944         * ira-lives.c (process_bb_node_lives): Consider defs
21945         for a call insn to be die before the call, not after.
21947         * function.c (assign_parm_setup_block): Raise alignment of
21948         stacked parameter only for STRICT_ALIGNMENT targets.
21950 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
21952         * config/rs6000/constraints.md (define_register_constraint "wz"):
21953         Delete.
21954         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21955         RS6000_CONSTRAINT_wz.
21956         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21957         (rs6000_init_hard_regno_mode_ok): Adjust.
21958         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
21959         * doc/md.texi (Machine Constraints): Adjust.
21961 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
21963         * config/rs6000/constraints.md (define_register_constraint "wl"):
21964         Delete.
21965         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21966         RS6000_CONSTRAINT_wl.
21967         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21968         (rs6000_init_hard_regno_mode_ok): Adjust.
21969         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
21970         * doc/md.texi (Machine Constraints): Adjust.
21972 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
21974         * config/rs6000/constraints.md (define_register_constraint "wm"):
21975         Delete.
21976         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21977         RS6000_CONSTRAINT_wm.
21978         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21979         (rs6000_init_hard_regno_mode_ok): Adjust.
21980         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
21981         * doc/md.texi (Machine Constraints): Adjust.
21983 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
21985         * config/rs6000/constraints.md (define_register_constraint "wk"):
21986         Delete.
21987         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21988         RS6000_CONSTRAINT_wk.
21989         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21990         (rs6000_init_hard_regno_mode_ok): Adjust.
21991         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
21992         * doc/md.texi (Machine Constraints): Adjust.
21994 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
21996         * config/rs6000/constraints.md (define_register_constraint "wj"):
21997         Delete.
21998         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21999         RS6000_CONSTRAINT_wj.
22000         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22001         (rs6000_init_hard_regno_mode_ok): Adjust.
22002         * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
22003         (VS_64dm): Delete.
22004         * config/rs6000/vsx.md: Ditto.
22005         * doc/md.texi (Machine Constraints): Adjust.
22007 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
22009         * config/rs6000/constraints.md (define_register_constraint "wh"):
22010         Delete.
22011         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22012         RS6000_CONSTRAINT_wh.
22013         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22014         (rs6000_init_hard_regno_mode_ok): Adjust.
22015         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
22016         * doc/md.texi (Machine Constraints): Adjust.
22018 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22020         PR target/90547
22021         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
22022         Avoid calling gen_lowpart with CONST operand.
22024 2019-05-21  Alexandre Oliva  <aoliva@redhat.com>
22026         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
22027         field template_last_to_copy.
22028         (ssa_create_duplicates): Set it, and use it.  Attempt to
22029         preserve more debug stmts.
22031 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22033         * config/i386/sse.md (VF1_AVX2): New mode iterator.
22034         (signbit<mode>2): New expander
22036 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
22038         PR bootstrap/87338
22039         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
22040         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
22042 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22044         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
22045         %ebx and %ecx bafore calling cpuid with leaf 1 or
22046         non-constant leaf argument.
22048 2019-05-21  Alan Modra  <amodra@gmail.com>
22050         PR target/90545
22051         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
22052         power9 direct move cost.
22054 2019-05-21  Richard Biener  <rguenther@suse.de>
22056         PR middle-end/90510
22057         * fold-const.c (fold_read_from_vector): New function.
22058         * fold-const.h (fold_read_from_vector): Declare.
22059         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
22060         single-element insert permutations.  Canonicalize selector
22061         further and fix issue with last commit.
22063 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
22065         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
22066         parameter with default value false to declaration.
22067         (split_edges_for_insertion): New inline function.  Wrapper for
22068         split_critical_edges with for_edge_insertion_p = true.
22069         * tree-cfg.c (split_critical_edges): Don't split non-critical
22070         edges if for_edge_insertion_p is false.  Fix whitespace.
22071         * tree-ssa-pre.c (pass_pre::execute): Call
22072         split_edges_for_insertion instead of split_critical_edges.
22073         * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
22074         * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
22075         (pass_data_sink_code): Update function name in the comment.
22077 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
22079         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
22080         around is_value_included_in that knows how to handle BIT_AND_EXPR.
22081         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
22082         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
22083         positives.
22085 2019-05-21  Martin Liska  <mliska@suse.cz>
22087         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
22088         an extra newline.
22089         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
22090         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
22091         vec_lvsr.
22092         * config/rs6000/rs6000.c (rs6000_option_override_internal):
22093         Quote a C type.
22094         (rs6000_function_arg): Likewise.
22095         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
22096         (rs6000_expand_ternop_builtin): Use interval syntax.
22097         (get_element_number): Likewise.
22098         (altivec_expand_builtin): Likewise.
22099         (rs6000_get_function_versions_dispatcher): Quote target_clones.
22101 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
22103         PR c++/59813
22104         PR target/90418
22105         * function.h (struct function): Add calls_eh_return member.
22106         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
22107         gimplifying __builtin_eh_return call.
22108         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
22109         to cfun.
22110         (expand_call_inline): Or in src_cfun->calls_eh_return into
22111         dst_cfun->calls_eh_return.
22112         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
22113         cfun->calls_eh_return.
22114         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
22115         * lto-streamer-out.c (output_struct_function_base): Write
22116         calls_eh_return.
22118 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
22120         PR rtl-optimization/43147
22121         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
22122         IX86_BUILTIN_SHUFPD.
22124 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
22126         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
22127         (refs_may_alias_p_1): ... here; update stats.
22128         (refs_may_alias_p): Do not update stats here.
22130 2019-05-20  Richard Biener  <rguenther@suse.de>
22132         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
22133         doesn't produce pointers.
22134         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
22135         the first operand points to.
22137 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
22139         * tree-ssa-alias.c (compare_sizes): New function.
22140         (sompare_type_sizes): New function
22141         (aliasing_component_refs_p): Use it.
22142         (indirect_ref_may_alias_decl_p): Likewise.
22144 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22146         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
22148 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22150         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
22151         (LIBLSAN_EARLY_SPEC): Likewise.
22152         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
22154 2019-05-20  Martin Liska  <mliska@suse.cz>
22156         * config/i386/i386.c (ix86_libc_has_fast_function):
22157         Add ATTRIBUTE_UNUSED for the argument.
22159 2019-05-20  Richard Biener  <rguenther@suse.de>
22161         * gimple-match-head.c: Include vec-perm-indices.h.
22162         * generic-match-head.c: Likewise.
22163         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
22164         is included.
22165         * fold-const.c (fold_vec_perm): Export.
22166         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
22167         (match.pd): ...here.
22169 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
22171         * cfgloop.h (struct loop): Add simdlen member.
22172         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
22173         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
22174         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
22175         as new argument to autovectorize_vector_sizes target hook.  If
22176         loop->simdlen, pick up vector size where the vectorization factor
22177         is equal to loop->simd, and if there is none, fall back to the first
22178         successful one.
22179         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
22180         caller.
22181         * omp-low.c (omp_clause_aligned_alignment): Likewise.
22182         * omp-general.c (omp_max_vf): Likewise.
22183         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
22184         * tree-vect-slp.c (vect_slp_bb): Likewise.
22185         * target.def (autovectorize_vector_sizes): Add ALL argument and
22186         document it.
22187         * doc/tm.texi: Adjust documentation.
22188         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
22189         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
22190         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
22191         bool argument.
22192         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
22193         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
22194         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
22195         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
22196         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
22197         preferred vector size is not 512-bit or 256-bit, just put those
22198         unpreferred ones last.
22200 2019-05-20  Martin Liska  <mliska@suse.cz>
22202         * targhooks.c (default_libc_has_fast_function): New function.
22203         * targhooks.h (default_libc_has_fast_function): Likewise.
22205 2019-05-20  Martin Liska  <mliska@suse.cz>
22207         PR middle-end/90263
22208         * builtins.c (expand_builtin_memory_copy_args): When having a
22209         target with fast mempcpy implementation do now use memcpy.
22210         * config/i386/i386.c (ix86_libc_has_fast_function): New.
22211         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
22212         * doc/tm.texi: Likewise.
22213         * doc/tm.texi.in: Likewise.
22214         * target.def:
22215         * expr.c (emit_block_move_hints): Add 2 new arguments.
22216         * expr.h (emit_block_move_hints): Bail out when libcall
22217         to memcpy would be used.
22219 2019-05-20  Martin Liska  <mliska@suse.cz>
22221         * profile-count.c: Add vertical spacing in order
22222         to separate functions.
22223         * profile-count.h: Likewise.
22225 2019-05-20  Martin Liska  <mliska@suse.cz>
22227         * profile-count.h: Do not use full qualified
22228         names if possible.
22229         * profile-count.c (profile_count::to_frequency): Likewise.
22231 2019-05-20  Martin Liska  <mliska@suse.cz>
22233         * profile-count.h (enum profile_quality): Use capital letters
22234         for enum value names.  Use the adjusted names.
22235         * profile-count.c: Use the adjusted names.
22237 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
22239         * config/rs6000/constraints.md (define_register_constraint "wH"):
22240         Delete.
22241         (define_register_constraint "wI"): Delete.
22242         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22243         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
22244         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22245         (rs6000_init_hard_regno_mode_ok): Adjust.
22246         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
22247         resp. "d", or with "wa" as appropriate, all with "p8v".
22248         * config/rs6000/vsx.md: Ditto.
22249         * doc/md.texi (Machine Constraints): Adjust.
22251 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
22253         * config/rs6000/constraints.md (define_register_constraint "wy"):
22254         Delete.
22255         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22256         RS6000_CONSTRAINT_wy.
22257         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22258         (rs6000_init_hard_regno_mode_ok): Adjust.
22259         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
22260         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
22261         (define_mode_attr Fisa): New.
22262         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
22263         * doc/md.texi (Machine Constraints): Adjust.
22265 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
22267         * config/rs6000/constraints.md (define_register_constraint "wu"):
22268         Delete.
22269         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22270         RS6000_CONSTRAINT_wu.
22271         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22272         (rs6000_init_hard_regno_mode_ok): Adjust.
22273         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
22274         both with "p8v".
22275         (define_mode_attr Fa): Delete.
22276         * config/rs6000/vsx.md: Ditto.
22277         * doc/md.texi (Machine Constraints): Adjust.
22279 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
22281         * config/rs6000/constraints.md (define_register_constraint "wJ"):
22282         Delete.
22283         (define_register_constraint "wK"): Delete.
22284         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22285         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
22286         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22287         (rs6000_init_hard_regno_mode_ok): Adjust.
22288         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
22289         Replace "wK" constraint by "wH" with "p9v".
22290         * config/rs6000/vsx.md: Ditto.
22291         * doc/md.texi (Machine Constraints): Adjust.
22293 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
22295         * config/rs6000/constraints.md (define_register_constraint "wb"):
22296         Delete.
22297         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22298         RS6000_CONSTRAINT_wb.
22299         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22300         (rs6000_init_hard_regno_mode_ok): Adjust.
22301         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
22302         * config/rs6000/vsx.md: Ditto.
22303         * doc/md.texi (Machine Constraints): Adjust.
22305 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
22307         * config/rs6000/constraints.md (define_register_constraint "wo"):
22308         Delete.
22309         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22310         RS6000_CONSTRAINT_wo.
22311         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22312         (rs6000_init_hard_regno_mode_ok): Adjust.
22313         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
22314         * config/rs6000/altivec.md: Ditto.
22315         * doc/md.texi (Machine Constraints): Adjust.
22317 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
22319         * config/darwin-c.c (darwin_register_objc_includes): Do not
22320         prepend the sysroot when building gnu-runtime header search
22321         paths.
22323 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
22325         * config/darwin.c (darwin_file_end): Use switch_to_section ()
22326         instead of direct output of the asm.
22328 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
22330         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
22331         argument to be type bool (was int before).
22332         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
22333         at first use.  Use type bool for some variables.  Fix a theoretical
22334         eh_return bug for svr4.
22336 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
22338         * config/rs6000/rs6000.md (isa): New attribute.
22339         (enabled): New attribute.
22341 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
22343         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
22344         assemble_start_function and assemble_end_function.
22346 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
22348         PR middle-end/89433
22349         * omp-general.c (oacc_verify_routine_clauses): Change formal
22350         parameters.  Add checking if already marked with an OpenACC
22351         'routine' directive.  Adjust all users.
22353         PR middle-end/89433
22354         * omp-general.c (oacc_build_routine_dims): Move some of its
22355         processing into...
22356         (oacc_verify_routine_clauses): ... this new function.
22357         * omp-general.h (oacc_verify_routine_clauses): New prototype.
22359 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
22361         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
22362         formating of picbase labels to match other ports.
22364 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
22366         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
22367         in the generated code.
22369 2019-05-16  Martin Sebor  <msebor@redhat.com>
22371         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
22372         identifiers, keywords, operators, and types in diagnostics.  Correct
22373         quoting, spelling, and sentence capitalization issues.
22374         (expand_builtin_atomic_is_lock_free): Same.
22375         (fold_builtin_next_arg): Same.
22376         * cfgexpand.c (expand_one_var): Same.
22377         (tree_conflicts_with_clobbers_p): Same.
22378         (expand_asm_stmt): Same.
22379         (verify_loop_structure): Same.
22380         * cgraphunit.c (process_function_and_variable_attributes): Same.
22381         * collect-utils.c (collect_execute): Same.
22382         * collect2.c (maybe_run_lto_and_relink): Same.
22383         (is_lto_object_file): Same.
22384         (scan_prog_file): Same.
22385         * convert.c (convert_to_real_1): Same.
22386         * dwarf2out.c (dwarf2out_begin_prologue): Same.
22387         * except.c (verify_eh_tree): Same.
22388         * gcc.c (execute): Same.
22389         (eval_spec_function): Same.
22390         (run_attempt): Same.
22391         (driver::set_up_specs): Same.
22392         (compare_debug_auxbase_opt_spec_function): Same.
22393         * gcov-tool.c (unlink_gcda_file): Same.
22394         (do_merge): Same.
22395         (do_rewrite): Same.
22396         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
22397         * gimplify.c (gimplify_asm_expr): Same.
22398         (gimplify_adjust_omp_clauses): Same.
22399         * hsa-gen.c (gen_hsa_addr_insns): Same.
22400         (gen_hsa_insns_for_load): Same.
22401         (gen_hsa_cmp_insn_from_gimple): Same.
22402         (gen_hsa_insns_for_operation_assignment): Same.
22403         (gen_get_level): Same.
22404         (gen_hsa_alloca): Same.
22405         (omp_simple_builtin::generate): Same.
22406         (gen_hsa_atomic_for_builtin): Same.
22407         (gen_hsa_insns_for_call): Same.
22408         * input.c (dump_location_info): Same.
22409         * ipa-devirt.c (compare_virtual_tables): Same.
22410         * ira.c (ira_setup_eliminable_regset): Same.
22411         * lra-assigns.c (lra_assign): Same.
22412         * lra-constraints.c (lra_constraints): Same.
22413         * lto-streamer-in.c (lto_input_mode_table): Same.
22414         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
22415         (merge_and_complain): Same.
22416         (compile_offload_image): Same.
22417         (compile_images_for_offload_targets): Same.
22418         (debug_objcopy): Same.
22419         (run_gcc): Same.
22420         (main): Same.
22421         * opts.c (print_specific_help): Same.
22422         (parse_no_sanitize_attribute): Same.
22423         (print_help): Same.
22424         (handle_param): Same.
22425         * plugin.c (add_new_plugin): Same.
22426         (parse_plugin_arg_opt): Same.
22427         (try_init_one_plugin): Same.
22428         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
22429         operators, and types in diagnostics.  Correct quoting and spelling
22430         issues.
22431         * read-rtl-function.c (parse_edge_flag_token): Same.
22432         (function_reader::parse_enum_value): Same.
22433         * reg-stack.c (check_asm_stack_operands): Same.
22434         * regcprop.c (validate_value_data): Same.
22435         * sched-rgn.c (make_pass_sched_fusion): Same.
22436         * stmt.c (check_unique_operand_names): Same.
22437         * targhooks.c (default_target_option_pragma_parse): Same.
22438         * tlink.c (recompile_files): Same.
22439         * toplev.c (process_options): Same.
22440         (do_compile): Same.
22441         * trans-mem.c (diagnose_tm_1): Same.
22442         (ipa_tm_scan_irr_block): Same.
22443         (ipa_tm_diagnose_transaction): Same.
22444         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
22445         format a tree code name in a diagnostic.
22446         (verify_types_in_gimple_min_lval): Same.
22447         (verify_types_in_gimple_reference): Same.
22448         (verify_gimple_call): Same.
22449         (verify_gimple_assign_unary): Same.
22450         (verify_gimple_assign_binary): Same.
22451         (verify_gimple_assign_ternary): Same.
22452         (verify_gimple_assign_single): Same.
22453         (verify_gimple_switch): Same.
22454         (verify_gimple_label): Same.
22455         (verify_gimple_phi): Same.
22456         (verify_gimple_in_seq): Same.
22457         (verify_eh_throw_stmt_node): Same.
22458         (collect_subblocks): Same.
22459         (gimple_verify_flow_info): Same.
22460         (do_warn_unused_result): Same.
22461         * tree-inline.c (expand_call_inline): Same.
22462         * tree-into-ssa.c (update_ssa): Same.
22463         * tree.c (tree_int_cst_elt_check_failed): Same.
22464         (tree_vec_elt_check_failed): Same.
22465         (omp_clause_operand_check_failed): Same.
22466         (verify_type_variant): Same.
22467         (verify_type): Same.
22468         * value-prof.c (verify_histograms): Same.
22469         * varasm.c (assemble_start_function): Same.
22471 2019-05-16  Martin Sebor  <msebor@redhat.com>
22473         * config/i386/i386-expand.c (get_element_number): Quote keywords
22474         and other internal names in diagnostics.  Adjust other diagnostic
22475         formatting issues noted by -Wformat-diag.
22476         * config/i386/i386-features.c
22477         (ix86_mangle_function_version_assembler_name): Same.
22478         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
22479         * config/i386/i386.c (ix86_function_type_abi): Same.
22480         (ix86_function_ms_hook_prologue): Same.
22481         (classify_argument): Same.
22482         (ix86_expand_prologue): Same.
22483         (ix86_md_asm_adjust): Same.
22484         (ix86_memmodel_check): Same.
22486 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
22488         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
22489         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
22490         and fpxx modes.
22492 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
22494         PR target/90497
22495         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
22496         intrinsics without SSE/SSE2/SSSE3.
22497         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
22498         check.
22499         (*mmx_uavgv8qi3): Likewise.
22501 2019-05-17  Richard Biener  <rguenther@suse.de>
22503         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
22504         VEC_PERM_EXPR as __VEC_PERM with -gimple.
22506 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
22508         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
22509         vec_sldw insn pattern.
22511 2019-05-17  Richard Biener  <rguenther@suse.de>
22513         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
22515 2019-05-17  Martin Liska  <mliska@suse.cz>
22517         PR driver/90496
22518         * toplev.c (output_stack_usage): With LTO and sanitizer it
22519         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
22520         has no file location.
22522 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
22524         PR c++/90484
22525         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
22526         sz0 is equal to sz1, instead return false in that case.
22528         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
22529         has non-constant expression, force sctx.lane and use two
22530         argument IFN_GOMP_SIMD_LANE instead of single argument.
22531         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
22532         two argument IFN_GOMP_SIMD_LANE without lhs.
22533         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
22534         member.
22535         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
22536         Define.
22537         (LOOP_REQUIRES_VERSIONING): Or in
22538         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
22539         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22540         simd_if_cond.
22541         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
22542         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
22543         from simd if clause if needed.
22545 2019-05-16  Richard Biener  <rguenther@suse.de>
22547         * tree-affine.c (expr_to_aff_combination): New function split
22548         out from...
22549         (tree_to_aff_combination): ... here.
22550         (aff_combination_expand): Avoid building a GENERIC tree.
22552 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
22554         * cgraphunit.c (cgraph_node::expand_thunk): Remove
22555         assemble_start_function and assemble_end_function calls.
22556         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
22557         assemble_start_function and assemble_end_function.
22558         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
22559         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
22560         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
22561         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
22562         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
22563         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
22564         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
22565         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
22566         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
22567         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
22568         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
22569         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
22570         Likewise.
22571         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
22572         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
22573         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
22574         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
22575         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
22576         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
22577         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
22578         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
22579         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
22580         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
22581         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
22582         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
22583         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
22584         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
22585         Likewise.
22586         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
22587         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
22588         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
22590 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
22592         * tree-ssa-alias.c (alias_stats): Add
22593         aliasing_component_refs_p_may_alias and
22594         aliasing_component_refs_p_no_alias.
22595         (dump_alias_stats): Print aliasing_component_refs_p stats.
22596         (aliasing_component_refs_p): Update stats.
22598 2019-05-16  Martin Liska  <mliska@suse.cz>
22600         PR lto/90500
22601         * multiple_target.c (expand_target_clones): Do not allow
22602         target_clones being used with a symbol that is an alias.
22604 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
22606         PR tree-optimization/90394
22607         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
22608         positives rather than ICE for cases where (code2 == NE_EXPR
22609         && code1 == BIT_AND_EXPR).
22611 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
22613         PR fortran/90329
22614         * tree-core.h (struct tree_decl_common): Document
22615         decl_nonshareable_flag for PARM_DECLs.
22616         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
22617         * calls.c (expand_call): Don't try tail call if caller
22618         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
22619         passed on the stack and callee needs to pass any arguments on the
22620         stack.
22621         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
22622         else if instead of series of mutually exclusive ifs.  Handle
22623         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
22624         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
22626         * lto-streamer.h (LTO_major_version): Bump to 9.
22628 2019-05-16  Jun Ma  <JunMa@linux.alibaba.com>
22630         PR tree-optimization/90106
22631         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
22632         new parameter as new internal function call, also move it to new
22633         basic block.
22634         (use_internal_fn): Pass internal function call to
22635         shrink_wrap_one_built_in_call_with_conds.
22637 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
22639         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
22640         max_vf to 1.
22641         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
22642         safelen_int and set loop->dont_vectorize.
22644 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22646         PR target/89021
22647         * config/i386/i386-builtin.def: Enable MMX intrinsics with
22648         SSE/SSE2/SSSE3.
22649         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
22650         Likewise.
22651         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
22652         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
22653         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
22654         is defined.
22656 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22658         PR target/89021
22659         * config/i386/mmx.md (*vec_dupv2sf): Changed to
22660         define_insn_and_split to support SSE emulation.
22661         (*vec_extractv2sf_0): Likewise.
22662         (*vec_extractv2sf_1): Likewise.
22663         (*vec_extractv2si_0): Likewise.
22664         (*vec_extractv2si_1): Likewise.
22665         (*vec_extractv2si_zext_mem): Likewise.
22666         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
22667         (vec_extractv2sf_1 splitter): Likewise.
22668         (vec_extractv2sfsf): Likewise.
22669         (vec_setv2si): Likewise.
22670         (vec_extractv2si_1 splitter): Likewise.
22671         (vec_extractv2sisi): Likewise.
22672         (vec_setv4hi): Likewise.
22673         (vec_extractv4hihi): Likewise.
22674         (vec_setv8qi): Likewise.
22675         (vec_extractv8qiqi): Likewise.
22676         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
22677         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
22678         (vec_extractv2sisi): Likewise.
22679         (vec_extractv4hihi): Likewise.
22680         (vec_extractv8qiqi): Likewise.
22681         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
22682         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
22683         (vec_initv2sisi): Likewise.
22684         (vec_initv4hihi): Likewise.
22685         (vec_initv8qiqi): Likewise.
22686         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
22687         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
22688         (vec_setv4hi): Likewise.
22689         (vec_setv8qi): Likewise.
22691 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22693         PR target/89021
22694         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
22695         TARGET_MMX_WITH_SSE.
22696         (MMXMODE:*mov<mode>_internal): Likewise.
22697         (MMXMODE:movmisalign<mode>): Likewise.
22699 2019-05-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22701         PR target/89021
22702         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
22703         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
22704         (sse2_cvtpd2pi): Ditto.
22705         (sse2_cvttpd2pi): Ditto.
22706         (*vec_concatv2sf_sse4_1): Ditto.
22707         (*vec_concatv2sf_sse): Ditto.
22708         (*vec_concatv2si_sse4_1): Ditto.
22709         (*vec_concatv2si): Ditto.
22710         (*vec_concatv4si_0): Ditto.
22711         (*vec_concatv2di_0): Ditto.
22713 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22715         PR target/89021
22716         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
22718 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22720         PR target/89021
22721         * config/i386/sse.md (ssse3_palignrdi): Changed to
22722         define_insn_and_split to support SSE emulation.
22724 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22726         PR target/89021
22727         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
22729 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22731         PR target/89021
22732         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
22733         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
22734         SSE emulation.
22736 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22738         PR target/89021
22739         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
22740         or TARGET_MMX_WITH_SSE.
22741         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
22743 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22745         PR target/89021
22746         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
22748 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22750         PR target/89021
22751         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
22752         Changed to define_insn_and_split to support SSE emulation.
22754 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22756         PR target/89021
22757         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
22758         Changed to define_insn_and_split to support SSE emulation.
22760 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22762         PR target/89021
22763         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
22764         (*mmx_<emms>): This.
22765         (mmx_<emms>): New expander.
22767 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22769         PR target/89021
22770         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
22771         support.
22772         (*sse2_umulv1siv1di3): Add SSE2 emulation.
22774 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22776         PR target/89021
22777         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
22779 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22781         PR target/89021
22782         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
22784 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22786         PR target/89021
22787         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
22788         TARGET_MMX_WITH_SSE.
22789         (*mmx_uavgv4hi3): Add SSE emulation.
22791 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22793         PR target/89021
22794         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
22795         and TARGET_MMX_WITH_SSE.
22796         (*mmx_uavgv8qi3): Add SSE emulation.
22798 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22800         PR target/89021
22801         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
22802         maskmovdqu for __MMX_WITH_SSE__.
22804 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22806         PR target/89021
22807         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
22808         TARGET_MMX and TARGET_MMX_WITH_SSE.
22809         (*mmx_umulv4hi3_highpart): Add SSE emulation.
22811 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22813         PR target/89021
22814         * config/i386/mmx.md (mmx_pmovmskb): Changed to
22815         define_insn_and_split to support SSE emulation.
22817 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22819         PR target/89021
22820         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
22821         and TARGET_MMX_WITH_SSE.
22822         (mmx_<code>v8qi3): Likewise.
22823         (smaxmin:<code>v4hi3): New.
22824         (umaxmin:<code>v8qi3): Likewise.
22825         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
22826         (umaxmin:*mmx_<code>v8qi3): Likewise.
22828 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22830         PR target/89021
22831         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
22832         TARGET_MMX_WITH_SSE.
22833         (*mmx_pinsrw): Add SSE emulation.
22835 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22837         PR target/89021
22838         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
22840 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22842         PR target/89021
22843         * config/i386/sse.md (sse_cvtpi2ps): Changed to
22844         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
22845         SSE emulation.
22847 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22849         PR target/89021
22850         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
22851         (sse_cvttps2pi): Likewise.
22853 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22855         PR target/89021
22856         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
22857         TARGET_MMX_WITH_SSE.
22858         (mmx_pshufw_1): Add SSE emulation.
22859         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
22860         TARGET_MMX_WITH_SSE to support SSE emulation.
22862 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22864         PR target/89021
22865         * config/i386/constraints.md (Yw): New constraint.
22866         * config/i386/mmx.md (*vec_dupv2si): Changed to
22867         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
22868         support SSE emulation.
22870 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22872         PR target/89021
22873         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
22874         TARGET_MMX_WITH_SSE.
22875         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
22876         support.
22877         (mmx_gt<mode>3): Likewise.
22879 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22881         PR target/89021
22882         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
22883         TARGET_MMX_WITH_SSE.  Add SSE support.
22885 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22887         PR target/89021
22888         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
22889         TARGET_MMX_WITH_SSE.
22890         (any_logic:<code><mode>3): New.
22891         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
22892         Add SSE support.
22894 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22896         PR target/89021
22897         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
22898         TARGET_MMX_WITH_SSE.  Add SSE emulation.
22899         (mmx_<shift_insn><mode>3): Likewise.
22900         (ashr<mode>3): New.
22901         (<shift_insn><mode>3): Likewise.
22903 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22905         PR target/89021
22906         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
22907         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
22909 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22911         PR target/89021
22912         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
22913         TARGET_MMX_WITH_SSE.
22914         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
22915         SSE support.
22917 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22919         PR target/89021
22920         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
22921         TARGET_MMX_WITH_SSE.
22922         (mulv4hi3): New.
22923         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
22924         support.
22926 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22928         PR target/89021
22929         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
22930         (plusminus:mmx_<plusminus_insn><mode>3): Check
22931         TARGET_MMX_WITH_SSE.
22932         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
22933         (<plusminus_insn><mode>3): New.
22934         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
22935         (*mmx_<plusminus_insn><mode>3): Likewise.
22937 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22939         PR target/89021
22940         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
22941         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
22942         prototype.
22943         * config/i386/mmx.m (mmx_punpckhbw): Changed to
22944         define_insn_and_split to support SSE emulation.
22945         (mmx_punpcklbw): Likewise.
22946         (mmx_punpckhwd): Likewise.
22947         (mmx_punpcklwd): Likewise.
22948         (mmx_punpckhdq): Likewise.
22949         (mmx_punpckldq): Likewise.
22951 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22952             Uros Bizjak  <ubizjak@gmail.com>
22954         PR target/89021
22955         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
22956         New function.
22957         (ix86_split_mmx_pack): Likewise.
22958         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
22959         New prototype.
22960         (ix86_split_mmx_pack): Likewise.
22961         * config/i386/i386.md (mmx_isa): New.
22962         (enabled): Also check mmx_isa.
22963         * config/i386/mmx.md (any_s_truncate): New code iterator.
22964         (s_trunsuffix): New code attr.
22965         (mmx_packsswb): Removed.
22966         (mmx_packssdw): Likewise.
22967         (mmx_packuswb): Likewise.
22968         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
22969         MMX packsswb/packuswb with SSE2.
22970         (mmx_packssdw): Likewise.
22971         * config/i386/predicates.md (register_mmxmem_operand): New.
22973 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
22975         PR target/89021
22976         * config/i386/i386-c.c (ix86_target_macros_internal): Define
22977         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
22978         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
22979         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
22980         (ix86_vector_mode_supported_p): Likewise.
22981         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
22983 2019-05-15  Martin Liska  <mliska@suse.cz>
22985         PR middle-end/90478
22986         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
22987         Check for overflow.
22989 2019-05-15  Richard Biener  <rguenther@suse.de>
22991         * tree-into-ssa.c (pass_build_ssa::execute): Run
22992         update_address_taken before going into SSA.
22994 2019-05-15  Richard Biener  <rguenther@suse.de>
22996         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
22997         as __BIT_FIELD_REF with type with -gimple.
22999 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
23001         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
23002         semantically equivalent branches (left over after prior refactorings).
23004 2019-05-15  Richard Biener  <rguenther@suse.de>
23006         PR tree-optimization/88828
23007         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
23008         bogus check.
23010 2019-05-14  Richard Biener  <rguenther@suse.de>
23012         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
23013         as __VIEW_CONVERT with -gimple.
23015 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
23017         PR target/82920
23018         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
23019         Darwin.
23021 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
23023         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
23024         define_split to become a define_insn_and_split.
23026 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
23028         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
23029         arguments.
23030         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
23031         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
23032         (sibcall_epilogue): Adjust.
23033         (epilogue): Adjust.
23035 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23037         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
23038         to unsupported ones.
23039         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
23040         * config.host: Likewise.
23041         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
23042         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
23043         __svr4__]: Remove "brand" fallback.
23044         [!KSTAT_DATA_STRING]: Remove.
23045         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
23046         to *-*-solaris2*.
23047         (comdat_group): Likewise.
23048         (set_have_as_tls): Likewise.
23049         (gcc_cv_target_dl_iterate_phdr): Likewise.
23050         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
23051         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
23052         * configure: Regenerate.
23053         * doc/install.texi: Simplify Solaris target triplets.
23054         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
23055         (Specific, *-*-solaris2*): Document Solaris 10 removal.
23056         Remove Solaris 10 references.
23057         Remove obsolete Solaris bug reference.
23058         (Specific, sparc-sun-solaris2.10): Remove.
23060 2019-05-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23062         * config/i386/i386.md (any_div): New code iterator.
23063         (paired_mod): New code attribute.
23064         (sgnprefix): Handle DIV and UDIV RTXes.
23065         (u): Ditto.
23066         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
23067         and udivmod<mode>4 patterns using any_div code iterator.
23068         (divmod splitters): Macroize splitters using any_div code iterator.
23069         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
23070         (*udivmodsi4_pow2_zext_2): Ditto.
23071         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
23072         and *udivmod<mode>4_noext patterns using any_div code iterator.
23073         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
23074         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
23075         patterns using any_div code iterator.
23076         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
23077         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
23078         patterns using any_div code iterator.
23079         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
23080         udivmodhiqi3 patterns using any_extend code iterator.
23082 2019-05-14  Richard Biener  <rguenther@suse.de>
23083             H.J. Lu  <hongjiu.lu@intel.com>
23085         PR tree-optimization/88828
23086         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
23087         permuting in a single non-constant element not extracted
23088         from a vector.
23090 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
23092         * internal-fn.def (SIGNBIT): New.
23093         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
23094         defined.
23095         (signbitv4sf2): Likewise.
23097 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
23099         PR target/90357
23100         * config/mips/mips.c (mips_split_move): Skip forward SRC into
23101         next insn when the SRC reg is dead.
23103 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
23105         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
23106         (alloc_cand_and_find_basis): Ditto.
23107         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
23108         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
23109         (create_add_imm_cand, slsr_process_cast): Ditto.
23110         (slsr_process_copy, replace_mult_candidate): Ditto.
23111         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
23112         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
23113         (pass_strength_reduction::execute): Init the first NULL element.
23115 2019-05-13  Nathan Sidwell  <nathan@acm.org>
23117         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
23118         (run_attempt): Reformat line break.
23120 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
23122         PR target/90418
23123         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
23124         data registers in sibcall epilogues.
23125         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
23127 2019-05-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23129         PR target/89221
23130         * configure.ac (--enable-frame-pointer):
23131         Disable by default for cygwin and mingw.
23132         * configure: Regenerate.
23134 2019-05-13  Nathan Sidwell  <nathan@acm.org>
23136         * dwarf2out.c (breakout_comdat_types): Move comment to correct
23137         piece of code.
23138         (const_ok_for_output_1): Balance parens around #if/#else/#endif
23139         (gen_member_die): Move abstract origin check earlier.  Only VARs
23140         can be static_inline_p.  Simplify splicing control flow.
23142 2019-05-13  Richard Biener  <rguenther@suse.de>
23144         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
23145         VIEW_CONVERT_EXPR.
23146         (vect_build_slp_tree_1): Likewise.
23148 2019-05-13  Richard Biener  <rguenther@suse.de>
23150         PR tree-optimization/90402
23151         * tree-if-conv.c (tree_if_conversion): Value number only
23152         the loop body by making the latch an exit of the region
23153         as well.
23154         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
23155         processing PHIs.
23156         (do_rpo_vn): Deal with multiple edges into the entry block
23157         that are not backedges inside the region by skipping PHIs
23158         of the entry block.
23160 2019-05-13  Richard Biener  <rguenther@suse.de>
23162         PR tree-optimization/90316
23163         * tree-ssa-pre.c (insert_aux): Fold into ...
23164         (insert): ... this function.  Use a RPO walk to reduce the
23165         number of required iterations.
23167 2019-05-13  Martin Liska  <mliska@suse.cz>
23169         PR tree-optimization/90416
23170         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
23171         string instead of passing the second part as va_arg argument.
23173 2019-05-13  Martin Liska  <mliska@suse.cz>
23175         PR gcov-profile/90380
23176         * gcov.c (handle_cycle): Do not support zero cycle count,
23177         it should not be possible.
23178         (path_contains_zero_cycle_arc): New function.
23179         (circuit): Ignore zero cycle arc counts.
23181 2019-05-13  Martin Liska  <mliska@suse.cz>
23183         PR gcov-profile/90380
23184         * gcov.c (enum loop_type): Remove the enum and
23185         the operator.
23186         (handle_cycle): Assert that we should not reach
23187         a negative count.
23188         (circuit): Use loop_found instead of a tri-state loop_type.
23189         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
23190         happen.
23192 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
23194         PR target/82920
23195         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
23196         (ix86_output_indirect_branch_via_reg): Use output mechanism
23197         accounting for __USER_LABEL_PREFIX__.
23198         (ix86_output_indirect_branch_via_push): Likewise.
23199         (ix86_output_function_return): Likewise.
23200         (ix86_output_indirect_function_return): Likewise.
23202 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
23204         * doc/md.texi: Document use of code attributes in rtx patterns.
23205         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
23206         * read-rtl.c (find_code): Split out search loops into...
23207         (maybe_find_code): ...this new function.
23208         (check_code_iterator): Make the error message more informative.
23209         (check_code_attribute): New function.
23210         (rtx_reader::rtx_alloc_for_name): Likewise.
23211         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
23212         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
23213         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
23214         <max_opp> directly as an rtx code instead of via a match_operator.
23215         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
23216         (<su>abd<mode>_3): Update accordingly.
23218 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
23220         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
23221         is given, print the state of the EH "save world" computation for
23222         Darwin.
23224 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
23226         PR c++/59813
23227         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
23228         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
23230 2019-05-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23232         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
23233         Use pinsrd for TARGET_SSE4_1.
23234         * config/i386/sse.md (movdi_to_sse): Ditto.
23236 2019-05-10  Richard Biener  <rguenther@suse.de>
23238         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
23239         (do_rpo_vn): Initialize next_value_id.
23241 2019-05-10  Martin Liska  <mliska@suse.cz>
23243         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
23244         Fix plural form.
23246 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
23248         PR tree-optimization/90385
23249         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
23250         arguments of the exit phis.
23252         PR c++/90383
23253         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
23254         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
23255         id->do_not_fold.
23256         (copy_tree_body_r): Likewise.
23257         (copy_fn): Set id.do_not_fold to true.
23259 2019-05-10  Martin Liska  <mliska@suse.cz>
23261         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
23262         Reapply changes from r269790.
23264 2019-05-10  Martin Liska  <mliska@suse.cz>
23266         PR middle-end/90340
23267         * doc/invoke.texi: New params.
23268         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
23269         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
23270         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
23271         Use it.
23272         * tree-switch-conversion.h (struct jump_table_cluster):
23273         Likewise.
23275 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
23277         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
23279 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
23281         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
23283 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
23285         PR rtl-optimization/88879
23286         * sel-sched.c (sel_target_adjust_priority): Remove assert.
23288 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
23290         PR target/90405
23291         * config/arm/arm.c (callee_saved_reg_p): Move before
23292         thumb_find_work_register.
23293         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
23294         thumb_find_work_register.  Only call df_get_live_out once.
23295         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
23296         (thumb_find_work_register): Use
23297         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
23298         algorithms to locate a spare call clobbered reg.
23300 2019-05-09  Martin Liska  <mliska@suse.cz>
23302         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
23303         and MAX_EXPR in GIMPLE FE format.
23305 2019-05-09  Martin Liska  <mliska@suse.cz>
23307         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
23308         * gimple-pretty-print.c (dump_gimple_bb_header):
23309         Dump BB count.
23310         (pp_cfg_jump): Dump edge probability.
23311         * profile-count.c (profile_quality_as_string): Simplify
23312         with a static array.
23313         (parse_profile_quality): New function.
23314         (profile_count::dump): Simplify with a static array.
23315         (profile_count::from_gcov_type): Add new argument.
23316         * profile-count.h (parse_profile_quality): Likewise.
23317         * predict.h (set_hot_bb_threshold): New.
23318         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
23319         New param.
23320         * predict.c (get_hot_bb_threshold): Set from the new param.
23321         (set_hot_bb_threshold): New.
23323 2019-05-09  Richard Biener  <rguenther@suse.de>
23325         PR tree-optimization/90395
23326         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
23327         rewrite vector stores that throw internally.
23329 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
23331         * cif-code.def (CHKP): Remove.
23333         PR target/89221
23334         * configure.ac (--enable-frame-pointer): Disable by default for
23335         GNU systems.
23336         * configure: Regenerate.
23338 2019-05-09  Alan Modra  <amodra@gmail.com>
23340         PR target/89271
23341         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
23342         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
23343         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
23344         cost for general <-> vsx when direct moves are available.
23345         Cost union classes at minimal cost for any reg in the class.
23346         Correct calculation for moves between vsx, float, and altivec.
23347         Don't return a low cost for moves between special regs.  Don't
23348         use hard coded register numbers.
23349         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
23350         (rs6000_ira_change_pseudo_allocno_class): New function.
23351         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
23352         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
23353         alternatives.
23354         (movsi_internal1): Don't disparage vector alternatives.
23355         (mov<mode>_internal): Likewise, excepting alternative that
23356         will be split.
23357         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
23358         we <- b alternative.
23360 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
23362         PR c++/59813
23363         PR tree-optimization/89060
23364         * tree-ssa-live.h (live_vars_map): New typedef.
23365         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
23366         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
23367         (struct compute_live_vars_data): New type.
23368         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
23369         live_vars_at_stmt, destroy_live_vars): New functions.
23370         * tree-tailcall.c: Include tree-ssa-live.h.
23371         (live_vars, live_vars_vec): New global variables.
23372         (find_tail_calls): Perform variable life analysis before punting.
23373         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
23374         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
23375         member.
23376         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
23377         Perform variable life analysis to select variables that really need
23378         clobbers added.
23379         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
23380         instead set id->eh_landing_pad_dest and assert it is the same.
23381         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
23383 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
23384             Richard Earnshaw  <rearnsha@arm.com>
23386         PR target/88167
23387         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
23388         function.
23389         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
23390         (thumb1_compute_save_core_reg_mask): Don't force a spare work
23391         register if both the epilogue and prologue can use call-clobbered
23392         regs.
23393         (thumb1_unexpanded_epilogue): Use
23394         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
23395         picking temporaries for restoring high regs to match that of the
23396         prologue where possible.
23397         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
23398         the list of work registers.  Detect if the return address is still live
23399         at the end of the prologue and avoid using it for a work register if so.
23400         If the return address is not live, add LR to the list of pushable regs
23401         after the first pass.
23403 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
23405         PR tree-optimization/90078
23406         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
23407         (INFTY): Increase the value for infinite cost.
23408         (struct comp_cost): Promote type of members to int64_t.
23409         (infinite_cost): Don't set complexity in initialization.
23410         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
23411         overflows to infinite_cost.
23412         (adjust_setup_cost): Promote type of parameter and cost computation
23413         to int64_t.
23414         (struct ainc_cost_data, struct iv_ca): Promote type of member to
23415         int64_t.
23416         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
23417         cost computation to int64_t.
23418         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
23419         int64_t's format specifier in dump.
23421 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
23423         PR tree-optimization/90240
23424         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
23425         with respect to scaling factor pre-computed for each basic block.
23426         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
23427         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
23428         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
23429         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
23430         live range for array of loop's basic blocks.  Cleanup aux field of
23431         loop's basic blocks.
23433 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
23435         PR tree-optimization/90356
23436         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
23438 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
23440         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
23441         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
23442         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
23443         (ix86_handle_option): Handle -mavx512bf16.
23444         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
23445         to extra_headers.
23446         * config/i386/avx512bf16vlintrin.h: New.
23447         * config/i386/avx512bf16intrin.h: New.
23448         * config/i386/cpuid.h (bit_AVX512BF16): New.
23449         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
23450         * config/i386/i386-builtin-types.def: Add new types.
23451         * config/i386/i386-builtin.def: Add new builtins.
23452         * config/i386/i386-c.c (ix86_target_macros_internal): Define
23453         __AVX512BF16__.
23454         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
23455         (ix86_option_override_internal): Handle BF16.
23456         (ix86_valid_target_attribute_inner_p): Ditto.
23457         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
23458         * config/i386/i386-builtin.c (enum processor_features): Add
23459         F_AVX512BF16.
23460         (static const _isa_names_table isa_names_table): Ditto.
23461         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
23462         (PTA_AVX512BF16): Ditto.
23463         * config/i386/i386.opt: Add -mavx512bf16.
23464         * config/i386/immintrin.h: Include avx512bf16intrin.h
23465         and avx512bf16vlintrin.h.
23466         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
23467         avx512f_cvtneps2bf16_<mode><mask_name>,
23468         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
23469         * config/i386/subst.md (mask_half): Add new subst.
23470         * doc/invoke.texi: Document -mavx512bf16.
23472 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
23474         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
23475         Delete declaration.
23476         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
23477         (rs6000_debug_legitimize_reload_address): Delete.
23478         (rs6000_legitimize_reload_address_ptr): Delete.
23479         (rs6000_option_override_internal): Adjust.
23480         (mem_operand_gpr): Adjust comment.
23481         (legitimate_lo_sum_address_p): Ditto.
23482         (rs6000_legitimize_reload_address): Delete.
23483         (rs6000_debug_legitimize_reload_address): Delete.
23484         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
23486 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
23488         PR target/89765
23489         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23490         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
23491         to compute vector element selector for both constant and variable
23492         operands.
23494 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23496         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
23497         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
23498         ashrdi3_cvt using SWI48 mode iterator.
23500 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
23502         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
23503         (aarch64_<su>abd<mode>_3): Likewise.
23504         (*aarch64_<su>abd<mode>_3): New define_insn.
23505         (<sur>sad<vsi2qi>): New define_expand.
23506         * config/aarch64/iterators.md: Added MAX_OPP attribute.
23507         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
23508         (build_vect_cond_expr): Likewise.
23510 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23512         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
23513         clobbers outside of accessible_reg_set.
23514         * config/i386/i386.c (ix86_conditional_register_usage):
23515         Disable register sets by clearing corresponding bits in
23516         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
23517         call_used_regs and don't clear corresponding reg_names array members.
23519 2019-05-07  Richard Biener  <rguenther@suse.de>
23521         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
23522         not specified still compute a comp_vectype for invariant
23523         compares.
23525 2019-05-07  Richard Biener  <rguenther@suse.de>
23527         PR tree-optimization/90316
23528         * tree-ssa-pre.c (translate_vuse_through_block): When
23529         same_valid is NULL do not bother to search for a virtual
23530         PHI continuation.
23531         (phi_translate_1): When operands changed we cannot keep
23532         the same value-number so do not bother to ask whether
23533         that's possible from translate_vuse_through_block.
23535 2019-05-07  Martin Liska  <mliska@suse.cz>
23537         * bitmap.c (bitmap_register): Come up with
23538         alloc_descriptor_max_uid and assign it for
23539         a new bitmap.
23540         (register_overhead): Use get_descriptor as
23541         a descriptor.
23542         (release_overhead): New.
23543         (bitmap_elem_to_freelist): Call it.
23544         (bitmap_elt_clear_from): Likewise.
23545         (bitmap_obstack_free): Likewise.
23546         (bitmap_move): Sensitively release memory.
23547         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
23548         (bitmap_initialize): Initialize alloc_descriptor to zero.
23549         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
23551 2019-05-07  Richard Biener  <rguenther@suse.de>
23553         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
23554         we build a SLP node.  Remove max_size and limiting.
23555         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
23557 2019-05-07  Richard Biener  <rguenther@suse.de>
23559         PR tree-optimization/90316
23560         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
23561         limit by reference.
23562         (walk_non_aliased_vuses): Take walking limit argument.
23563         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
23564         walking if it is reached instead of just counting.
23565         (get_continuation_for_phi): Likewise.
23566         (walk_non_aliased_vuses): Likewise, instead of leaving counter
23567         limiting to the callback.
23568         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
23569         (vn_reference_lookup_3): Likewise.
23570         (vn_reference_lookup_pieces): Likewise.
23571         (vn_reference_lookup): Likewise.
23572         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
23573         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
23574         (avail_exprs_stack::lookup_avail_expr): Likewise.
23576 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
23578         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
23579         for comparaible types in the second direction even if first one
23580         hits incomparable type.
23582 2019-05-07  Richard Biener  <rguenther@suse.de>
23584         PR lto/90369
23585         * lto-wrapper.c (debug_objcopy): Use the original filename
23586         including archive offset for the filename used for -save-temps.
23588 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
23590         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
23591         detection.
23593 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
23594             Hongtao Liu  <hongtao.liu@intel.com>
23596         PR target/89750
23597         PR target/86444
23598         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
23599         Modified, original implementation isn't correct.
23601 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
23603         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
23604         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
23605         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
23606         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
23607         (FRAME_POINTER_REGNUM): Change numbering.
23608         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
23609         (alt_reg_names): Adjust.
23610         (rs6000_conditional_register_usage): Don't mark hard register 64 as
23611         fixed.
23612         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
23613         (DWARF_FRAME_REGISTERS): Delete.
23614         (DWARF2_FRAME_REG_OUT): Fix whitespace.
23615         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
23616         Adjust.
23617         (REG_ALLOC_ORDER): Adjust.
23618         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
23619         (REG_CLASS_CONTENTS): Adjust.
23620         (RETURN_ADDR_RTX): Change comment.
23621         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
23622         instead of 67.
23623         (REGISTER_NAMES): Adjust.
23624         (ADDITIONAL_REGISTER_NAMES): Adjust.
23625         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
23627 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
23629         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
23630         Delete.
23631         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
23632         (DWARF_FRAME_REGISTERS): Adjust.
23633         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
23634         Adjust.
23635         (REG_ALLOC_ORDER): Adjust.
23636         (enum reg_class): Delete SPR_REGS.
23637         (REG_CLASS_NAMES): Delete SPR_REGS.
23638         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
23639         (REGISTER_NAMES): Adjust.
23640         (ADDITIONAL_REGISTER_NAMES): Adjust.
23641         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
23642         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
23643         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
23644         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
23645         (htm_spr_regno): Delete.
23646         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
23647         argument.
23648         (rs6000_dbx_register_number): Adjust.
23650 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
23652         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
23654 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
23656         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
23657         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
23659 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
23661         PR tree-optimization/88709
23662         PR tree-optimization/90271
23663         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
23664         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
23665         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
23666         variable.
23667         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
23668         of the store merging group is larger than
23669         PARAM_STORE_MERGING_MAX_SIZE parameter.
23670         (split_group): Add bzero_first argument.  If set, always emit first
23671         the first store which must be = {} of the whole area and then for the
23672         rest of the stores consider all zero bytes as paddings.
23673         (imm_store_chain_info::output_merged_store): Check if first store
23674         is = {} of the whole area and if yes, determine which setting of
23675         bzero_first for split_group gives smaller number of stores.  Adjust
23676         split_group callers.
23677         (lhs_valid_for_store_merging_p): Allow decls.
23678         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
23679         no elts.
23680         (pass_store_merging::process_store): Likewise.
23682 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
23684         PR target/89424
23685         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
23686         handling of V1TImode.
23688 2019-05-06  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23690         PR target/89221
23691         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
23692         and enable_frame_pointer ...
23693         * configure.ac: ... here.  Update help strings for
23694         --enable-frame-pointer.
23695         * configure: Regenerate.
23696         * config/i386/i386-options.c (ix86_option_override_internal): Remove
23697         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
23698         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
23699         (USE_X86_64_FRAME_POINTER): Ditto.
23701 2019-05-06  Martin Liska  <mliska@suse.cz>
23703         * config.gcc: Append to target_gtfiles and fix indentation.
23705 2019-05-06  Richard Biener  <rguenther@suse.de>
23707         PR tree-optimization/90358
23708         * tree-vect-stmts.c (get_group_load_store_type): Properly
23709         detect unused upper half of load.
23710         (vectorizable_load): Likewise.
23712 2019-05-06  Richard Biener  <rguenther@suse.de>
23714         PR tree-optimization/88828
23715         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
23716         (simplify_vector_constructor): ...here.  Handle constants in
23717         the constructor.
23719 2019-05-06  Richard Biener  <rguenther@suse.de>
23721         PR tree-optimization/90328
23722         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
23723         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
23724         is valid in the loop nest before using it.
23725         (initialize_data_dependence_relation): Adjust.
23726         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
23727         loop as loop-nest to dr_may_alias_p.
23729 2019-05-06  Richard Biener  <rguenther@suse.de>
23731         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
23733 2019-05-06  Richard Biener  <rguenther@suse.de>
23735         PR tree-optimization/90316
23736         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
23737         compute target on demand.
23738         (get_continuation_for_phi): Remove code walking stmts to
23739         get to a target virtual operand which could end up being
23740         quadratic.
23742 2019-05-06  Martin Liska  <mliska@suse.cz>
23744         PR sanitizer/90312
23745         * config/i386/i386-options.c (ix86_option_override_internal): Error only
23746         when -mabi is selected to a non-default version.
23748 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
23749             Martin Liska  <mliska@suse.cz>
23751         * Makefile.in: Add lto-dump.texi.
23752         * cgraph.h: Add new functions get_visibility_string and
23753         get_symtab_type_string.
23754         * doc/gcc.texi: Include lto-dump section.
23755         * doc/lto-dump.texi: New file.
23756         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
23757         (parse_dump_option): Factor out this function.
23758         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
23759         (parse_dump_option): Export the function.
23760         * symtab.c (symtab_node::get_visibility_string): New function.
23761         (symtab_node::get_symtab_type_string): Likewise.
23763 2019-05-06  Martin Liska  <mliska@suse.cz>
23765         * config/i386/i386-builtins.c: New file.
23766         * config/i386/i386-builtins.h: New file.
23767         * config/i386/i386-expand.c: New file.
23768         * config/i386/i386-expand.h: New file.
23769         * config/i386/i386-features.c: New file.
23770         * config/i386/i386-features.h: New file.
23771         * config/i386/i386-options.c: New file.
23772         * config/i386/i386-options.h: New file.
23773         * config.gcc: Add new files into extra_objs and
23774         target_gtfiles.
23775         * config/i386/i386.c: Split content of the file
23776         into newly introduced files.
23777         * config/i386/i386.h: Declare common variables
23778         and macros.
23779         * config/i386/t-i386: Define dependencies for new files.
23781 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
23783         PR target/89400
23784         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
23785         Restrict 'all' variant to 32-bit configurations.
23786         (unaligned_loadhiu): Likewise.
23787         (unaligned_storehi): Likewise.
23788         (unaligned_storesi): Likewise.
23789         (unaligned_loadhis): Disable when compiling for thumb1.
23791 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
23793         PR tree-optimization/90269
23794         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
23795         Ignore clobbers.
23797 2019-05-03  Martin Liska  <mliska@suse.cz>
23799         * hash-map.h: Add is_empty function.
23800         * hash-set.h: Likewise.
23801         * hash-table.h: Likewise.
23802         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
23803         elements () == 0 (and similar usages).
23804         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
23805         * gimplify.c (gimplify_bind_expr): Likewise.
23806         (gimplify_switch_expr): Likewise.
23807         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
23808         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
23809         * postreload-gcse.c (dump_hash_table): Likewise.
23810         (gcse_after_reload_main): Likewise.
23811         * predict.c (combine_predictions_for_bb): Likewise.
23812         * tree-parloops.c (reduction_phi): Likewise.
23813         (separate_decls_in_region): Likewise.
23814         (transform_to_exit_first_loop): Likewise.
23815         (gen_parallel_loop): Likewise.
23816         (gather_scalar_reductions): Likewise.
23817         (try_create_reduction_list): Likewise.
23818         * var-tracking.c (dump_vars): Likewise.
23819         (emit_notes_for_changes): Likewise.
23820         (vt_emit_notes): Likewise.
23822 2019-05-03  Richard Biener  <rguenther@suse.de>
23824         PR tree-optimization/90316
23825         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
23826         before running VN.
23828 2019-05-03  Richard Biener  <rguenther@suse.de>
23830         * tree-vect-stmts.c (get_group_load_store_type): Avoid
23831         peeling for gaps by loading only lower halves of vectors
23832         if possible.
23833         (vectorizable_load): Likewise.
23835 2019-05-03  Richard Biener  <rguenther@suse.de>
23837         PR middle-end/89518
23838         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
23840 2019-05-03  Richard Biener  <rguenther@suse.de>
23842         PR middle-end/87314
23843         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
23844         Handle STRING_CST vs DECL or STRING_CST.
23846 2019-05-03  Richard Biener  <rguenther@suse.de>
23848         PR tree-optimization/88963
23849         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
23850         vector loads feeding only BIT_FIELD_REFs to component
23851         loads.  Rewrite stores fed by CONSTRUCTORs to component
23852         stores.
23854 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
23856         * opts.h (finish_options): Remove lang_mask argument.
23857         (print_help, help_option_argument): Declare.
23858         * opts.c (print_help): Remove forward declaration, no longer static.
23859         (finish_options): Remove lang_mask argument, don't call print_help
23860         here.
23861         * opts-global.c (decode_options): Adjust finish_option caller, call
23862         print_help here.
23864         PR tree-optimization/90303
23865         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
23866         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
23868 2019-05-03  Richard Biener  <rguenther@suse.de>
23870         PR tree-optimization/89698
23871         * gimple-fold.c (canonicalize_constructor_val): Early out
23872         for constants, handle unfolded INTEGER_CSTs as they appear in
23873         C++ virtual table ctors.
23875 2019-05-03  Richard Biener  <rguenther@suse.de>
23877         * passes.c (execute_function_todo): Remove dead code.
23879 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
23881         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
23882         the internal register number, for any "real" register.
23884 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
23886         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
23887         correct numbers for TFHAR, TFIAR, TEXASR.
23889 2019-05-02  Richard Biener  <rguenther@suse.de>
23891         PR tree-optimization/89653
23892         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
23893         update-address-taken before the pass.
23894         * passes.def (pass_tree_loop_init): Put comment before it.
23896 2019-05-02  Richard Biener  <rguenther@suse.de>
23898         PR tree-optimization/89509
23899         * tree-ssa-structalias.c (compute_dependence_clique): Look
23900         at the first subvar when determining whether it is restrict.
23902 2019-05-02  Richard Biener  <rguenther@suse.de>
23904         PR tree-optimization/90273
23905         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
23906         useless debug stmts.
23908 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
23910         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
23911         ACLE branch.
23912         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
23913         SVE ACLE branch.
23914         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
23915         VEC_COND_EXPR be inserted to emulate a conditional internal function.
23916         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
23917         (vectorizable_reduction): Use the functions above to vectorize in a
23918         fully masked loop codes that don't have a conditional internal
23919         function.
23921 2019-05-02  Martin Liska  <mliska@suse.cz>
23923         * cgraphclones.c: Call valid_attribute_p with 1 for
23924         target_clone.
23925         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
23926         it's for target attribute.
23927         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
23928         Add new boolean argument.
23929         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
23930         Likewise.
23931         (ix86_valid_target_attribute_tree): Pass target_clone_attr
23932         to ix86_valid_target_attribute_inner_p.
23933         (ix86_valid_target_attribute_p): Pass flags argument to
23934         ix86_valid_target_attribute_inner_p.
23935         (get_builtin_code_for_version): Use 0 as it's target attribute.
23937 2019-05-02  Martin Liska  <mliska@suse.cz>
23939         * gcc.c (process_command): Add dummy file only
23940         if n_infiles == 0.
23941         * opts-global.c (decode_options): Pass lang_mask.
23942         * opts.c (print_help): New function.
23943         (finish_options): Print --help if help_option_argument
23944         is set.
23945         (common_handle_option): Factor out content of OPT__help_
23946         into print_help.
23947         * opts.h (finish_options): Add new argument.
23949 2019-05-02  Martin Liska  <mliska@suse.cz>
23951         PR target/88809
23952         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
23953         With -minline-all-stringops use inline expansion using 4B loop.
23954         * doc/invoke.texi: Document the change of
23955         -minline-all-stringops.
23957 2019-05-01  Jeff Law  <law@redhat.com>
23959         PR tree-optimization/88797
23960         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
23961         PHI feeds a conditional on the RHS of an assignment.
23963 2019-04-30  Andrew Waterman  <andrew@sifive.com>
23964             Jim Wilson  <jimw@sifive.com>
23966         * config/riscv/constraints.md (L): New.
23967         * config/riscv/predicates.md (lui_operand): New.
23968         (sfb_alu_operand): New.
23969         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
23970         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
23971         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
23972         * config/riscv/risc.md (type): Add sfb_alu.
23973         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
23974         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
23975         (branch_zero<mode>): Delete.
23976         (mov<mode>cc): New.
23977         (mov<GPR:mode><X:mode>cc): Likewise.
23978         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
23980 2019-04-30  Nathan Sidwell  <nathan@acm.org>
23982         * tree.h (MARK_TS_EXP): New.
23984 2019-04-30  Martin Liska  <mliska@suse.cz>
23986         * opts.c (enable_warning_as_error): Provide hints
23987         for unknown options.
23989 2019-04-30  Martin Liska  <mliska@suse.cz>
23991         PR debug/90288
23992         * doc/invoke.texi: Add missing dash for gas-locview-support
23993         and gno-as-locview-support.
23995 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
23997         PR target/89093
23998         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
23999         whitespace at the start of target attribute string.
24001 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24003         PR target/86538
24004         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
24005         Define __ARM_FEATURE_ATOMICS.
24007 2019-04-30  Martin Liska  <mliska@suse.cz>
24009         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
24010         into built_in_function enum. Remove code for endp == 2 and
24011         use BUILT_IN_* constants.
24012         (gimple_fold_builtin): Call the function with fcode.
24014 2019-04-30  Martin Liska  <mliska@suse.cz>
24016         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
24017         DECL_FUNCTION_CODE into ix86_builtins enum before
24018         the switch statement.
24020 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
24022         PR tree-optimization/89475
24023         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
24024         calls.
24026 2019-04-30  Martin Liska  <mliska@suse.cz>
24028         PR translation/90274
24029         * opts.c (print_filtered_help): Wrap string in _(...).
24031 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
24033         PR tree-optimization/90240
24034         Revert:
24035         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
24037         PR tree-optimization/90078
24038         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
24039         checks for infinite_cost overflow.
24041 2019-04-29  Jeff Law  <law@redhat.com>
24043         * passes.def: Move -Wrestrict pass after copy propagation.
24045 2019-04-29  Maya Rashish  <coypu@sdf.org>
24047         * config.gcc (default_gnu_indirect_function): Default to yes
24048         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
24049         sparc*-*-netbsd*, x86_64-*-netbsd*.
24051 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
24053         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
24054         where cond2 is NE_EXPR.
24055         (is_value_included_in): Update comment.
24057 2019-04-29  Richard Biener  <rguenther@suse.de>
24059         PR tree-optimization/90278
24060         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
24061         EH on comparison simplification.
24063 2019-04-29  Jason Merrill  <jason@redhat.com>
24065         PR c++/82081 - tail call optimization breaks noexcept
24066         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
24067         nothrow function to a might-throw function into a tail call.
24069 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
24071         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
24072         (DDR_INNER_LOOP): Likewise.
24073         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
24074         (initialize_data_dependence_relation): Likewise.
24075         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
24077 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
24079         PR rtl-optimization/90257
24080         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
24081         return value.
24083         Revert the revert:
24084         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
24086         PR target/90178
24087         Revert:
24088         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
24090         Revert the revert:
24091         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
24093         Revert:
24094         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
24096         * lra-spills.c (lra_final_code_change): Remove useless move insns.
24098 2019-04-29  Richard Biener  <rguenther@suse.de>
24100         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
24101         rhs issue a reset.
24103 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
24105         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
24106         varasm.h, and netbsd-protos.h.
24108 2019-04-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24110         PR target/89261
24111         * config/i386/i386-protos.h (ix86_data_alignment): Change
24112         the second argument type to unsigned int.
24113         * config/i386/i386.c (ix86_data_alignment): Change "align"
24114         argument type to unsigned int.
24116 2019-04-27  Martin Liska  <mliska@suse.cz>
24118         PR middle-end/90258
24119         * opt-suggestions.c (option_proposer::build_option_suggestions):
24120         When get_valid_option_values returns empty values, add the
24121         misspelling candidate.
24123 2019-04-26  Jim Wilson  <jimw@sifive.com>
24125         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
24126         parameter.
24127         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
24128         Pass orig_mode to riscv_build_integer.
24129         (riscv_split_integer): Pass mode to riscv_move_integer.
24130         (riscv_legitimize_const_move): Likewise.
24131         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
24132         promoted_mode.  Replace force_reg call with code to load constant into
24133         promoted reg and then subreg it for the store.
24134         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
24135         riscv_move_integer.
24137 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
24139         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
24140         corrupt codes.
24142 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
24144         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
24145         commentary about the encoding of precision.
24147 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
24149         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
24150         * config/i386/t-freebsd64: New file.
24151         * config.gcc: Add the t-freebsd64 for multilib support.
24153 2019-04-25  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24155         * doc/extend.texi (vector_size): Add missing comma after @xref.
24157 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
24159         * BASE-VER: Set to 10.0.0.
24161 2019-04-25  Richard Biener  <rguenther@suse.de>
24163         PR middle-end/89765
24164         * gimplify.c (gimplify_expr): Avoid turning a lvalue
24165         VIEW_CONVERT_EXPR into one operating on an rvalue.
24167 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
24169         PR target/89929
24170         * config/i386/i386.c (feature_priority): Moved to file scope.
24171         (processor_features): Likewise.
24172         (processor_model): Likewise.
24173         (_arch_names_table): Likewise.
24174         (arch_names_table): Likewise.
24175         (_feature_list): Removed.
24176         (feature_list): Likewise.
24177         (_isa_names_table): Moved to file scope.  Add priority.
24178         (isa_names_table): Likewise.
24179         (get_builtin_code_for_version): Replace feature_list with
24180         isa_names_table.  Update error message for P_ZERO priority.
24182 2019-04-25  Richard Biener  <rguenther@suse.de>
24184         * tree-pass.h (make_pass_phi_only_cprop): Remove.
24185         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
24187 2019-04-24  Jeff Law  <law@redhat.com>
24189         PR tree-optimization/90037
24190         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
24191         * passes.def: Replace all instance of phi-only cprop with the
24192         lattice propagator.  Move propagation pass from after erroneous
24193         path isolation to before erroneous path isolation.
24194         * tree-ssa-phionlycprop.c: Remove.
24196 2019-04-24  Richard Biener  <rguenther@suse.de>
24198         PR middle-end/90213
24199         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
24200         by size and BITS_PER_UNIT on poly-wide-ints.
24202 2019-04-25  Richard Biener  <rguenther@suse.de>
24204         PR middle-end/90194
24205         * match.pd: Add pattern to simplify view-conversion of an
24206         empty constructor.
24208 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
24210         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
24211         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
24212         for Go on 32 bit AIX.
24213         * config/rs6000/aix72.h: Likewise.
24215 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
24217         PR target/90193
24218         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
24219         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
24221 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
24223         PR target/89952
24224         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
24225         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
24226         for restored hard frame pointer.
24227         (s390_sched_dependencies_evaluation): Implement new target hook.
24228         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
24230 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
24232         * config/arc/arc-options.def: Fix typos and spelling mistakes.
24233         * config/arc/arc.c (arc_init): Cleanup warning message.
24234         (arc_override_options): Likewise.
24236 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
24238         PR target/90187
24239         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
24240         a register if both if_true and if_false are MEMs.
24242         PR tree-optimization/90208
24243         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
24244         after labels of new_bb, not before them.
24246         PR tree-optimization/90211
24247         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
24248         which are not SSA_NAMEs.
24250 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
24252         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
24253         AArch64.
24254         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
24256 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
24258         PR rtl-optimization/87979
24259         * modulo-sched.c (sms_schedule): Start ii value "mii" should
24260         not equal zero.
24262 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
24264         PR rtl-optimization/84032
24265         * modulo-sched.c (ps_insn_find_column): Change condition so that
24266         branch will always be the last insn in a row inside partial
24267         schedule.
24269 2019-04-23  Richard Biener  <rguenther@suse.de>
24271         PR debug/90131
24272         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
24273         dest_single_pred_p argument.
24274         (remove_forwarder_block): Adjust.
24275         (remove_forwarder_block_with_phi): Likewise.
24277 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24278             Bernd Edlinger  <bernd.edlinger@hotmail.de>
24279             Jakub Jelinek  <jakub@redhat.com>
24281         PR target/89093
24282         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
24283         if used with general-regs-only.
24284         (arm_conditional_register_usage): Don't add non-general regs if
24285         general-regs-only.
24286         (arm_valid_target_attribute_rec): Handle general-regs-only.
24287         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
24288         general-regs-only.
24289         (TARGET_HARD_FLOAT_SUB): Define.
24290         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
24291         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
24292         (TARGET_REALLY_IWMMXT2): Likewise.
24293         * config/arm/arm.opt: Add -mgeneral-regs-only.
24294         * doc/extend.texi: Document ARM general-regs-only target.
24295         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
24297 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
24299         PR tree-optimization/90078
24300         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
24301         checks for infinite_cost overflow.
24303 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
24305         PR tree-optimization/90021
24306         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
24307         and check univariate against it.
24308         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
24309         * tree-data-ref.c (add_other_self_distances): Pass new argument.
24311 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
24313         PR target/90178
24314         Revert:
24315         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
24317         Revert the revert:
24318         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
24320         Revert:
24321         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
24323         * lra-spills.c (lra_final_code_change): Remove useless move insns.
24325 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
24327         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
24328         names using operand format, rather than hard-wired.
24329         (speculation_barrier): Likewise.
24331 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
24333         PR tree-optimization/88055
24334         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
24335         (gen_one_condition): Use it if !HONOR_NANS.
24337 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
24339         PR middle-end/90139
24340         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
24341         assign_temp instead of gen_reg_rtx.
24343 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
24345         PR translation/90118
24346         * config/aarch64/aarch64.c (aarch64_override_options_internal):
24347         Add missing space before %<.
24349 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
24351         PR rtl-optimization/87871
24352         * ira-lives.c (make_object_dead): Don't add conflicts to
24353         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
24355 2019-04-18  Martin Sebor  <msebor@redhat.com>
24357         PR middle-end/89797
24358         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
24359         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
24360         assuming type size fits in SHWI.
24362 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
24364         PR ipa/85051
24365         * ipa-inline.c (flatten_function): New parameter UPDATE.
24366         (ipa_inline, early_inliner): Use it.
24368 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
24370         * fold-const.c (int_const_binop): Return early on failure.
24372 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
24374         PR middle-end/85164
24375         * combine.c (force_int_to_mode): Cast the argument rather than
24376         the result of known_alignment.
24377         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
24379 2019-04-18  Richard Biener  <rguenther@suse.de>
24381         PR debug/90131
24382         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
24383         out from ...
24384         (remove_forwarder_block): ... here.
24385         (remove_forwarder_block_with_phi): Also move debug stmts here.
24387 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
24389         PR translation/79183
24390         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
24391         inform where appropriate.
24393 2019-04-18  Richard Biener  <rguenther@suse.de>
24395         * tree.c (get_qualified_type): Put found type variants at the
24396         head of the variant list.
24398 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
24400         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
24402 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
24404         PR target/90125
24405         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
24406         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
24407         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
24408         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
24409         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
24411 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
24413         * ira-conflicts.c (print_allocno_conflicts): Always print something,
24414         even for allocno's with no conflicts.
24415         (print_conflicts): Print an extra newline.
24417 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
24419         * auto-inc-dec.c (attempt_change): Set the alignment of the
24420         temporary memory to that of the original.
24422 2019-04-17  Joao Moreira  <jmoreira@suse.de>
24424         * targhooks.c (default_print_patchable_function_entry): Emit
24425         __patchable_function_entries section with writable flags to allow
24426         relocation resolution.
24428 2019-04-17  Jonny Grant  <jg@jguk.org>
24430         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
24432 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
24434         PR middle-end/90095
24435         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
24436         on lowpart SUBREGs.
24438 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
24440         * config/arc/arc.c (arc_init): Format diagnostic string.
24441         (arc_override_options): Likewise.
24442         (check_if_valid_regno_const): Likewise.
24443         (arc_reorg): Likewise.
24445 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
24447         PR target/17108
24448         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
24449         name.
24450         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
24451         name.
24452         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
24453         (*movdi_update1): Use Pmode.
24454         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
24455         (movdi_<mode>_update_stack): Rename to ...
24456         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
24457         use Pmode.
24458         (*movsi_update1): Use Pmode.
24459         (*movsi_update2): Use Pmode.
24460         (movsi_update): Rename to ...
24461         (movsi_<mode>_update): ... this.  Use Pmode.
24462         (movsi_update_stack): Fix condition.
24463         (*movhi_update1): Use Pmode.  Fix argument to
24464         avoiding_indexed_address_p.
24465         (*movhi_update2): Ditto.
24466         (*movhi_update3): Ditto.
24467         (*movhi_update4): Ditto.
24468         (*movqi_update1): Ditto.
24469         (*movqi_update2): Ditto.
24470         (*movqi_update3): Ditto.
24471         (*movsf_update1, *movdf_update1): Merge, rename to...
24472         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
24473         avoiding_indexed_address_p.  Add "size" attribute.
24474         (*movsf_update2, *movdf_update2): Merge, rename to...
24475         (*mov<mode>_update2): This.  Ditto.
24476         (*movsf_update3): Use Pmode.  Fix argument to
24477         avoiding_indexed_address_p.
24478         (*movsf_update4): Ditto.
24479         (allocate_stack): Simplify condition.  Adjust pattern names.
24481 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
24483         PR target/89093
24484         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
24485         whitespace at the start of target attribute string.
24487 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
24489         PR target/84369
24490         * config/rs6000/power9.md: Add store forwarding bypass.
24492 2019-04-16  Alexandre Oliva  <aoliva@redhat.com>
24494         PR debug/89528
24495         * valtrack.c (dead_debug_insert_temp): Reset debug references
24496         to the return value of a call being removed.
24498 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
24500         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
24501         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
24502         implement target hook.
24503         (arc_memory_move_cost): New function.
24504         (TARGET_REGISTER_MOVE_COST): Define.
24505         (TARGET_MEMORY_MOVE_COST): Likewise.
24506         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
24507         (MEMORY_MOVE_COST): Likewise.
24509 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
24511         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
24512         (sibcall_value_insn): Likewise.
24513         * config/arc/constraints.md (Rs5): Remove.
24515 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
24517         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
24518         for last two fake registers.
24519         (arc_conditional_register_usage): Make sure fake frame and arg
24520         pointer regs are in general regs class.
24521         (FRAME_POINTER_MASK): Remove.
24522         (RETURN_ADDR_MASK): Remove.
24523         (arc_must_save_register): Use hard frame regnum.
24524         (frame_restore_reg): Use hard_frame_pointer_rtx.
24525         (arc_save_callee_saves): Likewise.
24526         (arc_restore_callee_saves): Likewise.
24527         (arc_save_callee_enter): Likewise.
24528         (arc_restore_callee_leave): Likewise.
24529         (arc_save_callee_milli): Likewise.
24530         (arc_eh_return_address_location): Likewise.
24531         (arc_check_multi): Use hard frame regnum.
24532         (arc_can_eliminate): Likewise.
24533         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
24534         for register allocator.
24535         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
24536         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
24537         (FRAME_POINTER_REGNUM): Change it to a fake register.
24538         (HARD_FRAME_POINTER_REGNUM): Defined.
24539         (ARG_POINTER_REGNUM): Change it to a new fake register.
24540         (ELIMINABLE_REGS): Update.
24541         (REGISTER_NAMES): Update names.
24542         * config/arc/arc.md (LP_START): Remove.
24543         (LP_END): Likewise.
24544         (shift_si3_loop): Update pattern.
24546 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
24548         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
24549         to avoid delay slot scheduling.
24550         (arc_must_save_register): Don't save SP.
24551         * config/arc/arc.md (stack_tie): Remove.
24552         (UNSPEC_ARC_STKTIE): Likewise.
24554 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
24555             Shiva Chen  <shiva0217@gmail.com>
24557         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
24558         code gen with large shift amount.
24560 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
24562         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
24563         subreg.
24565 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
24567         PR target/90096
24568         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
24569         print -m64/-mx32/-m32 if it is true.
24570         (ix86_debug_options, ix86_function_specific_print): Pass true as
24571         ADD_ABI_P to ix86_target_string.
24572         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
24573         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
24574         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
24576         PR rtl-optimization/90082
24577         * dce.c (can_delete_call): New function.
24578         (deletable_insn_p, mark_insn): Use it.
24580         PR tree-optimization/90090
24581         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
24582         throw internally.
24583         (is_division_by_square): Likewise.  Formatting fix.
24585 2019-04-16  Richard Biener  <rguenther@suse.de>
24587         PR tree-optimization/56049
24588         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
24589         equality check if alias-set zero will prevail.
24591 2019-04-15  Jeff Law  <law@redhat.com>
24593         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
24594         size and alignment as unsigned.
24596 2019-04-15  Richard Biener  <rguenther@suse.de>
24598         PR debug/90074
24599         * tree-loop-distribution.c (destroy_loop): Preserve correct
24600         debug info.
24602 2019-04-15  Richard Biener  <rguenther@suse.de>
24604         PR tree-optimization/90071
24605         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
24606         abnormal operands from def stmts.
24608 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
24610         PR rtl-optimization/89794
24611         * combine.c (count_auto_inc): New function.
24612         (try_combine): Count how many auto_inc expressions there were in the
24613         original instructions.  Ensure we have the same number in the new
24614         instructions.  Remove the code that tried to ensure auto_inc side
24615         effects on i1 and i0 are not lost.
24617 2019-04-15  Richard Biener  <rguenther@suse.de>
24619         PR ipa/88936
24620         * tree.h (auto_var_p): Declare.
24621         * tree.c (auto_var_p): New function, split out from ...
24622         (auto_var_in_fn_p): ... here.
24623         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
24624         member.
24625         (new_var_info): Initialize it.
24626         (set_uids_in_ptset): Also set the shadow variable uid if required.
24627         (ipa_pta_execute): Postprocess points-to solutions assigning
24628         shadow variable uids for locals that may reach their containing
24629         function recursively.
24630         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
24631         assert but instead check whether the points-to solution is
24632         a singleton.
24634 2019-04-15  Martin Jambor  <mjambor@suse.cz>
24636         PR ipa/pr89693
24637         * cgraph.c (clone_of_p): Loop over clone chain for each step in
24638         the thunk chain.
24640 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
24642         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
24644 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
24645             Kito Cheng  <kito.cheng@gmail.com>
24646             Shiva Chen  <shiva0217@gmail.com>
24648         * config/nds32/nds32-md-auxiliary.c
24649         (nds32_legitimize_pic_address): Use new PIC pattern.
24650         (nds32_legitimize_tls_address): Use new TLS pattern.
24651         (nds32_output_symrel): New.
24652         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
24653         (nds32_alloc_relax_group_id): Ditto.
24654         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
24655         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
24656         relax_group_id.
24657         (nds32_group_tls_insn): Ditto.
24658         (nds32_group_float_insns): Ditto.
24659         * config/nds32/nds32.md (tls_le): New.
24660         (sym_got): Ditto.
24662 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
24664         * configure: Add nds32 target for dwarf2 debug_line checking.
24665         * configure.ac: Regenerated.
24667 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
24669         PR lto/89358
24670         * ipa-devirt.c (skip_in_fields_list_p): New.
24671         (odr_types_equivalent_p): Use it.
24673 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
24675         PR target/89093
24676         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
24677         instead of strncmp when checking for thumb and arm.  Formatting fixes.
24679 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
24681         * doc/install.texi: Document --with-target-system-zlib.
24683 2019-04-12  Martin Sebor  <msebor@redhat.com>
24685         PR c/88383
24686         PR c/89288
24687         PR c/89798
24688         PR c/89797
24689         * targhooks.c (default_vector_alignment): Avoid assuming
24690         argument fits in SHWI.
24691         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
24692         a shift expression.
24693         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
24695 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
24697         PR rtl-optimization/89965
24698         * dce.c: Include rtl-iter.h.
24699         (struct check_argument_load_data): New type.
24700         (check_argument_load): New function.
24701         (find_call_stack_args): Check for loads from stack slots still tracked
24702         in sp_bytes and punt if any is found.
24704         * config/mips/loongson-mmiintrin.h: Fix up #error message.
24706 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
24708         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
24709         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
24711 2019-04-12  Martin Liska  <mliska@suse.cz>
24713         PR middle-end/89970
24714         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
24715         in error message.
24716         (separate_attrs): Handle multiple 'default's.
24717         (expand_target_clones): Rework error handling code.
24719 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
24721         PR target/87532
24722         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
24723         mode of vector rather than mode of destination for move instruction.
24724         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
24725         Use QI inner mode with V16QI vector mode.
24727 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
24729         PR target/52726
24730         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
24731         "invalid %%t operand" in output_operand_lossage message.
24733 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
24735         * config/s390/predicates.md (permute_pattern_operand): New
24736         predicate.
24737         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
24738         operand for the permute pattern.
24739         ("*vec_perm<mode>"): New insn definition.
24740         ("bswap<mode>"): Generate the permute pattern operand in the
24741         expander and perform the operand reloads for pre arch13 level
24742         already.
24743         ("*bswap<mode>_emu"): Rename to ...
24744         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
24745         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
24746         Add the USE operand for the permute pattern.
24747         ("*vec_set_bswap_vec<mode>"): Likewise.
24749 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
24751         PR c/89946
24752         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
24753         and gcc_unreachable if it fails, just call tree_to_uhwi which
24754         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
24755         Start warning message with a lower-case letter.  Formatting fixes.
24757         PR rtl-optimization/90026
24758         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
24759         successors, look for BARRIERs inside of the whole BB_FOOTER chain
24760         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
24761         in cfglayout mode, use emit_barrier_after_bb.
24763 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
24765         PR rtl-optimization/87763
24766         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
24767         New Instruction.
24769 2019-04-11  Tom de Vries  <tdevries@suse.de>
24771         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
24772         max macro using statement expression.
24774 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
24776         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
24777         * xcoffout.c (xcoff_private_rodata_section_name): Define.
24778         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
24779         read_only_private_data_section using xcoff_private_rodata_section_name.
24780         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
24782 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
24784         PR target/90016
24785         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
24787 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
24789         PR rtl-optimization/89965
24790         * dce.c (sp_based_mem_offset): New function.
24791         (find_call_stack_args): Use sp_based_mem_offset.
24793 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
24795         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
24797 2019-04-11  Richard Biener  <rguenther@suse.de>
24799         PR tree-optimization/90020
24800         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
24801         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
24802         * tree-ssa-pre.c (compute_avail): Use it to not put
24803         possibly trapping references after a call that might not
24804         return into EXP_GEN.
24805         * gcse.c (compute_hash_table_work): Do not elide
24806         marking a block containing a call if the call might not
24807         return.
24809 2019-04-11  Richard Biener  <rguenther@suse.de>
24811         PR tree-optimization/90018
24812         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
24813         Test both SLP and interleaving variants.
24815 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
24817         * config/s390/8561.md: New file.
24818         * config/s390/driver-native.c (s390_host_detect_local_cpu):
24819         Add arch13 cpu model.
24820         * config/s390/s390-opts.h (enum processor_type): Likewise.
24821         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
24822         (s390_get_unit_mask): Likewise.
24823         (s390_is_fpd): Likewise.
24824         (s390_is_fxd): Likewise.
24825         * config/s390/s390.h (s390_tune_attr): Likewise.
24826         * config/s390/s390.md: Include arch13 pipeline description.
24827         * config/s390/s390.opt: Add arch13.
24829 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
24831         PR rtl-optimization/87763
24832         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
24833         New prototype.
24834         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
24835         New function.
24836         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
24837         New instruction.
24838         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
24839         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
24840         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
24841         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
24843 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
24845         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
24846         "Although" in -fipa-icf documentation.
24848         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
24849         of using multiple -g options.
24851 2019-04-10  Martin Liska  <mliska@suse.cz>
24853         PR gcov-profile/89959
24854         * doc/gcov.texi: Make documentation of -x option
24855         more precise.
24857 2019-04-10  Richard Biener  <rguenther@suse.de>
24859         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
24860         member.
24861         (DR_GROUP_SAME_DR_STMT): Remove.
24862         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
24863         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
24864         replace with assert.
24865         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
24866         (vect_record_grouped_load_vectors): Remove unreachable code.
24868 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
24870         PR target/90016
24871         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
24872         obsolete reference to N.
24874 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
24876         PR middle-end/90025
24877         * expr.c (store_expr): Set properly size on the MEM passed to
24878         clear_storage.
24880         PR c++/90010
24881         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
24882         with strlen in between hostsz-3 and hostsz-1 inclusive when no
24883         translation is needed, and when translation is needed, only append
24884         ... if the string length is hostsz or more bytes long.  Avoid using
24885         strncpy or strcat.
24887 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
24889         PR target/90024
24890         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
24891         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
24892         into three.
24893         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
24894         differences directly.
24895         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
24897 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
24899         PR translation/90011
24900         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
24901         from diagnostics.
24902         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
24903         diagnostics.
24904         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
24905         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
24906         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
24907         trailing space from -gsplit-dwarf diagnostics.
24909         PR tree-optimization/89998
24910         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
24911         instead of integer_type_node if possible, don't add ranges if return
24912         type is not compatible with int.
24913         * gimple-fold.c (gimple_fold_builtin_sprintf,
24914         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
24915         integer_type_node.
24917 2019-04-09  Martin Liska  <mliska@suse.cz>
24919         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
24920         * doc/install.texi: Document the new config.
24922 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
24924         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
24925         use gimple_expr_type for load and store calls.  Skip over the
24926         condition argument in a conditional internal function.
24927         Protect use of TREE_INT_CST_LOW.
24929 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
24931         PR target/90015
24932         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
24933         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
24934         trailing period from it too.
24936 2019-04-08  wu yuan  <wuyuan5@huawei.com>
24938         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
24939         * config/aarch64/aarch64.md: Add "tsv110.md".
24940         * config/aarch64/tsv110.md: New file.
24942 2019-04-08  Richard Biener  <rguenther@suse.de>
24944         PR tree-optimization/90006
24945         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
24946         calls like lrint.
24948 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
24950         PR target/83033
24951         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
24952         construction.
24953         (fma_root_node): Likewise.
24954         (func_fma_steering): Likewise.
24956 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
24958         PR rtl-optimization/89865
24959         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
24961         PR rtl-optimization/89865
24962         * config/i386/i386.md
24963         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
24964         numbers not to clash with the additional operands[4].
24965         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
24966         with extra register copy in the middle.
24968 2019-04-08  Martin Liska  <mliska@suse.cz>
24970         PR gcov-profile/89961
24971         * doc/gcov.texi: Document data_file.
24972         * gcov.c (generate_results): Add data_info into JSON output.
24974 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
24976         PR tree-optimization/89725
24977         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
24978         loop's chrec as invariant symbol.
24979         * tree-chrec.h (chrec_contains_symbols): New parameter.
24980         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
24981         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
24982         function of loops not in DDR's loop_nest.
24983         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
24985 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
24987         PR target/89623
24988         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
24989         Mask.
24991 2019-04-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24993         PR target/89945
24994         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
24995         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
24997 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
24999         * sched-deps.c (sched_macro_fuse_insns): Check return value of
25000         targetm.fixed_condition_code_regs.
25002 2019-04-05  Richard Biener  <rguenther@suse.de>
25004         PR debug/89892
25005         PR debug/89905
25006         * tree-cfgcleanup.c (remove_forwarder_block): Always move
25007         debug bind stmts but reset them if they are not valid at the
25008         destination.
25010 2019-04-05  Martin Liska  <mliska@suse.cz>
25012         PR translation/89936
25013         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
25014         order to wrap keywords or arguments.
25015         * collect2.c (main): Likewise.
25016         (scan_prog_file): Likewise.
25017         (scan_libraries): Likewise.
25018         * common/config/riscv/riscv-common.c
25019         (riscv_subset_list::parsing_subset_version): Likewise.
25020         (riscv_subset_list::parse_std_ext): Likewise.
25021         * config/aarch64/aarch64.c (aarch64_override_options_internal):
25022         Likewise.
25023         * config/arm/arm.c (arm_option_override): Likewise.
25024         * config/cris/cris.c (cris_print_operand): Likewise.
25025         * config/darwin-c.c (darwin_pragma_options): Likewise.
25026         (darwin_pragma_unused): Likewise.
25027         (darwin_pragma_ms_struct): Likewise.
25028         * config/ft32/ft32.c (ft32_print_operand): Likewise.
25029         * config/i386/i386.c (print_reg): Likewise.
25030         (ix86_print_operand): Likewise.
25031         * config/i386/xm-djgpp.h: Likewise.
25032         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
25033         * config/m32c/m32c.c (m32c_option_override): Likewise.
25034         * config/msp430/msp430.c (msp430_option_override): Likewise.
25035         * config/nds32/nds32.c (nds32_option_override): Likewise.
25036         * config/nvptx/mkoffload.c (main): Likewise.
25037         * config/rx/rx.c (rx_print_operand): Likewise.
25038         (valid_psw_flag): Likewise.
25039         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
25040         (vms_pragma_nomember_alignment): Likewise.
25041         (vms_pragma_extern_model): Likewise.
25042         * lto-wrapper.c (compile_offload_image): Likewise.
25043         * omp-offload.c (oacc_parse_default_dims): Likewise.
25044         * symtab.c (symtab_node::verify_base): Likewise.
25045         * tlink.c (recompile_files): Likewise.
25046         (start_tweaking): Likewise.
25047         * tree-profile.c (parse_profile_filter): Likewise.
25049 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
25051         PR tree-optimization/89956
25052         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
25053         multiple negates of the same value.
25055 2019-04-04  Martin Sebor  <msebor@redhat.com>
25057         PR middle-end/89957
25058         PR middle-end/89911
25059         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
25060         have the same precision since the function crashes otherwise.
25061         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
25062         has non-zero arguments.
25064 2019-04-04  Martin Sebor  <msebor@redhat.com>
25066         PR middle-end/89934
25067         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
25068         out if the number of arguments is less than expected.
25070 2019-04-04  Jeff Law  <law@redhat.com>
25072         PR rtl-optimization/89399
25073         * ree.c (combine_set_extension): Use single_set rather than
25074         digging into PATTERN for items on the candidate list.
25075         (combine_reaching_defs): Likewise.
25077 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
25079         PR rtl-optimization/46590
25080         * loop-invariant.c (find_defs): Move df_remove_problem and
25081         df_process_deferred_rescans to move_invariants.
25082         Move df_live_add_problem and df_live_set_all_dirty calls
25083         to move_invariants.
25084         (move_invariants): Likewise.
25085         (move_loop_invariants): Likewise, making the df_live calls
25086         conditional on -O.  Remove the problem again if we added it
25087         locally.
25089 2019-04-03  qing zhao  <qing.zhao@oracle.com>
25091         PR tree-optimization/89730
25092         * ipa-inline.c (can_inline_edge_p): Delete the checking for
25093         -flive-patching=inline-only-static.
25094         (can_inline_edge_by_limits_p): Add the checking for
25095         -flive-patching=inline-only-static and grant always_inline
25096         even when -flive-patching=inline-only-static is specified.
25098 2019-04-03  Jeff Law  <law@redhat.com>
25100         PR rtl-optimization/81025
25101         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
25103 2019-04-03  Richard Biener  <rguenther@suse.de>
25105         PR tree-optimization/84101
25106         * tree-vect-stmts.c: Include explow.h for hard_function_value,
25107         regs.h for hard_regno_nregs.
25108         (cfun_returns): New helper.
25109         (vect_model_store_cost): When vectorizing a store to a decl
25110         we return and the function ABI returns in a multi-reg location
25111         account for the possible spilling that will happen.
25113 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
25115         * config/s390/s390.c (s390_legitimate_address_p): Reject long
25116         displacement addresses for vector mode operands.
25118 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
25120         * config/arc/arc.c (GMASK_LEN): Define.
25121         (arc_restore_callee_saves): Restore first blink when
25122         !optimize_size.
25124 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
25126         * doc/extend.texi: Add deprecated comment on sign-return-address
25127         function attribute and add mbranch-protection.
25128         * doc/invoke.texi: Add bti to the options for mbranch-protection.
25130 2019-04-03  Richard Biener  <rguenther@suse.de>
25132         PR lto/89896
25133         * lto-wrapper.c (run_gcc): Avoid implicit rules making
25134         the all target phony.
25136 2019-04-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25138         PR target/89902
25139         PR target/89903
25140         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
25141         Return false for variable DImode shifts.
25142         (dimode_scalar_chain::compute_convert_gain): Do not handle
25143         register count operand in variable DImode shifts.
25144         (dimode_scalar_chain::make_vector_copies): Remove support to copy
25145         count argument of a variable shift instruction to a vector register.
25146         (dimode_scalar_chain::convert_reg): Remove support to convert
25147         count argument of a variable shift instruction.
25149 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
25151         PR rtl-optimization/84206
25152         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
25153         iterating over loop headers.
25155 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
25157         PR rtl-optimization/85876
25158         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
25159         beyond the original fence.
25161 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
25163         * config.gcc: Mark spu* targets as deprecated/obsolete.
25165 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
25167         * config/s390/s390-builtin-types.def: New builtin function type
25168         definitions. Remove unused types.
25169         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
25170         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
25171         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
25172         overloaded builtins.
25173         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
25174         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
25175         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
25176         (vec_double, vec_signed, vec_unsigned): Define to use the new
25177         overloaded builtins.
25178         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
25179         Remove expanders.
25181 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
25183         * config/s390/s390-builtin-types.def: New builtin function type
25184         definitions.
25185         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
25186         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
25187         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
25188         (s390_vstrszh, s390_vstrszf): New low-level builtins.
25189         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
25190         constant definitions.
25191         * config/s390/vecintrin.h (vec_search_string_cc)
25192         (vec_search_string_until_zero_cc): New builtin name definitions.
25193         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
25194         expanders.
25195         ("vec_vstrs<mode>"): New insn definition.
25197 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
25199         * config/s390/s390-builtin-types.def: Add new builtin function
25200         types.
25201         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
25202         New overloaded builtins.
25203         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
25204         s390_vsrd.
25205         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
25206         (UNSPEC_VEC_SLDBYTE): ... this.
25207         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
25208         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
25209         definitions.
25210         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
25211         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
25212         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
25214 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
25216         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
25217         New insn definition.
25218         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
25219         * config/s390/vector.md (V_HW_HSD): ... here.
25221 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
25223         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
25224         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
25225         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
25226         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
25227         New insn definitions.
25229 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
25231         * config/s390/s390-builtin-types.def: Add new builtin function type.
25232         * config/s390/s390-builtins.def: Add overloaded builtin
25233         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
25234         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
25235         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
25236         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
25237         ("eltswap<mode>"): New expander.
25238         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
25239         insn definitions.
25241 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
25243         * config/s390/s390-builtin-types.def: Add new builtin function types.
25244         * config/s390/s390-builtins.def: Add overloaded builtin
25245         s390_vec_revb. Add low-level builtins for vlbr and vstbr
25246         instructions.
25247         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
25248         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
25249         ("bswap<mode>"): New expander.
25250         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
25252 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
25254         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
25255         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
25256         vector builtin version number in __VEC__.
25258 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
25260         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
25261         iterators.
25262         (SFSI): New mode attribute.
25263         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
25264         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
25265         rename to ...
25266         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
25267         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
25268         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
25269         ("floatsi<mode>2"): Add wcefb instruction.
25271 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
25273         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
25274         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
25275         mode iterators.
25276         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
25277         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
25278         support 32 bit fp-int conversions. Rename to ...
25279         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
25280         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
25281         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
25282         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
25283         ... to these.
25285 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
25287         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
25288         if-then-else constructs if we can use the select instruction.
25289         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
25291 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
25293         * config/s390/s390.md ("*popcountdi_arch13_cc")
25294         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
25295         definition.
25296         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
25297         Append _z196 to make it ...
25298         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
25299         ("popcounthi2_z196"): ... this.
25300         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
25301         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
25303 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
25305         * config/s390/s390.c (s390_canonicalize_comparison): Convert
25306         certain compares for arch13 in order to make use of the condition
25307         code result produced by the new instructions.
25308         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
25309         nxrk, and nxgrk instruction patterns.
25310         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
25311         (inv_no): Add new code iterator together with some attributes.
25312         ("*andc_split_<mode>"): Disable splitter for arch13.
25313         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
25314         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
25315         ("*<ANDOR:bitops_name>c<GPR:mode>")
25316         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
25317         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
25318         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
25319         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
25321 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
25323         * common/config/s390/s390-common.c (processor_flags_table): New
25324         entry for arch13.
25325         * config.gcc: Support arch13 with the --with-arch= configure flag.
25326         * config/s390/driver-native.c (s390_host_detect_local_cpu):
25327         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
25328         * config/s390/s390.c (s390_get_sched_attrmask)
25329         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
25330         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
25331         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
25332         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
25333         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
25334         definitions.
25335         * config/s390/s390.opt: Support arch13 as processor type in
25336         command line options.
25338 2019-04-02  Martin Liska  <mliska@suse.cz>
25340         PR translation/89912
25341         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
25342         Fix param description of graphite-max-arrays-per-scop.
25344 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
25346         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
25347         (ASAN_CC1_SPEC): Use it in 64-bit mode.
25348         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
25350 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
25352         PR rtl-optimization/85412
25353         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
25354         sel_sched_region_1, not after.
25356 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
25358         PR rtl-optimization/86928
25359         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
25360         compute_live if necessary.
25361         (sel_redirect_edge_and_branch): Likewise.
25363 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
25365         PR rtl-optimization/89865
25366         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
25367         register if it is a part of small class.
25369 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
25371         PR rtl-optimization/87273
25372         * sel-sched-ir.c (merge_fences): Remove assert.
25374 2019-04-01  Richard Biener  <rguenther@suse.de>
25376         PR tree-optimization/46590
25377         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
25378         (dom_walker::m_reachability): Add in place of...
25379         (dom_walker::m_skip_unreachable_blocks): ...this.
25380         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
25381         Move complex initialization ...
25382         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
25383         lazily and initialize edge flags on each invocation.
25384         (dom_walker::bb_reachable): Use m_reachability.
25386 2019-04-01  Martin Liska  <mliska@suse.cz>
25388         PR driver/89861
25389         * opt-suggestions.c (option_proposer::build_option_suggestions):
25390         Add variant without any argument in order to provide better
25391         hints.
25393 2019-04-01  Richard Biener  <rguenther@suse.de>
25395         PR c/71598
25396         * gimple.c: Include langhooks.h.
25397         (gimple_get_alias_set): Treat enumeral types as the underlying
25398         integer type.
25400 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
25401             Eric Botcazou  <ebotcazou@adacore.com>
25403         PR rtl-optimization/89862
25404         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
25405         that operates on the full registers for WORD_REGISTER_OPERATIONS
25406         architectures.
25408 2019-03-29  Jim Wilson  <jimw@sifive.com>
25410         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
25411         Clear MASK_RVC and then set if C subset supported.
25413 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
25415         PR c/89872
25416         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
25417         non-addressable complit into its initializer if it is volatile.
25419 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
25421         * opts-common.c (integral_argument): Set errno properly in one case.
25423 2019-03-29  Martin Liska  <mliska@suse.cz>
25425         * doc/invoke.texi: Remove -Wchkp from documentation.
25427 2019-03-29  Martin Liska  <mliska@suse.cz>
25429         * dbgcnt.c (print_limit_reach): New function.
25430         (dbg_cnt): Use it.
25432 2019-03-29  Martin Liska  <mliska@suse.cz>
25434         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
25435         (dbg_cnt_process_opt): Parse first tokens aas
25436         dbg_cnt_process_single_pair is also using strtok.
25438 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
25440         PR rtl-optimization/87485
25441         * function.c (expand_function_end): Move stack_protect_epilogue
25442         before loading of return value into hard register(s).
25444 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
25446         PR middle-end/89621
25447         * tree-inline.h (struct copy_body_data): Add
25448         dont_remap_vla_if_no_change flag.
25449         * tree-inline.c (remap_type_3, remap_type_2): New functions.
25450         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
25451         and remap_type_2 returns false.
25452         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
25453         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
25454         only from where it is copied to nested contexts.
25456 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25458         PR target/89865
25459         * config/i386/i386.md (RMW operation with LEA peephole):
25460         Use LEAMODE mode attribute instead of SWI mode iterator for
25461         LEA pattern.
25463 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25465         PR target/89848
25466         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
25467         Also process XEXP (src, 0) of a shift insn.
25469 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
25471         PR middle-end/89725
25472         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
25473         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
25475 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
25477         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
25478         test.
25479         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
25480         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
25481         immediately after first one with df_analyze in between, but rather
25482         process all bbs, queueing ones that need second pass in a worklist,
25483         df_analyze, process queued debug insn changes and if second pass is
25484         needed, process bbs from worklist, df_analyze, process queued debug
25485         insns again.
25487         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
25488         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
25489         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
25491 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
25493         PR c/79022
25494         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
25495         definition.
25497 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
25499         PR target/85667
25500         * config/i386/i386.c (ix86_function_value_1): Call the newly added
25501         function for 32-bit MS_ABI.
25502         (function_value_ms_32): New function.
25504 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
25506         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
25507         (movdi): Call gen_movdi_symbol_save_scc.
25508         (gen_movdi_symbol_save_scc): New insn and split.
25510 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
25512         PR rtl-optimization/89313
25513         * function.c (matching_constraint_num): New static function.
25514         (match_asm_constraints_1): Use it.  Fixup white space and comment.
25515         Don't replace inputs with non-matching constraints which conflict
25516         with early clobber outputs.
25518 2019-03-27  Jeff Law  <law@redhat.com>
25520         PR rtl-optimization/87761
25521         PR rtl-optimization/89826
25522         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
25523         slightly later.
25524         (pass_cprop_hardreg::execute): Call df_analyze after adding the
25525         note problem to get REG_DEAD/REG_UNUSED notes updated.
25527 2019-03-27  Richard Biener  <rguenther@suse.de>
25529         PR tree-optimization/89463
25530         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
25531         queue edges to remove.
25532         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
25533         dead stmts.  Delay edge removal until PHIs are removed to
25534         make debug-stmt creation not confused by seemingly degenerate
25535         PHIs.
25537 2019-03-27  Alan Modra  <amodra@gmail.com>
25539         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
25540         throughout file.
25541         * config/rs6000/darwin.h: Likewise.
25542         * config/rs6000/rs6000.c: Likewise.
25544 2019-03-27  Alan Modra  <amodra@gmail.com>
25546         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
25547         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
25549 2019-03-26  Andrew Waterman  <andrew@sifive.com>
25550             Jim Wilson  <jimw@sifive.com>
25552         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
25553         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
25554         (generic_idivdi, generic_fmul_single, generic_fmul_double)
25555         (generic_fdiv, generic_fsqrt): Add check for generic tune.
25556         (generic_alu): Add auipc to type list.
25557         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
25558         (riscv_microarchitecture): Declare.
25559         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
25560         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
25561         field.
25562         (riscv_microarchitecture): New.
25563         (sifive_7_tune_info): New.
25564         (riscv_cpu_info_table): Add microarchitecture value for rocket and
25565         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
25566         entries.
25567         (riscv_store_data_bypass_p): New.
25568         (riscv_option_override): Set riscv_microarchitecture from
25569         cpu->microarchitecture.
25570         * config/riscv/riscv.md: Include sifive-7.md.
25571         (type): Add auipc.
25572         (tune): New.
25573         (auipc<mode>): Change type to auipc.
25574         (restore_stack_nonlocal): New.
25575         * config/riscv/sifive-7.md: New.
25576         * doc/invoke.texi (RISC-V Options): Update mtune docs.
25578 2019-03-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25580         PR target/89827
25581         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
25582         Also process XEXP (src, 0) of a shift insn.
25584 2019-03-26  Richard Biener  <rguenther@suse.de>
25586         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
25587         (copy_debug_stmt): Likewise.
25588         (expand_call_inline): Likewise.
25589         (copy_bb): Avoid redundant lookup & set of gimple_block.
25590         * gimple-low.c (lower_gimple_return): Likewise.
25591         (lower_builtin_setjmp): Likewise.
25593 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
25595         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
25596         is constant 0, turn into static const data member initialized to false.
25597         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
25598         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
25600 2019-03-26  Jason Merrill  <jason@redhat.com>
25601             Jakub Jelinek  <jakub@redhat.com>
25603         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
25604         method.
25605         (mem_alloc_description::release_object_overhead): Fix comment typos.
25606         * hash-table.h (hash_table::~hash_table): Call
25607         release_instance_overhead only if m_entries is non-NULL, otherwise
25608         call unregister_descriptor.
25610 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
25612         PR tree-optimization/81740
25613         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
25614         In case of outer loop vectorization, check for backward dependence
25615         at the inner loop if outer loop dependence is reversed.
25617 2019-03-26  Alan Modra  <amodra@gmail.com>
25619         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
25620         rs6000_vector_mem init.  Correct wI and wJ comment.
25622 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
25624         PR rtl-optimization/88347
25625         PR rtl-optimization/88423
25626         * sched-deps.c (sched_analyze_insn): Take into account that for
25627         tablejumps the barrier appears after a label and a jump_table_data.
25629 2019-03-25  Martin Sebor  <msebor@redhat.com>
25631         PR c/89812
25632         * c-common.c (check_user_alignment): Rename local.  Correct maximum
25633         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
25634         convert it to UHWI when it fits.
25636 2019-03-25  Johan Karlsson  <johan.karlsson@enea.com>
25638         PR debug/86964
25639         * dwarf2out.c (premark_used_variables): New function.
25640         (prune_unused_types_walk): Do not mark not premarked external
25641         variables.
25642         (prune_unused_types): Call premark_used_variables.
25644 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
25646         PR rtl-optimization/89676
25647         * lra-constraints.c (curr_insn_transform): Do match reload for
25648         early clobbers when the match was successful only for different
25649         registers.
25651 2019-03-25  Martin Sebor  <msebor@redhat.com>
25653         * doc/extend.texi (Common Type Attributes): Document vector_size.
25654         (Common Variable Attributes): Mention size constraint.  Correct
25655         quoting and typos.
25656         (Vector Extensions): Use @dfn when defining bas type.  Clarify
25657         base type and size constraints.
25659 2019-03-25  Richard Biener  <rguenther@suse.de>
25661         PR tree-optimization/89789
25662         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
25663         changes from non-undefined back to undefined.
25665 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
25667         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
25668         heap string and a gc string, but since this variable is unknown to
25669         ggc the gc string might get reused and corrupted. Fixed by always
25670         using a heap string.
25672 2019-03-25  Richard Biener  <rguenther@suse.de>
25674         PR tree-optimization/89779
25675         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
25676         to remove IV defs, delay actual removal.
25677         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
25678         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
25679         very end, properly also reset loop control IV information.
25681 2019-03-25  Richard Biener  <rguenther@suse.de>
25683         PR tree-optimization/89802
25684         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
25685         move EH data to folded stmt.
25687 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
25689         * config/s390/s390-builtin-types.def: Remove few unused types and
25690         fix sort order for others.
25692 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
25694         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
25695         expected and found types with -mdebug during builtin matching.
25697 2019-03-25  Richard Biener  <rguenther@suse.de>
25699         PR middle-end/89790
25700         * fold-const.c (operand_equal_p): Revert last change with
25701         updated comment.
25703 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
25705         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
25706         notes for the result of the __tls_get_addr calls.
25707         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
25709 2019-03-24  Jeff Law  <law@redhat.com>
25711         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
25713         PR rtl-optimization/87761
25714         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
25715         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
25716         as needed.
25717         (pass_cprop_hardreg::execute): Add df note problem and defer insn
25718         rescans.  Reprocess blocks as needed, calling df_analyze before
25719         reprocessing.  Always call df_analyze before fixing up debug bind
25720         insns.
25722 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
25724         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
25725         big endian.
25727 2019-03-22  Andrew Pinski  <apinski@marvell.com>
25729         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
25730         attrribute for uxtw.
25732 2019-03-26  Jeff Law  <law@redhat.com>
25734         PR rtl-optimization/87761
25735         * config/mips/mips-protos.h (mips_split_move): Add new argument.
25736         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
25737         (mips_split_move): Accept new INSN argument.  Try to forward SRC
25738         into the next instruction.
25739         (mips_split_move_insn): Pass INSN through to mips_split_move.
25741 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
25743         PR rtl-optimization/89676
25744         * lra-constraints.c (curr_insn_transform): Do match reload for
25745         early clobbers even if the match was successful.
25747 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
25749         PR c++/87481
25750         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
25752 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
25754         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
25756 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
25758         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
25759         <avx512>_fmsub_<mode>_mask3<round_name>,
25760         <avx512>_fnmadd_<mode>_mask3<round_name>,
25761         <avx512>_fnmsub_<mode>_mask3<round_name>,
25762         avx512f_vmfmadd_<mode>_mask3<round_name>,
25763         avx512f_vmfmsub_<mode>_mask3<round_name>,
25764         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
25765         instead of register_operand and %v instead of v for match_operand 1.
25766         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
25767         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
25768         <round_nimm_predicate> instead of register_operand and %v instead of v
25769         for match_operand 1.
25771         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
25772         <avx512>_fmadd_<mode>_mask3<round_name>,
25773         <avx512>_fmsub_<mode>_mask<round_name>,
25774         <avx512>_fmsub_<mode>_mask3<round_name>,
25775         <avx512>_fnmadd_<mode>_mask<round_name>,
25776         <avx512>_fnmadd_<mode>_mask3<round_name>,
25777         <avx512>_fnmsub_<mode>_mask<round_name>,
25778         <avx512>_fnmsub_<mode>_mask3<round_name>,
25779         <avx512>_fmaddsub_<mode>_mask<round_name>,
25780         <avx512>_fmaddsub_<mode>_mask3<round_name>,
25781         <avx512>_fmsubadd_<mode>_mask<round_name>,
25782         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
25783         <round_nimm_predicate> instead of nonimmediate_operand.
25784         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
25785         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
25786         Use register_operand instead of <round_nimm_predicate> for the
25787         operand that needs to match output.
25788         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
25789         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
25790         Likewise.  Formatting fixes.
25792         PR target/89784
25793         * config/i386/i386.c (enum ix86_builtins): Remove
25794         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
25795         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
25796         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
25797         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
25798         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
25799         __builtin_ia32_vfmsubss3_mask3): New builtins.
25800         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
25801         avx512f_vmfmadd_<mode>_mask3<round_name>,
25802         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
25803         *avx512f_vmfmsub_<mode>_mask<round_name>,
25804         avx512f_vmfmsub_<mode>_mask3<round_name>,
25805         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
25806         *avx512f_vmfnmadd_<mode>_mask<round_name>,
25807         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
25808         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
25809         *avx512f_vmfnmsub_<mode>_mask<round_name>,
25810         avx512f_vmfnmsub_<mode>_mask3<round_name>,
25811         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
25812         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
25813         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
25814         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
25815         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
25816         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
25817         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
25818         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
25819         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
25820         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
25821         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
25822         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
25823         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
25824         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
25825         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
25826         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
25827         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
25828         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
25829         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
25830         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
25831         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
25832         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
25834 2019-03-21  Martin Sebor  <msebor@redhat.com>
25836         PR tree-optimization/89350
25837         * builtins.c (compute_objsize): Also ignore offsets whose upper
25838         bound is negative.
25839         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
25840         (builtin_memref::builtin_memref): Initialize new member.
25841         Allow EXPR to be null.
25842         (builtin_memref::extend_offset_range): Replace local with a member.
25843         Avoid assuming pointer offsets are unsigned.
25844         (builtin_memref::set_base_and_offset): Determine base object
25845         before computing offset range.
25846         (builtin_access::builtin_access): Handle memset.
25847         (builtin_access::generic_overlap): Replace local with a member.
25848         (builtin_access::strcat_overlap): Same.
25849         (builtin_access::overlap): Same.
25850         (maybe_diag_overlap): Same.
25851         (maybe_diag_access_bounds): Same.
25852         (wrestrict_dom_walker::check_call): Handle memset.
25853         (check_bounds_or_overlap): Same.
25855 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
25856             Jakub Jelinek  <jakub@redhat.com>
25858         PR lto/89692
25859         * tree.c (fld_type_variant, fld_incomplete_type_of,
25860         fld_process_array_type): Call fld->pset.add and don't call
25861         add_tree_to_fld_list if it returns true.
25862         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
25863         non-marked types from TYPE_NEXT_VARIANT list.
25864         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
25866 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
25868         * hash-table.h (hash_table): Add Lazy template parameter defaulted
25869         to false, if true, don't alloc_entries during construction, but defer
25870         it to the first method that needs m_entries allocated.
25871         (hash_table::hash_table, hash_table::~hash_table,
25872         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
25873         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
25874         hash_table::clear_slot, hash_table::traverse_noresize,
25875         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
25876         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
25877         false.
25878         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
25879         NO_INSERT instead of find_with_hash.
25880         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
25881         hash_set::m_table): Add Lazy to template params of hash_table.
25882         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
25883         * attribs.c (test_attribute_exclusions): Likewise.
25884         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
25885         hash_set.  Add tests for hash_set with Lazy = true.
25887 2019-03-21  Richard Biener  <rguenther@suse.de>
25889         PR tree-optimization/89779
25890         * tree.c (tree_nop_conversion): Consolidate and fix defensive
25891         checks with respect to released SSA names now having error_mark_node
25892         type.
25893         * fold-const.c (operand_equal_p): Likewise.
25895 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
25897         PR target/89775
25898         * config/s390/s390.c (global_not_special_regno_p): Move to make it
25899         available to ...
25900         (s390_optimize_register_info): Use global_not_special_regno_p to
25901         check for global regs.
25903 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
25905         PR target/89752
25906         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
25907         update this_alternative nor this_alternative_set.
25909 2019-03-19  Jim Wilson  <jimw@sifive.com>
25911         PR target/89411
25912         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
25913         align, size, offset.  Use them to handle a BLKmode reference.  Update
25914         comment.
25915         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
25917 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
25919         PR rtl-optimization/89768
25920         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
25921         instead of GEN_INT.
25922         (unroll_loop_runtime_iterations): Likewise.
25924 2019-03-19  Martin Sebor  <msebor@redhat.com>
25926         PR tree-optimization/89644
25927         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
25928         rather than endptr as an indicator of nul-termination.
25930         PR tree-optimization/89644
25931         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
25932         arrays in determining sequence sizes in strncpy and stpncpy.
25934 2019-03-19  Martin Liska  <mliska@suse.cz>
25936         PR middle-end/89737
25937         * predict.c (combine_predictions_for_bb): Empty likely_edges and
25938         unlikely_edges if there's an edge that belongs to both these sets.
25940 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
25942         PR target/89746
25943         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
25944         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
25945         go via a stack temporary.
25947 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
25949         PR target/89378
25950         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
25951         instead of gen_rtx_SUBREG.
25952         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
25954 2019-03-19  Richard Biener  <rguenther@suse.de>
25956         PR debug/88389
25957         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
25959 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
25961         PR lto/87809
25962         PR lto/89335
25963         * tree.c (free_lang_data_in_decl): Do not free context of C++
25964         destrutors.
25966 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
25968         PR target/89506
25969         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
25970         subs for the first alternative except when operands[3] is 1.
25972         PR target/89752
25973         * gimplify.c (gimplify_asm_expr): For output argument with
25974         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
25975         diagnose error.
25977 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
25979         PR rtl-optimization/89753
25980         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
25981         explicit unrolling factor even more robust.
25983 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
25985         PR target/89726
25986         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
25987         compensation use x2 += 1 instead of x2 -= -1 and when honoring
25988         signed zeros, do another copysign after the compensation.
25990 2019-03-18  Martin Sebor  <msebor@redhat.com>
25992         PR tree-optimization/89720
25993         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
25994         more conservatively, the same as anti-range.
25996 2019-03-18  Richard Biener  <rguenther@suse.de>
25998         PR middle-end/88945
25999         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
26000         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
26001         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
26002         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
26004 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
26006         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
26007         Extend queue to 1024 entries.
26008         Add "consumed" field.
26009         (gomp_print_output): Remove print_index parameter.
26010         Add final parameter.
26011         Change limit to unsigned.
26012         Use consumed field to implement circular buffer.
26013         Detect interrupted print in final pass.
26014         Flush output at the end.
26015         (run): Update gomp_print_output usage.
26016         (main): Initialize kernargs->output_data.consumed.
26018 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
26020         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
26021         calculation of the minimum number of scalar iterations for
26022         fully-predicated loops.
26024 2019-03-18  Martin Jambor  <mjambor@suse.cz>
26026         PR tree-optimization/89546
26027         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
26028         any propagation to its children took place.
26030 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
26032         PR target/89627
26033         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
26034         parameter, and make use of it.
26035         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
26037 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
26039         * config/arc/arc.opt (mcode-density-frame): Get the inital value
26040         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
26041         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
26042         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
26043         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
26044         match what the ops is doing.
26045         (push_multi_fp_blink): Likewise.
26046         * config/arc/arc.c (arc_override_options): Enable enter/leave when
26047         compiling for size and elf target.
26048         (arc_save_callee_enter): Adjust note to match what enter/leave
26049         operation does.
26051 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
26053         * config/arc/arc.md (tst_movb): Fix constraint.
26055 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
26057         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
26059 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
26061         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
26062         * config/arc/arc.c (arc_conditional_register_usage): Remove all
26063         reg_alloc_order references.
26064         (size_alloc_order): Define.
26065         (arc_adjust_reg_alloc_order): New function.
26066         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
26067         order.
26068         (ADJUST_REG_ALLOC_ORDER): Define.
26069         (HONOR_REG_ALLOC_ORDER): Likewise.
26071 2019-03-18  Richard Biener  <rguenther@suse.de>
26073         PR target/87561
26074         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
26075         loads and stores a bit more.
26077 2019-03-18  Richard Biener  <rguenther@suse.de>
26079         PR target/87561
26080         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
26081         load pessimization to stores as well.
26083 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
26085         PR middle-end/86979
26086         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
26087         successor, use NULL as its av set.
26089 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
26091         PR rtl-optimization/89721
26092         * lra-constraints (invariant_p): Return false if side_effects_p holds.
26094 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
26096         PR target/87532
26097         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26098         When handling vec_extract, use modular arithmetic to allow
26099         constant selectors greater than vector length.
26100         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
26101         V1TImode vectors to have constant selector values greater than 0.
26102         Use modular arithmetic to compute vector index.
26103         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
26104         index for in-memory vectors.  Correct code generation for
26105         in-register vectors.
26106         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
26107         compute index.
26109 2019-03-15  Alexandre Oliva  <aoliva@redhat.com>
26111         PR c++/88534
26112         PR c++/88537
26113         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
26114         VAR_DECL args.
26116 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
26118         PR c++/89709
26119         * tree.c (inchash::add_expr): Strip any location wrappers.
26120         * fold-const.c (operand_equal_p): Move stripping of location wrapper
26121         after hash verification.
26123         PR debug/89704
26124         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
26125         SIGN_EXTEND and ZERO_EXTEND.
26127 2019-03-14  Jason Merrill  <jason@redhat.com>
26128             Jakub Jelinek  <jakub@redhat.com>
26130         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
26131         than if is_empty (*slot).
26132         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
26133         existing elt and for elt removal.
26134         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
26135         of already removed elt.
26137 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
26139         PR target/89650
26140         * config/i386/i386.c (remove_partial_avx_dependency): Handle
26141         REG_EH_REGION note.
26143 2019-03-14  Martin Liska  <mliska@suse.cz>
26145         PR other/89712
26146         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
26148 2019-03-14  Richard Biener  <rguenther@suse.de>
26150         PR target/89711
26151         * config/i386/i386.c (make_resolver_func): Properly set
26152         DECL_CONTEXT on the RESULT_DECL.
26153         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
26155 2019-03-14  Richard Biener  <rguenther@suse.de>
26157         * gimple-pretty-print.c: Include cfgloop.h.
26158         (dump_gimple_phi): Adjust.
26159         (dump_gimple_bb_header): Dump loop header for GIMPLE.
26160         (pp_cfg_jump): Adjust.
26161         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
26162         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
26163         (lower_phi_internal_fn): Remove.
26164         (verify_gimple_call): Remove IFN_PHI special-casing.
26165         (dump_function_to_file): Dump IL state.
26166         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
26167         done to deal with PHI nodes being present in non-SSA state.
26169 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
26171         PR ipa/89684
26172         * multiple_target.c (create_dispatcher_calls): Change
26173         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
26174         In the node->iterate_referring loop, push *ref rather than ref, call
26175         ref->remove_reference () and always pass 0 to iterate_referring.
26177         PR rtl-optimization/89679
26178         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
26179         would contain a paradoxical SUBREG.
26181 2019-03-14  Richard Biener  <rguenther@suse.de>
26183         PR tree-optimization/89710
26184         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
26185         safe_dyn_cast.
26187 2019-03-14  Martin Liska  <mliska@suse.cz>
26189         * coverage.c (coverage_begin_function): Stream also
26190         end_column.
26191         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
26192         documentation about function declaration location.
26193         * gcov-dump.c (tag_function): Print whole range
26194         of function declaration.
26195         * gcov.c (struct function_info): Add end_column field.
26196         (function_info::function_info): Initialize it.
26197         (output_json_intermediate_file): Output {start,end}_column
26198         fields.
26199         (read_graph_file): Read end_column.
26201 2019-03-14  Richard Biener  <rguenther@suse.de>
26203         PR middle-end/89698
26204         * fold-const.c (operand_equal_p): For INDIRECT_REF check
26205         that the access types are similar.
26207 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
26209         PR tree-optimization/89703
26210         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
26211         aren't compatible also with builtin_decl_explicit.  Check pure
26212         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
26213         and BUILT_IN_STPNCPY{,_CHK}.
26215 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
26217         PR target/89523
26218         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
26219         addr32 prefix to VSIB address for X32.
26220         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
26221         "%M2" to opcode.
26222         (*avx512pf_gatherpf<mode>df_mask): Likewise.
26223         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
26224         (*avx512pf_scatterpf<mode>df_mask): Likewise.
26225         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
26226         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
26227         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
26228         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
26229         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
26230         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
26231         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
26232         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
26233         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
26234         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
26235         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
26236         (*avx512f_scatterdi<mode>): Likewise.
26238 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
26240         PR target/85860
26241         * lra-constraints.c (inherit_in_ebb): Update
26242         potential_reload_hard_regs along with live_hard_regs.
26244 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
26246         PR debug/89498
26247         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
26248         DWARF_OFFSET_SIZE.
26249         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
26251 2019-03-13  Martin Sebor  <msebor@redhat.com>
26253         PR tree-optimization/89662
26254         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
26255         has a size.
26257 2019-03-13  Richard Biener  <rguenther@suse.de>
26259         PR middle-end/89677
26260         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
26261         throw FP expressions at tree-affine.
26263 2019-03-14  Richard Biener  <rguenther@suse.de>
26265         * tree-pretty-print.c (dump_generic_node): For -gimple properly
26266         dump negative integer constants using _Literal (type) -num.
26268 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
26270         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
26271         nonlocal_value member.
26273         PR middle-end/88588
26274         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
26275         (ipa_simd_modify_function_body): Handle PHIs.
26277 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
26279         * config/s390/s390.c (s390_option_override_internal): Use more
26280         aggressive inlining parameters.
26282 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
26284         * config/s390/3906.md: New file.
26285         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
26286         (LONGRUNNING_THRESHOLD): Remove.
26287         (MAX_SCHED_MIX_SCORE): Decrease.
26288         (MAX_SCHED_MIX_DISTANCE): Decrease.
26289         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
26290         (struct s390_sched_state): New struct to hold scheduling state.
26291         (S390_SCHED_STATE_NORMAL): Remove.
26292         (S390_SCHED_STATE_CRACKED): Remove.
26293         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
26294         (s390_get_sched_attrmask): Use new attribute.
26295         (s390_get_unit_mask): Use new units.
26296         (s390_is_fpd): New function.
26297         (s390_is_fxd): New function.
26298         (s390_is_longrunning): New function.
26299         (s390_sched_score): Use new functions.
26300         (s390_sched_reorder): Likewise.
26301         (s390_sched_variable_issue): Rework and use new functions.
26302         (s390_sched_init): Use new functions.
26303         * config/s390/s390.h (s390_tune_attr): Add z14.
26304         * config/s390/s390.md: Add z14.
26306 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
26308         * config/s390/2964.md: Update pipeline description.
26309         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
26310         (LONGRUNNING_THRESHOLD): Remove.
26311         (LATENCY_FACTOR): Remove.
26312         (s390_get_unit_mask): Add unit.
26313         (s390_sched_score): Use fxd/fpd.
26314         (s390_sched_variable_issue): Use fxd/fpd.
26316 2019-03-12  Martin Liska  <mliska@suse.cz>
26318         * config/i386/i386.c: Reword an error message.
26320 2019-03-12  Martin Jambor  <mjambor@suse.cz>
26322         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
26323         terminate with newline.
26325 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
26327         PR target/52726
26328         * config/s390/s390.md (tabort): Use %wd instead of
26329         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
26330         letters and periods.
26331         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
26332         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
26333         's with %< and %>.
26335         PR middle-end/89663
26336         * builtins.c (expand_builtin_int_roundingfn,
26337         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
26338         gcc_unreachable if validate_arglist fails.
26340 2019-03-12  Richard Biener  <rguenther@suse.de>
26342         PR tree-optimization/89664
26343         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
26344         free the occurance tree after the early out.
26346 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
26348         PR middle-end/89655
26349         PR bootstrap/89656
26350         * vr-values.c (vr_values::update_value_range): If
26351         old_vr->varying_p (), don't update it, make new_vr also VARYING
26352         and return false.
26354 2019-03-11  Martin Liska  <mliska@suse.cz>
26356         * config/aarch64/aarch64.c (aarch64_override_options_internal):
26357         Fix double string quoting.
26359 2019-03-11  Martin Liska  <mliska@suse.cz>
26361         * collect-utils.c (collect_wait): Wrap apostrophes
26362         in gcc internal format with %'.
26363         * collect2.c (main): Likewise.
26364         (scan_prog_file): Likewise.
26365         (scan_libraries): Likewise.
26366         * config/i386/i386.c (ix86_expand_call): Likewise.
26367         (ix86_handle_interrupt_attribute): Likewise.
26368         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
26369         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26370         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
26371         * lto-wrapper.c (find_crtoffloadtable): Likewise.
26372         * symtab.c (symtab_node::verify_base): Likewise.
26373         * tree-cfg.c (verify_gimple_label): Likewise.
26374         * tree.c (verify_type_variant): Likewise.
26376 2019-03-11  Martin Liska  <mliska@suse.cz>
26378         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
26379         in a string format message and fix GNU coding style.
26380         (expand_builtin_set_thread_pointer): Likewise.
26381         * common/config/aarch64/aarch64-common.c
26382         (aarch64_rewrite_selected_cpu): Likewise.
26383         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
26384         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
26385         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
26386         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
26387         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
26388         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
26389         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
26390         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
26391         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
26392         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
26393         Likewise.
26394         * common/config/riscv/riscv-common.c
26395         (riscv_subset_list::parsing_subset_version): Likewise.
26396         (riscv_subset_list::parse_std_ext): Likewise.
26397         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
26398         (riscv_subset_list::parse): Likewise.
26399         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
26400         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
26401         (aarch64_override_options_internal): Likewise.
26402         (aarch64_validate_mcpu): Likewise.
26403         (aarch64_validate_march): Likewise.
26404         (aarch64_validate_mtune): Likewise.
26405         (aarch64_override_options): Likewise.
26406         * config/alpha/alpha.c (alpha_option_override): Likewise.
26407         * config/arc/arc.c (arc_init): Likewise.
26408         (parse_mrgf_banked_regs_option): Likewise.
26409         (arc_override_options): Likewise.
26410         (arc_expand_builtin_aligned): Likewise.
26411         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
26412         (arm_expand_builtin): Likewise.
26413         * config/arm/arm.c (arm_option_check_internal): Likewise.
26414         (arm_configure_build_target): Likewise.
26415         (arm_option_override): Likewise.
26416         (arm_options_perform_arch_sanity_checks): Likewise.
26417         (arm_handle_cmse_nonsecure_entry): Likewise.
26418         (arm_handle_cmse_nonsecure_call): Likewise.
26419         (arm_tls_referenced_p): Likewise.
26420         (thumb1_expand_prologue): Likewise.
26421         * config/avr/avr.c (avr_option_override): Likewise.
26422         * config/bfin/bfin.c (bfin_option_override): Likewise.
26423         * config/c6x/c6x.c (c6x_option_override): Likewise.
26424         * config/cr16/cr16.c (cr16_override_options): Likewise.
26425         * config/cris/cris.c (cris_option_override): Likewise.
26426         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
26427         * config/darwin-c.c (macosx_version_as_macro): Likewise.
26428         * config/darwin.c (darwin_override_options): Likewise.
26429         * config/frv/frv.c (frv_expand_builtin): Likewise.
26430         * config/h8300/h8300.c (h8300_option_override): Likewise.
26431         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
26432         (ix86_option_override_internal): Likewise.
26433         (warn_once_call_ms2sysv_xlogues): Likewise.
26434         (ix86_expand_prologue): Likewise.
26435         (split_stack_prologue_scratch_regno): Likewise.
26436         (ix86_warn_parameter_passing_abi): Likewise.
26437         * config/ia64/ia64.c (fix_range): Likewise.
26438         * config/m68k/m68k.c (m68k_option_override): Likewise.
26439         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
26440         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
26441         (mips_set_compression_mode): Likewise.
26442         * config/mmix/mmix.c (mmix_option_override): Likewise.
26443         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
26444         * config/msp430/msp430.c (msp430_option_override): Likewise.
26445         * config/nds32/nds32.c (nds32_option_override): Likewise.
26446         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
26447         (nios2_option_override): Likewise.
26448         (nios2_expand_custom_builtin): Likewise.
26449         * config/nvptx/mkoffload.c (main): Likewise.
26450         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
26451         * config/pa/pa.c (fix_range): Likewise.
26452         (pa_option_override): Likewise.
26453         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
26454         (riscv_option_override): Likewise.
26455         * config/rl78/rl78.c (rl78_option_override): Likewise.
26456         * config/rs6000/aix61.h: Likewise.
26457         * config/rs6000/aix71.h: Likewise.
26458         * config/rs6000/aix72.h: Likewise.
26459         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
26460         * config/rs6000/freebsd64.h: Likewise.
26461         * config/rs6000/linux64.h: Likewise.
26462         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
26463         (rs6000_expand_zeroop_builtin): Likewise.
26464         (rs6000_expand_mtfsb_builtin): Likewise.
26465         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
26466         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
26467         (rs6000_invalid_builtin): Likewise.
26468         (rs6000_expand_split_stack_prologue): Likewise.
26469         * config/rs6000/rtems.h: Likewise.
26470         * config/rx/rx.c (valid_psw_flag): Likewise.
26471         (rx_expand_builtin): Likewise.
26472         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
26473         * config/s390/s390.c (s390_expand_builtin): Likewise.
26474         (s390_function_profiler): Likewise.
26475         (s390_option_override_internal): Likewise.
26476         (s390_option_override): Likewise.
26477         * config/sh/sh.c (sh_option_override): Likewise.
26478         (sh_builtin_saveregs): Likewise.
26479         (sh_fix_range): Likewise.
26480         * config/sh/vxworks.h: Likewise.
26481         * config/sparc/sparc.c (sparc_option_override): Likewise.
26482         * config/spu/spu.c (spu_option_override): Likewise.
26483         (fix_range): Likewise.
26484         * config/visium/visium.c (visium_option_override): Likewise.
26485         (visium_handle_interrupt_attr): Likewise.
26486         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
26487         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
26488         (dbg_cnt_process_opt): Likewise.
26489         * dwarf2out.c (output_dwarf_version): Likewise.
26490         * except.c (expand_eh_return): Likewise.
26491         * gcc.c (defined): Likewise.
26492         (driver_handle_option): Likewise.
26493         (process_command): Likewise.
26494         (compare_files): Likewise.
26495         (driver::prepare_infiles): Likewise.
26496         (driver::do_spec_on_infiles): Likewise.
26497         (driver::maybe_run_linker): Likewise.
26498         * omp-offload.c (oacc_parse_default_dims): Likewise.
26499         * opts-global.c (handle_common_deferred_options): Likewise.
26500         * opts.c (parse_sanitizer_options): Likewise.
26501         (common_handle_option): Likewise.
26502         (enable_warning_as_error): Likewise.
26503         * passes.c (enable_disable_pass): Likewise.
26504         * plugin.c (parse_plugin_arg_opt): Likewise.
26505         (default_plugin_dir_name): Likewise.
26506         * targhooks.c (default_expand_builtin_saveregs): Likewise.
26507         (default_pch_valid_p): Likewise.
26508         * toplev.c (init_asm_output): Likewise.
26509         (process_options): Likewise.
26510         (toplev::run_self_tests): Likewise.
26511         * tree-cfg.c (verify_gimple_call): Likewise.
26512         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
26513         (tree_inlinable_function_p): Likewise.
26514         * var-tracking.c (vt_find_locations): Likewise.
26516 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
26518         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
26519         only on the else branch.
26521 2019-03-11  Martin Liska  <mliska@suse.cz>
26523         * gcov.c (output_intermediate_json_line): Print function
26524         name of each line.
26525         (output_json_intermediate_file): Add new argument.
26526         * doc/gcov.texi: Document the change.
26528 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
26530         PR rtl-optimization/89588
26531         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
26532         explicit unrolling factor more robust.
26534 2019-03-11  Richard Biener  <rguenther@suse.de>
26536         PR tree-optimization/89649
26537         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
26538         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
26539         on the prolog and epilog loops.
26540         (vect_loop_versioning): Return copy of loop.
26541         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
26542         on the non-vectorized version of the loop.
26544 2019-03-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
26546         PR target/68924
26547         * config/i386/sse.md (*vec_extractv2di_0_sse):
26548         Add (=r,x) alternative and corresponding splitter.
26550 2019-03-10  Martin Jambor  <mjambor@suse.cz>
26552         PR tree-optimization/85762
26553         PR tree-optimization/87008
26554         PR tree-optimization/85459
26555         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
26556         it points to if there is a type changing MEM_REF.  Adjust all callers.
26557         (build_accesses_from_assign): Disable total scalarization if
26558         contains_vce_or_bfcref_p returns true through the new parameter, for
26559         both rhs and lhs.
26561 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
26563         PR c/88568
26564         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
26565         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
26567         PR target/79645
26568         * common.opt (fdiagnostics-show-labels,
26569         fdiagnostics-show-line-numbers, fdiagnostics-format=,
26570         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
26571         gas-locview-support, ginline-points, ginternal-reset-location-views):
26572         Terminate description text with a dot.
26573         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
26574         * config/mcore/mcore.opt (m210, m340): Likewise.
26575         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
26576         mnops=): Start description text with a capital letter.
26577         * config/arc/arc.opt (msize-level=): Likewise.
26578         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
26579         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
26580         mnewlib): Likewise.
26581         * config/ft32/ft32.opt (msim): Likewise.
26582         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
26583         (mnodiv, mnopm): Terminate description text with a dot.
26584         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
26585         a colon.
26586         * config/i386/i386.opt (prefer_vector_width, instrument_return):
26587         Likewise.
26588         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
26589         text.
26591         PR rtl-optimization/89634
26592         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
26593         are modified in BB_END (e->src) instruction.
26595 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
26597         PR target/79926
26598         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
26599         messages more amenable to translation, and improve wording.
26601 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
26603         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
26604         ud- and du-chains between phases.
26606 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
26608         PR debug/89631
26609         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
26610         instead of POLY_INT_CST.
26612 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
26614         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
26615         requirement.
26617 2019-03-08  UroÅ¡ Bizjak  <ubizjak@gmail.com>
26619         PR target/68924
26620         PR target/78782
26621         PR target/87558
26622         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
26623         (_mm_storeu_si64): Ditto.
26625 2019-03-08  Martin Liska  <mliska@suse.cz>
26627         PR target/86952
26628         * config/i386/i386.c (ix86_option_override_internal): Disable
26629         jump tables when retpolines are used.
26631 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
26633         PR go/63560
26634         * ipa-split.c (execute_split_functions): Do not split
26635         'noinline' or 'section' function.
26637 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
26639         PR target/79846
26640         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
26641         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
26642         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
26644         PR ipa/80000
26645         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
26646         from diagnostics.  Formatting fixes.
26648         PR target/85665
26649         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
26650         warn_odr diagnostics.
26652         PR other/80058
26653         * lra-constraints.c (process_alt_operands): Avoid one space before
26654         " at the end of line and another after " on another line in a string
26655         literal.
26656         * attribs.c (handle_dll_attribute): Likewise.
26657         * config/avr/avr-devices.c (avr_texinfo): Likewise.
26659         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
26660         warning_at or inform messages in G_() if there is no ?:.
26662         PR tree-optimization/89550
26663         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
26664         returned true.  Formatting fixes.
26665         (expand_builtin_strnlen): Formatting fixes.
26666         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
26667         if warning_at returned true.
26668         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
26670 2019-03-08  Richard Biener  <rguenther@suse.de>
26672         PR middle-end/89578
26673         * cfgloop.h (struct loop): Add owned_clique field.
26674         * cfgloopmanip.c (copy_loop_info): Copy it.
26675         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
26676         cliques.
26677         * tree-inline.c (copy_loops): Remap owned_clique.
26678         * lto-streamer-in.c (input_cfg): Stream owned_clique.
26679         * lto-streamer-out.c (output_cfg): Likewise.
26681 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
26683         PR target/80190
26684         * config/darwin.c: Include intl.h.
26685         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
26686         composing the message out of two separate parts.
26688 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
26690         PR target/80003
26691         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
26692         doesn't start with a capital letter and doesn't end with a dot.
26693         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
26694         with a capital letter.
26695         (ix86_mangle_function_version_assembler_name): Likewise.
26696         (ix86_generate_version_dispatcher_body): Likewise.
26697         (fold_builtin_cpu): Likewise.
26698         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
26699         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
26700         translators, wrap full type name in %qs.
26702         PR translation/79999
26703         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
26704         depend clause with source (or sink) modifier.
26705         * omp-expand.c (expand_omp_ordered_sink): Likewise.
26707         PR target/89602
26708         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
26709         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
26710         (avx512f_load<mode>_mask): New define_expand.
26711         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
26712         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
26713         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
26714         __builtin_ia32_movess_mask): New builtins.
26715         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
26716         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
26717         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
26718         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
26720 2019-03-07  Martin Jambor  <mjambor@suse.cz>
26722         PR lto/87525
26723         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
26724         for extern inline functions.
26726 2019-03-07  Martin Jambor  <mjambor@suse.cz>
26728         PR ipa/88235
26729         * cgraph.h (cgraph_node): New inline method former_thunk_p.
26730         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
26731         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
26732         have multiple callees.  At the end check if declarations match as
26733         opposed to cgraph_nodes.
26735 2019-03-07  Martin Liska  <mliska@suse.cz>
26737         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
26738         which is equivalent to searching for this in clones chain.
26739         * symtab.c (symtab_node::verify_base): Similarly compare ASM
26740         names with a neighbour and special case first node in a chain.
26742 2019-01-25  Jason Merrill  <jason@redhat.com>
26744         PR c++/80916 - spurious "static but not defined" warning.
26745         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
26746         for an internal symbol with DECL_EXTERNAL.
26748 2019-04-07  Richard Biener  <rguenther@suse.de>
26750         PR middle-end/89618
26751         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
26752         * tree-inline.c (copy_loops): Simplify.
26754 2019-03-07  Martin Liska  <mliska@suse.cz>
26756         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
26758 2019-03-07  Richard Biener  <rguenther@suse.de>
26760         PR tree-optimization/89595
26761         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
26762         stmt iterator as reference, take boolean output parameter to
26763         indicate whether the stmt was removed and thus the iterator
26764         already advanced.
26765         (dom_opt_dom_walker::before_dom_children): Re-iterate over
26766         stmts created by folding.
26768 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
26770         PR c++/89585
26771         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
26772         at toplevel.
26774 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
26776         PR rtl-optimization/88845
26777         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
26778         LRA.
26779         * lra.c (remove_scratches_1): New function.
26780         (remove_scratches): Use it.
26781         (lra_emit_move): Likewise.
26783 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
26785         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
26786         unaligned_access variable.
26787         * config/arc/arc.c (arc_override_options): Set unaligned access
26788         default on for HS CPUs.
26789         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
26791 2019-03-06  Martin Liska  <mliska@suse.cz>
26793         PR gcov-profile/89577
26794         * doc/gcov.texi: Prefer to use --coverage.
26795         * doc/sourcebuild.texi: Likewise.
26797 2019-03-02  Jason Merrill  <jason@redhat.com>
26799         PR c++/86485 - -Wmaybe-unused with empty class ?:
26800         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
26802 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
26804         PR target/89587
26805         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
26806         if_multiarch.
26808         PR middle-end/89590
26809         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
26810         exactly one argument.
26812 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
26813             Richard Sandiford  <richard.sandiford@arm.com>
26815         PR tree-optimization/89570
26816         * match.pd (vec_cond into cond_op simplification): Don't use
26817         get_conditional_internal_fn, use as_internal_fn (cond_op).
26819 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
26821         PR target/89222
26822         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
26823         to decide when to split off a non-zero offset from a symbol.
26824         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
26825         in function symbols.
26827 2019-03-05  Richard Biener  <rguenther@suse.de>
26829         PR tree-optimization/89594
26830         * tree-if-conv.c (pass_if_conversion::execute): Handle
26831         case where .LOOP_VECTORIZED_FUNCTION was removed.
26833 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
26835         PR bootstrap/89560
26836         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
26837         instead alloca it only when needed with the needed size.
26839         PR tree-optimization/89570
26840         * match.pd (vec_cond into cond_op simplification): Guard with
26841         vectorized_internal_fn_supported_p test and #if GIMPLE.
26843         PR tree-optimization/89566
26844         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
26845         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
26846         Punt if get_user_idx_format succeeds, but idx_format argument is
26847         not provided or doesn't have pointer type, or if idx_args is above
26848         number of provided arguments.
26850 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
26852         PR tree-optimization/89437
26853         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
26855 2019-03-04  Richard Biener  <rguenther@suse.de>
26857         PR middle-end/89572
26858         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
26859         safe_dyn_cast.
26861 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
26863         PR tree-optimization/89487
26864         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
26865         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
26866         (distribute_loop): Don't do runtime alias check if there is non-
26867         addressable data reference.
26868         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
26869         is a register variable.
26871 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
26873         PR target/89506
26874         * config/arm/arm.md (cmpsi2_addneg): Use
26875         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
26876         If operands[2] is 0 or INT_MIN, force use of subs.
26877         (*compare_scc splitter): Use gen_int_mode.
26878         (*negscc): Likewise.
26879         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
26881 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
26882             Monk Chiang  <sh.chiang04@gmail.com>
26884         * common/config/riscv/riscv-common.c: Include sstream.
26885         (riscv_subset_list::to_string): New.
26886         (riscv_arch_str): Likewise.
26887         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
26888         * config.in: Regen.
26889         * config/riscv/riscv-protos.h (riscv_arch_str): New.
26890         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
26891         (riscv_emit_attribute): New.
26892         (riscv_file_start): Emit attribute if needed.
26893         (riscv_option_override): Init riscv_emit_attribute_p.
26894         * config/riscv/riscv.opt (mriscv-attribute): New option.
26895         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
26896         * configure: Regen.
26897         * doc/install.texi: Document --with-riscv-attribute.
26898         * doc/invoke.texi: Document -mriscv-attribute.
26900         * common/config/riscv/riscv-common.c:
26901         Include config/riscv/riscv-protos.h.
26902         (INCLUDE_STRING): Defined.
26903         (RISCV_DONT_CARE_VERSION): Defined.
26904         (riscv_subset_t): Declare.
26905         (riscv_subset_t::riscv_subset_t): New.
26906         (riscv_subset_list): Declare.
26907         (riscv_subset_list::riscv_subset_list): New.
26908         (riscv_subset_list::~riscv_subset_list): Likewise.
26909         (riscv_subset_list::parsing_subset_version): Likewise.
26910         (riscv_subset_list::parse_std_ext): Likewise.
26911         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
26912         (riscv_subset_list::add): Likewise.
26913         (riscv_subset_list::lookup): Likewise.
26914         (riscv_subset_list::xlen): Likewise.
26915         (riscv_subset_list::parse): Likewise.
26916         (riscv_supported_std_ext): Likewise.
26917         (current_subset_list): Likewise.
26918         (riscv_parse_arch_string): Using riscv_subset_list::parse to
26919         parse.
26921 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
26923         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
26924         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
26925         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
26927 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
26929         PR rtl-optimization/85899
26930         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
26931         fallthru edges leading to the exit block.
26933 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
26935         PR target/89517
26936         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
26937         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
26939 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
26941         PR tree-optimization/89535
26942         * tree-vect-stmts.c (vectorizable_call): Record the vector types
26943         for each operand.  Calculate the fallback choice for mask operands
26944         and pass it to vect_get_vec_def_for_operand.
26946 2019-03-01  Richard Biener  <rguenther@suse.de>
26948         PR middle-end/89541
26949         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
26950         get virtual operands.
26951         (get_expr_operands): Handle CONST_DECL like other decls.
26953 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
26955         PR middle-end/89503
26956         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
26957         on DECL_P and EXPR_P.
26959 2019-03-01  Richard Biener  <rguenther@suse.de>
26961         PR middle-end/89497
26962         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
26963         argument, defaulted to zero.
26964         * passes.c (execute_function_todo): Pass down SSA update flags
26965         to cleanup_tree_cfg.
26966         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
26967         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
26968         form if requested.
26969         (cleanup_tree_cfg): Get and pass down SSA update flags.
26971 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
26973         PR bootstrap/89539
26974         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
26975         early_lto_debug argument.
26977 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
26979         PR tree-optimization/89536
26980         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
26981         only whether bit #0 of the value is 0 instead of the entire value.
26983 2019-02-28  Marek Polacek  <polacek@redhat.com>
26985         PR c++/87068 - missing diagnostic with fallthrough statement.
26986         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
26987         at the end of a seq, save its location to walk_stmt_info.
26988         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
26989         a switch.
26991 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
26993         PR lto/88585
26994         * tree.c (find_atomic_core_type): Move ahead in file.
26995         (check_base_type): Correctly compare alignments of atomic types.
26997 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
26999         PR target/89455
27000         * config/i386/i386.c (get_builtin_code_for_version): Identify
27001         Westmere from PCLMUL, instead of AES.
27003 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
27005         PR target/89434
27006         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
27007         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
27008         -UINTVAL (...).
27010 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
27012         PR target/88530
27013         * config/aarch64/aarch64-option-extensions.def: Document it.
27014         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
27015         if empty hwcaps.
27017 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
27019         PR c/89520
27020         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
27021         builtins if they don't have a single scalar floating point argument.
27022         Formatting fixes.
27024 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27026         PR rtl-optimization/89490
27027         * varasm.c (get_block_for_section): Bail out for mergeable sections.
27028         (default_use_anchors_for_symbol_p, output_object_block): Assert the
27029         block section is not mergeable.
27031 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
27033         PR target/70341
27034         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
27035         old define_insn to ...
27036         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
27037         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
27038         Rename old define_insn to ...
27039         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
27040         (thumb2_casesi_internal_pic): New define_expand.  Rename old
27041         define_insn to ...
27042         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
27043         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
27044         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
27046 2019-02-27  Richard Biener  <rguenther@suse.de>
27048         PR debug/88878
27049         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
27051 2019-02-27  Richard Biener  <rguenther@suse.de>
27053         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
27054         building.
27056 2019-02-27  Richard Biener  <rguenther@suse.de>
27058         PR debug/88878
27059         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
27060         parameter, prefix section name with .gnu.debuglto_ if true.
27061         (dwarf2out_finish): Pass false to output_comdat_type_unit.
27062         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
27064 2019-02-27  Richard Biener  <rguenther@suse.de>
27066         PR debug/89514
27067         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
27068         rather than on use_debug_types, doing what output_die does.
27069         (value_format): Likewise.
27071 2019-02-27  Martin Jambor  <mjambor@suse.cz>
27072             Martin Sebor  <msebor@redhat.com>
27074         * doc/invoke.texi (Warning Options): Reword description of
27075         -Wno-absolute-value.
27077 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
27079         PR tree-optimization/89280
27080         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
27081         builtin_setjmp_setup_bb): New functions.
27082         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
27083         When visiting __builtin_setjmp_setup block, queue in special
27084         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
27085         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
27086         from visited after the loop if they don't have any visited successor
27087         blocks.
27089 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
27091         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
27092         New function.
27093         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
27095 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
27097         PR c++/89507
27098         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
27099         with types other than sizetype/ssizetype.
27101 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
27103         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
27104         (enum sparc_processor_type): ...this.
27105         (enum sparc_code_model_type): New enumeration type.
27106         (enum sparc_memory_model_type): Tweak comments.
27107         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
27108         (mtune): Likewise.
27109         (mcmodel): Use sparc_code_model enumeration and variable.
27110         (sparc_code_model): New enumeration.
27111         (mdebug): Add Undocumented marker.
27112         * config/sparc/sparc.h (enum cmodel): Delete.
27113         (sparc_cmodel): Likewise.
27114         (TARGET_CM_MEDLOW): Adjust to above renaming.
27115         (TARGET_CM_MEDMID): Likewise.
27116         (TARGET_CM_MEDANY): Likewise.
27117         (TARGET_CM_EMBMEDANY): Likewise.
27118         * config/sparc/sparc.c (sparc_cmodel): Delete.
27119         (sparc_option_override): Remove string/value mapping support for the
27120         code model.  Move code and memory model support to after the handling
27121         of target flags.  Do private machine setup last.
27122         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
27123         (sparc_legitimize_reload_address): Likewise.
27124         (sparc_output_mi_thunk): Likewise.
27125         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
27127 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
27129         PR tree-optimization/89500
27130         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
27131         (handle_builtin_strlen): Remove noncst_bound variable.  Always
27132         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
27133         cst if the first cst bytes starting at x are known to be non-zero,
27134         even if the string is not zero terminated.  Don't try to modify
27135         *si for strnlen.  Update strlen_to_stridx only for strlen or if
27136         we can prove strnlen returns the same value as strlen would.
27138 2019-02-26  Martin Liska  <mliska@suse.cz>
27140         * alloc-pool.h (struct pool_usage): Remove extra
27141         print_dash_line.
27142         * bitmap.h (struct bitmap_usage): Likewise.
27143         * ggc-common.c (struct ggc_usage): Likewise.
27144         * mem-stats.h (struct mem_usage): Likewise.
27145         (mem_alloc_description::dump): Print dash lines
27146         here and repeat header at the end of a table report.
27147         It's then more readable.
27148         * tree-phinodes.c (phinodes_print_statistics): Make
27149         horizontal alignment.
27150         * tree-ssanames.c (ssanames_print_statistics): Likewise.
27151         * vec.c (struct vec_usage): Remove extra print_dash_line.
27152         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
27154 2019-02-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27156         * doc/extend.texi (__builtin_object_size):
27157         Use @pxref instead of @xref inside parenthesis.
27158         (__builtin_has_attribute): Add missing comma after @xref.
27159         (__builtin_object_size): Ditto.
27160         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
27162 2019-02-26  Jeff Law  <law@redhat.com>
27164         PR rtl-optimization/87761
27165         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
27166         detect obviously dead insns and delete them.
27168 2019-02-26  Richard Biener  <rguenther@suse.de>
27170         PR tree-optimization/89505
27171         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
27172         to handle restrict pointed-to vars with multiple subvars
27173         correctly.
27175 2019-02-26  Richard Biener  <rguenther@suse.de>
27177         PR tree-optimization/89489
27178         * tree-parloops.c (create_loop_fn): Copy over last_clique.
27180 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
27182         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
27183         and move around comment.
27184         <BIT_AND_EXPR>: Likewise.
27185         <BIT_NOT_EXPR>: Add specific handling for boolean types.
27187 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
27189         PR target/89474
27190         * config/i386/i386.c (remove_partial_avx_dependency): Call
27191         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
27192         after changing possibly many instructions to use that pseudo.  Fix up
27193         insertion of v4sf_const0 setter at the start of bb.
27195 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
27197         PR c/80409
27198         * doc/extend.texi (Variadic Pointer Args): New section.
27200 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
27201             Martin Sebor  <msebor@gmail.com>
27203         * common.opt (Wattribute-alias): Likewise.
27204         * doc/invoke.texi (Option Summary): List general form of
27205         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
27206         (-Wmissing-attributes): Invert entry, rewrite and correct default.
27207         Add cross-references.
27208         (-Wattribute-alias): Rewrite and correct default.  Mention
27209         considered attributes (same as for -Wmissing-attributes).
27211 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
27213         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
27214         (_mm_cvtpd_ps): Likewise.
27215         (_mm_cvttpd_epi32): Likewise.
27217         PR target/89338
27218         * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
27219         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
27221         PR target/89339
27222         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
27224 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
27226         PR target/88530
27227         * common/config/aarch64/aarch64-common.c
27228         (struct aarch64_option_extension): Add is_synthetic.
27229         (all_extensions): Use it.
27230         (TARGET_OPTION_INIT_STRUCT): Define hook.
27231         (struct gcc_targetm_common): Moved to end.
27232         (all_extensions_by_on): New.
27233         (opt_ext_cmp, typedef opt_ext): New.
27234         (aarch64_option_init_struct): New.
27235         (aarch64_contains_opt): New.
27236         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
27237         * config/aarch64/aarch64-option-extensions.def
27238         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
27239         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
27240         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
27241         Set is_synthetic to false.
27242         (crypto): Set is_synthetic to true.
27243         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
27244         SYNTHETIC.
27246 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
27248         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
27249         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
27250         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
27251         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
27252         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
27253         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
27254         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
27255         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
27256         Rename ...
27257         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
27258         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
27259         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
27260         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
27261         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
27262         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
27263         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
27264         vfmlsl_laneq_high_f16): ... To this.
27265         * config/arm/neon.md: Update comments.
27267 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
27269         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
27270         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
27271         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
27272         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
27273         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
27274         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
27275         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
27276         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
27277         Rename ...
27278         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
27279         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
27280         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
27281         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
27282         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
27283         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
27284         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
27285         vfmlslq_laneq_high_f16): ... To this.
27287 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
27289         PR rtl-optimization/86096
27290         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
27291         comparing mw_order values.
27293 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
27295         PR target/89434
27296         * config/arm/arm.md (*subsi3_carryin_const): Use
27297         arm_neg_immediate_operand predicate instead of
27298         arm_not_immediate_operand, "L" constraint instead of "K" and
27299         print it using %n2 instead of %B2.
27300         (*subsi3_carryin_const0): New define_insn.
27301         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
27302         instead of arm_not_operand and "I" constraint instead of "K" and
27303         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
27304         another match_operand and in the condition check that it is negation
27305         of operands[2].
27306         (*subsi3_carryin_compare_const0): New define_ins.
27307         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
27308         *subsi3_carryin_const.
27309         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
27310         split into *subsi3_carryin_compare_const0 if the highpart is zero.
27312         PR target/89438
27313         * config/arm.vfp.md (*negdf2_vfp): Use
27314         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
27315         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
27317 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
27319         PR rtl-optimization/89445
27320         * simplify-rtx.c (simplify_ternary_operation): Don't use
27321         simplify_merge_mask on operands that may trap.
27322         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
27323         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
27324         second operand is CONST_VECTOR, check if any element could be zero.
27325         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
27326         their operands can trap.
27328 2019-02-23  Martin Sebor  <msebor@redhat.com>
27330         * gimple-ssa-sprintf.c (target_strtol): Rename...
27331         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
27332         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
27333         check for range error.
27335 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
27337         PR driver/69471
27338         * opts-common.c (prune_options): Also prune joined switches
27339         with Negative and RejectNegative.
27340         * config/i386/i386.opt (march=): Add Negative(march=).
27341         (mtune=): Add Negative(mtune=).
27342         * doc/options.texi: Document Negative used together with Joined
27343         and RejectNegative.
27345 2019-02-22  Martin Sebor  <msebor@redhat.com>
27347         * doc/extend.texi (Other Builtins): Add
27348         __builtin_is_constant_evaluated.
27350 2019-02-22  Richard Biener  <rguenther@suse.de>
27352         PR tree-optimization/87609
27353         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
27355 2019-02-22  Jeff Law  <law@redhat.com>
27357         PR rtl-optimization/87761
27358         * config/mips/mips.md: Add new combiner pattern to recognize
27359         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
27361 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
27363         PR target/89324
27364         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
27365         destination register in peepholes generating patterns for ADDS/SUBS.
27366         (add<mode>3_compare0,
27367         *addsi3_compare0_uxtw, add<mode>3_compareC,
27368         add<mode>3_compareV_imm, add<mode>3_compareV,
27369         *adds_<optab><ALLX:mode>_<GPI:mode>,
27370         *subs_<optab><ALLX:mode>_<GPI:mode>,
27371         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
27372         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
27373         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
27374         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
27375         sub<mode>3_compare1): Allow stack pointer for source register.
27376         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
27378 2019-02-22  Martin Sebor  <msebor@redhat.com>
27380         PR tree-optimization/88993
27381         PR tree-optimization/88853
27382         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
27383         New helper.
27384         (sprintf_dom_walker::call_info::is_string_func): New helper.
27385         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
27386         for formatted string functions.
27387         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
27389 2019-02-22  Martin Sebor  <msebor@redhat.com>
27391         PR c/89425
27392         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
27393         unreachable subexpressions.
27395 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
27396             Hongtao Liu  <hongtao.liu@intel.com>
27397             Sunil K Pandey  <sunil.k.pandey@intel.com>
27399         PR target/87007
27400         * config/i386/i386-passes.def: Add
27401         pass_remove_partial_avx_dependency.
27402         * config/i386/i386-protos.h
27403         (make_pass_remove_partial_avx_dependency): New.
27404         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
27405         New function.
27406         (pass_data_remove_partial_avx_dependency): New.
27407         (pass_remove_partial_avx_dependency): Likewise.
27408         (make_pass_remove_partial_avx_dependency): Likewise.
27409         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
27410         (*extendsfdf2): Add avx_partial_xmm_update.
27411         (truncdfsf2): Likewise.
27412         (*float<SWI48:mode><MODEF:mode>2): Likewise.
27413         (SF/DF conversion splitters): Disabled for TARGET_AVX.
27415 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
27417         PR middle-end/85598
27418         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
27419         analysis for pass.
27421 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
27423         PR target/89444
27424         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
27425         (PTA_SKYLAKE): Add PTA_AES.
27426         (PTA_GOLDMONT): Likewise.
27428 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
27430         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
27431         instruction if enabled.
27432         (aarch64_override_options): Remove reference to return address key.
27434 2019-02-22  Richard Biener  <rguenther@suse.de>
27436         PR tree-optimization/89440
27437         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
27438         not necessary assert.
27440 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
27442         PR fortran/72741
27443         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
27444         (oacc_replace_fn_attrib_attr): ... this new function.
27445         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
27446         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
27448 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27450         * config/arm/arm-cpus.in (ares): Rename to...
27451         (neoverse-n1): ... This.  Add ares as alias.
27452         * config/arm/arm-tables.opt: Regenerate.
27453         * config/arm/arm-tune.md: Likewise.
27454         * doc/invoke.txt (ARM Options): Document neoverse-n1.
27456 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27458         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
27459         * config/aarch64/aarch64-tune.md: Regenerate.
27460         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
27462 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27464         * config/aarch64/aarch64.c (ares_tunings): Rename to...
27465         (neoversen1_tunings): ... This.
27466         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
27467         (neoverse-n1): New CPU.
27468         * config/aarch64/aarch64-tune.md: Regenerate.
27469         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
27471 2019-02-22  Richard Biener  <rguenther@suse.de>
27473         PR middle-end/87609
27474         * cfghooks.h (dependence_hash): New typedef.
27475         (struct copy_bb_data): New type.
27476         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
27477         (duplicate_block): Likewise.
27478         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
27479         (copy_bbs): Create and pass down copy_bb_data.
27480         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
27481         (rtl_duplicate_bb): Likewise.
27482         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
27483         remap dependence info.
27485 2019-02-22  Richard Biener  <rguenther@suse.de>
27487         PR tree-optimization/87609
27488         * tree-core.h (tree_base): Document special clique values.
27489         * tree-inline.c (remap_dependence_clique): Do not use the
27490         special clique value of one.
27491         (maybe_set_dependence_info): Use clique one.
27492         (clear_dependence_clique): New callback.
27493         (compute_dependence_clique): Clear clique one from all refs
27494         before assigning it (again).
27496 2019-02-21  Martin Sebor  <msebor@redhat.com>
27498         * doc/extend.texi (__clear_cache): Correct signature.
27500 2019-02-21  Ian Lance Taylor  <iant@golang.org>
27502         PR go/89170
27503         * varasm.c (decode_addr_const): Call lookup_constant_def rather
27504         than output_constant_def.
27505         (add_constant_to_table): New static function.
27506         (output_constant_def): Call add_constant_to_table.
27507         (tree_output_constant_def): Likewise.
27509 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
27511         PR c++/89285
27512         * builtins.c (fold_builtin_arith_overflow): If first two args are
27513         INTEGER_CSTs, set intres and ovfres to constants rather than calls
27514         to ifn.
27516 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
27518         PR target/87412
27519         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
27520         error for -mindirect-branch/-mfunction-return with incompatible
27521         -fcf-protection.
27523 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
27525         PR bootstrap/88714
27526         * constraints.md (q): Remove.
27527         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
27528         instead of q.
27530 2019-02-21  Martin Jambor  <mjambor@suse.cz>
27532         PR hsa/89302
27533         * omp-general.c (omp_extract_for_data): Removed a duplicate call
27534         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
27535         (omp_adjust_for_condition): ...here.  Added necessary parameters.
27536         * omp-general.h (omp_adjust_for_condition): Updated declaration.
27537         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
27538         proper values to new parameters of omp_adjust_for_condition.
27540 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
27542         PR middle-end/89412
27543         * expr.c (expand_assignment): If result is a MEM, use change_address
27544         instead of simplify_gen_subreg.
27546 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
27547             David Malcolm  <dmalcolm@redhat.com>
27549         PR middle-end/89091
27550         * fold-const.c (decode_field_reference): Return NULL_TREE if
27551         lang_hooks.types.type_for_size returns NULL.  Check it before
27552         overwriting *exp_.  Use return NULL_TREE instead of return 0.
27554 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
27556         PR middle-end/88074
27557         PR middle-end/89415
27558         * toplev.c (do_compile): Double the emin/emax exponents to workaround
27559         buggy mpc_norm.
27561 2019-02-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27563         PR target/89397
27564         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
27565         TARGET_SSE in addition to TARGET_SSE_MATH.
27567         (ix86_excess_precision): Ditto.
27568         (ix86_float_exceptions_rounding_supported_p): Ditto.
27569         (use_rsqrt_p): Ditto.
27570         * config/i386/sse.md (rsqrt<mode>2): Ditto.
27572 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
27574         PR c/89410
27575         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
27576         linenum_arith_t when determining if two adjacent line spans are
27577         close enough to merge.
27578         (diagnostic_show_locus): Use linenum_arith_t when iterating over
27579         lines within each line_span.
27581 2019-02-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>
27583         PR target/86487
27584         * lra-constraints.c(uses_hard_regs_p): Fix handling of
27585         paradoxical SUBREGS.
27587 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
27589         PR target/88100
27590         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
27591         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
27592         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
27593         range checking it.
27595 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
27597         * config/gcn/gcn.c (print_operand): Fix typo.
27599 2019-02-19  Richard Biener  <rguenther@suse.de>
27601         PR middle-end/88074
27602         * toplev.c (do_compile): Initialize mpfr's exponent range
27603         based on available float modes.
27605 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
27607         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
27608         as long as the epilogue isn't completed.
27610 2019-02-18  Martin Sebor  <msebor@redhat.com>
27612         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
27613         __has_cpp_attribute, and __has_include.
27615 2019-02-18  Martin Sebor  <msebor@redhat.com>
27617         * doc/invoke.texi (-Wreturn-type): Correct and expand.
27619 2019-02-18  Martin Sebor  <msebor@redhat.com>
27621         PR middle-end/89294
27622         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
27623         expression.
27624         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
27626 2019-02-18  Richard Biener  <rguenther@suse.de>
27628         PR tree-optimization/89296
27629         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
27630         of no-warning flag to cases that might emit the bogus warning.
27632 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
27634         PR bootstrap/88714
27635         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
27636         "q" constraint.
27637         * config/arm/vfp.md (*movdi_vfp): Likewise.
27638         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
27639         "q" constraint for operands[0].
27641         PR target/89369
27642         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
27643         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
27644         pattern in a temporary buffer.
27645         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
27646         than 64-operands[2].
27648         PR target/89361
27649         * config/s390/s390.c (s390_indirect_branch_attrvalue,
27650         s390_indirect_branch_settings): Define unconditionally.
27651         (s390_set_current_function): Likewise, but guard the whole body except
27652         the s390_indirect_branch_settings call with
27653         #if S390_USE_TARGET_ATTRIBUTE.
27654         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
27656         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
27657         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
27658         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
27659         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
27660         HOST_WIDE_INT_1U instead of 1ULL.
27661         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
27662         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
27663         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
27664         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
27665         instead of 1UL.
27666         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
27667         instead of 1ul.
27669 2019-02-18  Martin Jambor  <mjambor@suse.cz>
27671         PR tree-optimization/89209
27672         * tree-sra.c (create_access_replacement): New optional parameter
27673         reg_tree.  Use it as a type if non-NULL and access type is not of
27674         a register type.
27675         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
27676         to create_access_replacement.
27677         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
27678         Check lacc is non-NULL before attempting to re-create it on the RHS.
27680 2019-02-18  Martin Liska  <mliska@suse.cz>
27682         PR ipa/89306
27683         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
27684         by default.
27685         (symbol_table::free_edge): Recycle m_summary_id.
27686         * cgraph.h (get_summary_id): New.
27687         (symbol_table::release_symbol): Set m_summary_id to -1
27688         by default.
27689         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
27690         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
27691         function_summary to fast_function_summary.
27692         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
27693         * ipa-pure-const.c (class funct_state_summary_t):
27694         Switch from function_summary to fast_function_summary.
27695         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
27696         (class ipa_ref_opt_summary_t): Switch from function_summary
27697         to fast_function_summary.
27698         * symbol-summary.h (class function_summary_base): New class
27699         that is created from base of former function_summary.
27700         (function_summary_base::unregister_hooks): New.
27701         (class function_summary): Inherit from function_summary_base.
27702         (class call_summary_base): New class
27703         that is created from base of former call_summary.
27704         (class call_summary): Inherit from call_summary_base.
27705         (struct is_same): New.
27706         (class fast_function_summary): New summary class.
27707         (class fast_call_summary): New summary class.
27708         * vec.h (vec_safe_grow_cleared): New function.
27710 2019-02-18  Martin Liska  <mliska@suse.cz>
27712         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
27713         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
27714         * doc/tm.texi: Document new target hook.
27715         * doc/tm.texi.in: Likewise.
27716         * target.def: Add new target macro.
27717         * gcc.c (find_fortran_preinclude_file): Do not search multilib
27718         suffixes.
27720 2019-02-17  Alan Modra  <amodra@gmail.com>
27722         PR target/89271
27723         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
27724         output reg on add insn.
27725         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
27727 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
27729         PR target/89372
27730         * config/i386/sse.md (ssedoublemode): Remove V4HI.
27731         (PMULHRSW): Likewise.
27732         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
27733         TARGET_AVX2.
27734         (ssse3_pmulhrswv4hi3): New expander.
27736 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
27738         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
27739         MMX.  Add isa attribute.
27741 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
27743         PR rtl-optimization/66152
27744         * builtins.h (c_readstr): Declare.
27745         * builtins.c (c_readstr): Remove forward declaration.  Add
27746         null_terminated_p argument, if false, read all bytes from the
27747         string instead of stopping after '\0'.
27748         * expr.c (string_cst_read_str): New function.
27749         (store_expr): Use string_cst_read_str instead of
27750         builtin_strncpy_read_str.  Try to store by pieces the whole
27751         exp_len first, and only if that fails, split it up into
27752         store by pieces followed by clear_storage.  Formatting fix.
27754         * config/i386/i386.md (*movqi_internal): Remove static from
27755         buf variable.  Use output_asm_insn (buf, operands); return "";
27756         instead of return buf;.
27757         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
27758         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
27759         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
27761 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
27763         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
27764         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
27765         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
27766         (CC1_SPEC): Likewise.
27767         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
27769 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
27771         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
27772         the base address on 64-bit strict-alignment platforms.
27774 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
27776         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
27778 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27780         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
27782 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
27784         PR rtl-optimization/88308
27785         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
27786         on copied instruction.
27788 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
27790         * final.c (insn_current_reference_address): Replace test on JUMP_P
27791         with test on jump_to_label_p.
27792         * config/visium/visium-passes.def: New file.
27793         * config/visium/t-visium (PASSES_EXTRA): Define.
27794         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
27795         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
27796         (TRAMPOLINE_ALIGNMENT): Define.
27797         * config/visium/visium.c (visium_option_override): Do not register
27798         the machine-specific reorg pass here.
27799         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
27800         for the GR6.
27801         (output_branch): Adjust threshold for long branch instruction.
27802         * config/visium/visium.md (cpu): Move around.
27803         (length): Adjust for the GR6.
27805 2019-02-15  Richard Biener  <rguenther@suse.de>
27806             Jakub Jelinek  <jakub@redhat.com>
27808         PR tree-optimization/89278
27809         * tree-loop-distribution.c: Include tree-eh.h.
27810         (generate_memset_builtin, generate_memcpy_builtin): Call
27811         rewrite_to_non_trapping_overflow on builtin->size before passing it
27812         to force_gimple_operand_gsi.
27814 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
27816         PR other/89342
27817         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
27818         optimize_debug.
27819         * opth-gen.awk: Likewise.
27821 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27823         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
27824         Enable MMX, SSE and SSE2 by default.
27825         * config/i386/i386.c (ix86_option_override_internal): Do not
27826         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
27828 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
27830         PR rtl-optimization/89354
27831         * combine.c (make_extraction): Punt if extraction_mode is narrower
27832         than len bits.
27834 2019-02-14  Maya Rashish  <coypu@sdf.org>
27836         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
27837         * config/netbsd-d.c: New file.
27838         * config/t-netbsd: Add netbsd-d.o
27840 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
27842         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
27843         affects_type_identity to true for aarch64_vector_pcs.
27844         (aarch64_comp_type_attributes): New function.
27845         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
27847 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
27849         PR target/88850
27850         * config/arm/iterators.md (ANY64): Add V4HF.
27852 2019-02-14  Martin Liska  <mliska@suse.cz>
27854         PR rtl-optimization/89242
27855         * dce.c (delete_unmarked_insns): Call free_dominance_info we
27856         process a transformation.
27858 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
27860         PR tree-optimization/89314
27861         * fold-const.c (fold_binary_loc): Cast strlen argument to
27862         const char * before dereferencing it.  Formatting fixes.
27864         PR middle-end/89284
27865         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
27867 2019-02-13  Ian Lance Taylor  <iant@golang.org>
27869         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
27870         and set current index for other optimizations.
27872 2019-02-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
27874         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
27875         nonimmediate_operand as operand 2 predicate.
27876         (vec_set<VF2_512_256:mode>_0): Ditto.
27877         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
27878         (*vec_concatv2si): Remove alternative 2.
27879         (*vec_concatv4si_0): Use vm constraint for alternative 0.
27880         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
27881         (vec_concatv2di): Split alternatives 4,5,6 to ...
27882         (*vec_concatv2di_0) ... new pattern.
27884 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
27886         PR target/89190
27887         * config/arm/arm.c (ldm_stm_operation_p) Set
27888         addr_reg_in_reglist correctly for first register.
27889         (load_multiple_sequence): Remove dead base check.
27890         (gen_ldm_seq): Correctly set write_back for Thumb-1.
27892 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
27894         PR target/88847
27895         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
27896         Expose as @aarch64_pred_mov.
27897         * config/aarch64/aarch64.c (aarch64_classify_address):
27898         Use expand_insn which legitimizes operands.
27900 2019-02-13  Martin Liska  <mliska@suse.cz>
27902         * builtins.h (expand_builtin_with_bounds): Remove declaration.
27903         * calls.c (struct arg_data): Remove special_slot, pointer_arg
27904         and pointer_offset fields.
27905         (initialize_argument_information): Remove usage of dead
27906         fields.
27907         * cgraph.h (struct cgraph_thunk_info): Remove
27908         add_pointer_bounds_args.
27909         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
27910         fields.
27911         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
27912         fields.
27913         * config/i386/i386.c (ix86_function_arg_advance): Remove
27914         unrelated comment.
27915         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
27916         (def_builtin): Remove usage of dead fields.
27917         (ix86_add_new_builtins): Likewise.
27918         * ipa-fnsummary.c (compute_fn_summary): Likewise.
27919         * ipa-icf.c (sem_function::equals_wpa): Likewise.
27920         (sem_function::init): Likewise.
27921         (sem_variable::merge): Likewise.
27922         * ipa-visibility.c (function_and_variable_visibility): Likewise.
27923         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
27924         * lto-cgraph.c (lto_output_node): Likewise.
27925         (lto_output_varpool_node): Likewise.
27926         (input_node): Likewise.
27927         (input_varpool_node): Likewise.
27928         * lto-streamer-out.c (lto_output): Likewise.
27929         * tree-inline.c (expand_call_inline): Remove usage of
27930         assign_stmts.
27931         * tree-inline.h (struct copy_body_data): Likewise.
27932         * varpool.c (varpool_node::dump): Likewise.
27934 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
27936         PR middle-end/89303
27937         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
27938         into pt->vars_contains_escaped_heap instead of setting
27939         pt->vars_contains_escaped_heap to it.
27941         PR middle-end/89281
27942         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
27943         INTVAL (size), compare it to GET_MODE_MASK instead of
27944         1 << GET_MODE_BITSIZE.
27946         PR target/89290
27947         * config/i386/predicates.md (x86_64_immediate_operand): Allow
27948         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
27949         -mcmodel=large.
27951 2019-02-13  Martin Liska  <mliska@suse.cz>
27953         PR lto/88858
27954         * cfgrtl.c (remove_barriers_from_footer): New function.
27955         (try_redirect_by_replacing_jump): Use it.
27956         (cfg_layout_redirect_edge_and_branch): Likewise.
27958 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
27960         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
27961         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
27962         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
27963         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
27964         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
27965         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
27966         New BU_CRYPTO_2.
27967         * config/rs6000/rs6000.c (builtin_function_type)
27968         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
27969         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
27970         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
27971         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
27972         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
27974 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
27976         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
27977         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
27979 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
27981         PR target/89229
27982         * config/i386/i386.md (*movoi_internal_avx): Revert revision
27983         268678 and revision 268657.
27984         (*movti_internal): Likewise.
27986 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
27988         PR target/89233
27989         * config/s390/s390.c (s390_decompose_address): Update comment.
27990         (s390_check_qrst_address): Reject invalid address forms after
27991         LRA.
27993 2019-02-12  Martin Liska  <mliska@suse.cz>
27995         PR lto/88876
27996         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
27997         we need default values of funct_state for a function that
27998         is not optimized.
28000 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
28002         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
28003         the object to pick the size of stores on strict-alignment platforms.
28005         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
28006         (*movdi_insn_sp32): Likewise.
28007         (*movdi_insn_sp64): Likewise.
28009 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
28011         PR lto/88677
28012         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
28013         types that needs constructiong.
28014         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
28016 2019-02-12  Richard Biener  <rguenther@suse.de>
28018         PR tree-optimization/89253
28019         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
28020         duplicate the loop.
28022 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
28024         PR lto/88147
28025         * input.c (selftest::test_line_offset_overflow): New selftest.
28026         (selftest::input_c_tests): Call it.
28028 2019-02-11  Martin Sebor  <msebor@redhat.com>
28030         PR tree-optimization/88771
28031         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
28032         when -Wstringop-overflow is set.
28033         (builtin_memref::builtin_memref): Adjust excessive upper bound
28034         only when lower bound is not excessive.
28035         (maybe_diag_overlap): Detect and diagnose excessive bounds via
28036         -Wstringop-ovefflow.
28037         (maybe_diag_offset_bounds): Rename...
28038         (maybe_diag_access_bounds): ...to this.
28039         (check_bounds_or_overlap): Adjust for name change above.
28041 2019-02-11  Martin Sebor  <msebor@redhat.com>
28043         PR c++/87996
28044         * builtins.c (max_object_size): Move from here...
28045         * builtins.h (max_object_size): ...and here...
28046         * tree.c (max_object_size): ...to here...
28047         * tree.h (max_object_size): ...and here.
28049 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
28051         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
28052         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
28053         for correct semantics.
28055 2019-02-11  Alan Modra  <amodra@gmail.com>
28057         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
28058         -mlongcall and -mpltseq.
28059         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
28060         (RS/6000 and PowerPC Options <-mpltseq>): Document.
28061         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
28062         * config/rs6000/sysv4.opt (mpltseq): New option.
28063         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
28064         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
28065         support is lacking.  Don't allow -mpltseq with -mbss-plt.
28066         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
28067         -mpltseq given for ELFv1.
28068         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
28069         Only use UNSPEC_PLTSEQ for inline PLT calls.
28070         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
28071         use UNSPEC_PLTSEQ for inline PLT calls.
28072         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
28073         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
28074         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
28075         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
28076         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
28077         (pltseq_mtctr_<mode>): Likewise.
28079 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28081         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
28082         Solaris ld.
28083         * configure: Regenerate.
28085 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
28087         PR bootstrap/88714
28088         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
28089         instead of r.
28091 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
28093         * function.c (assign_parm_setup_block): Use the stored
28094         size, not the passed size, when allocating stack-space,
28095         also for a parameter with alignment larger than
28096         MAX_SUPPORTED_STACK_ALIGNMENT.
28098 2019-02-11  Martin Liska  <mliska@suse.cz>
28100         PR ipa/89009
28101         * ipa-cp.c (build_toporder_info): Remove usage of a param.
28102         * ipa-inline.c (inline_small_functions): Likewise.
28103         * ipa-pure-const.c (propagate_pure_const): Likewise.
28104         (propagate_nothrow): Likewise.
28105         * ipa-reference.c (propagate): Likewise.
28106         * ipa-utils.c (struct searchc_env): Remove unused field.
28107         (searchc): Always search across AVAIL_INTERPOSABLE.
28108         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
28109         the only called IPA pure const can properly not propagate
28110         across interposable boundary.
28111         * ipa-utils.h (ipa_reduced_postorder): Remove param.
28113 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
28115         * config/nds32/nds32.md (call_internal, call_value_internal,
28116         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
28118 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
28120         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
28121         typo.
28123 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
28125         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
28126         in comments
28128 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
28130         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
28132 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
28134         PR tree-optimization/89268
28135         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
28136         if preds is non-NULL.
28138 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
28140         PR lto/89272
28141         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
28142         polymorphic types.
28144 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
28146         * config/nds32/nds32.md (trap): New pattern.
28148 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
28150         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
28151         dwarf span.
28153 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
28155         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
28156         to split POST_INC.
28158 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
28160         * ipa-visibility.c (localize_node): Also do not localize
28161         LDPR_PREVAILING_DEF_IRONLY_EXP.
28163 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
28165         PR lto/87957
28166         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
28167         instead of type_with_linkage.
28169 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
28171         PR ipa/88755
28172         * params.def (uninlined-function-insns, uninlined-function-time,
28173         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
28174         bound so we don't get overflows.
28176 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
28178         * config/rs6000/rs6000-string.c (expand_compare_loop,
28179         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
28180         memcmp/strncmp.
28182 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
28184         PR middle-end/89246
28185         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28186         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
28187         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
28189 2019-02-09  Alan Modra  <amodra@gmail.com>
28191         PR target/88343
28192         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
28193         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
28194         setup.
28196 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
28198         PR middle-end/88560
28199         * lra-constraints.c (process_alt_operands): Don't increase reject
28200         for memory when offset memory is required.
28202 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
28204         * config/s390/vector.md: Implement vector copysign.
28206 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
28208         * expr.c (expand_constructor): Correct indentations.
28210 2019-02-08  Richard Biener  <rguenther@suse.de>
28212         PR tree-optimization/89247
28213         * tree-if-conv.c: Include tree-cfgcleanup.h.
28214         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
28215         (tree_if_conversion): Pass through predicate vector.
28216         (pass_if_conversion::execute): Do CFG cleanup and SSA update
28217         inline, see if any if-converted loops we refrece in
28218         LOOP_VECTORIZED calls vanished and fixup.
28219         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
28221 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
28223         * config/s390/constraints.md (jdd): New constraint.
28225 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
28227         PR target/89229
28228         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
28229         upper 16 vector registers without TARGET_AVX512VL.
28230         (*movti_internal): Likewise.
28232 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
28234         PR rtl-optimization/89234
28235         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
28236         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
28237         (copy_reg_eh_region_note_backward): Likewise.
28239 2019-02-08  Richard Biener  <rguenther@suse.de>
28241         PR middle-end/89223
28242         * tree-data-ref.c (initialize_matrix_A): Fail if constant
28243         doesn't fit in HWI.
28244         (analyze_subscript_affine_affine): Handle failure from
28245         initialize_matrix_A.
28247 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
28249         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
28250         cfun everywhere.
28252 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
28254         PR tree-optimization/86637
28255         PR tree-optimization/89235
28256         * tree-vect-loop.c (optimize_mask_stores): Add an
28257         auto_purge_vect_location sentinel to ensure that vect_location is
28258         purged on exit.
28259         * tree-vectorizer.c
28260         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
28261         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
28262         to ensure that vect_location is purged on exit.
28263         (pass_slp_vectorize::execute): Likewise, replacing the manual
28264         reset.
28265         * tree-vectorizer.h (class auto_purge_vect_location): New class.
28267 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28269         * config/aarch64/iterators.md (max_opp): New code_attr.
28270         (USMAX): New code iterator.
28271         * config/aarch64/predicates.md (aarch64_smin): New predicate.
28272         (aarch64_smax): Likewise.
28273         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
28274         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
28275         MINUS (MAX MIN).
28277 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
28279         PR target/89229
28280         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
28281         for TARGET_AVX512VL.
28282         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
28284 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
28286         * config/s390/s390-builtin-types.def: Add new types.
28287         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
28288         (s390_vec_xlw4): Make the memory operand into a const pointer.
28289         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
28290         float.
28291         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
28292         a new vector type with the alignment of the scalar memory operand.
28294 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
28295             Jakub Jelinek  <jakub@redhat.com>
28297         PR bootstrap/88714
28298         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
28299         arm_count_ldrdstrd_insns): New declarations.
28300         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
28301         MINUS.
28302         (valid_operands_ldrd_strd): New function.
28303         (arm_count_ldrdstrd_insns): New function.
28304         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
28305         sets instead of single DImode set and define new insns to match this.
28307 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
28309         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
28310         Make it a C initializer.
28312 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
28314         PR/target 88850
28315         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
28317 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28319         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
28320         Use neon_dot<q> for type.
28321         (neon_<sup>dot_lane<vsi2qi>): Likewise.
28323 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28325         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
28326         Use neon_dot<q> for type.
28327         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
28328         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
28330 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
28332         PR rtl-optimization/89225
28333         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
28334         sizes check.
28336 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
28338         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
28339         after restoring registers saved to allocate the frame on Windows.
28341 2019-02-06  Richard Biener  <rguenther@suse.de>
28343         PR tree-optimization/89182
28344         * graphite.h (cached_scalar_evolution_in_region): Declare.
28345         * graphite.c (struct seir_cache_key): New.
28346         (struct sese_scev_hash): Likewise.
28347         (seir_cache): New global.
28348         (cached_scalar_evolution_in_region): New function.
28349         (graphite_transform_loops): Allocate and release seir_cache.
28350         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
28351         cached_scalar_evolution_in_region.
28352         * graphite-scop-detection.c (scop_detection::can_represent_loop):
28353         Simplify.
28354         (scop_detection::graphite_can_represent_expr: Use
28355         cached_scalar_evolution_in_region.
28356         (scop_detection::stmt_simple_for_scop_p): Likewise.
28357         (find_params_in_bb): Likewise.
28358         (gather_bbs::before_dom_children): Likewise.
28359         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
28360         (add_loop_constraints): Likewise.
28362 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
28364         PR middle-end/89210
28365         * fold-const-call.c (fold_const_vec_convert): Pass true as last
28366         operand to new_unary_operation only if both element types are integral
28367         and it isn't a widening conversion.  Return NULL_TREE if
28368         new_unary_operation failed.
28370 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
28372         PR target/88856
28373         * config/s390/s390.md: Remove load and test FP splitter.
28375 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
28377         PR target/89112
28378         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
28379         expand_compare_loop, expand_block_compare_gpr,
28380         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
28381         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
28382         #include "profile-count.h" and "predict.h" for types and functions
28383         needed to work with REG_BR_PROB notes.
28385 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
28387         PR target/89112
28388         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
28389         for the long branch case.
28391 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
28393         PR target/89188
28394         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
28395         can throw, non-call exceptions are enabled and we can't delete
28396         dead exceptions or alter cfg.  Set must_clean if
28397         delete_insn_and_edges returns true, don't set it blindly for calls.
28398         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
28400         PR rtl-optimization/89195
28401         * combine.c (make_extraction): For MEMs, don't extract bytes outside
28402         of the original MEM.
28404 2019-02-05  Martin Liska  <mliska@suse.cz>
28406         PR gcov-profile/89000
28407         * gcov.c (function_summary): Remove argument.
28408         (file_summary): New function.
28409         (print_usage): Replace tabs with spaces.
28410         (generate_results): Use new function file_summary.
28412 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
28414         PR target/89186
28415         * optabs.c (prepare_cmp_insn): Pass x and y to
28416         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
28418 2019-02-05  Richard Biener  <rguenther@suse.de>
28420         PR middle-end/89150
28421         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
28422         (struct bitmap_element): Drop chain_prev so we properly recurse on
28423         the prev member, supporting tree views.
28424         (struct bitmap_head): GTY skip the obstack member.
28426 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
28428         PR c/88698
28429         * doc/extend.texi (Vector Extensions): Add an example of using vector
28430         types together with x86 intrinsics.
28432 2019-02-04  Alan Modra  <amodra@gmail.com>
28434         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
28435         str[] size to 160, and comment.
28437 2019-02-04  Alan Modra  <amodra@gmail.com>
28439         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
28440         (rs6000_pltseq_template): Guard output of TLS markers with
28441         TARGET_TLS_MARKERS.
28442         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
28443         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
28444         to use inline PLT sequences.
28445         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
28446         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
28447         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
28449 2019-02-04  Martin Liska  <mliska@suse.cz>
28451         PR ipa/88985
28452         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
28453         out when ipa_fn_summaries does not contain entry for callee.
28455 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
28457         * config/sparc/sparc.h: Remove superfluous blank lines.
28458         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
28459         (got_register_rtx): ...this.
28460         (sparc_got): Adjust to above renaming.
28461         (sparc_tls_got): Likewise.
28462         (sparc_delegitimize_address): Likewise.
28463         (sparc_output_mi_thunk): Likewise.
28464         (sparc_init_pic_reg): Likewise.
28465         (save_local_or_in_reg_p): Fix test on the GOT register.
28466         (USE_HIDDEN_LINKONCE): Move around.
28467         (get_pc_thunk_name): Likewise.
28468         (gen_load_pcrel_sym): Likewise.
28469         (load_got_register): Likewise.
28471 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
28473         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
28474         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
28476 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
28478         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
28479         into consideration.
28481 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
28483         * config.gcc (with_nds32_lib, glibc):
28484         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
28485         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
28486         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
28488 2019-02-03  UroÅ¡ Bizjak  <ubizjak@gmail.com>
28490         PR target/89071
28491         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
28492         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
28493         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
28494         (*rcpsf2_sse): Ditto.
28495         (*rsqrtsf2_sse): Ditto.
28496         (sse4_1_round<mode<2): Ditto.
28498 2019-02-03  Richard Biener  <rguenther@suse.de>
28500         PR debug/87295
28501         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
28502         orig.
28504 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
28506         PR middle-end/87887
28507         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28508         Punt with warning on aggregate return or argument types.  Ignore
28509         type/mode checking for uniform arguments.
28511 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
28513         * combine.c (try_combine): Do not print "Can't combine" messages unless
28514         printing failed combination attempts.
28516 2019-02-01  Martin Jambor  <mjambor@suse.cz>
28518         PR hsa/87863
28519         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
28520         segment and global segment variables before making them static.
28522 2019-02-01  Martin Jambor  <mjambor@suse.cz>
28524         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
28525         missed optimization dump with dump_enabled_p.
28527 2019-02-01  Richard Biener  <rguenther@suse.de>
28529         PR middle-end/88597
28530         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
28531         the instantiate cache.
28532         (instantiate_scev_binary): Elide second operand procesing
28533         if equal to the first.
28534         * tree-chrec.c (chrec_contains_symbols): Add visited set.
28535         (chrec_contains_undetermined): Likewise.
28536         (tree_contains_chrecs): Likewise.
28538 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
28540         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
28542 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
28544         PR tree-optimization/89143
28545         * wide-int-range.h (wide_int_range_absu): Declare.
28546         * wide-int-range.cc (wide_int_range_absu): New function.
28547         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
28549         PR tree-optimization/88107
28550         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
28551         instead of assertion that eh_region_outermost is non-NULL, if it
28552         is NULL, set *ALL to true and return NULL.
28553         (move_sese_region_to_fn): Adjust caller, if all is set, call
28554         duplicate_eh_regions with NULL region.
28556 2019-02-01  Richard Biener  <rguenth@suse.de>
28558         PR rtl-optimization/88593
28559         * mode-switching.c (optimize_mode_switching): Free dominators before
28560         calling cleanup_cfg.
28562 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
28564         PR tree-optimization/88932
28565         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
28567 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
28569         PR middle-end/89137
28570         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
28571         bogus clang warning.
28573 2019-01-31  UroÅ¡ Bizjak  <ubizjak@gmail.com>
28575         PR target/89071
28576         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
28577         alternative to avoid partial SSE register stall for TARGET_AVX.
28578         (truncdfsf2): Ditto.
28579         (sse4_1_round<mode>2): Ditto.
28581 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
28583         PR tree-optimization/89008
28584         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
28585         process anything of the form X * 0.
28587 2019-01-31  Richard Biener  <rguenther@suse.de>
28589         PR tree-optimization/89135
28590         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
28591         with abnormal preds.
28593 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
28595         PR sanitizer/89124
28596         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
28597         always_inline callees into no_sanitize_address callers.
28599 2019-01-31  Richard Biener  <rguenther@suse.de>
28601         PR rtl-optimization/89115
28602         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
28604 2019-01-30  Martin Sebor  <msebor@redhat.com>
28606         PR other/89106
28607         * doc/extend.texi (cast to a union): Correct and expand.
28609 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
28611         PR rtl-optimization/87246
28612         * lra-constraints.c (simplify_operand_subreg): Reload memory
28613         in subreg if the address became invalid.
28615 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
28617         PR target/87064
28618         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
28619         Disable for little-endian.
28621 2019-01-30  Richard Biener  <rguenther@suse.de>
28623         PR rtl-optimization/89115
28624         * opts.c (default_options_optimization): Reduce
28625         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
28626         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
28627         to the default.
28629 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
28631         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
28632         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
28633         type of vector element when vec_extract is implemented by direct
28634         move.
28636 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
28638         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
28640 2019-01-30  Richard Biener  <rguenther@suse.de>
28642         PR tree-optimization/89111
28643         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
28644         canonicalization to appropriately sized access types.
28646 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
28648         PR c++/89105
28649         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
28650         for arguments to functions that are TU-local and shouldn't be
28651         referenced by assembly.
28653 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
28655         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
28656         after '='.
28658 2019-01-29  Martin Sebor  <msebor@redhat.com>
28660         PR c/88956
28661         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
28663 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
28665         PR c++/66676
28666         PR ipa/89104
28667         * omp-simd-clone.c (simd_clone_clauses_extract)
28668         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
28669         OMP_CLAUSE_ALIGNED_ALIGNMENT.
28671 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
28673         * config.gcc: Force .init_array for ARC.
28675 2019-01-29  Richard Biener  <rguenther@suse.de>
28677         PR debug/87295
28678         * dwarf2out.c (collect_skeleton_dies): New helper.
28679         (copy_decls_for_unworthy_types): Call it.
28680         (build_abbrev_table): Assert we do not try to replace
28681         DW_AT_signature refs with local refs.
28683 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
28685         PR middle-end/89002
28686         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
28687         for lastprivate/linear IV, push gimplify context around gimplify_assign
28688         and, if it needed any temporaries, pop it into a gimple bind around the
28689         sequence.
28691 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28693         * common.opt (-Wattribute-alias): Remove "no-" from name.
28694         Make -Wattribute-alias command line option and
28695         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
28697 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
28699         PR target/89073
28700         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
28701         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
28702         x86 ISA options.
28703         (bmi2): Add missing @opindex.
28704         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
28705         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
28706         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
28707         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
28708         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
28709         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
28710         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
28711         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
28712         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
28713         xsavec, xsaveopt and xsaves options.
28715 2019-01-28  Richard Biener  <rguenther@suse.de>
28717         PR debug/89076
28718         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
28719         support removal.
28721 2019-01-28  Richard Biener  <rguenther@suse.de>
28723         PR tree-optimization/88739
28724         * tree-cfg.c (verify_types_in_gimple_reference): Verify
28725         BIT_FIELD_REFs only are applied to mode-precision operands
28726         when they are integral.
28727         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
28728         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
28729         BIT_FIELD_REFs of non-mode-precision integral operands.
28731 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
28733         PR target/87214
28734         * config/i386/sse.md
28735         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
28736         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
28737         first constants in pairs are multiples of 2.  Formatting fixes.
28738         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
28739         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
28740         first constants in each quadruple are multiples of 4.  Formatting fixes.
28742 2019-01-26  Martin Jambor  <mjambor@suse.cz>
28744         PR ipa/88933
28745         * tree-inline.c: Include tree-cfgcleanup.h.
28746         (delete_unreachable_blocks_update_callgraph): Move...
28747         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
28748         ...here, make externally visible, make second argument bool, adjust
28749         all callers.
28750         * tree-cfgcleanup.c: Include cgraph.h.
28751         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
28752         Declare.
28753         * ipa-prop.c: Include tree-cfgcleanup.h.
28754         (ipcp_transform_function): Call
28755         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
28757 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
28759         PR rtl-optimization/88846
28760         * ira.c (process_set_for_memref_referenced_p): New.
28761         (memref_referenced_p): Add new param.  Use
28762         process_set_for_memref_referenced_p.  Add new switch cases.
28763         (memref_used_between_p): Pass new arg to memref_referenced_p.
28765 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
28767         PR target/88469
28768         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
28769         argument ABI_BREAK.  Set to true if the calculated alignment has
28770         changed in gcc-9.  Check bit-fields for their base type alignment.
28771         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
28772         (aarch64_function_arg_boundary): Likewise.
28773         (aarch64_gimplify_va_arg_expr): Likewise.
28775 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
28777         PR middle-end/89037
28778         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
28779         instead of accessing TREE_INT_CST_ELT directly.
28781 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
28783         * doc/sourcebuild.texi (Environment attributes): Add fenv and
28784         fenv_exceptions description.
28786 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
28788         PR rtl-optimization/87763
28789         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
28790         Allow SUBREG when matching CC_NZmode compare.
28792 2019-01-25  Richard Biener  <rguenther@suse.de>
28794         PR tree-optimization/89049
28795         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
28796         Look at the pattern stmt to determine if the stmt is vectorized.
28798 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
28800         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
28801         (pred_mov<mode>): Handle all-register forms using both a new
28802         alternative and a split.
28804 2019-01-25  Richard Biener  <rguenther@suse.de>
28806         PR tree-optimization/86865
28807         * graphite-scop-detection.c (scop_detection::can_represent_loop):
28808         Reject non-do-while loops.
28810 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
28812         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
28813         * config/rs6000/constraints.md (Q constraint): Use REG_P.
28814         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
28815         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
28816         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
28817         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
28818         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
28819         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
28820         vlogical_operand, gpc_reg_operand, int_reg_operand,
28821         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
28822         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
28823         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
28824         (save_world_operation, restore_world_operation, lmw_operation,
28825         stmw_operation): Use MEM_P and REG_P.
28826         (tie_operand): Use MEM_P.
28827         (vrsave_operation, crsave_operation): Use REG_P.
28828         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
28829         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
28830         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
28831         (call_operand): Use HARD_REGISTER_P.
28832         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
28833         Use CONST_INT_P.
28834         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
28835         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
28836         quad_aligned_load_p, replace_swapped_aligned_store,
28837         recombine_lvx_pattern, replace_swapped_aligned_load,
28838         recombine_stvx_pattern): Use MEM_P.
28839         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
28840         Use MEM_P and SYMBOL_REF_P.
28841         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
28842         (insn_is_swappable_p): Use REG_P and MEM_P.
28843         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
28844         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
28845         Use CONST_INT_P.
28846         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
28847         Use CONST_DOUBLE_P.
28848         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
28849         CONST_WIDE_INT_P.
28850         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
28851         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
28852         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
28853         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
28854         reg_or_subregno:
28855         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
28856         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
28857         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
28858         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
28859         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
28860         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
28861         rs6000_split_logical_di): Use CONST_INT_P.
28862         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
28863         REG_P and SYMBOL_REF_P.
28864         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
28865         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
28866         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
28867         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
28868         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
28869         (small_data_operand, print_operand_address): Use CONST_INT_P and
28870         SYMBOL_REF_P.
28871         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
28872         (rs6000_init_hard_regno_mode_ok, direct_move_p):
28873         Use HARD_REGISTER_NUM_P.
28874         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
28875         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
28876         SUBREG_P and SYMBOL_REF_P.
28877         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
28878         and HARD_REGISTER_NUM_P.
28879         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
28880         reg_or_subregno.
28881         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
28882         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
28883         MEM_P and REG_P.
28884         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
28885         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
28886         find_addr_reg): Use REG_P.
28887         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
28888         (rs6000_emit_le_vsx_move): Use SUBREG_P.
28889         (offsettable_ok_by_alignment, constant_pool_expr_p,
28890         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
28891         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
28892         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
28893         rs6000_assemble_integer, create_TOC_reference,
28894         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
28895         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
28896         (rs6000_split_vec_extract_var): Use reg_or_subregno.
28897         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
28898         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
28899         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
28900         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
28901         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
28902         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
28903         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
28904         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
28905         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
28906         and cbranch<mode>4): Use CONST_INT_P.
28907         (multiple define_splits): Use REG_P and SUBREG_P.
28908         (define_expands call, call_value): Use MEM_P.
28909         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
28910         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
28911         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
28912         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
28913         and HARD_REGISTER_NUM_P.
28914         (multiple define_splits): Use HARD_REGISTER_NUM_P.
28916 2019-01-24  UroÅ¡ Bizjak  <ubizjak@gmail.com>
28918         PR rtl-optimization/88948
28919         * rtl.h (prepare_copy_insn): New prototype.
28920         * gcse.c (prepare_copy_insn): New function, split out from
28921         process_insert_insn.
28922         (process_insert_insn): Use prepare_copy_insn.
28923         * store-motion.c (replace_store_insn): Use prepare_copy_insn
28924         instead of gen_move_insn.
28926 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
28928         PR debug/89006
28929         * config/i386/i386.c (ix86_pic_register_p): Return true for
28930         UNSPEC_SET_GOT too.
28932         PR tree-optimization/88964
28933         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
28934         punt if HONOR_SNANS (chrec).
28936         PR middle-end/89015
28937         * tree-nested.c (convert_nonlocal_reference_stmt,
28938         convert_local_reference_stmt, convert_tramp_reference_stmt,
28939         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
28940         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
28941         or GIMPLE_OMP_TASK.
28943         PR tree-optimization/89027
28944         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
28945         for "omp simd array" variables.
28947 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
28949         PR target/88469
28950         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
28951         force the alignment of m_val.
28953 2019-01-24  Richard Biener  <rguenther@suse.de>
28955         PR lto/87187
28956         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
28957         When in "legacy" debug mode make sure to reset self-origins.
28959 2019-01-24  Martin Liska  <mliska@suse.cz>
28961         PR gcov-profile/88994
28962         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
28963         result will be always smaller or equal to the original.
28964         * gcov.c (mangle_name): Fix else branch where we should
28965         also copy to PTR and shift the pointer.
28967 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
28969         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
28970         * vr-values.c (find_case_label_ranges): Fix a comment typo.
28972 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
28974         * common/config/i386/i386-common.c
28975         (OPTION_MASK_ISA_ENQCMD_SET,
28976         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
28977         (ix86_handle_option): Handle -menqcmd.
28978         * config.gcc (enqcmdintrin.h): New header file.
28979         * config/i386/cpuid.h (bit_ENQCMD): New bit.
28980         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
28981         -menqcmd.
28982         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
28983         function type.
28984         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
28985         __builtin_ia32_enqcmds): New builtins.
28986         * config/i386/i386-c.c (__ENQCMD__): New macro.
28987         * config/i386/i386-option.c (ix86_target_string): Add
28988         -menqcmd.
28989         (ix86_valid_target_attribute_inner_p): Likewise.
28990         * config/i386/i386-expand.c
28991         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
28992         IX86_BUILTIN_ENQCMDS.
28993         * config/i386/i386.h (TARGET_ENQCMD): New.
28994         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
28995         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
28996         (movdir64b_<mode>): Parameterize to enable share expansion code
28997         with ENQCMD in function ix86_expand_builtin.
28998         * config/i386/i386.opt: Add -menqcmd.
28999         * config/i386/immintrin.h: Include enqcmdintrin.h.
29000         * config/i386/enqcmdintrin.h: New intrinsic file.
29001         * doc/invoke.texi: Add -menqcmd.
29003 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
29004             Steve Ellcey  <sellcey@marvell.com>
29006         PR target/85711
29007         * recog.c (address_operand): Return false on wrong mode for address.
29008         (constrain_operands): Check for mode with 'p' constraint.
29010 2019-01-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
29012         PR target/88998
29013         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
29014         Disparage MMX alternative.
29015         (sse2_cvtpd2pi): Ditto.
29016         (sse2_cvttpd2pi): Ditto.
29018 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
29020         PR driver/89014
29021         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
29022         use-after-free of the result of
29023         aarch64_get_extension_string_for_isa_flags.
29025 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
29027         PR c/44715
29028         * doc/extend.texi: Document break and continue behavior in
29029         statement expressions.
29031 2019-01-23  Richard Biener  <rguenther@suse.de>
29033         PR tree-optimization/89008
29034         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
29035         not leave another stray operand.
29037 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
29039         * BASE-VER: Bump to 9.0.1.
29041 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
29043         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
29044         thunk that returns by reference, use the type of the return object
29045         of the thunk instead of that of the alias to build the dereference.
29047 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
29049         * config/arc/atomic.md: Add operand to DMB instruction.
29051 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
29053         PR tree-optimization/88964
29054         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
29055         build_zero_cst instead of build_int_cst.  Return false for loop
29056         invariants which honor signed zeros.
29058 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
29060         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
29062 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
29064         PR target/88965
29065         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
29066         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
29067         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
29069         PR middle-end/88968
29070         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
29071         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
29073         PR target/87064
29074         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
29075         Disable for little endian.
29077 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
29079         PR target/88469
29080         * config/arm/arm.c (arm_needs_double_word_align): Check
29081         DECL_BIT_FIELD_TYPE.
29083 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
29084             H.J. Lu  <hongjiu.lu@intel.com>
29086         PR target/88909
29087         * config/i386/i386-builtin.def: Add mask2 to all builtin
29088         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
29089         SPECIAL_ARGS.
29090         * config/i386/i386.c (BDESC): Add mask2 to the definition.
29091         (BDESC_FIRST): Likewise.
29092         (define_builtin): Add an argument for mask2.  Updated to handle
29093         both ix86_isa_flags and ix86_isa_flags2.
29094         (define_builtin_const): Likewise.
29095         (define_builtin_pure): Likewise.
29096         (define_builtin2): Deleted.
29097         (define_builtin_const2): Likewise.
29098         (builtin_description): Add a member, mask2.
29099         (bdesc_*): Add mask2 to builtin initializations.
29100         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
29101         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
29102         support.
29103         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
29105 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
29107         PR target/88954
29108         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
29109         noplt attribute.
29111 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
29113         PR target/88469
29114         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
29115         alignment is dominated by a bitfield with 64-bit aligned base type.
29116         (arm_function_arg): Emit a warning if the alignment has changed since
29117         earlier GCC releases.
29118         (arm_function_arg_boundary): Likewise.
29119         (arm_setup_incoming_varargs): Likewise.
29121 2019-01-22  Richard Biener  <rguenther@suse.de>
29123         PR tree-optimization/88862
29124         * graphite-scop-detection.c
29125         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
29127 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
29129         * doc/extend.tex (AMD GCN Function Attributes): New section.
29130         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
29131         * doc/invoke.texi (AMD GCN Options): New section.
29132         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
29134 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
29136         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
29137         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
29139 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
29141         PR tree-optimization/88044
29142         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
29143         is false in the first iteration, but !every_iteration, return false
29144         instead of true with niter->niter zero.
29146         PR rtl-optimization/88904
29147         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
29148         any nonequal registers before processing BB_END (b).
29150         PR target/88905
29151         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
29152         GET_MODE (op0).
29153         (expand_binop_directly, expand_doubleword_clz,
29154         expand_doubleword_popcount, expand_ctz, expand_ffs,
29155         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
29157         PR rtl-optimization/49429
29158         PR target/49454
29159         PR rtl-optimization/86334
29160         PR target/88906
29161         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
29162         addressable from here...
29163         (emit_block_op_via_libcall): ... to here.
29165 2019-01-22  Richard Biener  <rguenther@suse.de>
29167         * tree-vect-loop.c (vect_analyze_loop_operations): Use
29168         auto_vec for cost vector to fix memleak.
29169         (vectorize_fold_left_reduction): Properly gather SLP defs.
29170         (vectorizable_comparison): Do not swap operands to properly
29171         gather SLP defs.
29173 2019-01-22  Alan Modra  <amodra@gmail.com>
29175         PR target/88614
29176         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
29177         stays a reg.  Allow a const_int.
29178         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
29179         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
29180         (IS_NOMARK_TLSGETADDR): Define.
29181         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
29182         (rs6000_output_tlsargs): New function.
29183         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
29184         __tls_get_addr call takes an arg.
29185         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
29186         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
29187         delete split..
29188         (call_value_nonlocal_sysv): ..or here, delete split.
29189         (tls_gdld_nomark): Delete.
29190         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
29191         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
29192         (call_value_nonlocal_sysv): Likewise.
29193         (call_value_nonlocal_sysv_secure): Likewise.
29194         (call_value_nonlocal_aix): Likewise.
29195         (call_value_indirect_aix): Likewise.
29196         (call_value_indirect_elfv2): Likewise.
29197         (call_value_local32, call_value_local64): Disable for no-mark tls.
29198         (call_value_local_aix): Likewise.
29200 2019-01-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
29202         PR target/88938
29203         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
29204         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
29206 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
29208         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
29209         string contents as hash_map keys.
29211 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29213         PR c/88928
29214         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
29215         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
29216         instead of TYPE_ALIGN.
29217         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
29218         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
29219         pointer from TYPE_STUB_DECL.
29221 2019-01-21  Richard Biener  <rguenther@suse.de>
29223         PR tree-optimization/88934
29224         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
29225         at the possibly non-constant operand.
29226         (vect_get_constant_vectors): Adjust.
29228 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
29230         PR target/71659
29231         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
29232         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
29233         instead of _X86INTRIN_H_INCLUDED.
29234         * onfig/i386/clwbintrin.h: Likewise.
29235         * config/i386/pkuintrin.h: Likewise.
29236         * config/i386/prfchwintrin.h: Likewise.
29237         * config/i386/rdseedintrin.h: Likewise.
29238         * config/i386/wbnoinvdintrin.h: Likewise.
29239         * config/i386/xsavecintrin.h: Likewise.
29240         * config/i386/xsavesintrin.h: Likewise.
29241         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
29242         * config/i386/xsaveintrin.h: Likewise.
29243         * config/i386/xsaveoptintrin.h: Likewise.
29244         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
29245         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
29246         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
29247         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
29248         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
29249         * config/i386/immintrin.h: Here.
29251 2019-01-20  Martin Jambor  <mjambor@suse.cz>
29253         PR ipa/87615
29254         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
29255         with aa_walk_budget.
29256         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
29257         aa_walk_budget_p parameter.
29258         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
29259         walk.  Updated all callers.
29260         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
29261         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
29262         unmodified_parm.
29263         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
29264         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
29265         and to unmodified_parm.
29266         (phi_result_unknown_predicate): New parameter fbi, removed parameter
29267         info, updated call to will_be_nonconstant_expr_predicate.
29268         (param_change_prob): New parameter fbi, limit AA walking.
29269         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
29270         calls to various above functions.
29271         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
29272         parameter.  Use it to limit AA walking.
29273         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
29274         fbi, limit AA walk.
29275         (detect_type_change): New parameter fbi, pass it on to
29276         detect_type_change_from_memory_writes.
29277         (detect_type_change_ssa): Likewise.
29278         (aa_overwalked): Removed.
29279         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
29280         accordingly, adjust to the neew AA limiting scheme.
29281         (parm_ref_data_preserved_p): Likewise.
29282         (ipa_compute_jump_functions_for_edge): Adjust call to
29283         get_dynamic_type.
29284         (ipa_analyze_call_uses): Likewise.
29285         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
29286         (ipa_analyze_node): Initialize aa_walk_budget.
29287         (ipcp_transform_function): Likewise.
29288         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
29289         to get_dynamic_type.
29291 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
29293         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
29294         outside of #if CHECKING_P code.
29296 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
29298         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
29299         New function, split out from...
29300         (loop_versioning::analyze_stride): ...here.
29301         (loop_versioning::find_per_loop_multiplication): Use gassign.
29302         (loop_versioning::analyze_term_using_scevs): Return a success code.
29303         (loop_versioning::analyze_arbitrary_term): New function.
29304         (loop_versioning::analyze_address_fragment): Use
29305         analyze_arbitrary_term if all else fails.
29307 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
29309         PR target/88892
29310         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
29311         operands.
29313 2019-01-18  Richard Biener  <rguenther@suse.de>
29315         PR tree-optimization/88903
29316         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
29317         scalar stmts a SLP shift amount is composed of when detecting
29318         shifts by scalars.
29320 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
29322         PR target/88799
29323         * config/arm/arm-cpus.in (mp): New feature.
29324         (sec): New feature.
29325         (fgroup ARMv7ve): Add mp and sec features.
29326         (arch armv7-a): Add options to allow mp and sec extensions.
29327         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
29328         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
29329         extenstions to the base architecture.
29330         (cpu cortex-a8): Add sec extension to the base architecture.
29331         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
29332         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
29333         variants down to the base v7-a varaint.
29334         * config/arm/t-multilib (v7_a_arch_variants): New variable.
29335         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
29336         of permitted extensions for -march=armv7-a and for
29337         -mcpu=generic-armv7-a.
29339 2019-01-18  Martin Liska  <mliska@suse.cz>
29341         * params.def: Fix comment.
29342         * tree-profile.c (gimple_init_gcov_profiler): Bump function
29343         name.
29344         (gimple_gen_ic_func_profiler): Likewise.
29346 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29348         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
29349         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
29350         and put in error checks for stack protector guard options.
29351         (aarch64_stack_protect_guard): New.
29352         (TARGET_STACK_PROTECT_GUARD): Define.
29353         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
29354         (reg_stack_protect_address<mode>): New.
29355         (stack_protect_set): Adjust for SSP_GLOBAL.
29356         (stack_protect_test): Likewise.
29357         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
29358         (-mstack-protector-guard): Likewise.
29359         (-mstack-protector-guard-offset): Likewise.
29361 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
29363         PR tree-optimization/86214
29364         * tree-inline.h (struct copy_body_data): Add
29365         add_clobbers_to_eh_landing_pads member.
29366         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
29367         (copy_edges_for_bb): Call it if EH edge destination is <
29368         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
29369         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
29370         if flag_stack_reuse != SR_NONE and clear it afterwards.
29372 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
29374         PR target/85596
29375         * doc/install.texi (with-multilib-list): Document for aarch64.
29377 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
29379         PR target/88734
29380         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
29381         (("..."))) with ("...").
29383 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29385         * doc/extend.texi (Built-in Functions for Memory Model Aware
29386         Atomic Operations): Document atomic fetch and nand.
29388 2019-01-18  Martin Liska  <mliska@suse.cz>
29389             Richard Biener  <rguenther@suse.de>
29391         PR middle-end/88587
29392         * cgraph.h (create_version_clone_with_body): Add new argument
29393         with attributes.
29394         * cgraphclones.c (cgraph_node::create_version_clone): Add
29395         DECL_ATTRIBUTES to a newly created decl.  And call
29396         valid_attribute_p so that proper cl_target_optimization_node
29397         is set for the newly created declaration.
29398         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
29399         for declaration.
29400         (expand_target_clones): Do not call valid_attribute_p, it must
29401         be already done.
29402         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
29403         vector types.
29405 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
29407         PR target/88734
29408         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
29409         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
29410         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
29412 2019-01-17  Martin Sebor  <msebor@redhat.com>
29414         PR middle-end/88273
29415         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
29416         Handle anti-ranges the same as no range at all.
29418 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
29420         * config/aarch64/aarch64.c (cgraph.h): New include.
29421         (intl.h): New include.
29422         (supported_simd_type): New function.
29423         (currently_supported_simd_type): Ditto.
29424         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
29425         (aarch64_simd_clone_adjust): Ditto.
29426         (aarch64_simd_clone_usable): Ditto.
29427         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
29428         (TARGET_SIMD_CLONE_ADJUST): Ditto.
29429         (TARGET_SIMD_CLONE_USABLE): Ditto.
29430         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
29431         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
29432         call.
29434 2019-01-17  Martin Sebor  <msebor@redhat.com>
29436         PR tree-optimization/88800
29437         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
29438         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
29439         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
29440         redundant argument.  Add new argument and issue diagnostics under
29441         its control.  Detect out-of-bounds access even with warnings
29442         disabled.
29443         (check_bounds_or_overlap): Change return type.  Add argument.
29444         (wrestrict_dom_walker::check_call): Adjust.
29445         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
29446         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
29447         check_bounds_or_overlap's return value.
29448         (handle_builtin_stxncpy): Same.
29449         (handle_builtin_strcat): Same.
29451 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
29452             Kwok Cheung Yeung  <kcy@codesourcery.com>
29453             Julian Brown  <julian@codesourcery.com>
29454             Tom de Vries  <tom@codesourcery.com>
29456         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
29458 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
29460         * doc/sourcebuild.texi: Document dg-require-effective-target
29461         llvm_binutils and offload_gcn.
29463 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
29464             Kwok Cheung Yeung  <kcy@codesourcery.com>
29465             Julian Brown  <julian@codesourcery.com>
29466             Tom de Vries  <tom@codesourcery.com>
29468         * doc/sourcebuild.texi: Document dg-required-effective-target
29469         exceptions.
29471 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
29472             Kwok Cheung Yeung  <kcy@codesourcery.com>
29473             Julian Brown  <julian@codesourcery.com>
29474             Tom de Vries  <tom@codesourcery.com>
29475             Jan Hubicka  <hubicka@ucw.cz>
29476             Martin Jambor  <mjambor@suse.cz>
29478         * config.gcc: Add amdgcn*-*-amdhsa configuration.
29479         * configure.ac: Check for dlopen.
29480         * configure: Regenerate.
29482 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
29483             Kwok Cheung Yeung  <kcy@codesourcery.com>
29484             Julian Brown  <julian@codesourcery.com>
29485             Tom de Vries  <tom@codesourcery.com>
29486             Jan Hubicka  <hubicka@ucw.cz>
29487             Martin Jambor  <mjambor@suse.cz>
29489         * common/config/gcn/gcn-common.c: New file.
29490         * config/gcn/driver-gcn.c: New file.
29491         * config/gcn/gcn-builtins.def: New file.
29492         * config/gcn/gcn-hsa.h: New file.
29493         * config/gcn/gcn-modes.def: New file.
29494         * config/gcn/gcn-opts.h: New file.
29495         * config/gcn/gcn-passes.def: New file.
29496         * config/gcn/gcn-protos.h: New file.
29497         * config/gcn/gcn-run.c: New file.
29498         * config/gcn/gcn-tree.c: New file.
29499         * config/gcn/gcn.c: New file.
29500         * config/gcn/gcn.h: New file.
29501         * config/gcn/gcn.opt: New file.
29502         * config/gcn/t-gcn-hsa: New file.
29504 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
29505             Kwok Cheung Yeung  <kcy@codesourcery.com>
29506             Julian Brown  <julian@codesourcery.com>
29507             Tom de Vries  <tom@codesourcery.com>
29508             Jan Hubicka  <hubicka@ucw.cz>
29509             Martin Jambor  <mjambor@suse.cz>
29511         * config/gcn/constraints.md: New file.
29512         * config/gcn/gcn-valu.md: New file.
29513         * config/gcn/gcn.md: New file.
29514         * config/gcn/predicates.md: New file.
29516 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
29518         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
29519         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
29520         (stmt_uses_0_or_null_in_undefined_way): Likewise.
29521         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
29523 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
29525         PR target/88851
29526         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
29527         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
29528         it and document registers.
29530 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29532         * config/aarch64/aarch64.c (ares_tunings): Define.
29533         * config/aarch64/aarch64-cores.def (ares): Use the above.
29535 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
29537         PR target/88794
29538         Revert:
29539         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
29541         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
29542         (_mm512_fixupimm_round_pd): Update parameters and builtin.
29543         (_mm512_maskz_fixupimm_round_pd): Ditto.
29544         (_mm512_fixupimm_round_ps): Ditto.
29545         (_mm512_maskz_fixupimm_round_ps): Ditto.
29546         (_mm_fixupimm_round_sd): Ditto.
29547         (_mm_maskz_fixupimm_round_sd): Ditto.
29548         (_mm_fixupimm_round_ss): Ditto.
29549         (_mm_maskz_fixupimm_round_ss): Ditto.
29550         (_mm512_fixupimm_pd): Ditto.
29551         (_mm512_maskz_fixupimm_pd): Ditto.
29552         (_mm512_fixupimm_ps): Ditto.
29553         (_mm512_maskz_fixupimm_ps): Ditto.
29554         (_mm_fixupimm_sd): Ditto.
29555         (_mm_maskz_fixupimm_sd): Ditto.
29556         (_mm_fixupimm_ss): Ditto.
29557         (_mm_maskz_fixupimm_ss): Ditto.
29558         (_mm512_mask_fixupimm_round_pd): Update builtin.
29559         (_mm512_mask_fixupimm_round_ps): Ditto.
29560         (_mm_mask_fixupimm_round_sd): Ditto.
29561         (_mm_mask_fixupimm_round_ss): Ditto.
29562         (_mm512_mask_fixupimm_pd): Ditto.
29563         (_mm512_mask_fixupimm_ps): Ditto.
29564         (_mm_mask_fixupimm_sd): Ditto.
29565         (_mm_mask_fixupimm_ss): Ditto.
29566         * config/i386/avx512vlintrin.h:
29567         (_mm256_fixupimm_pd): Update parameters and builtin.
29568         (_mm256_maskz_fixupimm_pd): Ditto.
29569         (_mm256_fixupimm_ps): Ditto.
29570         (_mm256_maskz_fixupimm_ps): Ditto.
29571         (_mm_fixupimm_pd): Ditto.
29572         (_mm_maskz_fixupimm_pd): Ditto.
29573         (_mm_fixupimm_ps): Ditto.
29574         (_mm_maskz_fixupimm_ps): Ditto.
29575         (_mm256_mask_fixupimm_pd): Update builtin.
29576         (_mm256_mask_fixupimm_ps): Ditto.
29577         (_mm_mask_fixupimm_pd): Ditto.
29578         (_mm_mask_fixupimm_ps): Ditto.
29579         * config/i386/i386-builtin-types.def: Add new types and remove
29580         useless ones.
29581         * config/i386/i386-builtin.def: Update builtin definitions.
29582         * config/i386/i386.c: Handle new builtin types and remove useless ones.
29583         * config/i386/sse.md: Update VFIXUPIMM* patterns.
29584         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
29585         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
29586         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
29587         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
29588         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
29589         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
29590         * config/i386/subst.md:
29591         (round_saeonly_sd_mask_operand4): Add new subst_attr.
29592         (round_saeonly_sd_mask_op4): Ditto.
29593         (round_saeonly_expand_operand5): Ditto.
29594         (round_saeonly_expand): Update.
29596 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
29598         PR target/88794
29599         Revert:
29600         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
29602         * config/i386/sse.md: Combine VFIXUPIMM* patterns
29603         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
29604         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
29605         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
29606         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
29607         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
29608         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
29610 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
29612         PR target/88794
29613         Revert:
29614         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
29616         PR target/88489
29617         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
29618         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
29619         instead of UNSPEC_FIXUPIMM.
29621 2019-01-17  Richard Biener  <rguenther@suse.de>
29623         PR lto/86736
29624         * dwarf2out.c (want_pubnames): Never generate pubnames sections
29625         and friends for the LTO part of debug info.
29627 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
29629         PR tree-optimization/86214
29630         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
29631         if x == y.
29633         PR rtl-optimization/88870
29634         * dce.c (deletable_insn_p): Never delete const/pure calls that can
29635         throw if we can't alter the cfg or delete dead exceptions.
29636         (mark_insn): Don't call find_call_stack_args for such calls.
29638 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
29640         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
29641         prototypes for vec_st.
29642         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
29643         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
29644         mainly on signed/unsigned long long and double.
29646 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
29648         PR target/88861
29649         * combine.c (delete_noop_moves): Convert to "bool" return,
29650         returning true if any edges are eliminated.
29651         (combine_instructions): Also return true if delete_noop_moves
29652         returns true.
29654 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
29656         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
29657         correct max nunits for endian swap.
29658         (aarch64_expand_fcmla_builtin): Correct subreg code.
29659         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
29660         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
29661         lane endianness.
29663 2019-01-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
29665         * config/alpha/alpha.c (alpha_gimplify_va_arg):
29666         Handle split indirect COMPLEX_TYPE arguments.
29668 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
29670         PR target/86891
29671         * config/aarch64/aarch64-modes.def: Add comment about how the carry
29672         bit is set by add and compare.
29673         (CC_ADC): New CC_MODE.
29674         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
29675         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
29676         comparison.  Add detection for CC_ADCmode.
29677         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
29678         CC_ADCmode.
29679         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
29680         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
29681         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
29682         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
29683         to eliminate the need for zero-extending the operands.
29684         (add<mode>3_compareC_imm): Delete.  Merge into ...
29685         (add<mode>3_compareC): ... this.  Restructure the comparison to
29686         eliminate the need for zero-extending the operands.
29687         (add<mode>3_carryin): Use LTU for the overflow detection.
29688         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
29689         Reexpress comparison for overflow.
29690         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
29691         (add<mode>3_carryinC): Likewise.
29692         (add<mode>3_carryinV): Use LTU for carry between partials.
29693         * config/aarch64/predicates.md (aarch64_carry_operation): Update
29694         handling of CC_Cmode and add CC_ADCmode.
29695         (aarch64_borrow_operation): Likewise.
29697 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
29699         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
29700         Remove patternmode.
29701         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
29702         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
29703         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
29704         Remove endianness conversion.
29706 2019-01-16  Martin Liska  <mliska@suse.cz>
29708         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
29709         for GCC driver.
29710         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
29711         a new argument.
29712         * gcc.c (add_sysrooted_hdrs_prefix): New function.
29713         (path_prefix_reset): Move up in the source file.
29714         (find_fortran_preinclude_file): Make complex search for the
29715         fortran header files.
29717 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
29719         * godump.c (go_output_typedef): When outputting a typedef, refer
29720         to the underlying type by its name and not its structure.
29722 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
29724         PR c++/88795
29725         * tree.c (build_function_type): Assert that arg_types is not
29726         error_mark_node.
29728 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
29730         PR inline-asm/52813
29731         * doc/extend.texi: Document that listing the stack pointer in the
29732         clobber list of an asm is a deprecated feature.
29733         * common.opt (Wdeprecated): Moved from c-family/c.opt.
29734         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
29735         warning instead of an error for clobbers of the stack pointer.
29736         Add a note explaining why.
29738 2019-01-15  Richard Biener  <rguenther@suse.de>
29740         PR debug/88046
29741         * dwarf2out.c (gen_member_die): Do not generate inheritance
29742         DIEs late.
29744 2019-01-15  Richard Biener  <rguenther@suse.de>
29746         PR tree-optimization/88855
29747         * tree-if-conv.c (combine_blocks): Collect
29748         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
29750 2019-01-15  Tom de Vries  <tdevries@suse.de>
29752         PR target/80547
29753         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
29754         lhs == NULL_TREE for gang-level reduction.
29756 2019-01-15  Richard Biener  <rguenther@suse.de>
29757             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29759         PR ipa/88788
29760         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
29761         return true if SSA_NAME is already marked in visited bitmap.
29762         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
29764 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
29766         PR tree-optimization/88775
29767         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
29768         equal == 0 equality pointer comparisons some more if compared in
29769         integral types and either one points to an automatic var and the
29770         other to a global, or we can prove at least one points to the middle
29771         or both point to start or both point to end.
29773 2019-01-14  Andi Kleen  <ak@linux.intel.com>
29775         * Makefile.in: Lower autofdo sampling rate by 10x.
29776         * Makefile.tpl: Dito.
29778 2019-01-14  Tom Honermann  <tom@honermann.net>
29780         * defaults.h: Define CHAR8_TYPE.
29782 2019-01-14  Martin Sebor  <msebor@redhat.com>
29784         PR target/88638
29785         * doc/extend.texi (Darwin Format Checks): Clarify.
29787 2019-01-14  Richard Biener  <rguenther@suse.de>
29789         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
29790         whether we are in (simplify ...) or (match ...) context.
29792 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
29794         PR rtl-optimization/88796
29795         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
29796         * cfgexpand.c (stack_protect_prologue): Initialize
29797         crtl->stack_protect_guard_decl.
29798         * function.c (stack_protect_epilogue): Use it instead of calling
29799         targetm.stack_protect_guard again.
29800         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
29801         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
29802         crtl->stack_protect_guard_decl.
29803         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
29804         on the returned MEM_EXPR.
29806 2019-01-12  Tom de Vries  <tdevries@suse.de>
29808         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
29809         vector length using -fopenacc-dim.
29811 2019-01-12  Tom de Vries  <tdevries@suse.de>
29813         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
29814         lengths into account.
29816 2019-01-12  Svante Signell  <svante.signell@gmail.com>
29818         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
29819         (TARGET_CAN_SPLIT_STACK): Define.
29820         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
29822 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
29824         * params.def (inline-unit-growth): Set to 40.
29826 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
29828         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
29830 2019-01-12  Tom de Vries  <tdevries@suse.de>
29832         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
29833         region calling vector-partitionable routine, set default_vector_length
29834         to WARP_SIZE.
29836 2019-01-12  Tom de Vries  <tdevries@suse.de>
29838         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
29839         variable default_vector_length.
29841 2019-01-12  Tom de Vries  <tdevries@suse.de>
29843         PR middle-end/88703
29844         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
29845         from oacc_default_dims, as oacc_validate_dims would do it, and apply
29846         dimensions limits.
29848 2019-01-12  Tom de Vries  <tdevries@suse.de>
29850         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
29851         (nvptx_goacc_validate_dims): Add used parameter.
29852         * doc/tm.texi: Regenerate.
29853         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
29854         argument to call to targetm.goacc.validate_dims.
29855         (default_goacc_validate_dims): Add used
29856         parameter.
29857         * target.def (validate_dims): Add used parameter in DEFHOOK.
29858         * targhooks.h (default_goacc_validate_dims): Add used parameter.
29860 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
29862         PR middle-end/85956
29863         PR lto/88733
29864         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
29865         field.
29866         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
29867         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
29868         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
29869         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
29871 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
29873         PR rtl-optimization/87305
29874         * lra-assigns.c
29875         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
29876         for little endian pseudos used as paradoxical subreg.
29878 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
29880         PR tree-optimization/88693
29881         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
29882         for STRING_CSTs that don't contain any NUL characters in the first
29883         TREE_STRING_LENGTH bytes.
29885 2019-01-11  Alan Modra  <amodra@gmail.com>
29887         PR 88777
29888         PR 88614
29889         * genattrtab.c (min_fn): Don't translate values.
29890         (min_attr_value): Return INT_MAX when the value can't be calculated.
29891         Return minimum among any values that can be calculated.
29892         (max_attr_value): Adjust.
29894 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
29896         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
29898 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
29900         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
29901         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
29902         (aarch64_return_call_with_max_clobbers): New function.
29903         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
29904         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
29905         argument.
29906         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
29907         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
29908         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
29909         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
29910         * cselib.c (cselib_process_insn): Add argument to
29911         targetm.hard_regno_call_part_clobbered call.
29912         * ira-conflicts.c (ira_build_conflicts): Ditto.
29913         * ira-costs.c (ira_tune_allocno_costs): Ditto.
29914         * lra-constraints.c (inherit_reload_reg): Ditto.
29915         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
29916         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
29917         argument.  Call targetm.return_call_with_max_clobbers.
29918         Add argument to targetm.hard_regno_call_part_clobbered call.
29919         (calls_have_same_clobbers_p): New function.
29920         (process_bb_lives): Add call_insn and last_call_insn variables.
29921         Pass call_insn to check_pseudos_live_through_calls.
29922         Modify if stmt to check targetm.return_call_with_max_clobbers.
29923         Update setting of flush variable.
29924         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
29925         to false.
29926         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
29927         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
29928         targetm.hard_regno_call_part_clobbered call.
29929         * reginfo.c (choose_hard_reg_mode): Ditto.
29930         * regrename.c (check_new_reg_p): Ditto.
29931         * reload.c (find_equiv_reg): Ditto.
29932         * reload1.c (emit_reload_insns): Ditto.
29933         * sched-deps.c (deps_analyze_insn): Ditto.
29934         * sel-sched.c (init_regs_for_mode): Ditto.
29935         (mark_unavailable_hard_regs): Ditto.
29936         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
29937         * target.def (hard_regno_call_part_clobbered): Add insn argument.
29938         (return_call_with_max_clobbers): New target function.
29939         * doc/tm.texi: Regenerate.
29940         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
29941         * hooks.c (hook_bool_uint_mode_false): Change to
29942         hook_bool_insn_uint_mode_false.
29943         * hooks.h (hook_bool_uint_mode_false): Ditto.
29945 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
29947         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
29948         (aarch64_remove_extra_call_preserved_regs): New function.
29949         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
29950         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
29951         * doc/tm.texi: Regenerate.
29952         * final.c (get_call_reg_set_usage): Call new hook.
29953         * target.def (remove_extra_call_preserved_regs): New hook.
29954         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
29955         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
29957 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
29959         PR bootstrap/88714
29960         * passes.c (finish_optimization_passes): Call print_combine_total_stats
29961         inside of pass_combine_1 dump rather than pass_profile_1.
29963 2019-01-11  Tom de Vries  <tdevries@suse.de>
29965         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
29966         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
29967         (PTX_NUM_PER_WORKER_BARRIERS): Define.
29968         (nvptx_apply_dim_limits): Prevent vector_length 64 and
29969         num_workers 16.
29971 2019-01-11  Tom de Vries  <tdevries@suse.de>
29973         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
29975 2019-01-11  Jan Beulich  <jbeulich@suse.com>
29977         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
29978         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
29979         sse2_cvtsi2sd): Add {l}.
29980         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
29981         syntax.
29983 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
29985         PR target/88785
29986         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
29987         define_expand.
29988         (*float<floatunssuffix>v2div2sf2): New define_insn.
29989         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
29990         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
29991         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
29992         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
29993         match_operands with "const0_operand" "C".
29995 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
29997         * config/aarch64/aarch64-builtins.c
29998         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
29999         (aarch64_init_simd_builtins): ...Here
30001 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
30003         PR rtl-optimization/87305
30004         * lra-assigns.c
30005         (setup_live_pseudos_and_spill_after_risky_transforms): Check
30006         allocation for big endian pseudos used as paradoxical subregs and
30007         spill them if it is wrong.
30008         * lra-constraints.c (lra_constraints): Add a comment.
30010 2019-01-10  Richard Biener  <rguenther@suse.de>
30012         PR tree-optimization/88792
30013         * tree-ssa-pre.c (get_representative_for): Do not return a
30014         value-number here.
30016 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
30018         PR middle-end/84877
30019         PR bootstrap/88450
30020         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
30021         (assign_parm_setup_block): Do the argument slot realignment here
30022         instead.
30024 2019-01-10  Stefan Agner  <stefan@agner.ch>
30026         PR target/88648
30027         * config/arm/arm.c (arm_option_override_internal): Force
30028         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
30030 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
30032         PR c/88568
30033         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
30034         DECL_EXTERNAL.
30036 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
30038         * config/arm/arm-builtins.c
30039         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
30040         (MAC_LANE_PAIR_QUALIFIERS): New.
30041         (arm_expand_builtin_args): Use it.
30042         (arm_expand_builtin_1): Likewise.
30043         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
30044         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
30045         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
30046         * config/arm/arm_neon.h:
30047         (vcadd_rot90_f16): New.
30048         (vcaddq_rot90_f16): New.
30049         (vcadd_rot270_f16): New.
30050         (vcaddq_rot270_f16): New.
30051         (vcmla_f16): New.
30052         (vcmlaq_f16): New.
30053         (vcmla_lane_f16): New.
30054         (vcmla_laneq_f16): New.
30055         (vcmlaq_lane_f16): New.
30056         (vcmlaq_laneq_f16): New.
30057         (vcmla_rot90_f16): New.
30058         (vcmlaq_rot90_f16): New.
30059         (vcmla_rot90_lane_f16): New.
30060         (vcmla_rot90_laneq_f16): New.
30061         (vcmlaq_rot90_lane_f16): New.
30062         (vcmlaq_rot90_laneq_f16): New.
30063         (vcmla_rot180_f16): New.
30064         (vcmlaq_rot180_f16): New.
30065         (vcmla_rot180_lane_f16): New.
30066         (vcmla_rot180_laneq_f16): New.
30067         (vcmlaq_rot180_lane_f16): New.
30068         (vcmlaq_rot180_laneq_f16): New.
30069         (vcmla_rot270_f16): New.
30070         (vcmlaq_rot270_f16): New.
30071         (vcmla_rot270_lane_f16): New.
30072         (vcmla_rot270_laneq_f16): New.
30073         (vcmlaq_rot270_lane_f16): New.
30074         (vcmlaq_rot270_laneq_f16): New.
30075         (vcadd_rot90_f32): New.
30076         (vcaddq_rot90_f32): New.
30077         (vcadd_rot270_f32): New.
30078         (vcaddq_rot270_f32): New.
30079         (vcmla_f32): New.
30080         (vcmlaq_f32): New.
30081         (vcmla_lane_f32): New.
30082         (vcmla_laneq_f32): New.
30083         (vcmlaq_lane_f32): New.
30084         (vcmlaq_laneq_f32): New.
30085         (vcmla_rot90_f32): New.
30086         (vcmlaq_rot90_f32): New.
30087         (vcmla_rot90_lane_f32): New.
30088         (vcmla_rot90_laneq_f32): New.
30089         (vcmlaq_rot90_lane_f32): New.
30090         (vcmlaq_rot90_laneq_f32): New.
30091         (vcmla_rot180_f32): New.
30092         (vcmlaq_rot180_f32): New.
30093         (vcmla_rot180_lane_f32): New.
30094         (vcmla_rot180_laneq_f32): New.
30095         (vcmlaq_rot180_lane_f32): New.
30096         (vcmlaq_rot180_laneq_f32): New.
30097         (vcmla_rot270_f32): New.
30098         (vcmlaq_rot270_f32): New.
30099         (vcmla_rot270_lane_f32): New.
30100         (vcmla_rot270_laneq_f32): New.
30101         (vcmlaq_rot270_lane_f32): New.
30102         (vcmlaq_rot270_laneq_f32): New.
30103         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
30104         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
30105         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
30106         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
30107         vcmlaq_lane270): New.
30108         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
30109         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
30110         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
30111         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
30112         (arm_option_reconfigure_globals): Use them.
30113         * config/arm/iterators.md (VDF, VQ_HSF): New.
30114         (VCADD, VCMLA): New.
30115         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
30116         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
30117         New.
30118         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
30119         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
30121 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
30123         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
30124         Add qualifier_lane_pair_index.
30125         (emit-rtl.h): Include.
30126         (TYPES_QUADOP_LANE_PAIR): New.
30127         (aarch64_simd_expand_args): Use it.
30128         (aarch64_simd_expand_builtin): Likewise.
30129         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
30130         New.
30131         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
30132         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
30133         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
30134         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
30135         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
30136         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
30137         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
30138         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
30139         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
30140         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
30141         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
30142         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
30143         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
30144         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
30145         Add __ARM_FEATURE_COMPLEX.
30146         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
30147         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
30148         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
30149         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
30150         fcmlaq_lane270): New.
30151         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
30152         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
30153         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
30154         * config/aarch64/arm_neon.h:
30155         (vcadd_rot90_f16): New.
30156         (vcaddq_rot90_f16): New.
30157         (vcadd_rot270_f16): New.
30158         (vcaddq_rot270_f16): New.
30159         (vcmla_f16): New.
30160         (vcmlaq_f16): New.
30161         (vcmla_lane_f16): New.
30162         (vcmla_laneq_f16): New.
30163         (vcmlaq_lane_f16): New.
30164         (vcmlaq_rot90_lane_f16): New.
30165         (vcmla_rot90_laneq_f16): New.
30166         (vcmla_rot90_lane_f16): New.
30167         (vcmlaq_rot90_f16): New.
30168         (vcmla_rot90_f16): New.
30169         (vcmlaq_laneq_f16): New.
30170         (vcmla_rot180_laneq_f16): New.
30171         (vcmla_rot180_lane_f16): New.
30172         (vcmlaq_rot180_f16): New.
30173         (vcmla_rot180_f16): New.
30174         (vcmlaq_rot90_laneq_f16): New.
30175         (vcmlaq_rot270_laneq_f16): New.
30176         (vcmlaq_rot270_lane_f16): New.
30177         (vcmla_rot270_laneq_f16): New.
30178         (vcmlaq_rot270_f16): New.
30179         (vcmla_rot270_f16): New.
30180         (vcmlaq_rot180_laneq_f16): New.
30181         (vcmlaq_rot180_lane_f16): New.
30182         (vcmla_rot270_lane_f16): New.
30183         (vcadd_rot90_f32): New.
30184         (vcaddq_rot90_f32): New.
30185         (vcaddq_rot90_f64): New.
30186         (vcadd_rot270_f32): New.
30187         (vcaddq_rot270_f32): New.
30188         (vcaddq_rot270_f64): New.
30189         (vcmla_f32): New.
30190         (vcmlaq_f32): New.
30191         (vcmlaq_f64): New.
30192         (vcmla_lane_f32): New.
30193         (vcmla_laneq_f32): New.
30194         (vcmlaq_lane_f32): New.
30195         (vcmlaq_laneq_f32): New.
30196         (vcmla_rot90_f32): New.
30197         (vcmlaq_rot90_f32): New.
30198         (vcmlaq_rot90_f64): New.
30199         (vcmla_rot90_lane_f32): New.
30200         (vcmla_rot90_laneq_f32): New.
30201         (vcmlaq_rot90_lane_f32): New.
30202         (vcmlaq_rot90_laneq_f32): New.
30203         (vcmla_rot180_f32): New.
30204         (vcmlaq_rot180_f32): New.
30205         (vcmlaq_rot180_f64): New.
30206         (vcmla_rot180_lane_f32): New.
30207         (vcmla_rot180_laneq_f32): New.
30208         (vcmlaq_rot180_lane_f32): New.
30209         (vcmlaq_rot180_laneq_f32): New.
30210         (vcmla_rot270_f32): New.
30211         (vcmlaq_rot270_f32): New.
30212         (vcmlaq_rot270_f64): New.
30213         (vcmla_rot270_lane_f32): New.
30214         (vcmla_rot270_laneq_f32): New.
30215         (vcmlaq_rot270_lane_f32): New.
30216         (vcmlaq_rot270_laneq_f32): New.
30217         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
30218         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
30219         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
30220         (FCADD, FCMLA): New.
30221         (rot): New.
30222         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
30224 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
30226         PR other/16615
30228         * config/pa/pa.c: Change "can not" to "cannot".
30229         * gimple-ssa-evrp-analyze.c: Likewise.
30230         * ipa-icf.c: Likewise.
30231         * ipa-polymorphic-call.c: Likewise.
30232         * ipa-pure-const.c: Likewise.
30233         * lra-constraints.c: Likewise.
30234         * lra-remat.c: Likewise.
30235         * reload1.c: Likewise.
30236         * reorg.c: Likewise.
30237         * tree-ssa-uninit.c: Likewise.
30239 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
30241         PR other/16615
30243         * Makefile.in: Mechanically replace "can not" with "cannot".
30244         * alias.c: Likewise.
30245         * builtins.c: Likewise.
30246         * calls.c: Likewise.
30247         * cgraph.c: Likewise.
30248         * cgraph.h: Likewise.
30249         * cgraphclones.c: Likewise.
30250         * cgraphunit.c: Likewise.
30251         * combine-stack-adj.c: Likewise.
30252         * combine.c: Likewise.
30253         * common/config/i386/i386-common.c: Likewise.
30254         * config/aarch64/aarch64.c: Likewise.
30255         * config/alpha/sync.md: Likewise.
30256         * config/arc/arc.c: Likewise.
30257         * config/arc/predicates.md: Likewise.
30258         * config/arm/arm-c.c: Likewise.
30259         * config/arm/arm.c: Likewise.
30260         * config/arm/arm.h: Likewise.
30261         * config/arm/arm.md: Likewise.
30262         * config/arm/cortex-r4f.md: Likewise.
30263         * config/csky/csky.c: Likewise.
30264         * config/csky/csky.h: Likewise.
30265         * config/darwin-f.c: Likewise.
30266         * config/epiphany/epiphany.md: Likewise.
30267         * config/i386/i386.c: Likewise.
30268         * config/i386/sol2.h: Likewise.
30269         * config/m68k/m68k.c: Likewise.
30270         * config/mcore/mcore.h: Likewise.
30271         * config/microblaze/microblaze.md: Likewise.
30272         * config/mips/20kc.md: Likewise.
30273         * config/mips/sb1.md: Likewise.
30274         * config/nds32/nds32.c: Likewise.
30275         * config/nds32/predicates.md: Likewise.
30276         * config/pa/pa.c: Likewise.
30277         * config/rs6000/e300c2c3.md: Likewise.
30278         * config/rs6000/rs6000.c: Likewise.
30279         * config/s390/s390.h: Likewise.
30280         * config/sh/sh.c: Likewise.
30281         * config/sh/sh.md: Likewise.
30282         * config/spu/vmx2spu.h: Likewise.
30283         * cprop.c: Likewise.
30284         * dbxout.c: Likewise.
30285         * df-scan.c: Likewise.
30286         * doc/cfg.texi: Likewise.
30287         * doc/extend.texi: Likewise.
30288         * doc/fragments.texi: Likewise.
30289         * doc/gty.texi: Likewise.
30290         * doc/invoke.texi: Likewise.
30291         * doc/lto.texi: Likewise.
30292         * doc/md.texi: Likewise.
30293         * doc/objc.texi: Likewise.
30294         * doc/rtl.texi: Likewise.
30295         * doc/tm.texi: Likewise.
30296         * dse.c: Likewise.
30297         * emit-rtl.c: Likewise.
30298         * emit-rtl.h: Likewise.
30299         * except.c: Likewise.
30300         * expmed.c: Likewise.
30301         * expr.c: Likewise.
30302         * fold-const.c: Likewise.
30303         * genautomata.c: Likewise.
30304         * gimple-fold.c: Likewise.
30305         * hard-reg-set.h: Likewise.
30306         * ifcvt.c: Likewise.
30307         * ipa-comdats.c: Likewise.
30308         * ipa-cp.c: Likewise.
30309         * ipa-devirt.c: Likewise.
30310         * ipa-fnsummary.c: Likewise.
30311         * ipa-icf.c: Likewise.
30312         * ipa-inline-transform.c: Likewise.
30313         * ipa-inline.c: Likewise.
30314         * ipa-polymorphic-call.c: Likewise.
30315         * ipa-profile.c: Likewise.
30316         * ipa-prop.c: Likewise.
30317         * ipa-pure-const.c: Likewise.
30318         * ipa-reference.c: Likewise.
30319         * ipa-split.c: Likewise.
30320         * ipa-visibility.c: Likewise.
30321         * ipa.c: Likewise.
30322         * ira-build.c: Likewise.
30323         * ira-color.c: Likewise.
30324         * ira-conflicts.c: Likewise.
30325         * ira-costs.c: Likewise.
30326         * ira-int.h: Likewise.
30327         * ira-lives.c: Likewise.
30328         * ira.c: Likewise.
30329         * ira.h: Likewise.
30330         * loop-invariant.c: Likewise.
30331         * loop-unroll.c: Likewise.
30332         * lower-subreg.c: Likewise.
30333         * lra-assigns.c: Likewise.
30334         * lra-constraints.c: Likewise.
30335         * lra-eliminations.c: Likewise.
30336         * lra-lives.c: Likewise.
30337         * lra-remat.c: Likewise.
30338         * lra-spills.c: Likewise.
30339         * lra.c: Likewise.
30340         * lto-cgraph.c: Likewise.
30341         * lto-streamer-out.c: Likewise.
30342         * postreload-gcse.c: Likewise.
30343         * predict.c: Likewise.
30344         * profile-count.h: Likewise.
30345         * profile.c: Likewise.
30346         * recog.c: Likewise.
30347         * ree.c: Likewise.
30348         * reload.c: Likewise.
30349         * reload1.c: Likewise.
30350         * reorg.c: Likewise.
30351         * resource.c: Likewise.
30352         * rtl.def: Likewise.
30353         * rtl.h: Likewise.
30354         * rtlanal.c: Likewise.
30355         * sched-deps.c: Likewise.
30356         * sched-ebb.c: Likewise.
30357         * sched-rgn.c: Likewise.
30358         * sel-sched-ir.c: Likewise.
30359         * sel-sched.c: Likewise.
30360         * shrink-wrap.c: Likewise.
30361         * simplify-rtx.c: Likewise.
30362         * symtab.c: Likewise.
30363         * target.def: Likewise.
30364         * toplev.c: Likewise.
30365         * tree-call-cdce.c: Likewise.
30366         * tree-cfg.c: Likewise.
30367         * tree-complex.c: Likewise.
30368         * tree-core.h: Likewise.
30369         * tree-eh.c: Likewise.
30370         * tree-inline.c: Likewise.
30371         * tree-loop-distribution.c: Likewise.
30372         * tree-nrv.c: Likewise.
30373         * tree-profile.c: Likewise.
30374         * tree-sra.c: Likewise.
30375         * tree-ssa-alias.c: Likewise.
30376         * tree-ssa-dce.c: Likewise.
30377         * tree-ssa-dom.c: Likewise.
30378         * tree-ssa-forwprop.c: Likewise.
30379         * tree-ssa-loop-im.c: Likewise.
30380         * tree-ssa-loop-ivcanon.c: Likewise.
30381         * tree-ssa-loop-ivopts.c: Likewise.
30382         * tree-ssa-loop-niter.c: Likewise.
30383         * tree-ssa-phionlycprop.c: Likewise.
30384         * tree-ssa-phiopt.c: Likewise.
30385         * tree-ssa-propagate.c: Likewise.
30386         * tree-ssa-threadedge.c: Likewise.
30387         * tree-ssa-threadupdate.c: Likewise.
30388         * tree-ssa-uninit.c: Likewise.
30389         * tree-ssanames.c: Likewise.
30390         * tree-streamer-out.c: Likewise.
30391         * tree.c: Likewise.
30392         * tree.h: Likewise.
30393         * vr-values.c: Likewise.
30395 2019-01-09  UroÅ¡ Bizjak  <ubizjak@gmail.com>
30397         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
30398         (ix86_split_xorsign): Ditto.
30399         * config/i386/i386.c (ix86_expand_xorsign): New function.
30400         (ix86_split_xorsign): Ditto.
30401         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
30402         (xorsign<mode>3): New expander.
30403         (xorsign<mode>3_1): New insn_and_split pattern.
30404         * config/i386/sse.md (xorsign<mode>3): New expander.
30406 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
30408         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
30409         (*tablejump_sp64): Likewise.
30410         (*tablejump<P:mode>): ...this.
30411         (*call_address_sp32): Merge into...
30412         (*call_address_sp64): Likewise.
30413         (*call_address<P:mode>): ...this.
30414         (*call_symbolic_sp32): Merge into...
30415         (*call_symbolic_sp64): Likewise.
30416         (*call_symbolic<P:mode>): ...this.
30417         (call_value): Remove constraint and add predicate.
30418         (*call_value_address_sp32): Merge into...
30419         (*call_value_address_sp64): Likewise.
30420         (*call_value_address<P:mode>): ...this.
30421         (*call_value_symbolic_sp32): Merge into...
30422         (*call_value_symbolic_sp64): Likewise.
30423         (*call_value_symbolic<P:mode>): ...this.
30424         (*sibcall_symbolic_sp32): Merge into...
30425         (*sibcall_symbolic_sp64): Likewise.
30426         (*sibcall_symbolic<P:mode>): ...this.
30427         (sibcall_value): Remove constraint and add predicate.
30428         (*sibcall_value_symbolic_sp32): Merge into...
30429         (*sibcall_value_symbolic_sp64): Likewise.
30430         (*sibcall_value_symbolic<P:mode>): ...this.
30431         (window_save): Minor tweak.
30432         (*branch_sp32): Merge into...
30433         (*branch_sp64): Likewise.
30434         (*branch<P:mode>): ...this.
30436 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
30437             James Clarke  <jrtc27@jrtc27.com>
30439         PR target/84010
30440         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
30441         consistently in TLS address generation and adjust code to the renaming
30442         of patterns.  Mark calls to __tls_get_addr as const.
30443         * config/sparc/sparc.md (tgd_hi22): Turn into...
30444         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
30445         (tgd_lo10): Turn into...
30446         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
30447         (tgd_add32): Merge into...
30448         (tgd_add64): Likewise.
30449         (tgd_add<P:mode>): ...this and use Pmode throughout.
30450         (tldm_hi22): Turn into...
30451         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
30452         (tldm_lo10): Turn into...
30453         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
30454         (tldm_add32): Merge into...
30455         (tldm_add64): Likewise.
30456         (tldm_add<P:mode>): ...this and use Pmode throughout.
30457         (tldm_call32): Merge into...
30458         (tldm_call64): Likewise.
30459         (tldm_call<P:mode>): ...this and use Pmode throughout.
30460         (tldo_hix22): Turn into...
30461         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
30462         (tldo_lox10): Turn into...
30463         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
30464         (tldo_add32): Merge into...
30465         (tldo_add64): Likewise.
30466         (tldo_add<P:mode>): ...this and use Pmode throughout.
30467         (tie_hi22): Turn into...
30468         (tie_hi22<P:mode>): ...this and use Pmode throughout.
30469         (tie_lo10): Turn into...
30470         (tie_lo10<P:mode>): ...this and use Pmode throughout.
30471         (tie_ld64): Use DImode throughout.
30472         (tie_add32): Merge into...
30473         (tie_add64): Likewise.
30474         (tie_add<P:mode>): ...this and use Pmode throughout.
30475         (tle_hix22_sp32): Merge into...
30476         (tle_hix22_sp64): Likewise.
30477         (tle_hix22<P:mode>): ...this and use Pmode throughout.
30478         (tle_lox22_sp32): Merge into...
30479         (tle_lox22_sp64): Likewise.
30480         (tle_lox22<P:mode>): ...this and use Pmode throughout.
30481         (*tldo_ldub_sp32): Merge into...
30482         (*tldo_ldub_sp64): Likewise.
30483         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
30484         (*tldo_ldub1_sp32): Merge into...
30485         (*tldo_ldub1_sp64): Likewise.
30486         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
30487         (*tldo_ldub2_sp32): Merge into...
30488         (*tldo_ldub2_sp64): Likewise.
30489         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
30490         (*tldo_ldsb1_sp32): Merge into...
30491         (*tldo_ldsb1_sp64): Likewise.
30492         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
30493         (*tldo_ldsb2_sp32): Merge into...
30494         (*tldo_ldsb2_sp64): Likewise.
30495         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
30496         (*tldo_ldub3_sp64): Use DImode throughout.
30497         (*tldo_ldsb3_sp64): Likewise.
30498         (*tldo_lduh_sp32): Merge into...
30499         (*tldo_lduh_sp64): Likewise.
30500         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
30501         (*tldo_lduh1_sp32): Merge into...
30502         (*tldo_lduh1_sp64): Likewise.
30503         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
30504         (*tldo_ldsh1_sp32): Merge into...
30505         (*tldo_ldsh1_sp64): Likewise.
30506         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
30507         (*tldo_lduh2_sp64): Use DImode throughout.
30508         (*tldo_ldsh2_sp64): Likewise.
30509         (*tldo_lduw_sp32): Merge into...
30510         (*tldo_lduw_sp64): Likewise.
30511         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
30512         (*tldo_lduw1_sp64): Use DImode throughout.
30513         (*tldo_ldsw1_sp64): Likewise.
30514         (*tldo_ldx_sp64): Likewise.
30515         (*tldo_stb_sp32): Merge into...
30516         (*tldo_stb_sp64): Likewise.
30517         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
30518         (*tldo_sth_sp32): Merge into...
30519         (*tldo_sth_sp64): Likewise.
30520         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
30521         (*tldo_stw_sp32): Merge into...
30522         (*tldo_stw_sp64): Likewise.
30523         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
30524         (*tldo_stx_sp64): Use DImode throughout.
30526 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
30528         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
30529         check configure option to set BTI and Return Address Signing.
30530         * configure.ac: Add --enable-standard-branch-protection and
30531         --disable-standard-branch-protection.
30532         * configure: Regenerated.
30533         * doc/install.texi: Document the same.
30535 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
30536             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30538         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
30539         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
30540         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
30541         if bti is enabled.
30542         * config/aarch64/aarch64-bti-insert.c: New file.
30543         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
30544         pass.
30545         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
30546         new bti pass.
30547         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
30548         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
30549         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
30550         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
30552 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
30554         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
30555         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
30556         Disable bti for -mbranch-protection=none.
30557         (aarch64_handle_standard_branch_protection): Enable bti for
30558         -mbranch-protection=standard.
30559         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
30560         -mbranch-protection.
30561         (aarch64_bti_enabled): Check if bti is enabled.
30562         * config/aarch64/aarch64.opt: Declare target variable.
30563         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
30565 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
30567         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
30568         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
30569         (aarch64_expand_epilogue): Likewise.
30570         (aarch64_output_mi_thunk): Likewise.
30571         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
30572         TAILCALL_ADDR_REGS to x16 and x17.
30573         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
30575 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
30577         * config/aarch64/aarch64-option-extensions.def: Define
30578         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
30579         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
30580         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
30581         (AARCH64_FL_PREDRES): New.
30582         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
30583         AARCH64_FL_PREDRES by default.
30584         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
30586 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
30588         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
30589         ARMv8.5-A.
30590         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
30591         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
30592         * doc/invoke.texi: Document ARMv8.5-A.
30594 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
30596         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
30597         (xorsign<mode>3): Likewise.
30599 2019-01-09  Jelinek  <jakub@redhat.com>
30601         PR middle-end/88758
30602         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
30603         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
30605         PR rtl-optimization/88331
30606         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
30607         not currently_expanding_to_rtl.
30609 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
30611         * doc/invoke.texi (-Os): Remove trailing spaces.
30612         (-finline-functions): Remove reference to -O2.
30614 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
30616         PR rtl-optimization/79593
30617         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
30619         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
30620         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
30622 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
30624         PR bootstrap/88721
30625         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
30626         to -1 on entry.
30628         PR debug/88723
30629         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
30630         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
30632 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
30634         PR target/88717
30635         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
30636         ix86_avx_u128_mode_entry.
30638 2019-01-08  Martin Liska  <mliska@suse.cz>
30640         PR tree-optimization/88753
30641         * tree-switch-conversion.c (switch_conversion::build_one_array):
30642         Come up with local variable constructor.  Convert first to
30643         type of constructor values.
30645 2019-01-08  Richard Biener  <rguenther@suse.de>
30647         PR tree-optimization/86554
30648         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
30649         rpo_avail): Move earlier.
30650         (visit_nary_op): When value-numbering to expressions
30651         with different overflow behavior make sure there's an
30652         available expression on the path.
30654 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
30656         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
30657         aarch64_parse_branch_protection,
30658         struct aarch64_branch_protect_type,
30659         aarch64_handle_no_branch_protection,
30660         aarch64_handle_standard_branch_protection,
30661         aarch64_validate_mbranch_protection,
30662         aarch64_handle_pac_ret_protection,
30663         aarch64_handle_attr_branch_protection,
30664         accepted_branch_protection_string,
30665         aarch64_pac_ret_subtypes,
30666         aarch64_branch_protect_types,
30667         aarch64_handle_pac_ret_leaf): Define.
30668         (aarch64_override_options_after_change_1, aarch64_override_options):
30669         Add check for accepted_branch_protection_string.
30670         (aarch64_option_save): Save accepted_branch_protection_string.
30671         (aarch64_option_restore): Save accepted_branch_protection_string.
30672         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
30673         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
30674         msign-return-address.
30675         * doc/invoke.texi: Add mbranch-protection.
30677 2019-01-08  Alan Modra  <amodra@gmail.com>
30679         PR target/88614
30680         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
30681         Delete "unknownp" parameter.  Adjust callers.  Handle
30682         CONST_INT, PLUS, MINUS, and MULT.
30683         (attr_value_aligned): Renamed from or_attr_value.
30684         (min_attr_value): Return INT_MIN for unhandled rtl case..
30685         (min_fn): ..and translate to INT_MAX here.
30686         (write_length_unit_log): Modify to cope without "unknown".
30687         (write_attr_value): Handle IF_THEN_ELSE.
30689 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
30691         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
30692         optimization for masked stores.
30694 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
30696         PR middle-end/88567
30697         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
30698         output vector directly to duplicate_and_interleave instead of
30699         going through a temporary.  Postpone insertion of ctor_seq to
30700         the end of the loop.
30702 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
30704         PR target/86891
30705         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
30706         unsigned_p.  Handle signed and unsigned overflow correction as
30707         required.
30708         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
30709         prototype.
30710         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
30711         for operand 2.
30712         (add<mode>3_compareV_imm): Make this callable for expanding.
30713         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
30714         aarch64_plus_operand for operand 2.
30715         (subv<GPI:mode>_insn): New insn pattern.
30716         (subv<GPI:mode>_imm): Likewise.
30717         (negv<GPI:mode>3): New expand pattern.
30718         (negv<GPI:mode>_insn): New insn pattern.
30719         (negv<GPI:mode>_cmp_only): Likewise.
30720         (cmpv<GPI:mode>_insn): Likewise.
30721         (subvti4): Use register_operand for operand 1.  Update call to
30722         aarch64_expand_subvti.
30723         (usubvti4): Likewise.
30724         (negvti3): New expand pattern.
30725         (negdi_carryout): New insn pattern.
30726         (negvdi_carryinV): New insn pattern.
30727         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
30728         version the named version.
30729         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
30730         operands.
30731         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
30732         patterns.
30733         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
30734         patterns.
30735         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
30736         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
30737         (sub<mode>3_carryinCV): Delete.
30738         (sub<GPI:mode>3_carryinV): New expand pattern.
30739         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
30741 2019-01-07  Richard Biener  <rguenther@suse.de>
30743         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
30744         of tree_operand_hash.
30746 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
30748         PR tree-optimization/88598
30749         * tree.h (single_nonzero_element): Declare.
30750         * tree.c (single_nonzero_element): New function.
30751         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
30752         if I is the only nonzero element of CST.
30754 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
30756         PR tree-optimization/88598
30757         * tree.h (initializer_each_zero_or_onep): Declare.
30758         * tree.c (initializer_each_zero_or_onep): New function.
30759         (signed_or_unsigned_type_for): Handle float types too.
30760         (unsigned_type_for, signed_type_for): Update comments accordingly.
30761         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
30762         x & { 0 or -1, 0 or -1, ... }.
30764 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
30766         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
30767         with x86_64-pc-linux-gnu.
30769 2019-01-07  Tom de Vries  <tdevries@suse.de>
30771         PR target/85486
30772         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
30773         function.
30774         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
30775         routines.
30777 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
30779         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
30780         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
30781         TARGET_AVX512F as condition.
30783         PR debug/88723
30784         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
30785         const_not_ok_for_debug_p target hook.
30786         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
30787         on UNSPEC and subexpressions thereof if all subexpressions of the
30788         UNSPEC are CONSTANT_P.
30790         PR tree-optimization/88676
30791         * tree-ssa-phiopt.c (two_value_replacement): New function.
30792         (tree_ssa_phiopt_worker): Call it.
30794         PR sanitizer/88619
30795         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
30796         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
30798         PR c++/85052
30799         * tree-vect-generic.c: Include insn-config.h and recog.h.
30800         (expand_vector_piecewise): Add defaulted ret_type argument,
30801         if non-NULL, use that in preference to type for the result type.
30802         (expand_vector_parallel): Formatting fix.
30803         (do_vec_conversion, do_vec_narrowing_conversion,
30804         expand_vector_conversion): New functions.
30805         (expand_vector_operations_1): Call expand_vector_conversion
30806         for VEC_CONVERT ifn calls.
30807         * internal-fn.def (VEC_CONVERT): New internal function.
30808         * internal-fn.c (expand_VEC_CONVERT): New function.
30809         * fold-const-call.c (fold_const_vec_convert): New function.
30810         (fold_const_call): Use it for CFN_VEC_CONVERT.
30811         * doc/extend.texi (__builtin_convertvector): Document.
30813 2019-01-07  Tom de Vries  <tdevries@suse.de>
30815         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
30816         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
30817         vector_red_partition, vector_red_sym): New global variables.
30818         (nvptx_option_override): Initialize vector_red_sym.
30819         (nvptx_declare_function_name): Restore red_partition register.
30820         (nvptx_file_end): Emit code to declare the vector reduction variables.
30821         (nvptx_output_red_partition): New function.
30822         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
30823         large vector reductions.
30824         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
30825         (nvptx_init_builtins): Add VECTOR_ADDR.
30826         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
30827         Handle nvptx_expand_shared_addr.
30828         (nvptx_get_shared_red_addr): Add vector argument and handle large
30829         vectors.
30830         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
30831         large vectors.
30832         (nvptx_goacc_reduction_init): Likewise.
30833         (nvptx_goacc_reduction_fini): Likewise.
30834         (nvptx_goacc_reduction_teardown): Likewise.
30835         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
30836         init,fini,teardown}.
30837         (nvptx_init_axis_predicate): Initialize vector_red_partition.
30838         (nvptx_set_current_function): Init vector_red_partition.
30839         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
30840         (nvptx_red_partition): New insn.
30841         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
30843 2019-01-07  Tom de Vries  <tdevries@suse.de>
30845         PR target/85381
30846         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
30847         empty loops.
30849 2019-01-07  Tom de Vries  <tdevries@suse.de>
30851         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
30852         (nvptx_option_override): Init oacc_bcast_partition.
30853         (nvptx_init_oacc_workers): New function.
30854         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
30855         (nvptx_needs_shared_bcast): New function.
30856         (nvptx_find_par): Generalize to enable vectors to use shared-memory
30857         to propagate state.
30858         (nvptx_shared_propagate): Initialize vector bcast partition and
30859         synchronization state.
30860         (nvptx_single): Generalize to enable vectors to use shared-memory
30861         to propagate state.
30862         (nvptx_process_pars): Likewise.
30863         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
30864         * config/nvptx/nvptx.h (struct machine_function): Add
30865         bcast_partition and sync_bar members.
30867 2019-01-07  Tom de Vries  <tdevries@suse.de>
30869         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
30870         (nvptx_apply_dim_limits): New function.
30871         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
30872         PTX_WARP_SIZE.
30874 2019-01-07  Tom de Vries  <tdevries@suse.de>
30876         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
30877         as late as possible.
30879 2019-01-07  Tom de Vries  <tdevries@suse.de>
30881         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
30882         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
30883         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
30884         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
30885         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
30887 2019-01-07  Tom de Vries  <tdevries@suse.de>
30889         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
30891 2019-01-07  Tom de Vries  <tdevries@suse.de>
30893         * omp-offload.c (oacc_get_min_dim): New function.
30894         * omp-offload.h (oacc_get_min_dim): Declare.
30896 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
30898         PR target/88521
30899         * config/i386/i386.c (function_value_ms_64): Return small sturct in
30900         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
30902 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
30904         PR tree-opt/86020
30905         Revert:
30906         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
30908         * ipa-inline.c (edge_badness): Use inlined_time instead of
30909         inline_summaries->get.
30911 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
30913         * opts.c (enable_fdo_optimizations): Enable
30914         version-loops-for-strides, loop-interchange, unrol-and-jam
30915         and tree-loop-distribution.
30916         * invoke.texi: Document newly enabled options.
30918 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
30920         * doc/invoke.texi (max-inline-insns-small): New parameters.
30921         * ipa-inline.c (want_early_inline_function_p): simplify.
30922         (want_inline_small_function_p): Fix pasto from previous patch;
30923         use max-inline-insns-small bound.
30924         * params.def (max-inline-insns-small): New param.
30925         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
30926         variables correctly.
30928 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
30930         * doc/invoke.texi: Document max-inline-insns-size,
30931         uninlined-function-insns, uninlined-function-time,
30932         uninlined-thunk-insns and uninlined-thunk-time.
30933         * params.def: Add max-inline-insns-size,
30934         uninlined-function-insns, uninlined-function-time,
30935         uninlined-thunk-insns and uninlined-thunk-time.
30936         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
30937         new parameters.
30938         * ipa-inline.c (can_inline_edge_by_limits_p,
30939         want_inline_small_function_p): Use new parameters.
30941 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
30943         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
30945 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
30947         PR middle-end/82564
30948         PR target/88620
30949         * expr.c (expand_assignment): For calls returning VLA structures
30950         if to_rtx is not a MEM, force it into a stack temporary.
30952         PR debug/88635
30953         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
30954         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
30955         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
30956         subexpressions of both operands.
30957         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
30958         subrtxes are CONSTANT_P.
30959         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
30960         2018-11-09 changes.
30962 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
30964         * params.def (hot-bb-count-ws-permille): Set to 990.
30966 2019-01-04  Martin Sebor  <msebor@redhat.com>
30968         PR c/88546
30969         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
30970         leaf.
30972 2019-01-04  Martin Sebor  <msebor@redhat.com>
30974         PR c/88363
30975         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
30977 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
30979         * gdbinit.in: Turn off pagination for the skip commands, restore
30980         it to previous state afterwards.
30982 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
30984         PR target/88594
30985         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
30986         of GET_MODE (opN) as modes of the libcall arguments.
30988 2019-01-04  Jan Beulich  <jbeulich@suse.com>
30990         * config/i386/sse.md
30991         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
30992         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
30993         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
30994         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
30995         avx512f_vmcmp<mode>3<round_saeonly_name>,
30996         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
30997         avx512f_maskcmp<mode>3,
30998         <avx512>_cvt<ssemodesuffix>2mask<mode>,
30999         <avx512>_cvt<ssemodesuffix>2mask<mode>,
31000         *<avx512>_cvtmask2<ssemodesuffix><mode>,
31001         *<avx512>_cvtmask2<ssemodesuffix><mode>,
31002         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
31003         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
31004         <avx512>_gt<mode>3<mask_scalar_merge_name>,
31005         <avx512>_gt<mode>3<mask_scalar_merge_name>,
31006         <avx512>_testm<mode>3<mask_scalar_merge_name>,
31007         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
31008         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
31009         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
31010         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
31011         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
31012         avx512cd_maskb_vec_dup<mode>,
31013         avx512cd_maskw_vec_dup<mode>,
31014         avx512dq_fpclass<mode><mask_scalar_merge_name>,
31015         avx512dq_vmfpclass<mode>,
31016         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
31017         instead of =Yk.
31019 2019-01-03  Martin Sebor  <msebor@redhat.com>
31021         PR tree-optimization/88659
31022         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
31024 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
31026         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
31027         unaligned vsx and avoid lxvd2x/stxvd2x.
31028         (gen_lvx_v4si_move): New function.
31030 2019-01-03  Tom de Vries  <tdevries@suse.de>
31032         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
31033         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
31034         function.
31035         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
31037 2019-01-03  Tom de Vries  <tdevries@suse.de>
31039         * config/nvptx/nvptx.c (struct offload_attrs): New.
31040         (populate_offload_attrs): New function.  Factor mask extraction out of
31041         nvptx_reorg.  Add extraction of dimensions.
31042         (nvptx_reorg): Use populate_offload_attrs.
31044 2019-01-03  Tom de Vries  <tdevries@suse.de>
31046         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
31047         cases for oacc_min_dims_p and routine_p.  Add asserts for
31048         oacc_default_dims_p and offload_region_p.
31050 2019-01-03  Tom de Vries  <tdevries@suse.de>
31052         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
31053         factored out of ...
31054         (nvptx_goacc_validate_dims): ... here.
31056 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
31058         PR tree-optimization/85574
31059         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
31060         structure.
31061         (struct ssa_equip_hash_traits): Declare.
31062         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
31064 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
31066         PR debug/88644
31067         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
31068         change it to qualified_type.
31070 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
31072         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
31073         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
31075 2019-01-02  Martin Sebor  <msebor@redhat.com>
31076             Jeff Law  <law@redhat.com>
31078         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
31079         (get_range_strlen_tree): Update appropriately.
31080         (get_range_strlen)
31081         * gimple-fold.h (get_range_strlen): Drop unused last argument.
31083         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
31084         rather than set_range_info.
31085         * tree-ssa-strlen.c (set_strlen_range): Extracted from
31086         maybe_set_strlen_range.  Handle potentially boundary crossing
31087         cases more conservatively.
31088         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
31089         Call set_strlen_range.
31090         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
31092         PR middle-end/88663
31093         * gimple-fold.c (get_range_strlen): Update prototype to no longer
31094         need the flexp argument.
31095         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
31096         from calls to get_range_strlen.  Update comments.  Just update
31097         VAL for an unterminated const char array and let the reset of the
31098         code handle it normally.  No longer try to set *flexp.  Adjust
31099         return value.
31100         (get_range_strlen): Update for the new get_range_strlen API.
31101         (get_maxval_strlen): Similarly.
31102         (gimple_fold_builtin_strlen): Handle update meaning of return value
31103         from get_range_strlen.
31104         * gimple-ssa-sprintf.c (get_string_length): Update for the new
31105         get_range_strlen API.
31107 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
31109         PR lto/88130
31110         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
31111         false at WPA time when body was removed.
31113 2019-01-02  Martin Liska  <mliska@suse.cz>
31115         PR tree-optimization/88650
31116         * predict.c (set_even_probabilities): Calculate probability
31117         remainer only when really used.
31119 2019-01-02  Richard Biener  <rguenther@suse.de>
31121         PR middle-end/88651
31122         * tree-data-ref.c (analyze_subscript_affine_affine): Use
31123         widest_ints when mangling max_stmt_execution results.
31125 2019-01-02  Richard Biener  <rguenther@suse.de>
31127         PR tree-optimization/88621
31128         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
31129         bitfields when canoncalizing.
31131 2019-01-02  Richard Biener  <rguenther@suse.de>
31133         PR target/87545
31134         * config/i386/x86-tune-costs.h (intel_cost): Adjust
31135         cost of cheap SSE instruction.
31137 2019-01-02  Richard Biener  <rguenther@suse.de>
31139         PR ipa/85574
31140         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
31141         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
31142         function.
31143         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
31144         set after UIDs before splitting them.
31146 2019-01-01  Martin Sebor  <msebor@redhat.com>
31147             Jeff Law  <law@redhat.com>
31149         * gimple-fold.c (get_range_strlen_tree): Record if the computed
31150         length is optimistic.  If it is, then arrange to compute the
31151         conservative length as well.
31153         * gimple-fold.h (get_range_strlen): Update prototype.
31154         * builtins.c (check_access): Update call to get_range_strlen to use
31155         c_strlen_data pointer.   Change various variable accesses to instead
31156         pull data from the c_strlen_data structure.
31157         (check_strncat_sizes, expand_builtin_strncat): Likewise.
31158         * calls.c (maybe_warn_nonstring_arg): Likewise.
31159         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
31160         minimum length if maximum lengh is unknown.
31161         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
31162         that used c_strlen, it's no longer needed.  Restructure slightly.
31163         (format_string): Set unlikely range appropriately.
31164         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
31165         formatting issues.
31166         (get_range_strlen): Accept c_strlen_data pointer for external
31167         call sites as well.  Pass through to call to internal get_range_strlen.
31168         Adjust minlen, maxlen and maxbound as needed.
31169         (get_maxval_strlen): Update comments.
31170         (gimple_fold_builtin_strlen): Update call to get_range_strlen
31171         to use c_strlen_data pointer.  Change variable accesses to instead
31172         use c_strlen_data data members.
31174         * gimple-fold.c (get_range_strlen): Update prototype.
31175         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
31176         local variables.  Use pdata to return information to caller.
31177         Update calls to get_range_strlen.  Update pdata->maxbound.
31178         (get_range_strlen -- static version): Similarly.
31179         (get_range_strlen -- extern version): Update for internal
31180         get_range_strlen API change.  Convert to external data format.
31181         (get_maxval_strlen): Similarly.
31183 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
31185         * coverage.c (get_coverage_counts): Use current_function_decl.
31186         * profile.c (read_thunk_profile): New function.
31187         (branch_prob): Add THUNK parameter.
31188         * tree-profile.c (tree_profiling): Handle thunks.
31189         * value-prof.c (init_node_map): Handle thunks.
31190         * value-prof.h (branch_prob): Upate prototype.
31191         (read_thunk_profile): Declare.
31193 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
31195         Update copyright years.
31197         * gcc.c (process_command): Update copyright notice dates.
31198         * gcov-dump.c (print_version): Ditto.
31199         * gcov.c (print_version): Ditto.
31200         * gcov-tool.c (print_version): Ditto.
31201         * gengtype.c (create_file): Ditto.
31202         * doc/cpp.texi: Bump @copying's copyright year.
31203         * doc/cppinternals.texi: Ditto.
31204         * doc/gcc.texi: Ditto.
31205         * doc/gccint.texi: Ditto.
31206         * doc/gcov.texi: Ditto.
31207         * doc/install.texi: Ditto.
31208         * doc/invoke.texi: Ditto.
31210 Copyright (C) 2019 Free Software Foundation, Inc.
31212 Copying and distribution of this file, with or without modification,
31213 are permitted in any medium without royalty provided the copyright
31214 notice and this notice are preserved.